d8fb7d58ecaa1c97939c0f616e945913d83445df
[worldtv99] / configure
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="Makefile.am"
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 INSTALL_PROGRAM
654 INSTALL_SCRIPT
655 INSTALL_DATA
656 CYGPATH_W
657 PACKAGE
658 VERSION
659 ACLOCAL
660 AUTOCONF
661 AUTOMAKE
662 AUTOHEADER
663 MAKEINFO
664 AMTAR
665 install_sh
666 STRIP
667 INSTALL_STRIP_PROGRAM
668 AWK
669 SET_MAKE
670 am__leading_dot
671 build
672 build_cpu
673 build_vendor
674 build_os
675 host
676 host_cpu
677 host_vendor
678 host_os
679 GETTEXT_PACKAGE
680 CC
681 CFLAGS
682 LDFLAGS
683 CPPFLAGS
684 ac_ct_CC
685 EXEEXT
686 OBJEXT
687 DEPDIR
688 am__include
689 am__quote
690 AMDEP_TRUE
691 AMDEP_FALSE
692 AMDEPBACKSLASH
693 CCDEPMODE
694 am__fastdepCC_TRUE
695 am__fastdepCC_FALSE
696 CPP
697 GREP
698 EGREP
699 USE_NLS
700 MSGFMT
701 MSGFMT_OPTS
702 GMSGFMT
703 XGETTEXT
704 CATALOGS
705 CATOBJEXT
706 DATADIRNAME
707 GMOFILES
708 INSTOBJEXT
709 INTLLIBS
710 PO_IN_DATADIR_TRUE
711 PO_IN_DATADIR_FALSE
712 POFILES
713 POSUB
714 MKINSTALLDIRS
715 helpfile_engbdir
716 package_appdir
717 LIBOBJS
718 LTLIBOBJS'
719 ac_subst_files=''
720       ac_precious_vars='build_alias
721 host_alias
722 target_alias
723 CC
724 CFLAGS
725 LDFLAGS
726 LIBS
727 CPPFLAGS
728 CPP'
729
730
731 # Initialize some variables set by options.
732 ac_init_help=
733 ac_init_version=false
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
736 cache_file=/dev/null
737 exec_prefix=NONE
738 no_create=
739 no_recursion=
740 prefix=NONE
741 program_prefix=NONE
742 program_suffix=NONE
743 program_transform_name=s,x,x,
744 silent=
745 site=
746 srcdir=
747 verbose=
748 x_includes=NONE
749 x_libraries=NONE
750
751 # Installation directory options.
752 # These are left unexpanded so users can "make install exec_prefix=/foo"
753 # and all the variables that are supposed to be based on exec_prefix
754 # by default will actually change.
755 # Use braces instead of parens because sh, perl, etc. also accept them.
756 # (The list follows the same order as the GNU Coding Standards.)
757 bindir='${exec_prefix}/bin'
758 sbindir='${exec_prefix}/sbin'
759 libexecdir='${exec_prefix}/libexec'
760 datarootdir='${prefix}/share'
761 datadir='${datarootdir}'
762 sysconfdir='${prefix}/etc'
763 sharedstatedir='${prefix}/com'
764 localstatedir='${prefix}/var'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE}'
768 infodir='${datarootdir}/info'
769 htmldir='${docdir}'
770 dvidir='${docdir}'
771 pdfdir='${docdir}'
772 psdir='${docdir}'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
776
777 ac_prev=
778 ac_dashdash=
779 for ac_option
780 do
781   # If the previous option needs an argument, assign it.
782   if test -n "$ac_prev"; then
783     eval $ac_prev=\$ac_option
784     ac_prev=
785     continue
786   fi
787
788   case $ac_option in
789   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790   *)    ac_optarg=yes ;;
791   esac
792
793   # Accept the important Cygnus configure options, so we can diagnose typos.
794
795   case $ac_dashdash$ac_option in
796   --)
797     ac_dashdash=yes ;;
798
799   -bindir | --bindir | --bindi | --bind | --bin | --bi)
800     ac_prev=bindir ;;
801   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
802     bindir=$ac_optarg ;;
803
804   -build | --build | --buil | --bui | --bu)
805     ac_prev=build_alias ;;
806   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807     build_alias=$ac_optarg ;;
808
809   -cache-file | --cache-file | --cache-fil | --cache-fi \
810   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811     ac_prev=cache_file ;;
812   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814     cache_file=$ac_optarg ;;
815
816   --config-cache | -C)
817     cache_file=config.cache ;;
818
819   -datadir | --datadir | --datadi | --datad)
820     ac_prev=datadir ;;
821   -datadir=* | --datadir=* | --datadi=* | --datad=*)
822     datadir=$ac_optarg ;;
823
824   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825   | --dataroo | --dataro | --datar)
826     ac_prev=datarootdir ;;
827   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829     datarootdir=$ac_optarg ;;
830
831   -disable-* | --disable-*)
832     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833     # Reject names that are not valid shell variable names.
834     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
835       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
836    { (exit 1); exit 1; }; }
837     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
838     eval enable_$ac_feature=no ;;
839
840   -docdir | --docdir | --docdi | --doc | --do)
841     ac_prev=docdir ;;
842   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
843     docdir=$ac_optarg ;;
844
845   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
846     ac_prev=dvidir ;;
847   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
848     dvidir=$ac_optarg ;;
849
850   -enable-* | --enable-*)
851     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852     # Reject names that are not valid shell variable names.
853     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855    { (exit 1); exit 1; }; }
856     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857     eval enable_$ac_feature=\$ac_optarg ;;
858
859   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
861   | --exec | --exe | --ex)
862     ac_prev=exec_prefix ;;
863   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
864   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
865   | --exec=* | --exe=* | --ex=*)
866     exec_prefix=$ac_optarg ;;
867
868   -gas | --gas | --ga | --g)
869     # Obsolete; use --with-gas.
870     with_gas=yes ;;
871
872   -help | --help | --hel | --he | -h)
873     ac_init_help=long ;;
874   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
875     ac_init_help=recursive ;;
876   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
877     ac_init_help=short ;;
878
879   -host | --host | --hos | --ho)
880     ac_prev=host_alias ;;
881   -host=* | --host=* | --hos=* | --ho=*)
882     host_alias=$ac_optarg ;;
883
884   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
885     ac_prev=htmldir ;;
886   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
887   | --ht=*)
888     htmldir=$ac_optarg ;;
889
890   -includedir | --includedir | --includedi | --included | --include \
891   | --includ | --inclu | --incl | --inc)
892     ac_prev=includedir ;;
893   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
894   | --includ=* | --inclu=* | --incl=* | --inc=*)
895     includedir=$ac_optarg ;;
896
897   -infodir | --infodir | --infodi | --infod | --info | --inf)
898     ac_prev=infodir ;;
899   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900     infodir=$ac_optarg ;;
901
902   -libdir | --libdir | --libdi | --libd)
903     ac_prev=libdir ;;
904   -libdir=* | --libdir=* | --libdi=* | --libd=*)
905     libdir=$ac_optarg ;;
906
907   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
908   | --libexe | --libex | --libe)
909     ac_prev=libexecdir ;;
910   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
911   | --libexe=* | --libex=* | --libe=*)
912     libexecdir=$ac_optarg ;;
913
914   -localedir | --localedir | --localedi | --localed | --locale)
915     ac_prev=localedir ;;
916   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917     localedir=$ac_optarg ;;
918
919   -localstatedir | --localstatedir | --localstatedi | --localstated \
920   | --localstate | --localstat | --localsta | --localst | --locals)
921     ac_prev=localstatedir ;;
922   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
923   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
924     localstatedir=$ac_optarg ;;
925
926   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
927     ac_prev=mandir ;;
928   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
929     mandir=$ac_optarg ;;
930
931   -nfp | --nfp | --nf)
932     # Obsolete; use --without-fp.
933     with_fp=no ;;
934
935   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936   | --no-cr | --no-c | -n)
937     no_create=yes ;;
938
939   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
941     no_recursion=yes ;;
942
943   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
944   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
945   | --oldin | --oldi | --old | --ol | --o)
946     ac_prev=oldincludedir ;;
947   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
948   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
949   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
950     oldincludedir=$ac_optarg ;;
951
952   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
953     ac_prev=prefix ;;
954   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
955     prefix=$ac_optarg ;;
956
957   -program-prefix | --program-prefix | --program-prefi | --program-pref \
958   | --program-pre | --program-pr | --program-p)
959     ac_prev=program_prefix ;;
960   -program-prefix=* | --program-prefix=* | --program-prefi=* \
961   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
962     program_prefix=$ac_optarg ;;
963
964   -program-suffix | --program-suffix | --program-suffi | --program-suff \
965   | --program-suf | --program-su | --program-s)
966     ac_prev=program_suffix ;;
967   -program-suffix=* | --program-suffix=* | --program-suffi=* \
968   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
969     program_suffix=$ac_optarg ;;
970
971   -program-transform-name | --program-transform-name \
972   | --program-transform-nam | --program-transform-na \
973   | --program-transform-n | --program-transform- \
974   | --program-transform | --program-transfor \
975   | --program-transfo | --program-transf \
976   | --program-trans | --program-tran \
977   | --progr-tra | --program-tr | --program-t)
978     ac_prev=program_transform_name ;;
979   -program-transform-name=* | --program-transform-name=* \
980   | --program-transform-nam=* | --program-transform-na=* \
981   | --program-transform-n=* | --program-transform-=* \
982   | --program-transform=* | --program-transfor=* \
983   | --program-transfo=* | --program-transf=* \
984   | --program-trans=* | --program-tran=* \
985   | --progr-tra=* | --program-tr=* | --program-t=*)
986     program_transform_name=$ac_optarg ;;
987
988   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
989     ac_prev=pdfdir ;;
990   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
991     pdfdir=$ac_optarg ;;
992
993   -psdir | --psdir | --psdi | --psd | --ps)
994     ac_prev=psdir ;;
995   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
996     psdir=$ac_optarg ;;
997
998   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999   | -silent | --silent | --silen | --sile | --sil)
1000     silent=yes ;;
1001
1002   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1003     ac_prev=sbindir ;;
1004   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1005   | --sbi=* | --sb=*)
1006     sbindir=$ac_optarg ;;
1007
1008   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1009   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1010   | --sharedst | --shareds | --shared | --share | --shar \
1011   | --sha | --sh)
1012     ac_prev=sharedstatedir ;;
1013   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1014   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1015   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1016   | --sha=* | --sh=*)
1017     sharedstatedir=$ac_optarg ;;
1018
1019   -site | --site | --sit)
1020     ac_prev=site ;;
1021   -site=* | --site=* | --sit=*)
1022     site=$ac_optarg ;;
1023
1024   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1025     ac_prev=srcdir ;;
1026   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1027     srcdir=$ac_optarg ;;
1028
1029   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1030   | --syscon | --sysco | --sysc | --sys | --sy)
1031     ac_prev=sysconfdir ;;
1032   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1033   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1034     sysconfdir=$ac_optarg ;;
1035
1036   -target | --target | --targe | --targ | --tar | --ta | --t)
1037     ac_prev=target_alias ;;
1038   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1039     target_alias=$ac_optarg ;;
1040
1041   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1042     verbose=yes ;;
1043
1044   -version | --version | --versio | --versi | --vers | -V)
1045     ac_init_version=: ;;
1046
1047   -with-* | --with-*)
1048     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1049     # Reject names that are not valid shell variable names.
1050     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051       { echo "$as_me: error: invalid package name: $ac_package" >&2
1052    { (exit 1); exit 1; }; }
1053     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1054     eval with_$ac_package=\$ac_optarg ;;
1055
1056   -without-* | --without-*)
1057     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058     # Reject names that are not valid shell variable names.
1059     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060       { echo "$as_me: error: invalid package name: $ac_package" >&2
1061    { (exit 1); exit 1; }; }
1062     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1063     eval with_$ac_package=no ;;
1064
1065   --x)
1066     # Obsolete; use --with-x.
1067     with_x=yes ;;
1068
1069   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1070   | --x-incl | --x-inc | --x-in | --x-i)
1071     ac_prev=x_includes ;;
1072   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1073   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1074     x_includes=$ac_optarg ;;
1075
1076   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1077   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1078     ac_prev=x_libraries ;;
1079   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1080   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1081     x_libraries=$ac_optarg ;;
1082
1083   -*) { echo "$as_me: error: unrecognized option: $ac_option
1084 Try \`$0 --help' for more information." >&2
1085    { (exit 1); exit 1; }; }
1086     ;;
1087
1088   *=*)
1089     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1090     # Reject names that are not valid shell variable names.
1091     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1092       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1093    { (exit 1); exit 1; }; }
1094     eval $ac_envvar=\$ac_optarg
1095     export $ac_envvar ;;
1096
1097   *)
1098     # FIXME: should be removed in autoconf 3.0.
1099     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1100     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1102     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1103     ;;
1104
1105   esac
1106 done
1107
1108 if test -n "$ac_prev"; then
1109   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1110   { echo "$as_me: error: missing argument to $ac_option" >&2
1111    { (exit 1); exit 1; }; }
1112 fi
1113
1114 # Be sure to have absolute directory names.
1115 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1116                 datadir sysconfdir sharedstatedir localstatedir includedir \
1117                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1118                 libdir localedir mandir
1119 do
1120   eval ac_val=\$$ac_var
1121   case $ac_val in
1122     [\\/$]* | ?:[\\/]* )  continue;;
1123     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1124   esac
1125   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1126    { (exit 1); exit 1; }; }
1127 done
1128
1129 # There might be people who depend on the old broken behavior: `$host'
1130 # used to hold the argument of --host etc.
1131 # FIXME: To remove some day.
1132 build=$build_alias
1133 host=$host_alias
1134 target=$target_alias
1135
1136 # FIXME: To remove some day.
1137 if test "x$host_alias" != x; then
1138   if test "x$build_alias" = x; then
1139     cross_compiling=maybe
1140     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1141     If a cross compiler is detected then cross compile mode will be used." >&2
1142   elif test "x$build_alias" != "x$host_alias"; then
1143     cross_compiling=yes
1144   fi
1145 fi
1146
1147 ac_tool_prefix=
1148 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1149
1150 test "$silent" = yes && exec 6>/dev/null
1151
1152
1153 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1154 ac_ls_di=`ls -di .` &&
1155 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1156   { echo "$as_me: error: Working directory cannot be determined" >&2
1157    { (exit 1); exit 1; }; }
1158 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1159   { echo "$as_me: error: pwd does not report name of working directory" >&2
1160    { (exit 1); exit 1; }; }
1161
1162
1163 # Find the source files, if location was not specified.
1164 if test -z "$srcdir"; then
1165   ac_srcdir_defaulted=yes
1166   # Try the directory containing this script, then the parent directory.
1167   ac_confdir=`$as_dirname -- "$0" ||
1168 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1169          X"$0" : 'X\(//\)[^/]' \| \
1170          X"$0" : 'X\(//\)$' \| \
1171          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1172 echo X"$0" |
1173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1174             s//\1/
1175             q
1176           }
1177           /^X\(\/\/\)[^/].*/{
1178             s//\1/
1179             q
1180           }
1181           /^X\(\/\/\)$/{
1182             s//\1/
1183             q
1184           }
1185           /^X\(\/\).*/{
1186             s//\1/
1187             q
1188           }
1189           s/.*/./; q'`
1190   srcdir=$ac_confdir
1191   if test ! -r "$srcdir/$ac_unique_file"; then
1192     srcdir=..
1193   fi
1194 else
1195   ac_srcdir_defaulted=no
1196 fi
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1199   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1200    { (exit 1); exit 1; }; }
1201 fi
1202 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1203 ac_abs_confdir=`(
1204         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1205    { (exit 1); exit 1; }; }
1206         pwd)`
1207 # When building in place, set srcdir=.
1208 if test "$ac_abs_confdir" = "$ac_pwd"; then
1209   srcdir=.
1210 fi
1211 # Remove unnecessary trailing slashes from srcdir.
1212 # Double slashes in file names in object file debugging info
1213 # mess up M-x gdb in Emacs.
1214 case $srcdir in
1215 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1216 esac
1217 for ac_var in $ac_precious_vars; do
1218   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1219   eval ac_env_${ac_var}_value=\$${ac_var}
1220   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1221   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1222 done
1223
1224 #
1225 # Report the --help message.
1226 #
1227 if test "$ac_init_help" = "long"; then
1228   # Omit some internal or obsolete options to make the list less imposing.
1229   # This message is too long to be a string in the A/UX 3.1 sh.
1230   cat <<_ACEOF
1231 \`configure' configures this package to adapt to many kinds of systems.
1232
1233 Usage: $0 [OPTION]... [VAR=VALUE]...
1234
1235 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1236 VAR=VALUE.  See below for descriptions of some of the useful variables.
1237
1238 Defaults for the options are specified in brackets.
1239
1240 Configuration:
1241   -h, --help              display this help and exit
1242       --help=short        display options specific to this package
1243       --help=recursive    display the short help of all the included packages
1244   -V, --version           display version information and exit
1245   -q, --quiet, --silent   do not print \`checking...' messages
1246       --cache-file=FILE   cache test results in FILE [disabled]
1247   -C, --config-cache      alias for \`--cache-file=config.cache'
1248   -n, --no-create         do not create output files
1249       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1250
1251 Installation directories:
1252   --prefix=PREFIX         install architecture-independent files in PREFIX
1253                           [$ac_default_prefix]
1254   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1255                           [PREFIX]
1256
1257 By default, \`make install' will install all the files in
1258 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1259 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1260 for instance \`--prefix=\$HOME'.
1261
1262 For better control, use the options below.
1263
1264 Fine tuning of the installation directories:
1265   --bindir=DIR           user executables [EPREFIX/bin]
1266   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1267   --libexecdir=DIR       program executables [EPREFIX/libexec]
1268   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1269   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1270   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1271   --libdir=DIR           object code libraries [EPREFIX/lib]
1272   --includedir=DIR       C header files [PREFIX/include]
1273   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1274   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1275   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1276   --infodir=DIR          info documentation [DATAROOTDIR/info]
1277   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1278   --mandir=DIR           man documentation [DATAROOTDIR/man]
1279   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1280   --htmldir=DIR          html documentation [DOCDIR]
1281   --dvidir=DIR           dvi documentation [DOCDIR]
1282   --pdfdir=DIR           pdf documentation [DOCDIR]
1283   --psdir=DIR            ps documentation [DOCDIR]
1284 _ACEOF
1285
1286   cat <<\_ACEOF
1287
1288 Program names:
1289   --program-prefix=PREFIX            prepend PREFIX to installed program names
1290   --program-suffix=SUFFIX            append SUFFIX to installed program names
1291   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1292
1293 System types:
1294   --build=BUILD     configure for building on BUILD [guessed]
1295   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1296 _ACEOF
1297 fi
1298
1299 if test -n "$ac_init_help"; then
1300
1301   cat <<\_ACEOF
1302
1303 Optional Features:
1304   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1305   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1306   --disable-dependency-tracking Speeds up one-time builds
1307   --enable-dependency-tracking  Do not reject slow dependency extractors
1308
1309 Some influential environment variables:
1310   CC          C compiler command
1311   CFLAGS      C compiler flags
1312   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1313               nonstandard directory <lib dir>
1314   LIBS        libraries to pass to the linker, e.g. -l<library>
1315   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1316               you have headers in a nonstandard directory <include dir>
1317   CPP         C preprocessor
1318
1319 Use these variables to override the choices made by `configure' or to help
1320 it to find libraries and programs with nonstandard names/locations.
1321
1322 _ACEOF
1323 ac_status=$?
1324 fi
1325
1326 if test "$ac_init_help" = "recursive"; then
1327   # If there are subdirs, report their specific --help.
1328   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1329     test -d "$ac_dir" || continue
1330     ac_builddir=.
1331
1332 case "$ac_dir" in
1333 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334 *)
1335   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1336   # A ".." for each directory in $ac_dir_suffix.
1337   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1338   case $ac_top_builddir_sub in
1339   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1341   esac ;;
1342 esac
1343 ac_abs_top_builddir=$ac_pwd
1344 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1345 # for backward compatibility:
1346 ac_top_builddir=$ac_top_build_prefix
1347
1348 case $srcdir in
1349   .)  # We are building in place.
1350     ac_srcdir=.
1351     ac_top_srcdir=$ac_top_builddir_sub
1352     ac_abs_top_srcdir=$ac_pwd ;;
1353   [\\/]* | ?:[\\/]* )  # Absolute name.
1354     ac_srcdir=$srcdir$ac_dir_suffix;
1355     ac_top_srcdir=$srcdir
1356     ac_abs_top_srcdir=$srcdir ;;
1357   *) # Relative name.
1358     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1359     ac_top_srcdir=$ac_top_build_prefix$srcdir
1360     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1361 esac
1362 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1363
1364     cd "$ac_dir" || { ac_status=$?; continue; }
1365     # Check for guested configure.
1366     if test -f "$ac_srcdir/configure.gnu"; then
1367       echo &&
1368       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1369     elif test -f "$ac_srcdir/configure"; then
1370       echo &&
1371       $SHELL "$ac_srcdir/configure" --help=recursive
1372     else
1373       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1374     fi || ac_status=$?
1375     cd "$ac_pwd" || { ac_status=$?; break; }
1376   done
1377 fi
1378
1379 test -n "$ac_init_help" && exit $ac_status
1380 if $ac_init_version; then
1381   cat <<\_ACEOF
1382 configure
1383 generated by GNU Autoconf 2.61
1384
1385 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1386 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1387 This configure script is free software; the Free Software Foundation
1388 gives unlimited permission to copy, distribute and modify it.
1389 _ACEOF
1390   exit
1391 fi
1392 cat >config.log <<_ACEOF
1393 This file contains any messages produced by compilers while
1394 running configure, to aid debugging if configure makes a mistake.
1395
1396 It was created by $as_me, which was
1397 generated by GNU Autoconf 2.61.  Invocation command line was
1398
1399   $ $0 $@
1400
1401 _ACEOF
1402 exec 5>>config.log
1403 {
1404 cat <<_ASUNAME
1405 ## --------- ##
1406 ## Platform. ##
1407 ## --------- ##
1408
1409 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1410 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1411 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1412 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1413 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1414
1415 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1416 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1417
1418 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1419 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1420 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1421 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1422 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1423 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1424 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1425
1426 _ASUNAME
1427
1428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 for as_dir in $PATH
1430 do
1431   IFS=$as_save_IFS
1432   test -z "$as_dir" && as_dir=.
1433   echo "PATH: $as_dir"
1434 done
1435 IFS=$as_save_IFS
1436
1437 } >&5
1438
1439 cat >&5 <<_ACEOF
1440
1441
1442 ## ----------- ##
1443 ## Core tests. ##
1444 ## ----------- ##
1445
1446 _ACEOF
1447
1448
1449 # Keep a trace of the command line.
1450 # Strip out --no-create and --no-recursion so they do not pile up.
1451 # Strip out --silent because we don't want to record it for future runs.
1452 # Also quote any args containing shell meta-characters.
1453 # Make two passes to allow for proper duplicate-argument suppression.
1454 ac_configure_args=
1455 ac_configure_args0=
1456 ac_configure_args1=
1457 ac_must_keep_next=false
1458 for ac_pass in 1 2
1459 do
1460   for ac_arg
1461   do
1462     case $ac_arg in
1463     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1464     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1465     | -silent | --silent | --silen | --sile | --sil)
1466       continue ;;
1467     *\'*)
1468       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1469     esac
1470     case $ac_pass in
1471     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1472     2)
1473       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1474       if test $ac_must_keep_next = true; then
1475         ac_must_keep_next=false # Got value, back to normal.
1476       else
1477         case $ac_arg in
1478           *=* | --config-cache | -C | -disable-* | --disable-* \
1479           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1480           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1481           | -with-* | --with-* | -without-* | --without-* | --x)
1482             case "$ac_configure_args0 " in
1483               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1484             esac
1485             ;;
1486           -* ) ac_must_keep_next=true ;;
1487         esac
1488       fi
1489       ac_configure_args="$ac_configure_args '$ac_arg'"
1490       ;;
1491     esac
1492   done
1493 done
1494 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1495 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1496
1497 # When interrupted or exit'd, cleanup temporary files, and complete
1498 # config.log.  We remove comments because anyway the quotes in there
1499 # would cause problems or look ugly.
1500 # WARNING: Use '\'' to represent an apostrophe within the trap.
1501 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1502 trap 'exit_status=$?
1503   # Save into config.log some information that might help in debugging.
1504   {
1505     echo
1506
1507     cat <<\_ASBOX
1508 ## ---------------- ##
1509 ## Cache variables. ##
1510 ## ---------------- ##
1511 _ASBOX
1512     echo
1513     # The following way of writing the cache mishandles newlines in values,
1514 (
1515   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1516     eval ac_val=\$$ac_var
1517     case $ac_val in #(
1518     *${as_nl}*)
1519       case $ac_var in #(
1520       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1521 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1522       esac
1523       case $ac_var in #(
1524       _ | IFS | as_nl) ;; #(
1525       *) $as_unset $ac_var ;;
1526       esac ;;
1527     esac
1528   done
1529   (set) 2>&1 |
1530     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1531     *${as_nl}ac_space=\ *)
1532       sed -n \
1533         "s/'\''/'\''\\\\'\'''\''/g;
1534           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1535       ;; #(
1536     *)
1537       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1538       ;;
1539     esac |
1540     sort
1541 )
1542     echo
1543
1544     cat <<\_ASBOX
1545 ## ----------------- ##
1546 ## Output variables. ##
1547 ## ----------------- ##
1548 _ASBOX
1549     echo
1550     for ac_var in $ac_subst_vars
1551     do
1552       eval ac_val=\$$ac_var
1553       case $ac_val in
1554       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1555       esac
1556       echo "$ac_var='\''$ac_val'\''"
1557     done | sort
1558     echo
1559
1560     if test -n "$ac_subst_files"; then
1561       cat <<\_ASBOX
1562 ## ------------------- ##
1563 ## File substitutions. ##
1564 ## ------------------- ##
1565 _ASBOX
1566       echo
1567       for ac_var in $ac_subst_files
1568       do
1569         eval ac_val=\$$ac_var
1570         case $ac_val in
1571         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1572         esac
1573         echo "$ac_var='\''$ac_val'\''"
1574       done | sort
1575       echo
1576     fi
1577
1578     if test -s confdefs.h; then
1579       cat <<\_ASBOX
1580 ## ----------- ##
1581 ## confdefs.h. ##
1582 ## ----------- ##
1583 _ASBOX
1584       echo
1585       cat confdefs.h
1586       echo
1587     fi
1588     test "$ac_signal" != 0 &&
1589       echo "$as_me: caught signal $ac_signal"
1590     echo "$as_me: exit $exit_status"
1591   } >&5
1592   rm -f core *.core core.conftest.* &&
1593     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1594     exit $exit_status
1595 ' 0
1596 for ac_signal in 1 2 13 15; do
1597   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1598 done
1599 ac_signal=0
1600
1601 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1602 rm -f -r conftest* confdefs.h
1603
1604 # Predefined preprocessor variables.
1605
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE_NAME "$PACKAGE_NAME"
1608 _ACEOF
1609
1610
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1613 _ACEOF
1614
1615
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1618 _ACEOF
1619
1620
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_STRING "$PACKAGE_STRING"
1623 _ACEOF
1624
1625
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1628 _ACEOF
1629
1630
1631 # Let the site file select an alternate cache file if it wants to.
1632 # Prefer explicitly selected file to automatically selected ones.
1633 if test -n "$CONFIG_SITE"; then
1634   set x "$CONFIG_SITE"
1635 elif test "x$prefix" != xNONE; then
1636   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1637 else
1638   set x "$ac_default_prefix/share/config.site" \
1639         "$ac_default_prefix/etc/config.site"
1640 fi
1641 shift
1642 for ac_site_file
1643 do
1644   if test -r "$ac_site_file"; then
1645     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1646 echo "$as_me: loading site script $ac_site_file" >&6;}
1647     sed 's/^/| /' "$ac_site_file" >&5
1648     . "$ac_site_file"
1649   fi
1650 done
1651
1652 if test -r "$cache_file"; then
1653   # Some versions of bash will fail to source /dev/null (special
1654   # files actually), so we avoid doing that.
1655   if test -f "$cache_file"; then
1656     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1657 echo "$as_me: loading cache $cache_file" >&6;}
1658     case $cache_file in
1659       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1660       *)                      . "./$cache_file";;
1661     esac
1662   fi
1663 else
1664   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1665 echo "$as_me: creating cache $cache_file" >&6;}
1666   >$cache_file
1667 fi
1668
1669 # Check that the precious variables saved in the cache have kept the same
1670 # value.
1671 ac_cache_corrupted=false
1672 for ac_var in $ac_precious_vars; do
1673   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1674   eval ac_new_set=\$ac_env_${ac_var}_set
1675   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1676   eval ac_new_val=\$ac_env_${ac_var}_value
1677   case $ac_old_set,$ac_new_set in
1678     set,)
1679       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1680 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1681       ac_cache_corrupted=: ;;
1682     ,set)
1683       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1684 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1685       ac_cache_corrupted=: ;;
1686     ,);;
1687     *)
1688       if test "x$ac_old_val" != "x$ac_new_val"; then
1689         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1690 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1691         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1692 echo "$as_me:   former value:  $ac_old_val" >&2;}
1693         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1694 echo "$as_me:   current value: $ac_new_val" >&2;}
1695         ac_cache_corrupted=:
1696       fi;;
1697   esac
1698   # Pass precious variables to config.status.
1699   if test "$ac_new_set" = set; then
1700     case $ac_new_val in
1701     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1702     *) ac_arg=$ac_var=$ac_new_val ;;
1703     esac
1704     case " $ac_configure_args " in
1705       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1706       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1707     esac
1708   fi
1709 done
1710 if $ac_cache_corrupted; then
1711   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1712 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1713   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1714 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1715    { (exit 1); exit 1; }; }
1716 fi
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734 ac_ext=c
1735 ac_cpp='$CPP $CPPFLAGS'
1736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1739
1740
1741 am__api_version="1.7"
1742 ac_aux_dir=
1743 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1744   if test -f "$ac_dir/install-sh"; then
1745     ac_aux_dir=$ac_dir
1746     ac_install_sh="$ac_aux_dir/install-sh -c"
1747     break
1748   elif test -f "$ac_dir/install.sh"; then
1749     ac_aux_dir=$ac_dir
1750     ac_install_sh="$ac_aux_dir/install.sh -c"
1751     break
1752   elif test -f "$ac_dir/shtool"; then
1753     ac_aux_dir=$ac_dir
1754     ac_install_sh="$ac_aux_dir/shtool install -c"
1755     break
1756   fi
1757 done
1758 if test -z "$ac_aux_dir"; then
1759   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1760 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1761    { (exit 1); exit 1; }; }
1762 fi
1763
1764 # These three variables are undocumented and unsupported,
1765 # and are intended to be withdrawn in a future Autoconf release.
1766 # They can cause serious problems if a builder's source tree is in a directory
1767 # whose full name contains unusual characters.
1768 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1769 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1770 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1771
1772
1773 # Find a good install program.  We prefer a C program (faster),
1774 # so one script is as good as another.  But avoid the broken or
1775 # incompatible versions:
1776 # SysV /etc/install, /usr/sbin/install
1777 # SunOS /usr/etc/install
1778 # IRIX /sbin/install
1779 # AIX /bin/install
1780 # AmigaOS /C/install, which installs bootblocks on floppy discs
1781 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1782 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1783 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1784 # OS/2's system install, which has a completely different semantic
1785 # ./install, which can be erroneously created by make from ./install.sh.
1786 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1787 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1788 if test -z "$INSTALL"; then
1789 if test "${ac_cv_path_install+set}" = set; then
1790   echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1794 do
1795   IFS=$as_save_IFS
1796   test -z "$as_dir" && as_dir=.
1797   # Account for people who put trailing slashes in PATH elements.
1798 case $as_dir/ in
1799   ./ | .// | /cC/* | \
1800   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1801   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1802   /usr/ucb/* ) ;;
1803   *)
1804     # OSF1 and SCO ODT 3.0 have their own names for install.
1805     # Don't use installbsd from OSF since it installs stuff as root
1806     # by default.
1807     for ac_prog in ginstall scoinst install; do
1808       for ac_exec_ext in '' $ac_executable_extensions; do
1809         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1810           if test $ac_prog = install &&
1811             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1812             # AIX install.  It has an incompatible calling convention.
1813             :
1814           elif test $ac_prog = install &&
1815             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1816             # program-specific install script used by HP pwplus--don't use.
1817             :
1818           else
1819             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1820             break 3
1821           fi
1822         fi
1823       done
1824     done
1825     ;;
1826 esac
1827 done
1828 IFS=$as_save_IFS
1829
1830
1831 fi
1832   if test "${ac_cv_path_install+set}" = set; then
1833     INSTALL=$ac_cv_path_install
1834   else
1835     # As a last resort, use the slow shell script.  Don't cache a
1836     # value for INSTALL within a source directory, because that will
1837     # break other packages using the cache if that directory is
1838     # removed, or if the value is a relative name.
1839     INSTALL=$ac_install_sh
1840   fi
1841 fi
1842 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1843 echo "${ECHO_T}$INSTALL" >&6; }
1844
1845 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1846 # It thinks the first close brace ends the variable substitution.
1847 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1848
1849 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1850
1851 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1852
1853 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1854 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1855 # Just in case
1856 sleep 1
1857 echo timestamp > conftest.file
1858 # Do `set' in a subshell so we don't clobber the current shell's
1859 # arguments.  Must try -L first in case configure is actually a
1860 # symlink; some systems play weird games with the mod time of symlinks
1861 # (eg FreeBSD returns the mod time of the symlink's containing
1862 # directory).
1863 if (
1864    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1865    if test "$*" = "X"; then
1866       # -L didn't work.
1867       set X `ls -t $srcdir/configure conftest.file`
1868    fi
1869    rm -f conftest.file
1870    if test "$*" != "X $srcdir/configure conftest.file" \
1871       && test "$*" != "X conftest.file $srcdir/configure"; then
1872
1873       # If neither matched, then we have a broken ls.  This can happen
1874       # if, for instance, CONFIG_SHELL is bash and it inherits a
1875       # broken ls alias from the environment.  This has actually
1876       # happened.  Such a system could not be considered "sane".
1877       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1878 alias in your environment" >&5
1879 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1880 alias in your environment" >&2;}
1881    { (exit 1); exit 1; }; }
1882    fi
1883
1884    test "$2" = conftest.file
1885    )
1886 then
1887    # Ok.
1888    :
1889 else
1890    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1891 Check your system clock" >&5
1892 echo "$as_me: error: newly created file is older than distributed files!
1893 Check your system clock" >&2;}
1894    { (exit 1); exit 1; }; }
1895 fi
1896 { echo "$as_me:$LINENO: result: yes" >&5
1897 echo "${ECHO_T}yes" >&6; }
1898 test "$program_prefix" != NONE &&
1899   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1900 # Use a double $ so make ignores it.
1901 test "$program_suffix" != NONE &&
1902   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1903 # Double any \ or $.  echo might interpret backslashes.
1904 # By default was `s,x,x', remove it if useless.
1905 cat <<\_ACEOF >conftest.sed
1906 s/[\\$]/&&/g;s/;s,x,x,$//
1907 _ACEOF
1908 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1909 rm -f conftest.sed
1910
1911
1912 # expand $ac_aux_dir to an absolute path
1913 am_aux_dir=`cd $ac_aux_dir && pwd`
1914
1915 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1916 # Use eval to expand $SHELL
1917 if eval "$MISSING --run true"; then
1918   am_missing_run="$MISSING --run "
1919 else
1920   am_missing_run=
1921   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1922 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1923 fi
1924
1925 for ac_prog in gawk mawk nawk awk
1926 do
1927   # Extract the first word of "$ac_prog", so it can be a program name with args.
1928 set dummy $ac_prog; ac_word=$2
1929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1931 if test "${ac_cv_prog_AWK+set}" = set; then
1932   echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934   if test -n "$AWK"; then
1935   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1936 else
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940   IFS=$as_save_IFS
1941   test -z "$as_dir" && as_dir=.
1942   for ac_exec_ext in '' $ac_executable_extensions; do
1943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1944     ac_cv_prog_AWK="$ac_prog"
1945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946     break 2
1947   fi
1948 done
1949 done
1950 IFS=$as_save_IFS
1951
1952 fi
1953 fi
1954 AWK=$ac_cv_prog_AWK
1955 if test -n "$AWK"; then
1956   { echo "$as_me:$LINENO: result: $AWK" >&5
1957 echo "${ECHO_T}$AWK" >&6; }
1958 else
1959   { echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6; }
1961 fi
1962
1963
1964   test -n "$AWK" && break
1965 done
1966
1967 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1968 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1969 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1970 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   cat >conftest.make <<\_ACEOF
1974 SHELL = /bin/sh
1975 all:
1976         @echo '@@@%%%=$(MAKE)=@@@%%%'
1977 _ACEOF
1978 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1979 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1980   *@@@%%%=?*=@@@%%%*)
1981     eval ac_cv_prog_make_${ac_make}_set=yes;;
1982   *)
1983     eval ac_cv_prog_make_${ac_make}_set=no;;
1984 esac
1985 rm -f conftest.make
1986 fi
1987 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1988   { echo "$as_me:$LINENO: result: yes" >&5
1989 echo "${ECHO_T}yes" >&6; }
1990   SET_MAKE=
1991 else
1992   { echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6; }
1994   SET_MAKE="MAKE=${MAKE-make}"
1995 fi
1996
1997 rm -rf .tst 2>/dev/null
1998 mkdir .tst 2>/dev/null
1999 if test -d .tst; then
2000   am__leading_dot=.
2001 else
2002   am__leading_dot=_
2003 fi
2004 rmdir .tst 2>/dev/null
2005
2006  # test to see if srcdir already configured
2007 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2008    test -f $srcdir/config.status; then
2009   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2010 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2011    { (exit 1); exit 1; }; }
2012 fi
2013
2014 # test whether we have cygpath
2015 if test -z "$CYGPATH_W"; then
2016   if (cygpath --version) >/dev/null 2>/dev/null; then
2017     CYGPATH_W='cygpath -w'
2018   else
2019     CYGPATH_W=echo
2020   fi
2021 fi
2022
2023
2024 # Define the identity of the package.
2025  PACKAGE=WorldTV99
2026  VERSION=`date +%Y%m%d`
2027
2028
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE "$PACKAGE"
2031 _ACEOF
2032
2033
2034 cat >>confdefs.h <<_ACEOF
2035 #define VERSION "$VERSION"
2036 _ACEOF
2037
2038 # Some tools Automake needs.
2039
2040 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2041
2042
2043 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2044
2045
2046 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2047
2048
2049 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2050
2051
2052 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2053
2054
2055 AMTAR=${AMTAR-"${am_missing_run}tar"}
2056
2057 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2058
2059 # Installed binaries are usually stripped using `strip' when the user
2060 # run `make install-strip'.  However `strip' might not be the right
2061 # tool to use in cross-compilation environments, therefore Automake
2062 # will honor the `STRIP' environment variable to overrule this program.
2063 if test "$cross_compiling" != no; then
2064   if test -n "$ac_tool_prefix"; then
2065   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2066 set dummy ${ac_tool_prefix}strip; ac_word=$2
2067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2069 if test "${ac_cv_prog_STRIP+set}" = set; then
2070   echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072   if test -n "$STRIP"; then
2073   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2074 else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2077 do
2078   IFS=$as_save_IFS
2079   test -z "$as_dir" && as_dir=.
2080   for ac_exec_ext in '' $ac_executable_extensions; do
2081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2082     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084     break 2
2085   fi
2086 done
2087 done
2088 IFS=$as_save_IFS
2089
2090 fi
2091 fi
2092 STRIP=$ac_cv_prog_STRIP
2093 if test -n "$STRIP"; then
2094   { echo "$as_me:$LINENO: result: $STRIP" >&5
2095 echo "${ECHO_T}$STRIP" >&6; }
2096 else
2097   { echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6; }
2099 fi
2100
2101
2102 fi
2103 if test -z "$ac_cv_prog_STRIP"; then
2104   ac_ct_STRIP=$STRIP
2105   # Extract the first word of "strip", so it can be a program name with args.
2106 set dummy strip; ac_word=$2
2107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2109 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2110   echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112   if test -n "$ac_ct_STRIP"; then
2113   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2114 else
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2117 do
2118   IFS=$as_save_IFS
2119   test -z "$as_dir" && as_dir=.
2120   for ac_exec_ext in '' $ac_executable_extensions; do
2121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2122     ac_cv_prog_ac_ct_STRIP="strip"
2123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124     break 2
2125   fi
2126 done
2127 done
2128 IFS=$as_save_IFS
2129
2130 fi
2131 fi
2132 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2133 if test -n "$ac_ct_STRIP"; then
2134   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2135 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2136 else
2137   { echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6; }
2139 fi
2140
2141   if test "x$ac_ct_STRIP" = x; then
2142     STRIP=":"
2143   else
2144     case $cross_compiling:$ac_tool_warned in
2145 yes:)
2146 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2147 whose name does not start with the host triplet.  If you think this
2148 configuration is useful to you, please write to autoconf@gnu.org." >&5
2149 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2150 whose name does not start with the host triplet.  If you think this
2151 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2152 ac_tool_warned=yes ;;
2153 esac
2154     STRIP=$ac_ct_STRIP
2155   fi
2156 else
2157   STRIP="$ac_cv_prog_STRIP"
2158 fi
2159
2160 fi
2161 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2162
2163 # We need awk for the "check" target.  The system "awk" is bad on
2164 # some platforms.
2165
2166
2167
2168
2169 # Make sure we can run config.sub.
2170 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2171   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2172 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2173    { (exit 1); exit 1; }; }
2174
2175 { echo "$as_me:$LINENO: checking build system type" >&5
2176 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2177 if test "${ac_cv_build+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   ac_build_alias=$build_alias
2181 test "x$ac_build_alias" = x &&
2182   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2183 test "x$ac_build_alias" = x &&
2184   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2185 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2186    { (exit 1); exit 1; }; }
2187 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2188   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2189 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2190    { (exit 1); exit 1; }; }
2191
2192 fi
2193 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2194 echo "${ECHO_T}$ac_cv_build" >&6; }
2195 case $ac_cv_build in
2196 *-*-*) ;;
2197 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2198 echo "$as_me: error: invalid value of canonical build" >&2;}
2199    { (exit 1); exit 1; }; };;
2200 esac
2201 build=$ac_cv_build
2202 ac_save_IFS=$IFS; IFS='-'
2203 set x $ac_cv_build
2204 shift
2205 build_cpu=$1
2206 build_vendor=$2
2207 shift; shift
2208 # Remember, the first character of IFS is used to create $*,
2209 # except with old shells:
2210 build_os=$*
2211 IFS=$ac_save_IFS
2212 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2213
2214
2215 { echo "$as_me:$LINENO: checking host system type" >&5
2216 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2217 if test "${ac_cv_host+set}" = set; then
2218   echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220   if test "x$host_alias" = x; then
2221   ac_cv_host=$ac_cv_build
2222 else
2223   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2224     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2225 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2226    { (exit 1); exit 1; }; }
2227 fi
2228
2229 fi
2230 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2231 echo "${ECHO_T}$ac_cv_host" >&6; }
2232 case $ac_cv_host in
2233 *-*-*) ;;
2234 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2235 echo "$as_me: error: invalid value of canonical host" >&2;}
2236    { (exit 1); exit 1; }; };;
2237 esac
2238 host=$ac_cv_host
2239 ac_save_IFS=$IFS; IFS='-'
2240 set x $ac_cv_host
2241 shift
2242 host_cpu=$1
2243 host_vendor=$2
2244 shift; shift
2245 # Remember, the first character of IFS is used to create $*,
2246 # except with old shells:
2247 host_os=$*
2248 IFS=$ac_save_IFS
2249 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2250
2251
2252
2253 #AC_PROG_CC
2254 #AC_PROG_CPP
2255 # Find a good install program.  We prefer a C program (faster),
2256 # so one script is as good as another.  But avoid the broken or
2257 # incompatible versions:
2258 # SysV /etc/install, /usr/sbin/install
2259 # SunOS /usr/etc/install
2260 # IRIX /sbin/install
2261 # AIX /bin/install
2262 # AmigaOS /C/install, which installs bootblocks on floppy discs
2263 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2264 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2265 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2266 # OS/2's system install, which has a completely different semantic
2267 # ./install, which can be erroneously created by make from ./install.sh.
2268 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2269 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2270 if test -z "$INSTALL"; then
2271 if test "${ac_cv_path_install+set}" = set; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2276 do
2277   IFS=$as_save_IFS
2278   test -z "$as_dir" && as_dir=.
2279   # Account for people who put trailing slashes in PATH elements.
2280 case $as_dir/ in
2281   ./ | .// | /cC/* | \
2282   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2283   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2284   /usr/ucb/* ) ;;
2285   *)
2286     # OSF1 and SCO ODT 3.0 have their own names for install.
2287     # Don't use installbsd from OSF since it installs stuff as root
2288     # by default.
2289     for ac_prog in ginstall scoinst install; do
2290       for ac_exec_ext in '' $ac_executable_extensions; do
2291         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2292           if test $ac_prog = install &&
2293             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2294             # AIX install.  It has an incompatible calling convention.
2295             :
2296           elif test $ac_prog = install &&
2297             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2298             # program-specific install script used by HP pwplus--don't use.
2299             :
2300           else
2301             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2302             break 3
2303           fi
2304         fi
2305       done
2306     done
2307     ;;
2308 esac
2309 done
2310 IFS=$as_save_IFS
2311
2312
2313 fi
2314   if test "${ac_cv_path_install+set}" = set; then
2315     INSTALL=$ac_cv_path_install
2316   else
2317     # As a last resort, use the slow shell script.  Don't cache a
2318     # value for INSTALL within a source directory, because that will
2319     # break other packages using the cache if that directory is
2320     # removed, or if the value is a relative name.
2321     INSTALL=$ac_install_sh
2322   fi
2323 fi
2324 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2325 echo "${ECHO_T}$INSTALL" >&6; }
2326
2327 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2328 # It thinks the first close brace ends the variable substitution.
2329 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2330
2331 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2332
2333 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2334
2335 #AC_PROG_RANLIB
2336 #AC_PROG_LIBTOOL
2337 #AC_PROG_INTLTOOL([0.23])
2338 #AC_HEADER_STDC
2339
2340 # Localisation
2341 GETTEXT_PACKAGE=$PACKAGE
2342
2343
2344 cat >>confdefs.h <<_ACEOF
2345 #define GETTEXT_PACKAGE "${GETTEXT_PACKAGE}"
2346 _ACEOF
2347
2348 ALL_LINGUAS="en_GB"
2349 DEPDIR="${am__leading_dot}deps"
2350
2351 ac_config_commands="$ac_config_commands depfiles"
2352
2353
2354 am_make=${MAKE-make}
2355 cat > confinc << 'END'
2356 am__doit:
2357         @echo done
2358 .PHONY: am__doit
2359 END
2360 # If we don't find an include directive, just comment out the code.
2361 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2362 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2363 am__include="#"
2364 am__quote=
2365 _am_result=none
2366 # First try GNU make style include.
2367 echo "include confinc" > confmf
2368 # We grep out `Entering directory' and `Leaving directory'
2369 # messages which can occur if `w' ends up in MAKEFLAGS.
2370 # In particular we don't look at `^make:' because GNU make might
2371 # be invoked under some other name (usually "gmake"), in which
2372 # case it prints its new name instead of `make'.
2373 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2374    am__include=include
2375    am__quote=
2376    _am_result=GNU
2377 fi
2378 # Now try BSD make style include.
2379 if test "$am__include" = "#"; then
2380    echo '.include "confinc"' > confmf
2381    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2382       am__include=.include
2383       am__quote="\""
2384       _am_result=BSD
2385    fi
2386 fi
2387
2388
2389 { echo "$as_me:$LINENO: result: $_am_result" >&5
2390 echo "${ECHO_T}$_am_result" >&6; }
2391 rm -f confinc confmf
2392
2393 # Check whether --enable-dependency-tracking was given.
2394 if test "${enable_dependency_tracking+set}" = set; then
2395   enableval=$enable_dependency_tracking;
2396 fi
2397
2398 if test "x$enable_dependency_tracking" != xno; then
2399   am_depcomp="$ac_aux_dir/depcomp"
2400   AMDEPBACKSLASH='\'
2401 fi
2402
2403
2404 if test "x$enable_dependency_tracking" != xno; then
2405   AMDEP_TRUE=
2406   AMDEP_FALSE='#'
2407 else
2408   AMDEP_TRUE='#'
2409   AMDEP_FALSE=
2410 fi
2411
2412
2413
2414 ac_ext=c
2415 ac_cpp='$CPP $CPPFLAGS'
2416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419 if test -n "$ac_tool_prefix"; then
2420   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_CC+set}" = set; then
2425   echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427   if test -n "$CC"; then
2428   ac_cv_prog_CC="$CC" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433   IFS=$as_save_IFS
2434   test -z "$as_dir" && as_dir=.
2435   for ac_exec_ext in '' $ac_executable_extensions; do
2436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439     break 2
2440   fi
2441 done
2442 done
2443 IFS=$as_save_IFS
2444
2445 fi
2446 fi
2447 CC=$ac_cv_prog_CC
2448 if test -n "$CC"; then
2449   { echo "$as_me:$LINENO: result: $CC" >&5
2450 echo "${ECHO_T}$CC" >&6; }
2451 else
2452   { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2454 fi
2455
2456
2457 fi
2458 if test -z "$ac_cv_prog_CC"; then
2459   ac_ct_CC=$CC
2460   # Extract the first word of "gcc", so it can be a program name with args.
2461 set dummy gcc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2465   echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467   if test -n "$ac_ct_CC"; then
2468   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473   IFS=$as_save_IFS
2474   test -z "$as_dir" && as_dir=.
2475   for ac_exec_ext in '' $ac_executable_extensions; do
2476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477     ac_cv_prog_ac_ct_CC="gcc"
2478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479     break 2
2480   fi
2481 done
2482 done
2483 IFS=$as_save_IFS
2484
2485 fi
2486 fi
2487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2488 if test -n "$ac_ct_CC"; then
2489   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2490 echo "${ECHO_T}$ac_ct_CC" >&6; }
2491 else
2492   { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2494 fi
2495
2496   if test "x$ac_ct_CC" = x; then
2497     CC=""
2498   else
2499     case $cross_compiling:$ac_tool_warned in
2500 yes:)
2501 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2502 whose name does not start with the host triplet.  If you think this
2503 configuration is useful to you, please write to autoconf@gnu.org." >&5
2504 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2505 whose name does not start with the host triplet.  If you think this
2506 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2507 ac_tool_warned=yes ;;
2508 esac
2509     CC=$ac_ct_CC
2510   fi
2511 else
2512   CC="$ac_cv_prog_CC"
2513 fi
2514
2515 if test -z "$CC"; then
2516           if test -n "$ac_tool_prefix"; then
2517     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2518 set dummy ${ac_tool_prefix}cc; ac_word=$2
2519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2521 if test "${ac_cv_prog_CC+set}" = set; then
2522   echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524   if test -n "$CC"; then
2525   ac_cv_prog_CC="$CC" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530   IFS=$as_save_IFS
2531   test -z "$as_dir" && as_dir=.
2532   for ac_exec_ext in '' $ac_executable_extensions; do
2533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534     ac_cv_prog_CC="${ac_tool_prefix}cc"
2535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536     break 2
2537   fi
2538 done
2539 done
2540 IFS=$as_save_IFS
2541
2542 fi
2543 fi
2544 CC=$ac_cv_prog_CC
2545 if test -n "$CC"; then
2546   { echo "$as_me:$LINENO: result: $CC" >&5
2547 echo "${ECHO_T}$CC" >&6; }
2548 else
2549   { echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6; }
2551 fi
2552
2553
2554   fi
2555 fi
2556 if test -z "$CC"; then
2557   # Extract the first word of "cc", so it can be a program name with args.
2558 set dummy cc; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_CC+set}" = set; then
2562   echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564   if test -n "$CC"; then
2565   ac_cv_prog_CC="$CC" # Let the user override the test.
2566 else
2567   ac_prog_rejected=no
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571   IFS=$as_save_IFS
2572   test -z "$as_dir" && as_dir=.
2573   for ac_exec_ext in '' $ac_executable_extensions; do
2574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2576        ac_prog_rejected=yes
2577        continue
2578      fi
2579     ac_cv_prog_CC="cc"
2580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581     break 2
2582   fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 if test $ac_prog_rejected = yes; then
2588   # We found a bogon in the path, so make sure we never use it.
2589   set dummy $ac_cv_prog_CC
2590   shift
2591   if test $# != 0; then
2592     # We chose a different compiler from the bogus one.
2593     # However, it has the same basename, so the bogon will be chosen
2594     # first if we set CC to just the basename; use the full file name.
2595     shift
2596     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2597   fi
2598 fi
2599 fi
2600 fi
2601 CC=$ac_cv_prog_CC
2602 if test -n "$CC"; then
2603   { echo "$as_me:$LINENO: result: $CC" >&5
2604 echo "${ECHO_T}$CC" >&6; }
2605 else
2606   { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2608 fi
2609
2610
2611 fi
2612 if test -z "$CC"; then
2613   if test -n "$ac_tool_prefix"; then
2614   for ac_prog in cl.exe
2615   do
2616     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2620 if test "${ac_cv_prog_CC+set}" = set; then
2621   echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623   if test -n "$CC"; then
2624   ac_cv_prog_CC="$CC" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629   IFS=$as_save_IFS
2630   test -z "$as_dir" && as_dir=.
2631   for ac_exec_ext in '' $ac_executable_extensions; do
2632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635     break 2
2636   fi
2637 done
2638 done
2639 IFS=$as_save_IFS
2640
2641 fi
2642 fi
2643 CC=$ac_cv_prog_CC
2644 if test -n "$CC"; then
2645   { echo "$as_me:$LINENO: result: $CC" >&5
2646 echo "${ECHO_T}$CC" >&6; }
2647 else
2648   { echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6; }
2650 fi
2651
2652
2653     test -n "$CC" && break
2654   done
2655 fi
2656 if test -z "$CC"; then
2657   ac_ct_CC=$CC
2658   for ac_prog in cl.exe
2659 do
2660   # Extract the first word of "$ac_prog", so it can be a program name with args.
2661 set dummy $ac_prog; ac_word=$2
2662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2665   echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667   if test -n "$ac_ct_CC"; then
2668   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2672 do
2673   IFS=$as_save_IFS
2674   test -z "$as_dir" && as_dir=.
2675   for ac_exec_ext in '' $ac_executable_extensions; do
2676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677     ac_cv_prog_ac_ct_CC="$ac_prog"
2678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679     break 2
2680   fi
2681 done
2682 done
2683 IFS=$as_save_IFS
2684
2685 fi
2686 fi
2687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2688 if test -n "$ac_ct_CC"; then
2689   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2690 echo "${ECHO_T}$ac_ct_CC" >&6; }
2691 else
2692   { echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6; }
2694 fi
2695
2696
2697   test -n "$ac_ct_CC" && break
2698 done
2699
2700   if test "x$ac_ct_CC" = x; then
2701     CC=""
2702   else
2703     case $cross_compiling:$ac_tool_warned in
2704 yes:)
2705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2706 whose name does not start with the host triplet.  If you think this
2707 configuration is useful to you, please write to autoconf@gnu.org." >&5
2708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2709 whose name does not start with the host triplet.  If you think this
2710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2711 ac_tool_warned=yes ;;
2712 esac
2713     CC=$ac_ct_CC
2714   fi
2715 fi
2716
2717 fi
2718
2719
2720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2721 See \`config.log' for more details." >&5
2722 echo "$as_me: error: no acceptable C compiler found in \$PATH
2723 See \`config.log' for more details." >&2;}
2724    { (exit 1); exit 1; }; }
2725
2726 # Provide some information about the compiler.
2727 echo "$as_me:$LINENO: checking for C compiler version" >&5
2728 ac_compiler=`set X $ac_compile; echo $2`
2729 { (ac_try="$ac_compiler --version >&5"
2730 case "(($ac_try" in
2731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732   *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735   (eval "$ac_compiler --version >&5") 2>&5
2736   ac_status=$?
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); }
2739 { (ac_try="$ac_compiler -v >&5"
2740 case "(($ac_try" in
2741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742   *) ac_try_echo=$ac_try;;
2743 esac
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745   (eval "$ac_compiler -v >&5") 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }
2749 { (ac_try="$ac_compiler -V >&5"
2750 case "(($ac_try" in
2751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752   *) ac_try_echo=$ac_try;;
2753 esac
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755   (eval "$ac_compiler -V >&5") 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }
2759
2760 cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766
2767 int
2768 main ()
2769 {
2770
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 ac_clean_files_save=$ac_clean_files
2776 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2777 # Try to create an executable without -o first, disregard a.out.
2778 # It will help us diagnose broken compilers, and finding out an intuition
2779 # of exeext.
2780 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2781 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2782 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2783 #
2784 # List of possible output files, starting from the most likely.
2785 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2786 # only as a last resort.  b.out is created by i960 compilers.
2787 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2788 #
2789 # The IRIX 6 linker writes into existing files which may not be
2790 # executable, retaining their permissions.  Remove them first so a
2791 # subsequent execution test works.
2792 ac_rmfiles=
2793 for ac_file in $ac_files
2794 do
2795   case $ac_file in
2796     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2797     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2798   esac
2799 done
2800 rm -f $ac_rmfiles
2801
2802 if { (ac_try="$ac_link_default"
2803 case "(($ac_try" in
2804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805   *) ac_try_echo=$ac_try;;
2806 esac
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808   (eval "$ac_link_default") 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; then
2812   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2813 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2814 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2815 # so that the user can short-circuit this test for compilers unknown to
2816 # Autoconf.
2817 for ac_file in $ac_files ''
2818 do
2819   test -f "$ac_file" || continue
2820   case $ac_file in
2821     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2822         ;;
2823     [ab].out )
2824         # We found the default executable, but exeext='' is most
2825         # certainly right.
2826         break;;
2827     *.* )
2828         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2829         then :; else
2830            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2831         fi
2832         # We set ac_cv_exeext here because the later test for it is not
2833         # safe: cross compilers may not add the suffix if given an `-o'
2834         # argument, so we may need to know it at that point already.
2835         # Even if this section looks crufty: it has the advantage of
2836         # actually working.
2837         break;;
2838     * )
2839         break;;
2840   esac
2841 done
2842 test "$ac_cv_exeext" = no && ac_cv_exeext=
2843
2844 else
2845   ac_file=''
2846 fi
2847
2848 { echo "$as_me:$LINENO: result: $ac_file" >&5
2849 echo "${ECHO_T}$ac_file" >&6; }
2850 if test -z "$ac_file"; then
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: C compiler cannot create executables
2857 See \`config.log' for more details." >&2;}
2858    { (exit 77); exit 77; }; }
2859 fi
2860
2861 ac_exeext=$ac_cv_exeext
2862
2863 # Check that the compiler produces executables we can run.  If not, either
2864 # the compiler is broken, or we cross compile.
2865 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2866 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2867 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2868 # If not cross compiling, check that we can run a simple program.
2869 if test "$cross_compiling" != yes; then
2870   if { ac_try='./$ac_file'
2871   { (case "(($ac_try" in
2872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873   *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876   (eval "$ac_try") 2>&5
2877   ac_status=$?
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); }; }; then
2880     cross_compiling=no
2881   else
2882     if test "$cross_compiling" = maybe; then
2883         cross_compiling=yes
2884     else
2885         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2886 If you meant to cross compile, use \`--host'.
2887 See \`config.log' for more details." >&5
2888 echo "$as_me: error: cannot run C compiled programs.
2889 If you meant to cross compile, use \`--host'.
2890 See \`config.log' for more details." >&2;}
2891    { (exit 1); exit 1; }; }
2892     fi
2893   fi
2894 fi
2895 { echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6; }
2897
2898 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2899 ac_clean_files=$ac_clean_files_save
2900 # Check that the compiler produces executables we can run.  If not, either
2901 # the compiler is broken, or we cross compile.
2902 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2903 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2904 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2905 echo "${ECHO_T}$cross_compiling" >&6; }
2906
2907 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2908 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2909 if { (ac_try="$ac_link"
2910 case "(($ac_try" in
2911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912   *) ac_try_echo=$ac_try;;
2913 esac
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915   (eval "$ac_link") 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }; then
2919   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2920 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2921 # work properly (i.e., refer to `conftest.exe'), while it won't with
2922 # `rm'.
2923 for ac_file in conftest.exe conftest conftest.*; do
2924   test -f "$ac_file" || continue
2925   case $ac_file in
2926     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2927     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2928           break;;
2929     * ) break;;
2930   esac
2931 done
2932 else
2933   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2934 See \`config.log' for more details." >&5
2935 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2936 See \`config.log' for more details." >&2;}
2937    { (exit 1); exit 1; }; }
2938 fi
2939
2940 rm -f conftest$ac_cv_exeext
2941 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2942 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2943
2944 rm -f conftest.$ac_ext
2945 EXEEXT=$ac_cv_exeext
2946 ac_exeext=$EXEEXT
2947 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2948 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2949 if test "${ac_cv_objext+set}" = set; then
2950   echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952   cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h.  */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h.  */
2958
2959 int
2960 main ()
2961 {
2962
2963   ;
2964   return 0;
2965 }
2966 _ACEOF
2967 rm -f conftest.o conftest.obj
2968 if { (ac_try="$ac_compile"
2969 case "(($ac_try" in
2970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971   *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974   (eval "$ac_compile") 2>&5
2975   ac_status=$?
2976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977   (exit $ac_status); }; then
2978   for ac_file in conftest.o conftest.obj conftest.*; do
2979   test -f "$ac_file" || continue;
2980   case $ac_file in
2981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2982     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2983        break;;
2984   esac
2985 done
2986 else
2987   echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2991 See \`config.log' for more details." >&5
2992 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2993 See \`config.log' for more details." >&2;}
2994    { (exit 1); exit 1; }; }
2995 fi
2996
2997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2998 fi
2999 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3000 echo "${ECHO_T}$ac_cv_objext" >&6; }
3001 OBJEXT=$ac_cv_objext
3002 ac_objext=$OBJEXT
3003 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   cat >conftest.$ac_ext <<_ACEOF
3009 /* confdefs.h.  */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h.  */
3014
3015 int
3016 main ()
3017 {
3018 #ifndef __GNUC__
3019        choke me
3020 #endif
3021
3022   ;
3023   return 0;
3024 }
3025 _ACEOF
3026 rm -f conftest.$ac_objext
3027 if { (ac_try="$ac_compile"
3028 case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033   (eval "$ac_compile") 2>conftest.er1
3034   ac_status=$?
3035   grep -v '^ *+' conftest.er1 >conftest.err
3036   rm -f conftest.er1
3037   cat conftest.err >&5
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); } && {
3040          test -z "$ac_c_werror_flag" ||
3041          test ! -s conftest.err
3042        } && test -s conftest.$ac_objext; then
3043   ac_compiler_gnu=yes
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048         ac_compiler_gnu=no
3049 fi
3050
3051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3053
3054 fi
3055 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3056 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3057 GCC=`test $ac_compiler_gnu = yes && echo yes`
3058 ac_test_CFLAGS=${CFLAGS+set}
3059 ac_save_CFLAGS=$CFLAGS
3060 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3061 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3062 if test "${ac_cv_prog_cc_g+set}" = set; then
3063   echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065   ac_save_c_werror_flag=$ac_c_werror_flag
3066    ac_c_werror_flag=yes
3067    ac_cv_prog_cc_g=no
3068    CFLAGS="-g"
3069    cat >conftest.$ac_ext <<_ACEOF
3070 /* confdefs.h.  */
3071 _ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h.  */
3075
3076 int
3077 main ()
3078 {
3079
3080   ;
3081   return 0;
3082 }
3083 _ACEOF
3084 rm -f conftest.$ac_objext
3085 if { (ac_try="$ac_compile"
3086 case "(($ac_try" in
3087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088   *) ac_try_echo=$ac_try;;
3089 esac
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091   (eval "$ac_compile") 2>conftest.er1
3092   ac_status=$?
3093   grep -v '^ *+' conftest.er1 >conftest.err
3094   rm -f conftest.er1
3095   cat conftest.err >&5
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } && {
3098          test -z "$ac_c_werror_flag" ||
3099          test ! -s conftest.err
3100        } && test -s conftest.$ac_objext; then
3101   ac_cv_prog_cc_g=yes
3102 else
3103   echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106         CFLAGS=""
3107       cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h.  */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h.  */
3113
3114 int
3115 main ()
3116 {
3117
3118   ;
3119   return 0;
3120 }
3121 _ACEOF
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3124 case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_compile") 2>conftest.er1
3130   ac_status=$?
3131   grep -v '^ *+' conftest.er1 >conftest.err
3132   rm -f conftest.er1
3133   cat conftest.err >&5
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); } && {
3136          test -z "$ac_c_werror_flag" ||
3137          test ! -s conftest.err
3138        } && test -s conftest.$ac_objext; then
3139   :
3140 else
3141   echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144         ac_c_werror_flag=$ac_save_c_werror_flag
3145          CFLAGS="-g"
3146          cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h.  */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h.  */
3152
3153 int
3154 main ()
3155 {
3156
3157   ;
3158   return 0;
3159 }
3160 _ACEOF
3161 rm -f conftest.$ac_objext
3162 if { (ac_try="$ac_compile"
3163 case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_compile") 2>conftest.er1
3169   ac_status=$?
3170   grep -v '^ *+' conftest.er1 >conftest.err
3171   rm -f conftest.er1
3172   cat conftest.err >&5
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); } && {
3175          test -z "$ac_c_werror_flag" ||
3176          test ! -s conftest.err
3177        } && test -s conftest.$ac_objext; then
3178   ac_cv_prog_cc_g=yes
3179 else
3180   echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3182
3183
3184 fi
3185
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 fi
3188
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 fi
3191
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193    ac_c_werror_flag=$ac_save_c_werror_flag
3194 fi
3195 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3196 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3197 if test "$ac_test_CFLAGS" = set; then
3198   CFLAGS=$ac_save_CFLAGS
3199 elif test $ac_cv_prog_cc_g = yes; then
3200   if test "$GCC" = yes; then
3201     CFLAGS="-g -O2"
3202   else
3203     CFLAGS="-g"
3204   fi
3205 else
3206   if test "$GCC" = yes; then
3207     CFLAGS="-O2"
3208   else
3209     CFLAGS=
3210   fi
3211 fi
3212 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3213 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3214 if test "${ac_cv_prog_cc_c89+set}" = set; then
3215   echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217   ac_cv_prog_cc_c89=no
3218 ac_save_CC=$CC
3219 cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h.  */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h.  */
3225 #include <stdarg.h>
3226 #include <stdio.h>
3227 #include <sys/types.h>
3228 #include <sys/stat.h>
3229 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3230 struct buf { int x; };
3231 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3232 static char *e (p, i)
3233      char **p;
3234      int i;
3235 {
3236   return p[i];
3237 }
3238 static char *f (char * (*g) (char **, int), char **p, ...)
3239 {
3240   char *s;
3241   va_list v;
3242   va_start (v,p);
3243   s = g (p, va_arg (v,int));
3244   va_end (v);
3245   return s;
3246 }
3247
3248 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3249    function prototypes and stuff, but not '\xHH' hex character constants.
3250    These don't provoke an error unfortunately, instead are silently treated
3251    as 'x'.  The following induces an error, until -std is added to get
3252    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3253    array size at least.  It's necessary to write '\x00'==0 to get something
3254    that's true only with -std.  */
3255 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3256
3257 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3258    inside strings and character constants.  */
3259 #define FOO(x) 'x'
3260 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3261
3262 int test (int i, double x);
3263 struct s1 {int (*f) (int a);};
3264 struct s2 {int (*f) (double a);};
3265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3266 int argc;
3267 char **argv;
3268 int
3269 main ()
3270 {
3271 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3272   ;
3273   return 0;
3274 }
3275 _ACEOF
3276 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3277         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3278 do
3279   CC="$ac_save_CC $ac_arg"
3280   rm -f conftest.$ac_objext
3281 if { (ac_try="$ac_compile"
3282 case "(($ac_try" in
3283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284   *) ac_try_echo=$ac_try;;
3285 esac
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287   (eval "$ac_compile") 2>conftest.er1
3288   ac_status=$?
3289   grep -v '^ *+' conftest.er1 >conftest.err
3290   rm -f conftest.er1
3291   cat conftest.err >&5
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); } && {
3294          test -z "$ac_c_werror_flag" ||
3295          test ! -s conftest.err
3296        } && test -s conftest.$ac_objext; then
3297   ac_cv_prog_cc_c89=$ac_arg
3298 else
3299   echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3301
3302
3303 fi
3304
3305 rm -f core conftest.err conftest.$ac_objext
3306   test "x$ac_cv_prog_cc_c89" != "xno" && break
3307 done
3308 rm -f conftest.$ac_ext
3309 CC=$ac_save_CC
3310
3311 fi
3312 # AC_CACHE_VAL
3313 case "x$ac_cv_prog_cc_c89" in
3314   x)
3315     { echo "$as_me:$LINENO: result: none needed" >&5
3316 echo "${ECHO_T}none needed" >&6; } ;;
3317   xno)
3318     { echo "$as_me:$LINENO: result: unsupported" >&5
3319 echo "${ECHO_T}unsupported" >&6; } ;;
3320   *)
3321     CC="$CC $ac_cv_prog_cc_c89"
3322     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3323 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3324 esac
3325
3326
3327 ac_ext=c
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332
3333 depcc="$CC"   am_compiler_list=
3334
3335 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3336 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3337 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3338   echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3341   # We make a subdir and do the tests there.  Otherwise we can end up
3342   # making bogus files that we don't know about and never remove.  For
3343   # instance it was reported that on HP-UX the gcc test will end up
3344   # making a dummy file named `D' -- because `-MD' means `put the output
3345   # in D'.
3346   mkdir conftest.dir
3347   # Copy depcomp to subdir because otherwise we won't find it if we're
3348   # using a relative directory.
3349   cp "$am_depcomp" conftest.dir
3350   cd conftest.dir
3351   # We will build objects and dependencies in a subdirectory because
3352   # it helps to detect inapplicable dependency modes.  For instance
3353   # both Tru64's cc and ICC support -MD to output dependencies as a
3354   # side effect of compilation, but ICC will put the dependencies in
3355   # the current directory while Tru64 will put them in the object
3356   # directory.
3357   mkdir sub
3358
3359   am_cv_CC_dependencies_compiler_type=none
3360   if test "$am_compiler_list" = ""; then
3361      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3362   fi
3363   for depmode in $am_compiler_list; do
3364     # Setup a source with many dependencies, because some compilers
3365     # like to wrap large dependency lists on column 80 (with \), and
3366     # we should not choose a depcomp mode which is confused by this.
3367     #
3368     # We need to recreate these files for each test, as the compiler may
3369     # overwrite some of them when testing with obscure command lines.
3370     # This happens at least with the AIX C compiler.
3371     : > sub/conftest.c
3372     for i in 1 2 3 4 5 6; do
3373       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3374       : > sub/conftst$i.h
3375     done
3376     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3377
3378     case $depmode in
3379     nosideeffect)
3380       # after this tag, mechanisms are not by side-effect, so they'll
3381       # only be used when explicitly requested
3382       if test "x$enable_dependency_tracking" = xyes; then
3383         continue
3384       else
3385         break
3386       fi
3387       ;;
3388     none) break ;;
3389     esac
3390     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3391     # mode.  It turns out that the SunPro C++ compiler does not properly
3392     # handle `-M -o', and we need to detect this.
3393     if depmode=$depmode \
3394        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3395        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3396        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3397          >/dev/null 2>conftest.err &&
3398        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3399        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3400        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3401       # icc doesn't choke on unknown options, it will just issue warnings
3402       # (even with -Werror).  So we grep stderr for any message
3403       # that says an option was ignored.
3404       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3405         am_cv_CC_dependencies_compiler_type=$depmode
3406         break
3407       fi
3408     fi
3409   done
3410
3411   cd ..
3412   rm -rf conftest.dir
3413 else
3414   am_cv_CC_dependencies_compiler_type=none
3415 fi
3416
3417 fi
3418 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3419 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3420 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3421
3422
3423
3424 if
3425   test "x$enable_dependency_tracking" != xno \
3426   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3427   am__fastdepCC_TRUE=
3428   am__fastdepCC_FALSE='#'
3429 else
3430   am__fastdepCC_TRUE='#'
3431   am__fastdepCC_FALSE=
3432 fi
3433
3434
3435
3436 ac_ext=c
3437 ac_cpp='$CPP $CPPFLAGS'
3438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3442 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3443 # On Suns, sometimes $CPP names a directory.
3444 if test -n "$CPP" && test -d "$CPP"; then
3445   CPP=
3446 fi
3447 if test -z "$CPP"; then
3448   if test "${ac_cv_prog_CPP+set}" = set; then
3449   echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451       # Double quotes because CPP needs to be expanded
3452     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3453     do
3454       ac_preproc_ok=false
3455 for ac_c_preproc_warn_flag in '' yes
3456 do
3457   # Use a header file that comes with gcc, so configuring glibc
3458   # with a fresh cross-compiler works.
3459   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3460   # <limits.h> exists even on freestanding compilers.
3461   # On the NeXT, cc -E runs the code through the compiler's parser,
3462   # not just through cpp. "Syntax error" is here to catch this case.
3463   cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469 #ifdef __STDC__
3470 # include <limits.h>
3471 #else
3472 # include <assert.h>
3473 #endif
3474                      Syntax error
3475 _ACEOF
3476 if { (ac_try="$ac_cpp conftest.$ac_ext"
3477 case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3483   ac_status=$?
3484   grep -v '^ *+' conftest.er1 >conftest.err
3485   rm -f conftest.er1
3486   cat conftest.err >&5
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); } >/dev/null && {
3489          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3490          test ! -s conftest.err
3491        }; then
3492   :
3493 else
3494   echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497   # Broken: fails on valid input.
3498 continue
3499 fi
3500
3501 rm -f conftest.err conftest.$ac_ext
3502
3503   # OK, works on sane cases.  Now check whether nonexistent headers
3504   # can be detected and how.
3505   cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h.  */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h.  */
3511 #include <ac_nonexistent.h>
3512 _ACEOF
3513 if { (ac_try="$ac_cpp conftest.$ac_ext"
3514 case "(($ac_try" in
3515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516   *) ac_try_echo=$ac_try;;
3517 esac
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3520   ac_status=$?
3521   grep -v '^ *+' conftest.er1 >conftest.err
3522   rm -f conftest.er1
3523   cat conftest.err >&5
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } >/dev/null && {
3526          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3527          test ! -s conftest.err
3528        }; then
3529   # Broken: success on invalid input.
3530 continue
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535   # Passes both tests.
3536 ac_preproc_ok=:
3537 break
3538 fi
3539
3540 rm -f conftest.err conftest.$ac_ext
3541
3542 done
3543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3544 rm -f conftest.err conftest.$ac_ext
3545 if $ac_preproc_ok; then
3546   break
3547 fi
3548
3549     done
3550     ac_cv_prog_CPP=$CPP
3551
3552 fi
3553   CPP=$ac_cv_prog_CPP
3554 else
3555   ac_cv_prog_CPP=$CPP
3556 fi
3557 { echo "$as_me:$LINENO: result: $CPP" >&5
3558 echo "${ECHO_T}$CPP" >&6; }
3559 ac_preproc_ok=false
3560 for ac_c_preproc_warn_flag in '' yes
3561 do
3562   # Use a header file that comes with gcc, so configuring glibc
3563   # with a fresh cross-compiler works.
3564   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3565   # <limits.h> exists even on freestanding compilers.
3566   # On the NeXT, cc -E runs the code through the compiler's parser,
3567   # not just through cpp. "Syntax error" is here to catch this case.
3568   cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h.  */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h.  */
3574 #ifdef __STDC__
3575 # include <limits.h>
3576 #else
3577 # include <assert.h>
3578 #endif
3579                      Syntax error
3580 _ACEOF
3581 if { (ac_try="$ac_cpp conftest.$ac_ext"
3582 case "(($ac_try" in
3583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584   *) ac_try_echo=$ac_try;;
3585 esac
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3588   ac_status=$?
3589   grep -v '^ *+' conftest.er1 >conftest.err
3590   rm -f conftest.er1
3591   cat conftest.err >&5
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); } >/dev/null && {
3594          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3595          test ! -s conftest.err
3596        }; then
3597   :
3598 else
3599   echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3601
3602   # Broken: fails on valid input.
3603 continue
3604 fi
3605
3606 rm -f conftest.err conftest.$ac_ext
3607
3608   # OK, works on sane cases.  Now check whether nonexistent headers
3609   # can be detected and how.
3610   cat >conftest.$ac_ext <<_ACEOF
3611 /* confdefs.h.  */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h.  */
3616 #include <ac_nonexistent.h>
3617 _ACEOF
3618 if { (ac_try="$ac_cpp conftest.$ac_ext"
3619 case "(($ac_try" in
3620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621   *) ac_try_echo=$ac_try;;
3622 esac
3623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3624   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3625   ac_status=$?
3626   grep -v '^ *+' conftest.er1 >conftest.err
3627   rm -f conftest.er1
3628   cat conftest.err >&5
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); } >/dev/null && {
3631          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3632          test ! -s conftest.err
3633        }; then
3634   # Broken: success on invalid input.
3635 continue
3636 else
3637   echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640   # Passes both tests.
3641 ac_preproc_ok=:
3642 break
3643 fi
3644
3645 rm -f conftest.err conftest.$ac_ext
3646
3647 done
3648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3649 rm -f conftest.err conftest.$ac_ext
3650 if $ac_preproc_ok; then
3651   :
3652 else
3653   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3654 See \`config.log' for more details." >&5
3655 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3656 See \`config.log' for more details." >&2;}
3657    { (exit 1); exit 1; }; }
3658 fi
3659
3660 ac_ext=c
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
3666
3667 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3668 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3669 if test "${ac_cv_path_GREP+set}" = set; then
3670   echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672   # Extract the first word of "grep ggrep" to use in msg output
3673 if test -z "$GREP"; then
3674 set dummy grep ggrep; ac_prog_name=$2
3675 if test "${ac_cv_path_GREP+set}" = set; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678   ac_path_GREP_found=false
3679 # Loop through the user's path and test for each of PROGNAME-LIST
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685   for ac_prog in grep ggrep; do
3686   for ac_exec_ext in '' $ac_executable_extensions; do
3687     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3688     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3689     # Check for GNU ac_path_GREP and select it if it is found.
3690   # Check for GNU $ac_path_GREP
3691 case `"$ac_path_GREP" --version 2>&1` in
3692 *GNU*)
3693   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3694 *)
3695   ac_count=0
3696   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3697   while :
3698   do
3699     cat "conftest.in" "conftest.in" >"conftest.tmp"
3700     mv "conftest.tmp" "conftest.in"
3701     cp "conftest.in" "conftest.nl"
3702     echo 'GREP' >> "conftest.nl"
3703     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3704     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3705     ac_count=`expr $ac_count + 1`
3706     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3707       # Best one so far, save it but keep looking for a better one
3708       ac_cv_path_GREP="$ac_path_GREP"
3709       ac_path_GREP_max=$ac_count
3710     fi
3711     # 10*(2^10) chars as input seems more than enough
3712     test $ac_count -gt 10 && break
3713   done
3714   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3715 esac
3716
3717
3718     $ac_path_GREP_found && break 3
3719   done
3720 done
3721
3722 done
3723 IFS=$as_save_IFS
3724
3725
3726 fi
3727
3728 GREP="$ac_cv_path_GREP"
3729 if test -z "$GREP"; then
3730   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3731 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3732    { (exit 1); exit 1; }; }
3733 fi
3734
3735 else
3736   ac_cv_path_GREP=$GREP
3737 fi
3738
3739
3740 fi
3741 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3742 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3743  GREP="$ac_cv_path_GREP"
3744
3745
3746 { echo "$as_me:$LINENO: checking for egrep" >&5
3747 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3748 if test "${ac_cv_path_EGREP+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3752    then ac_cv_path_EGREP="$GREP -E"
3753    else
3754      # Extract the first word of "egrep" to use in msg output
3755 if test -z "$EGREP"; then
3756 set dummy egrep; ac_prog_name=$2
3757 if test "${ac_cv_path_EGREP+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760   ac_path_EGREP_found=false
3761 # Loop through the user's path and test for each of PROGNAME-LIST
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3764 do
3765   IFS=$as_save_IFS
3766   test -z "$as_dir" && as_dir=.
3767   for ac_prog in egrep; do
3768   for ac_exec_ext in '' $ac_executable_extensions; do
3769     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3770     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3771     # Check for GNU ac_path_EGREP and select it if it is found.
3772   # Check for GNU $ac_path_EGREP
3773 case `"$ac_path_EGREP" --version 2>&1` in
3774 *GNU*)
3775   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3776 *)
3777   ac_count=0
3778   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3779   while :
3780   do
3781     cat "conftest.in" "conftest.in" >"conftest.tmp"
3782     mv "conftest.tmp" "conftest.in"
3783     cp "conftest.in" "conftest.nl"
3784     echo 'EGREP' >> "conftest.nl"
3785     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3786     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3787     ac_count=`expr $ac_count + 1`
3788     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3789       # Best one so far, save it but keep looking for a better one
3790       ac_cv_path_EGREP="$ac_path_EGREP"
3791       ac_path_EGREP_max=$ac_count
3792     fi
3793     # 10*(2^10) chars as input seems more than enough
3794     test $ac_count -gt 10 && break
3795   done
3796   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3797 esac
3798
3799
3800     $ac_path_EGREP_found && break 3
3801   done
3802 done
3803
3804 done
3805 IFS=$as_save_IFS
3806
3807
3808 fi
3809
3810 EGREP="$ac_cv_path_EGREP"
3811 if test -z "$EGREP"; then
3812   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3813 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3814    { (exit 1); exit 1; }; }
3815 fi
3816
3817 else
3818   ac_cv_path_EGREP=$EGREP
3819 fi
3820
3821
3822    fi
3823 fi
3824 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3825 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3826  EGREP="$ac_cv_path_EGREP"
3827
3828
3829 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3831 if test "${ac_cv_header_stdc+set}" = set; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834   cat >conftest.$ac_ext <<_ACEOF
3835 /* confdefs.h.  */
3836 _ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h.  */
3840 #include <stdlib.h>
3841 #include <stdarg.h>
3842 #include <string.h>
3843 #include <float.h>
3844
3845 int
3846 main ()
3847 {
3848
3849   ;
3850   return 0;
3851 }
3852 _ACEOF
3853 rm -f conftest.$ac_objext
3854 if { (ac_try="$ac_compile"
3855 case "(($ac_try" in
3856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857   *) ac_try_echo=$ac_try;;
3858 esac
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860   (eval "$ac_compile") 2>conftest.er1
3861   ac_status=$?
3862   grep -v '^ *+' conftest.er1 >conftest.err
3863   rm -f conftest.er1
3864   cat conftest.err >&5
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } && {
3867          test -z "$ac_c_werror_flag" ||
3868          test ! -s conftest.err
3869        } && test -s conftest.$ac_objext; then
3870   ac_cv_header_stdc=yes
3871 else
3872   echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3874
3875         ac_cv_header_stdc=no
3876 fi
3877
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879
3880 if test $ac_cv_header_stdc = yes; then
3881   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3882   cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h.  */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h.  */
3888 #include <string.h>
3889
3890 _ACEOF
3891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3892   $EGREP "memchr" >/dev/null 2>&1; then
3893   :
3894 else
3895   ac_cv_header_stdc=no
3896 fi
3897 rm -f conftest*
3898
3899 fi
3900
3901 if test $ac_cv_header_stdc = yes; then
3902   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3903   cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h.  */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h.  */
3909 #include <stdlib.h>
3910
3911 _ACEOF
3912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3913   $EGREP "free" >/dev/null 2>&1; then
3914   :
3915 else
3916   ac_cv_header_stdc=no
3917 fi
3918 rm -f conftest*
3919
3920 fi
3921
3922 if test $ac_cv_header_stdc = yes; then
3923   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3924   if test "$cross_compiling" = yes; then
3925   :
3926 else
3927   cat >conftest.$ac_ext <<_ACEOF
3928 /* confdefs.h.  */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h.  */
3933 #include <ctype.h>
3934 #include <stdlib.h>
3935 #if ((' ' & 0x0FF) == 0x020)
3936 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3937 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3938 #else
3939 # define ISLOWER(c) \
3940                    (('a' <= (c) && (c) <= 'i') \
3941                      || ('j' <= (c) && (c) <= 'r') \
3942                      || ('s' <= (c) && (c) <= 'z'))
3943 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3944 #endif
3945
3946 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3947 int
3948 main ()
3949 {
3950   int i;
3951   for (i = 0; i < 256; i++)
3952     if (XOR (islower (i), ISLOWER (i))
3953         || toupper (i) != TOUPPER (i))
3954       return 2;
3955   return 0;
3956 }
3957 _ACEOF
3958 rm -f conftest$ac_exeext
3959 if { (ac_try="$ac_link"
3960 case "(($ac_try" in
3961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962   *) ac_try_echo=$ac_try;;
3963 esac
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965   (eval "$ac_link") 2>&5
3966   ac_status=$?
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3969   { (case "(($ac_try" in
3970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971   *) ac_try_echo=$ac_try;;
3972 esac
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974   (eval "$ac_try") 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); }; }; then
3978   :
3979 else
3980   echo "$as_me: program exited with status $ac_status" >&5
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3983
3984 ( exit $ac_status )
3985 ac_cv_header_stdc=no
3986 fi
3987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3988 fi
3989
3990
3991 fi
3992 fi
3993 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3994 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3995 if test $ac_cv_header_stdc = yes; then
3996
3997 cat >>confdefs.h <<\_ACEOF
3998 #define STDC_HEADERS 1
3999 _ACEOF
4000
4001 fi
4002
4003 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4014                   inttypes.h stdint.h unistd.h
4015 do
4016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4017 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4020   echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022   cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h.  */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h.  */
4028 $ac_includes_default
4029
4030 #include <$ac_header>
4031 _ACEOF
4032 rm -f conftest.$ac_objext
4033 if { (ac_try="$ac_compile"
4034 case "(($ac_try" in
4035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036   *) ac_try_echo=$ac_try;;
4037 esac
4038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4039   (eval "$ac_compile") 2>conftest.er1
4040   ac_status=$?
4041   grep -v '^ *+' conftest.er1 >conftest.err
4042   rm -f conftest.er1
4043   cat conftest.err >&5
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); } && {
4046          test -z "$ac_c_werror_flag" ||
4047          test ! -s conftest.err
4048        } && test -s conftest.$ac_objext; then
4049   eval "$as_ac_Header=yes"
4050 else
4051   echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4053
4054         eval "$as_ac_Header=no"
4055 fi
4056
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 fi
4059 ac_res=`eval echo '${'$as_ac_Header'}'`
4060                { echo "$as_me:$LINENO: result: $ac_res" >&5
4061 echo "${ECHO_T}$ac_res" >&6; }
4062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4063   cat >>confdefs.h <<_ACEOF
4064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4065 _ACEOF
4066
4067 fi
4068
4069 done
4070
4071
4072
4073
4074 for ac_header in locale.h
4075 do
4076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4078   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 fi
4083 ac_res=`eval echo '${'$as_ac_Header'}'`
4084                { echo "$as_me:$LINENO: result: $ac_res" >&5
4085 echo "${ECHO_T}$ac_res" >&6; }
4086 else
4087   # Is the header compilable?
4088 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4090 cat >conftest.$ac_ext <<_ACEOF
4091 /* confdefs.h.  */
4092 _ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h.  */
4096 $ac_includes_default
4097 #include <$ac_header>
4098 _ACEOF
4099 rm -f conftest.$ac_objext
4100 if { (ac_try="$ac_compile"
4101 case "(($ac_try" in
4102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103   *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106   (eval "$ac_compile") 2>conftest.er1
4107   ac_status=$?
4108   grep -v '^ *+' conftest.er1 >conftest.err
4109   rm -f conftest.er1
4110   cat conftest.err >&5
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); } && {
4113          test -z "$ac_c_werror_flag" ||
4114          test ! -s conftest.err
4115        } && test -s conftest.$ac_objext; then
4116   ac_header_compiler=yes
4117 else
4118   echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4120
4121         ac_header_compiler=no
4122 fi
4123
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4126 echo "${ECHO_T}$ac_header_compiler" >&6; }
4127
4128 # Is the header present?
4129 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4131 cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h.  */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h.  */
4137 #include <$ac_header>
4138 _ACEOF
4139 if { (ac_try="$ac_cpp conftest.$ac_ext"
4140 case "(($ac_try" in
4141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142   *) ac_try_echo=$ac_try;;
4143 esac
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4146   ac_status=$?
4147   grep -v '^ *+' conftest.er1 >conftest.err
4148   rm -f conftest.er1
4149   cat conftest.err >&5
4150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151   (exit $ac_status); } >/dev/null && {
4152          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4153          test ! -s conftest.err
4154        }; then
4155   ac_header_preproc=yes
4156 else
4157   echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4159
4160   ac_header_preproc=no
4161 fi
4162
4163 rm -f conftest.err conftest.$ac_ext
4164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4165 echo "${ECHO_T}$ac_header_preproc" >&6; }
4166
4167 # So?  What about this header?
4168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4169   yes:no: )
4170     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4174     ac_header_preproc=yes
4175     ;;
4176   no:yes:* )
4177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4179     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4180 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4181     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4183     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4184 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4187     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4189
4190     ;;
4191 esac
4192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   eval "$as_ac_Header=\$ac_header_preproc"
4198 fi
4199 ac_res=`eval echo '${'$as_ac_Header'}'`
4200                { echo "$as_me:$LINENO: result: $ac_res" >&5
4201 echo "${ECHO_T}$ac_res" >&6; }
4202
4203 fi
4204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4205   cat >>confdefs.h <<_ACEOF
4206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4207 _ACEOF
4208
4209 fi
4210
4211 done
4212
4213     if test $ac_cv_header_locale_h = yes; then
4214     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4215 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
4216 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4217   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219   cat >conftest.$ac_ext <<_ACEOF
4220 /* confdefs.h.  */
4221 _ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h.  */
4225 #include <locale.h>
4226 int
4227 main ()
4228 {
4229 return LC_MESSAGES
4230   ;
4231   return 0;
4232 }
4233 _ACEOF
4234 rm -f conftest.$ac_objext conftest$ac_exeext
4235 if { (ac_try="$ac_link"
4236 case "(($ac_try" in
4237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238   *) ac_try_echo=$ac_try;;
4239 esac
4240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241   (eval "$ac_link") 2>conftest.er1
4242   ac_status=$?
4243   grep -v '^ *+' conftest.er1 >conftest.err
4244   rm -f conftest.er1
4245   cat conftest.err >&5
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); } && {
4248          test -z "$ac_c_werror_flag" ||
4249          test ! -s conftest.err
4250        } && test -s conftest$ac_exeext &&
4251        $as_test_x conftest$ac_exeext; then
4252   am_cv_val_LC_MESSAGES=yes
4253 else
4254   echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257         am_cv_val_LC_MESSAGES=no
4258 fi
4259
4260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4261       conftest$ac_exeext conftest.$ac_ext
4262 fi
4263 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4264 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
4265     if test $am_cv_val_LC_MESSAGES = yes; then
4266
4267 cat >>confdefs.h <<\_ACEOF
4268 #define HAVE_LC_MESSAGES 1
4269 _ACEOF
4270
4271     fi
4272   fi
4273          USE_NLS=yes
4274
4275
4276     gt_cv_have_gettext=no
4277
4278     CATOBJEXT=NONE
4279     XGETTEXT=:
4280     INTLLIBS=
4281
4282     if test "${ac_cv_header_libintl_h+set}" = set; then
4283   { echo "$as_me:$LINENO: checking for libintl.h" >&5
4284 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
4285 if test "${ac_cv_header_libintl_h+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 fi
4288 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4289 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
4290 else
4291   # Is the header compilable?
4292 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
4293 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
4294 cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h.  */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h.  */
4300 $ac_includes_default
4301 #include <libintl.h>
4302 _ACEOF
4303 rm -f conftest.$ac_objext
4304 if { (ac_try="$ac_compile"
4305 case "(($ac_try" in
4306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307   *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310   (eval "$ac_compile") 2>conftest.er1
4311   ac_status=$?
4312   grep -v '^ *+' conftest.er1 >conftest.err
4313   rm -f conftest.er1
4314   cat conftest.err >&5
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); } && {
4317          test -z "$ac_c_werror_flag" ||
4318          test ! -s conftest.err
4319        } && test -s conftest.$ac_objext; then
4320   ac_header_compiler=yes
4321 else
4322   echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325         ac_header_compiler=no
4326 fi
4327
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4330 echo "${ECHO_T}$ac_header_compiler" >&6; }
4331
4332 # Is the header present?
4333 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
4334 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341 #include <libintl.h>
4342 _ACEOF
4343 if { (ac_try="$ac_cpp conftest.$ac_ext"
4344 case "(($ac_try" in
4345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346   *) ac_try_echo=$ac_try;;
4347 esac
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4350   ac_status=$?
4351   grep -v '^ *+' conftest.er1 >conftest.err
4352   rm -f conftest.er1
4353   cat conftest.err >&5
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); } >/dev/null && {
4356          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4357          test ! -s conftest.err
4358        }; then
4359   ac_header_preproc=yes
4360 else
4361   echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4363
4364   ac_header_preproc=no
4365 fi
4366
4367 rm -f conftest.err conftest.$ac_ext
4368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4369 echo "${ECHO_T}$ac_header_preproc" >&6; }
4370
4371 # So?  What about this header?
4372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4373   yes:no: )
4374     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4375 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4376     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4377 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4378     ac_header_preproc=yes
4379     ;;
4380   no:yes:* )
4381     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4382 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4383     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
4384 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
4385     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4386 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4387     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
4388 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4389     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4390 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4391     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4392 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4393
4394     ;;
4395 esac
4396 { echo "$as_me:$LINENO: checking for libintl.h" >&5
4397 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
4398 if test "${ac_cv_header_libintl_h+set}" = set; then
4399   echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401   ac_cv_header_libintl_h=$ac_header_preproc
4402 fi
4403 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4404 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
4405
4406 fi
4407 if test $ac_cv_header_libintl_h = yes; then
4408   gt_cv_func_dgettext_libintl="no"
4409       libintl_extra_libs=""
4410
4411       #
4412       # First check in libc
4413       #
4414       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
4415 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
4416 if test "${gt_cv_func_ngettext_libc+set}" = set; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419   cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h.  */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h.  */
4425
4426 #include <libintl.h>
4427
4428 int
4429 main ()
4430 {
4431 return !ngettext ("","", 1)
4432   ;
4433   return 0;
4434 }
4435 _ACEOF
4436 rm -f conftest.$ac_objext conftest$ac_exeext
4437 if { (ac_try="$ac_link"
4438 case "(($ac_try" in
4439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440   *) ac_try_echo=$ac_try;;
4441 esac
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443   (eval "$ac_link") 2>conftest.er1
4444   ac_status=$?
4445   grep -v '^ *+' conftest.er1 >conftest.err
4446   rm -f conftest.er1
4447   cat conftest.err >&5
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); } && {
4450          test -z "$ac_c_werror_flag" ||
4451          test ! -s conftest.err
4452        } && test -s conftest$ac_exeext &&
4453        $as_test_x conftest$ac_exeext; then
4454   gt_cv_func_ngettext_libc=yes
4455 else
4456   echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4458
4459         gt_cv_func_ngettext_libc=no
4460 fi
4461
4462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4463       conftest$ac_exeext conftest.$ac_ext
4464
4465 fi
4466 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
4467 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
4468
4469       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
4470               { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
4471 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
4472 if test "${gt_cv_func_dgettext_libc+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h.  */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h.  */
4481
4482 #include <libintl.h>
4483
4484 int
4485 main ()
4486 {
4487 return !dgettext ("","")
4488   ;
4489   return 0;
4490 }
4491 _ACEOF
4492 rm -f conftest.$ac_objext conftest$ac_exeext
4493 if { (ac_try="$ac_link"
4494 case "(($ac_try" in
4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496   *) ac_try_echo=$ac_try;;
4497 esac
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499   (eval "$ac_link") 2>conftest.er1
4500   ac_status=$?
4501   grep -v '^ *+' conftest.er1 >conftest.err
4502   rm -f conftest.er1
4503   cat conftest.err >&5
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); } && {
4506          test -z "$ac_c_werror_flag" ||
4507          test ! -s conftest.err
4508        } && test -s conftest$ac_exeext &&
4509        $as_test_x conftest$ac_exeext; then
4510   gt_cv_func_dgettext_libc=yes
4511 else
4512   echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4514
4515         gt_cv_func_dgettext_libc=no
4516 fi
4517
4518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4519       conftest$ac_exeext conftest.$ac_ext
4520
4521 fi
4522 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
4523 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
4524       fi
4525
4526       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
4527
4528 for ac_func in bind_textdomain_codeset
4529 do
4530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4531 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4534   echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536   cat >conftest.$ac_ext <<_ACEOF
4537 /* confdefs.h.  */
4538 _ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h.  */
4542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4544 #define $ac_func innocuous_$ac_func
4545
4546 /* System header to define __stub macros and hopefully few prototypes,
4547     which can conflict with char $ac_func (); below.
4548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4549     <limits.h> exists even on freestanding compilers.  */
4550
4551 #ifdef __STDC__
4552 # include <limits.h>
4553 #else
4554 # include <assert.h>
4555 #endif
4556
4557 #undef $ac_func
4558
4559 /* Override any GCC internal prototype to avoid an error.
4560    Use char because int might match the return type of a GCC
4561    builtin and then its argument prototype would still apply.  */
4562 #ifdef __cplusplus
4563 extern "C"
4564 #endif
4565 char $ac_func ();
4566 /* The GNU C library defines this for functions which it implements
4567     to always fail with ENOSYS.  Some functions are actually named
4568     something starting with __ and the normal name is an alias.  */
4569 #if defined __stub_$ac_func || defined __stub___$ac_func
4570 choke me
4571 #endif
4572
4573 int
4574 main ()
4575 {
4576 return $ac_func ();
4577   ;
4578   return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext conftest$ac_exeext
4582 if { (ac_try="$ac_link"
4583 case "(($ac_try" in
4584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585   *) ac_try_echo=$ac_try;;
4586 esac
4587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588   (eval "$ac_link") 2>conftest.er1
4589   ac_status=$?
4590   grep -v '^ *+' conftest.er1 >conftest.err
4591   rm -f conftest.er1
4592   cat conftest.err >&5
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } && {
4595          test -z "$ac_c_werror_flag" ||
4596          test ! -s conftest.err
4597        } && test -s conftest$ac_exeext &&
4598        $as_test_x conftest$ac_exeext; then
4599   eval "$as_ac_var=yes"
4600 else
4601   echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4603
4604         eval "$as_ac_var=no"
4605 fi
4606
4607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4608       conftest$ac_exeext conftest.$ac_ext
4609 fi
4610 ac_res=`eval echo '${'$as_ac_var'}'`
4611                { echo "$as_me:$LINENO: result: $ac_res" >&5
4612 echo "${ECHO_T}$ac_res" >&6; }
4613 if test `eval echo '${'$as_ac_var'}'` = yes; then
4614   cat >>confdefs.h <<_ACEOF
4615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4616 _ACEOF
4617
4618 fi
4619 done
4620
4621       fi
4622
4623       #
4624       # If we don't have everything we want, check in libintl
4625       #
4626       if test "$gt_cv_func_dgettext_libc" != "yes" \
4627          || test "$gt_cv_func_ngettext_libc" != "yes" \
4628          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
4629
4630         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4631 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
4632 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635   ac_check_lib_save_LIBS=$LIBS
4636 LIBS="-lintl  $LIBS"
4637 cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643
4644 /* Override any GCC internal prototype to avoid an error.
4645    Use char because int might match the return type of a GCC
4646    builtin and then its argument prototype would still apply.  */
4647 #ifdef __cplusplus
4648 extern "C"
4649 #endif
4650 char bindtextdomain ();
4651 int
4652 main ()
4653 {
4654 return bindtextdomain ();
4655   ;
4656   return 0;
4657 }
4658 _ACEOF
4659 rm -f conftest.$ac_objext conftest$ac_exeext
4660 if { (ac_try="$ac_link"
4661 case "(($ac_try" in
4662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663   *) ac_try_echo=$ac_try;;
4664 esac
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666   (eval "$ac_link") 2>conftest.er1
4667   ac_status=$?
4668   grep -v '^ *+' conftest.er1 >conftest.err
4669   rm -f conftest.er1
4670   cat conftest.err >&5
4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); } && {
4673          test -z "$ac_c_werror_flag" ||
4674          test ! -s conftest.err
4675        } && test -s conftest$ac_exeext &&
4676        $as_test_x conftest$ac_exeext; then
4677   ac_cv_lib_intl_bindtextdomain=yes
4678 else
4679   echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682         ac_cv_lib_intl_bindtextdomain=no
4683 fi
4684
4685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4686       conftest$ac_exeext conftest.$ac_ext
4687 LIBS=$ac_check_lib_save_LIBS
4688 fi
4689 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
4690 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
4691 if test $ac_cv_lib_intl_bindtextdomain = yes; then
4692   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
4693 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
4694 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
4695   echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697   ac_check_lib_save_LIBS=$LIBS
4698 LIBS="-lintl  $LIBS"
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h.  */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h.  */
4705
4706 /* Override any GCC internal prototype to avoid an error.
4707    Use char because int might match the return type of a GCC
4708    builtin and then its argument prototype would still apply.  */
4709 #ifdef __cplusplus
4710 extern "C"
4711 #endif
4712 char ngettext ();
4713 int
4714 main ()
4715 {
4716 return ngettext ();
4717   ;
4718   return 0;
4719 }
4720 _ACEOF
4721 rm -f conftest.$ac_objext conftest$ac_exeext
4722 if { (ac_try="$ac_link"
4723 case "(($ac_try" in
4724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725   *) ac_try_echo=$ac_try;;
4726 esac
4727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4728   (eval "$ac_link") 2>conftest.er1
4729   ac_status=$?
4730   grep -v '^ *+' conftest.er1 >conftest.err
4731   rm -f conftest.er1
4732   cat conftest.err >&5
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); } && {
4735          test -z "$ac_c_werror_flag" ||
4736          test ! -s conftest.err
4737        } && test -s conftest$ac_exeext &&
4738        $as_test_x conftest$ac_exeext; then
4739   ac_cv_lib_intl_ngettext=yes
4740 else
4741   echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4743
4744         ac_cv_lib_intl_ngettext=no
4745 fi
4746
4747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4748       conftest$ac_exeext conftest.$ac_ext
4749 LIBS=$ac_check_lib_save_LIBS
4750 fi
4751 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
4752 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
4753 if test $ac_cv_lib_intl_ngettext = yes; then
4754   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
4755 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
4756 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
4757   echo $ECHO_N "(cached) $ECHO_C" >&6
4758 else
4759   ac_check_lib_save_LIBS=$LIBS
4760 LIBS="-lintl  $LIBS"
4761 cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h.  */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h.  */
4767
4768 /* Override any GCC internal prototype to avoid an error.
4769    Use char because int might match the return type of a GCC
4770    builtin and then its argument prototype would still apply.  */
4771 #ifdef __cplusplus
4772 extern "C"
4773 #endif
4774 char dgettext ();
4775 int
4776 main ()
4777 {
4778 return dgettext ();
4779   ;
4780   return 0;
4781 }
4782 _ACEOF
4783 rm -f conftest.$ac_objext conftest$ac_exeext
4784 if { (ac_try="$ac_link"
4785 case "(($ac_try" in
4786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787   *) ac_try_echo=$ac_try;;
4788 esac
4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790   (eval "$ac_link") 2>conftest.er1
4791   ac_status=$?
4792   grep -v '^ *+' conftest.er1 >conftest.err
4793   rm -f conftest.er1
4794   cat conftest.err >&5
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); } && {
4797          test -z "$ac_c_werror_flag" ||
4798          test ! -s conftest.err
4799        } && test -s conftest$ac_exeext &&
4800        $as_test_x conftest$ac_exeext; then
4801   ac_cv_lib_intl_dgettext=yes
4802 else
4803   echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4805
4806         ac_cv_lib_intl_dgettext=no
4807 fi
4808
4809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4810       conftest$ac_exeext conftest.$ac_ext
4811 LIBS=$ac_check_lib_save_LIBS
4812 fi
4813 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
4814 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
4815 if test $ac_cv_lib_intl_dgettext = yes; then
4816   gt_cv_func_dgettext_libintl=yes
4817 fi
4818
4819 fi
4820
4821 fi
4822
4823
4824         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
4825           { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
4826 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
4827           { echo "$as_me:$LINENO: result: " >&5
4828 echo "${ECHO_T}" >&6; }
4829           { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
4830 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
4831 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
4832   echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834   ac_check_lib_save_LIBS=$LIBS
4835 LIBS="-lintl -liconv $LIBS"
4836 cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h.  */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h.  */
4842
4843 /* Override any GCC internal prototype to avoid an error.
4844    Use char because int might match the return type of a GCC
4845    builtin and then its argument prototype would still apply.  */
4846 #ifdef __cplusplus
4847 extern "C"
4848 #endif
4849 char ngettext ();
4850 int
4851 main ()
4852 {
4853 return ngettext ();
4854   ;
4855   return 0;
4856 }
4857 _ACEOF
4858 rm -f conftest.$ac_objext conftest$ac_exeext
4859 if { (ac_try="$ac_link"
4860 case "(($ac_try" in
4861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862   *) ac_try_echo=$ac_try;;
4863 esac
4864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865   (eval "$ac_link") 2>conftest.er1
4866   ac_status=$?
4867   grep -v '^ *+' conftest.er1 >conftest.err
4868   rm -f conftest.er1
4869   cat conftest.err >&5
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); } && {
4872          test -z "$ac_c_werror_flag" ||
4873          test ! -s conftest.err
4874        } && test -s conftest$ac_exeext &&
4875        $as_test_x conftest$ac_exeext; then
4876   ac_cv_lib_intl_ngettext=yes
4877 else
4878   echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881         ac_cv_lib_intl_ngettext=no
4882 fi
4883
4884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4885       conftest$ac_exeext conftest.$ac_ext
4886 LIBS=$ac_check_lib_save_LIBS
4887 fi
4888 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
4889 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
4890 if test $ac_cv_lib_intl_ngettext = yes; then
4891   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
4892 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
4893 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   ac_check_lib_save_LIBS=$LIBS
4897 LIBS="-lintl -liconv $LIBS"
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h.  */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h.  */
4904
4905 /* Override any GCC internal prototype to avoid an error.
4906    Use char because int might match the return type of a GCC
4907    builtin and then its argument prototype would still apply.  */
4908 #ifdef __cplusplus
4909 extern "C"
4910 #endif
4911 char dcgettext ();
4912 int
4913 main ()
4914 {
4915 return dcgettext ();
4916   ;
4917   return 0;
4918 }
4919 _ACEOF
4920 rm -f conftest.$ac_objext conftest$ac_exeext
4921 if { (ac_try="$ac_link"
4922 case "(($ac_try" in
4923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924   *) ac_try_echo=$ac_try;;
4925 esac
4926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4927   (eval "$ac_link") 2>conftest.er1
4928   ac_status=$?
4929   grep -v '^ *+' conftest.er1 >conftest.err
4930   rm -f conftest.er1
4931   cat conftest.err >&5
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); } && {
4934          test -z "$ac_c_werror_flag" ||
4935          test ! -s conftest.err
4936        } && test -s conftest$ac_exeext &&
4937        $as_test_x conftest$ac_exeext; then
4938   ac_cv_lib_intl_dcgettext=yes
4939 else
4940   echo "$as_me: failed program was:" >&5
4941 sed 's/^/| /' conftest.$ac_ext >&5
4942
4943         ac_cv_lib_intl_dcgettext=no
4944 fi
4945
4946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4947       conftest$ac_exeext conftest.$ac_ext
4948 LIBS=$ac_check_lib_save_LIBS
4949 fi
4950 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
4951 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
4952 if test $ac_cv_lib_intl_dcgettext = yes; then
4953   gt_cv_func_dgettext_libintl=yes
4954                         libintl_extra_libs=-liconv
4955 else
4956   :
4957 fi
4958
4959 else
4960   :
4961 fi
4962
4963         fi
4964
4965         #
4966         # If we found libintl, then check in it for bind_textdomain_codeset();
4967         # we'll prefer libc if neither have bind_textdomain_codeset(),
4968         # and both have dgettext and ngettext
4969         #
4970         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
4971           glib_save_LIBS="$LIBS"
4972           LIBS="$LIBS -lintl $libintl_extra_libs"
4973           unset ac_cv_func_bind_textdomain_codeset
4974
4975 for ac_func in bind_textdomain_codeset
4976 do
4977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4981   echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983   cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h.  */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h.  */
4989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4991 #define $ac_func innocuous_$ac_func
4992
4993 /* System header to define __stub macros and hopefully few prototypes,
4994     which can conflict with char $ac_func (); below.
4995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4996     <limits.h> exists even on freestanding compilers.  */
4997
4998 #ifdef __STDC__
4999 # include <limits.h>
5000 #else
5001 # include <assert.h>
5002 #endif
5003
5004 #undef $ac_func
5005
5006 /* Override any GCC internal prototype to avoid an error.
5007    Use char because int might match the return type of a GCC
5008    builtin and then its argument prototype would still apply.  */
5009 #ifdef __cplusplus
5010 extern "C"
5011 #endif
5012 char $ac_func ();
5013 /* The GNU C library defines this for functions which it implements
5014     to always fail with ENOSYS.  Some functions are actually named
5015     something starting with __ and the normal name is an alias.  */
5016 #if defined __stub_$ac_func || defined __stub___$ac_func
5017 choke me
5018 #endif
5019
5020 int
5021 main ()
5022 {
5023 return $ac_func ();
5024   ;
5025   return 0;
5026 }
5027 _ACEOF
5028 rm -f conftest.$ac_objext conftest$ac_exeext
5029 if { (ac_try="$ac_link"
5030 case "(($ac_try" in
5031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032   *) ac_try_echo=$ac_try;;
5033 esac
5034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035   (eval "$ac_link") 2>conftest.er1
5036   ac_status=$?
5037   grep -v '^ *+' conftest.er1 >conftest.err
5038   rm -f conftest.er1
5039   cat conftest.err >&5
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); } && {
5042          test -z "$ac_c_werror_flag" ||
5043          test ! -s conftest.err
5044        } && test -s conftest$ac_exeext &&
5045        $as_test_x conftest$ac_exeext; then
5046   eval "$as_ac_var=yes"
5047 else
5048   echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051         eval "$as_ac_var=no"
5052 fi
5053
5054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5055       conftest$ac_exeext conftest.$ac_ext
5056 fi
5057 ac_res=`eval echo '${'$as_ac_var'}'`
5058                { echo "$as_me:$LINENO: result: $ac_res" >&5
5059 echo "${ECHO_T}$ac_res" >&6; }
5060 if test `eval echo '${'$as_ac_var'}'` = yes; then
5061   cat >>confdefs.h <<_ACEOF
5062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5063 _ACEOF
5064
5065 fi
5066 done
5067
5068           LIBS="$glib_save_LIBS"
5069
5070           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
5071             gt_cv_func_dgettext_libc=no
5072           else
5073             if test "$gt_cv_func_dgettext_libc" = "yes" \
5074                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
5075               gt_cv_func_dgettext_libintl=no
5076             fi
5077           fi
5078         fi
5079       fi
5080
5081       if test "$gt_cv_func_dgettext_libc" = "yes" \
5082         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
5083         gt_cv_have_gettext=yes
5084       fi
5085
5086       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
5087         INTLLIBS="-lintl $libintl_extra_libs"
5088       fi
5089
5090       if test "$gt_cv_have_gettext" = "yes"; then
5091
5092 cat >>confdefs.h <<\_ACEOF
5093 #define HAVE_GETTEXT 1
5094 _ACEOF
5095
5096         # Extract the first word of "msgfmt", so it can be a program name with args.
5097 set dummy msgfmt; ac_word=$2
5098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5100 if test "${ac_cv_path_MSGFMT+set}" = set; then
5101   echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103   case "$MSGFMT" in
5104   /*)
5105   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5106   ;;
5107   *)
5108   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5109   for ac_dir in $PATH; do
5110     test -z "$ac_dir" && ac_dir=.
5111     if test -f $ac_dir/$ac_word; then
5112       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5113         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5114         break
5115       fi
5116     fi
5117   done
5118   IFS="$ac_save_ifs"
5119   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5120   ;;
5121 esac
5122 fi
5123 MSGFMT="$ac_cv_path_MSGFMT"
5124 if test "$MSGFMT" != "no"; then
5125   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5126 echo "${ECHO_T}$MSGFMT" >&6; }
5127 else
5128   { echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6; }
5130 fi
5131         if test "$MSGFMT" != "no"; then
5132           glib_save_LIBS="$LIBS"
5133           LIBS="$LIBS $INTLLIBS"
5134
5135 for ac_func in dcgettext
5136 do
5137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5141   echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143   cat >conftest.$ac_ext <<_ACEOF
5144 /* confdefs.h.  */
5145 _ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h.  */
5149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5151 #define $ac_func innocuous_$ac_func
5152
5153 /* System header to define __stub macros and hopefully few prototypes,
5154     which can conflict with char $ac_func (); below.
5155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5156     <limits.h> exists even on freestanding compilers.  */
5157
5158 #ifdef __STDC__
5159 # include <limits.h>
5160 #else
5161 # include <assert.h>
5162 #endif
5163
5164 #undef $ac_func
5165
5166 /* Override any GCC internal prototype to avoid an error.
5167    Use char because int might match the return type of a GCC
5168    builtin and then its argument prototype would still apply.  */
5169 #ifdef __cplusplus
5170 extern "C"
5171 #endif
5172 char $ac_func ();
5173 /* The GNU C library defines this for functions which it implements
5174     to always fail with ENOSYS.  Some functions are actually named
5175     something starting with __ and the normal name is an alias.  */
5176 #if defined __stub_$ac_func || defined __stub___$ac_func
5177 choke me
5178 #endif
5179
5180 int
5181 main ()
5182 {
5183 return $ac_func ();
5184   ;
5185   return 0;
5186 }
5187 _ACEOF
5188 rm -f conftest.$ac_objext conftest$ac_exeext
5189 if { (ac_try="$ac_link"
5190 case "(($ac_try" in
5191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192   *) ac_try_echo=$ac_try;;
5193 esac
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195   (eval "$ac_link") 2>conftest.er1
5196   ac_status=$?
5197   grep -v '^ *+' conftest.er1 >conftest.err
5198   rm -f conftest.er1
5199   cat conftest.err >&5
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); } && {
5202          test -z "$ac_c_werror_flag" ||
5203          test ! -s conftest.err
5204        } && test -s conftest$ac_exeext &&
5205        $as_test_x conftest$ac_exeext; then
5206   eval "$as_ac_var=yes"
5207 else
5208   echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5210
5211         eval "$as_ac_var=no"
5212 fi
5213
5214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5215       conftest$ac_exeext conftest.$ac_ext
5216 fi
5217 ac_res=`eval echo '${'$as_ac_var'}'`
5218                { echo "$as_me:$LINENO: result: $ac_res" >&5
5219 echo "${ECHO_T}$ac_res" >&6; }
5220 if test `eval echo '${'$as_ac_var'}'` = yes; then
5221   cat >>confdefs.h <<_ACEOF
5222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5223 _ACEOF
5224
5225 fi
5226 done
5227
5228           MSGFMT_OPTS=
5229           { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
5230 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
5231           cat >conftest.foo <<_ACEOF
5232
5233 msgid ""
5234 msgstr ""
5235 "Content-Type: text/plain; charset=UTF-8\n"
5236 "Project-Id-Version: test 1.0\n"
5237 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
5238 "Last-Translator: test <foo@bar.xx>\n"
5239 "Language-Team: C <LL@li.org>\n"
5240 "MIME-Version: 1.0\n"
5241 "Content-Transfer-Encoding: 8bit\n"
5242
5243 _ACEOF
5244 if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
5245   (msgfmt -c -o /dev/null conftest.foo) 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); }; then
5249   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
5250 echo "${ECHO_T}yes" >&6; }
5251 else { echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6; }
5253 echo "$as_me: failed input was:" >&5
5254 sed 's/^/| /' conftest.foo >&5
5255 fi
5256
5257           # Extract the first word of "gmsgfmt", so it can be a program name with args.
5258 set dummy gmsgfmt; ac_word=$2
5259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5261 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5262   echo $ECHO_N "(cached) $ECHO_C" >&6
5263 else
5264   case $GMSGFMT in
5265   [\\/]* | ?:[\\/]*)
5266   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5267   ;;
5268   *)
5269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5271 do
5272   IFS=$as_save_IFS
5273   test -z "$as_dir" && as_dir=.
5274   for ac_exec_ext in '' $ac_executable_extensions; do
5275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5276     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5278     break 2
5279   fi
5280 done
5281 done
5282 IFS=$as_save_IFS
5283
5284   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5285   ;;
5286 esac
5287 fi
5288 GMSGFMT=$ac_cv_path_GMSGFMT
5289 if test -n "$GMSGFMT"; then
5290   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5291 echo "${ECHO_T}$GMSGFMT" >&6; }
5292 else
5293   { echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6; }
5295 fi
5296
5297
5298           # Extract the first word of "xgettext", so it can be a program name with args.
5299 set dummy xgettext; ac_word=$2
5300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5302 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5303   echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305   case "$XGETTEXT" in
5306   /*)
5307   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5308   ;;
5309   *)
5310   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5311   for ac_dir in $PATH; do
5312     test -z "$ac_dir" && ac_dir=.
5313     if test -f $ac_dir/$ac_word; then
5314       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5315         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5316         break
5317       fi
5318     fi
5319   done
5320   IFS="$ac_save_ifs"
5321   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5322   ;;
5323 esac
5324 fi
5325 XGETTEXT="$ac_cv_path_XGETTEXT"
5326 if test "$XGETTEXT" != ":"; then
5327   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5328 echo "${ECHO_T}$XGETTEXT" >&6; }
5329 else
5330   { echo "$as_me:$LINENO: result: no" >&5
5331 echo "${ECHO_T}no" >&6; }
5332 fi
5333
5334           cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h.  */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h.  */
5340
5341 int
5342 main ()
5343 {
5344 extern int _nl_msg_cat_cntr;
5345                          return _nl_msg_cat_cntr
5346   ;
5347   return 0;
5348 }
5349 _ACEOF
5350 rm -f conftest.$ac_objext conftest$ac_exeext
5351 if { (ac_try="$ac_link"
5352 case "(($ac_try" in
5353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5354   *) ac_try_echo=$ac_try;;
5355 esac
5356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5357   (eval "$ac_link") 2>conftest.er1
5358   ac_status=$?
5359   grep -v '^ *+' conftest.er1 >conftest.err
5360   rm -f conftest.er1
5361   cat conftest.err >&5
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); } && {
5364          test -z "$ac_c_werror_flag" ||
5365          test ! -s conftest.err
5366        } && test -s conftest$ac_exeext &&
5367        $as_test_x conftest$ac_exeext; then
5368   CATOBJEXT=.gmo
5369              DATADIRNAME=share
5370 else
5371   echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5373
5374         case $host in
5375             *-*-solaris*)
5376                                                                 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
5377 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
5378 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h.  */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h.  */
5387 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
5388    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5389 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
5390
5391 /* System header to define __stub macros and hopefully few prototypes,
5392     which can conflict with char bind_textdomain_codeset (); below.
5393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5394     <limits.h> exists even on freestanding compilers.  */
5395
5396 #ifdef __STDC__
5397 # include <limits.h>
5398 #else
5399 # include <assert.h>
5400 #endif
5401
5402 #undef bind_textdomain_codeset
5403
5404 /* Override any GCC internal prototype to avoid an error.
5405    Use char because int might match the return type of a GCC
5406    builtin and then its argument prototype would still apply.  */
5407 #ifdef __cplusplus
5408 extern "C"
5409 #endif
5410 char bind_textdomain_codeset ();
5411 /* The GNU C library defines this for functions which it implements
5412     to always fail with ENOSYS.  Some functions are actually named
5413     something starting with __ and the normal name is an alias.  */
5414 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
5415 choke me
5416 #endif
5417
5418 int
5419 main ()
5420 {
5421 return bind_textdomain_codeset ();
5422   ;
5423   return 0;
5424 }
5425 _ACEOF
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (ac_try="$ac_link"
5428 case "(($ac_try" in
5429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430   *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433   (eval "$ac_link") 2>conftest.er1
5434   ac_status=$?
5435   grep -v '^ *+' conftest.er1 >conftest.err
5436   rm -f conftest.er1
5437   cat conftest.err >&5
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } && {
5440          test -z "$ac_c_werror_flag" ||
5441          test ! -s conftest.err
5442        } && test -s conftest$ac_exeext &&
5443        $as_test_x conftest$ac_exeext; then
5444   ac_cv_func_bind_textdomain_codeset=yes
5445 else
5446   echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5448
5449         ac_cv_func_bind_textdomain_codeset=no
5450 fi
5451
5452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5453       conftest$ac_exeext conftest.$ac_ext
5454 fi
5455 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
5456 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
5457 if test $ac_cv_func_bind_textdomain_codeset = yes; then
5458   CATOBJEXT=.gmo
5459                DATADIRNAME=share
5460 else
5461   CATOBJEXT=.mo
5462                DATADIRNAME=lib
5463 fi
5464
5465             ;;
5466             *)
5467             CATOBJEXT=.mo
5468             DATADIRNAME=lib
5469             ;;
5470             esac
5471 fi
5472
5473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5474       conftest$ac_exeext conftest.$ac_ext
5475           LIBS="$glib_save_LIBS"
5476           INSTOBJEXT=.mo
5477         else
5478           gt_cv_have_gettext=no
5479         fi
5480       fi
5481
5482 fi
5483
5484
5485
5486     if test "$gt_cv_have_gettext" = "yes" ; then
5487
5488 cat >>confdefs.h <<\_ACEOF
5489 #define ENABLE_NLS 1
5490 _ACEOF
5491
5492     fi
5493
5494         if test "$XGETTEXT" != ":"; then
5495                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5496         : ;
5497       else
5498         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5499 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
5500         XGETTEXT=":"
5501       fi
5502     fi
5503
5504     # We need to process the po/ directory.
5505     POSUB=po
5506
5507     ac_config_commands="$ac_config_commands default-1"
5508
5509
5510                 for lang in $ALL_LINGUAS; do
5511       GMOFILES="$GMOFILES $lang.gmo"
5512       POFILES="$POFILES $lang.po"
5513     done
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527    if test "$gt_cv_have_gettext" = "yes"; then
5528      if test "x$ALL_LINGUAS" = "x"; then
5529        LINGUAS=
5530      else
5531        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5532 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
5533        NEW_LINGUAS=
5534        for presentlang in $ALL_LINGUAS; do
5535          useit=no
5536          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
5537            desiredlanguages="$LINGUAS"
5538          else
5539            desiredlanguages="$ALL_LINGUAS"
5540          fi
5541          for desiredlang in $desiredlanguages; do
5542            # Use the presentlang catalog if desiredlang is
5543            #   a. equal to presentlang, or
5544            #   b. a variant of presentlang (because in this case,
5545            #      presentlang can be used as a fallback for messages
5546            #      which are not translated in the desiredlang catalog).
5547            case "$desiredlang" in
5548              "$presentlang"*) useit=yes;;
5549            esac
5550          done
5551          if test $useit = yes; then
5552            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
5553          fi
5554        done
5555        LINGUAS=$NEW_LINGUAS
5556        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
5557 echo "${ECHO_T}$LINGUAS" >&6; }
5558      fi
5559
5560           if test -n "$LINGUAS"; then
5561        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5562      fi
5563    fi
5564
5565             MKINSTALLDIRS=
5566    if test -n "$ac_aux_dir"; then
5567      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5568    fi
5569    if test -z "$MKINSTALLDIRS"; then
5570      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5571    fi
5572
5573
5574          test -d po || mkdir po
5575    if test "x$srcdir" != "x."; then
5576      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5577        posrcprefix="$srcdir/"
5578      else
5579        posrcprefix="../$srcdir/"
5580      fi
5581    else
5582      posrcprefix="../"
5583    fi
5584    rm -f po/POTFILES
5585    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5586         < $srcdir/po/POTFILES.in > po/POTFILES
5587
5588
5589 # Application locale install directory
5590 localedir=`$PKG_CONFIG osso-af-settings --variable=localedir`
5591
5592 # Application pixmaps install directory
5593 pixmapdir=`$PKG_CONFIG osso-af-settings --variable=hildonpixmapdir`
5594
5595 # Help file install directory
5596 helpfile_engbdir=$datadir/osso-help/en_GB
5597
5598 package_appdir=$datadir/applications/worldtv99
5599
5600 # Define as variables in Makefiles
5601
5602
5603
5604
5605
5606 cat >>confdefs.h <<_ACEOF
5607 #define LOCALEDIR "${localedir}"
5608 _ACEOF
5609
5610
5611 cat >>confdefs.h <<_ACEOF
5612 #define PIXMAPDIR "${pixmapdir}"
5613 _ACEOF
5614
5615
5616 # Produce output files
5617 ac_config_files="$ac_config_files Makefile data/Makefile"
5618
5619 cat >confcache <<\_ACEOF
5620 # This file is a shell script that caches the results of configure
5621 # tests run on this system so they can be shared between configure
5622 # scripts and configure runs, see configure's option --config-cache.
5623 # It is not useful on other systems.  If it contains results you don't
5624 # want to keep, you may remove or edit it.
5625 #
5626 # config.status only pays attention to the cache file if you give it
5627 # the --recheck option to rerun configure.
5628 #
5629 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5630 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5631 # following values.
5632
5633 _ACEOF
5634
5635 # The following way of writing the cache mishandles newlines in values,
5636 # but we know of no workaround that is simple, portable, and efficient.
5637 # So, we kill variables containing newlines.
5638 # Ultrix sh set writes to stderr and can't be redirected directly,
5639 # and sets the high bit in the cache file unless we assign to the vars.
5640 (
5641   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5642     eval ac_val=\$$ac_var
5643     case $ac_val in #(
5644     *${as_nl}*)
5645       case $ac_var in #(
5646       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5647 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5648       esac
5649       case $ac_var in #(
5650       _ | IFS | as_nl) ;; #(
5651       *) $as_unset $ac_var ;;
5652       esac ;;
5653     esac
5654   done
5655
5656   (set) 2>&1 |
5657     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5658     *${as_nl}ac_space=\ *)
5659       # `set' does not quote correctly, so add quotes (double-quote
5660       # substitution turns \\\\ into \\, and sed turns \\ into \).
5661       sed -n \
5662         "s/'/'\\\\''/g;
5663           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5664       ;; #(
5665     *)
5666       # `set' quotes correctly as required by POSIX, so do not add quotes.
5667       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5668       ;;
5669     esac |
5670     sort
5671 ) |
5672   sed '
5673      /^ac_cv_env_/b end
5674      t clear
5675      :clear
5676      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5677      t end
5678      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5679      :end' >>confcache
5680 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5681   if test -w "$cache_file"; then
5682     test "x$cache_file" != "x/dev/null" &&
5683       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5684 echo "$as_me: updating cache $cache_file" >&6;}
5685     cat confcache >$cache_file
5686   else
5687     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5688 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5689   fi
5690 fi
5691 rm -f confcache
5692
5693 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5694 # Let make expand exec_prefix.
5695 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5696
5697 # Transform confdefs.h into DEFS.
5698 # Protect against shell expansion while executing Makefile rules.
5699 # Protect against Makefile macro expansion.
5700 #
5701 # If the first sed substitution is executed (which looks for macros that
5702 # take arguments), then branch to the quote section.  Otherwise,
5703 # look for a macro that doesn't take arguments.
5704 ac_script='
5705 t clear
5706 :clear
5707 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
5708 t quote
5709 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
5710 t quote
5711 b any
5712 :quote
5713 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5714 s/\[/\\&/g
5715 s/\]/\\&/g
5716 s/\$/$$/g
5717 H
5718 :any
5719 ${
5720         g
5721         s/^\n//
5722         s/\n/ /g
5723         p
5724 }
5725 '
5726 DEFS=`sed -n "$ac_script" confdefs.h`
5727
5728
5729 ac_libobjs=
5730 ac_ltlibobjs=
5731 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5732   # 1. Remove the extension, and $U if already installed.
5733   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5734   ac_i=`echo "$ac_i" | sed "$ac_script"`
5735   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5736   #    will be set to the directory where LIBOBJS objects are built.
5737   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5738   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5739 done
5740 LIBOBJS=$ac_libobjs
5741
5742 LTLIBOBJS=$ac_ltlibobjs
5743
5744
5745 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5746   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5747 Usually this means the macro was only invoked conditionally." >&5
5748 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5749 Usually this means the macro was only invoked conditionally." >&2;}
5750    { (exit 1); exit 1; }; }
5751 fi
5752 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5753   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5754 Usually this means the macro was only invoked conditionally." >&5
5755 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5756 Usually this means the macro was only invoked conditionally." >&2;}
5757    { (exit 1); exit 1; }; }
5758 fi
5759
5760 : ${CONFIG_STATUS=./config.status}
5761 ac_clean_files_save=$ac_clean_files
5762 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5763 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5764 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5765 cat >$CONFIG_STATUS <<_ACEOF
5766 #! $SHELL
5767 # Generated by $as_me.
5768 # Run this file to recreate the current configuration.
5769 # Compiler output produced by configure, useful for debugging
5770 # configure, is in config.log if it exists.
5771
5772 debug=false
5773 ac_cs_recheck=false
5774 ac_cs_silent=false
5775 SHELL=\${CONFIG_SHELL-$SHELL}
5776 _ACEOF
5777
5778 cat >>$CONFIG_STATUS <<\_ACEOF
5779 ## --------------------- ##
5780 ## M4sh Initialization.  ##
5781 ## --------------------- ##
5782
5783 # Be more Bourne compatible
5784 DUALCASE=1; export DUALCASE # for MKS sh
5785 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5786   emulate sh
5787   NULLCMD=:
5788   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5789   # is contrary to our usage.  Disable this feature.
5790   alias -g '${1+"$@"}'='"$@"'
5791   setopt NO_GLOB_SUBST
5792 else
5793   case `(set -o) 2>/dev/null` in
5794   *posix*) set -o posix ;;
5795 esac
5796
5797 fi
5798
5799
5800
5801
5802 # PATH needs CR
5803 # Avoid depending upon Character Ranges.
5804 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5805 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5806 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5807 as_cr_digits='0123456789'
5808 as_cr_alnum=$as_cr_Letters$as_cr_digits
5809
5810 # The user is always right.
5811 if test "${PATH_SEPARATOR+set}" != set; then
5812   echo "#! /bin/sh" >conf$$.sh
5813   echo  "exit 0"   >>conf$$.sh
5814   chmod +x conf$$.sh
5815   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5816     PATH_SEPARATOR=';'
5817   else
5818     PATH_SEPARATOR=:
5819   fi
5820   rm -f conf$$.sh
5821 fi
5822
5823 # Support unset when possible.
5824 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5825   as_unset=unset
5826 else
5827   as_unset=false
5828 fi
5829
5830
5831 # IFS
5832 # We need space, tab and new line, in precisely that order.  Quoting is
5833 # there to prevent editors from complaining about space-tab.
5834 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5835 # splitting by setting IFS to empty value.)
5836 as_nl='
5837 '
5838 IFS=" ""        $as_nl"
5839
5840 # Find who we are.  Look in the path if we contain no directory separator.
5841 case $0 in
5842   *[\\/]* ) as_myself=$0 ;;
5843   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846   IFS=$as_save_IFS
5847   test -z "$as_dir" && as_dir=.
5848   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5849 done
5850 IFS=$as_save_IFS
5851
5852      ;;
5853 esac
5854 # We did not find ourselves, most probably we were run as `sh COMMAND'
5855 # in which case we are not to be found in the path.
5856 if test "x$as_myself" = x; then
5857   as_myself=$0
5858 fi
5859 if test ! -f "$as_myself"; then
5860   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5861   { (exit 1); exit 1; }
5862 fi
5863
5864 # Work around bugs in pre-3.0 UWIN ksh.
5865 for as_var in ENV MAIL MAILPATH
5866 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5867 done
5868 PS1='$ '
5869 PS2='> '
5870 PS4='+ '
5871
5872 # NLS nuisances.
5873 for as_var in \
5874   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5875   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5876   LC_TELEPHONE LC_TIME
5877 do
5878   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5879     eval $as_var=C; export $as_var
5880   else
5881     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5882   fi
5883 done
5884
5885 # Required to use basename.
5886 if expr a : '\(a\)' >/dev/null 2>&1 &&
5887    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5888   as_expr=expr
5889 else
5890   as_expr=false
5891 fi
5892
5893 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5894   as_basename=basename
5895 else
5896   as_basename=false
5897 fi
5898
5899
5900 # Name of the executable.
5901 as_me=`$as_basename -- "$0" ||
5902 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5903          X"$0" : 'X\(//\)$' \| \
5904          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5905 echo X/"$0" |
5906     sed '/^.*\/\([^/][^/]*\)\/*$/{
5907             s//\1/
5908             q
5909           }
5910           /^X\/\(\/\/\)$/{
5911             s//\1/
5912             q
5913           }
5914           /^X\/\(\/\).*/{
5915             s//\1/
5916             q
5917           }
5918           s/.*/./; q'`
5919
5920 # CDPATH.
5921 $as_unset CDPATH
5922
5923
5924
5925   as_lineno_1=$LINENO
5926   as_lineno_2=$LINENO
5927   test "x$as_lineno_1" != "x$as_lineno_2" &&
5928   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5929
5930   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5931   # uniformly replaced by the line number.  The first 'sed' inserts a
5932   # line-number line after each line using $LINENO; the second 'sed'
5933   # does the real work.  The second script uses 'N' to pair each
5934   # line-number line with the line containing $LINENO, and appends
5935   # trailing '-' during substitution so that $LINENO is not a special
5936   # case at line end.
5937   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5938   # scripts with optimization help from Paolo Bonzini.  Blame Lee
5939   # E. McMahon (1931-1989) for sed's syntax.  :-)
5940   sed -n '
5941     p
5942     /[$]LINENO/=
5943   ' <$as_myself |
5944     sed '
5945       s/[$]LINENO.*/&-/
5946       t lineno
5947       b
5948       :lineno
5949       N
5950       :loop
5951       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5952       t loop
5953       s/-\n.*//
5954     ' >$as_me.lineno &&
5955   chmod +x "$as_me.lineno" ||
5956     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5957    { (exit 1); exit 1; }; }
5958
5959   # Don't try to exec as it changes $[0], causing all sort of problems
5960   # (the dirname of $[0] is not the place where we might find the
5961   # original and so on.  Autoconf is especially sensitive to this).
5962   . "./$as_me.lineno"
5963   # Exit status is that of the last command.
5964   exit
5965 }
5966
5967
5968 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5969   as_dirname=dirname
5970 else
5971   as_dirname=false
5972 fi
5973
5974 ECHO_C= ECHO_N= ECHO_T=
5975 case `echo -n x` in
5976 -n*)
5977   case `echo 'x\c'` in
5978   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5979   *)   ECHO_C='\c';;
5980   esac;;
5981 *)
5982   ECHO_N='-n';;
5983 esac
5984
5985 if expr a : '\(a\)' >/dev/null 2>&1 &&
5986    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5987   as_expr=expr
5988 else
5989   as_expr=false
5990 fi
5991
5992 rm -f conf$$ conf$$.exe conf$$.file
5993 if test -d conf$$.dir; then
5994   rm -f conf$$.dir/conf$$.file
5995 else
5996   rm -f conf$$.dir
5997   mkdir conf$$.dir
5998 fi
5999 echo >conf$$.file
6000 if ln -s conf$$.file conf$$ 2>/dev/null; then
6001   as_ln_s='ln -s'
6002   # ... but there are two gotchas:
6003   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6004   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6005   # In both cases, we have to default to `cp -p'.
6006   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6007     as_ln_s='cp -p'
6008 elif ln conf$$.file conf$$ 2>/dev/null; then
6009   as_ln_s=ln
6010 else
6011   as_ln_s='cp -p'
6012 fi
6013 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6014 rmdir conf$$.dir 2>/dev/null
6015
6016 if mkdir -p . 2>/dev/null; then
6017   as_mkdir_p=:
6018 else
6019   test -d ./-p && rmdir ./-p
6020   as_mkdir_p=false
6021 fi
6022
6023 if test -x / >/dev/null 2>&1; then
6024   as_test_x='test -x'
6025 else
6026   if ls -dL / >/dev/null 2>&1; then
6027     as_ls_L_option=L
6028   else
6029     as_ls_L_option=
6030   fi
6031   as_test_x='
6032     eval sh -c '\''
6033       if test -d "$1"; then
6034         test -d "$1/.";
6035       else
6036         case $1 in
6037         -*)set "./$1";;
6038         esac;
6039         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6040         ???[sx]*):;;*)false;;esac;fi
6041     '\'' sh
6042   '
6043 fi
6044 as_executable_p=$as_test_x
6045
6046 # Sed expression to map a string onto a valid CPP name.
6047 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6048
6049 # Sed expression to map a string onto a valid variable name.
6050 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6051
6052
6053 exec 6>&1
6054
6055 # Save the log message, to keep $[0] and so on meaningful, and to
6056 # report actual input values of CONFIG_FILES etc. instead of their
6057 # values after options handling.
6058 ac_log="
6059 This file was extended by $as_me, which was
6060 generated by GNU Autoconf 2.61.  Invocation command line was
6061
6062   CONFIG_FILES    = $CONFIG_FILES
6063   CONFIG_HEADERS  = $CONFIG_HEADERS
6064   CONFIG_LINKS    = $CONFIG_LINKS
6065   CONFIG_COMMANDS = $CONFIG_COMMANDS
6066   $ $0 $@
6067
6068 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6069 "
6070
6071 _ACEOF
6072
6073 cat >>$CONFIG_STATUS <<_ACEOF
6074 # Files that config.status was made for.
6075 config_files="$ac_config_files"
6076 config_commands="$ac_config_commands"
6077
6078 _ACEOF
6079
6080 cat >>$CONFIG_STATUS <<\_ACEOF
6081 ac_cs_usage="\
6082 \`$as_me' instantiates files from templates according to the
6083 current configuration.
6084
6085 Usage: $0 [OPTIONS] [FILE]...
6086
6087   -h, --help       print this help, then exit
6088   -V, --version    print version number and configuration settings, then exit
6089   -q, --quiet      do not print progress messages
6090   -d, --debug      don't remove temporary files
6091       --recheck    update $as_me by reconfiguring in the same conditions
6092   --file=FILE[:TEMPLATE]
6093                    instantiate the configuration file FILE
6094
6095 Configuration files:
6096 $config_files
6097
6098 Configuration commands:
6099 $config_commands
6100
6101 Report bugs to <bug-autoconf@gnu.org>."
6102
6103 _ACEOF
6104 cat >>$CONFIG_STATUS <<_ACEOF
6105 ac_cs_version="\\
6106 config.status
6107 configured by $0, generated by GNU Autoconf 2.61,
6108   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6109
6110 Copyright (C) 2006 Free Software Foundation, Inc.
6111 This config.status script is free software; the Free Software Foundation
6112 gives unlimited permission to copy, distribute and modify it."
6113
6114 ac_pwd='$ac_pwd'
6115 srcdir='$srcdir'
6116 INSTALL='$INSTALL'
6117 _ACEOF
6118
6119 cat >>$CONFIG_STATUS <<\_ACEOF
6120 # If no file are specified by the user, then we need to provide default
6121 # value.  By we need to know if files were specified by the user.
6122 ac_need_defaults=:
6123 while test $# != 0
6124 do
6125   case $1 in
6126   --*=*)
6127     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6128     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6129     ac_shift=:
6130     ;;
6131   *)
6132     ac_option=$1
6133     ac_optarg=$2
6134     ac_shift=shift
6135     ;;
6136   esac
6137
6138   case $ac_option in
6139   # Handling of the options.
6140   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6141     ac_cs_recheck=: ;;
6142   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6143     echo "$ac_cs_version"; exit ;;
6144   --debug | --debu | --deb | --de | --d | -d )
6145     debug=: ;;
6146   --file | --fil | --fi | --f )
6147     $ac_shift
6148     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6149     ac_need_defaults=false;;
6150   --he | --h |  --help | --hel | -h )
6151     echo "$ac_cs_usage"; exit ;;
6152   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6153   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6154     ac_cs_silent=: ;;
6155
6156   # This is an error.
6157   -*) { echo "$as_me: error: unrecognized option: $1
6158 Try \`$0 --help' for more information." >&2
6159    { (exit 1); exit 1; }; } ;;
6160
6161   *) ac_config_targets="$ac_config_targets $1"
6162      ac_need_defaults=false ;;
6163
6164   esac
6165   shift
6166 done
6167
6168 ac_configure_extra_args=
6169
6170 if $ac_cs_silent; then
6171   exec 6>/dev/null
6172   ac_configure_extra_args="$ac_configure_extra_args --silent"
6173 fi
6174
6175 _ACEOF
6176 cat >>$CONFIG_STATUS <<_ACEOF
6177 if \$ac_cs_recheck; then
6178   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6179   CONFIG_SHELL=$SHELL
6180   export CONFIG_SHELL
6181   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6182 fi
6183
6184 _ACEOF
6185 cat >>$CONFIG_STATUS <<\_ACEOF
6186 exec 5>>config.log
6187 {
6188   echo
6189   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6190 ## Running $as_me. ##
6191 _ASBOX
6192   echo "$ac_log"
6193 } >&5
6194
6195 _ACEOF
6196 cat >>$CONFIG_STATUS <<_ACEOF
6197 #
6198 # INIT-COMMANDS
6199 #
6200 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6201
6202
6203 _ACEOF
6204
6205 cat >>$CONFIG_STATUS <<\_ACEOF
6206
6207 # Handling of arguments.
6208 for ac_config_target in $ac_config_targets
6209 do
6210   case $ac_config_target in
6211     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6212     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6213     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6214     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
6215
6216   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6217 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6218    { (exit 1); exit 1; }; };;
6219   esac
6220 done
6221
6222
6223 # If the user did not use the arguments to specify the items to instantiate,
6224 # then the envvar interface is used.  Set only those that are not.
6225 # We use the long form for the default assignment because of an extremely
6226 # bizarre bug on SunOS 4.1.3.
6227 if $ac_need_defaults; then
6228   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6229   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6230 fi
6231
6232 # Have a temporary directory for convenience.  Make it in the build tree
6233 # simply because there is no reason against having it here, and in addition,
6234 # creating and moving files from /tmp can sometimes cause problems.
6235 # Hook for its removal unless debugging.
6236 # Note that there is a small window in which the directory will not be cleaned:
6237 # after its creation but before its name has been assigned to `$tmp'.
6238 $debug ||
6239 {
6240   tmp=
6241   trap 'exit_status=$?
6242   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6243 ' 0
6244   trap '{ (exit 1); exit 1; }' 1 2 13 15
6245 }
6246 # Create a (secure) tmp directory for tmp files.
6247
6248 {
6249   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6250   test -n "$tmp" && test -d "$tmp"
6251 }  ||
6252 {
6253   tmp=./conf$$-$RANDOM
6254   (umask 077 && mkdir "$tmp")
6255 } ||
6256 {
6257    echo "$me: cannot create a temporary directory in ." >&2
6258    { (exit 1); exit 1; }
6259 }
6260
6261 #
6262 # Set up the sed scripts for CONFIG_FILES section.
6263 #
6264
6265 # No need to generate the scripts if there are no CONFIG_FILES.
6266 # This happens for instance when ./config.status config.h
6267 if test -n "$CONFIG_FILES"; then
6268
6269 _ACEOF
6270
6271
6272
6273 ac_delim='%!_!# '
6274 for ac_last_try in false false false false false :; do
6275   cat >conf$$subs.sed <<_ACEOF
6276 SHELL!$SHELL$ac_delim
6277 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6278 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6279 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6280 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6281 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6282 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6283 exec_prefix!$exec_prefix$ac_delim
6284 prefix!$prefix$ac_delim
6285 program_transform_name!$program_transform_name$ac_delim
6286 bindir!$bindir$ac_delim
6287 sbindir!$sbindir$ac_delim
6288 libexecdir!$libexecdir$ac_delim
6289 datarootdir!$datarootdir$ac_delim
6290 datadir!$datadir$ac_delim
6291 sysconfdir!$sysconfdir$ac_delim
6292 sharedstatedir!$sharedstatedir$ac_delim
6293 localstatedir!$localstatedir$ac_delim
6294 includedir!$includedir$ac_delim
6295 oldincludedir!$oldincludedir$ac_delim
6296 docdir!$docdir$ac_delim
6297 infodir!$infodir$ac_delim
6298 htmldir!$htmldir$ac_delim
6299 dvidir!$dvidir$ac_delim
6300 pdfdir!$pdfdir$ac_delim
6301 psdir!$psdir$ac_delim
6302 libdir!$libdir$ac_delim
6303 localedir!$localedir$ac_delim
6304 mandir!$mandir$ac_delim
6305 DEFS!$DEFS$ac_delim
6306 ECHO_C!$ECHO_C$ac_delim
6307 ECHO_N!$ECHO_N$ac_delim
6308 ECHO_T!$ECHO_T$ac_delim
6309 LIBS!$LIBS$ac_delim
6310 build_alias!$build_alias$ac_delim
6311 host_alias!$host_alias$ac_delim
6312 target_alias!$target_alias$ac_delim
6313 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6314 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6315 INSTALL_DATA!$INSTALL_DATA$ac_delim
6316 CYGPATH_W!$CYGPATH_W$ac_delim
6317 PACKAGE!$PACKAGE$ac_delim
6318 VERSION!$VERSION$ac_delim
6319 ACLOCAL!$ACLOCAL$ac_delim
6320 AUTOCONF!$AUTOCONF$ac_delim
6321 AUTOMAKE!$AUTOMAKE$ac_delim
6322 AUTOHEADER!$AUTOHEADER$ac_delim
6323 MAKEINFO!$MAKEINFO$ac_delim
6324 AMTAR!$AMTAR$ac_delim
6325 install_sh!$install_sh$ac_delim
6326 STRIP!$STRIP$ac_delim
6327 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
6328 AWK!$AWK$ac_delim
6329 SET_MAKE!$SET_MAKE$ac_delim
6330 am__leading_dot!$am__leading_dot$ac_delim
6331 build!$build$ac_delim
6332 build_cpu!$build_cpu$ac_delim
6333 build_vendor!$build_vendor$ac_delim
6334 build_os!$build_os$ac_delim
6335 host!$host$ac_delim
6336 host_cpu!$host_cpu$ac_delim
6337 host_vendor!$host_vendor$ac_delim
6338 host_os!$host_os$ac_delim
6339 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
6340 CC!$CC$ac_delim
6341 CFLAGS!$CFLAGS$ac_delim
6342 LDFLAGS!$LDFLAGS$ac_delim
6343 CPPFLAGS!$CPPFLAGS$ac_delim
6344 ac_ct_CC!$ac_ct_CC$ac_delim
6345 EXEEXT!$EXEEXT$ac_delim
6346 OBJEXT!$OBJEXT$ac_delim
6347 DEPDIR!$DEPDIR$ac_delim
6348 am__include!$am__include$ac_delim
6349 am__quote!$am__quote$ac_delim
6350 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
6351 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
6352 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
6353 CCDEPMODE!$CCDEPMODE$ac_delim
6354 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
6355 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
6356 CPP!$CPP$ac_delim
6357 GREP!$GREP$ac_delim
6358 EGREP!$EGREP$ac_delim
6359 USE_NLS!$USE_NLS$ac_delim
6360 MSGFMT!$MSGFMT$ac_delim
6361 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
6362 GMSGFMT!$GMSGFMT$ac_delim
6363 XGETTEXT!$XGETTEXT$ac_delim
6364 CATALOGS!$CATALOGS$ac_delim
6365 CATOBJEXT!$CATOBJEXT$ac_delim
6366 DATADIRNAME!$DATADIRNAME$ac_delim
6367 GMOFILES!$GMOFILES$ac_delim
6368 INSTOBJEXT!$INSTOBJEXT$ac_delim
6369 INTLLIBS!$INTLLIBS$ac_delim
6370 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
6371 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
6372 POFILES!$POFILES$ac_delim
6373 _ACEOF
6374
6375   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
6376     break
6377   elif $ac_last_try; then
6378     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6379 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6380    { (exit 1); exit 1; }; }
6381   else
6382     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6383   fi
6384 done
6385
6386 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6387 if test -n "$ac_eof"; then
6388   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6389   ac_eof=`expr $ac_eof + 1`
6390 fi
6391
6392 cat >>$CONFIG_STATUS <<_ACEOF
6393 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6395 _ACEOF
6396 sed '
6397 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6398 s/^/s,@/; s/!/@,|#_!!_#|/
6399 :n
6400 t n
6401 s/'"$ac_delim"'$/,g/; t
6402 s/$/\\/; p
6403 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6404 ' >>$CONFIG_STATUS <conf$$subs.sed
6405 rm -f conf$$subs.sed
6406 cat >>$CONFIG_STATUS <<_ACEOF
6407 CEOF$ac_eof
6408 _ACEOF
6409
6410
6411 ac_delim='%!_!# '
6412 for ac_last_try in false false false false false :; do
6413   cat >conf$$subs.sed <<_ACEOF
6414 POSUB!$POSUB$ac_delim
6415 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
6416 helpfile_engbdir!$helpfile_engbdir$ac_delim
6417 package_appdir!$package_appdir$ac_delim
6418 LIBOBJS!$LIBOBJS$ac_delim
6419 LTLIBOBJS!$LTLIBOBJS$ac_delim
6420 _ACEOF
6421
6422   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
6423     break
6424   elif $ac_last_try; then
6425     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6426 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6427    { (exit 1); exit 1; }; }
6428   else
6429     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6430   fi
6431 done
6432
6433 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6434 if test -n "$ac_eof"; then
6435   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6436   ac_eof=`expr $ac_eof + 1`
6437 fi
6438
6439 cat >>$CONFIG_STATUS <<_ACEOF
6440 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
6441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6442 _ACEOF
6443 sed '
6444 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6445 s/^/s,@/; s/!/@,|#_!!_#|/
6446 :n
6447 t n
6448 s/'"$ac_delim"'$/,g/; t
6449 s/$/\\/; p
6450 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6451 ' >>$CONFIG_STATUS <conf$$subs.sed
6452 rm -f conf$$subs.sed
6453 cat >>$CONFIG_STATUS <<_ACEOF
6454 :end
6455 s/|#_!!_#|//g
6456 CEOF$ac_eof
6457 _ACEOF
6458
6459
6460 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6461 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6462 # trailing colons and then remove the whole line if VPATH becomes empty
6463 # (actually we leave an empty line to preserve line numbers).
6464 if test "x$srcdir" = x.; then
6465   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6466 s/:*\$(srcdir):*/:/
6467 s/:*\${srcdir}:*/:/
6468 s/:*@srcdir@:*/:/
6469 s/^\([^=]*=[     ]*\):*/\1/
6470 s/:*$//
6471 s/^[^=]*=[       ]*$//
6472 }'
6473 fi
6474
6475 cat >>$CONFIG_STATUS <<\_ACEOF
6476 fi # test -n "$CONFIG_FILES"
6477
6478
6479 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
6480 do
6481   case $ac_tag in
6482   :[FHLC]) ac_mode=$ac_tag; continue;;
6483   esac
6484   case $ac_mode$ac_tag in
6485   :[FHL]*:*);;
6486   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6487 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6488    { (exit 1); exit 1; }; };;
6489   :[FH]-) ac_tag=-:-;;
6490   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6491   esac
6492   ac_save_IFS=$IFS
6493   IFS=:
6494   set x $ac_tag
6495   IFS=$ac_save_IFS
6496   shift
6497   ac_file=$1
6498   shift
6499
6500   case $ac_mode in
6501   :L) ac_source=$1;;
6502   :[FH])
6503     ac_file_inputs=
6504     for ac_f
6505     do
6506       case $ac_f in
6507       -) ac_f="$tmp/stdin";;
6508       *) # Look for the file first in the build tree, then in the source tree
6509          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6510          # because $ac_f cannot contain `:'.
6511          test -f "$ac_f" ||
6512            case $ac_f in
6513            [\\/$]*) false;;
6514            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6515            esac ||
6516            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6517 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6518    { (exit 1); exit 1; }; };;
6519       esac
6520       ac_file_inputs="$ac_file_inputs $ac_f"
6521     done
6522
6523     # Let's still pretend it is `configure' which instantiates (i.e., don't
6524     # use $as_me), people would be surprised to read:
6525     #    /* config.h.  Generated by config.status.  */
6526     configure_input="Generated from "`IFS=:
6527           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6528     if test x"$ac_file" != x-; then
6529       configure_input="$ac_file.  $configure_input"
6530       { echo "$as_me:$LINENO: creating $ac_file" >&5
6531 echo "$as_me: creating $ac_file" >&6;}
6532     fi
6533
6534     case $ac_tag in
6535     *:-:* | *:-) cat >"$tmp/stdin";;
6536     esac
6537     ;;
6538   esac
6539
6540   ac_dir=`$as_dirname -- "$ac_file" ||
6541 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6542          X"$ac_file" : 'X\(//\)[^/]' \| \
6543          X"$ac_file" : 'X\(//\)$' \| \
6544          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6545 echo X"$ac_file" |
6546     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6547             s//\1/
6548             q
6549           }
6550           /^X\(\/\/\)[^/].*/{
6551             s//\1/
6552             q
6553           }
6554           /^X\(\/\/\)$/{
6555             s//\1/
6556             q
6557           }
6558           /^X\(\/\).*/{
6559             s//\1/
6560             q
6561           }
6562           s/.*/./; q'`
6563   { as_dir="$ac_dir"
6564   case $as_dir in #(
6565   -*) as_dir=./$as_dir;;
6566   esac
6567   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6568     as_dirs=
6569     while :; do
6570       case $as_dir in #(
6571       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6572       *) as_qdir=$as_dir;;
6573       esac
6574       as_dirs="'$as_qdir' $as_dirs"
6575       as_dir=`$as_dirname -- "$as_dir" ||
6576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6577          X"$as_dir" : 'X\(//\)[^/]' \| \
6578          X"$as_dir" : 'X\(//\)$' \| \
6579          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6580 echo X"$as_dir" |
6581     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6582             s//\1/
6583             q
6584           }
6585           /^X\(\/\/\)[^/].*/{
6586             s//\1/
6587             q
6588           }
6589           /^X\(\/\/\)$/{
6590             s//\1/
6591             q
6592           }
6593           /^X\(\/\).*/{
6594             s//\1/
6595             q
6596           }
6597           s/.*/./; q'`
6598       test -d "$as_dir" && break
6599     done
6600     test -z "$as_dirs" || eval "mkdir $as_dirs"
6601   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6602 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6603    { (exit 1); exit 1; }; }; }
6604   ac_builddir=.
6605
6606 case "$ac_dir" in
6607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6608 *)
6609   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6610   # A ".." for each directory in $ac_dir_suffix.
6611   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6612   case $ac_top_builddir_sub in
6613   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6614   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6615   esac ;;
6616 esac
6617 ac_abs_top_builddir=$ac_pwd
6618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6619 # for backward compatibility:
6620 ac_top_builddir=$ac_top_build_prefix
6621
6622 case $srcdir in
6623   .)  # We are building in place.
6624     ac_srcdir=.
6625     ac_top_srcdir=$ac_top_builddir_sub
6626     ac_abs_top_srcdir=$ac_pwd ;;
6627   [\\/]* | ?:[\\/]* )  # Absolute name.
6628     ac_srcdir=$srcdir$ac_dir_suffix;
6629     ac_top_srcdir=$srcdir
6630     ac_abs_top_srcdir=$srcdir ;;
6631   *) # Relative name.
6632     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6633     ac_top_srcdir=$ac_top_build_prefix$srcdir
6634     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6635 esac
6636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6637
6638
6639   case $ac_mode in
6640   :F)
6641   #
6642   # CONFIG_FILE
6643   #
6644
6645   case $INSTALL in
6646   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6647   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6648   esac
6649 _ACEOF
6650
6651 cat >>$CONFIG_STATUS <<\_ACEOF
6652 # If the template does not know about datarootdir, expand it.
6653 # FIXME: This hack should be removed a few years after 2.60.
6654 ac_datarootdir_hack=; ac_datarootdir_seen=
6655
6656 case `sed -n '/datarootdir/ {
6657   p
6658   q
6659 }
6660 /@datadir@/p
6661 /@docdir@/p
6662 /@infodir@/p
6663 /@localedir@/p
6664 /@mandir@/p
6665 ' $ac_file_inputs` in
6666 *datarootdir*) ac_datarootdir_seen=yes;;
6667 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6668   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6669 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6670 _ACEOF
6671 cat >>$CONFIG_STATUS <<_ACEOF
6672   ac_datarootdir_hack='
6673   s&@datadir@&$datadir&g
6674   s&@docdir@&$docdir&g
6675   s&@infodir@&$infodir&g
6676   s&@localedir@&$localedir&g
6677   s&@mandir@&$mandir&g
6678     s&\\\${datarootdir}&$datarootdir&g' ;;
6679 esac
6680 _ACEOF
6681
6682 # Neutralize VPATH when `$srcdir' = `.'.
6683 # Shell code in configure.ac might set extrasub.
6684 # FIXME: do we really want to maintain this feature?
6685 cat >>$CONFIG_STATUS <<_ACEOF
6686   sed "$ac_vpsub
6687 $extrasub
6688 _ACEOF
6689 cat >>$CONFIG_STATUS <<\_ACEOF
6690 :t
6691 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6692 s&@configure_input@&$configure_input&;t t
6693 s&@top_builddir@&$ac_top_builddir_sub&;t t
6694 s&@srcdir@&$ac_srcdir&;t t
6695 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6696 s&@top_srcdir@&$ac_top_srcdir&;t t
6697 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6698 s&@builddir@&$ac_builddir&;t t
6699 s&@abs_builddir@&$ac_abs_builddir&;t t
6700 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6701 s&@INSTALL@&$ac_INSTALL&;t t
6702 $ac_datarootdir_hack
6703 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
6704
6705 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6706   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6707   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6708   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6709 which seems to be undefined.  Please make sure it is defined." >&5
6710 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6711 which seems to be undefined.  Please make sure it is defined." >&2;}
6712
6713   rm -f "$tmp/stdin"
6714   case $ac_file in
6715   -) cat "$tmp/out"; rm -f "$tmp/out";;
6716   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6717   esac
6718  ;;
6719
6720
6721   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
6722 echo "$as_me: executing $ac_file commands" >&6;}
6723  ;;
6724   esac
6725
6726
6727   case $ac_file$ac_mode in
6728     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6729   # Strip MF so we end up with the name of the file.
6730   mf=`echo "$mf" | sed -e 's/:.*$//'`
6731   # Check whether this is an Automake generated Makefile or not.
6732   # We used to match only the files named `Makefile.in', but
6733   # some people rename them; so instead we look at the file content.
6734   # Grep'ing the first line is not enough: some people post-process
6735   # each Makefile.in and add a new line on top of each file to say so.
6736   # So let's grep whole file.
6737   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6738     dirpart=`$as_dirname -- "$mf" ||
6739 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6740          X"$mf" : 'X\(//\)[^/]' \| \
6741          X"$mf" : 'X\(//\)$' \| \
6742          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6743 echo X"$mf" |
6744     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6745             s//\1/
6746             q
6747           }
6748           /^X\(\/\/\)[^/].*/{
6749             s//\1/
6750             q
6751           }
6752           /^X\(\/\/\)$/{
6753             s//\1/
6754             q
6755           }
6756           /^X\(\/\).*/{
6757             s//\1/
6758             q
6759           }
6760           s/.*/./; q'`
6761   else
6762     continue
6763   fi
6764   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6765   # Extract the definition of DEP_FILES from the Makefile without
6766   # running `make'.
6767   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6768   test -z "$DEPDIR" && continue
6769   # When using ansi2knr, U may be empty or an underscore; expand it
6770   U=`sed -n -e '/^U = / s///p' < "$mf"`
6771   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6772   # We invoke sed twice because it is the simplest approach to
6773   # changing $(DEPDIR) to its actual value in the expansion.
6774   for file in `sed -n -e '
6775     /^DEP_FILES = .*\\\\$/ {
6776       s/^DEP_FILES = //
6777       :loop
6778         s/\\\\$//
6779         p
6780         n
6781         /\\\\$/ b loop
6782       p
6783     }
6784     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6785        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6786     # Make sure the directory exists.
6787     test -f "$dirpart/$file" && continue
6788     fdir=`$as_dirname -- "$file" ||
6789 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6790          X"$file" : 'X\(//\)[^/]' \| \
6791          X"$file" : 'X\(//\)$' \| \
6792          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6793 echo X"$file" |
6794     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6795             s//\1/
6796             q
6797           }
6798           /^X\(\/\/\)[^/].*/{
6799             s//\1/
6800             q
6801           }
6802           /^X\(\/\/\)$/{
6803             s//\1/
6804             q
6805           }
6806           /^X\(\/\).*/{
6807             s//\1/
6808             q
6809           }
6810           s/.*/./; q'`
6811     { as_dir=$dirpart/$fdir
6812   case $as_dir in #(
6813   -*) as_dir=./$as_dir;;
6814   esac
6815   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6816     as_dirs=
6817     while :; do
6818       case $as_dir in #(
6819       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6820       *) as_qdir=$as_dir;;
6821       esac
6822       as_dirs="'$as_qdir' $as_dirs"
6823       as_dir=`$as_dirname -- "$as_dir" ||
6824 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6825          X"$as_dir" : 'X\(//\)[^/]' \| \
6826          X"$as_dir" : 'X\(//\)$' \| \
6827          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6828 echo X"$as_dir" |
6829     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6830             s//\1/
6831             q
6832           }
6833           /^X\(\/\/\)[^/].*/{
6834             s//\1/
6835             q
6836           }
6837           /^X\(\/\/\)$/{
6838             s//\1/
6839             q
6840           }
6841           /^X\(\/\).*/{
6842             s//\1/
6843             q
6844           }
6845           s/.*/./; q'`
6846       test -d "$as_dir" && break
6847     done
6848     test -z "$as_dirs" || eval "mkdir $as_dirs"
6849   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6850 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6851    { (exit 1); exit 1; }; }; }
6852     # echo "creating $dirpart/$file"
6853     echo '# dummy' > "$dirpart/$file"
6854   done
6855 done
6856  ;;
6857     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
6858         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
6859       esac ;;
6860
6861   esac
6862 done # for ac_tag
6863
6864
6865 { (exit 0); exit 0; }
6866 _ACEOF
6867 chmod +x $CONFIG_STATUS
6868 ac_clean_files=$ac_clean_files_save
6869
6870
6871 # configure is writing to config.log, and then calls config.status.
6872 # config.status does its own redirection, appending to config.log.
6873 # Unfortunately, on DOS this fails, as config.log is still kept open
6874 # by configure, so config.status won't be able to write to it; its
6875 # output is simply discarded.  So we exec the FD to /dev/null,
6876 # effectively closing config.log, so it can be properly (re)opened and
6877 # appended to by config.status.  When coming back to configure, we
6878 # need to make the FD available again.
6879 if test "$no_create" != yes; then
6880   ac_cs_success=:
6881   ac_config_status_args=
6882   test "$silent" = yes &&
6883     ac_config_status_args="$ac_config_status_args --quiet"
6884   exec 5>/dev/null
6885   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6886   exec 5>>config.log
6887   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6888   # would make configure fail if this is the last instruction.
6889   $ac_cs_success || { (exit 1); exit 1; }
6890 fi
6891