1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for briquolo 0.5.7.
4#
5# Report bugs to <cedric.bregardis@free.fr>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554exec 7<&0 </dev/null 6>&1
555
556# Name of the host.
557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558# so uname gets run too.
559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
565ac_clean_files=
566ac_config_libobj_dir=.
567LIBOBJS=
568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
574# Identity of this package.
575PACKAGE_NAME='briquolo'
576PACKAGE_TARNAME='briquolo'
577PACKAGE_VERSION='0.5.7'
578PACKAGE_STRING='briquolo 0.5.7'
579PACKAGE_BUGREPORT='cedric.bregardis@free.fr'
580
581ac_unique_file="src/MenuJeu.h"
582# Factoring default headers for most tests.
583ac_includes_default="\
584#include <stdio.h>
585#ifdef HAVE_SYS_TYPES_H
586# include <sys/types.h>
587#endif
588#ifdef HAVE_SYS_STAT_H
589# include <sys/stat.h>
590#endif
591#ifdef STDC_HEADERS
592# include <stdlib.h>
593# include <stddef.h>
594#else
595# ifdef HAVE_STDLIB_H
596#  include <stdlib.h>
597# endif
598#endif
599#ifdef HAVE_STRING_H
600# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601#  include <memory.h>
602# endif
603# include <string.h>
604#endif
605#ifdef HAVE_STRINGS_H
606# include <strings.h>
607#endif
608#ifdef HAVE_INTTYPES_H
609# include <inttypes.h>
610#endif
611#ifdef HAVE_STDINT_H
612# include <stdint.h>
613#endif
614#ifdef HAVE_UNISTD_H
615# include <unistd.h>
616#endif"
617
618ac_subst_vars='SHELL
619PATH_SEPARATOR
620PACKAGE_NAME
621PACKAGE_TARNAME
622PACKAGE_VERSION
623PACKAGE_STRING
624PACKAGE_BUGREPORT
625exec_prefix
626prefix
627program_transform_name
628bindir
629sbindir
630libexecdir
631datarootdir
632datadir
633sysconfdir
634sharedstatedir
635localstatedir
636includedir
637oldincludedir
638docdir
639infodir
640htmldir
641dvidir
642pdfdir
643psdir
644libdir
645localedir
646mandir
647DEFS
648ECHO_C
649ECHO_N
650ECHO_T
651LIBS
652build_alias
653host_alias
654target_alias
655build
656build_cpu
657build_vendor
658build_os
659host
660host_cpu
661host_vendor
662host_os
663target
664target_cpu
665target_vendor
666target_os
667INSTALL_PROGRAM
668INSTALL_SCRIPT
669INSTALL_DATA
670CYGPATH_W
671PACKAGE
672VERSION
673ACLOCAL
674AUTOCONF
675AUTOMAKE
676AUTOHEADER
677MAKEINFO
678install_sh
679STRIP
680INSTALL_STRIP_PROGRAM
681mkdir_p
682AWK
683SET_MAKE
684am__leading_dot
685AMTAR
686am__tar
687am__untar
688CXX
689CXXFLAGS
690LDFLAGS
691CPPFLAGS
692ac_ct_CXX
693EXEEXT
694OBJEXT
695DEPDIR
696am__include
697am__quote
698AMDEP_TRUE
699AMDEP_FALSE
700AMDEPBACKSLASH
701CXXDEPMODE
702am__fastdepCXX_TRUE
703am__fastdepCXX_FALSE
704CC
705CFLAGS
706ac_ct_CC
707CCDEPMODE
708am__fastdepCC_TRUE
709am__fastdepCC_FALSE
710RANLIB
711YACC
712YFLAGS
713ALLOCA
714CPP
715GREP
716EGREP
717LIBOBJS
718freetypeconfig
719pngconfig
720SDL_CONFIG
721SDL_CFLAGS
722SDL_LIBS
723MKINSTALLDIRS
724USE_NLS
725MSGFMT
726GMSGFMT
727XGETTEXT
728MSGMERGE
729GLIBC21
730HAVE_POSIX_PRINTF
731HAVE_ASPRINTF
732HAVE_SNPRINTF
733HAVE_WPRINTF
734LIBICONV
735LTLIBICONV
736INTLBISON
737BUILD_INCLUDED_LIBINTL
738USE_INCLUDED_LIBINTL
739CATOBJEXT
740DATADIRNAME
741INSTOBJEXT
742GENCAT
743INTLOBJS
744INTL_LIBTOOL_SUFFIX_PREFIX
745INTLLIBS
746LIBINTL
747LTLIBINTL
748POSUB
749XMKMF
750LTLIBOBJS'
751ac_subst_files=''
752      ac_precious_vars='build_alias
753host_alias
754target_alias
755CXX
756CXXFLAGS
757LDFLAGS
758LIBS
759CPPFLAGS
760CCC
761CC
762CFLAGS
763YACC
764YFLAGS
765CPP
766XMKMF'
767
768
769# Initialize some variables set by options.
770ac_init_help=
771ac_init_version=false
772# The variables have the same names as the options, with
773# dashes changed to underlines.
774cache_file=/dev/null
775exec_prefix=NONE
776no_create=
777no_recursion=
778prefix=NONE
779program_prefix=NONE
780program_suffix=NONE
781program_transform_name=s,x,x,
782silent=
783site=
784srcdir=
785verbose=
786x_includes=NONE
787x_libraries=NONE
788
789# Installation directory options.
790# These are left unexpanded so users can "make install exec_prefix=/foo"
791# and all the variables that are supposed to be based on exec_prefix
792# by default will actually change.
793# Use braces instead of parens because sh, perl, etc. also accept them.
794# (The list follows the same order as the GNU Coding Standards.)
795bindir='${exec_prefix}/bin'
796sbindir='${exec_prefix}/sbin'
797libexecdir='${exec_prefix}/libexec'
798datarootdir='${prefix}/share'
799datadir='${datarootdir}'
800sysconfdir='${prefix}/etc'
801sharedstatedir='${prefix}/com'
802localstatedir='${prefix}/var'
803includedir='${prefix}/include'
804oldincludedir='/usr/include'
805docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806infodir='${datarootdir}/info'
807htmldir='${docdir}'
808dvidir='${docdir}'
809pdfdir='${docdir}'
810psdir='${docdir}'
811libdir='${exec_prefix}/lib'
812localedir='${datarootdir}/locale'
813mandir='${datarootdir}/man'
814
815ac_prev=
816ac_dashdash=
817for ac_option
818do
819  # If the previous option needs an argument, assign it.
820  if test -n "$ac_prev"; then
821    eval $ac_prev=\$ac_option
822    ac_prev=
823    continue
824  fi
825
826  case $ac_option in
827  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828  *)	ac_optarg=yes ;;
829  esac
830
831  # Accept the important Cygnus configure options, so we can diagnose typos.
832
833  case $ac_dashdash$ac_option in
834  --)
835    ac_dashdash=yes ;;
836
837  -bindir | --bindir | --bindi | --bind | --bin | --bi)
838    ac_prev=bindir ;;
839  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840    bindir=$ac_optarg ;;
841
842  -build | --build | --buil | --bui | --bu)
843    ac_prev=build_alias ;;
844  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845    build_alias=$ac_optarg ;;
846
847  -cache-file | --cache-file | --cache-fil | --cache-fi \
848  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849    ac_prev=cache_file ;;
850  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852    cache_file=$ac_optarg ;;
853
854  --config-cache | -C)
855    cache_file=config.cache ;;
856
857  -datadir | --datadir | --datadi | --datad)
858    ac_prev=datadir ;;
859  -datadir=* | --datadir=* | --datadi=* | --datad=*)
860    datadir=$ac_optarg ;;
861
862  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863  | --dataroo | --dataro | --datar)
864    ac_prev=datarootdir ;;
865  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867    datarootdir=$ac_optarg ;;
868
869  -disable-* | --disable-*)
870    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871    # Reject names that are not valid shell variable names.
872    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
873      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874   { (exit 1); exit 1; }; }
875    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
876    eval enable_$ac_feature=no ;;
877
878  -docdir | --docdir | --docdi | --doc | --do)
879    ac_prev=docdir ;;
880  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881    docdir=$ac_optarg ;;
882
883  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884    ac_prev=dvidir ;;
885  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886    dvidir=$ac_optarg ;;
887
888  -enable-* | --enable-*)
889    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890    # Reject names that are not valid shell variable names.
891    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
892      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
893   { (exit 1); exit 1; }; }
894    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
895    eval enable_$ac_feature=\$ac_optarg ;;
896
897  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899  | --exec | --exe | --ex)
900    ac_prev=exec_prefix ;;
901  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903  | --exec=* | --exe=* | --ex=*)
904    exec_prefix=$ac_optarg ;;
905
906  -gas | --gas | --ga | --g)
907    # Obsolete; use --with-gas.
908    with_gas=yes ;;
909
910  -help | --help | --hel | --he | -h)
911    ac_init_help=long ;;
912  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913    ac_init_help=recursive ;;
914  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915    ac_init_help=short ;;
916
917  -host | --host | --hos | --ho)
918    ac_prev=host_alias ;;
919  -host=* | --host=* | --hos=* | --ho=*)
920    host_alias=$ac_optarg ;;
921
922  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923    ac_prev=htmldir ;;
924  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925  | --ht=*)
926    htmldir=$ac_optarg ;;
927
928  -includedir | --includedir | --includedi | --included | --include \
929  | --includ | --inclu | --incl | --inc)
930    ac_prev=includedir ;;
931  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932  | --includ=* | --inclu=* | --incl=* | --inc=*)
933    includedir=$ac_optarg ;;
934
935  -infodir | --infodir | --infodi | --infod | --info | --inf)
936    ac_prev=infodir ;;
937  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938    infodir=$ac_optarg ;;
939
940  -libdir | --libdir | --libdi | --libd)
941    ac_prev=libdir ;;
942  -libdir=* | --libdir=* | --libdi=* | --libd=*)
943    libdir=$ac_optarg ;;
944
945  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946  | --libexe | --libex | --libe)
947    ac_prev=libexecdir ;;
948  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949  | --libexe=* | --libex=* | --libe=*)
950    libexecdir=$ac_optarg ;;
951
952  -localedir | --localedir | --localedi | --localed | --locale)
953    ac_prev=localedir ;;
954  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955    localedir=$ac_optarg ;;
956
957  -localstatedir | --localstatedir | --localstatedi | --localstated \
958  | --localstate | --localstat | --localsta | --localst | --locals)
959    ac_prev=localstatedir ;;
960  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962    localstatedir=$ac_optarg ;;
963
964  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965    ac_prev=mandir ;;
966  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967    mandir=$ac_optarg ;;
968
969  -nfp | --nfp | --nf)
970    # Obsolete; use --without-fp.
971    with_fp=no ;;
972
973  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974  | --no-cr | --no-c | -n)
975    no_create=yes ;;
976
977  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979    no_recursion=yes ;;
980
981  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983  | --oldin | --oldi | --old | --ol | --o)
984    ac_prev=oldincludedir ;;
985  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988    oldincludedir=$ac_optarg ;;
989
990  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991    ac_prev=prefix ;;
992  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993    prefix=$ac_optarg ;;
994
995  -program-prefix | --program-prefix | --program-prefi | --program-pref \
996  | --program-pre | --program-pr | --program-p)
997    ac_prev=program_prefix ;;
998  -program-prefix=* | --program-prefix=* | --program-prefi=* \
999  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000    program_prefix=$ac_optarg ;;
1001
1002  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003  | --program-suf | --program-su | --program-s)
1004    ac_prev=program_suffix ;;
1005  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007    program_suffix=$ac_optarg ;;
1008
1009  -program-transform-name | --program-transform-name \
1010  | --program-transform-nam | --program-transform-na \
1011  | --program-transform-n | --program-transform- \
1012  | --program-transform | --program-transfor \
1013  | --program-transfo | --program-transf \
1014  | --program-trans | --program-tran \
1015  | --progr-tra | --program-tr | --program-t)
1016    ac_prev=program_transform_name ;;
1017  -program-transform-name=* | --program-transform-name=* \
1018  | --program-transform-nam=* | --program-transform-na=* \
1019  | --program-transform-n=* | --program-transform-=* \
1020  | --program-transform=* | --program-transfor=* \
1021  | --program-transfo=* | --program-transf=* \
1022  | --program-trans=* | --program-tran=* \
1023  | --progr-tra=* | --program-tr=* | --program-t=*)
1024    program_transform_name=$ac_optarg ;;
1025
1026  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027    ac_prev=pdfdir ;;
1028  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029    pdfdir=$ac_optarg ;;
1030
1031  -psdir | --psdir | --psdi | --psd | --ps)
1032    ac_prev=psdir ;;
1033  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034    psdir=$ac_optarg ;;
1035
1036  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037  | -silent | --silent | --silen | --sile | --sil)
1038    silent=yes ;;
1039
1040  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041    ac_prev=sbindir ;;
1042  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043  | --sbi=* | --sb=*)
1044    sbindir=$ac_optarg ;;
1045
1046  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048  | --sharedst | --shareds | --shared | --share | --shar \
1049  | --sha | --sh)
1050    ac_prev=sharedstatedir ;;
1051  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054  | --sha=* | --sh=*)
1055    sharedstatedir=$ac_optarg ;;
1056
1057  -site | --site | --sit)
1058    ac_prev=site ;;
1059  -site=* | --site=* | --sit=*)
1060    site=$ac_optarg ;;
1061
1062  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063    ac_prev=srcdir ;;
1064  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065    srcdir=$ac_optarg ;;
1066
1067  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068  | --syscon | --sysco | --sysc | --sys | --sy)
1069    ac_prev=sysconfdir ;;
1070  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072    sysconfdir=$ac_optarg ;;
1073
1074  -target | --target | --targe | --targ | --tar | --ta | --t)
1075    ac_prev=target_alias ;;
1076  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077    target_alias=$ac_optarg ;;
1078
1079  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080    verbose=yes ;;
1081
1082  -version | --version | --versio | --versi | --vers | -V)
1083    ac_init_version=: ;;
1084
1085  -with-* | --with-*)
1086    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087    # Reject names that are not valid shell variable names.
1088    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089      { echo "$as_me: error: invalid package name: $ac_package" >&2
1090   { (exit 1); exit 1; }; }
1091    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1092    eval with_$ac_package=\$ac_optarg ;;
1093
1094  -without-* | --without-*)
1095    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096    # Reject names that are not valid shell variable names.
1097    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1098      { echo "$as_me: error: invalid package name: $ac_package" >&2
1099   { (exit 1); exit 1; }; }
1100    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1101    eval with_$ac_package=no ;;
1102
1103  --x)
1104    # Obsolete; use --with-x.
1105    with_x=yes ;;
1106
1107  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108  | --x-incl | --x-inc | --x-in | --x-i)
1109    ac_prev=x_includes ;;
1110  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112    x_includes=$ac_optarg ;;
1113
1114  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116    ac_prev=x_libraries ;;
1117  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119    x_libraries=$ac_optarg ;;
1120
1121  -*) { echo "$as_me: error: unrecognized option: $ac_option
1122Try \`$0 --help' for more information." >&2
1123   { (exit 1); exit 1; }; }
1124    ;;
1125
1126  *=*)
1127    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128    # Reject names that are not valid shell variable names.
1129    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1130      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1131   { (exit 1); exit 1; }; }
1132    eval $ac_envvar=\$ac_optarg
1133    export $ac_envvar ;;
1134
1135  *)
1136    # FIXME: should be removed in autoconf 3.0.
1137    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1138    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1140    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1141    ;;
1142
1143  esac
1144done
1145
1146if test -n "$ac_prev"; then
1147  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1148  { echo "$as_me: error: missing argument to $ac_option" >&2
1149   { (exit 1); exit 1; }; }
1150fi
1151
1152# Be sure to have absolute directory names.
1153for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1154		datadir sysconfdir sharedstatedir localstatedir includedir \
1155		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1156		libdir localedir mandir
1157do
1158  eval ac_val=\$$ac_var
1159  case $ac_val in
1160    [\\/$]* | ?:[\\/]* )  continue;;
1161    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1162  esac
1163  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1164   { (exit 1); exit 1; }; }
1165done
1166
1167# There might be people who depend on the old broken behavior: `$host'
1168# used to hold the argument of --host etc.
1169# FIXME: To remove some day.
1170build=$build_alias
1171host=$host_alias
1172target=$target_alias
1173
1174# FIXME: To remove some day.
1175if test "x$host_alias" != x; then
1176  if test "x$build_alias" = x; then
1177    cross_compiling=maybe
1178    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1179    If a cross compiler is detected then cross compile mode will be used." >&2
1180  elif test "x$build_alias" != "x$host_alias"; then
1181    cross_compiling=yes
1182  fi
1183fi
1184
1185ac_tool_prefix=
1186test -n "$host_alias" && ac_tool_prefix=$host_alias-
1187
1188test "$silent" = yes && exec 6>/dev/null
1189
1190
1191ac_pwd=`pwd` && test -n "$ac_pwd" &&
1192ac_ls_di=`ls -di .` &&
1193ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1194  { echo "$as_me: error: Working directory cannot be determined" >&2
1195   { (exit 1); exit 1; }; }
1196test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1197  { echo "$as_me: error: pwd does not report name of working directory" >&2
1198   { (exit 1); exit 1; }; }
1199
1200
1201# Find the source files, if location was not specified.
1202if test -z "$srcdir"; then
1203  ac_srcdir_defaulted=yes
1204  # Try the directory containing this script, then the parent directory.
1205  ac_confdir=`$as_dirname -- "$0" ||
1206$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1207	 X"$0" : 'X\(//\)[^/]' \| \
1208	 X"$0" : 'X\(//\)$' \| \
1209	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1210echo X"$0" |
1211    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212	    s//\1/
1213	    q
1214	  }
1215	  /^X\(\/\/\)[^/].*/{
1216	    s//\1/
1217	    q
1218	  }
1219	  /^X\(\/\/\)$/{
1220	    s//\1/
1221	    q
1222	  }
1223	  /^X\(\/\).*/{
1224	    s//\1/
1225	    q
1226	  }
1227	  s/.*/./; q'`
1228  srcdir=$ac_confdir
1229  if test ! -r "$srcdir/$ac_unique_file"; then
1230    srcdir=..
1231  fi
1232else
1233  ac_srcdir_defaulted=no
1234fi
1235if test ! -r "$srcdir/$ac_unique_file"; then
1236  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1237  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1238   { (exit 1); exit 1; }; }
1239fi
1240ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1241ac_abs_confdir=`(
1242	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1243   { (exit 1); exit 1; }; }
1244	pwd)`
1245# When building in place, set srcdir=.
1246if test "$ac_abs_confdir" = "$ac_pwd"; then
1247  srcdir=.
1248fi
1249# Remove unnecessary trailing slashes from srcdir.
1250# Double slashes in file names in object file debugging info
1251# mess up M-x gdb in Emacs.
1252case $srcdir in
1253*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1254esac
1255for ac_var in $ac_precious_vars; do
1256  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1257  eval ac_env_${ac_var}_value=\$${ac_var}
1258  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1259  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1260done
1261
1262#
1263# Report the --help message.
1264#
1265if test "$ac_init_help" = "long"; then
1266  # Omit some internal or obsolete options to make the list less imposing.
1267  # This message is too long to be a string in the A/UX 3.1 sh.
1268  cat <<_ACEOF
1269\`configure' configures briquolo 0.5.7 to adapt to many kinds of systems.
1270
1271Usage: $0 [OPTION]... [VAR=VALUE]...
1272
1273To assign environment variables (e.g., CC, CFLAGS...), specify them as
1274VAR=VALUE.  See below for descriptions of some of the useful variables.
1275
1276Defaults for the options are specified in brackets.
1277
1278Configuration:
1279  -h, --help              display this help and exit
1280      --help=short        display options specific to this package
1281      --help=recursive    display the short help of all the included packages
1282  -V, --version           display version information and exit
1283  -q, --quiet, --silent   do not print \`checking...' messages
1284      --cache-file=FILE   cache test results in FILE [disabled]
1285  -C, --config-cache      alias for \`--cache-file=config.cache'
1286  -n, --no-create         do not create output files
1287      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1288
1289Installation directories:
1290  --prefix=PREFIX         install architecture-independent files in PREFIX
1291			  [$ac_default_prefix]
1292  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1293			  [PREFIX]
1294
1295By default, \`make install' will install all the files in
1296\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1297an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1298for instance \`--prefix=\$HOME'.
1299
1300For better control, use the options below.
1301
1302Fine tuning of the installation directories:
1303  --bindir=DIR           user executables [EPREFIX/bin]
1304  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1305  --libexecdir=DIR       program executables [EPREFIX/libexec]
1306  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1307  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1308  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1309  --libdir=DIR           object code libraries [EPREFIX/lib]
1310  --includedir=DIR       C header files [PREFIX/include]
1311  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1312  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1313  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1314  --infodir=DIR          info documentation [DATAROOTDIR/info]
1315  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1316  --mandir=DIR           man documentation [DATAROOTDIR/man]
1317  --docdir=DIR           documentation root [DATAROOTDIR/doc/briquolo]
1318  --htmldir=DIR          html documentation [DOCDIR]
1319  --dvidir=DIR           dvi documentation [DOCDIR]
1320  --pdfdir=DIR           pdf documentation [DOCDIR]
1321  --psdir=DIR            ps documentation [DOCDIR]
1322_ACEOF
1323
1324  cat <<\_ACEOF
1325
1326Program names:
1327  --program-prefix=PREFIX            prepend PREFIX to installed program names
1328  --program-suffix=SUFFIX            append SUFFIX to installed program names
1329  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1330
1331X features:
1332  --x-includes=DIR    X include files are in DIR
1333  --x-libraries=DIR   X library files are in DIR
1334
1335System types:
1336  --build=BUILD     configure for building on BUILD [guessed]
1337  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1338  --target=TARGET   configure for building compilers for TARGET [HOST]
1339_ACEOF
1340fi
1341
1342if test -n "$ac_init_help"; then
1343  case $ac_init_help in
1344     short | recursive ) echo "Configuration of briquolo 0.5.7:";;
1345   esac
1346  cat <<\_ACEOF
1347
1348Optional Features:
1349  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1350  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1351  --disable-dependency-tracking  speeds up one-time build
1352  --enable-dependency-tracking   do not reject slow dependency extractors
1353  --disable-sdltest       Do not try to compile and run a test SDL program
1354  --disable-nls           do not use Native Language Support
1355  --disable-rpath         do not hardcode runtime library paths
1356  --enable-debug          Enable debugging default=no
1357
1358Optional Packages:
1359  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1360  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1361  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1362  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1363  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1364  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1365  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1366  --with-included-gettext use the GNU gettext library included here
1367  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1368  --without-libintl-prefix     don't search for libintl in includedir and libdir
1369  --with-x                use the X Window System
1370
1371Some influential environment variables:
1372  CXX         C++ compiler command
1373  CXXFLAGS    C++ compiler flags
1374  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1375              nonstandard directory <lib dir>
1376  LIBS        libraries to pass to the linker, e.g. -l<library>
1377  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1378              you have headers in a nonstandard directory <include dir>
1379  CC          C compiler command
1380  CFLAGS      C compiler flags
1381  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1382              the first program found out of: `bison -y', `byacc', `yacc'.
1383  YFLAGS      The list of arguments that will be passed by default to $YACC.
1384              This script will default YFLAGS to the empty string to avoid a
1385              default value of `-d' given by some make applications.
1386  CPP         C preprocessor
1387  XMKMF       Path to xmkmf, Makefile generator for X Window System
1388
1389Use these variables to override the choices made by `configure' or to help
1390it to find libraries and programs with nonstandard names/locations.
1391
1392Report bugs to <cedric.bregardis@free.fr>.
1393_ACEOF
1394ac_status=$?
1395fi
1396
1397if test "$ac_init_help" = "recursive"; then
1398  # If there are subdirs, report their specific --help.
1399  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400    test -d "$ac_dir" || continue
1401    ac_builddir=.
1402
1403case "$ac_dir" in
1404.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405*)
1406  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1407  # A ".." for each directory in $ac_dir_suffix.
1408  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1409  case $ac_top_builddir_sub in
1410  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412  esac ;;
1413esac
1414ac_abs_top_builddir=$ac_pwd
1415ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416# for backward compatibility:
1417ac_top_builddir=$ac_top_build_prefix
1418
1419case $srcdir in
1420  .)  # We are building in place.
1421    ac_srcdir=.
1422    ac_top_srcdir=$ac_top_builddir_sub
1423    ac_abs_top_srcdir=$ac_pwd ;;
1424  [\\/]* | ?:[\\/]* )  # Absolute name.
1425    ac_srcdir=$srcdir$ac_dir_suffix;
1426    ac_top_srcdir=$srcdir
1427    ac_abs_top_srcdir=$srcdir ;;
1428  *) # Relative name.
1429    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430    ac_top_srcdir=$ac_top_build_prefix$srcdir
1431    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432esac
1433ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434
1435    cd "$ac_dir" || { ac_status=$?; continue; }
1436    # Check for guested configure.
1437    if test -f "$ac_srcdir/configure.gnu"; then
1438      echo &&
1439      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440    elif test -f "$ac_srcdir/configure"; then
1441      echo &&
1442      $SHELL "$ac_srcdir/configure" --help=recursive
1443    else
1444      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445    fi || ac_status=$?
1446    cd "$ac_pwd" || { ac_status=$?; break; }
1447  done
1448fi
1449
1450test -n "$ac_init_help" && exit $ac_status
1451if $ac_init_version; then
1452  cat <<\_ACEOF
1453briquolo configure 0.5.7
1454generated by GNU Autoconf 2.61
1455
1456Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14572002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458This configure script is free software; the Free Software Foundation
1459gives unlimited permission to copy, distribute and modify it.
1460_ACEOF
1461  exit
1462fi
1463cat >config.log <<_ACEOF
1464This file contains any messages produced by compilers while
1465running configure, to aid debugging if configure makes a mistake.
1466
1467It was created by briquolo $as_me 0.5.7, which was
1468generated by GNU Autoconf 2.61.  Invocation command line was
1469
1470  $ $0 $@
1471
1472_ACEOF
1473exec 5>>config.log
1474{
1475cat <<_ASUNAME
1476## --------- ##
1477## Platform. ##
1478## --------- ##
1479
1480hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484uname -v = `(uname -v) 2>/dev/null || echo unknown`
1485
1486/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1488
1489/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1490/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1491/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1492/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1493/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1494/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1495/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1496
1497_ASUNAME
1498
1499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500for as_dir in $PATH
1501do
1502  IFS=$as_save_IFS
1503  test -z "$as_dir" && as_dir=.
1504  echo "PATH: $as_dir"
1505done
1506IFS=$as_save_IFS
1507
1508} >&5
1509
1510cat >&5 <<_ACEOF
1511
1512
1513## ----------- ##
1514## Core tests. ##
1515## ----------- ##
1516
1517_ACEOF
1518
1519
1520# Keep a trace of the command line.
1521# Strip out --no-create and --no-recursion so they do not pile up.
1522# Strip out --silent because we don't want to record it for future runs.
1523# Also quote any args containing shell meta-characters.
1524# Make two passes to allow for proper duplicate-argument suppression.
1525ac_configure_args=
1526ac_configure_args0=
1527ac_configure_args1=
1528ac_must_keep_next=false
1529for ac_pass in 1 2
1530do
1531  for ac_arg
1532  do
1533    case $ac_arg in
1534    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536    | -silent | --silent | --silen | --sile | --sil)
1537      continue ;;
1538    *\'*)
1539      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1540    esac
1541    case $ac_pass in
1542    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1543    2)
1544      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545      if test $ac_must_keep_next = true; then
1546	ac_must_keep_next=false # Got value, back to normal.
1547      else
1548	case $ac_arg in
1549	  *=* | --config-cache | -C | -disable-* | --disable-* \
1550	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552	  | -with-* | --with-* | -without-* | --without-* | --x)
1553	    case "$ac_configure_args0 " in
1554	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555	    esac
1556	    ;;
1557	  -* ) ac_must_keep_next=true ;;
1558	esac
1559      fi
1560      ac_configure_args="$ac_configure_args '$ac_arg'"
1561      ;;
1562    esac
1563  done
1564done
1565$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1567
1568# When interrupted or exit'd, cleanup temporary files, and complete
1569# config.log.  We remove comments because anyway the quotes in there
1570# would cause problems or look ugly.
1571# WARNING: Use '\'' to represent an apostrophe within the trap.
1572# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573trap 'exit_status=$?
1574  # Save into config.log some information that might help in debugging.
1575  {
1576    echo
1577
1578    cat <<\_ASBOX
1579## ---------------- ##
1580## Cache variables. ##
1581## ---------------- ##
1582_ASBOX
1583    echo
1584    # The following way of writing the cache mishandles newlines in values,
1585(
1586  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587    eval ac_val=\$$ac_var
1588    case $ac_val in #(
1589    *${as_nl}*)
1590      case $ac_var in #(
1591      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593      esac
1594      case $ac_var in #(
1595      _ | IFS | as_nl) ;; #(
1596      *) $as_unset $ac_var ;;
1597      esac ;;
1598    esac
1599  done
1600  (set) 2>&1 |
1601    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602    *${as_nl}ac_space=\ *)
1603      sed -n \
1604	"s/'\''/'\''\\\\'\'''\''/g;
1605	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606      ;; #(
1607    *)
1608      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1609      ;;
1610    esac |
1611    sort
1612)
1613    echo
1614
1615    cat <<\_ASBOX
1616## ----------------- ##
1617## Output variables. ##
1618## ----------------- ##
1619_ASBOX
1620    echo
1621    for ac_var in $ac_subst_vars
1622    do
1623      eval ac_val=\$$ac_var
1624      case $ac_val in
1625      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626      esac
1627      echo "$ac_var='\''$ac_val'\''"
1628    done | sort
1629    echo
1630
1631    if test -n "$ac_subst_files"; then
1632      cat <<\_ASBOX
1633## ------------------- ##
1634## File substitutions. ##
1635## ------------------- ##
1636_ASBOX
1637      echo
1638      for ac_var in $ac_subst_files
1639      do
1640	eval ac_val=\$$ac_var
1641	case $ac_val in
1642	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643	esac
1644	echo "$ac_var='\''$ac_val'\''"
1645      done | sort
1646      echo
1647    fi
1648
1649    if test -s confdefs.h; then
1650      cat <<\_ASBOX
1651## ----------- ##
1652## confdefs.h. ##
1653## ----------- ##
1654_ASBOX
1655      echo
1656      cat confdefs.h
1657      echo
1658    fi
1659    test "$ac_signal" != 0 &&
1660      echo "$as_me: caught signal $ac_signal"
1661    echo "$as_me: exit $exit_status"
1662  } >&5
1663  rm -f core *.core core.conftest.* &&
1664    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1665    exit $exit_status
1666' 0
1667for ac_signal in 1 2 13 15; do
1668  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669done
1670ac_signal=0
1671
1672# confdefs.h avoids OS command line length limits that DEFS can exceed.
1673rm -f -r conftest* confdefs.h
1674
1675# Predefined preprocessor variables.
1676
1677cat >>confdefs.h <<_ACEOF
1678#define PACKAGE_NAME "$PACKAGE_NAME"
1679_ACEOF
1680
1681
1682cat >>confdefs.h <<_ACEOF
1683#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684_ACEOF
1685
1686
1687cat >>confdefs.h <<_ACEOF
1688#define PACKAGE_VERSION "$PACKAGE_VERSION"
1689_ACEOF
1690
1691
1692cat >>confdefs.h <<_ACEOF
1693#define PACKAGE_STRING "$PACKAGE_STRING"
1694_ACEOF
1695
1696
1697cat >>confdefs.h <<_ACEOF
1698#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699_ACEOF
1700
1701
1702# Let the site file select an alternate cache file if it wants to.
1703# Prefer explicitly selected file to automatically selected ones.
1704if test -n "$CONFIG_SITE"; then
1705  set x "$CONFIG_SITE"
1706elif test "x$prefix" != xNONE; then
1707  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1708else
1709  set x "$ac_default_prefix/share/config.site" \
1710	"$ac_default_prefix/etc/config.site"
1711fi
1712shift
1713for ac_site_file
1714do
1715  if test -r "$ac_site_file"; then
1716    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717echo "$as_me: loading site script $ac_site_file" >&6;}
1718    sed 's/^/| /' "$ac_site_file" >&5
1719    . "$ac_site_file"
1720  fi
1721done
1722
1723if test -r "$cache_file"; then
1724  # Some versions of bash will fail to source /dev/null (special
1725  # files actually), so we avoid doing that.
1726  if test -f "$cache_file"; then
1727    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728echo "$as_me: loading cache $cache_file" >&6;}
1729    case $cache_file in
1730      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731      *)                      . "./$cache_file";;
1732    esac
1733  fi
1734else
1735  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736echo "$as_me: creating cache $cache_file" >&6;}
1737  >$cache_file
1738fi
1739
1740# Check that the precious variables saved in the cache have kept the same
1741# value.
1742ac_cache_corrupted=false
1743for ac_var in $ac_precious_vars; do
1744  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1745  eval ac_new_set=\$ac_env_${ac_var}_set
1746  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1747  eval ac_new_val=\$ac_env_${ac_var}_value
1748  case $ac_old_set,$ac_new_set in
1749    set,)
1750      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1751echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1752      ac_cache_corrupted=: ;;
1753    ,set)
1754      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1755echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1756      ac_cache_corrupted=: ;;
1757    ,);;
1758    *)
1759      if test "x$ac_old_val" != "x$ac_new_val"; then
1760	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1761echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1762	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1763echo "$as_me:   former value:  $ac_old_val" >&2;}
1764	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1765echo "$as_me:   current value: $ac_new_val" >&2;}
1766	ac_cache_corrupted=:
1767      fi;;
1768  esac
1769  # Pass precious variables to config.status.
1770  if test "$ac_new_set" = set; then
1771    case $ac_new_val in
1772    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1773    *) ac_arg=$ac_var=$ac_new_val ;;
1774    esac
1775    case " $ac_configure_args " in
1776      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1777      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1778    esac
1779  fi
1780done
1781if $ac_cache_corrupted; then
1782  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1783echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1784  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1785echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1786   { (exit 1); exit 1; }; }
1787fi
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813ac_ext=c
1814ac_cpp='$CPP $CPPFLAGS'
1815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1817ac_compiler_gnu=$ac_cv_c_compiler_gnu
1818
1819
1820
1821
1822ac_config_headers="$ac_config_headers config.h"
1823
1824
1825ac_aux_dir=
1826for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1827  if test -f "$ac_dir/install-sh"; then
1828    ac_aux_dir=$ac_dir
1829    ac_install_sh="$ac_aux_dir/install-sh -c"
1830    break
1831  elif test -f "$ac_dir/install.sh"; then
1832    ac_aux_dir=$ac_dir
1833    ac_install_sh="$ac_aux_dir/install.sh -c"
1834    break
1835  elif test -f "$ac_dir/shtool"; then
1836    ac_aux_dir=$ac_dir
1837    ac_install_sh="$ac_aux_dir/shtool install -c"
1838    break
1839  fi
1840done
1841if test -z "$ac_aux_dir"; then
1842  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1843echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1844   { (exit 1); exit 1; }; }
1845fi
1846
1847# These three variables are undocumented and unsupported,
1848# and are intended to be withdrawn in a future Autoconf release.
1849# They can cause serious problems if a builder's source tree is in a directory
1850# whose full name contains unusual characters.
1851ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1852ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1853ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1854
1855
1856# Make sure we can run config.sub.
1857$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1858  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1859echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1860   { (exit 1); exit 1; }; }
1861
1862{ echo "$as_me:$LINENO: checking build system type" >&5
1863echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1864if test "${ac_cv_build+set}" = set; then
1865  echo $ECHO_N "(cached) $ECHO_C" >&6
1866else
1867  ac_build_alias=$build_alias
1868test "x$ac_build_alias" = x &&
1869  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1870test "x$ac_build_alias" = x &&
1871  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1872echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1873   { (exit 1); exit 1; }; }
1874ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1875  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1876echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1877   { (exit 1); exit 1; }; }
1878
1879fi
1880{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1881echo "${ECHO_T}$ac_cv_build" >&6; }
1882case $ac_cv_build in
1883*-*-*) ;;
1884*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1885echo "$as_me: error: invalid value of canonical build" >&2;}
1886   { (exit 1); exit 1; }; };;
1887esac
1888build=$ac_cv_build
1889ac_save_IFS=$IFS; IFS='-'
1890set x $ac_cv_build
1891shift
1892build_cpu=$1
1893build_vendor=$2
1894shift; shift
1895# Remember, the first character of IFS is used to create $*,
1896# except with old shells:
1897build_os=$*
1898IFS=$ac_save_IFS
1899case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1900
1901
1902{ echo "$as_me:$LINENO: checking host system type" >&5
1903echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1904if test "${ac_cv_host+set}" = set; then
1905  echo $ECHO_N "(cached) $ECHO_C" >&6
1906else
1907  if test "x$host_alias" = x; then
1908  ac_cv_host=$ac_cv_build
1909else
1910  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1911    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1912echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1913   { (exit 1); exit 1; }; }
1914fi
1915
1916fi
1917{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1918echo "${ECHO_T}$ac_cv_host" >&6; }
1919case $ac_cv_host in
1920*-*-*) ;;
1921*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1922echo "$as_me: error: invalid value of canonical host" >&2;}
1923   { (exit 1); exit 1; }; };;
1924esac
1925host=$ac_cv_host
1926ac_save_IFS=$IFS; IFS='-'
1927set x $ac_cv_host
1928shift
1929host_cpu=$1
1930host_vendor=$2
1931shift; shift
1932# Remember, the first character of IFS is used to create $*,
1933# except with old shells:
1934host_os=$*
1935IFS=$ac_save_IFS
1936case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1937
1938
1939{ echo "$as_me:$LINENO: checking target system type" >&5
1940echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1941if test "${ac_cv_target+set}" = set; then
1942  echo $ECHO_N "(cached) $ECHO_C" >&6
1943else
1944  if test "x$target_alias" = x; then
1945  ac_cv_target=$ac_cv_host
1946else
1947  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1948    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1949echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1950   { (exit 1); exit 1; }; }
1951fi
1952
1953fi
1954{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1955echo "${ECHO_T}$ac_cv_target" >&6; }
1956case $ac_cv_target in
1957*-*-*) ;;
1958*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1959echo "$as_me: error: invalid value of canonical target" >&2;}
1960   { (exit 1); exit 1; }; };;
1961esac
1962target=$ac_cv_target
1963ac_save_IFS=$IFS; IFS='-'
1964set x $ac_cv_target
1965shift
1966target_cpu=$1
1967target_vendor=$2
1968shift; shift
1969# Remember, the first character of IFS is used to create $*,
1970# except with old shells:
1971target_os=$*
1972IFS=$ac_save_IFS
1973case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1974
1975
1976# The aliases save the names the user supplied, while $host etc.
1977# will get canonicalized.
1978test -n "$target_alias" &&
1979  test "$program_prefix$program_suffix$program_transform_name" = \
1980    NONENONEs,x,x, &&
1981  program_prefix=${target_alias}-
1982
1983am__api_version="1.9"
1984# Find a good install program.  We prefer a C program (faster),
1985# so one script is as good as another.  But avoid the broken or
1986# incompatible versions:
1987# SysV /etc/install, /usr/sbin/install
1988# SunOS /usr/etc/install
1989# IRIX /sbin/install
1990# AIX /bin/install
1991# AmigaOS /C/install, which installs bootblocks on floppy discs
1992# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1993# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1994# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1995# OS/2's system install, which has a completely different semantic
1996# ./install, which can be erroneously created by make from ./install.sh.
1997{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1998echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1999if test -z "$INSTALL"; then
2000if test "${ac_cv_path_install+set}" = set; then
2001  echo $ECHO_N "(cached) $ECHO_C" >&6
2002else
2003  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006  IFS=$as_save_IFS
2007  test -z "$as_dir" && as_dir=.
2008  # Account for people who put trailing slashes in PATH elements.
2009case $as_dir/ in
2010  ./ | .// | /cC/* | \
2011  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2012  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2013  /usr/ucb/* ) ;;
2014  *)
2015    # OSF1 and SCO ODT 3.0 have their own names for install.
2016    # Don't use installbsd from OSF since it installs stuff as root
2017    # by default.
2018    for ac_prog in ginstall scoinst install; do
2019      for ac_exec_ext in '' $ac_executable_extensions; do
2020	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2021	  if test $ac_prog = install &&
2022	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2023	    # AIX install.  It has an incompatible calling convention.
2024	    :
2025	  elif test $ac_prog = install &&
2026	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2027	    # program-specific install script used by HP pwplus--don't use.
2028	    :
2029	  else
2030	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2031	    break 3
2032	  fi
2033	fi
2034      done
2035    done
2036    ;;
2037esac
2038done
2039IFS=$as_save_IFS
2040
2041
2042fi
2043  if test "${ac_cv_path_install+set}" = set; then
2044    INSTALL=$ac_cv_path_install
2045  else
2046    # As a last resort, use the slow shell script.  Don't cache a
2047    # value for INSTALL within a source directory, because that will
2048    # break other packages using the cache if that directory is
2049    # removed, or if the value is a relative name.
2050    INSTALL=$ac_install_sh
2051  fi
2052fi
2053{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2054echo "${ECHO_T}$INSTALL" >&6; }
2055
2056# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2057# It thinks the first close brace ends the variable substitution.
2058test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2059
2060test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2061
2062test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2063
2064{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2065echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2066# Just in case
2067sleep 1
2068echo timestamp > conftest.file
2069# Do `set' in a subshell so we don't clobber the current shell's
2070# arguments.  Must try -L first in case configure is actually a
2071# symlink; some systems play weird games with the mod time of symlinks
2072# (eg FreeBSD returns the mod time of the symlink's containing
2073# directory).
2074if (
2075   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2076   if test "$*" = "X"; then
2077      # -L didn't work.
2078      set X `ls -t $srcdir/configure conftest.file`
2079   fi
2080   rm -f conftest.file
2081   if test "$*" != "X $srcdir/configure conftest.file" \
2082      && test "$*" != "X conftest.file $srcdir/configure"; then
2083
2084      # If neither matched, then we have a broken ls.  This can happen
2085      # if, for instance, CONFIG_SHELL is bash and it inherits a
2086      # broken ls alias from the environment.  This has actually
2087      # happened.  Such a system could not be considered "sane".
2088      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2089alias in your environment" >&5
2090echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2091alias in your environment" >&2;}
2092   { (exit 1); exit 1; }; }
2093   fi
2094
2095   test "$2" = conftest.file
2096   )
2097then
2098   # Ok.
2099   :
2100else
2101   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2102Check your system clock" >&5
2103echo "$as_me: error: newly created file is older than distributed files!
2104Check your system clock" >&2;}
2105   { (exit 1); exit 1; }; }
2106fi
2107{ echo "$as_me:$LINENO: result: yes" >&5
2108echo "${ECHO_T}yes" >&6; }
2109test "$program_prefix" != NONE &&
2110  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2111# Use a double $ so make ignores it.
2112test "$program_suffix" != NONE &&
2113  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2114# Double any \ or $.  echo might interpret backslashes.
2115# By default was `s,x,x', remove it if useless.
2116cat <<\_ACEOF >conftest.sed
2117s/[\\$]/&&/g;s/;s,x,x,$//
2118_ACEOF
2119program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2120rm -f conftest.sed
2121
2122# expand $ac_aux_dir to an absolute path
2123am_aux_dir=`cd $ac_aux_dir && pwd`
2124
2125test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2126# Use eval to expand $SHELL
2127if eval "$MISSING --run true"; then
2128  am_missing_run="$MISSING --run "
2129else
2130  am_missing_run=
2131  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2132echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2133fi
2134
2135if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2136  # We used to keeping the `.' as first argument, in order to
2137  # allow $(mkdir_p) to be used without argument.  As in
2138  #   $(mkdir_p) $(somedir)
2139  # where $(somedir) is conditionally defined.  However this is wrong
2140  # for two reasons:
2141  #  1. if the package is installed by a user who cannot write `.'
2142  #     make install will fail,
2143  #  2. the above comment should most certainly read
2144  #     $(mkdir_p) $(DESTDIR)$(somedir)
2145  #     so it does not work when $(somedir) is undefined and
2146  #     $(DESTDIR) is not.
2147  #  To support the latter case, we have to write
2148  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2149  #  so the `.' trick is pointless.
2150  mkdir_p='mkdir -p --'
2151else
2152  # On NextStep and OpenStep, the `mkdir' command does not
2153  # recognize any option.  It will interpret all options as
2154  # directories to create, and then abort because `.' already
2155  # exists.
2156  for d in ./-p ./--version;
2157  do
2158    test -d $d && rmdir $d
2159  done
2160  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2161  if test -f "$ac_aux_dir/mkinstalldirs"; then
2162    mkdir_p='$(mkinstalldirs)'
2163  else
2164    mkdir_p='$(install_sh) -d'
2165  fi
2166fi
2167
2168for ac_prog in gawk mawk nawk awk
2169do
2170  # Extract the first word of "$ac_prog", so it can be a program name with args.
2171set dummy $ac_prog; ac_word=$2
2172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174if test "${ac_cv_prog_AWK+set}" = set; then
2175  echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
2177  if test -n "$AWK"; then
2178  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2179else
2180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181for as_dir in $PATH
2182do
2183  IFS=$as_save_IFS
2184  test -z "$as_dir" && as_dir=.
2185  for ac_exec_ext in '' $ac_executable_extensions; do
2186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2187    ac_cv_prog_AWK="$ac_prog"
2188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189    break 2
2190  fi
2191done
2192done
2193IFS=$as_save_IFS
2194
2195fi
2196fi
2197AWK=$ac_cv_prog_AWK
2198if test -n "$AWK"; then
2199  { echo "$as_me:$LINENO: result: $AWK" >&5
2200echo "${ECHO_T}$AWK" >&6; }
2201else
2202  { echo "$as_me:$LINENO: result: no" >&5
2203echo "${ECHO_T}no" >&6; }
2204fi
2205
2206
2207  test -n "$AWK" && break
2208done
2209
2210{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2211echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2212set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2213if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2214  echo $ECHO_N "(cached) $ECHO_C" >&6
2215else
2216  cat >conftest.make <<\_ACEOF
2217SHELL = /bin/sh
2218all:
2219	@echo '@@@%%%=$(MAKE)=@@@%%%'
2220_ACEOF
2221# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2222case `${MAKE-make} -f conftest.make 2>/dev/null` in
2223  *@@@%%%=?*=@@@%%%*)
2224    eval ac_cv_prog_make_${ac_make}_set=yes;;
2225  *)
2226    eval ac_cv_prog_make_${ac_make}_set=no;;
2227esac
2228rm -f conftest.make
2229fi
2230if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2231  { echo "$as_me:$LINENO: result: yes" >&5
2232echo "${ECHO_T}yes" >&6; }
2233  SET_MAKE=
2234else
2235  { echo "$as_me:$LINENO: result: no" >&5
2236echo "${ECHO_T}no" >&6; }
2237  SET_MAKE="MAKE=${MAKE-make}"
2238fi
2239
2240rm -rf .tst 2>/dev/null
2241mkdir .tst 2>/dev/null
2242if test -d .tst; then
2243  am__leading_dot=.
2244else
2245  am__leading_dot=_
2246fi
2247rmdir .tst 2>/dev/null
2248
2249# test to see if srcdir already configured
2250if test "`cd $srcdir && pwd`" != "`pwd`" &&
2251   test -f $srcdir/config.status; then
2252  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2253echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2254   { (exit 1); exit 1; }; }
2255fi
2256
2257# test whether we have cygpath
2258if test -z "$CYGPATH_W"; then
2259  if (cygpath --version) >/dev/null 2>/dev/null; then
2260    CYGPATH_W='cygpath -w'
2261  else
2262    CYGPATH_W=echo
2263  fi
2264fi
2265
2266
2267# Define the identity of the package.
2268 PACKAGE='briquolo'
2269 VERSION='0.5.7'
2270
2271
2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE "$PACKAGE"
2274_ACEOF
2275
2276
2277cat >>confdefs.h <<_ACEOF
2278#define VERSION "$VERSION"
2279_ACEOF
2280
2281# Some tools Automake needs.
2282
2283ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2284
2285
2286AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2287
2288
2289AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2290
2291
2292AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2293
2294
2295MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2296
2297install_sh=${install_sh-"$am_aux_dir/install-sh"}
2298
2299# Installed binaries are usually stripped using `strip' when the user
2300# run `make install-strip'.  However `strip' might not be the right
2301# tool to use in cross-compilation environments, therefore Automake
2302# will honor the `STRIP' environment variable to overrule this program.
2303if test "$cross_compiling" != no; then
2304  if test -n "$ac_tool_prefix"; then
2305  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2306set dummy ${ac_tool_prefix}strip; ac_word=$2
2307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2309if test "${ac_cv_prog_STRIP+set}" = set; then
2310  echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312  if test -n "$STRIP"; then
2313  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2314else
2315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316for as_dir in $PATH
2317do
2318  IFS=$as_save_IFS
2319  test -z "$as_dir" && as_dir=.
2320  for ac_exec_ext in '' $ac_executable_extensions; do
2321  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2323    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324    break 2
2325  fi
2326done
2327done
2328IFS=$as_save_IFS
2329
2330fi
2331fi
2332STRIP=$ac_cv_prog_STRIP
2333if test -n "$STRIP"; then
2334  { echo "$as_me:$LINENO: result: $STRIP" >&5
2335echo "${ECHO_T}$STRIP" >&6; }
2336else
2337  { echo "$as_me:$LINENO: result: no" >&5
2338echo "${ECHO_T}no" >&6; }
2339fi
2340
2341
2342fi
2343if test -z "$ac_cv_prog_STRIP"; then
2344  ac_ct_STRIP=$STRIP
2345  # Extract the first word of "strip", so it can be a program name with args.
2346set dummy strip; ac_word=$2
2347{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2350  echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352  if test -n "$ac_ct_STRIP"; then
2353  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2354else
2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356for as_dir in $PATH
2357do
2358  IFS=$as_save_IFS
2359  test -z "$as_dir" && as_dir=.
2360  for ac_exec_ext in '' $ac_executable_extensions; do
2361  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362    ac_cv_prog_ac_ct_STRIP="strip"
2363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364    break 2
2365  fi
2366done
2367done
2368IFS=$as_save_IFS
2369
2370fi
2371fi
2372ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2373if test -n "$ac_ct_STRIP"; then
2374  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2375echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2376else
2377  { echo "$as_me:$LINENO: result: no" >&5
2378echo "${ECHO_T}no" >&6; }
2379fi
2380
2381  if test "x$ac_ct_STRIP" = x; then
2382    STRIP=":"
2383  else
2384    case $cross_compiling:$ac_tool_warned in
2385yes:)
2386{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2387whose name does not start with the host triplet.  If you think this
2388configuration is useful to you, please write to autoconf@gnu.org." >&5
2389echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2390whose name does not start with the host triplet.  If you think this
2391configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2392ac_tool_warned=yes ;;
2393esac
2394    STRIP=$ac_ct_STRIP
2395  fi
2396else
2397  STRIP="$ac_cv_prog_STRIP"
2398fi
2399
2400fi
2401INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2402
2403# We need awk for the "check" target.  The system "awk" is bad on
2404# some platforms.
2405# Always define AMTAR for backward compatibility.
2406
2407AMTAR=${AMTAR-"${am_missing_run}tar"}
2408
2409am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2410
2411
2412
2413
2414
2415
2416# Checks for programs.
2417ac_ext=cpp
2418ac_cpp='$CXXCPP $CPPFLAGS'
2419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2422if test -z "$CXX"; then
2423  if test -n "$CCC"; then
2424    CXX=$CCC
2425  else
2426    if test -n "$ac_tool_prefix"; then
2427  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2428  do
2429    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2430set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433if test "${ac_cv_prog_CXX+set}" = set; then
2434  echo $ECHO_N "(cached) $ECHO_C" >&6
2435else
2436  if test -n "$CXX"; then
2437  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2438else
2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442  IFS=$as_save_IFS
2443  test -z "$as_dir" && as_dir=.
2444  for ac_exec_ext in '' $ac_executable_extensions; do
2445  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448    break 2
2449  fi
2450done
2451done
2452IFS=$as_save_IFS
2453
2454fi
2455fi
2456CXX=$ac_cv_prog_CXX
2457if test -n "$CXX"; then
2458  { echo "$as_me:$LINENO: result: $CXX" >&5
2459echo "${ECHO_T}$CXX" >&6; }
2460else
2461  { echo "$as_me:$LINENO: result: no" >&5
2462echo "${ECHO_T}no" >&6; }
2463fi
2464
2465
2466    test -n "$CXX" && break
2467  done
2468fi
2469if test -z "$CXX"; then
2470  ac_ct_CXX=$CXX
2471  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2472do
2473  # Extract the first word of "$ac_prog", so it can be a program name with args.
2474set dummy $ac_prog; ac_word=$2
2475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2478  echo $ECHO_N "(cached) $ECHO_C" >&6
2479else
2480  if test -n "$ac_ct_CXX"; then
2481  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2482else
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486  IFS=$as_save_IFS
2487  test -z "$as_dir" && as_dir=.
2488  for ac_exec_ext in '' $ac_executable_extensions; do
2489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490    ac_cv_prog_ac_ct_CXX="$ac_prog"
2491    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492    break 2
2493  fi
2494done
2495done
2496IFS=$as_save_IFS
2497
2498fi
2499fi
2500ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2501if test -n "$ac_ct_CXX"; then
2502  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2503echo "${ECHO_T}$ac_ct_CXX" >&6; }
2504else
2505  { echo "$as_me:$LINENO: result: no" >&5
2506echo "${ECHO_T}no" >&6; }
2507fi
2508
2509
2510  test -n "$ac_ct_CXX" && break
2511done
2512
2513  if test "x$ac_ct_CXX" = x; then
2514    CXX="g++"
2515  else
2516    case $cross_compiling:$ac_tool_warned in
2517yes:)
2518{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2519whose name does not start with the host triplet.  If you think this
2520configuration is useful to you, please write to autoconf@gnu.org." >&5
2521echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2522whose name does not start with the host triplet.  If you think this
2523configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2524ac_tool_warned=yes ;;
2525esac
2526    CXX=$ac_ct_CXX
2527  fi
2528fi
2529
2530  fi
2531fi
2532# Provide some information about the compiler.
2533echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2534ac_compiler=`set X $ac_compile; echo $2`
2535{ (ac_try="$ac_compiler --version >&5"
2536case "(($ac_try" in
2537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538  *) ac_try_echo=$ac_try;;
2539esac
2540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541  (eval "$ac_compiler --version >&5") 2>&5
2542  ac_status=$?
2543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544  (exit $ac_status); }
2545{ (ac_try="$ac_compiler -v >&5"
2546case "(($ac_try" in
2547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548  *) ac_try_echo=$ac_try;;
2549esac
2550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551  (eval "$ac_compiler -v >&5") 2>&5
2552  ac_status=$?
2553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554  (exit $ac_status); }
2555{ (ac_try="$ac_compiler -V >&5"
2556case "(($ac_try" in
2557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558  *) ac_try_echo=$ac_try;;
2559esac
2560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2561  (eval "$ac_compiler -V >&5") 2>&5
2562  ac_status=$?
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); }
2565
2566cat >conftest.$ac_ext <<_ACEOF
2567/* confdefs.h.  */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h.  */
2572
2573int
2574main ()
2575{
2576
2577  ;
2578  return 0;
2579}
2580_ACEOF
2581ac_clean_files_save=$ac_clean_files
2582ac_clean_files="$ac_clean_files a.out a.exe b.out"
2583# Try to create an executable without -o first, disregard a.out.
2584# It will help us diagnose broken compilers, and finding out an intuition
2585# of exeext.
2586{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2587echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2588ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2589#
2590# List of possible output files, starting from the most likely.
2591# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2592# only as a last resort.  b.out is created by i960 compilers.
2593ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2594#
2595# The IRIX 6 linker writes into existing files which may not be
2596# executable, retaining their permissions.  Remove them first so a
2597# subsequent execution test works.
2598ac_rmfiles=
2599for ac_file in $ac_files
2600do
2601  case $ac_file in
2602    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2603    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2604  esac
2605done
2606rm -f $ac_rmfiles
2607
2608if { (ac_try="$ac_link_default"
2609case "(($ac_try" in
2610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611  *) ac_try_echo=$ac_try;;
2612esac
2613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2614  (eval "$ac_link_default") 2>&5
2615  ac_status=$?
2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617  (exit $ac_status); }; then
2618  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2619# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2620# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2621# so that the user can short-circuit this test for compilers unknown to
2622# Autoconf.
2623for ac_file in $ac_files ''
2624do
2625  test -f "$ac_file" || continue
2626  case $ac_file in
2627    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2628	;;
2629    [ab].out )
2630	# We found the default executable, but exeext='' is most
2631	# certainly right.
2632	break;;
2633    *.* )
2634        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2635	then :; else
2636	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2637	fi
2638	# We set ac_cv_exeext here because the later test for it is not
2639	# safe: cross compilers may not add the suffix if given an `-o'
2640	# argument, so we may need to know it at that point already.
2641	# Even if this section looks crufty: it has the advantage of
2642	# actually working.
2643	break;;
2644    * )
2645	break;;
2646  esac
2647done
2648test "$ac_cv_exeext" = no && ac_cv_exeext=
2649
2650else
2651  ac_file=''
2652fi
2653
2654{ echo "$as_me:$LINENO: result: $ac_file" >&5
2655echo "${ECHO_T}$ac_file" >&6; }
2656if test -z "$ac_file"; then
2657  echo "$as_me: failed program was:" >&5
2658sed 's/^/| /' conftest.$ac_ext >&5
2659
2660{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2661See \`config.log' for more details." >&5
2662echo "$as_me: error: C++ compiler cannot create executables
2663See \`config.log' for more details." >&2;}
2664   { (exit 77); exit 77; }; }
2665fi
2666
2667ac_exeext=$ac_cv_exeext
2668
2669# Check that the compiler produces executables we can run.  If not, either
2670# the compiler is broken, or we cross compile.
2671{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2672echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2673# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2674# If not cross compiling, check that we can run a simple program.
2675if test "$cross_compiling" != yes; then
2676  if { ac_try='./$ac_file'
2677  { (case "(($ac_try" in
2678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679  *) ac_try_echo=$ac_try;;
2680esac
2681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682  (eval "$ac_try") 2>&5
2683  ac_status=$?
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); }; }; then
2686    cross_compiling=no
2687  else
2688    if test "$cross_compiling" = maybe; then
2689	cross_compiling=yes
2690    else
2691	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2692If you meant to cross compile, use \`--host'.
2693See \`config.log' for more details." >&5
2694echo "$as_me: error: cannot run C++ compiled programs.
2695If you meant to cross compile, use \`--host'.
2696See \`config.log' for more details." >&2;}
2697   { (exit 1); exit 1; }; }
2698    fi
2699  fi
2700fi
2701{ echo "$as_me:$LINENO: result: yes" >&5
2702echo "${ECHO_T}yes" >&6; }
2703
2704rm -f a.out a.exe conftest$ac_cv_exeext b.out
2705ac_clean_files=$ac_clean_files_save
2706# Check that the compiler produces executables we can run.  If not, either
2707# the compiler is broken, or we cross compile.
2708{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2709echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2710{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2711echo "${ECHO_T}$cross_compiling" >&6; }
2712
2713{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2714echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2715if { (ac_try="$ac_link"
2716case "(($ac_try" in
2717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718  *) ac_try_echo=$ac_try;;
2719esac
2720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721  (eval "$ac_link") 2>&5
2722  ac_status=$?
2723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724  (exit $ac_status); }; then
2725  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2726# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2727# work properly (i.e., refer to `conftest.exe'), while it won't with
2728# `rm'.
2729for ac_file in conftest.exe conftest conftest.*; do
2730  test -f "$ac_file" || continue
2731  case $ac_file in
2732    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2733    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2734	  break;;
2735    * ) break;;
2736  esac
2737done
2738else
2739  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2740See \`config.log' for more details." >&5
2741echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2742See \`config.log' for more details." >&2;}
2743   { (exit 1); exit 1; }; }
2744fi
2745
2746rm -f conftest$ac_cv_exeext
2747{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2748echo "${ECHO_T}$ac_cv_exeext" >&6; }
2749
2750rm -f conftest.$ac_ext
2751EXEEXT=$ac_cv_exeext
2752ac_exeext=$EXEEXT
2753{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2754echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2755if test "${ac_cv_objext+set}" = set; then
2756  echo $ECHO_N "(cached) $ECHO_C" >&6
2757else
2758  cat >conftest.$ac_ext <<_ACEOF
2759/* confdefs.h.  */
2760_ACEOF
2761cat confdefs.h >>conftest.$ac_ext
2762cat >>conftest.$ac_ext <<_ACEOF
2763/* end confdefs.h.  */
2764
2765int
2766main ()
2767{
2768
2769  ;
2770  return 0;
2771}
2772_ACEOF
2773rm -f conftest.o conftest.obj
2774if { (ac_try="$ac_compile"
2775case "(($ac_try" in
2776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777  *) ac_try_echo=$ac_try;;
2778esac
2779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780  (eval "$ac_compile") 2>&5
2781  ac_status=$?
2782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783  (exit $ac_status); }; then
2784  for ac_file in conftest.o conftest.obj conftest.*; do
2785  test -f "$ac_file" || continue;
2786  case $ac_file in
2787    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2788    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2789       break;;
2790  esac
2791done
2792else
2793  echo "$as_me: failed program was:" >&5
2794sed 's/^/| /' conftest.$ac_ext >&5
2795
2796{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2797See \`config.log' for more details." >&5
2798echo "$as_me: error: cannot compute suffix of object files: cannot compile
2799See \`config.log' for more details." >&2;}
2800   { (exit 1); exit 1; }; }
2801fi
2802
2803rm -f conftest.$ac_cv_objext conftest.$ac_ext
2804fi
2805{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2806echo "${ECHO_T}$ac_cv_objext" >&6; }
2807OBJEXT=$ac_cv_objext
2808ac_objext=$OBJEXT
2809{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2810echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2811if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2812  echo $ECHO_N "(cached) $ECHO_C" >&6
2813else
2814  cat >conftest.$ac_ext <<_ACEOF
2815/* confdefs.h.  */
2816_ACEOF
2817cat confdefs.h >>conftest.$ac_ext
2818cat >>conftest.$ac_ext <<_ACEOF
2819/* end confdefs.h.  */
2820
2821int
2822main ()
2823{
2824#ifndef __GNUC__
2825       choke me
2826#endif
2827
2828  ;
2829  return 0;
2830}
2831_ACEOF
2832rm -f conftest.$ac_objext
2833if { (ac_try="$ac_compile"
2834case "(($ac_try" in
2835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836  *) ac_try_echo=$ac_try;;
2837esac
2838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839  (eval "$ac_compile") 2>conftest.er1
2840  ac_status=$?
2841  grep -v '^ *+' conftest.er1 >conftest.err
2842  rm -f conftest.er1
2843  cat conftest.err >&5
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); } && {
2846	 test -z "$ac_cxx_werror_flag" ||
2847	 test ! -s conftest.err
2848       } && test -s conftest.$ac_objext; then
2849  ac_compiler_gnu=yes
2850else
2851  echo "$as_me: failed program was:" >&5
2852sed 's/^/| /' conftest.$ac_ext >&5
2853
2854	ac_compiler_gnu=no
2855fi
2856
2857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2859
2860fi
2861{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2862echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2863GXX=`test $ac_compiler_gnu = yes && echo yes`
2864ac_test_CXXFLAGS=${CXXFLAGS+set}
2865ac_save_CXXFLAGS=$CXXFLAGS
2866{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2867echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2868if test "${ac_cv_prog_cxx_g+set}" = set; then
2869  echo $ECHO_N "(cached) $ECHO_C" >&6
2870else
2871  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2872   ac_cxx_werror_flag=yes
2873   ac_cv_prog_cxx_g=no
2874   CXXFLAGS="-g"
2875   cat >conftest.$ac_ext <<_ACEOF
2876/* confdefs.h.  */
2877_ACEOF
2878cat confdefs.h >>conftest.$ac_ext
2879cat >>conftest.$ac_ext <<_ACEOF
2880/* end confdefs.h.  */
2881
2882int
2883main ()
2884{
2885
2886  ;
2887  return 0;
2888}
2889_ACEOF
2890rm -f conftest.$ac_objext
2891if { (ac_try="$ac_compile"
2892case "(($ac_try" in
2893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894  *) ac_try_echo=$ac_try;;
2895esac
2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897  (eval "$ac_compile") 2>conftest.er1
2898  ac_status=$?
2899  grep -v '^ *+' conftest.er1 >conftest.err
2900  rm -f conftest.er1
2901  cat conftest.err >&5
2902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903  (exit $ac_status); } && {
2904	 test -z "$ac_cxx_werror_flag" ||
2905	 test ! -s conftest.err
2906       } && test -s conftest.$ac_objext; then
2907  ac_cv_prog_cxx_g=yes
2908else
2909  echo "$as_me: failed program was:" >&5
2910sed 's/^/| /' conftest.$ac_ext >&5
2911
2912	CXXFLAGS=""
2913      cat >conftest.$ac_ext <<_ACEOF
2914/* confdefs.h.  */
2915_ACEOF
2916cat confdefs.h >>conftest.$ac_ext
2917cat >>conftest.$ac_ext <<_ACEOF
2918/* end confdefs.h.  */
2919
2920int
2921main ()
2922{
2923
2924  ;
2925  return 0;
2926}
2927_ACEOF
2928rm -f conftest.$ac_objext
2929if { (ac_try="$ac_compile"
2930case "(($ac_try" in
2931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932  *) ac_try_echo=$ac_try;;
2933esac
2934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935  (eval "$ac_compile") 2>conftest.er1
2936  ac_status=$?
2937  grep -v '^ *+' conftest.er1 >conftest.err
2938  rm -f conftest.er1
2939  cat conftest.err >&5
2940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941  (exit $ac_status); } && {
2942	 test -z "$ac_cxx_werror_flag" ||
2943	 test ! -s conftest.err
2944       } && test -s conftest.$ac_objext; then
2945  :
2946else
2947  echo "$as_me: failed program was:" >&5
2948sed 's/^/| /' conftest.$ac_ext >&5
2949
2950	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2951	 CXXFLAGS="-g"
2952	 cat >conftest.$ac_ext <<_ACEOF
2953/* confdefs.h.  */
2954_ACEOF
2955cat confdefs.h >>conftest.$ac_ext
2956cat >>conftest.$ac_ext <<_ACEOF
2957/* end confdefs.h.  */
2958
2959int
2960main ()
2961{
2962
2963  ;
2964  return 0;
2965}
2966_ACEOF
2967rm -f conftest.$ac_objext
2968if { (ac_try="$ac_compile"
2969case "(($ac_try" in
2970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971  *) ac_try_echo=$ac_try;;
2972esac
2973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974  (eval "$ac_compile") 2>conftest.er1
2975  ac_status=$?
2976  grep -v '^ *+' conftest.er1 >conftest.err
2977  rm -f conftest.er1
2978  cat conftest.err >&5
2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); } && {
2981	 test -z "$ac_cxx_werror_flag" ||
2982	 test ! -s conftest.err
2983       } && test -s conftest.$ac_objext; then
2984  ac_cv_prog_cxx_g=yes
2985else
2986  echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989
2990fi
2991
2992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993fi
2994
2995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996fi
2997
2998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3000fi
3001{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3002echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3003if test "$ac_test_CXXFLAGS" = set; then
3004  CXXFLAGS=$ac_save_CXXFLAGS
3005elif test $ac_cv_prog_cxx_g = yes; then
3006  if test "$GXX" = yes; then
3007    CXXFLAGS="-g -O2"
3008  else
3009    CXXFLAGS="-g"
3010  fi
3011else
3012  if test "$GXX" = yes; then
3013    CXXFLAGS="-O2"
3014  else
3015    CXXFLAGS=
3016  fi
3017fi
3018ac_ext=c
3019ac_cpp='$CPP $CPPFLAGS'
3020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023DEPDIR="${am__leading_dot}deps"
3024
3025ac_config_commands="$ac_config_commands depfiles"
3026
3027
3028am_make=${MAKE-make}
3029cat > confinc << 'END'
3030am__doit:
3031	@echo done
3032.PHONY: am__doit
3033END
3034# If we don't find an include directive, just comment out the code.
3035{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3036echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3037am__include="#"
3038am__quote=
3039_am_result=none
3040# First try GNU make style include.
3041echo "include confinc" > confmf
3042# We grep out `Entering directory' and `Leaving directory'
3043# messages which can occur if `w' ends up in MAKEFLAGS.
3044# In particular we don't look at `^make:' because GNU make might
3045# be invoked under some other name (usually "gmake"), in which
3046# case it prints its new name instead of `make'.
3047if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3048   am__include=include
3049   am__quote=
3050   _am_result=GNU
3051fi
3052# Now try BSD make style include.
3053if test "$am__include" = "#"; then
3054   echo '.include "confinc"' > confmf
3055   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3056      am__include=.include
3057      am__quote="\""
3058      _am_result=BSD
3059   fi
3060fi
3061
3062
3063{ echo "$as_me:$LINENO: result: $_am_result" >&5
3064echo "${ECHO_T}$_am_result" >&6; }
3065rm -f confinc confmf
3066
3067# Check whether --enable-dependency-tracking was given.
3068if test "${enable_dependency_tracking+set}" = set; then
3069  enableval=$enable_dependency_tracking;
3070fi
3071
3072if test "x$enable_dependency_tracking" != xno; then
3073  am_depcomp="$ac_aux_dir/depcomp"
3074  AMDEPBACKSLASH='\'
3075fi
3076
3077
3078if test "x$enable_dependency_tracking" != xno; then
3079  AMDEP_TRUE=
3080  AMDEP_FALSE='#'
3081else
3082  AMDEP_TRUE='#'
3083  AMDEP_FALSE=
3084fi
3085
3086
3087
3088
3089depcc="$CXX"  am_compiler_list=
3090
3091{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3092echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3093if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3094  echo $ECHO_N "(cached) $ECHO_C" >&6
3095else
3096  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3097  # We make a subdir and do the tests there.  Otherwise we can end up
3098  # making bogus files that we don't know about and never remove.  For
3099  # instance it was reported that on HP-UX the gcc test will end up
3100  # making a dummy file named `D' -- because `-MD' means `put the output
3101  # in D'.
3102  mkdir conftest.dir
3103  # Copy depcomp to subdir because otherwise we won't find it if we're
3104  # using a relative directory.
3105  cp "$am_depcomp" conftest.dir
3106  cd conftest.dir
3107  # We will build objects and dependencies in a subdirectory because
3108  # it helps to detect inapplicable dependency modes.  For instance
3109  # both Tru64's cc and ICC support -MD to output dependencies as a
3110  # side effect of compilation, but ICC will put the dependencies in
3111  # the current directory while Tru64 will put them in the object
3112  # directory.
3113  mkdir sub
3114
3115  am_cv_CXX_dependencies_compiler_type=none
3116  if test "$am_compiler_list" = ""; then
3117     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3118  fi
3119  for depmode in $am_compiler_list; do
3120    # Setup a source with many dependencies, because some compilers
3121    # like to wrap large dependency lists on column 80 (with \), and
3122    # we should not choose a depcomp mode which is confused by this.
3123    #
3124    # We need to recreate these files for each test, as the compiler may
3125    # overwrite some of them when testing with obscure command lines.
3126    # This happens at least with the AIX C compiler.
3127    : > sub/conftest.c
3128    for i in 1 2 3 4 5 6; do
3129      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3130      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3131      # Solaris 8's {/usr,}/bin/sh.
3132      touch sub/conftst$i.h
3133    done
3134    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3135
3136    case $depmode in
3137    nosideeffect)
3138      # after this tag, mechanisms are not by side-effect, so they'll
3139      # only be used when explicitly requested
3140      if test "x$enable_dependency_tracking" = xyes; then
3141	continue
3142      else
3143	break
3144      fi
3145      ;;
3146    none) break ;;
3147    esac
3148    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3149    # mode.  It turns out that the SunPro C++ compiler does not properly
3150    # handle `-M -o', and we need to detect this.
3151    if depmode=$depmode \
3152       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3153       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3154       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3155         >/dev/null 2>conftest.err &&
3156       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3157       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3158       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3159      # icc doesn't choke on unknown options, it will just issue warnings
3160      # or remarks (even with -Werror).  So we grep stderr for any message
3161      # that says an option was ignored or not supported.
3162      # When given -MP, icc 7.0 and 7.1 complain thusly:
3163      #   icc: Command line warning: ignoring option '-M'; no argument required
3164      # The diagnosis changed in icc 8.0:
3165      #   icc: Command line remark: option '-MP' not supported
3166      if (grep 'ignoring option' conftest.err ||
3167          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3168        am_cv_CXX_dependencies_compiler_type=$depmode
3169        break
3170      fi
3171    fi
3172  done
3173
3174  cd ..
3175  rm -rf conftest.dir
3176else
3177  am_cv_CXX_dependencies_compiler_type=none
3178fi
3179
3180fi
3181{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3182echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3183CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3184
3185
3186
3187if
3188  test "x$enable_dependency_tracking" != xno \
3189  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3190  am__fastdepCXX_TRUE=
3191  am__fastdepCXX_FALSE='#'
3192else
3193  am__fastdepCXX_TRUE='#'
3194  am__fastdepCXX_FALSE=
3195fi
3196
3197
3198ac_ext=c
3199ac_cpp='$CPP $CPPFLAGS'
3200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203if test -n "$ac_tool_prefix"; then
3204  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3205set dummy ${ac_tool_prefix}gcc; ac_word=$2
3206{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3208if test "${ac_cv_prog_CC+set}" = set; then
3209  echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
3211  if test -n "$CC"; then
3212  ac_cv_prog_CC="$CC" # Let the user override the test.
3213else
3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215for as_dir in $PATH
3216do
3217  IFS=$as_save_IFS
3218  test -z "$as_dir" && as_dir=.
3219  for ac_exec_ext in '' $ac_executable_extensions; do
3220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3221    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3222    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3223    break 2
3224  fi
3225done
3226done
3227IFS=$as_save_IFS
3228
3229fi
3230fi
3231CC=$ac_cv_prog_CC
3232if test -n "$CC"; then
3233  { echo "$as_me:$LINENO: result: $CC" >&5
3234echo "${ECHO_T}$CC" >&6; }
3235else
3236  { echo "$as_me:$LINENO: result: no" >&5
3237echo "${ECHO_T}no" >&6; }
3238fi
3239
3240
3241fi
3242if test -z "$ac_cv_prog_CC"; then
3243  ac_ct_CC=$CC
3244  # Extract the first word of "gcc", so it can be a program name with args.
3245set dummy gcc; ac_word=$2
3246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3248if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3249  echo $ECHO_N "(cached) $ECHO_C" >&6
3250else
3251  if test -n "$ac_ct_CC"; then
3252  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3253else
3254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255for as_dir in $PATH
3256do
3257  IFS=$as_save_IFS
3258  test -z "$as_dir" && as_dir=.
3259  for ac_exec_ext in '' $ac_executable_extensions; do
3260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261    ac_cv_prog_ac_ct_CC="gcc"
3262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263    break 2
3264  fi
3265done
3266done
3267IFS=$as_save_IFS
3268
3269fi
3270fi
3271ac_ct_CC=$ac_cv_prog_ac_ct_CC
3272if test -n "$ac_ct_CC"; then
3273  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3274echo "${ECHO_T}$ac_ct_CC" >&6; }
3275else
3276  { echo "$as_me:$LINENO: result: no" >&5
3277echo "${ECHO_T}no" >&6; }
3278fi
3279
3280  if test "x$ac_ct_CC" = x; then
3281    CC=""
3282  else
3283    case $cross_compiling:$ac_tool_warned in
3284yes:)
3285{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3286whose name does not start with the host triplet.  If you think this
3287configuration is useful to you, please write to autoconf@gnu.org." >&5
3288echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3289whose name does not start with the host triplet.  If you think this
3290configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3291ac_tool_warned=yes ;;
3292esac
3293    CC=$ac_ct_CC
3294  fi
3295else
3296  CC="$ac_cv_prog_CC"
3297fi
3298
3299if test -z "$CC"; then
3300          if test -n "$ac_tool_prefix"; then
3301    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3302set dummy ${ac_tool_prefix}cc; ac_word=$2
3303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3305if test "${ac_cv_prog_CC+set}" = set; then
3306  echo $ECHO_N "(cached) $ECHO_C" >&6
3307else
3308  if test -n "$CC"; then
3309  ac_cv_prog_CC="$CC" # Let the user override the test.
3310else
3311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312for as_dir in $PATH
3313do
3314  IFS=$as_save_IFS
3315  test -z "$as_dir" && as_dir=.
3316  for ac_exec_ext in '' $ac_executable_extensions; do
3317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318    ac_cv_prog_CC="${ac_tool_prefix}cc"
3319    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320    break 2
3321  fi
3322done
3323done
3324IFS=$as_save_IFS
3325
3326fi
3327fi
3328CC=$ac_cv_prog_CC
3329if test -n "$CC"; then
3330  { echo "$as_me:$LINENO: result: $CC" >&5
3331echo "${ECHO_T}$CC" >&6; }
3332else
3333  { echo "$as_me:$LINENO: result: no" >&5
3334echo "${ECHO_T}no" >&6; }
3335fi
3336
3337
3338  fi
3339fi
3340if test -z "$CC"; then
3341  # Extract the first word of "cc", so it can be a program name with args.
3342set dummy cc; ac_word=$2
3343{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3345if test "${ac_cv_prog_CC+set}" = set; then
3346  echo $ECHO_N "(cached) $ECHO_C" >&6
3347else
3348  if test -n "$CC"; then
3349  ac_cv_prog_CC="$CC" # Let the user override the test.
3350else
3351  ac_prog_rejected=no
3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353for as_dir in $PATH
3354do
3355  IFS=$as_save_IFS
3356  test -z "$as_dir" && as_dir=.
3357  for ac_exec_ext in '' $ac_executable_extensions; do
3358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3360       ac_prog_rejected=yes
3361       continue
3362     fi
3363    ac_cv_prog_CC="cc"
3364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365    break 2
3366  fi
3367done
3368done
3369IFS=$as_save_IFS
3370
3371if test $ac_prog_rejected = yes; then
3372  # We found a bogon in the path, so make sure we never use it.
3373  set dummy $ac_cv_prog_CC
3374  shift
3375  if test $# != 0; then
3376    # We chose a different compiler from the bogus one.
3377    # However, it has the same basename, so the bogon will be chosen
3378    # first if we set CC to just the basename; use the full file name.
3379    shift
3380    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3381  fi
3382fi
3383fi
3384fi
3385CC=$ac_cv_prog_CC
3386if test -n "$CC"; then
3387  { echo "$as_me:$LINENO: result: $CC" >&5
3388echo "${ECHO_T}$CC" >&6; }
3389else
3390  { echo "$as_me:$LINENO: result: no" >&5
3391echo "${ECHO_T}no" >&6; }
3392fi
3393
3394
3395fi
3396if test -z "$CC"; then
3397  if test -n "$ac_tool_prefix"; then
3398  for ac_prog in cl.exe
3399  do
3400    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3401set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3404if test "${ac_cv_prog_CC+set}" = set; then
3405  echo $ECHO_N "(cached) $ECHO_C" >&6
3406else
3407  if test -n "$CC"; then
3408  ac_cv_prog_CC="$CC" # Let the user override the test.
3409else
3410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411for as_dir in $PATH
3412do
3413  IFS=$as_save_IFS
3414  test -z "$as_dir" && as_dir=.
3415  for ac_exec_ext in '' $ac_executable_extensions; do
3416  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3418    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419    break 2
3420  fi
3421done
3422done
3423IFS=$as_save_IFS
3424
3425fi
3426fi
3427CC=$ac_cv_prog_CC
3428if test -n "$CC"; then
3429  { echo "$as_me:$LINENO: result: $CC" >&5
3430echo "${ECHO_T}$CC" >&6; }
3431else
3432  { echo "$as_me:$LINENO: result: no" >&5
3433echo "${ECHO_T}no" >&6; }
3434fi
3435
3436
3437    test -n "$CC" && break
3438  done
3439fi
3440if test -z "$CC"; then
3441  ac_ct_CC=$CC
3442  for ac_prog in cl.exe
3443do
3444  # Extract the first word of "$ac_prog", so it can be a program name with args.
3445set dummy $ac_prog; ac_word=$2
3446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3448if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3449  echo $ECHO_N "(cached) $ECHO_C" >&6
3450else
3451  if test -n "$ac_ct_CC"; then
3452  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3453else
3454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455for as_dir in $PATH
3456do
3457  IFS=$as_save_IFS
3458  test -z "$as_dir" && as_dir=.
3459  for ac_exec_ext in '' $ac_executable_extensions; do
3460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3461    ac_cv_prog_ac_ct_CC="$ac_prog"
3462    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3463    break 2
3464  fi
3465done
3466done
3467IFS=$as_save_IFS
3468
3469fi
3470fi
3471ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472if test -n "$ac_ct_CC"; then
3473  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3474echo "${ECHO_T}$ac_ct_CC" >&6; }
3475else
3476  { echo "$as_me:$LINENO: result: no" >&5
3477echo "${ECHO_T}no" >&6; }
3478fi
3479
3480
3481  test -n "$ac_ct_CC" && break
3482done
3483
3484  if test "x$ac_ct_CC" = x; then
3485    CC=""
3486  else
3487    case $cross_compiling:$ac_tool_warned in
3488yes:)
3489{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3490whose name does not start with the host triplet.  If you think this
3491configuration is useful to you, please write to autoconf@gnu.org." >&5
3492echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3493whose name does not start with the host triplet.  If you think this
3494configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3495ac_tool_warned=yes ;;
3496esac
3497    CC=$ac_ct_CC
3498  fi
3499fi
3500
3501fi
3502
3503
3504test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3505See \`config.log' for more details." >&5
3506echo "$as_me: error: no acceptable C compiler found in \$PATH
3507See \`config.log' for more details." >&2;}
3508   { (exit 1); exit 1; }; }
3509
3510# Provide some information about the compiler.
3511echo "$as_me:$LINENO: checking for C compiler version" >&5
3512ac_compiler=`set X $ac_compile; echo $2`
3513{ (ac_try="$ac_compiler --version >&5"
3514case "(($ac_try" in
3515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516  *) ac_try_echo=$ac_try;;
3517esac
3518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519  (eval "$ac_compiler --version >&5") 2>&5
3520  ac_status=$?
3521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522  (exit $ac_status); }
3523{ (ac_try="$ac_compiler -v >&5"
3524case "(($ac_try" in
3525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526  *) ac_try_echo=$ac_try;;
3527esac
3528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529  (eval "$ac_compiler -v >&5") 2>&5
3530  ac_status=$?
3531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532  (exit $ac_status); }
3533{ (ac_try="$ac_compiler -V >&5"
3534case "(($ac_try" in
3535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536  *) ac_try_echo=$ac_try;;
3537esac
3538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539  (eval "$ac_compiler -V >&5") 2>&5
3540  ac_status=$?
3541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542  (exit $ac_status); }
3543
3544{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3545echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3546if test "${ac_cv_c_compiler_gnu+set}" = set; then
3547  echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549  cat >conftest.$ac_ext <<_ACEOF
3550/* confdefs.h.  */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h.  */
3555
3556int
3557main ()
3558{
3559#ifndef __GNUC__
3560       choke me
3561#endif
3562
3563  ;
3564  return 0;
3565}
3566_ACEOF
3567rm -f conftest.$ac_objext
3568if { (ac_try="$ac_compile"
3569case "(($ac_try" in
3570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571  *) ac_try_echo=$ac_try;;
3572esac
3573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574  (eval "$ac_compile") 2>conftest.er1
3575  ac_status=$?
3576  grep -v '^ *+' conftest.er1 >conftest.err
3577  rm -f conftest.er1
3578  cat conftest.err >&5
3579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580  (exit $ac_status); } && {
3581	 test -z "$ac_c_werror_flag" ||
3582	 test ! -s conftest.err
3583       } && test -s conftest.$ac_objext; then
3584  ac_compiler_gnu=yes
3585else
3586  echo "$as_me: failed program was:" >&5
3587sed 's/^/| /' conftest.$ac_ext >&5
3588
3589	ac_compiler_gnu=no
3590fi
3591
3592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593ac_cv_c_compiler_gnu=$ac_compiler_gnu
3594
3595fi
3596{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3597echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3598GCC=`test $ac_compiler_gnu = yes && echo yes`
3599ac_test_CFLAGS=${CFLAGS+set}
3600ac_save_CFLAGS=$CFLAGS
3601{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3602echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3603if test "${ac_cv_prog_cc_g+set}" = set; then
3604  echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606  ac_save_c_werror_flag=$ac_c_werror_flag
3607   ac_c_werror_flag=yes
3608   ac_cv_prog_cc_g=no
3609   CFLAGS="-g"
3610   cat >conftest.$ac_ext <<_ACEOF
3611/* confdefs.h.  */
3612_ACEOF
3613cat confdefs.h >>conftest.$ac_ext
3614cat >>conftest.$ac_ext <<_ACEOF
3615/* end confdefs.h.  */
3616
3617int
3618main ()
3619{
3620
3621  ;
3622  return 0;
3623}
3624_ACEOF
3625rm -f conftest.$ac_objext
3626if { (ac_try="$ac_compile"
3627case "(($ac_try" in
3628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629  *) ac_try_echo=$ac_try;;
3630esac
3631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632  (eval "$ac_compile") 2>conftest.er1
3633  ac_status=$?
3634  grep -v '^ *+' conftest.er1 >conftest.err
3635  rm -f conftest.er1
3636  cat conftest.err >&5
3637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638  (exit $ac_status); } && {
3639	 test -z "$ac_c_werror_flag" ||
3640	 test ! -s conftest.err
3641       } && test -s conftest.$ac_objext; then
3642  ac_cv_prog_cc_g=yes
3643else
3644  echo "$as_me: failed program was:" >&5
3645sed 's/^/| /' conftest.$ac_ext >&5
3646
3647	CFLAGS=""
3648      cat >conftest.$ac_ext <<_ACEOF
3649/* confdefs.h.  */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h.  */
3654
3655int
3656main ()
3657{
3658
3659  ;
3660  return 0;
3661}
3662_ACEOF
3663rm -f conftest.$ac_objext
3664if { (ac_try="$ac_compile"
3665case "(($ac_try" in
3666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667  *) ac_try_echo=$ac_try;;
3668esac
3669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670  (eval "$ac_compile") 2>conftest.er1
3671  ac_status=$?
3672  grep -v '^ *+' conftest.er1 >conftest.err
3673  rm -f conftest.er1
3674  cat conftest.err >&5
3675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676  (exit $ac_status); } && {
3677	 test -z "$ac_c_werror_flag" ||
3678	 test ! -s conftest.err
3679       } && test -s conftest.$ac_objext; then
3680  :
3681else
3682  echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685	ac_c_werror_flag=$ac_save_c_werror_flag
3686	 CFLAGS="-g"
3687	 cat >conftest.$ac_ext <<_ACEOF
3688/* confdefs.h.  */
3689_ACEOF
3690cat confdefs.h >>conftest.$ac_ext
3691cat >>conftest.$ac_ext <<_ACEOF
3692/* end confdefs.h.  */
3693
3694int
3695main ()
3696{
3697
3698  ;
3699  return 0;
3700}
3701_ACEOF
3702rm -f conftest.$ac_objext
3703if { (ac_try="$ac_compile"
3704case "(($ac_try" in
3705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706  *) ac_try_echo=$ac_try;;
3707esac
3708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709  (eval "$ac_compile") 2>conftest.er1
3710  ac_status=$?
3711  grep -v '^ *+' conftest.er1 >conftest.err
3712  rm -f conftest.er1
3713  cat conftest.err >&5
3714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715  (exit $ac_status); } && {
3716	 test -z "$ac_c_werror_flag" ||
3717	 test ! -s conftest.err
3718       } && test -s conftest.$ac_objext; then
3719  ac_cv_prog_cc_g=yes
3720else
3721  echo "$as_me: failed program was:" >&5
3722sed 's/^/| /' conftest.$ac_ext >&5
3723
3724
3725fi
3726
3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728fi
3729
3730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731fi
3732
3733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734   ac_c_werror_flag=$ac_save_c_werror_flag
3735fi
3736{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3737echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3738if test "$ac_test_CFLAGS" = set; then
3739  CFLAGS=$ac_save_CFLAGS
3740elif test $ac_cv_prog_cc_g = yes; then
3741  if test "$GCC" = yes; then
3742    CFLAGS="-g -O2"
3743  else
3744    CFLAGS="-g"
3745  fi
3746else
3747  if test "$GCC" = yes; then
3748    CFLAGS="-O2"
3749  else
3750    CFLAGS=
3751  fi
3752fi
3753{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3754echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3755if test "${ac_cv_prog_cc_c89+set}" = set; then
3756  echo $ECHO_N "(cached) $ECHO_C" >&6
3757else
3758  ac_cv_prog_cc_c89=no
3759ac_save_CC=$CC
3760cat >conftest.$ac_ext <<_ACEOF
3761/* confdefs.h.  */
3762_ACEOF
3763cat confdefs.h >>conftest.$ac_ext
3764cat >>conftest.$ac_ext <<_ACEOF
3765/* end confdefs.h.  */
3766#include <stdarg.h>
3767#include <stdio.h>
3768#include <sys/types.h>
3769#include <sys/stat.h>
3770/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3771struct buf { int x; };
3772FILE * (*rcsopen) (struct buf *, struct stat *, int);
3773static char *e (p, i)
3774     char **p;
3775     int i;
3776{
3777  return p[i];
3778}
3779static char *f (char * (*g) (char **, int), char **p, ...)
3780{
3781  char *s;
3782  va_list v;
3783  va_start (v,p);
3784  s = g (p, va_arg (v,int));
3785  va_end (v);
3786  return s;
3787}
3788
3789/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3790   function prototypes and stuff, but not '\xHH' hex character constants.
3791   These don't provoke an error unfortunately, instead are silently treated
3792   as 'x'.  The following induces an error, until -std is added to get
3793   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3794   array size at least.  It's necessary to write '\x00'==0 to get something
3795   that's true only with -std.  */
3796int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3797
3798/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3799   inside strings and character constants.  */
3800#define FOO(x) 'x'
3801int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3802
3803int test (int i, double x);
3804struct s1 {int (*f) (int a);};
3805struct s2 {int (*f) (double a);};
3806int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3807int argc;
3808char **argv;
3809int
3810main ()
3811{
3812return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3813  ;
3814  return 0;
3815}
3816_ACEOF
3817for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3818	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3819do
3820  CC="$ac_save_CC $ac_arg"
3821  rm -f conftest.$ac_objext
3822if { (ac_try="$ac_compile"
3823case "(($ac_try" in
3824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825  *) ac_try_echo=$ac_try;;
3826esac
3827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828  (eval "$ac_compile") 2>conftest.er1
3829  ac_status=$?
3830  grep -v '^ *+' conftest.er1 >conftest.err
3831  rm -f conftest.er1
3832  cat conftest.err >&5
3833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834  (exit $ac_status); } && {
3835	 test -z "$ac_c_werror_flag" ||
3836	 test ! -s conftest.err
3837       } && test -s conftest.$ac_objext; then
3838  ac_cv_prog_cc_c89=$ac_arg
3839else
3840  echo "$as_me: failed program was:" >&5
3841sed 's/^/| /' conftest.$ac_ext >&5
3842
3843
3844fi
3845
3846rm -f core conftest.err conftest.$ac_objext
3847  test "x$ac_cv_prog_cc_c89" != "xno" && break
3848done
3849rm -f conftest.$ac_ext
3850CC=$ac_save_CC
3851
3852fi
3853# AC_CACHE_VAL
3854case "x$ac_cv_prog_cc_c89" in
3855  x)
3856    { echo "$as_me:$LINENO: result: none needed" >&5
3857echo "${ECHO_T}none needed" >&6; } ;;
3858  xno)
3859    { echo "$as_me:$LINENO: result: unsupported" >&5
3860echo "${ECHO_T}unsupported" >&6; } ;;
3861  *)
3862    CC="$CC $ac_cv_prog_cc_c89"
3863    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3864echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3865esac
3866
3867
3868ac_ext=c
3869ac_cpp='$CPP $CPPFLAGS'
3870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873
3874depcc="$CC"   am_compiler_list=
3875
3876{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3877echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3878if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3879  echo $ECHO_N "(cached) $ECHO_C" >&6
3880else
3881  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3882  # We make a subdir and do the tests there.  Otherwise we can end up
3883  # making bogus files that we don't know about and never remove.  For
3884  # instance it was reported that on HP-UX the gcc test will end up
3885  # making a dummy file named `D' -- because `-MD' means `put the output
3886  # in D'.
3887  mkdir conftest.dir
3888  # Copy depcomp to subdir because otherwise we won't find it if we're
3889  # using a relative directory.
3890  cp "$am_depcomp" conftest.dir
3891  cd conftest.dir
3892  # We will build objects and dependencies in a subdirectory because
3893  # it helps to detect inapplicable dependency modes.  For instance
3894  # both Tru64's cc and ICC support -MD to output dependencies as a
3895  # side effect of compilation, but ICC will put the dependencies in
3896  # the current directory while Tru64 will put them in the object
3897  # directory.
3898  mkdir sub
3899
3900  am_cv_CC_dependencies_compiler_type=none
3901  if test "$am_compiler_list" = ""; then
3902     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3903  fi
3904  for depmode in $am_compiler_list; do
3905    # Setup a source with many dependencies, because some compilers
3906    # like to wrap large dependency lists on column 80 (with \), and
3907    # we should not choose a depcomp mode which is confused by this.
3908    #
3909    # We need to recreate these files for each test, as the compiler may
3910    # overwrite some of them when testing with obscure command lines.
3911    # This happens at least with the AIX C compiler.
3912    : > sub/conftest.c
3913    for i in 1 2 3 4 5 6; do
3914      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3915      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3916      # Solaris 8's {/usr,}/bin/sh.
3917      touch sub/conftst$i.h
3918    done
3919    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3920
3921    case $depmode in
3922    nosideeffect)
3923      # after this tag, mechanisms are not by side-effect, so they'll
3924      # only be used when explicitly requested
3925      if test "x$enable_dependency_tracking" = xyes; then
3926	continue
3927      else
3928	break
3929      fi
3930      ;;
3931    none) break ;;
3932    esac
3933    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3934    # mode.  It turns out that the SunPro C++ compiler does not properly
3935    # handle `-M -o', and we need to detect this.
3936    if depmode=$depmode \
3937       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3938       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3939       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3940         >/dev/null 2>conftest.err &&
3941       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3942       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3943       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3944      # icc doesn't choke on unknown options, it will just issue warnings
3945      # or remarks (even with -Werror).  So we grep stderr for any message
3946      # that says an option was ignored or not supported.
3947      # When given -MP, icc 7.0 and 7.1 complain thusly:
3948      #   icc: Command line warning: ignoring option '-M'; no argument required
3949      # The diagnosis changed in icc 8.0:
3950      #   icc: Command line remark: option '-MP' not supported
3951      if (grep 'ignoring option' conftest.err ||
3952          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3953        am_cv_CC_dependencies_compiler_type=$depmode
3954        break
3955      fi
3956    fi
3957  done
3958
3959  cd ..
3960  rm -rf conftest.dir
3961else
3962  am_cv_CC_dependencies_compiler_type=none
3963fi
3964
3965fi
3966{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3967echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3968CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3969
3970
3971
3972if
3973  test "x$enable_dependency_tracking" != xno \
3974  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3975  am__fastdepCC_TRUE=
3976  am__fastdepCC_FALSE='#'
3977else
3978  am__fastdepCC_TRUE='#'
3979  am__fastdepCC_FALSE=
3980fi
3981
3982
3983# Find a good install program.  We prefer a C program (faster),
3984# so one script is as good as another.  But avoid the broken or
3985# incompatible versions:
3986# SysV /etc/install, /usr/sbin/install
3987# SunOS /usr/etc/install
3988# IRIX /sbin/install
3989# AIX /bin/install
3990# AmigaOS /C/install, which installs bootblocks on floppy discs
3991# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3992# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3993# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3994# OS/2's system install, which has a completely different semantic
3995# ./install, which can be erroneously created by make from ./install.sh.
3996{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3997echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3998if test -z "$INSTALL"; then
3999if test "${ac_cv_path_install+set}" = set; then
4000  echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003for as_dir in $PATH
4004do
4005  IFS=$as_save_IFS
4006  test -z "$as_dir" && as_dir=.
4007  # Account for people who put trailing slashes in PATH elements.
4008case $as_dir/ in
4009  ./ | .// | /cC/* | \
4010  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4011  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4012  /usr/ucb/* ) ;;
4013  *)
4014    # OSF1 and SCO ODT 3.0 have their own names for install.
4015    # Don't use installbsd from OSF since it installs stuff as root
4016    # by default.
4017    for ac_prog in ginstall scoinst install; do
4018      for ac_exec_ext in '' $ac_executable_extensions; do
4019	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4020	  if test $ac_prog = install &&
4021	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4022	    # AIX install.  It has an incompatible calling convention.
4023	    :
4024	  elif test $ac_prog = install &&
4025	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4026	    # program-specific install script used by HP pwplus--don't use.
4027	    :
4028	  else
4029	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4030	    break 3
4031	  fi
4032	fi
4033      done
4034    done
4035    ;;
4036esac
4037done
4038IFS=$as_save_IFS
4039
4040
4041fi
4042  if test "${ac_cv_path_install+set}" = set; then
4043    INSTALL=$ac_cv_path_install
4044  else
4045    # As a last resort, use the slow shell script.  Don't cache a
4046    # value for INSTALL within a source directory, because that will
4047    # break other packages using the cache if that directory is
4048    # removed, or if the value is a relative name.
4049    INSTALL=$ac_install_sh
4050  fi
4051fi
4052{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4053echo "${ECHO_T}$INSTALL" >&6; }
4054
4055# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4056# It thinks the first close brace ends the variable substitution.
4057test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4058
4059test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4060
4061test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4062
4063if test -n "$ac_tool_prefix"; then
4064  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4065set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4068if test "${ac_cv_prog_RANLIB+set}" = set; then
4069  echo $ECHO_N "(cached) $ECHO_C" >&6
4070else
4071  if test -n "$RANLIB"; then
4072  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4073else
4074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075for as_dir in $PATH
4076do
4077  IFS=$as_save_IFS
4078  test -z "$as_dir" && as_dir=.
4079  for ac_exec_ext in '' $ac_executable_extensions; do
4080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4081    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4083    break 2
4084  fi
4085done
4086done
4087IFS=$as_save_IFS
4088
4089fi
4090fi
4091RANLIB=$ac_cv_prog_RANLIB
4092if test -n "$RANLIB"; then
4093  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4094echo "${ECHO_T}$RANLIB" >&6; }
4095else
4096  { echo "$as_me:$LINENO: result: no" >&5
4097echo "${ECHO_T}no" >&6; }
4098fi
4099
4100
4101fi
4102if test -z "$ac_cv_prog_RANLIB"; then
4103  ac_ct_RANLIB=$RANLIB
4104  # Extract the first word of "ranlib", so it can be a program name with args.
4105set dummy ranlib; ac_word=$2
4106{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4108if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4109  echo $ECHO_N "(cached) $ECHO_C" >&6
4110else
4111  if test -n "$ac_ct_RANLIB"; then
4112  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4113else
4114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115for as_dir in $PATH
4116do
4117  IFS=$as_save_IFS
4118  test -z "$as_dir" && as_dir=.
4119  for ac_exec_ext in '' $ac_executable_extensions; do
4120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121    ac_cv_prog_ac_ct_RANLIB="ranlib"
4122    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123    break 2
4124  fi
4125done
4126done
4127IFS=$as_save_IFS
4128
4129fi
4130fi
4131ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4132if test -n "$ac_ct_RANLIB"; then
4133  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4134echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4135else
4136  { echo "$as_me:$LINENO: result: no" >&5
4137echo "${ECHO_T}no" >&6; }
4138fi
4139
4140  if test "x$ac_ct_RANLIB" = x; then
4141    RANLIB=":"
4142  else
4143    case $cross_compiling:$ac_tool_warned in
4144yes:)
4145{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4146whose name does not start with the host triplet.  If you think this
4147configuration is useful to you, please write to autoconf@gnu.org." >&5
4148echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4149whose name does not start with the host triplet.  If you think this
4150configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4151ac_tool_warned=yes ;;
4152esac
4153    RANLIB=$ac_ct_RANLIB
4154  fi
4155else
4156  RANLIB="$ac_cv_prog_RANLIB"
4157fi
4158
4159for ac_prog in 'bison -y' byacc
4160do
4161  # Extract the first word of "$ac_prog", so it can be a program name with args.
4162set dummy $ac_prog; ac_word=$2
4163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4165if test "${ac_cv_prog_YACC+set}" = set; then
4166  echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
4168  if test -n "$YACC"; then
4169  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4170else
4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH
4173do
4174  IFS=$as_save_IFS
4175  test -z "$as_dir" && as_dir=.
4176  for ac_exec_ext in '' $ac_executable_extensions; do
4177  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4178    ac_cv_prog_YACC="$ac_prog"
4179    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180    break 2
4181  fi
4182done
4183done
4184IFS=$as_save_IFS
4185
4186fi
4187fi
4188YACC=$ac_cv_prog_YACC
4189if test -n "$YACC"; then
4190  { echo "$as_me:$LINENO: result: $YACC" >&5
4191echo "${ECHO_T}$YACC" >&6; }
4192else
4193  { echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6; }
4195fi
4196
4197
4198  test -n "$YACC" && break
4199done
4200test -n "$YACC" || YACC="yacc"
4201
4202
4203# Checks for header files.
4204
4205ac_ext=c
4206ac_cpp='$CPP $CPPFLAGS'
4207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4211echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4212# On Suns, sometimes $CPP names a directory.
4213if test -n "$CPP" && test -d "$CPP"; then
4214  CPP=
4215fi
4216if test -z "$CPP"; then
4217  if test "${ac_cv_prog_CPP+set}" = set; then
4218  echo $ECHO_N "(cached) $ECHO_C" >&6
4219else
4220      # Double quotes because CPP needs to be expanded
4221    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4222    do
4223      ac_preproc_ok=false
4224for ac_c_preproc_warn_flag in '' yes
4225do
4226  # Use a header file that comes with gcc, so configuring glibc
4227  # with a fresh cross-compiler works.
4228  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229  # <limits.h> exists even on freestanding compilers.
4230  # On the NeXT, cc -E runs the code through the compiler's parser,
4231  # not just through cpp. "Syntax error" is here to catch this case.
4232  cat >conftest.$ac_ext <<_ACEOF
4233/* confdefs.h.  */
4234_ACEOF
4235cat confdefs.h >>conftest.$ac_ext
4236cat >>conftest.$ac_ext <<_ACEOF
4237/* end confdefs.h.  */
4238#ifdef __STDC__
4239# include <limits.h>
4240#else
4241# include <assert.h>
4242#endif
4243		     Syntax error
4244_ACEOF
4245if { (ac_try="$ac_cpp conftest.$ac_ext"
4246case "(($ac_try" in
4247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248  *) ac_try_echo=$ac_try;;
4249esac
4250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4252  ac_status=$?
4253  grep -v '^ *+' conftest.er1 >conftest.err
4254  rm -f conftest.er1
4255  cat conftest.err >&5
4256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257  (exit $ac_status); } >/dev/null && {
4258	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4259	 test ! -s conftest.err
4260       }; then
4261  :
4262else
4263  echo "$as_me: failed program was:" >&5
4264sed 's/^/| /' conftest.$ac_ext >&5
4265
4266  # Broken: fails on valid input.
4267continue
4268fi
4269
4270rm -f conftest.err conftest.$ac_ext
4271
4272  # OK, works on sane cases.  Now check whether nonexistent headers
4273  # can be detected and how.
4274  cat >conftest.$ac_ext <<_ACEOF
4275/* confdefs.h.  */
4276_ACEOF
4277cat confdefs.h >>conftest.$ac_ext
4278cat >>conftest.$ac_ext <<_ACEOF
4279/* end confdefs.h.  */
4280#include <ac_nonexistent.h>
4281_ACEOF
4282if { (ac_try="$ac_cpp conftest.$ac_ext"
4283case "(($ac_try" in
4284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285  *) ac_try_echo=$ac_try;;
4286esac
4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4289  ac_status=$?
4290  grep -v '^ *+' conftest.er1 >conftest.err
4291  rm -f conftest.er1
4292  cat conftest.err >&5
4293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294  (exit $ac_status); } >/dev/null && {
4295	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4296	 test ! -s conftest.err
4297       }; then
4298  # Broken: success on invalid input.
4299continue
4300else
4301  echo "$as_me: failed program was:" >&5
4302sed 's/^/| /' conftest.$ac_ext >&5
4303
4304  # Passes both tests.
4305ac_preproc_ok=:
4306break
4307fi
4308
4309rm -f conftest.err conftest.$ac_ext
4310
4311done
4312# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4313rm -f conftest.err conftest.$ac_ext
4314if $ac_preproc_ok; then
4315  break
4316fi
4317
4318    done
4319    ac_cv_prog_CPP=$CPP
4320
4321fi
4322  CPP=$ac_cv_prog_CPP
4323else
4324  ac_cv_prog_CPP=$CPP
4325fi
4326{ echo "$as_me:$LINENO: result: $CPP" >&5
4327echo "${ECHO_T}$CPP" >&6; }
4328ac_preproc_ok=false
4329for ac_c_preproc_warn_flag in '' yes
4330do
4331  # Use a header file that comes with gcc, so configuring glibc
4332  # with a fresh cross-compiler works.
4333  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4334  # <limits.h> exists even on freestanding compilers.
4335  # On the NeXT, cc -E runs the code through the compiler's parser,
4336  # not just through cpp. "Syntax error" is here to catch this case.
4337  cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h.  */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h.  */
4343#ifdef __STDC__
4344# include <limits.h>
4345#else
4346# include <assert.h>
4347#endif
4348		     Syntax error
4349_ACEOF
4350if { (ac_try="$ac_cpp conftest.$ac_ext"
4351case "(($ac_try" in
4352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353  *) ac_try_echo=$ac_try;;
4354esac
4355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4357  ac_status=$?
4358  grep -v '^ *+' conftest.er1 >conftest.err
4359  rm -f conftest.er1
4360  cat conftest.err >&5
4361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362  (exit $ac_status); } >/dev/null && {
4363	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4364	 test ! -s conftest.err
4365       }; then
4366  :
4367else
4368  echo "$as_me: failed program was:" >&5
4369sed 's/^/| /' conftest.$ac_ext >&5
4370
4371  # Broken: fails on valid input.
4372continue
4373fi
4374
4375rm -f conftest.err conftest.$ac_ext
4376
4377  # OK, works on sane cases.  Now check whether nonexistent headers
4378  # can be detected and how.
4379  cat >conftest.$ac_ext <<_ACEOF
4380/* confdefs.h.  */
4381_ACEOF
4382cat confdefs.h >>conftest.$ac_ext
4383cat >>conftest.$ac_ext <<_ACEOF
4384/* end confdefs.h.  */
4385#include <ac_nonexistent.h>
4386_ACEOF
4387if { (ac_try="$ac_cpp conftest.$ac_ext"
4388case "(($ac_try" in
4389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390  *) ac_try_echo=$ac_try;;
4391esac
4392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4394  ac_status=$?
4395  grep -v '^ *+' conftest.er1 >conftest.err
4396  rm -f conftest.er1
4397  cat conftest.err >&5
4398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399  (exit $ac_status); } >/dev/null && {
4400	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4401	 test ! -s conftest.err
4402       }; then
4403  # Broken: success on invalid input.
4404continue
4405else
4406  echo "$as_me: failed program was:" >&5
4407sed 's/^/| /' conftest.$ac_ext >&5
4408
4409  # Passes both tests.
4410ac_preproc_ok=:
4411break
4412fi
4413
4414rm -f conftest.err conftest.$ac_ext
4415
4416done
4417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4418rm -f conftest.err conftest.$ac_ext
4419if $ac_preproc_ok; then
4420  :
4421else
4422  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4423See \`config.log' for more details." >&5
4424echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4425See \`config.log' for more details." >&2;}
4426   { (exit 1); exit 1; }; }
4427fi
4428
4429ac_ext=c
4430ac_cpp='$CPP $CPPFLAGS'
4431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434
4435
4436{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4437echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4438if test "${ac_cv_path_GREP+set}" = set; then
4439  echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441  # Extract the first word of "grep ggrep" to use in msg output
4442if test -z "$GREP"; then
4443set dummy grep ggrep; ac_prog_name=$2
4444if test "${ac_cv_path_GREP+set}" = set; then
4445  echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447  ac_path_GREP_found=false
4448# Loop through the user's path and test for each of PROGNAME-LIST
4449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4451do
4452  IFS=$as_save_IFS
4453  test -z "$as_dir" && as_dir=.
4454  for ac_prog in grep ggrep; do
4455  for ac_exec_ext in '' $ac_executable_extensions; do
4456    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4457    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4458    # Check for GNU ac_path_GREP and select it if it is found.
4459  # Check for GNU $ac_path_GREP
4460case `"$ac_path_GREP" --version 2>&1` in
4461*GNU*)
4462  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4463*)
4464  ac_count=0
4465  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4466  while :
4467  do
4468    cat "conftest.in" "conftest.in" >"conftest.tmp"
4469    mv "conftest.tmp" "conftest.in"
4470    cp "conftest.in" "conftest.nl"
4471    echo 'GREP' >> "conftest.nl"
4472    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4473    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4474    ac_count=`expr $ac_count + 1`
4475    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4476      # Best one so far, save it but keep looking for a better one
4477      ac_cv_path_GREP="$ac_path_GREP"
4478      ac_path_GREP_max=$ac_count
4479    fi
4480    # 10*(2^10) chars as input seems more than enough
4481    test $ac_count -gt 10 && break
4482  done
4483  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4484esac
4485
4486
4487    $ac_path_GREP_found && break 3
4488  done
4489done
4490
4491done
4492IFS=$as_save_IFS
4493
4494
4495fi
4496
4497GREP="$ac_cv_path_GREP"
4498if test -z "$GREP"; then
4499  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4500echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4501   { (exit 1); exit 1; }; }
4502fi
4503
4504else
4505  ac_cv_path_GREP=$GREP
4506fi
4507
4508
4509fi
4510{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4511echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4512 GREP="$ac_cv_path_GREP"
4513
4514
4515{ echo "$as_me:$LINENO: checking for egrep" >&5
4516echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4517if test "${ac_cv_path_EGREP+set}" = set; then
4518  echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
4520  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4521   then ac_cv_path_EGREP="$GREP -E"
4522   else
4523     # Extract the first word of "egrep" to use in msg output
4524if test -z "$EGREP"; then
4525set dummy egrep; ac_prog_name=$2
4526if test "${ac_cv_path_EGREP+set}" = set; then
4527  echo $ECHO_N "(cached) $ECHO_C" >&6
4528else
4529  ac_path_EGREP_found=false
4530# Loop through the user's path and test for each of PROGNAME-LIST
4531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4533do
4534  IFS=$as_save_IFS
4535  test -z "$as_dir" && as_dir=.
4536  for ac_prog in egrep; do
4537  for ac_exec_ext in '' $ac_executable_extensions; do
4538    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4539    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4540    # Check for GNU ac_path_EGREP and select it if it is found.
4541  # Check for GNU $ac_path_EGREP
4542case `"$ac_path_EGREP" --version 2>&1` in
4543*GNU*)
4544  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4545*)
4546  ac_count=0
4547  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4548  while :
4549  do
4550    cat "conftest.in" "conftest.in" >"conftest.tmp"
4551    mv "conftest.tmp" "conftest.in"
4552    cp "conftest.in" "conftest.nl"
4553    echo 'EGREP' >> "conftest.nl"
4554    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4555    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4556    ac_count=`expr $ac_count + 1`
4557    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4558      # Best one so far, save it but keep looking for a better one
4559      ac_cv_path_EGREP="$ac_path_EGREP"
4560      ac_path_EGREP_max=$ac_count
4561    fi
4562    # 10*(2^10) chars as input seems more than enough
4563    test $ac_count -gt 10 && break
4564  done
4565  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4566esac
4567
4568
4569    $ac_path_EGREP_found && break 3
4570  done
4571done
4572
4573done
4574IFS=$as_save_IFS
4575
4576
4577fi
4578
4579EGREP="$ac_cv_path_EGREP"
4580if test -z "$EGREP"; then
4581  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4582echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4583   { (exit 1); exit 1; }; }
4584fi
4585
4586else
4587  ac_cv_path_EGREP=$EGREP
4588fi
4589
4590
4591   fi
4592fi
4593{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4594echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4595 EGREP="$ac_cv_path_EGREP"
4596
4597
4598{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4599echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4600if test "${ac_cv_header_stdc+set}" = set; then
4601  echo $ECHO_N "(cached) $ECHO_C" >&6
4602else
4603  cat >conftest.$ac_ext <<_ACEOF
4604/* confdefs.h.  */
4605_ACEOF
4606cat confdefs.h >>conftest.$ac_ext
4607cat >>conftest.$ac_ext <<_ACEOF
4608/* end confdefs.h.  */
4609#include <stdlib.h>
4610#include <stdarg.h>
4611#include <string.h>
4612#include <float.h>
4613
4614int
4615main ()
4616{
4617
4618  ;
4619  return 0;
4620}
4621_ACEOF
4622rm -f conftest.$ac_objext
4623if { (ac_try="$ac_compile"
4624case "(($ac_try" in
4625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626  *) ac_try_echo=$ac_try;;
4627esac
4628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4629  (eval "$ac_compile") 2>conftest.er1
4630  ac_status=$?
4631  grep -v '^ *+' conftest.er1 >conftest.err
4632  rm -f conftest.er1
4633  cat conftest.err >&5
4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635  (exit $ac_status); } && {
4636	 test -z "$ac_c_werror_flag" ||
4637	 test ! -s conftest.err
4638       } && test -s conftest.$ac_objext; then
4639  ac_cv_header_stdc=yes
4640else
4641  echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644	ac_cv_header_stdc=no
4645fi
4646
4647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648
4649if test $ac_cv_header_stdc = yes; then
4650  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4651  cat >conftest.$ac_ext <<_ACEOF
4652/* confdefs.h.  */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h.  */
4657#include <string.h>
4658
4659_ACEOF
4660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4661  $EGREP "memchr" >/dev/null 2>&1; then
4662  :
4663else
4664  ac_cv_header_stdc=no
4665fi
4666rm -f conftest*
4667
4668fi
4669
4670if test $ac_cv_header_stdc = yes; then
4671  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4672  cat >conftest.$ac_ext <<_ACEOF
4673/* confdefs.h.  */
4674_ACEOF
4675cat confdefs.h >>conftest.$ac_ext
4676cat >>conftest.$ac_ext <<_ACEOF
4677/* end confdefs.h.  */
4678#include <stdlib.h>
4679
4680_ACEOF
4681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4682  $EGREP "free" >/dev/null 2>&1; then
4683  :
4684else
4685  ac_cv_header_stdc=no
4686fi
4687rm -f conftest*
4688
4689fi
4690
4691if test $ac_cv_header_stdc = yes; then
4692  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4693  if test "$cross_compiling" = yes; then
4694  :
4695else
4696  cat >conftest.$ac_ext <<_ACEOF
4697/* confdefs.h.  */
4698_ACEOF
4699cat confdefs.h >>conftest.$ac_ext
4700cat >>conftest.$ac_ext <<_ACEOF
4701/* end confdefs.h.  */
4702#include <ctype.h>
4703#include <stdlib.h>
4704#if ((' ' & 0x0FF) == 0x020)
4705# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4706# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4707#else
4708# define ISLOWER(c) \
4709		   (('a' <= (c) && (c) <= 'i') \
4710		     || ('j' <= (c) && (c) <= 'r') \
4711		     || ('s' <= (c) && (c) <= 'z'))
4712# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4713#endif
4714
4715#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4716int
4717main ()
4718{
4719  int i;
4720  for (i = 0; i < 256; i++)
4721    if (XOR (islower (i), ISLOWER (i))
4722	|| toupper (i) != TOUPPER (i))
4723      return 2;
4724  return 0;
4725}
4726_ACEOF
4727rm -f conftest$ac_exeext
4728if { (ac_try="$ac_link"
4729case "(($ac_try" in
4730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731  *) ac_try_echo=$ac_try;;
4732esac
4733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734  (eval "$ac_link") 2>&5
4735  ac_status=$?
4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4738  { (case "(($ac_try" in
4739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740  *) ac_try_echo=$ac_try;;
4741esac
4742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743  (eval "$ac_try") 2>&5
4744  ac_status=$?
4745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746  (exit $ac_status); }; }; then
4747  :
4748else
4749  echo "$as_me: program exited with status $ac_status" >&5
4750echo "$as_me: failed program was:" >&5
4751sed 's/^/| /' conftest.$ac_ext >&5
4752
4753( exit $ac_status )
4754ac_cv_header_stdc=no
4755fi
4756rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4757fi
4758
4759
4760fi
4761fi
4762{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4763echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4764if test $ac_cv_header_stdc = yes; then
4765
4766cat >>confdefs.h <<\_ACEOF
4767#define STDC_HEADERS 1
4768_ACEOF
4769
4770fi
4771
4772# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4783		  inttypes.h stdint.h unistd.h
4784do
4785as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4786{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4789  echo $ECHO_N "(cached) $ECHO_C" >&6
4790else
4791  cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h.  */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h.  */
4797$ac_includes_default
4798
4799#include <$ac_header>
4800_ACEOF
4801rm -f conftest.$ac_objext
4802if { (ac_try="$ac_compile"
4803case "(($ac_try" in
4804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805  *) ac_try_echo=$ac_try;;
4806esac
4807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808  (eval "$ac_compile") 2>conftest.er1
4809  ac_status=$?
4810  grep -v '^ *+' conftest.er1 >conftest.err
4811  rm -f conftest.er1
4812  cat conftest.err >&5
4813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814  (exit $ac_status); } && {
4815	 test -z "$ac_c_werror_flag" ||
4816	 test ! -s conftest.err
4817       } && test -s conftest.$ac_objext; then
4818  eval "$as_ac_Header=yes"
4819else
4820  echo "$as_me: failed program was:" >&5
4821sed 's/^/| /' conftest.$ac_ext >&5
4822
4823	eval "$as_ac_Header=no"
4824fi
4825
4826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827fi
4828ac_res=`eval echo '${'$as_ac_Header'}'`
4829	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4830echo "${ECHO_T}$ac_res" >&6; }
4831if test `eval echo '${'$as_ac_Header'}'` = yes; then
4832  cat >>confdefs.h <<_ACEOF
4833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4834_ACEOF
4835
4836fi
4837
4838done
4839
4840
4841# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4842# for constant arguments.  Useless!
4843{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
4844echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
4845if test "${ac_cv_working_alloca_h+set}" = set; then
4846  echo $ECHO_N "(cached) $ECHO_C" >&6
4847else
4848  cat >conftest.$ac_ext <<_ACEOF
4849/* confdefs.h.  */
4850_ACEOF
4851cat confdefs.h >>conftest.$ac_ext
4852cat >>conftest.$ac_ext <<_ACEOF
4853/* end confdefs.h.  */
4854#include <alloca.h>
4855int
4856main ()
4857{
4858char *p = (char *) alloca (2 * sizeof (int));
4859			  if (p) return 0;
4860  ;
4861  return 0;
4862}
4863_ACEOF
4864rm -f conftest.$ac_objext conftest$ac_exeext
4865if { (ac_try="$ac_link"
4866case "(($ac_try" in
4867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868  *) ac_try_echo=$ac_try;;
4869esac
4870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871  (eval "$ac_link") 2>conftest.er1
4872  ac_status=$?
4873  grep -v '^ *+' conftest.er1 >conftest.err
4874  rm -f conftest.er1
4875  cat conftest.err >&5
4876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877  (exit $ac_status); } && {
4878	 test -z "$ac_c_werror_flag" ||
4879	 test ! -s conftest.err
4880       } && test -s conftest$ac_exeext &&
4881       $as_test_x conftest$ac_exeext; then
4882  ac_cv_working_alloca_h=yes
4883else
4884  echo "$as_me: failed program was:" >&5
4885sed 's/^/| /' conftest.$ac_ext >&5
4886
4887	ac_cv_working_alloca_h=no
4888fi
4889
4890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4891      conftest$ac_exeext conftest.$ac_ext
4892fi
4893{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4894echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
4895if test $ac_cv_working_alloca_h = yes; then
4896
4897cat >>confdefs.h <<\_ACEOF
4898#define HAVE_ALLOCA_H 1
4899_ACEOF
4900
4901fi
4902
4903{ echo "$as_me:$LINENO: checking for alloca" >&5
4904echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
4905if test "${ac_cv_func_alloca_works+set}" = set; then
4906  echo $ECHO_N "(cached) $ECHO_C" >&6
4907else
4908  cat >conftest.$ac_ext <<_ACEOF
4909/* confdefs.h.  */
4910_ACEOF
4911cat confdefs.h >>conftest.$ac_ext
4912cat >>conftest.$ac_ext <<_ACEOF
4913/* end confdefs.h.  */
4914#ifdef __GNUC__
4915# define alloca __builtin_alloca
4916#else
4917# ifdef _MSC_VER
4918#  include <malloc.h>
4919#  define alloca _alloca
4920# else
4921#  ifdef HAVE_ALLOCA_H
4922#   include <alloca.h>
4923#  else
4924#   ifdef _AIX
4925 #pragma alloca
4926#   else
4927#    ifndef alloca /* predefined by HP cc +Olibcalls */
4928char *alloca ();
4929#    endif
4930#   endif
4931#  endif
4932# endif
4933#endif
4934
4935int
4936main ()
4937{
4938char *p = (char *) alloca (1);
4939				    if (p) return 0;
4940  ;
4941  return 0;
4942}
4943_ACEOF
4944rm -f conftest.$ac_objext conftest$ac_exeext
4945if { (ac_try="$ac_link"
4946case "(($ac_try" in
4947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948  *) ac_try_echo=$ac_try;;
4949esac
4950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951  (eval "$ac_link") 2>conftest.er1
4952  ac_status=$?
4953  grep -v '^ *+' conftest.er1 >conftest.err
4954  rm -f conftest.er1
4955  cat conftest.err >&5
4956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957  (exit $ac_status); } && {
4958	 test -z "$ac_c_werror_flag" ||
4959	 test ! -s conftest.err
4960       } && test -s conftest$ac_exeext &&
4961       $as_test_x conftest$ac_exeext; then
4962  ac_cv_func_alloca_works=yes
4963else
4964  echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967	ac_cv_func_alloca_works=no
4968fi
4969
4970rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4971      conftest$ac_exeext conftest.$ac_ext
4972fi
4973{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4974echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
4975
4976if test $ac_cv_func_alloca_works = yes; then
4977
4978cat >>confdefs.h <<\_ACEOF
4979#define HAVE_ALLOCA 1
4980_ACEOF
4981
4982else
4983  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4984# that cause trouble.  Some versions do not even contain alloca or
4985# contain a buggy version.  If you still want to use their alloca,
4986# use ar to extract alloca.o from them instead of compiling alloca.c.
4987
4988ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4989
4990cat >>confdefs.h <<\_ACEOF
4991#define C_ALLOCA 1
4992_ACEOF
4993
4994
4995{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4996echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
4997if test "${ac_cv_os_cray+set}" = set; then
4998  echo $ECHO_N "(cached) $ECHO_C" >&6
4999else
5000  cat >conftest.$ac_ext <<_ACEOF
5001/* confdefs.h.  */
5002_ACEOF
5003cat confdefs.h >>conftest.$ac_ext
5004cat >>conftest.$ac_ext <<_ACEOF
5005/* end confdefs.h.  */
5006#if defined CRAY && ! defined CRAY2
5007webecray
5008#else
5009wenotbecray
5010#endif
5011
5012_ACEOF
5013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5014  $EGREP "webecray" >/dev/null 2>&1; then
5015  ac_cv_os_cray=yes
5016else
5017  ac_cv_os_cray=no
5018fi
5019rm -f conftest*
5020
5021fi
5022{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5023echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5024if test $ac_cv_os_cray = yes; then
5025  for ac_func in _getb67 GETB67 getb67; do
5026    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5027{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5028echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5029if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5030  echo $ECHO_N "(cached) $ECHO_C" >&6
5031else
5032  cat >conftest.$ac_ext <<_ACEOF
5033/* confdefs.h.  */
5034_ACEOF
5035cat confdefs.h >>conftest.$ac_ext
5036cat >>conftest.$ac_ext <<_ACEOF
5037/* end confdefs.h.  */
5038/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5039   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5040#define $ac_func innocuous_$ac_func
5041
5042/* System header to define __stub macros and hopefully few prototypes,
5043    which can conflict with char $ac_func (); below.
5044    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045    <limits.h> exists even on freestanding compilers.  */
5046
5047#ifdef __STDC__
5048# include <limits.h>
5049#else
5050# include <assert.h>
5051#endif
5052
5053#undef $ac_func
5054
5055/* Override any GCC internal prototype to avoid an error.
5056   Use char because int might match the return type of a GCC
5057   builtin and then its argument prototype would still apply.  */
5058#ifdef __cplusplus
5059extern "C"
5060#endif
5061char $ac_func ();
5062/* The GNU C library defines this for functions which it implements
5063    to always fail with ENOSYS.  Some functions are actually named
5064    something starting with __ and the normal name is an alias.  */
5065#if defined __stub_$ac_func || defined __stub___$ac_func
5066choke me
5067#endif
5068
5069int
5070main ()
5071{
5072return $ac_func ();
5073  ;
5074  return 0;
5075}
5076_ACEOF
5077rm -f conftest.$ac_objext conftest$ac_exeext
5078if { (ac_try="$ac_link"
5079case "(($ac_try" in
5080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081  *) ac_try_echo=$ac_try;;
5082esac
5083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084  (eval "$ac_link") 2>conftest.er1
5085  ac_status=$?
5086  grep -v '^ *+' conftest.er1 >conftest.err
5087  rm -f conftest.er1
5088  cat conftest.err >&5
5089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090  (exit $ac_status); } && {
5091	 test -z "$ac_c_werror_flag" ||
5092	 test ! -s conftest.err
5093       } && test -s conftest$ac_exeext &&
5094       $as_test_x conftest$ac_exeext; then
5095  eval "$as_ac_var=yes"
5096else
5097  echo "$as_me: failed program was:" >&5
5098sed 's/^/| /' conftest.$ac_ext >&5
5099
5100	eval "$as_ac_var=no"
5101fi
5102
5103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5104      conftest$ac_exeext conftest.$ac_ext
5105fi
5106ac_res=`eval echo '${'$as_ac_var'}'`
5107	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5108echo "${ECHO_T}$ac_res" >&6; }
5109if test `eval echo '${'$as_ac_var'}'` = yes; then
5110
5111cat >>confdefs.h <<_ACEOF
5112#define CRAY_STACKSEG_END $ac_func
5113_ACEOF
5114
5115    break
5116fi
5117
5118  done
5119fi
5120
5121{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5122echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5123if test "${ac_cv_c_stack_direction+set}" = set; then
5124  echo $ECHO_N "(cached) $ECHO_C" >&6
5125else
5126  if test "$cross_compiling" = yes; then
5127  ac_cv_c_stack_direction=0
5128else
5129  cat >conftest.$ac_ext <<_ACEOF
5130/* confdefs.h.  */
5131_ACEOF
5132cat confdefs.h >>conftest.$ac_ext
5133cat >>conftest.$ac_ext <<_ACEOF
5134/* end confdefs.h.  */
5135$ac_includes_default
5136int
5137find_stack_direction ()
5138{
5139  static char *addr = 0;
5140  auto char dummy;
5141  if (addr == 0)
5142    {
5143      addr = &dummy;
5144      return find_stack_direction ();
5145    }
5146  else
5147    return (&dummy > addr) ? 1 : -1;
5148}
5149
5150int
5151main ()
5152{
5153  return find_stack_direction () < 0;
5154}
5155_ACEOF
5156rm -f conftest$ac_exeext
5157if { (ac_try="$ac_link"
5158case "(($ac_try" in
5159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160  *) ac_try_echo=$ac_try;;
5161esac
5162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163  (eval "$ac_link") 2>&5
5164  ac_status=$?
5165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5167  { (case "(($ac_try" in
5168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169  *) ac_try_echo=$ac_try;;
5170esac
5171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172  (eval "$ac_try") 2>&5
5173  ac_status=$?
5174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175  (exit $ac_status); }; }; then
5176  ac_cv_c_stack_direction=1
5177else
5178  echo "$as_me: program exited with status $ac_status" >&5
5179echo "$as_me: failed program was:" >&5
5180sed 's/^/| /' conftest.$ac_ext >&5
5181
5182( exit $ac_status )
5183ac_cv_c_stack_direction=-1
5184fi
5185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5186fi
5187
5188
5189fi
5190{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5191echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
5192
5193cat >>confdefs.h <<_ACEOF
5194#define STACK_DIRECTION $ac_cv_c_stack_direction
5195_ACEOF
5196
5197
5198fi
5199
5200
5201
5202
5203
5204
5205ac_header_dirent=no
5206for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5207  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5208{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5209echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5211  echo $ECHO_N "(cached) $ECHO_C" >&6
5212else
5213  cat >conftest.$ac_ext <<_ACEOF
5214/* confdefs.h.  */
5215_ACEOF
5216cat confdefs.h >>conftest.$ac_ext
5217cat >>conftest.$ac_ext <<_ACEOF
5218/* end confdefs.h.  */
5219#include <sys/types.h>
5220#include <$ac_hdr>
5221
5222int
5223main ()
5224{
5225if ((DIR *) 0)
5226return 0;
5227  ;
5228  return 0;
5229}
5230_ACEOF
5231rm -f conftest.$ac_objext
5232if { (ac_try="$ac_compile"
5233case "(($ac_try" in
5234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235  *) ac_try_echo=$ac_try;;
5236esac
5237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238  (eval "$ac_compile") 2>conftest.er1
5239  ac_status=$?
5240  grep -v '^ *+' conftest.er1 >conftest.err
5241  rm -f conftest.er1
5242  cat conftest.err >&5
5243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244  (exit $ac_status); } && {
5245	 test -z "$ac_c_werror_flag" ||
5246	 test ! -s conftest.err
5247       } && test -s conftest.$ac_objext; then
5248  eval "$as_ac_Header=yes"
5249else
5250  echo "$as_me: failed program was:" >&5
5251sed 's/^/| /' conftest.$ac_ext >&5
5252
5253	eval "$as_ac_Header=no"
5254fi
5255
5256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257fi
5258ac_res=`eval echo '${'$as_ac_Header'}'`
5259	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5260echo "${ECHO_T}$ac_res" >&6; }
5261if test `eval echo '${'$as_ac_Header'}'` = yes; then
5262  cat >>confdefs.h <<_ACEOF
5263#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5264_ACEOF
5265
5266ac_header_dirent=$ac_hdr; break
5267fi
5268
5269done
5270# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5271if test $ac_header_dirent = dirent.h; then
5272  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5273echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5274if test "${ac_cv_search_opendir+set}" = set; then
5275  echo $ECHO_N "(cached) $ECHO_C" >&6
5276else
5277  ac_func_search_save_LIBS=$LIBS
5278cat >conftest.$ac_ext <<_ACEOF
5279/* confdefs.h.  */
5280_ACEOF
5281cat confdefs.h >>conftest.$ac_ext
5282cat >>conftest.$ac_ext <<_ACEOF
5283/* end confdefs.h.  */
5284
5285/* Override any GCC internal prototype to avoid an error.
5286   Use char because int might match the return type of a GCC
5287   builtin and then its argument prototype would still apply.  */
5288#ifdef __cplusplus
5289extern "C"
5290#endif
5291char opendir ();
5292int
5293main ()
5294{
5295return opendir ();
5296  ;
5297  return 0;
5298}
5299_ACEOF
5300for ac_lib in '' dir; do
5301  if test -z "$ac_lib"; then
5302    ac_res="none required"
5303  else
5304    ac_res=-l$ac_lib
5305    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5306  fi
5307  rm -f conftest.$ac_objext conftest$ac_exeext
5308if { (ac_try="$ac_link"
5309case "(($ac_try" in
5310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311  *) ac_try_echo=$ac_try;;
5312esac
5313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314  (eval "$ac_link") 2>conftest.er1
5315  ac_status=$?
5316  grep -v '^ *+' conftest.er1 >conftest.err
5317  rm -f conftest.er1
5318  cat conftest.err >&5
5319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320  (exit $ac_status); } && {
5321	 test -z "$ac_c_werror_flag" ||
5322	 test ! -s conftest.err
5323       } && test -s conftest$ac_exeext &&
5324       $as_test_x conftest$ac_exeext; then
5325  ac_cv_search_opendir=$ac_res
5326else
5327  echo "$as_me: failed program was:" >&5
5328sed 's/^/| /' conftest.$ac_ext >&5
5329
5330
5331fi
5332
5333rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5334      conftest$ac_exeext
5335  if test "${ac_cv_search_opendir+set}" = set; then
5336  break
5337fi
5338done
5339if test "${ac_cv_search_opendir+set}" = set; then
5340  :
5341else
5342  ac_cv_search_opendir=no
5343fi
5344rm conftest.$ac_ext
5345LIBS=$ac_func_search_save_LIBS
5346fi
5347{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5348echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5349ac_res=$ac_cv_search_opendir
5350if test "$ac_res" != no; then
5351  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5352
5353fi
5354
5355else
5356  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5357echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5358if test "${ac_cv_search_opendir+set}" = set; then
5359  echo $ECHO_N "(cached) $ECHO_C" >&6
5360else
5361  ac_func_search_save_LIBS=$LIBS
5362cat >conftest.$ac_ext <<_ACEOF
5363/* confdefs.h.  */
5364_ACEOF
5365cat confdefs.h >>conftest.$ac_ext
5366cat >>conftest.$ac_ext <<_ACEOF
5367/* end confdefs.h.  */
5368
5369/* Override any GCC internal prototype to avoid an error.
5370   Use char because int might match the return type of a GCC
5371   builtin and then its argument prototype would still apply.  */
5372#ifdef __cplusplus
5373extern "C"
5374#endif
5375char opendir ();
5376int
5377main ()
5378{
5379return opendir ();
5380  ;
5381  return 0;
5382}
5383_ACEOF
5384for ac_lib in '' x; do
5385  if test -z "$ac_lib"; then
5386    ac_res="none required"
5387  else
5388    ac_res=-l$ac_lib
5389    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5390  fi
5391  rm -f conftest.$ac_objext conftest$ac_exeext
5392if { (ac_try="$ac_link"
5393case "(($ac_try" in
5394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395  *) ac_try_echo=$ac_try;;
5396esac
5397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398  (eval "$ac_link") 2>conftest.er1
5399  ac_status=$?
5400  grep -v '^ *+' conftest.er1 >conftest.err
5401  rm -f conftest.er1
5402  cat conftest.err >&5
5403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404  (exit $ac_status); } && {
5405	 test -z "$ac_c_werror_flag" ||
5406	 test ! -s conftest.err
5407       } && test -s conftest$ac_exeext &&
5408       $as_test_x conftest$ac_exeext; then
5409  ac_cv_search_opendir=$ac_res
5410else
5411  echo "$as_me: failed program was:" >&5
5412sed 's/^/| /' conftest.$ac_ext >&5
5413
5414
5415fi
5416
5417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5418      conftest$ac_exeext
5419  if test "${ac_cv_search_opendir+set}" = set; then
5420  break
5421fi
5422done
5423if test "${ac_cv_search_opendir+set}" = set; then
5424  :
5425else
5426  ac_cv_search_opendir=no
5427fi
5428rm conftest.$ac_ext
5429LIBS=$ac_func_search_save_LIBS
5430fi
5431{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5432echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5433ac_res=$ac_cv_search_opendir
5434if test "$ac_res" != no; then
5435  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5436
5437fi
5438
5439fi
5440
5441{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5442echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5443if test "${ac_cv_header_stdc+set}" = set; then
5444  echo $ECHO_N "(cached) $ECHO_C" >&6
5445else
5446  cat >conftest.$ac_ext <<_ACEOF
5447/* confdefs.h.  */
5448_ACEOF
5449cat confdefs.h >>conftest.$ac_ext
5450cat >>conftest.$ac_ext <<_ACEOF
5451/* end confdefs.h.  */
5452#include <stdlib.h>
5453#include <stdarg.h>
5454#include <string.h>
5455#include <float.h>
5456
5457int
5458main ()
5459{
5460
5461  ;
5462  return 0;
5463}
5464_ACEOF
5465rm -f conftest.$ac_objext
5466if { (ac_try="$ac_compile"
5467case "(($ac_try" in
5468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469  *) ac_try_echo=$ac_try;;
5470esac
5471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472  (eval "$ac_compile") 2>conftest.er1
5473  ac_status=$?
5474  grep -v '^ *+' conftest.er1 >conftest.err
5475  rm -f conftest.er1
5476  cat conftest.err >&5
5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); } && {
5479	 test -z "$ac_c_werror_flag" ||
5480	 test ! -s conftest.err
5481       } && test -s conftest.$ac_objext; then
5482  ac_cv_header_stdc=yes
5483else
5484  echo "$as_me: failed program was:" >&5
5485sed 's/^/| /' conftest.$ac_ext >&5
5486
5487	ac_cv_header_stdc=no
5488fi
5489
5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491
5492if test $ac_cv_header_stdc = yes; then
5493  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5494  cat >conftest.$ac_ext <<_ACEOF
5495/* confdefs.h.  */
5496_ACEOF
5497cat confdefs.h >>conftest.$ac_ext
5498cat >>conftest.$ac_ext <<_ACEOF
5499/* end confdefs.h.  */
5500#include <string.h>
5501
5502_ACEOF
5503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5504  $EGREP "memchr" >/dev/null 2>&1; then
5505  :
5506else
5507  ac_cv_header_stdc=no
5508fi
5509rm -f conftest*
5510
5511fi
5512
5513if test $ac_cv_header_stdc = yes; then
5514  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5515  cat >conftest.$ac_ext <<_ACEOF
5516/* confdefs.h.  */
5517_ACEOF
5518cat confdefs.h >>conftest.$ac_ext
5519cat >>conftest.$ac_ext <<_ACEOF
5520/* end confdefs.h.  */
5521#include <stdlib.h>
5522
5523_ACEOF
5524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5525  $EGREP "free" >/dev/null 2>&1; then
5526  :
5527else
5528  ac_cv_header_stdc=no
5529fi
5530rm -f conftest*
5531
5532fi
5533
5534if test $ac_cv_header_stdc = yes; then
5535  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5536  if test "$cross_compiling" = yes; then
5537  :
5538else
5539  cat >conftest.$ac_ext <<_ACEOF
5540/* confdefs.h.  */
5541_ACEOF
5542cat confdefs.h >>conftest.$ac_ext
5543cat >>conftest.$ac_ext <<_ACEOF
5544/* end confdefs.h.  */
5545#include <ctype.h>
5546#include <stdlib.h>
5547#if ((' ' & 0x0FF) == 0x020)
5548# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5549# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5550#else
5551# define ISLOWER(c) \
5552		   (('a' <= (c) && (c) <= 'i') \
5553		     || ('j' <= (c) && (c) <= 'r') \
5554		     || ('s' <= (c) && (c) <= 'z'))
5555# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5556#endif
5557
5558#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5559int
5560main ()
5561{
5562  int i;
5563  for (i = 0; i < 256; i++)
5564    if (XOR (islower (i), ISLOWER (i))
5565	|| toupper (i) != TOUPPER (i))
5566      return 2;
5567  return 0;
5568}
5569_ACEOF
5570rm -f conftest$ac_exeext
5571if { (ac_try="$ac_link"
5572case "(($ac_try" in
5573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574  *) ac_try_echo=$ac_try;;
5575esac
5576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577  (eval "$ac_link") 2>&5
5578  ac_status=$?
5579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5581  { (case "(($ac_try" in
5582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583  *) ac_try_echo=$ac_try;;
5584esac
5585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586  (eval "$ac_try") 2>&5
5587  ac_status=$?
5588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589  (exit $ac_status); }; }; then
5590  :
5591else
5592  echo "$as_me: program exited with status $ac_status" >&5
5593echo "$as_me: failed program was:" >&5
5594sed 's/^/| /' conftest.$ac_ext >&5
5595
5596( exit $ac_status )
5597ac_cv_header_stdc=no
5598fi
5599rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5600fi
5601
5602
5603fi
5604fi
5605{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5606echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5607if test $ac_cv_header_stdc = yes; then
5608
5609cat >>confdefs.h <<\_ACEOF
5610#define STDC_HEADERS 1
5611_ACEOF
5612
5613fi
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630for ac_header in argz.h fcntl.h langinfo.h libintl.h limits.h locale.h malloc.h stddef.h stdio_ext.h stdlib.h string.h strings.h sys/param.h sys/timeb.h unistd.h
5631do
5632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5634  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5637  echo $ECHO_N "(cached) $ECHO_C" >&6
5638fi
5639ac_res=`eval echo '${'$as_ac_Header'}'`
5640	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5641echo "${ECHO_T}$ac_res" >&6; }
5642else
5643  # Is the header compilable?
5644{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5645echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5646cat >conftest.$ac_ext <<_ACEOF
5647/* confdefs.h.  */
5648_ACEOF
5649cat confdefs.h >>conftest.$ac_ext
5650cat >>conftest.$ac_ext <<_ACEOF
5651/* end confdefs.h.  */
5652$ac_includes_default
5653#include <$ac_header>
5654_ACEOF
5655rm -f conftest.$ac_objext
5656if { (ac_try="$ac_compile"
5657case "(($ac_try" in
5658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659  *) ac_try_echo=$ac_try;;
5660esac
5661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662  (eval "$ac_compile") 2>conftest.er1
5663  ac_status=$?
5664  grep -v '^ *+' conftest.er1 >conftest.err
5665  rm -f conftest.er1
5666  cat conftest.err >&5
5667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668  (exit $ac_status); } && {
5669	 test -z "$ac_c_werror_flag" ||
5670	 test ! -s conftest.err
5671       } && test -s conftest.$ac_objext; then
5672  ac_header_compiler=yes
5673else
5674  echo "$as_me: failed program was:" >&5
5675sed 's/^/| /' conftest.$ac_ext >&5
5676
5677	ac_header_compiler=no
5678fi
5679
5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5682echo "${ECHO_T}$ac_header_compiler" >&6; }
5683
5684# Is the header present?
5685{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5686echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5687cat >conftest.$ac_ext <<_ACEOF
5688/* confdefs.h.  */
5689_ACEOF
5690cat confdefs.h >>conftest.$ac_ext
5691cat >>conftest.$ac_ext <<_ACEOF
5692/* end confdefs.h.  */
5693#include <$ac_header>
5694_ACEOF
5695if { (ac_try="$ac_cpp conftest.$ac_ext"
5696case "(($ac_try" in
5697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698  *) ac_try_echo=$ac_try;;
5699esac
5700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5702  ac_status=$?
5703  grep -v '^ *+' conftest.er1 >conftest.err
5704  rm -f conftest.er1
5705  cat conftest.err >&5
5706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707  (exit $ac_status); } >/dev/null && {
5708	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5709	 test ! -s conftest.err
5710       }; then
5711  ac_header_preproc=yes
5712else
5713  echo "$as_me: failed program was:" >&5
5714sed 's/^/| /' conftest.$ac_ext >&5
5715
5716  ac_header_preproc=no
5717fi
5718
5719rm -f conftest.err conftest.$ac_ext
5720{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5721echo "${ECHO_T}$ac_header_preproc" >&6; }
5722
5723# So?  What about this header?
5724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5725  yes:no: )
5726    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5727echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5728    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5729echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5730    ac_header_preproc=yes
5731    ;;
5732  no:yes:* )
5733    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5734echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5735    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5736echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5737    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5738echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5739    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5740echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5741    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5742echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5743    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5744echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5745    ( cat <<\_ASBOX
5746## --------------------------------------- ##
5747## Report this to cedric.bregardis@free.fr ##
5748## --------------------------------------- ##
5749_ASBOX
5750     ) | sed "s/^/$as_me: WARNING:     /" >&2
5751    ;;
5752esac
5753{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5756  echo $ECHO_N "(cached) $ECHO_C" >&6
5757else
5758  eval "$as_ac_Header=\$ac_header_preproc"
5759fi
5760ac_res=`eval echo '${'$as_ac_Header'}'`
5761	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5762echo "${ECHO_T}$ac_res" >&6; }
5763
5764fi
5765if test `eval echo '${'$as_ac_Header'}'` = yes; then
5766  cat >>confdefs.h <<_ACEOF
5767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5768_ACEOF
5769
5770fi
5771
5772done
5773
5774
5775# Checks for typedefs, structures, and compiler characteristics.
5776{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
5777echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
5778if test "${ac_cv_header_stdbool_h+set}" = set; then
5779  echo $ECHO_N "(cached) $ECHO_C" >&6
5780else
5781  cat >conftest.$ac_ext <<_ACEOF
5782/* confdefs.h.  */
5783_ACEOF
5784cat confdefs.h >>conftest.$ac_ext
5785cat >>conftest.$ac_ext <<_ACEOF
5786/* end confdefs.h.  */
5787
5788#include <stdbool.h>
5789#ifndef bool
5790 "error: bool is not defined"
5791#endif
5792#ifndef false
5793 "error: false is not defined"
5794#endif
5795#if false
5796 "error: false is not 0"
5797#endif
5798#ifndef true
5799 "error: true is not defined"
5800#endif
5801#if true != 1
5802 "error: true is not 1"
5803#endif
5804#ifndef __bool_true_false_are_defined
5805 "error: __bool_true_false_are_defined is not defined"
5806#endif
5807
5808	struct s { _Bool s: 1; _Bool t; } s;
5809
5810	char a[true == 1 ? 1 : -1];
5811	char b[false == 0 ? 1 : -1];
5812	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5813	char d[(bool) 0.5 == true ? 1 : -1];
5814	bool e = &s;
5815	char f[(_Bool) 0.0 == false ? 1 : -1];
5816	char g[true];
5817	char h[sizeof (_Bool)];
5818	char i[sizeof s.t];
5819	enum { j = false, k = true, l = false * true, m = true * 256 };
5820	_Bool n[m];
5821	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5822	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5823#	if defined __xlc__ || defined __GNUC__
5824	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
5825	    reported by James Lemley on 2005-10-05; see
5826	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
5827	    This test is not quite right, since xlc is allowed to
5828	    reject this program, as the initializer for xlcbug is
5829	    not one of the forms that C requires support for.
5830	    However, doing the test right would require a runtime
5831	    test, and that would make cross-compilation harder.
5832	    Let us hope that IBM fixes the xlc bug, and also adds
5833	    support for this kind of constant expression.  In the
5834	    meantime, this test will reject xlc, which is OK, since
5835	    our stdbool.h substitute should suffice.  We also test
5836	    this with GCC, where it should work, to detect more
5837	    quickly whether someone messes up the test in the
5838	    future.  */
5839	 char digs[] = "0123456789";
5840	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
5841#	endif
5842	/* Catch a bug in an HP-UX C compiler.  See
5843	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5844	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5845	 */
5846	_Bool q = true;
5847	_Bool *pq = &q;
5848
5849int
5850main ()
5851{
5852
5853	*pq |= q;
5854	*pq |= ! q;
5855	/* Refer to every declared value, to avoid compiler optimizations.  */
5856	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5857		+ !m + !n + !o + !p + !q + !pq);
5858
5859  ;
5860  return 0;
5861}
5862_ACEOF
5863rm -f conftest.$ac_objext
5864if { (ac_try="$ac_compile"
5865case "(($ac_try" in
5866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867  *) ac_try_echo=$ac_try;;
5868esac
5869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870  (eval "$ac_compile") 2>conftest.er1
5871  ac_status=$?
5872  grep -v '^ *+' conftest.er1 >conftest.err
5873  rm -f conftest.er1
5874  cat conftest.err >&5
5875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876  (exit $ac_status); } && {
5877	 test -z "$ac_c_werror_flag" ||
5878	 test ! -s conftest.err
5879       } && test -s conftest.$ac_objext; then
5880  ac_cv_header_stdbool_h=yes
5881else
5882  echo "$as_me: failed program was:" >&5
5883sed 's/^/| /' conftest.$ac_ext >&5
5884
5885	ac_cv_header_stdbool_h=no
5886fi
5887
5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889fi
5890{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5891echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
5892{ echo "$as_me:$LINENO: checking for _Bool" >&5
5893echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
5894if test "${ac_cv_type__Bool+set}" = set; then
5895  echo $ECHO_N "(cached) $ECHO_C" >&6
5896else
5897  cat >conftest.$ac_ext <<_ACEOF
5898/* confdefs.h.  */
5899_ACEOF
5900cat confdefs.h >>conftest.$ac_ext
5901cat >>conftest.$ac_ext <<_ACEOF
5902/* end confdefs.h.  */
5903$ac_includes_default
5904typedef _Bool ac__type_new_;
5905int
5906main ()
5907{
5908if ((ac__type_new_ *) 0)
5909  return 0;
5910if (sizeof (ac__type_new_))
5911  return 0;
5912  ;
5913  return 0;
5914}
5915_ACEOF
5916rm -f conftest.$ac_objext
5917if { (ac_try="$ac_compile"
5918case "(($ac_try" in
5919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920  *) ac_try_echo=$ac_try;;
5921esac
5922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923  (eval "$ac_compile") 2>conftest.er1
5924  ac_status=$?
5925  grep -v '^ *+' conftest.er1 >conftest.err
5926  rm -f conftest.er1
5927  cat conftest.err >&5
5928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929  (exit $ac_status); } && {
5930	 test -z "$ac_c_werror_flag" ||
5931	 test ! -s conftest.err
5932       } && test -s conftest.$ac_objext; then
5933  ac_cv_type__Bool=yes
5934else
5935  echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938	ac_cv_type__Bool=no
5939fi
5940
5941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942fi
5943{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
5944echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
5945if test $ac_cv_type__Bool = yes; then
5946
5947cat >>confdefs.h <<_ACEOF
5948#define HAVE__BOOL 1
5949_ACEOF
5950
5951
5952fi
5953
5954if test $ac_cv_header_stdbool_h = yes; then
5955
5956cat >>confdefs.h <<\_ACEOF
5957#define HAVE_STDBOOL_H 1
5958_ACEOF
5959
5960fi
5961
5962{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5963echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5964if test "${ac_cv_c_const+set}" = set; then
5965  echo $ECHO_N "(cached) $ECHO_C" >&6
5966else
5967  cat >conftest.$ac_ext <<_ACEOF
5968/* confdefs.h.  */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
5972/* end confdefs.h.  */
5973
5974int
5975main ()
5976{
5977/* FIXME: Include the comments suggested by Paul. */
5978#ifndef __cplusplus
5979  /* Ultrix mips cc rejects this.  */
5980  typedef int charset[2];
5981  const charset cs;
5982  /* SunOS 4.1.1 cc rejects this.  */
5983  char const *const *pcpcc;
5984  char **ppc;
5985  /* NEC SVR4.0.2 mips cc rejects this.  */
5986  struct point {int x, y;};
5987  static struct point const zero = {0,0};
5988  /* AIX XL C 1.02.0.0 rejects this.
5989     It does not let you subtract one const X* pointer from another in
5990     an arm of an if-expression whose if-part is not a constant
5991     expression */
5992  const char *g = "string";
5993  pcpcc = &g + (g ? g-g : 0);
5994  /* HPUX 7.0 cc rejects these. */
5995  ++pcpcc;
5996  ppc = (char**) pcpcc;
5997  pcpcc = (char const *const *) ppc;
5998  { /* SCO 3.2v4 cc rejects this.  */
5999    char *t;
6000    char const *s = 0 ? (char *) 0 : (char const *) 0;
6001
6002    *t++ = 0;
6003    if (s) return 0;
6004  }
6005  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6006    int x[] = {25, 17};
6007    const int *foo = &x[0];
6008    ++foo;
6009  }
6010  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6011    typedef const int *iptr;
6012    iptr p = 0;
6013    ++p;
6014  }
6015  { /* AIX XL C 1.02.0.0 rejects this saying
6016       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6017    struct s { int j; const int *ap[3]; };
6018    struct s *b; b->j = 5;
6019  }
6020  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6021    const int foo = 10;
6022    if (!foo) return 0;
6023  }
6024  return !cs[0] && !zero.x;
6025#endif
6026
6027  ;
6028  return 0;
6029}
6030_ACEOF
6031rm -f conftest.$ac_objext
6032if { (ac_try="$ac_compile"
6033case "(($ac_try" in
6034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035  *) ac_try_echo=$ac_try;;
6036esac
6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038  (eval "$ac_compile") 2>conftest.er1
6039  ac_status=$?
6040  grep -v '^ *+' conftest.er1 >conftest.err
6041  rm -f conftest.er1
6042  cat conftest.err >&5
6043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044  (exit $ac_status); } && {
6045	 test -z "$ac_c_werror_flag" ||
6046	 test ! -s conftest.err
6047       } && test -s conftest.$ac_objext; then
6048  ac_cv_c_const=yes
6049else
6050  echo "$as_me: failed program was:" >&5
6051sed 's/^/| /' conftest.$ac_ext >&5
6052
6053	ac_cv_c_const=no
6054fi
6055
6056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057fi
6058{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6059echo "${ECHO_T}$ac_cv_c_const" >&6; }
6060if test $ac_cv_c_const = no; then
6061
6062cat >>confdefs.h <<\_ACEOF
6063#define const
6064_ACEOF
6065
6066fi
6067
6068{ echo "$as_me:$LINENO: checking for inline" >&5
6069echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6070if test "${ac_cv_c_inline+set}" = set; then
6071  echo $ECHO_N "(cached) $ECHO_C" >&6
6072else
6073  ac_cv_c_inline=no
6074for ac_kw in inline __inline__ __inline; do
6075  cat >conftest.$ac_ext <<_ACEOF
6076/* confdefs.h.  */
6077_ACEOF
6078cat confdefs.h >>conftest.$ac_ext
6079cat >>conftest.$ac_ext <<_ACEOF
6080/* end confdefs.h.  */
6081#ifndef __cplusplus
6082typedef int foo_t;
6083static $ac_kw foo_t static_foo () {return 0; }
6084$ac_kw foo_t foo () {return 0; }
6085#endif
6086
6087_ACEOF
6088rm -f conftest.$ac_objext
6089if { (ac_try="$ac_compile"
6090case "(($ac_try" in
6091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092  *) ac_try_echo=$ac_try;;
6093esac
6094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6095  (eval "$ac_compile") 2>conftest.er1
6096  ac_status=$?
6097  grep -v '^ *+' conftest.er1 >conftest.err
6098  rm -f conftest.er1
6099  cat conftest.err >&5
6100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101  (exit $ac_status); } && {
6102	 test -z "$ac_c_werror_flag" ||
6103	 test ! -s conftest.err
6104       } && test -s conftest.$ac_objext; then
6105  ac_cv_c_inline=$ac_kw
6106else
6107  echo "$as_me: failed program was:" >&5
6108sed 's/^/| /' conftest.$ac_ext >&5
6109
6110
6111fi
6112
6113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114  test "$ac_cv_c_inline" != no && break
6115done
6116
6117fi
6118{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6119echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6120
6121
6122case $ac_cv_c_inline in
6123  inline | yes) ;;
6124  *)
6125    case $ac_cv_c_inline in
6126      no) ac_val=;;
6127      *) ac_val=$ac_cv_c_inline;;
6128    esac
6129    cat >>confdefs.h <<_ACEOF
6130#ifndef __cplusplus
6131#define inline $ac_val
6132#endif
6133_ACEOF
6134    ;;
6135esac
6136
6137{ echo "$as_me:$LINENO: checking for size_t" >&5
6138echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6139if test "${ac_cv_type_size_t+set}" = set; then
6140  echo $ECHO_N "(cached) $ECHO_C" >&6
6141else
6142  cat >conftest.$ac_ext <<_ACEOF
6143/* confdefs.h.  */
6144_ACEOF
6145cat confdefs.h >>conftest.$ac_ext
6146cat >>conftest.$ac_ext <<_ACEOF
6147/* end confdefs.h.  */
6148$ac_includes_default
6149typedef size_t ac__type_new_;
6150int
6151main ()
6152{
6153if ((ac__type_new_ *) 0)
6154  return 0;
6155if (sizeof (ac__type_new_))
6156  return 0;
6157  ;
6158  return 0;
6159}
6160_ACEOF
6161rm -f conftest.$ac_objext
6162if { (ac_try="$ac_compile"
6163case "(($ac_try" in
6164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165  *) ac_try_echo=$ac_try;;
6166esac
6167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168  (eval "$ac_compile") 2>conftest.er1
6169  ac_status=$?
6170  grep -v '^ *+' conftest.er1 >conftest.err
6171  rm -f conftest.er1
6172  cat conftest.err >&5
6173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174  (exit $ac_status); } && {
6175	 test -z "$ac_c_werror_flag" ||
6176	 test ! -s conftest.err
6177       } && test -s conftest.$ac_objext; then
6178  ac_cv_type_size_t=yes
6179else
6180  echo "$as_me: failed program was:" >&5
6181sed 's/^/| /' conftest.$ac_ext >&5
6182
6183	ac_cv_type_size_t=no
6184fi
6185
6186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187fi
6188{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6189echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6190if test $ac_cv_type_size_t = yes; then
6191  :
6192else
6193
6194cat >>confdefs.h <<_ACEOF
6195#define size_t unsigned int
6196_ACEOF
6197
6198fi
6199
6200{ echo "$as_me:$LINENO: checking for working volatile" >&5
6201echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
6202if test "${ac_cv_c_volatile+set}" = set; then
6203  echo $ECHO_N "(cached) $ECHO_C" >&6
6204else
6205  cat >conftest.$ac_ext <<_ACEOF
6206/* confdefs.h.  */
6207_ACEOF
6208cat confdefs.h >>conftest.$ac_ext
6209cat >>conftest.$ac_ext <<_ACEOF
6210/* end confdefs.h.  */
6211
6212int
6213main ()
6214{
6215
6216volatile int x;
6217int * volatile y = (int *) 0;
6218return !x && !y;
6219  ;
6220  return 0;
6221}
6222_ACEOF
6223rm -f conftest.$ac_objext
6224if { (ac_try="$ac_compile"
6225case "(($ac_try" in
6226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227  *) ac_try_echo=$ac_try;;
6228esac
6229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230  (eval "$ac_compile") 2>conftest.er1
6231  ac_status=$?
6232  grep -v '^ *+' conftest.er1 >conftest.err
6233  rm -f conftest.er1
6234  cat conftest.err >&5
6235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236  (exit $ac_status); } && {
6237	 test -z "$ac_c_werror_flag" ||
6238	 test ! -s conftest.err
6239       } && test -s conftest.$ac_objext; then
6240  ac_cv_c_volatile=yes
6241else
6242  echo "$as_me: failed program was:" >&5
6243sed 's/^/| /' conftest.$ac_ext >&5
6244
6245	ac_cv_c_volatile=no
6246fi
6247
6248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249fi
6250{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6251echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
6252if test $ac_cv_c_volatile = no; then
6253
6254cat >>confdefs.h <<\_ACEOF
6255#define volatile
6256_ACEOF
6257
6258fi
6259
6260
6261# Checks for library functions.
6262
6263
6264for ac_header in stdlib.h
6265do
6266as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6268  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6271  echo $ECHO_N "(cached) $ECHO_C" >&6
6272fi
6273ac_res=`eval echo '${'$as_ac_Header'}'`
6274	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6275echo "${ECHO_T}$ac_res" >&6; }
6276else
6277  # Is the header compilable?
6278{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6279echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6280cat >conftest.$ac_ext <<_ACEOF
6281/* confdefs.h.  */
6282_ACEOF
6283cat confdefs.h >>conftest.$ac_ext
6284cat >>conftest.$ac_ext <<_ACEOF
6285/* end confdefs.h.  */
6286$ac_includes_default
6287#include <$ac_header>
6288_ACEOF
6289rm -f conftest.$ac_objext
6290if { (ac_try="$ac_compile"
6291case "(($ac_try" in
6292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293  *) ac_try_echo=$ac_try;;
6294esac
6295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296  (eval "$ac_compile") 2>conftest.er1
6297  ac_status=$?
6298  grep -v '^ *+' conftest.er1 >conftest.err
6299  rm -f conftest.er1
6300  cat conftest.err >&5
6301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302  (exit $ac_status); } && {
6303	 test -z "$ac_c_werror_flag" ||
6304	 test ! -s conftest.err
6305       } && test -s conftest.$ac_objext; then
6306  ac_header_compiler=yes
6307else
6308  echo "$as_me: failed program was:" >&5
6309sed 's/^/| /' conftest.$ac_ext >&5
6310
6311	ac_header_compiler=no
6312fi
6313
6314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6316echo "${ECHO_T}$ac_header_compiler" >&6; }
6317
6318# Is the header present?
6319{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6320echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6321cat >conftest.$ac_ext <<_ACEOF
6322/* confdefs.h.  */
6323_ACEOF
6324cat confdefs.h >>conftest.$ac_ext
6325cat >>conftest.$ac_ext <<_ACEOF
6326/* end confdefs.h.  */
6327#include <$ac_header>
6328_ACEOF
6329if { (ac_try="$ac_cpp conftest.$ac_ext"
6330case "(($ac_try" in
6331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332  *) ac_try_echo=$ac_try;;
6333esac
6334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6336  ac_status=$?
6337  grep -v '^ *+' conftest.er1 >conftest.err
6338  rm -f conftest.er1
6339  cat conftest.err >&5
6340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341  (exit $ac_status); } >/dev/null && {
6342	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6343	 test ! -s conftest.err
6344       }; then
6345  ac_header_preproc=yes
6346else
6347  echo "$as_me: failed program was:" >&5
6348sed 's/^/| /' conftest.$ac_ext >&5
6349
6350  ac_header_preproc=no
6351fi
6352
6353rm -f conftest.err conftest.$ac_ext
6354{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6355echo "${ECHO_T}$ac_header_preproc" >&6; }
6356
6357# So?  What about this header?
6358case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6359  yes:no: )
6360    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6361echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6362    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6363echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6364    ac_header_preproc=yes
6365    ;;
6366  no:yes:* )
6367    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6368echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6369    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6370echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6371    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6372echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6373    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6374echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6375    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6376echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6377    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6378echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6379    ( cat <<\_ASBOX
6380## --------------------------------------- ##
6381## Report this to cedric.bregardis@free.fr ##
6382## --------------------------------------- ##
6383_ASBOX
6384     ) | sed "s/^/$as_me: WARNING:     /" >&2
6385    ;;
6386esac
6387{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6390  echo $ECHO_N "(cached) $ECHO_C" >&6
6391else
6392  eval "$as_ac_Header=\$ac_header_preproc"
6393fi
6394ac_res=`eval echo '${'$as_ac_Header'}'`
6395	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6396echo "${ECHO_T}$ac_res" >&6; }
6397
6398fi
6399if test `eval echo '${'$as_ac_Header'}'` = yes; then
6400  cat >>confdefs.h <<_ACEOF
6401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6402_ACEOF
6403
6404fi
6405
6406done
6407
6408{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6409echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
6410if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6411  echo $ECHO_N "(cached) $ECHO_C" >&6
6412else
6413  if test "$cross_compiling" = yes; then
6414  ac_cv_func_malloc_0_nonnull=no
6415else
6416  cat >conftest.$ac_ext <<_ACEOF
6417/* confdefs.h.  */
6418_ACEOF
6419cat confdefs.h >>conftest.$ac_ext
6420cat >>conftest.$ac_ext <<_ACEOF
6421/* end confdefs.h.  */
6422#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6423# include <stdlib.h>
6424#else
6425char *malloc ();
6426#endif
6427
6428int
6429main ()
6430{
6431return ! malloc (0);
6432  ;
6433  return 0;
6434}
6435_ACEOF
6436rm -f conftest$ac_exeext
6437if { (ac_try="$ac_link"
6438case "(($ac_try" in
6439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440  *) ac_try_echo=$ac_try;;
6441esac
6442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443  (eval "$ac_link") 2>&5
6444  ac_status=$?
6445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6447  { (case "(($ac_try" in
6448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449  *) ac_try_echo=$ac_try;;
6450esac
6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452  (eval "$ac_try") 2>&5
6453  ac_status=$?
6454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455  (exit $ac_status); }; }; then
6456  ac_cv_func_malloc_0_nonnull=yes
6457else
6458  echo "$as_me: program exited with status $ac_status" >&5
6459echo "$as_me: failed program was:" >&5
6460sed 's/^/| /' conftest.$ac_ext >&5
6461
6462( exit $ac_status )
6463ac_cv_func_malloc_0_nonnull=no
6464fi
6465rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6466fi
6467
6468
6469fi
6470{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6471echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
6472if test $ac_cv_func_malloc_0_nonnull = yes; then
6473
6474cat >>confdefs.h <<\_ACEOF
6475#define HAVE_MALLOC 1
6476_ACEOF
6477
6478else
6479  cat >>confdefs.h <<\_ACEOF
6480#define HAVE_MALLOC 0
6481_ACEOF
6482
6483   case " $LIBOBJS " in
6484  *" malloc.$ac_objext "* ) ;;
6485  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6486 ;;
6487esac
6488
6489
6490cat >>confdefs.h <<\_ACEOF
6491#define malloc rpl_malloc
6492_ACEOF
6493
6494fi
6495
6496
6497
6498
6499
6500for ac_header in stdlib.h unistd.h
6501do
6502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6504  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6507  echo $ECHO_N "(cached) $ECHO_C" >&6
6508fi
6509ac_res=`eval echo '${'$as_ac_Header'}'`
6510	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6511echo "${ECHO_T}$ac_res" >&6; }
6512else
6513  # Is the header compilable?
6514{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6515echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6516cat >conftest.$ac_ext <<_ACEOF
6517/* confdefs.h.  */
6518_ACEOF
6519cat confdefs.h >>conftest.$ac_ext
6520cat >>conftest.$ac_ext <<_ACEOF
6521/* end confdefs.h.  */
6522$ac_includes_default
6523#include <$ac_header>
6524_ACEOF
6525rm -f conftest.$ac_objext
6526if { (ac_try="$ac_compile"
6527case "(($ac_try" in
6528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529  *) ac_try_echo=$ac_try;;
6530esac
6531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532  (eval "$ac_compile") 2>conftest.er1
6533  ac_status=$?
6534  grep -v '^ *+' conftest.er1 >conftest.err
6535  rm -f conftest.er1
6536  cat conftest.err >&5
6537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538  (exit $ac_status); } && {
6539	 test -z "$ac_c_werror_flag" ||
6540	 test ! -s conftest.err
6541       } && test -s conftest.$ac_objext; then
6542  ac_header_compiler=yes
6543else
6544  echo "$as_me: failed program was:" >&5
6545sed 's/^/| /' conftest.$ac_ext >&5
6546
6547	ac_header_compiler=no
6548fi
6549
6550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6552echo "${ECHO_T}$ac_header_compiler" >&6; }
6553
6554# Is the header present?
6555{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6556echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6557cat >conftest.$ac_ext <<_ACEOF
6558/* confdefs.h.  */
6559_ACEOF
6560cat confdefs.h >>conftest.$ac_ext
6561cat >>conftest.$ac_ext <<_ACEOF
6562/* end confdefs.h.  */
6563#include <$ac_header>
6564_ACEOF
6565if { (ac_try="$ac_cpp conftest.$ac_ext"
6566case "(($ac_try" in
6567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568  *) ac_try_echo=$ac_try;;
6569esac
6570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6572  ac_status=$?
6573  grep -v '^ *+' conftest.er1 >conftest.err
6574  rm -f conftest.er1
6575  cat conftest.err >&5
6576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577  (exit $ac_status); } >/dev/null && {
6578	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6579	 test ! -s conftest.err
6580       }; then
6581  ac_header_preproc=yes
6582else
6583  echo "$as_me: failed program was:" >&5
6584sed 's/^/| /' conftest.$ac_ext >&5
6585
6586  ac_header_preproc=no
6587fi
6588
6589rm -f conftest.err conftest.$ac_ext
6590{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6591echo "${ECHO_T}$ac_header_preproc" >&6; }
6592
6593# So?  What about this header?
6594case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6595  yes:no: )
6596    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6597echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6598    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6599echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6600    ac_header_preproc=yes
6601    ;;
6602  no:yes:* )
6603    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6604echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6605    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6606echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6607    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6608echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6609    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6610echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6611    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6612echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6613    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6614echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6615    ( cat <<\_ASBOX
6616## --------------------------------------- ##
6617## Report this to cedric.bregardis@free.fr ##
6618## --------------------------------------- ##
6619_ASBOX
6620     ) | sed "s/^/$as_me: WARNING:     /" >&2
6621    ;;
6622esac
6623{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6625if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6626  echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
6628  eval "$as_ac_Header=\$ac_header_preproc"
6629fi
6630ac_res=`eval echo '${'$as_ac_Header'}'`
6631	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6632echo "${ECHO_T}$ac_res" >&6; }
6633
6634fi
6635if test `eval echo '${'$as_ac_Header'}'` = yes; then
6636  cat >>confdefs.h <<_ACEOF
6637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6638_ACEOF
6639
6640fi
6641
6642done
6643
6644
6645for ac_func in getpagesize
6646do
6647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6648{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6650if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6651  echo $ECHO_N "(cached) $ECHO_C" >&6
6652else
6653  cat >conftest.$ac_ext <<_ACEOF
6654/* confdefs.h.  */
6655_ACEOF
6656cat confdefs.h >>conftest.$ac_ext
6657cat >>conftest.$ac_ext <<_ACEOF
6658/* end confdefs.h.  */
6659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6660   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6661#define $ac_func innocuous_$ac_func
6662
6663/* System header to define __stub macros and hopefully few prototypes,
6664    which can conflict with char $ac_func (); below.
6665    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6666    <limits.h> exists even on freestanding compilers.  */
6667
6668#ifdef __STDC__
6669# include <limits.h>
6670#else
6671# include <assert.h>
6672#endif
6673
6674#undef $ac_func
6675
6676/* Override any GCC internal prototype to avoid an error.
6677   Use char because int might match the return type of a GCC
6678   builtin and then its argument prototype would still apply.  */
6679#ifdef __cplusplus
6680extern "C"
6681#endif
6682char $ac_func ();
6683/* The GNU C library defines this for functions which it implements
6684    to always fail with ENOSYS.  Some functions are actually named
6685    something starting with __ and the normal name is an alias.  */
6686#if defined __stub_$ac_func || defined __stub___$ac_func
6687choke me
6688#endif
6689
6690int
6691main ()
6692{
6693return $ac_func ();
6694  ;
6695  return 0;
6696}
6697_ACEOF
6698rm -f conftest.$ac_objext conftest$ac_exeext
6699if { (ac_try="$ac_link"
6700case "(($ac_try" in
6701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702  *) ac_try_echo=$ac_try;;
6703esac
6704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705  (eval "$ac_link") 2>conftest.er1
6706  ac_status=$?
6707  grep -v '^ *+' conftest.er1 >conftest.err
6708  rm -f conftest.er1
6709  cat conftest.err >&5
6710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711  (exit $ac_status); } && {
6712	 test -z "$ac_c_werror_flag" ||
6713	 test ! -s conftest.err
6714       } && test -s conftest$ac_exeext &&
6715       $as_test_x conftest$ac_exeext; then
6716  eval "$as_ac_var=yes"
6717else
6718  echo "$as_me: failed program was:" >&5
6719sed 's/^/| /' conftest.$ac_ext >&5
6720
6721	eval "$as_ac_var=no"
6722fi
6723
6724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6725      conftest$ac_exeext conftest.$ac_ext
6726fi
6727ac_res=`eval echo '${'$as_ac_var'}'`
6728	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6729echo "${ECHO_T}$ac_res" >&6; }
6730if test `eval echo '${'$as_ac_var'}'` = yes; then
6731  cat >>confdefs.h <<_ACEOF
6732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6733_ACEOF
6734
6735fi
6736done
6737
6738{ echo "$as_me:$LINENO: checking for working mmap" >&5
6739echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6740if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6741  echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743  if test "$cross_compiling" = yes; then
6744  ac_cv_func_mmap_fixed_mapped=no
6745else
6746  cat >conftest.$ac_ext <<_ACEOF
6747/* confdefs.h.  */
6748_ACEOF
6749cat confdefs.h >>conftest.$ac_ext
6750cat >>conftest.$ac_ext <<_ACEOF
6751/* end confdefs.h.  */
6752$ac_includes_default
6753/* malloc might have been renamed as rpl_malloc. */
6754#undef malloc
6755
6756/* Thanks to Mike Haertel and Jim Avera for this test.
6757   Here is a matrix of mmap possibilities:
6758	mmap private not fixed
6759	mmap private fixed at somewhere currently unmapped
6760	mmap private fixed at somewhere already mapped
6761	mmap shared not fixed
6762	mmap shared fixed at somewhere currently unmapped
6763	mmap shared fixed at somewhere already mapped
6764   For private mappings, we should verify that changes cannot be read()
6765   back from the file, nor mmap's back from the file at a different
6766   address.  (There have been systems where private was not correctly
6767   implemented like the infamous i386 svr4.0, and systems where the
6768   VM page cache was not coherent with the file system buffer cache
6769   like early versions of FreeBSD and possibly contemporary NetBSD.)
6770   For shared mappings, we should conversely verify that changes get
6771   propagated back to all the places they're supposed to be.
6772
6773   Grep wants private fixed already mapped.
6774   The main things grep needs to know about mmap are:
6775   * does it exist and is it safe to write into the mmap'd area
6776   * how to use it (BSD variants)  */
6777
6778#include <fcntl.h>
6779#include <sys/mman.h>
6780
6781#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6782char *malloc ();
6783#endif
6784
6785/* This mess was copied from the GNU getpagesize.h.  */
6786#ifndef HAVE_GETPAGESIZE
6787/* Assume that all systems that can run configure have sys/param.h.  */
6788# ifndef HAVE_SYS_PARAM_H
6789#  define HAVE_SYS_PARAM_H 1
6790# endif
6791
6792# ifdef _SC_PAGESIZE
6793#  define getpagesize() sysconf(_SC_PAGESIZE)
6794# else /* no _SC_PAGESIZE */
6795#  ifdef HAVE_SYS_PARAM_H
6796#   include <sys/param.h>
6797#   ifdef EXEC_PAGESIZE
6798#    define getpagesize() EXEC_PAGESIZE
6799#   else /* no EXEC_PAGESIZE */
6800#    ifdef NBPG
6801#     define getpagesize() NBPG * CLSIZE
6802#     ifndef CLSIZE
6803#      define CLSIZE 1
6804#     endif /* no CLSIZE */
6805#    else /* no NBPG */
6806#     ifdef NBPC
6807#      define getpagesize() NBPC
6808#     else /* no NBPC */
6809#      ifdef PAGESIZE
6810#       define getpagesize() PAGESIZE
6811#      endif /* PAGESIZE */
6812#     endif /* no NBPC */
6813#    endif /* no NBPG */
6814#   endif /* no EXEC_PAGESIZE */
6815#  else /* no HAVE_SYS_PARAM_H */
6816#   define getpagesize() 8192	/* punt totally */
6817#  endif /* no HAVE_SYS_PARAM_H */
6818# endif /* no _SC_PAGESIZE */
6819
6820#endif /* no HAVE_GETPAGESIZE */
6821
6822int
6823main ()
6824{
6825  char *data, *data2, *data3;
6826  int i, pagesize;
6827  int fd;
6828
6829  pagesize = getpagesize ();
6830
6831  /* First, make a file with some known garbage in it. */
6832  data = (char *) malloc (pagesize);
6833  if (!data)
6834    return 1;
6835  for (i = 0; i < pagesize; ++i)
6836    *(data + i) = rand ();
6837  umask (0);
6838  fd = creat ("conftest.mmap", 0600);
6839  if (fd < 0)
6840    return 1;
6841  if (write (fd, data, pagesize) != pagesize)
6842    return 1;
6843  close (fd);
6844
6845  /* Next, try to mmap the file at a fixed address which already has
6846     something else allocated at it.  If we can, also make sure that
6847     we see the same garbage.  */
6848  fd = open ("conftest.mmap", O_RDWR);
6849  if (fd < 0)
6850    return 1;
6851  data2 = (char *) malloc (2 * pagesize);
6852  if (!data2)
6853    return 1;
6854  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6855  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6856		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
6857    return 1;
6858  for (i = 0; i < pagesize; ++i)
6859    if (*(data + i) != *(data2 + i))
6860      return 1;
6861
6862  /* Finally, make sure that changes to the mapped area do not
6863     percolate back to the file as seen by read().  (This is a bug on
6864     some variants of i386 svr4.0.)  */
6865  for (i = 0; i < pagesize; ++i)
6866    *(data2 + i) = *(data2 + i) + 1;
6867  data3 = (char *) malloc (pagesize);
6868  if (!data3)
6869    return 1;
6870  if (read (fd, data3, pagesize) != pagesize)
6871    return 1;
6872  for (i = 0; i < pagesize; ++i)
6873    if (*(data + i) != *(data3 + i))
6874      return 1;
6875  close (fd);
6876  return 0;
6877}
6878_ACEOF
6879rm -f conftest$ac_exeext
6880if { (ac_try="$ac_link"
6881case "(($ac_try" in
6882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883  *) ac_try_echo=$ac_try;;
6884esac
6885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6886  (eval "$ac_link") 2>&5
6887  ac_status=$?
6888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6890  { (case "(($ac_try" in
6891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892  *) ac_try_echo=$ac_try;;
6893esac
6894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895  (eval "$ac_try") 2>&5
6896  ac_status=$?
6897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898  (exit $ac_status); }; }; then
6899  ac_cv_func_mmap_fixed_mapped=yes
6900else
6901  echo "$as_me: program exited with status $ac_status" >&5
6902echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
6904
6905( exit $ac_status )
6906ac_cv_func_mmap_fixed_mapped=no
6907fi
6908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6909fi
6910
6911
6912fi
6913{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6914echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6915if test $ac_cv_func_mmap_fixed_mapped = yes; then
6916
6917cat >>confdefs.h <<\_ACEOF
6918#define HAVE_MMAP 1
6919_ACEOF
6920
6921fi
6922rm -f conftest.mmap
6923
6924
6925for ac_header in stdlib.h
6926do
6927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6929  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6931if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6932  echo $ECHO_N "(cached) $ECHO_C" >&6
6933fi
6934ac_res=`eval echo '${'$as_ac_Header'}'`
6935	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6936echo "${ECHO_T}$ac_res" >&6; }
6937else
6938  # Is the header compilable?
6939{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6940echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6941cat >conftest.$ac_ext <<_ACEOF
6942/* confdefs.h.  */
6943_ACEOF
6944cat confdefs.h >>conftest.$ac_ext
6945cat >>conftest.$ac_ext <<_ACEOF
6946/* end confdefs.h.  */
6947$ac_includes_default
6948#include <$ac_header>
6949_ACEOF
6950rm -f conftest.$ac_objext
6951if { (ac_try="$ac_compile"
6952case "(($ac_try" in
6953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954  *) ac_try_echo=$ac_try;;
6955esac
6956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957  (eval "$ac_compile") 2>conftest.er1
6958  ac_status=$?
6959  grep -v '^ *+' conftest.er1 >conftest.err
6960  rm -f conftest.er1
6961  cat conftest.err >&5
6962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963  (exit $ac_status); } && {
6964	 test -z "$ac_c_werror_flag" ||
6965	 test ! -s conftest.err
6966       } && test -s conftest.$ac_objext; then
6967  ac_header_compiler=yes
6968else
6969  echo "$as_me: failed program was:" >&5
6970sed 's/^/| /' conftest.$ac_ext >&5
6971
6972	ac_header_compiler=no
6973fi
6974
6975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6977echo "${ECHO_T}$ac_header_compiler" >&6; }
6978
6979# Is the header present?
6980{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6981echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6982cat >conftest.$ac_ext <<_ACEOF
6983/* confdefs.h.  */
6984_ACEOF
6985cat confdefs.h >>conftest.$ac_ext
6986cat >>conftest.$ac_ext <<_ACEOF
6987/* end confdefs.h.  */
6988#include <$ac_header>
6989_ACEOF
6990if { (ac_try="$ac_cpp conftest.$ac_ext"
6991case "(($ac_try" in
6992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993  *) ac_try_echo=$ac_try;;
6994esac
6995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6996  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6997  ac_status=$?
6998  grep -v '^ *+' conftest.er1 >conftest.err
6999  rm -f conftest.er1
7000  cat conftest.err >&5
7001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002  (exit $ac_status); } >/dev/null && {
7003	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7004	 test ! -s conftest.err
7005       }; then
7006  ac_header_preproc=yes
7007else
7008  echo "$as_me: failed program was:" >&5
7009sed 's/^/| /' conftest.$ac_ext >&5
7010
7011  ac_header_preproc=no
7012fi
7013
7014rm -f conftest.err conftest.$ac_ext
7015{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7016echo "${ECHO_T}$ac_header_preproc" >&6; }
7017
7018# So?  What about this header?
7019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7020  yes:no: )
7021    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7022echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7023    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7024echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7025    ac_header_preproc=yes
7026    ;;
7027  no:yes:* )
7028    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7029echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7030    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7031echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7032    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7033echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7034    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7035echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7036    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7037echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7038    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7039echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7040    ( cat <<\_ASBOX
7041## --------------------------------------- ##
7042## Report this to cedric.bregardis@free.fr ##
7043## --------------------------------------- ##
7044_ASBOX
7045     ) | sed "s/^/$as_me: WARNING:     /" >&2
7046    ;;
7047esac
7048{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7051  echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053  eval "$as_ac_Header=\$ac_header_preproc"
7054fi
7055ac_res=`eval echo '${'$as_ac_Header'}'`
7056	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7057echo "${ECHO_T}$ac_res" >&6; }
7058
7059fi
7060if test `eval echo '${'$as_ac_Header'}'` = yes; then
7061  cat >>confdefs.h <<_ACEOF
7062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7063_ACEOF
7064
7065fi
7066
7067done
7068
7069{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
7070echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
7071if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
7072  echo $ECHO_N "(cached) $ECHO_C" >&6
7073else
7074  if test "$cross_compiling" = yes; then
7075  ac_cv_func_realloc_0_nonnull=no
7076else
7077  cat >conftest.$ac_ext <<_ACEOF
7078/* confdefs.h.  */
7079_ACEOF
7080cat confdefs.h >>conftest.$ac_ext
7081cat >>conftest.$ac_ext <<_ACEOF
7082/* end confdefs.h.  */
7083#if defined STDC_HEADERS || defined HAVE_STDLIB_H
7084# include <stdlib.h>
7085#else
7086char *realloc ();
7087#endif
7088
7089int
7090main ()
7091{
7092return ! realloc (0, 0);
7093  ;
7094  return 0;
7095}
7096_ACEOF
7097rm -f conftest$ac_exeext
7098if { (ac_try="$ac_link"
7099case "(($ac_try" in
7100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101  *) ac_try_echo=$ac_try;;
7102esac
7103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104  (eval "$ac_link") 2>&5
7105  ac_status=$?
7106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7108  { (case "(($ac_try" in
7109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110  *) ac_try_echo=$ac_try;;
7111esac
7112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7113  (eval "$ac_try") 2>&5
7114  ac_status=$?
7115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116  (exit $ac_status); }; }; then
7117  ac_cv_func_realloc_0_nonnull=yes
7118else
7119  echo "$as_me: program exited with status $ac_status" >&5
7120echo "$as_me: failed program was:" >&5
7121sed 's/^/| /' conftest.$ac_ext >&5
7122
7123( exit $ac_status )
7124ac_cv_func_realloc_0_nonnull=no
7125fi
7126rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7127fi
7128
7129
7130fi
7131{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
7132echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
7133if test $ac_cv_func_realloc_0_nonnull = yes; then
7134
7135cat >>confdefs.h <<\_ACEOF
7136#define HAVE_REALLOC 1
7137_ACEOF
7138
7139else
7140  cat >>confdefs.h <<\_ACEOF
7141#define HAVE_REALLOC 0
7142_ACEOF
7143
7144   case " $LIBOBJS " in
7145  *" realloc.$ac_objext "* ) ;;
7146  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
7147 ;;
7148esac
7149
7150
7151cat >>confdefs.h <<\_ACEOF
7152#define realloc rpl_realloc
7153_ACEOF
7154
7155fi
7156
7157
7158
7159{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7160echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
7161if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7162  echo $ECHO_N "(cached) $ECHO_C" >&6
7163else
7164  rm -f conftest.sym conftest.file
7165echo >conftest.file
7166if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7167  if test "$cross_compiling" = yes; then
7168  ac_cv_func_lstat_dereferences_slashed_symlink=no
7169else
7170  cat >conftest.$ac_ext <<_ACEOF
7171/* confdefs.h.  */
7172_ACEOF
7173cat confdefs.h >>conftest.$ac_ext
7174cat >>conftest.$ac_ext <<_ACEOF
7175/* end confdefs.h.  */
7176$ac_includes_default
7177int
7178main ()
7179{
7180struct stat sbuf;
7181     /* Linux will dereference the symlink and fail.
7182	That is better in the sense that it means we will not
7183	have to compile and use the lstat wrapper.  */
7184     return lstat ("conftest.sym/", &sbuf) == 0;
7185  ;
7186  return 0;
7187}
7188_ACEOF
7189rm -f conftest$ac_exeext
7190if { (ac_try="$ac_link"
7191case "(($ac_try" in
7192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193  *) ac_try_echo=$ac_try;;
7194esac
7195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7196  (eval "$ac_link") 2>&5
7197  ac_status=$?
7198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7200  { (case "(($ac_try" in
7201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202  *) ac_try_echo=$ac_try;;
7203esac
7204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205  (eval "$ac_try") 2>&5
7206  ac_status=$?
7207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208  (exit $ac_status); }; }; then
7209  ac_cv_func_lstat_dereferences_slashed_symlink=yes
7210else
7211  echo "$as_me: program exited with status $ac_status" >&5
7212echo "$as_me: failed program was:" >&5
7213sed 's/^/| /' conftest.$ac_ext >&5
7214
7215( exit $ac_status )
7216ac_cv_func_lstat_dereferences_slashed_symlink=no
7217fi
7218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7219fi
7220
7221
7222else
7223  # If the `ln -s' command failed, then we probably don't even
7224  # have an lstat function.
7225  ac_cv_func_lstat_dereferences_slashed_symlink=no
7226fi
7227rm -f conftest.sym conftest.file
7228
7229fi
7230{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7231echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7232
7233test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7234
7235cat >>confdefs.h <<_ACEOF
7236#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7237_ACEOF
7238
7239
7240if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7241  case " $LIBOBJS " in
7242  *" lstat.$ac_objext "* ) ;;
7243  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7244 ;;
7245esac
7246
7247fi
7248
7249{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7250echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
7251if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
7252  echo $ECHO_N "(cached) $ECHO_C" >&6
7253else
7254  if test "$cross_compiling" = yes; then
7255  ac_cv_func_stat_empty_string_bug=yes
7256else
7257  cat >conftest.$ac_ext <<_ACEOF
7258/* confdefs.h.  */
7259_ACEOF
7260cat confdefs.h >>conftest.$ac_ext
7261cat >>conftest.$ac_ext <<_ACEOF
7262/* end confdefs.h.  */
7263$ac_includes_default
7264int
7265main ()
7266{
7267struct stat sbuf;
7268  return stat ("", &sbuf) == 0;
7269  ;
7270  return 0;
7271}
7272_ACEOF
7273rm -f conftest$ac_exeext
7274if { (ac_try="$ac_link"
7275case "(($ac_try" in
7276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277  *) ac_try_echo=$ac_try;;
7278esac
7279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280  (eval "$ac_link") 2>&5
7281  ac_status=$?
7282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7284  { (case "(($ac_try" in
7285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7286  *) ac_try_echo=$ac_try;;
7287esac
7288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7289  (eval "$ac_try") 2>&5
7290  ac_status=$?
7291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292  (exit $ac_status); }; }; then
7293  ac_cv_func_stat_empty_string_bug=no
7294else
7295  echo "$as_me: program exited with status $ac_status" >&5
7296echo "$as_me: failed program was:" >&5
7297sed 's/^/| /' conftest.$ac_ext >&5
7298
7299( exit $ac_status )
7300ac_cv_func_stat_empty_string_bug=yes
7301fi
7302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7303fi
7304
7305
7306fi
7307{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7308echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
7309if test $ac_cv_func_stat_empty_string_bug = yes; then
7310  case " $LIBOBJS " in
7311  *" stat.$ac_objext "* ) ;;
7312  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7313 ;;
7314esac
7315
7316
7317cat >>confdefs.h <<_ACEOF
7318#define HAVE_STAT_EMPTY_STRING_BUG 1
7319_ACEOF
7320
7321fi
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341for ac_func in __argz_count __argz_next __argz_stringify getcwd mempcpy mkdir munmap nl_langinfo pow setlocale sqrt stpcpy strcasecmp strchr strcspn strdup strstr strtoul
7342do
7343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7344{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7346if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7347  echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349  cat >conftest.$ac_ext <<_ACEOF
7350/* confdefs.h.  */
7351_ACEOF
7352cat confdefs.h >>conftest.$ac_ext
7353cat >>conftest.$ac_ext <<_ACEOF
7354/* end confdefs.h.  */
7355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7356   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7357#define $ac_func innocuous_$ac_func
7358
7359/* System header to define __stub macros and hopefully few prototypes,
7360    which can conflict with char $ac_func (); below.
7361    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7362    <limits.h> exists even on freestanding compilers.  */
7363
7364#ifdef __STDC__
7365# include <limits.h>
7366#else
7367# include <assert.h>
7368#endif
7369
7370#undef $ac_func
7371
7372/* Override any GCC internal prototype to avoid an error.
7373   Use char because int might match the return type of a GCC
7374   builtin and then its argument prototype would still apply.  */
7375#ifdef __cplusplus
7376extern "C"
7377#endif
7378char $ac_func ();
7379/* The GNU C library defines this for functions which it implements
7380    to always fail with ENOSYS.  Some functions are actually named
7381    something starting with __ and the normal name is an alias.  */
7382#if defined __stub_$ac_func || defined __stub___$ac_func
7383choke me
7384#endif
7385
7386int
7387main ()
7388{
7389return $ac_func ();
7390  ;
7391  return 0;
7392}
7393_ACEOF
7394rm -f conftest.$ac_objext conftest$ac_exeext
7395if { (ac_try="$ac_link"
7396case "(($ac_try" in
7397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398  *) ac_try_echo=$ac_try;;
7399esac
7400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401  (eval "$ac_link") 2>conftest.er1
7402  ac_status=$?
7403  grep -v '^ *+' conftest.er1 >conftest.err
7404  rm -f conftest.er1
7405  cat conftest.err >&5
7406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407  (exit $ac_status); } && {
7408	 test -z "$ac_c_werror_flag" ||
7409	 test ! -s conftest.err
7410       } && test -s conftest$ac_exeext &&
7411       $as_test_x conftest$ac_exeext; then
7412  eval "$as_ac_var=yes"
7413else
7414  echo "$as_me: failed program was:" >&5
7415sed 's/^/| /' conftest.$ac_ext >&5
7416
7417	eval "$as_ac_var=no"
7418fi
7419
7420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7421      conftest$ac_exeext conftest.$ac_ext
7422fi
7423ac_res=`eval echo '${'$as_ac_var'}'`
7424	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7425echo "${ECHO_T}$ac_res" >&6; }
7426if test `eval echo '${'$as_ac_var'}'` = yes; then
7427  cat >>confdefs.h <<_ACEOF
7428#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7429_ACEOF
7430
7431fi
7432done
7433
7434
7435
7436# Extract the first word of "freetype-config", so it can be a program name with args.
7437set dummy freetype-config; ac_word=$2
7438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7440if test "${ac_cv_path_freetypeconfig+set}" = set; then
7441  echo $ECHO_N "(cached) $ECHO_C" >&6
7442else
7443  case $freetypeconfig in
7444  [\\/]* | ?:[\\/]*)
7445  ac_cv_path_freetypeconfig="$freetypeconfig" # Let the user override the test with a path.
7446  ;;
7447  *)
7448  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449as_dummy="$prefix/bin:$PATH"
7450for as_dir in $as_dummy
7451do
7452  IFS=$as_save_IFS
7453  test -z "$as_dir" && as_dir=.
7454  for ac_exec_ext in '' $ac_executable_extensions; do
7455  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456    ac_cv_path_freetypeconfig="$as_dir/$ac_word$ac_exec_ext"
7457    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458    break 2
7459  fi
7460done
7461done
7462IFS=$as_save_IFS
7463
7464  ;;
7465esac
7466fi
7467freetypeconfig=$ac_cv_path_freetypeconfig
7468if test -n "$freetypeconfig"; then
7469  { echo "$as_me:$LINENO: result: $freetypeconfig" >&5
7470echo "${ECHO_T}$freetypeconfig" >&6; }
7471else
7472  { echo "$as_me:$LINENO: result: no" >&5
7473echo "${ECHO_T}no" >&6; }
7474fi
7475
7476
7477if test "x$freetypeconfig" = "x"
7478then
7479     echo "freetype-config not found"
7480else
7481     echo "freetype-config found"
7482     CXXFLAGS="$CXXFLAGS `$freetypeconfig --cflags`"
7483     LIBS="$LIBS `$freetypeconfig --libs`"
7484fi
7485
7486# Extract the first word of "libpng-config", so it can be a program name with args.
7487set dummy libpng-config; ac_word=$2
7488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490if test "${ac_cv_path_pngconfig+set}" = set; then
7491  echo $ECHO_N "(cached) $ECHO_C" >&6
7492else
7493  case $pngconfig in
7494  [\\/]* | ?:[\\/]*)
7495  ac_cv_path_pngconfig="$pngconfig" # Let the user override the test with a path.
7496  ;;
7497  *)
7498  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499as_dummy="$prefix/bin:$PATH"
7500for as_dir in $as_dummy
7501do
7502  IFS=$as_save_IFS
7503  test -z "$as_dir" && as_dir=.
7504  for ac_exec_ext in '' $ac_executable_extensions; do
7505  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7506    ac_cv_path_pngconfig="$as_dir/$ac_word$ac_exec_ext"
7507    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7508    break 2
7509  fi
7510done
7511done
7512IFS=$as_save_IFS
7513
7514  ;;
7515esac
7516fi
7517pngconfig=$ac_cv_path_pngconfig
7518if test -n "$pngconfig"; then
7519  { echo "$as_me:$LINENO: result: $pngconfig" >&5
7520echo "${ECHO_T}$pngconfig" >&6; }
7521else
7522  { echo "$as_me:$LINENO: result: no" >&5
7523echo "${ECHO_T}no" >&6; }
7524fi
7525
7526
7527if test "x$pngconfig" = "x"
7528then
7529     echo "libpng-config not found. We search for libpng manually"
7530
7531{ echo "$as_me:$LINENO: checking for png_access_version_number in -lpng" >&5
7532echo $ECHO_N "checking for png_access_version_number in -lpng... $ECHO_C" >&6; }
7533if test "${ac_cv_lib_png_png_access_version_number+set}" = set; then
7534  echo $ECHO_N "(cached) $ECHO_C" >&6
7535else
7536  ac_check_lib_save_LIBS=$LIBS
7537LIBS="-lpng -lm -lz $LIBS"
7538cat >conftest.$ac_ext <<_ACEOF
7539/* confdefs.h.  */
7540_ACEOF
7541cat confdefs.h >>conftest.$ac_ext
7542cat >>conftest.$ac_ext <<_ACEOF
7543/* end confdefs.h.  */
7544
7545/* Override any GCC internal prototype to avoid an error.
7546   Use char because int might match the return type of a GCC
7547   builtin and then its argument prototype would still apply.  */
7548#ifdef __cplusplus
7549extern "C"
7550#endif
7551char png_access_version_number ();
7552int
7553main ()
7554{
7555return png_access_version_number ();
7556  ;
7557  return 0;
7558}
7559_ACEOF
7560rm -f conftest.$ac_objext conftest$ac_exeext
7561if { (ac_try="$ac_link"
7562case "(($ac_try" in
7563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564  *) ac_try_echo=$ac_try;;
7565esac
7566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7567  (eval "$ac_link") 2>conftest.er1
7568  ac_status=$?
7569  grep -v '^ *+' conftest.er1 >conftest.err
7570  rm -f conftest.er1
7571  cat conftest.err >&5
7572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573  (exit $ac_status); } && {
7574	 test -z "$ac_c_werror_flag" ||
7575	 test ! -s conftest.err
7576       } && test -s conftest$ac_exeext &&
7577       $as_test_x conftest$ac_exeext; then
7578  ac_cv_lib_png_png_access_version_number=yes
7579else
7580  echo "$as_me: failed program was:" >&5
7581sed 's/^/| /' conftest.$ac_ext >&5
7582
7583	ac_cv_lib_png_png_access_version_number=no
7584fi
7585
7586rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7587      conftest$ac_exeext conftest.$ac_ext
7588LIBS=$ac_check_lib_save_LIBS
7589fi
7590{ echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_access_version_number" >&5
7591echo "${ECHO_T}$ac_cv_lib_png_png_access_version_number" >&6; }
7592if test $ac_cv_lib_png_png_access_version_number = yes; then
7593  cat >>confdefs.h <<_ACEOF
7594#define HAVE_LIBPNG 1
7595_ACEOF
7596
7597  LIBS="-lpng $LIBS"
7598
7599else
7600  { { echo "$as_me:$LINENO: error: *** You need libpng" >&5
7601echo "$as_me: error: *** You need libpng" >&2;}
7602   { (exit 1); exit 1; }; }
7603fi
7604
7605     LIBS="$LIBS -lpng -lz"
7606else
7607     CXXFLAGS="$CXXFLAGS `$pngconfig --cppflags` `libpng-config --cflags`"
7608     LIBS="$LIBS `$pngconfig --ldflags` `$pngconfig --libs`"
7609fi
7610
7611
7612SDL_VERSION=1.2.4
7613
7614# Check whether --with-sdl-prefix was given.
7615if test "${with_sdl_prefix+set}" = set; then
7616  withval=$with_sdl_prefix; sdl_prefix="$withval"
7617else
7618  sdl_prefix=""
7619fi
7620
7621
7622# Check whether --with-sdl-exec-prefix was given.
7623if test "${with_sdl_exec_prefix+set}" = set; then
7624  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
7625else
7626  sdl_exec_prefix=""
7627fi
7628
7629# Check whether --enable-sdltest was given.
7630if test "${enable_sdltest+set}" = set; then
7631  enableval=$enable_sdltest;
7632else
7633  enable_sdltest=yes
7634fi
7635
7636
7637  if test x$sdl_exec_prefix != x ; then
7638    sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
7639    if test x${SDL_CONFIG+set} != xset ; then
7640      SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
7641    fi
7642  fi
7643  if test x$sdl_prefix != x ; then
7644    sdl_args="$sdl_args --prefix=$sdl_prefix"
7645    if test x${SDL_CONFIG+set} != xset ; then
7646      SDL_CONFIG=$sdl_prefix/bin/sdl-config
7647    fi
7648  fi
7649
7650  if test "x$prefix" != xNONE; then
7651    PATH="$prefix/bin:$prefix/usr/bin:$PATH"
7652  fi
7653  # Extract the first word of "sdl-config", so it can be a program name with args.
7654set dummy sdl-config; ac_word=$2
7655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7657if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
7658  echo $ECHO_N "(cached) $ECHO_C" >&6
7659else
7660  case $SDL_CONFIG in
7661  [\\/]* | ?:[\\/]*)
7662  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7663  ;;
7664  *)
7665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666for as_dir in $PATH
7667do
7668  IFS=$as_save_IFS
7669  test -z "$as_dir" && as_dir=.
7670  for ac_exec_ext in '' $ac_executable_extensions; do
7671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7672    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7673    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7674    break 2
7675  fi
7676done
7677done
7678IFS=$as_save_IFS
7679
7680  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7681  ;;
7682esac
7683fi
7684SDL_CONFIG=$ac_cv_path_SDL_CONFIG
7685if test -n "$SDL_CONFIG"; then
7686  { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
7687echo "${ECHO_T}$SDL_CONFIG" >&6; }
7688else
7689  { echo "$as_me:$LINENO: result: no" >&5
7690echo "${ECHO_T}no" >&6; }
7691fi
7692
7693
7694  min_sdl_version=$SDL_VERSION
7695  { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
7696echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
7697  no_sdl=""
7698  if test "$SDL_CONFIG" = "no" ; then
7699    no_sdl=yes
7700  else
7701    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
7702    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
7703
7704    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
7705           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7706    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
7707           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7708    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
7709           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7710    if test "x$enable_sdltest" = "xyes" ; then
7711      ac_save_CFLAGS="$CFLAGS"
7712      ac_save_CXXFLAGS="$CXXFLAGS"
7713      ac_save_LIBS="$LIBS"
7714      CFLAGS="$CFLAGS $SDL_CFLAGS"
7715      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7716      LIBS="$LIBS $SDL_LIBS"
7717      rm -f conf.sdltest
7718      if test "$cross_compiling" = yes; then
7719  echo $ac_n "cross compiling; assumed OK... $ac_c"
7720else
7721  cat >conftest.$ac_ext <<_ACEOF
7722/* confdefs.h.  */
7723_ACEOF
7724cat confdefs.h >>conftest.$ac_ext
7725cat >>conftest.$ac_ext <<_ACEOF
7726/* end confdefs.h.  */
7727
7728#include <stdio.h>
7729#include <stdlib.h>
7730#include <string.h>
7731#include "SDL.h"
7732
7733char*
7734my_strdup (char *str)
7735{
7736  char *new_str;
7737
7738  if (str)
7739    {
7740      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
7741      strcpy (new_str, str);
7742    }
7743  else
7744    new_str = NULL;
7745
7746  return new_str;
7747}
7748
7749int main (int argc, char *argv[])
7750{
7751  int major, minor, micro;
7752  char *tmp_version;
7753
7754  /* This hangs on some systems (?)
7755  system ("touch conf.sdltest");
7756  */
7757  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
7758
7759  /* HP/UX 9 (%@#!) writes to sscanf strings */
7760  tmp_version = my_strdup("$min_sdl_version");
7761  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7762     printf("%s, bad version string\n", "$min_sdl_version");
7763     exit(1);
7764   }
7765
7766   if (($sdl_major_version > major) ||
7767      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
7768      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
7769    {
7770      return 0;
7771    }
7772  else
7773    {
7774      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
7775      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
7776      printf("*** best to upgrade to the required version.\n");
7777      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
7778      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
7779      printf("*** config.cache before re-running configure\n");
7780      return 1;
7781    }
7782}
7783
7784
7785_ACEOF
7786rm -f conftest$ac_exeext
7787if { (ac_try="$ac_link"
7788case "(($ac_try" in
7789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790  *) ac_try_echo=$ac_try;;
7791esac
7792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7793  (eval "$ac_link") 2>&5
7794  ac_status=$?
7795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7797  { (case "(($ac_try" in
7798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799  *) ac_try_echo=$ac_try;;
7800esac
7801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7802  (eval "$ac_try") 2>&5
7803  ac_status=$?
7804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805  (exit $ac_status); }; }; then
7806  :
7807else
7808  echo "$as_me: program exited with status $ac_status" >&5
7809echo "$as_me: failed program was:" >&5
7810sed 's/^/| /' conftest.$ac_ext >&5
7811
7812( exit $ac_status )
7813no_sdl=yes
7814fi
7815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7816fi
7817
7818
7819       CFLAGS="$ac_save_CFLAGS"
7820       CXXFLAGS="$ac_save_CXXFLAGS"
7821       LIBS="$ac_save_LIBS"
7822     fi
7823  fi
7824  if test "x$no_sdl" = x ; then
7825     { echo "$as_me:$LINENO: result: yes" >&5
7826echo "${ECHO_T}yes" >&6; }
7827     :
7828  else
7829     { echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6; }
7831     if test "$SDL_CONFIG" = "no" ; then
7832       echo "*** The sdl-config script installed by SDL could not be found"
7833       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
7834       echo "*** your path, or set the SDL_CONFIG environment variable to the"
7835       echo "*** full path to sdl-config."
7836     else
7837       if test -f conf.sdltest ; then
7838        :
7839       else
7840          echo "*** Could not run SDL test program, checking why..."
7841          CFLAGS="$CFLAGS $SDL_CFLAGS"
7842          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7843          LIBS="$LIBS $SDL_LIBS"
7844          cat >conftest.$ac_ext <<_ACEOF
7845/* confdefs.h.  */
7846_ACEOF
7847cat confdefs.h >>conftest.$ac_ext
7848cat >>conftest.$ac_ext <<_ACEOF
7849/* end confdefs.h.  */
7850
7851#include <stdio.h>
7852#include "SDL.h"
7853
7854int main(int argc, char *argv[])
7855{ return 0; }
7856#undef  main
7857#define main K_and_R_C_main
7858
7859int
7860main ()
7861{
7862 return 0;
7863  ;
7864  return 0;
7865}
7866_ACEOF
7867rm -f conftest.$ac_objext conftest$ac_exeext
7868if { (ac_try="$ac_link"
7869case "(($ac_try" in
7870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871  *) ac_try_echo=$ac_try;;
7872esac
7873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874  (eval "$ac_link") 2>conftest.er1
7875  ac_status=$?
7876  grep -v '^ *+' conftest.er1 >conftest.err
7877  rm -f conftest.er1
7878  cat conftest.err >&5
7879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880  (exit $ac_status); } && {
7881	 test -z "$ac_c_werror_flag" ||
7882	 test ! -s conftest.err
7883       } && test -s conftest$ac_exeext &&
7884       $as_test_x conftest$ac_exeext; then
7885   echo "*** The test program compiled, but did not run. This usually means"
7886          echo "*** that the run-time linker is not finding SDL or finding the wrong"
7887          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
7888          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7889          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
7890          echo "*** is required on your system"
7891	  echo "***"
7892          echo "*** If you have an old version installed, it is best to remove it, although"
7893          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7894else
7895  echo "$as_me: failed program was:" >&5
7896sed 's/^/| /' conftest.$ac_ext >&5
7897
7898	 echo "*** The test program failed to compile or link. See the file config.log for the"
7899          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
7900          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
7901          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
7902fi
7903
7904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7905      conftest$ac_exeext conftest.$ac_ext
7906          CFLAGS="$ac_save_CFLAGS"
7907          CXXFLAGS="$ac_save_CXXFLAGS"
7908          LIBS="$ac_save_LIBS"
7909       fi
7910     fi
7911     SDL_CFLAGS=""
7912     SDL_LIBS=""
7913     { { echo "$as_me:$LINENO: error: *** You need libSDL >= $SDL_VERSION " >&5
7914echo "$as_me: error: *** You need libSDL >= $SDL_VERSION " >&2;}
7915   { (exit 1); exit 1; }; }
7916  fi
7917
7918
7919  rm -f conf.sdltest
7920
7921CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7922LIBS="$LIBS $SDL_LIBS"
7923
7924
7925        MKINSTALLDIRS=
7926  if test -n "$ac_aux_dir"; then
7927    case "$ac_aux_dir" in
7928      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7929      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7930    esac
7931  fi
7932  if test -z "$MKINSTALLDIRS"; then
7933    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7934  fi
7935
7936
7937
7938  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7939echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
7940    # Check whether --enable-nls was given.
7941if test "${enable_nls+set}" = set; then
7942  enableval=$enable_nls; USE_NLS=$enableval
7943else
7944  USE_NLS=yes
7945fi
7946
7947  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7948echo "${ECHO_T}$USE_NLS" >&6; }
7949
7950
7951
7952
7953
7954
7955# Prepare PATH_SEPARATOR.
7956# The user is always right.
7957if test "${PATH_SEPARATOR+set}" != set; then
7958  echo "#! /bin/sh" >conf$$.sh
7959  echo  "exit 0"   >>conf$$.sh
7960  chmod +x conf$$.sh
7961  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7962    PATH_SEPARATOR=';'
7963  else
7964    PATH_SEPARATOR=:
7965  fi
7966  rm -f conf$$.sh
7967fi
7968
7969# Find out how to test for executable files. Don't use a zero-byte file,
7970# as systems may use methods other than mode bits to determine executability.
7971cat >conf$$.file <<_ASEOF
7972#! /bin/sh
7973exit 0
7974_ASEOF
7975chmod +x conf$$.file
7976if test -x conf$$.file >/dev/null 2>&1; then
7977  ac_executable_p="test -x"
7978else
7979  ac_executable_p="test -f"
7980fi
7981rm -f conf$$.file
7982
7983# Extract the first word of "msgfmt", so it can be a program name with args.
7984set dummy msgfmt; ac_word=$2
7985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7987if test "${ac_cv_path_MSGFMT+set}" = set; then
7988  echo $ECHO_N "(cached) $ECHO_C" >&6
7989else
7990  case "$MSGFMT" in
7991  [\\/]* | ?:[\\/]*)
7992    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7993    ;;
7994  *)
7995    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7996    for ac_dir in $PATH; do
7997      IFS="$ac_save_IFS"
7998      test -z "$ac_dir" && ac_dir=.
7999      for ac_exec_ext in '' $ac_executable_extensions; do
8000        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8001          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
8002     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8003            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8004            break 2
8005          fi
8006        fi
8007      done
8008    done
8009    IFS="$ac_save_IFS"
8010  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8011    ;;
8012esac
8013fi
8014MSGFMT="$ac_cv_path_MSGFMT"
8015if test "$MSGFMT" != ":"; then
8016  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
8017echo "${ECHO_T}$MSGFMT" >&6; }
8018else
8019  { echo "$as_me:$LINENO: result: no" >&5
8020echo "${ECHO_T}no" >&6; }
8021fi
8022
8023  # Extract the first word of "gmsgfmt", so it can be a program name with args.
8024set dummy gmsgfmt; ac_word=$2
8025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8027if test "${ac_cv_path_GMSGFMT+set}" = set; then
8028  echo $ECHO_N "(cached) $ECHO_C" >&6
8029else
8030  case $GMSGFMT in
8031  [\\/]* | ?:[\\/]*)
8032  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8033  ;;
8034  *)
8035  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036for as_dir in $PATH
8037do
8038  IFS=$as_save_IFS
8039  test -z "$as_dir" && as_dir=.
8040  for ac_exec_ext in '' $ac_executable_extensions; do
8041  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8042    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8043    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8044    break 2
8045  fi
8046done
8047done
8048IFS=$as_save_IFS
8049
8050  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8051  ;;
8052esac
8053fi
8054GMSGFMT=$ac_cv_path_GMSGFMT
8055if test -n "$GMSGFMT"; then
8056  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8057echo "${ECHO_T}$GMSGFMT" >&6; }
8058else
8059  { echo "$as_me:$LINENO: result: no" >&5
8060echo "${ECHO_T}no" >&6; }
8061fi
8062
8063
8064
8065
8066# Prepare PATH_SEPARATOR.
8067# The user is always right.
8068if test "${PATH_SEPARATOR+set}" != set; then
8069  echo "#! /bin/sh" >conf$$.sh
8070  echo  "exit 0"   >>conf$$.sh
8071  chmod +x conf$$.sh
8072  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8073    PATH_SEPARATOR=';'
8074  else
8075    PATH_SEPARATOR=:
8076  fi
8077  rm -f conf$$.sh
8078fi
8079
8080# Find out how to test for executable files. Don't use a zero-byte file,
8081# as systems may use methods other than mode bits to determine executability.
8082cat >conf$$.file <<_ASEOF
8083#! /bin/sh
8084exit 0
8085_ASEOF
8086chmod +x conf$$.file
8087if test -x conf$$.file >/dev/null 2>&1; then
8088  ac_executable_p="test -x"
8089else
8090  ac_executable_p="test -f"
8091fi
8092rm -f conf$$.file
8093
8094# Extract the first word of "xgettext", so it can be a program name with args.
8095set dummy xgettext; ac_word=$2
8096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098if test "${ac_cv_path_XGETTEXT+set}" = set; then
8099  echo $ECHO_N "(cached) $ECHO_C" >&6
8100else
8101  case "$XGETTEXT" in
8102  [\\/]* | ?:[\\/]*)
8103    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8104    ;;
8105  *)
8106    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8107    for ac_dir in $PATH; do
8108      IFS="$ac_save_IFS"
8109      test -z "$ac_dir" && ac_dir=.
8110      for ac_exec_ext in '' $ac_executable_extensions; do
8111        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8112          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8113     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8114            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8115            break 2
8116          fi
8117        fi
8118      done
8119    done
8120    IFS="$ac_save_IFS"
8121  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8122    ;;
8123esac
8124fi
8125XGETTEXT="$ac_cv_path_XGETTEXT"
8126if test "$XGETTEXT" != ":"; then
8127  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8128echo "${ECHO_T}$XGETTEXT" >&6; }
8129else
8130  { echo "$as_me:$LINENO: result: no" >&5
8131echo "${ECHO_T}no" >&6; }
8132fi
8133
8134    rm -f messages.po
8135
8136
8137# Prepare PATH_SEPARATOR.
8138# The user is always right.
8139if test "${PATH_SEPARATOR+set}" != set; then
8140  echo "#! /bin/sh" >conf$$.sh
8141  echo  "exit 0"   >>conf$$.sh
8142  chmod +x conf$$.sh
8143  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8144    PATH_SEPARATOR=';'
8145  else
8146    PATH_SEPARATOR=:
8147  fi
8148  rm -f conf$$.sh
8149fi
8150
8151# Find out how to test for executable files. Don't use a zero-byte file,
8152# as systems may use methods other than mode bits to determine executability.
8153cat >conf$$.file <<_ASEOF
8154#! /bin/sh
8155exit 0
8156_ASEOF
8157chmod +x conf$$.file
8158if test -x conf$$.file >/dev/null 2>&1; then
8159  ac_executable_p="test -x"
8160else
8161  ac_executable_p="test -f"
8162fi
8163rm -f conf$$.file
8164
8165# Extract the first word of "msgmerge", so it can be a program name with args.
8166set dummy msgmerge; ac_word=$2
8167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8169if test "${ac_cv_path_MSGMERGE+set}" = set; then
8170  echo $ECHO_N "(cached) $ECHO_C" >&6
8171else
8172  case "$MSGMERGE" in
8173  [\\/]* | ?:[\\/]*)
8174    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8175    ;;
8176  *)
8177    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8178    for ac_dir in $PATH; do
8179      IFS="$ac_save_IFS"
8180      test -z "$ac_dir" && ac_dir=.
8181      for ac_exec_ext in '' $ac_executable_extensions; do
8182        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8183          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
8184            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8185            break 2
8186          fi
8187        fi
8188      done
8189    done
8190    IFS="$ac_save_IFS"
8191  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8192    ;;
8193esac
8194fi
8195MSGMERGE="$ac_cv_path_MSGMERGE"
8196if test "$MSGMERGE" != ":"; then
8197  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
8198echo "${ECHO_T}$MSGMERGE" >&6; }
8199else
8200  { echo "$as_me:$LINENO: result: no" >&5
8201echo "${ECHO_T}no" >&6; }
8202fi
8203
8204
8205      if test "$GMSGFMT" != ":"; then
8206            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
8207       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8208      : ;
8209    else
8210      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
8211      { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
8212echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
8213      GMSGFMT=":"
8214    fi
8215  fi
8216
8217      if test "$XGETTEXT" != ":"; then
8218            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8219       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8220      : ;
8221    else
8222      { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8223echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
8224      XGETTEXT=":"
8225    fi
8226        rm -f messages.po
8227  fi
8228
8229  ac_config_commands="$ac_config_commands default-1"
8230
8231
8232
8233        { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
8234echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
8235if test "${ac_cv_lib_cposix_strerror+set}" = set; then
8236  echo $ECHO_N "(cached) $ECHO_C" >&6
8237else
8238  ac_check_lib_save_LIBS=$LIBS
8239LIBS="-lcposix  $LIBS"
8240cat >conftest.$ac_ext <<_ACEOF
8241/* confdefs.h.  */
8242_ACEOF
8243cat confdefs.h >>conftest.$ac_ext
8244cat >>conftest.$ac_ext <<_ACEOF
8245/* end confdefs.h.  */
8246
8247/* Override any GCC internal prototype to avoid an error.
8248   Use char because int might match the return type of a GCC
8249   builtin and then its argument prototype would still apply.  */
8250#ifdef __cplusplus
8251extern "C"
8252#endif
8253char strerror ();
8254int
8255main ()
8256{
8257return strerror ();
8258  ;
8259  return 0;
8260}
8261_ACEOF
8262rm -f conftest.$ac_objext conftest$ac_exeext
8263if { (ac_try="$ac_link"
8264case "(($ac_try" in
8265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266  *) ac_try_echo=$ac_try;;
8267esac
8268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269  (eval "$ac_link") 2>conftest.er1
8270  ac_status=$?
8271  grep -v '^ *+' conftest.er1 >conftest.err
8272  rm -f conftest.er1
8273  cat conftest.err >&5
8274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275  (exit $ac_status); } && {
8276	 test -z "$ac_c_werror_flag" ||
8277	 test ! -s conftest.err
8278       } && test -s conftest$ac_exeext &&
8279       $as_test_x conftest$ac_exeext; then
8280  ac_cv_lib_cposix_strerror=yes
8281else
8282  echo "$as_me: failed program was:" >&5
8283sed 's/^/| /' conftest.$ac_ext >&5
8284
8285	ac_cv_lib_cposix_strerror=no
8286fi
8287
8288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8289      conftest$ac_exeext conftest.$ac_ext
8290LIBS=$ac_check_lib_save_LIBS
8291fi
8292{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8293echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8294if test $ac_cv_lib_cposix_strerror = yes; then
8295  LIBS="$LIBS -lcposix"
8296fi
8297
8298
8299
8300
8301  { echo "$as_me:$LINENO: checking for signed" >&5
8302echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8303if test "${bh_cv_c_signed+set}" = set; then
8304  echo $ECHO_N "(cached) $ECHO_C" >&6
8305else
8306  cat >conftest.$ac_ext <<_ACEOF
8307/* confdefs.h.  */
8308_ACEOF
8309cat confdefs.h >>conftest.$ac_ext
8310cat >>conftest.$ac_ext <<_ACEOF
8311/* end confdefs.h.  */
8312
8313int
8314main ()
8315{
8316signed char x;
8317  ;
8318  return 0;
8319}
8320_ACEOF
8321rm -f conftest.$ac_objext
8322if { (ac_try="$ac_compile"
8323case "(($ac_try" in
8324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325  *) ac_try_echo=$ac_try;;
8326esac
8327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328  (eval "$ac_compile") 2>conftest.er1
8329  ac_status=$?
8330  grep -v '^ *+' conftest.er1 >conftest.err
8331  rm -f conftest.er1
8332  cat conftest.err >&5
8333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334  (exit $ac_status); } && {
8335	 test -z "$ac_c_werror_flag" ||
8336	 test ! -s conftest.err
8337       } && test -s conftest.$ac_objext; then
8338  bh_cv_c_signed=yes
8339else
8340  echo "$as_me: failed program was:" >&5
8341sed 's/^/| /' conftest.$ac_ext >&5
8342
8343	bh_cv_c_signed=no
8344fi
8345
8346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347fi
8348{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8349echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8350  if test $bh_cv_c_signed = no; then
8351
8352cat >>confdefs.h <<\_ACEOF
8353#define signed
8354_ACEOF
8355
8356  fi
8357
8358{ echo "$as_me:$LINENO: checking for off_t" >&5
8359echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8360if test "${ac_cv_type_off_t+set}" = set; then
8361  echo $ECHO_N "(cached) $ECHO_C" >&6
8362else
8363  cat >conftest.$ac_ext <<_ACEOF
8364/* confdefs.h.  */
8365_ACEOF
8366cat confdefs.h >>conftest.$ac_ext
8367cat >>conftest.$ac_ext <<_ACEOF
8368/* end confdefs.h.  */
8369$ac_includes_default
8370typedef off_t ac__type_new_;
8371int
8372main ()
8373{
8374if ((ac__type_new_ *) 0)
8375  return 0;
8376if (sizeof (ac__type_new_))
8377  return 0;
8378  ;
8379  return 0;
8380}
8381_ACEOF
8382rm -f conftest.$ac_objext
8383if { (ac_try="$ac_compile"
8384case "(($ac_try" in
8385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386  *) ac_try_echo=$ac_try;;
8387esac
8388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389  (eval "$ac_compile") 2>conftest.er1
8390  ac_status=$?
8391  grep -v '^ *+' conftest.er1 >conftest.err
8392  rm -f conftest.er1
8393  cat conftest.err >&5
8394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395  (exit $ac_status); } && {
8396	 test -z "$ac_c_werror_flag" ||
8397	 test ! -s conftest.err
8398       } && test -s conftest.$ac_objext; then
8399  ac_cv_type_off_t=yes
8400else
8401  echo "$as_me: failed program was:" >&5
8402sed 's/^/| /' conftest.$ac_ext >&5
8403
8404	ac_cv_type_off_t=no
8405fi
8406
8407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408fi
8409{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8410echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8411if test $ac_cv_type_off_t = yes; then
8412  :
8413else
8414
8415cat >>confdefs.h <<_ACEOF
8416#define off_t long int
8417_ACEOF
8418
8419fi
8420
8421
8422  { echo "$as_me:$LINENO: checking for long long" >&5
8423echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8424if test "${ac_cv_type_long_long+set}" = set; then
8425  echo $ECHO_N "(cached) $ECHO_C" >&6
8426else
8427  cat >conftest.$ac_ext <<_ACEOF
8428/* confdefs.h.  */
8429_ACEOF
8430cat confdefs.h >>conftest.$ac_ext
8431cat >>conftest.$ac_ext <<_ACEOF
8432/* end confdefs.h.  */
8433long long ll = 1LL; int i = 63;
8434int
8435main ()
8436{
8437long long llmax = (long long) -1;
8438     return ll << i | ll >> i | llmax / ll | llmax % ll;
8439  ;
8440  return 0;
8441}
8442_ACEOF
8443rm -f conftest.$ac_objext conftest$ac_exeext
8444if { (ac_try="$ac_link"
8445case "(($ac_try" in
8446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447  *) ac_try_echo=$ac_try;;
8448esac
8449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450  (eval "$ac_link") 2>conftest.er1
8451  ac_status=$?
8452  grep -v '^ *+' conftest.er1 >conftest.err
8453  rm -f conftest.er1
8454  cat conftest.err >&5
8455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456  (exit $ac_status); } && {
8457	 test -z "$ac_c_werror_flag" ||
8458	 test ! -s conftest.err
8459       } && test -s conftest$ac_exeext &&
8460       $as_test_x conftest$ac_exeext; then
8461  ac_cv_type_long_long=yes
8462else
8463  echo "$as_me: failed program was:" >&5
8464sed 's/^/| /' conftest.$ac_ext >&5
8465
8466	ac_cv_type_long_long=no
8467fi
8468
8469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8470      conftest$ac_exeext conftest.$ac_ext
8471fi
8472{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8473echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8474  if test $ac_cv_type_long_long = yes; then
8475
8476cat >>confdefs.h <<\_ACEOF
8477#define HAVE_LONG_LONG 1
8478_ACEOF
8479
8480  fi
8481
8482
8483  { echo "$as_me:$LINENO: checking for long double" >&5
8484echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8485if test "${gt_cv_c_long_double+set}" = set; then
8486  echo $ECHO_N "(cached) $ECHO_C" >&6
8487else
8488  if test "$GCC" = yes; then
8489       gt_cv_c_long_double=yes
8490     else
8491       cat >conftest.$ac_ext <<_ACEOF
8492/* confdefs.h.  */
8493_ACEOF
8494cat confdefs.h >>conftest.$ac_ext
8495cat >>conftest.$ac_ext <<_ACEOF
8496/* end confdefs.h.  */
8497
8498         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8499         long double foo = 0.0;
8500         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8501         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8502
8503int
8504main ()
8505{
8506
8507  ;
8508  return 0;
8509}
8510_ACEOF
8511rm -f conftest.$ac_objext
8512if { (ac_try="$ac_compile"
8513case "(($ac_try" in
8514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515  *) ac_try_echo=$ac_try;;
8516esac
8517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518  (eval "$ac_compile") 2>conftest.er1
8519  ac_status=$?
8520  grep -v '^ *+' conftest.er1 >conftest.err
8521  rm -f conftest.er1
8522  cat conftest.err >&5
8523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524  (exit $ac_status); } && {
8525	 test -z "$ac_c_werror_flag" ||
8526	 test ! -s conftest.err
8527       } && test -s conftest.$ac_objext; then
8528  gt_cv_c_long_double=yes
8529else
8530  echo "$as_me: failed program was:" >&5
8531sed 's/^/| /' conftest.$ac_ext >&5
8532
8533	gt_cv_c_long_double=no
8534fi
8535
8536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537     fi
8538fi
8539{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8540echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8541  if test $gt_cv_c_long_double = yes; then
8542
8543cat >>confdefs.h <<\_ACEOF
8544#define HAVE_LONG_DOUBLE 1
8545_ACEOF
8546
8547  fi
8548
8549
8550  { echo "$as_me:$LINENO: checking for wchar_t" >&5
8551echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8552if test "${gt_cv_c_wchar_t+set}" = set; then
8553  echo $ECHO_N "(cached) $ECHO_C" >&6
8554else
8555  cat >conftest.$ac_ext <<_ACEOF
8556/* confdefs.h.  */
8557_ACEOF
8558cat confdefs.h >>conftest.$ac_ext
8559cat >>conftest.$ac_ext <<_ACEOF
8560/* end confdefs.h.  */
8561#include <stddef.h>
8562       wchar_t foo = (wchar_t)'\0';
8563int
8564main ()
8565{
8566
8567  ;
8568  return 0;
8569}
8570_ACEOF
8571rm -f conftest.$ac_objext
8572if { (ac_try="$ac_compile"
8573case "(($ac_try" in
8574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575  *) ac_try_echo=$ac_try;;
8576esac
8577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578  (eval "$ac_compile") 2>conftest.er1
8579  ac_status=$?
8580  grep -v '^ *+' conftest.er1 >conftest.err
8581  rm -f conftest.er1
8582  cat conftest.err >&5
8583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584  (exit $ac_status); } && {
8585	 test -z "$ac_c_werror_flag" ||
8586	 test ! -s conftest.err
8587       } && test -s conftest.$ac_objext; then
8588  gt_cv_c_wchar_t=yes
8589else
8590  echo "$as_me: failed program was:" >&5
8591sed 's/^/| /' conftest.$ac_ext >&5
8592
8593	gt_cv_c_wchar_t=no
8594fi
8595
8596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597fi
8598{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8599echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8600  if test $gt_cv_c_wchar_t = yes; then
8601
8602cat >>confdefs.h <<\_ACEOF
8603#define HAVE_WCHAR_T 1
8604_ACEOF
8605
8606  fi
8607
8608
8609  { echo "$as_me:$LINENO: checking for wint_t" >&5
8610echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8611if test "${gt_cv_c_wint_t+set}" = set; then
8612  echo $ECHO_N "(cached) $ECHO_C" >&6
8613else
8614  cat >conftest.$ac_ext <<_ACEOF
8615/* confdefs.h.  */
8616_ACEOF
8617cat confdefs.h >>conftest.$ac_ext
8618cat >>conftest.$ac_ext <<_ACEOF
8619/* end confdefs.h.  */
8620#include <wchar.h>
8621       wint_t foo = (wchar_t)'\0';
8622int
8623main ()
8624{
8625
8626  ;
8627  return 0;
8628}
8629_ACEOF
8630rm -f conftest.$ac_objext
8631if { (ac_try="$ac_compile"
8632case "(($ac_try" in
8633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634  *) ac_try_echo=$ac_try;;
8635esac
8636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637  (eval "$ac_compile") 2>conftest.er1
8638  ac_status=$?
8639  grep -v '^ *+' conftest.er1 >conftest.err
8640  rm -f conftest.er1
8641  cat conftest.err >&5
8642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643  (exit $ac_status); } && {
8644	 test -z "$ac_c_werror_flag" ||
8645	 test ! -s conftest.err
8646       } && test -s conftest.$ac_objext; then
8647  gt_cv_c_wint_t=yes
8648else
8649  echo "$as_me: failed program was:" >&5
8650sed 's/^/| /' conftest.$ac_ext >&5
8651
8652	gt_cv_c_wint_t=no
8653fi
8654
8655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8656fi
8657{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8658echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8659  if test $gt_cv_c_wint_t = yes; then
8660
8661cat >>confdefs.h <<\_ACEOF
8662#define HAVE_WINT_T 1
8663_ACEOF
8664
8665  fi
8666
8667
8668  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8669echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8670if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8671  echo $ECHO_N "(cached) $ECHO_C" >&6
8672else
8673  cat >conftest.$ac_ext <<_ACEOF
8674/* confdefs.h.  */
8675_ACEOF
8676cat confdefs.h >>conftest.$ac_ext
8677cat >>conftest.$ac_ext <<_ACEOF
8678/* end confdefs.h.  */
8679#include <sys/types.h>
8680#include <inttypes.h>
8681int
8682main ()
8683{
8684uintmax_t i = (uintmax_t) -1;
8685  ;
8686  return 0;
8687}
8688_ACEOF
8689rm -f conftest.$ac_objext
8690if { (ac_try="$ac_compile"
8691case "(($ac_try" in
8692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693  *) ac_try_echo=$ac_try;;
8694esac
8695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696  (eval "$ac_compile") 2>conftest.er1
8697  ac_status=$?
8698  grep -v '^ *+' conftest.er1 >conftest.err
8699  rm -f conftest.er1
8700  cat conftest.err >&5
8701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702  (exit $ac_status); } && {
8703	 test -z "$ac_c_werror_flag" ||
8704	 test ! -s conftest.err
8705       } && test -s conftest.$ac_objext; then
8706  jm_ac_cv_header_inttypes_h=yes
8707else
8708  echo "$as_me: failed program was:" >&5
8709sed 's/^/| /' conftest.$ac_ext >&5
8710
8711	jm_ac_cv_header_inttypes_h=no
8712fi
8713
8714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715fi
8716{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8717echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
8718  if test $jm_ac_cv_header_inttypes_h = yes; then
8719
8720cat >>confdefs.h <<_ACEOF
8721#define HAVE_INTTYPES_H_WITH_UINTMAX 1
8722_ACEOF
8723
8724  fi
8725
8726
8727  { echo "$as_me:$LINENO: checking for stdint.h" >&5
8728echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8729if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8730  echo $ECHO_N "(cached) $ECHO_C" >&6
8731else
8732  cat >conftest.$ac_ext <<_ACEOF
8733/* confdefs.h.  */
8734_ACEOF
8735cat confdefs.h >>conftest.$ac_ext
8736cat >>conftest.$ac_ext <<_ACEOF
8737/* end confdefs.h.  */
8738#include <sys/types.h>
8739#include <stdint.h>
8740int
8741main ()
8742{
8743uintmax_t i = (uintmax_t) -1;
8744  ;
8745  return 0;
8746}
8747_ACEOF
8748rm -f conftest.$ac_objext
8749if { (ac_try="$ac_compile"
8750case "(($ac_try" in
8751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752  *) ac_try_echo=$ac_try;;
8753esac
8754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755  (eval "$ac_compile") 2>conftest.er1
8756  ac_status=$?
8757  grep -v '^ *+' conftest.er1 >conftest.err
8758  rm -f conftest.er1
8759  cat conftest.err >&5
8760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761  (exit $ac_status); } && {
8762	 test -z "$ac_c_werror_flag" ||
8763	 test ! -s conftest.err
8764       } && test -s conftest.$ac_objext; then
8765  jm_ac_cv_header_stdint_h=yes
8766else
8767  echo "$as_me: failed program was:" >&5
8768sed 's/^/| /' conftest.$ac_ext >&5
8769
8770	jm_ac_cv_header_stdint_h=no
8771fi
8772
8773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774fi
8775{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8776echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
8777  if test $jm_ac_cv_header_stdint_h = yes; then
8778
8779cat >>confdefs.h <<_ACEOF
8780#define HAVE_STDINT_H_WITH_UINTMAX 1
8781_ACEOF
8782
8783  fi
8784
8785
8786
8787
8788  { echo "$as_me:$LINENO: checking for intmax_t" >&5
8789echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8790if test "${gt_cv_c_intmax_t+set}" = set; then
8791  echo $ECHO_N "(cached) $ECHO_C" >&6
8792else
8793  cat >conftest.$ac_ext <<_ACEOF
8794/* confdefs.h.  */
8795_ACEOF
8796cat confdefs.h >>conftest.$ac_ext
8797cat >>conftest.$ac_ext <<_ACEOF
8798/* end confdefs.h.  */
8799
8800#include <stddef.h>
8801#include <stdlib.h>
8802#if HAVE_STDINT_H_WITH_UINTMAX
8803#include <stdint.h>
8804#endif
8805#if HAVE_INTTYPES_H_WITH_UINTMAX
8806#include <inttypes.h>
8807#endif
8808
8809int
8810main ()
8811{
8812intmax_t x = -1;
8813  ;
8814  return 0;
8815}
8816_ACEOF
8817rm -f conftest.$ac_objext
8818if { (ac_try="$ac_compile"
8819case "(($ac_try" in
8820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821  *) ac_try_echo=$ac_try;;
8822esac
8823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824  (eval "$ac_compile") 2>conftest.er1
8825  ac_status=$?
8826  grep -v '^ *+' conftest.er1 >conftest.err
8827  rm -f conftest.er1
8828  cat conftest.err >&5
8829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830  (exit $ac_status); } && {
8831	 test -z "$ac_c_werror_flag" ||
8832	 test ! -s conftest.err
8833       } && test -s conftest.$ac_objext; then
8834  gt_cv_c_intmax_t=yes
8835else
8836  echo "$as_me: failed program was:" >&5
8837sed 's/^/| /' conftest.$ac_ext >&5
8838
8839	gt_cv_c_intmax_t=no
8840fi
8841
8842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843fi
8844{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8845echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8846  if test $gt_cv_c_intmax_t = yes; then
8847
8848cat >>confdefs.h <<\_ACEOF
8849#define HAVE_INTMAX_T 1
8850_ACEOF
8851
8852  fi
8853
8854
8855
8856  { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8857echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8858if test "${gt_cv_func_printf_posix+set}" = set; then
8859  echo $ECHO_N "(cached) $ECHO_C" >&6
8860else
8861
8862      if test "$cross_compiling" = yes; then
8863
8864        cat >conftest.$ac_ext <<_ACEOF
8865/* confdefs.h.  */
8866_ACEOF
8867cat confdefs.h >>conftest.$ac_ext
8868cat >>conftest.$ac_ext <<_ACEOF
8869/* end confdefs.h.  */
8870
8871#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8872  notposix
8873#endif
8874
8875_ACEOF
8876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8877  $EGREP "notposix" >/dev/null 2>&1; then
8878  gt_cv_func_printf_posix="guessing no"
8879else
8880  gt_cv_func_printf_posix="guessing yes"
8881fi
8882rm -f conftest*
8883
8884
8885else
8886  cat >conftest.$ac_ext <<_ACEOF
8887/* confdefs.h.  */
8888_ACEOF
8889cat confdefs.h >>conftest.$ac_ext
8890cat >>conftest.$ac_ext <<_ACEOF
8891/* end confdefs.h.  */
8892
8893#include <stdio.h>
8894#include <string.h>
8895/* The string "%2$d %1$d", with dollar characters protected from the shell's
8896   dollar expansion (possibly an autoconf bug).  */
8897static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8898static char buf[100];
8899int main ()
8900{
8901  sprintf (buf, format, 33, 55);
8902  return (strcmp (buf, "55 33") != 0);
8903}
8904_ACEOF
8905rm -f conftest$ac_exeext
8906if { (ac_try="$ac_link"
8907case "(($ac_try" in
8908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909  *) ac_try_echo=$ac_try;;
8910esac
8911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8912  (eval "$ac_link") 2>&5
8913  ac_status=$?
8914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8916  { (case "(($ac_try" in
8917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918  *) ac_try_echo=$ac_try;;
8919esac
8920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8921  (eval "$ac_try") 2>&5
8922  ac_status=$?
8923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924  (exit $ac_status); }; }; then
8925  gt_cv_func_printf_posix=yes
8926else
8927  echo "$as_me: program exited with status $ac_status" >&5
8928echo "$as_me: failed program was:" >&5
8929sed 's/^/| /' conftest.$ac_ext >&5
8930
8931( exit $ac_status )
8932gt_cv_func_printf_posix=no
8933fi
8934rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8935fi
8936
8937
8938
8939fi
8940{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8941echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8942  case $gt_cv_func_printf_posix in
8943    *yes)
8944
8945cat >>confdefs.h <<\_ACEOF
8946#define HAVE_POSIX_PRINTF 1
8947_ACEOF
8948
8949      ;;
8950  esac
8951
8952
8953    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8954echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
8955if test "${ac_cv_gnu_library_2_1+set}" = set; then
8956  echo $ECHO_N "(cached) $ECHO_C" >&6
8957else
8958  cat >conftest.$ac_ext <<_ACEOF
8959/* confdefs.h.  */
8960_ACEOF
8961cat confdefs.h >>conftest.$ac_ext
8962cat >>conftest.$ac_ext <<_ACEOF
8963/* end confdefs.h.  */
8964
8965#include <features.h>
8966#ifdef __GNU_LIBRARY__
8967 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8968  Lucky GNU user
8969 #endif
8970#endif
8971
8972_ACEOF
8973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8974  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8975  ac_cv_gnu_library_2_1=yes
8976else
8977  ac_cv_gnu_library_2_1=no
8978fi
8979rm -f conftest*
8980
8981
8982
8983fi
8984{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8985echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
8986
8987    GLIBC21="$ac_cv_gnu_library_2_1"
8988
8989
8990
8991
8992  { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8993echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
8994if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8995  echo $ECHO_N "(cached) $ECHO_C" >&6
8996else
8997
8998      if test "$cross_compiling" = yes; then
8999
9000          # Guess based on the CPU.
9001          case "$host_cpu" in
9002            alpha* | i3456786 | m68k | s390*)
9003              gt_cv_int_divbyzero_sigfpe="guessing yes";;
9004            *)
9005              gt_cv_int_divbyzero_sigfpe="guessing no";;
9006          esac
9007
9008else
9009  cat >conftest.$ac_ext <<_ACEOF
9010/* confdefs.h.  */
9011_ACEOF
9012cat confdefs.h >>conftest.$ac_ext
9013cat >>conftest.$ac_ext <<_ACEOF
9014/* end confdefs.h.  */
9015
9016#include <stdlib.h>
9017#include <signal.h>
9018
9019static void
9020#ifdef __cplusplus
9021sigfpe_handler (int sig)
9022#else
9023sigfpe_handler (sig) int sig;
9024#endif
9025{
9026  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9027  exit (sig != SIGFPE);
9028}
9029
9030int x = 1;
9031int y = 0;
9032int z;
9033int nan;
9034
9035int main ()
9036{
9037  signal (SIGFPE, sigfpe_handler);
9038/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9039#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9040  signal (SIGTRAP, sigfpe_handler);
9041#endif
9042/* Linux/SPARC yields signal SIGILL.  */
9043#if defined (__sparc__) && defined (__linux__)
9044  signal (SIGILL, sigfpe_handler);
9045#endif
9046
9047  z = x / y;
9048  nan = y / y;
9049  exit (1);
9050}
9051
9052_ACEOF
9053rm -f conftest$ac_exeext
9054if { (ac_try="$ac_link"
9055case "(($ac_try" in
9056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057  *) ac_try_echo=$ac_try;;
9058esac
9059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060  (eval "$ac_link") 2>&5
9061  ac_status=$?
9062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9064  { (case "(($ac_try" in
9065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066  *) ac_try_echo=$ac_try;;
9067esac
9068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069  (eval "$ac_try") 2>&5
9070  ac_status=$?
9071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072  (exit $ac_status); }; }; then
9073  gt_cv_int_divbyzero_sigfpe=yes
9074else
9075  echo "$as_me: program exited with status $ac_status" >&5
9076echo "$as_me: failed program was:" >&5
9077sed 's/^/| /' conftest.$ac_ext >&5
9078
9079( exit $ac_status )
9080gt_cv_int_divbyzero_sigfpe=no
9081fi
9082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9083fi
9084
9085
9086
9087fi
9088{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9089echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9090  case "$gt_cv_int_divbyzero_sigfpe" in
9091    *yes) value=1;;
9092    *) value=0;;
9093  esac
9094
9095cat >>confdefs.h <<_ACEOF
9096#define INTDIV0_RAISES_SIGFPE $value
9097_ACEOF
9098
9099
9100
9101  { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9102echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9103if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9104  echo $ECHO_N "(cached) $ECHO_C" >&6
9105else
9106  cat >conftest.$ac_ext <<_ACEOF
9107/* confdefs.h.  */
9108_ACEOF
9109cat confdefs.h >>conftest.$ac_ext
9110cat >>conftest.$ac_ext <<_ACEOF
9111/* end confdefs.h.  */
9112unsigned long long ull = 1ULL; int i = 63;
9113int
9114main ()
9115{
9116unsigned long long ullmax = (unsigned long long) -1;
9117     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9118  ;
9119  return 0;
9120}
9121_ACEOF
9122rm -f conftest.$ac_objext conftest$ac_exeext
9123if { (ac_try="$ac_link"
9124case "(($ac_try" in
9125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126  *) ac_try_echo=$ac_try;;
9127esac
9128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129  (eval "$ac_link") 2>conftest.er1
9130  ac_status=$?
9131  grep -v '^ *+' conftest.er1 >conftest.err
9132  rm -f conftest.er1
9133  cat conftest.err >&5
9134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135  (exit $ac_status); } && {
9136	 test -z "$ac_c_werror_flag" ||
9137	 test ! -s conftest.err
9138       } && test -s conftest$ac_exeext &&
9139       $as_test_x conftest$ac_exeext; then
9140  ac_cv_type_unsigned_long_long=yes
9141else
9142  echo "$as_me: failed program was:" >&5
9143sed 's/^/| /' conftest.$ac_ext >&5
9144
9145	ac_cv_type_unsigned_long_long=no
9146fi
9147
9148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9149      conftest$ac_exeext conftest.$ac_ext
9150fi
9151{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9152echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9153  if test $ac_cv_type_unsigned_long_long = yes; then
9154
9155cat >>confdefs.h <<\_ACEOF
9156#define HAVE_UNSIGNED_LONG_LONG 1
9157_ACEOF
9158
9159  fi
9160
9161
9162
9163
9164  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
9165
9166    test $ac_cv_type_unsigned_long_long = yes \
9167      && ac_type='unsigned long long' \
9168      || ac_type='unsigned long'
9169
9170cat >>confdefs.h <<_ACEOF
9171#define uintmax_t $ac_type
9172_ACEOF
9173
9174  else
9175
9176cat >>confdefs.h <<\_ACEOF
9177#define HAVE_UINTMAX_T 1
9178_ACEOF
9179
9180  fi
9181
9182
9183  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9184echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9185if test "${gt_cv_header_inttypes_h+set}" = set; then
9186  echo $ECHO_N "(cached) $ECHO_C" >&6
9187else
9188
9189    cat >conftest.$ac_ext <<_ACEOF
9190/* confdefs.h.  */
9191_ACEOF
9192cat confdefs.h >>conftest.$ac_ext
9193cat >>conftest.$ac_ext <<_ACEOF
9194/* end confdefs.h.  */
9195#include <sys/types.h>
9196#include <inttypes.h>
9197int
9198main ()
9199{
9200
9201  ;
9202  return 0;
9203}
9204_ACEOF
9205rm -f conftest.$ac_objext
9206if { (ac_try="$ac_compile"
9207case "(($ac_try" in
9208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209  *) ac_try_echo=$ac_try;;
9210esac
9211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212  (eval "$ac_compile") 2>conftest.er1
9213  ac_status=$?
9214  grep -v '^ *+' conftest.er1 >conftest.err
9215  rm -f conftest.er1
9216  cat conftest.err >&5
9217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218  (exit $ac_status); } && {
9219	 test -z "$ac_c_werror_flag" ||
9220	 test ! -s conftest.err
9221       } && test -s conftest.$ac_objext; then
9222  gt_cv_header_inttypes_h=yes
9223else
9224  echo "$as_me: failed program was:" >&5
9225sed 's/^/| /' conftest.$ac_ext >&5
9226
9227	gt_cv_header_inttypes_h=no
9228fi
9229
9230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231
9232fi
9233{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9234echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
9235  if test $gt_cv_header_inttypes_h = yes; then
9236
9237cat >>confdefs.h <<_ACEOF
9238#define HAVE_INTTYPES_H 1
9239_ACEOF
9240
9241  fi
9242
9243
9244
9245  if test $gt_cv_header_inttypes_h = yes; then
9246    { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9247echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
9248if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9249  echo $ECHO_N "(cached) $ECHO_C" >&6
9250else
9251
9252        cat >conftest.$ac_ext <<_ACEOF
9253/* confdefs.h.  */
9254_ACEOF
9255cat confdefs.h >>conftest.$ac_ext
9256cat >>conftest.$ac_ext <<_ACEOF
9257/* end confdefs.h.  */
9258#include <inttypes.h>
9259#ifdef PRId32
9260char *p = PRId32;
9261#endif
9262
9263int
9264main ()
9265{
9266
9267  ;
9268  return 0;
9269}
9270_ACEOF
9271rm -f conftest.$ac_objext
9272if { (ac_try="$ac_compile"
9273case "(($ac_try" in
9274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9275  *) ac_try_echo=$ac_try;;
9276esac
9277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9278  (eval "$ac_compile") 2>conftest.er1
9279  ac_status=$?
9280  grep -v '^ *+' conftest.er1 >conftest.err
9281  rm -f conftest.er1
9282  cat conftest.err >&5
9283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284  (exit $ac_status); } && {
9285	 test -z "$ac_c_werror_flag" ||
9286	 test ! -s conftest.err
9287       } && test -s conftest.$ac_objext; then
9288  gt_cv_inttypes_pri_broken=no
9289else
9290  echo "$as_me: failed program was:" >&5
9291sed 's/^/| /' conftest.$ac_ext >&5
9292
9293	gt_cv_inttypes_pri_broken=yes
9294fi
9295
9296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297
9298fi
9299{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9300echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
9301  fi
9302  if test "$gt_cv_inttypes_pri_broken" = yes; then
9303
9304cat >>confdefs.h <<_ACEOF
9305#define PRI_MACROS_BROKEN 1
9306_ACEOF
9307
9308  fi
9309
9310
9311
9312for ac_header in stdint.h
9313do
9314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9316  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9319  echo $ECHO_N "(cached) $ECHO_C" >&6
9320fi
9321ac_res=`eval echo '${'$as_ac_Header'}'`
9322	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9323echo "${ECHO_T}$ac_res" >&6; }
9324else
9325  # Is the header compilable?
9326{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9327echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9328cat >conftest.$ac_ext <<_ACEOF
9329/* confdefs.h.  */
9330_ACEOF
9331cat confdefs.h >>conftest.$ac_ext
9332cat >>conftest.$ac_ext <<_ACEOF
9333/* end confdefs.h.  */
9334$ac_includes_default
9335#include <$ac_header>
9336_ACEOF
9337rm -f conftest.$ac_objext
9338if { (ac_try="$ac_compile"
9339case "(($ac_try" in
9340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341  *) ac_try_echo=$ac_try;;
9342esac
9343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9344  (eval "$ac_compile") 2>conftest.er1
9345  ac_status=$?
9346  grep -v '^ *+' conftest.er1 >conftest.err
9347  rm -f conftest.er1
9348  cat conftest.err >&5
9349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350  (exit $ac_status); } && {
9351	 test -z "$ac_c_werror_flag" ||
9352	 test ! -s conftest.err
9353       } && test -s conftest.$ac_objext; then
9354  ac_header_compiler=yes
9355else
9356  echo "$as_me: failed program was:" >&5
9357sed 's/^/| /' conftest.$ac_ext >&5
9358
9359	ac_header_compiler=no
9360fi
9361
9362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9363{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9364echo "${ECHO_T}$ac_header_compiler" >&6; }
9365
9366# Is the header present?
9367{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9368echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9369cat >conftest.$ac_ext <<_ACEOF
9370/* confdefs.h.  */
9371_ACEOF
9372cat confdefs.h >>conftest.$ac_ext
9373cat >>conftest.$ac_ext <<_ACEOF
9374/* end confdefs.h.  */
9375#include <$ac_header>
9376_ACEOF
9377if { (ac_try="$ac_cpp conftest.$ac_ext"
9378case "(($ac_try" in
9379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380  *) ac_try_echo=$ac_try;;
9381esac
9382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9384  ac_status=$?
9385  grep -v '^ *+' conftest.er1 >conftest.err
9386  rm -f conftest.er1
9387  cat conftest.err >&5
9388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389  (exit $ac_status); } >/dev/null && {
9390	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9391	 test ! -s conftest.err
9392       }; then
9393  ac_header_preproc=yes
9394else
9395  echo "$as_me: failed program was:" >&5
9396sed 's/^/| /' conftest.$ac_ext >&5
9397
9398  ac_header_preproc=no
9399fi
9400
9401rm -f conftest.err conftest.$ac_ext
9402{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9403echo "${ECHO_T}$ac_header_preproc" >&6; }
9404
9405# So?  What about this header?
9406case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9407  yes:no: )
9408    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9409echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9410    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9411echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9412    ac_header_preproc=yes
9413    ;;
9414  no:yes:* )
9415    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9416echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9417    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9418echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9419    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9420echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9421    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9422echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9423    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9424echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9425    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9426echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9427    ( cat <<\_ASBOX
9428## --------------------------------------- ##
9429## Report this to cedric.bregardis@free.fr ##
9430## --------------------------------------- ##
9431_ASBOX
9432     ) | sed "s/^/$as_me: WARNING:     /" >&2
9433    ;;
9434esac
9435{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9438  echo $ECHO_N "(cached) $ECHO_C" >&6
9439else
9440  eval "$as_ac_Header=\$ac_header_preproc"
9441fi
9442ac_res=`eval echo '${'$as_ac_Header'}'`
9443	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9444echo "${ECHO_T}$ac_res" >&6; }
9445
9446fi
9447if test `eval echo '${'$as_ac_Header'}'` = yes; then
9448  cat >>confdefs.h <<_ACEOF
9449#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9450_ACEOF
9451
9452fi
9453
9454done
9455
9456    { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9457echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
9458  result=
9459  cat >conftest.$ac_ext <<_ACEOF
9460/* confdefs.h.  */
9461_ACEOF
9462cat confdefs.h >>conftest.$ac_ext
9463cat >>conftest.$ac_ext <<_ACEOF
9464/* end confdefs.h.  */
9465
9466#include <limits.h>
9467#if HAVE_STDINT_H
9468#include <stdint.h>
9469#endif
9470#ifdef SIZE_MAX
9471Found it
9472#endif
9473
9474_ACEOF
9475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9476  $EGREP "Found it" >/dev/null 2>&1; then
9477  result=yes
9478fi
9479rm -f conftest*
9480
9481  if test -z "$result"; then
9482                    if test "$cross_compiling" = yes; then
9483  # Depending upon the size, compute the lo and hi bounds.
9484cat >conftest.$ac_ext <<_ACEOF
9485/* confdefs.h.  */
9486_ACEOF
9487cat confdefs.h >>conftest.$ac_ext
9488cat >>conftest.$ac_ext <<_ACEOF
9489/* end confdefs.h.  */
9490#include <stddef.h>
9491int
9492main ()
9493{
9494static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9495test_array [0] = 0
9496
9497  ;
9498  return 0;
9499}
9500_ACEOF
9501rm -f conftest.$ac_objext
9502if { (ac_try="$ac_compile"
9503case "(($ac_try" in
9504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505  *) ac_try_echo=$ac_try;;
9506esac
9507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508  (eval "$ac_compile") 2>conftest.er1
9509  ac_status=$?
9510  grep -v '^ *+' conftest.er1 >conftest.err
9511  rm -f conftest.er1
9512  cat conftest.err >&5
9513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514  (exit $ac_status); } && {
9515	 test -z "$ac_c_werror_flag" ||
9516	 test ! -s conftest.err
9517       } && test -s conftest.$ac_objext; then
9518  ac_lo=0 ac_mid=0
9519  while :; do
9520    cat >conftest.$ac_ext <<_ACEOF
9521/* confdefs.h.  */
9522_ACEOF
9523cat confdefs.h >>conftest.$ac_ext
9524cat >>conftest.$ac_ext <<_ACEOF
9525/* end confdefs.h.  */
9526#include <stddef.h>
9527int
9528main ()
9529{
9530static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9531test_array [0] = 0
9532
9533  ;
9534  return 0;
9535}
9536_ACEOF
9537rm -f conftest.$ac_objext
9538if { (ac_try="$ac_compile"
9539case "(($ac_try" in
9540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541  *) ac_try_echo=$ac_try;;
9542esac
9543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544  (eval "$ac_compile") 2>conftest.er1
9545  ac_status=$?
9546  grep -v '^ *+' conftest.er1 >conftest.err
9547  rm -f conftest.er1
9548  cat conftest.err >&5
9549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550  (exit $ac_status); } && {
9551	 test -z "$ac_c_werror_flag" ||
9552	 test ! -s conftest.err
9553       } && test -s conftest.$ac_objext; then
9554  ac_hi=$ac_mid; break
9555else
9556  echo "$as_me: failed program was:" >&5
9557sed 's/^/| /' conftest.$ac_ext >&5
9558
9559	ac_lo=`expr $ac_mid + 1`
9560			if test $ac_lo -le $ac_mid; then
9561			  ac_lo= ac_hi=
9562			  break
9563			fi
9564			ac_mid=`expr 2 '*' $ac_mid + 1`
9565fi
9566
9567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568  done
9569else
9570  echo "$as_me: failed program was:" >&5
9571sed 's/^/| /' conftest.$ac_ext >&5
9572
9573	cat >conftest.$ac_ext <<_ACEOF
9574/* confdefs.h.  */
9575_ACEOF
9576cat confdefs.h >>conftest.$ac_ext
9577cat >>conftest.$ac_ext <<_ACEOF
9578/* end confdefs.h.  */
9579#include <stddef.h>
9580int
9581main ()
9582{
9583static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9584test_array [0] = 0
9585
9586  ;
9587  return 0;
9588}
9589_ACEOF
9590rm -f conftest.$ac_objext
9591if { (ac_try="$ac_compile"
9592case "(($ac_try" in
9593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594  *) ac_try_echo=$ac_try;;
9595esac
9596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597  (eval "$ac_compile") 2>conftest.er1
9598  ac_status=$?
9599  grep -v '^ *+' conftest.er1 >conftest.err
9600  rm -f conftest.er1
9601  cat conftest.err >&5
9602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603  (exit $ac_status); } && {
9604	 test -z "$ac_c_werror_flag" ||
9605	 test ! -s conftest.err
9606       } && test -s conftest.$ac_objext; then
9607  ac_hi=-1 ac_mid=-1
9608  while :; do
9609    cat >conftest.$ac_ext <<_ACEOF
9610/* confdefs.h.  */
9611_ACEOF
9612cat confdefs.h >>conftest.$ac_ext
9613cat >>conftest.$ac_ext <<_ACEOF
9614/* end confdefs.h.  */
9615#include <stddef.h>
9616int
9617main ()
9618{
9619static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9620test_array [0] = 0
9621
9622  ;
9623  return 0;
9624}
9625_ACEOF
9626rm -f conftest.$ac_objext
9627if { (ac_try="$ac_compile"
9628case "(($ac_try" in
9629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630  *) ac_try_echo=$ac_try;;
9631esac
9632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633  (eval "$ac_compile") 2>conftest.er1
9634  ac_status=$?
9635  grep -v '^ *+' conftest.er1 >conftest.err
9636  rm -f conftest.er1
9637  cat conftest.err >&5
9638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639  (exit $ac_status); } && {
9640	 test -z "$ac_c_werror_flag" ||
9641	 test ! -s conftest.err
9642       } && test -s conftest.$ac_objext; then
9643  ac_lo=$ac_mid; break
9644else
9645  echo "$as_me: failed program was:" >&5
9646sed 's/^/| /' conftest.$ac_ext >&5
9647
9648	ac_hi=`expr '(' $ac_mid ')' - 1`
9649			if test $ac_mid -le $ac_hi; then
9650			  ac_lo= ac_hi=
9651			  break
9652			fi
9653			ac_mid=`expr 2 '*' $ac_mid`
9654fi
9655
9656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9657  done
9658else
9659  echo "$as_me: failed program was:" >&5
9660sed 's/^/| /' conftest.$ac_ext >&5
9661
9662	ac_lo= ac_hi=
9663fi
9664
9665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666fi
9667
9668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9669# Binary search between lo and hi bounds.
9670while test "x$ac_lo" != "x$ac_hi"; do
9671  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9672  cat >conftest.$ac_ext <<_ACEOF
9673/* confdefs.h.  */
9674_ACEOF
9675cat confdefs.h >>conftest.$ac_ext
9676cat >>conftest.$ac_ext <<_ACEOF
9677/* end confdefs.h.  */
9678#include <stddef.h>
9679int
9680main ()
9681{
9682static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9683test_array [0] = 0
9684
9685  ;
9686  return 0;
9687}
9688_ACEOF
9689rm -f conftest.$ac_objext
9690if { (ac_try="$ac_compile"
9691case "(($ac_try" in
9692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693  *) ac_try_echo=$ac_try;;
9694esac
9695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696  (eval "$ac_compile") 2>conftest.er1
9697  ac_status=$?
9698  grep -v '^ *+' conftest.er1 >conftest.err
9699  rm -f conftest.er1
9700  cat conftest.err >&5
9701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702  (exit $ac_status); } && {
9703	 test -z "$ac_c_werror_flag" ||
9704	 test ! -s conftest.err
9705       } && test -s conftest.$ac_objext; then
9706  ac_hi=$ac_mid
9707else
9708  echo "$as_me: failed program was:" >&5
9709sed 's/^/| /' conftest.$ac_ext >&5
9710
9711	ac_lo=`expr '(' $ac_mid ')' + 1`
9712fi
9713
9714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715done
9716case $ac_lo in
9717?*) res_hi=$ac_lo;;
9718'') result=? ;;
9719esac
9720else
9721  cat >conftest.$ac_ext <<_ACEOF
9722/* confdefs.h.  */
9723_ACEOF
9724cat confdefs.h >>conftest.$ac_ext
9725cat >>conftest.$ac_ext <<_ACEOF
9726/* end confdefs.h.  */
9727#include <stddef.h>
9728static long int longval () { return ~(size_t)0 / 10; }
9729static unsigned long int ulongval () { return ~(size_t)0 / 10; }
9730#include <stdio.h>
9731#include <stdlib.h>
9732int
9733main ()
9734{
9735
9736  FILE *f = fopen ("conftest.val", "w");
9737  if (! f)
9738    return 1;
9739  if ((~(size_t)0 / 10) < 0)
9740    {
9741      long int i = longval ();
9742      if (i != (~(size_t)0 / 10))
9743	return 1;
9744      fprintf (f, "%ld\n", i);
9745    }
9746  else
9747    {
9748      unsigned long int i = ulongval ();
9749      if (i != (~(size_t)0 / 10))
9750	return 1;
9751      fprintf (f, "%lu\n", i);
9752    }
9753  return ferror (f) || fclose (f) != 0;
9754
9755  ;
9756  return 0;
9757}
9758_ACEOF
9759rm -f conftest$ac_exeext
9760if { (ac_try="$ac_link"
9761case "(($ac_try" in
9762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763  *) ac_try_echo=$ac_try;;
9764esac
9765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766  (eval "$ac_link") 2>&5
9767  ac_status=$?
9768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9770  { (case "(($ac_try" in
9771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772  *) ac_try_echo=$ac_try;;
9773esac
9774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775  (eval "$ac_try") 2>&5
9776  ac_status=$?
9777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778  (exit $ac_status); }; }; then
9779  res_hi=`cat conftest.val`
9780else
9781  echo "$as_me: program exited with status $ac_status" >&5
9782echo "$as_me: failed program was:" >&5
9783sed 's/^/| /' conftest.$ac_ext >&5
9784
9785( exit $ac_status )
9786result=?
9787fi
9788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9789fi
9790rm -f conftest.val
9791
9792    if test "$cross_compiling" = yes; then
9793  # Depending upon the size, compute the lo and hi bounds.
9794cat >conftest.$ac_ext <<_ACEOF
9795/* confdefs.h.  */
9796_ACEOF
9797cat confdefs.h >>conftest.$ac_ext
9798cat >>conftest.$ac_ext <<_ACEOF
9799/* end confdefs.h.  */
9800#include <stddef.h>
9801int
9802main ()
9803{
9804static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9805test_array [0] = 0
9806
9807  ;
9808  return 0;
9809}
9810_ACEOF
9811rm -f conftest.$ac_objext
9812if { (ac_try="$ac_compile"
9813case "(($ac_try" in
9814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815  *) ac_try_echo=$ac_try;;
9816esac
9817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818  (eval "$ac_compile") 2>conftest.er1
9819  ac_status=$?
9820  grep -v '^ *+' conftest.er1 >conftest.err
9821  rm -f conftest.er1
9822  cat conftest.err >&5
9823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824  (exit $ac_status); } && {
9825	 test -z "$ac_c_werror_flag" ||
9826	 test ! -s conftest.err
9827       } && test -s conftest.$ac_objext; then
9828  ac_lo=0 ac_mid=0
9829  while :; do
9830    cat >conftest.$ac_ext <<_ACEOF
9831/* confdefs.h.  */
9832_ACEOF
9833cat confdefs.h >>conftest.$ac_ext
9834cat >>conftest.$ac_ext <<_ACEOF
9835/* end confdefs.h.  */
9836#include <stddef.h>
9837int
9838main ()
9839{
9840static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9841test_array [0] = 0
9842
9843  ;
9844  return 0;
9845}
9846_ACEOF
9847rm -f conftest.$ac_objext
9848if { (ac_try="$ac_compile"
9849case "(($ac_try" in
9850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851  *) ac_try_echo=$ac_try;;
9852esac
9853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9854  (eval "$ac_compile") 2>conftest.er1
9855  ac_status=$?
9856  grep -v '^ *+' conftest.er1 >conftest.err
9857  rm -f conftest.er1
9858  cat conftest.err >&5
9859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860  (exit $ac_status); } && {
9861	 test -z "$ac_c_werror_flag" ||
9862	 test ! -s conftest.err
9863       } && test -s conftest.$ac_objext; then
9864  ac_hi=$ac_mid; break
9865else
9866  echo "$as_me: failed program was:" >&5
9867sed 's/^/| /' conftest.$ac_ext >&5
9868
9869	ac_lo=`expr $ac_mid + 1`
9870			if test $ac_lo -le $ac_mid; then
9871			  ac_lo= ac_hi=
9872			  break
9873			fi
9874			ac_mid=`expr 2 '*' $ac_mid + 1`
9875fi
9876
9877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9878  done
9879else
9880  echo "$as_me: failed program was:" >&5
9881sed 's/^/| /' conftest.$ac_ext >&5
9882
9883	cat >conftest.$ac_ext <<_ACEOF
9884/* confdefs.h.  */
9885_ACEOF
9886cat confdefs.h >>conftest.$ac_ext
9887cat >>conftest.$ac_ext <<_ACEOF
9888/* end confdefs.h.  */
9889#include <stddef.h>
9890int
9891main ()
9892{
9893static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9894test_array [0] = 0
9895
9896  ;
9897  return 0;
9898}
9899_ACEOF
9900rm -f conftest.$ac_objext
9901if { (ac_try="$ac_compile"
9902case "(($ac_try" in
9903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904  *) ac_try_echo=$ac_try;;
9905esac
9906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907  (eval "$ac_compile") 2>conftest.er1
9908  ac_status=$?
9909  grep -v '^ *+' conftest.er1 >conftest.err
9910  rm -f conftest.er1
9911  cat conftest.err >&5
9912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913  (exit $ac_status); } && {
9914	 test -z "$ac_c_werror_flag" ||
9915	 test ! -s conftest.err
9916       } && test -s conftest.$ac_objext; then
9917  ac_hi=-1 ac_mid=-1
9918  while :; do
9919    cat >conftest.$ac_ext <<_ACEOF
9920/* confdefs.h.  */
9921_ACEOF
9922cat confdefs.h >>conftest.$ac_ext
9923cat >>conftest.$ac_ext <<_ACEOF
9924/* end confdefs.h.  */
9925#include <stddef.h>
9926int
9927main ()
9928{
9929static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9930test_array [0] = 0
9931
9932  ;
9933  return 0;
9934}
9935_ACEOF
9936rm -f conftest.$ac_objext
9937if { (ac_try="$ac_compile"
9938case "(($ac_try" in
9939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940  *) ac_try_echo=$ac_try;;
9941esac
9942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943  (eval "$ac_compile") 2>conftest.er1
9944  ac_status=$?
9945  grep -v '^ *+' conftest.er1 >conftest.err
9946  rm -f conftest.er1
9947  cat conftest.err >&5
9948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949  (exit $ac_status); } && {
9950	 test -z "$ac_c_werror_flag" ||
9951	 test ! -s conftest.err
9952       } && test -s conftest.$ac_objext; then
9953  ac_lo=$ac_mid; break
9954else
9955  echo "$as_me: failed program was:" >&5
9956sed 's/^/| /' conftest.$ac_ext >&5
9957
9958	ac_hi=`expr '(' $ac_mid ')' - 1`
9959			if test $ac_mid -le $ac_hi; then
9960			  ac_lo= ac_hi=
9961			  break
9962			fi
9963			ac_mid=`expr 2 '*' $ac_mid`
9964fi
9965
9966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967  done
9968else
9969  echo "$as_me: failed program was:" >&5
9970sed 's/^/| /' conftest.$ac_ext >&5
9971
9972	ac_lo= ac_hi=
9973fi
9974
9975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9976fi
9977
9978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979# Binary search between lo and hi bounds.
9980while test "x$ac_lo" != "x$ac_hi"; do
9981  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9982  cat >conftest.$ac_ext <<_ACEOF
9983/* confdefs.h.  */
9984_ACEOF
9985cat confdefs.h >>conftest.$ac_ext
9986cat >>conftest.$ac_ext <<_ACEOF
9987/* end confdefs.h.  */
9988#include <stddef.h>
9989int
9990main ()
9991{
9992static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9993test_array [0] = 0
9994
9995  ;
9996  return 0;
9997}
9998_ACEOF
9999rm -f conftest.$ac_objext
10000if { (ac_try="$ac_compile"
10001case "(($ac_try" in
10002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003  *) ac_try_echo=$ac_try;;
10004esac
10005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006  (eval "$ac_compile") 2>conftest.er1
10007  ac_status=$?
10008  grep -v '^ *+' conftest.er1 >conftest.err
10009  rm -f conftest.er1
10010  cat conftest.err >&5
10011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012  (exit $ac_status); } && {
10013	 test -z "$ac_c_werror_flag" ||
10014	 test ! -s conftest.err
10015       } && test -s conftest.$ac_objext; then
10016  ac_hi=$ac_mid
10017else
10018  echo "$as_me: failed program was:" >&5
10019sed 's/^/| /' conftest.$ac_ext >&5
10020
10021	ac_lo=`expr '(' $ac_mid ')' + 1`
10022fi
10023
10024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10025done
10026case $ac_lo in
10027?*) res_lo=$ac_lo;;
10028'') result=? ;;
10029esac
10030else
10031  cat >conftest.$ac_ext <<_ACEOF
10032/* confdefs.h.  */
10033_ACEOF
10034cat confdefs.h >>conftest.$ac_ext
10035cat >>conftest.$ac_ext <<_ACEOF
10036/* end confdefs.h.  */
10037#include <stddef.h>
10038static long int longval () { return ~(size_t)0 % 10; }
10039static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10040#include <stdio.h>
10041#include <stdlib.h>
10042int
10043main ()
10044{
10045
10046  FILE *f = fopen ("conftest.val", "w");
10047  if (! f)
10048    return 1;
10049  if ((~(size_t)0 % 10) < 0)
10050    {
10051      long int i = longval ();
10052      if (i != (~(size_t)0 % 10))
10053	return 1;
10054      fprintf (f, "%ld\n", i);
10055    }
10056  else
10057    {
10058      unsigned long int i = ulongval ();
10059      if (i != (~(size_t)0 % 10))
10060	return 1;
10061      fprintf (f, "%lu\n", i);
10062    }
10063  return ferror (f) || fclose (f) != 0;
10064
10065  ;
10066  return 0;
10067}
10068_ACEOF
10069rm -f conftest$ac_exeext
10070if { (ac_try="$ac_link"
10071case "(($ac_try" in
10072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073  *) ac_try_echo=$ac_try;;
10074esac
10075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076  (eval "$ac_link") 2>&5
10077  ac_status=$?
10078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10080  { (case "(($ac_try" in
10081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082  *) ac_try_echo=$ac_try;;
10083esac
10084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085  (eval "$ac_try") 2>&5
10086  ac_status=$?
10087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088  (exit $ac_status); }; }; then
10089  res_lo=`cat conftest.val`
10090else
10091  echo "$as_me: program exited with status $ac_status" >&5
10092echo "$as_me: failed program was:" >&5
10093sed 's/^/| /' conftest.$ac_ext >&5
10094
10095( exit $ac_status )
10096result=?
10097fi
10098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10099fi
10100rm -f conftest.val
10101
10102    if test "$cross_compiling" = yes; then
10103  # Depending upon the size, compute the lo and hi bounds.
10104cat >conftest.$ac_ext <<_ACEOF
10105/* confdefs.h.  */
10106_ACEOF
10107cat confdefs.h >>conftest.$ac_ext
10108cat >>conftest.$ac_ext <<_ACEOF
10109/* end confdefs.h.  */
10110#include <stddef.h>
10111int
10112main ()
10113{
10114static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10115test_array [0] = 0
10116
10117  ;
10118  return 0;
10119}
10120_ACEOF
10121rm -f conftest.$ac_objext
10122if { (ac_try="$ac_compile"
10123case "(($ac_try" in
10124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125  *) ac_try_echo=$ac_try;;
10126esac
10127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128  (eval "$ac_compile") 2>conftest.er1
10129  ac_status=$?
10130  grep -v '^ *+' conftest.er1 >conftest.err
10131  rm -f conftest.er1
10132  cat conftest.err >&5
10133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134  (exit $ac_status); } && {
10135	 test -z "$ac_c_werror_flag" ||
10136	 test ! -s conftest.err
10137       } && test -s conftest.$ac_objext; then
10138  ac_lo=0 ac_mid=0
10139  while :; do
10140    cat >conftest.$ac_ext <<_ACEOF
10141/* confdefs.h.  */
10142_ACEOF
10143cat confdefs.h >>conftest.$ac_ext
10144cat >>conftest.$ac_ext <<_ACEOF
10145/* end confdefs.h.  */
10146#include <stddef.h>
10147int
10148main ()
10149{
10150static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10151test_array [0] = 0
10152
10153  ;
10154  return 0;
10155}
10156_ACEOF
10157rm -f conftest.$ac_objext
10158if { (ac_try="$ac_compile"
10159case "(($ac_try" in
10160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161  *) ac_try_echo=$ac_try;;
10162esac
10163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164  (eval "$ac_compile") 2>conftest.er1
10165  ac_status=$?
10166  grep -v '^ *+' conftest.er1 >conftest.err
10167  rm -f conftest.er1
10168  cat conftest.err >&5
10169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170  (exit $ac_status); } && {
10171	 test -z "$ac_c_werror_flag" ||
10172	 test ! -s conftest.err
10173       } && test -s conftest.$ac_objext; then
10174  ac_hi=$ac_mid; break
10175else
10176  echo "$as_me: failed program was:" >&5
10177sed 's/^/| /' conftest.$ac_ext >&5
10178
10179	ac_lo=`expr $ac_mid + 1`
10180			if test $ac_lo -le $ac_mid; then
10181			  ac_lo= ac_hi=
10182			  break
10183			fi
10184			ac_mid=`expr 2 '*' $ac_mid + 1`
10185fi
10186
10187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10188  done
10189else
10190  echo "$as_me: failed program was:" >&5
10191sed 's/^/| /' conftest.$ac_ext >&5
10192
10193	cat >conftest.$ac_ext <<_ACEOF
10194/* confdefs.h.  */
10195_ACEOF
10196cat confdefs.h >>conftest.$ac_ext
10197cat >>conftest.$ac_ext <<_ACEOF
10198/* end confdefs.h.  */
10199#include <stddef.h>
10200int
10201main ()
10202{
10203static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10204test_array [0] = 0
10205
10206  ;
10207  return 0;
10208}
10209_ACEOF
10210rm -f conftest.$ac_objext
10211if { (ac_try="$ac_compile"
10212case "(($ac_try" in
10213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214  *) ac_try_echo=$ac_try;;
10215esac
10216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217  (eval "$ac_compile") 2>conftest.er1
10218  ac_status=$?
10219  grep -v '^ *+' conftest.er1 >conftest.err
10220  rm -f conftest.er1
10221  cat conftest.err >&5
10222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223  (exit $ac_status); } && {
10224	 test -z "$ac_c_werror_flag" ||
10225	 test ! -s conftest.err
10226       } && test -s conftest.$ac_objext; then
10227  ac_hi=-1 ac_mid=-1
10228  while :; do
10229    cat >conftest.$ac_ext <<_ACEOF
10230/* confdefs.h.  */
10231_ACEOF
10232cat confdefs.h >>conftest.$ac_ext
10233cat >>conftest.$ac_ext <<_ACEOF
10234/* end confdefs.h.  */
10235#include <stddef.h>
10236int
10237main ()
10238{
10239static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10240test_array [0] = 0
10241
10242  ;
10243  return 0;
10244}
10245_ACEOF
10246rm -f conftest.$ac_objext
10247if { (ac_try="$ac_compile"
10248case "(($ac_try" in
10249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250  *) ac_try_echo=$ac_try;;
10251esac
10252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253  (eval "$ac_compile") 2>conftest.er1
10254  ac_status=$?
10255  grep -v '^ *+' conftest.er1 >conftest.err
10256  rm -f conftest.er1
10257  cat conftest.err >&5
10258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259  (exit $ac_status); } && {
10260	 test -z "$ac_c_werror_flag" ||
10261	 test ! -s conftest.err
10262       } && test -s conftest.$ac_objext; then
10263  ac_lo=$ac_mid; break
10264else
10265  echo "$as_me: failed program was:" >&5
10266sed 's/^/| /' conftest.$ac_ext >&5
10267
10268	ac_hi=`expr '(' $ac_mid ')' - 1`
10269			if test $ac_mid -le $ac_hi; then
10270			  ac_lo= ac_hi=
10271			  break
10272			fi
10273			ac_mid=`expr 2 '*' $ac_mid`
10274fi
10275
10276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10277  done
10278else
10279  echo "$as_me: failed program was:" >&5
10280sed 's/^/| /' conftest.$ac_ext >&5
10281
10282	ac_lo= ac_hi=
10283fi
10284
10285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10286fi
10287
10288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10289# Binary search between lo and hi bounds.
10290while test "x$ac_lo" != "x$ac_hi"; do
10291  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10292  cat >conftest.$ac_ext <<_ACEOF
10293/* confdefs.h.  */
10294_ACEOF
10295cat confdefs.h >>conftest.$ac_ext
10296cat >>conftest.$ac_ext <<_ACEOF
10297/* end confdefs.h.  */
10298#include <stddef.h>
10299int
10300main ()
10301{
10302static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10303test_array [0] = 0
10304
10305  ;
10306  return 0;
10307}
10308_ACEOF
10309rm -f conftest.$ac_objext
10310if { (ac_try="$ac_compile"
10311case "(($ac_try" in
10312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313  *) ac_try_echo=$ac_try;;
10314esac
10315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316  (eval "$ac_compile") 2>conftest.er1
10317  ac_status=$?
10318  grep -v '^ *+' conftest.er1 >conftest.err
10319  rm -f conftest.er1
10320  cat conftest.err >&5
10321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322  (exit $ac_status); } && {
10323	 test -z "$ac_c_werror_flag" ||
10324	 test ! -s conftest.err
10325       } && test -s conftest.$ac_objext; then
10326  ac_hi=$ac_mid
10327else
10328  echo "$as_me: failed program was:" >&5
10329sed 's/^/| /' conftest.$ac_ext >&5
10330
10331	ac_lo=`expr '(' $ac_mid ')' + 1`
10332fi
10333
10334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10335done
10336case $ac_lo in
10337?*) fits_in_uint=$ac_lo;;
10338'') result=? ;;
10339esac
10340else
10341  cat >conftest.$ac_ext <<_ACEOF
10342/* confdefs.h.  */
10343_ACEOF
10344cat confdefs.h >>conftest.$ac_ext
10345cat >>conftest.$ac_ext <<_ACEOF
10346/* end confdefs.h.  */
10347#include <stddef.h>
10348static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10349static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10350#include <stdio.h>
10351#include <stdlib.h>
10352int
10353main ()
10354{
10355
10356  FILE *f = fopen ("conftest.val", "w");
10357  if (! f)
10358    return 1;
10359  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10360    {
10361      long int i = longval ();
10362      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10363	return 1;
10364      fprintf (f, "%ld\n", i);
10365    }
10366  else
10367    {
10368      unsigned long int i = ulongval ();
10369      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10370	return 1;
10371      fprintf (f, "%lu\n", i);
10372    }
10373  return ferror (f) || fclose (f) != 0;
10374
10375  ;
10376  return 0;
10377}
10378_ACEOF
10379rm -f conftest$ac_exeext
10380if { (ac_try="$ac_link"
10381case "(($ac_try" in
10382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383  *) ac_try_echo=$ac_try;;
10384esac
10385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386  (eval "$ac_link") 2>&5
10387  ac_status=$?
10388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10390  { (case "(($ac_try" in
10391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392  *) ac_try_echo=$ac_try;;
10393esac
10394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395  (eval "$ac_try") 2>&5
10396  ac_status=$?
10397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398  (exit $ac_status); }; }; then
10399  fits_in_uint=`cat conftest.val`
10400else
10401  echo "$as_me: program exited with status $ac_status" >&5
10402echo "$as_me: failed program was:" >&5
10403sed 's/^/| /' conftest.$ac_ext >&5
10404
10405( exit $ac_status )
10406result=?
10407fi
10408rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10409fi
10410rm -f conftest.val
10411
10412    if test "$fits_in_uint" = 1; then
10413                  cat >conftest.$ac_ext <<_ACEOF
10414/* confdefs.h.  */
10415_ACEOF
10416cat confdefs.h >>conftest.$ac_ext
10417cat >>conftest.$ac_ext <<_ACEOF
10418/* end confdefs.h.  */
10419#include <stddef.h>
10420        extern size_t foo;
10421        extern unsigned long foo;
10422
10423int
10424main ()
10425{
10426
10427  ;
10428  return 0;
10429}
10430_ACEOF
10431rm -f conftest.$ac_objext
10432if { (ac_try="$ac_compile"
10433case "(($ac_try" in
10434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435  *) ac_try_echo=$ac_try;;
10436esac
10437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438  (eval "$ac_compile") 2>conftest.er1
10439  ac_status=$?
10440  grep -v '^ *+' conftest.er1 >conftest.err
10441  rm -f conftest.er1
10442  cat conftest.err >&5
10443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444  (exit $ac_status); } && {
10445	 test -z "$ac_c_werror_flag" ||
10446	 test ! -s conftest.err
10447       } && test -s conftest.$ac_objext; then
10448  fits_in_uint=0
10449else
10450  echo "$as_me: failed program was:" >&5
10451sed 's/^/| /' conftest.$ac_ext >&5
10452
10453
10454fi
10455
10456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10457    fi
10458    if test -z "$result"; then
10459      if test "$fits_in_uint" = 1; then
10460        result="$res_hi$res_lo"U
10461      else
10462        result="$res_hi$res_lo"UL
10463      fi
10464    else
10465            result='~(size_t)0'
10466    fi
10467  fi
10468  { echo "$as_me:$LINENO: result: $result" >&5
10469echo "${ECHO_T}$result" >&6; }
10470  if test "$result" != yes; then
10471
10472cat >>confdefs.h <<_ACEOF
10473#define SIZE_MAX $result
10474_ACEOF
10475
10476  fi
10477
10478
10479
10480
10481for ac_header in stdint.h
10482do
10483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10484if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10485  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10488  echo $ECHO_N "(cached) $ECHO_C" >&6
10489fi
10490ac_res=`eval echo '${'$as_ac_Header'}'`
10491	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10492echo "${ECHO_T}$ac_res" >&6; }
10493else
10494  # Is the header compilable?
10495{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10496echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10497cat >conftest.$ac_ext <<_ACEOF
10498/* confdefs.h.  */
10499_ACEOF
10500cat confdefs.h >>conftest.$ac_ext
10501cat >>conftest.$ac_ext <<_ACEOF
10502/* end confdefs.h.  */
10503$ac_includes_default
10504#include <$ac_header>
10505_ACEOF
10506rm -f conftest.$ac_objext
10507if { (ac_try="$ac_compile"
10508case "(($ac_try" in
10509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510  *) ac_try_echo=$ac_try;;
10511esac
10512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513  (eval "$ac_compile") 2>conftest.er1
10514  ac_status=$?
10515  grep -v '^ *+' conftest.er1 >conftest.err
10516  rm -f conftest.er1
10517  cat conftest.err >&5
10518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519  (exit $ac_status); } && {
10520	 test -z "$ac_c_werror_flag" ||
10521	 test ! -s conftest.err
10522       } && test -s conftest.$ac_objext; then
10523  ac_header_compiler=yes
10524else
10525  echo "$as_me: failed program was:" >&5
10526sed 's/^/| /' conftest.$ac_ext >&5
10527
10528	ac_header_compiler=no
10529fi
10530
10531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10532{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10533echo "${ECHO_T}$ac_header_compiler" >&6; }
10534
10535# Is the header present?
10536{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10537echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10538cat >conftest.$ac_ext <<_ACEOF
10539/* confdefs.h.  */
10540_ACEOF
10541cat confdefs.h >>conftest.$ac_ext
10542cat >>conftest.$ac_ext <<_ACEOF
10543/* end confdefs.h.  */
10544#include <$ac_header>
10545_ACEOF
10546if { (ac_try="$ac_cpp conftest.$ac_ext"
10547case "(($ac_try" in
10548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549  *) ac_try_echo=$ac_try;;
10550esac
10551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10553  ac_status=$?
10554  grep -v '^ *+' conftest.er1 >conftest.err
10555  rm -f conftest.er1
10556  cat conftest.err >&5
10557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558  (exit $ac_status); } >/dev/null && {
10559	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10560	 test ! -s conftest.err
10561       }; then
10562  ac_header_preproc=yes
10563else
10564  echo "$as_me: failed program was:" >&5
10565sed 's/^/| /' conftest.$ac_ext >&5
10566
10567  ac_header_preproc=no
10568fi
10569
10570rm -f conftest.err conftest.$ac_ext
10571{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10572echo "${ECHO_T}$ac_header_preproc" >&6; }
10573
10574# So?  What about this header?
10575case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10576  yes:no: )
10577    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10578echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10579    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10580echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10581    ac_header_preproc=yes
10582    ;;
10583  no:yes:* )
10584    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10585echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10586    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10587echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10588    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10589echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10590    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10591echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10592    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10593echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10594    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10595echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10596    ( cat <<\_ASBOX
10597## --------------------------------------- ##
10598## Report this to cedric.bregardis@free.fr ##
10599## --------------------------------------- ##
10600_ASBOX
10601     ) | sed "s/^/$as_me: WARNING:     /" >&2
10602    ;;
10603esac
10604{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10606if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10607  echo $ECHO_N "(cached) $ECHO_C" >&6
10608else
10609  eval "$as_ac_Header=\$ac_header_preproc"
10610fi
10611ac_res=`eval echo '${'$as_ac_Header'}'`
10612	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10613echo "${ECHO_T}$ac_res" >&6; }
10614
10615fi
10616if test `eval echo '${'$as_ac_Header'}'` = yes; then
10617  cat >>confdefs.h <<_ACEOF
10618#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10619_ACEOF
10620
10621fi
10622
10623done
10624
10625
10626
10627      if test "X$prefix" = "XNONE"; then
10628    acl_final_prefix="$ac_default_prefix"
10629  else
10630    acl_final_prefix="$prefix"
10631  fi
10632  if test "X$exec_prefix" = "XNONE"; then
10633    acl_final_exec_prefix='${prefix}'
10634  else
10635    acl_final_exec_prefix="$exec_prefix"
10636  fi
10637  acl_save_prefix="$prefix"
10638  prefix="$acl_final_prefix"
10639  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10640  prefix="$acl_save_prefix"
10641
10642
10643# Check whether --with-gnu-ld was given.
10644if test "${with_gnu_ld+set}" = set; then
10645  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10646else
10647  with_gnu_ld=no
10648fi
10649
10650# Prepare PATH_SEPARATOR.
10651# The user is always right.
10652if test "${PATH_SEPARATOR+set}" != set; then
10653  echo "#! /bin/sh" >conf$$.sh
10654  echo  "exit 0"   >>conf$$.sh
10655  chmod +x conf$$.sh
10656  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10657    PATH_SEPARATOR=';'
10658  else
10659    PATH_SEPARATOR=:
10660  fi
10661  rm -f conf$$.sh
10662fi
10663ac_prog=ld
10664if test "$GCC" = yes; then
10665  # Check if gcc -print-prog-name=ld gives a path.
10666  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10667echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
10668  case $host in
10669  *-*-mingw*)
10670    # gcc leaves a trailing carriage return which upsets mingw
10671    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10672  *)
10673    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10674  esac
10675  case $ac_prog in
10676    # Accept absolute paths.
10677    [\\/]* | [A-Za-z]:[\\/]*)
10678      re_direlt='/[^/][^/]*/\.\./'
10679      # Canonicalize the path of ld
10680      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10681      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10682	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10683      done
10684      test -z "$LD" && LD="$ac_prog"
10685      ;;
10686  "")
10687    # If it fails, then pretend we aren't using GCC.
10688    ac_prog=ld
10689    ;;
10690  *)
10691    # If it is relative, then search for the first ld in PATH.
10692    with_gnu_ld=unknown
10693    ;;
10694  esac
10695elif test "$with_gnu_ld" = yes; then
10696  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10697echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10698else
10699  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10700echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10701fi
10702if test "${acl_cv_path_LD+set}" = set; then
10703  echo $ECHO_N "(cached) $ECHO_C" >&6
10704else
10705  if test -z "$LD"; then
10706  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10707  for ac_dir in $PATH; do
10708    test -z "$ac_dir" && ac_dir=.
10709    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10710      acl_cv_path_LD="$ac_dir/$ac_prog"
10711      # Check to see if the program is GNU ld.  I'd rather use --version,
10712      # but apparently some GNU ld's only accept -v.
10713      # Break only if it was the GNU/non-GNU ld that we prefer.
10714      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10715      *GNU* | *'with BFD'*)
10716	test "$with_gnu_ld" != no && break ;;
10717      *)
10718	test "$with_gnu_ld" != yes && break ;;
10719      esac
10720    fi
10721  done
10722  IFS="$ac_save_ifs"
10723else
10724  acl_cv_path_LD="$LD" # Let the user override the test with a path.
10725fi
10726fi
10727
10728LD="$acl_cv_path_LD"
10729if test -n "$LD"; then
10730  { echo "$as_me:$LINENO: result: $LD" >&5
10731echo "${ECHO_T}$LD" >&6; }
10732else
10733  { echo "$as_me:$LINENO: result: no" >&5
10734echo "${ECHO_T}no" >&6; }
10735fi
10736test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10737echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10738   { (exit 1); exit 1; }; }
10739{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10740echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10741if test "${acl_cv_prog_gnu_ld+set}" = set; then
10742  echo $ECHO_N "(cached) $ECHO_C" >&6
10743else
10744  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10745case `$LD -v 2>&1 </dev/null` in
10746*GNU* | *'with BFD'*)
10747  acl_cv_prog_gnu_ld=yes ;;
10748*)
10749  acl_cv_prog_gnu_ld=no ;;
10750esac
10751fi
10752{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10753echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
10754with_gnu_ld=$acl_cv_prog_gnu_ld
10755
10756
10757
10758                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10759echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
10760if test "${acl_cv_rpath+set}" = set; then
10761  echo $ECHO_N "(cached) $ECHO_C" >&6
10762else
10763
10764    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10765    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10766    . ./conftest.sh
10767    rm -f ./conftest.sh
10768    acl_cv_rpath=done
10769
10770fi
10771{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10772echo "${ECHO_T}$acl_cv_rpath" >&6; }
10773  wl="$acl_cv_wl"
10774  libext="$acl_cv_libext"
10775  shlibext="$acl_cv_shlibext"
10776  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10777  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10778  hardcode_direct="$acl_cv_hardcode_direct"
10779  hardcode_minus_L="$acl_cv_hardcode_minus_L"
10780    # Check whether --enable-rpath was given.
10781if test "${enable_rpath+set}" = set; then
10782  enableval=$enable_rpath; :
10783else
10784  enable_rpath=yes
10785fi
10786
10787
10788
10789
10790
10791
10792
10793
10794    use_additional=yes
10795
10796  acl_save_prefix="$prefix"
10797  prefix="$acl_final_prefix"
10798  acl_save_exec_prefix="$exec_prefix"
10799  exec_prefix="$acl_final_exec_prefix"
10800
10801    eval additional_includedir=\"$includedir\"
10802    eval additional_libdir=\"$libdir\"
10803
10804  exec_prefix="$acl_save_exec_prefix"
10805  prefix="$acl_save_prefix"
10806
10807
10808# Check whether --with-libiconv-prefix was given.
10809if test "${with_libiconv_prefix+set}" = set; then
10810  withval=$with_libiconv_prefix;
10811    if test "X$withval" = "Xno"; then
10812      use_additional=no
10813    else
10814      if test "X$withval" = "X"; then
10815
10816  acl_save_prefix="$prefix"
10817  prefix="$acl_final_prefix"
10818  acl_save_exec_prefix="$exec_prefix"
10819  exec_prefix="$acl_final_exec_prefix"
10820
10821          eval additional_includedir=\"$includedir\"
10822          eval additional_libdir=\"$libdir\"
10823
10824  exec_prefix="$acl_save_exec_prefix"
10825  prefix="$acl_save_prefix"
10826
10827      else
10828        additional_includedir="$withval/include"
10829        additional_libdir="$withval/lib"
10830      fi
10831    fi
10832
10833fi
10834
10835      LIBICONV=
10836  LTLIBICONV=
10837  INCICONV=
10838  rpathdirs=
10839  ltrpathdirs=
10840  names_already_handled=
10841  names_next_round='iconv '
10842  while test -n "$names_next_round"; do
10843    names_this_round="$names_next_round"
10844    names_next_round=
10845    for name in $names_this_round; do
10846      already_handled=
10847      for n in $names_already_handled; do
10848        if test "$n" = "$name"; then
10849          already_handled=yes
10850          break
10851        fi
10852      done
10853      if test -z "$already_handled"; then
10854        names_already_handled="$names_already_handled $name"
10855                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10856        eval value=\"\$HAVE_LIB$uppername\"
10857        if test -n "$value"; then
10858          if test "$value" = yes; then
10859            eval value=\"\$LIB$uppername\"
10860            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10861            eval value=\"\$LTLIB$uppername\"
10862            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10863          else
10864                                    :
10865          fi
10866        else
10867                              found_dir=
10868          found_la=
10869          found_so=
10870          found_a=
10871          if test $use_additional = yes; then
10872            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10873              found_dir="$additional_libdir"
10874              found_so="$additional_libdir/lib$name.$shlibext"
10875              if test -f "$additional_libdir/lib$name.la"; then
10876                found_la="$additional_libdir/lib$name.la"
10877              fi
10878            else
10879              if test -f "$additional_libdir/lib$name.$libext"; then
10880                found_dir="$additional_libdir"
10881                found_a="$additional_libdir/lib$name.$libext"
10882                if test -f "$additional_libdir/lib$name.la"; then
10883                  found_la="$additional_libdir/lib$name.la"
10884                fi
10885              fi
10886            fi
10887          fi
10888          if test "X$found_dir" = "X"; then
10889            for x in $LDFLAGS $LTLIBICONV; do
10890
10891  acl_save_prefix="$prefix"
10892  prefix="$acl_final_prefix"
10893  acl_save_exec_prefix="$exec_prefix"
10894  exec_prefix="$acl_final_exec_prefix"
10895  eval x=\"$x\"
10896  exec_prefix="$acl_save_exec_prefix"
10897  prefix="$acl_save_prefix"
10898
10899              case "$x" in
10900                -L*)
10901                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10902                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10903                    found_dir="$dir"
10904                    found_so="$dir/lib$name.$shlibext"
10905                    if test -f "$dir/lib$name.la"; then
10906                      found_la="$dir/lib$name.la"
10907                    fi
10908                  else
10909                    if test -f "$dir/lib$name.$libext"; then
10910                      found_dir="$dir"
10911                      found_a="$dir/lib$name.$libext"
10912                      if test -f "$dir/lib$name.la"; then
10913                        found_la="$dir/lib$name.la"
10914                      fi
10915                    fi
10916                  fi
10917                  ;;
10918              esac
10919              if test "X$found_dir" != "X"; then
10920                break
10921              fi
10922            done
10923          fi
10924          if test "X$found_dir" != "X"; then
10925                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10926            if test "X$found_so" != "X"; then
10927                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10928                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10929              else
10930                                                                                haveit=
10931                for x in $ltrpathdirs; do
10932                  if test "X$x" = "X$found_dir"; then
10933                    haveit=yes
10934                    break
10935                  fi
10936                done
10937                if test -z "$haveit"; then
10938                  ltrpathdirs="$ltrpathdirs $found_dir"
10939                fi
10940                                if test "$hardcode_direct" = yes; then
10941                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10942                else
10943                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10944                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10945                                                            haveit=
10946                    for x in $rpathdirs; do
10947                      if test "X$x" = "X$found_dir"; then
10948                        haveit=yes
10949                        break
10950                      fi
10951                    done
10952                    if test -z "$haveit"; then
10953                      rpathdirs="$rpathdirs $found_dir"
10954                    fi
10955                  else
10956                                                                                haveit=
10957                    for x in $LDFLAGS $LIBICONV; do
10958
10959  acl_save_prefix="$prefix"
10960  prefix="$acl_final_prefix"
10961  acl_save_exec_prefix="$exec_prefix"
10962  exec_prefix="$acl_final_exec_prefix"
10963  eval x=\"$x\"
10964  exec_prefix="$acl_save_exec_prefix"
10965  prefix="$acl_save_prefix"
10966
10967                      if test "X$x" = "X-L$found_dir"; then
10968                        haveit=yes
10969                        break
10970                      fi
10971                    done
10972                    if test -z "$haveit"; then
10973                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10974                    fi
10975                    if test "$hardcode_minus_L" != no; then
10976                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10977                    else
10978                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10979                    fi
10980                  fi
10981                fi
10982              fi
10983            else
10984              if test "X$found_a" != "X"; then
10985                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10986              else
10987                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10988              fi
10989            fi
10990                        additional_includedir=
10991            case "$found_dir" in
10992              */lib | */lib/)
10993                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10994                additional_includedir="$basedir/include"
10995                ;;
10996            esac
10997            if test "X$additional_includedir" != "X"; then
10998                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10999                haveit=
11000                if test "X$additional_includedir" = "X/usr/local/include"; then
11001                  if test -n "$GCC"; then
11002                    case $host_os in
11003                      linux*) haveit=yes;;
11004                    esac
11005                  fi
11006                fi
11007                if test -z "$haveit"; then
11008                  for x in $CPPFLAGS $INCICONV; do
11009
11010  acl_save_prefix="$prefix"
11011  prefix="$acl_final_prefix"
11012  acl_save_exec_prefix="$exec_prefix"
11013  exec_prefix="$acl_final_exec_prefix"
11014  eval x=\"$x\"
11015  exec_prefix="$acl_save_exec_prefix"
11016  prefix="$acl_save_prefix"
11017
11018                    if test "X$x" = "X-I$additional_includedir"; then
11019                      haveit=yes
11020                      break
11021                    fi
11022                  done
11023                  if test -z "$haveit"; then
11024                    if test -d "$additional_includedir"; then
11025                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11026                    fi
11027                  fi
11028                fi
11029              fi
11030            fi
11031                        if test -n "$found_la"; then
11032                                                        save_libdir="$libdir"
11033              case "$found_la" in
11034                */* | *\\*) . "$found_la" ;;
11035                *) . "./$found_la" ;;
11036              esac
11037              libdir="$save_libdir"
11038                            for dep in $dependency_libs; do
11039                case "$dep" in
11040                  -L*)
11041                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11042                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
11043                      haveit=
11044                      if test "X$additional_libdir" = "X/usr/local/lib"; then
11045                        if test -n "$GCC"; then
11046                          case $host_os in
11047                            linux*) haveit=yes;;
11048                          esac
11049                        fi
11050                      fi
11051                      if test -z "$haveit"; then
11052                        haveit=
11053                        for x in $LDFLAGS $LIBICONV; do
11054
11055  acl_save_prefix="$prefix"
11056  prefix="$acl_final_prefix"
11057  acl_save_exec_prefix="$exec_prefix"
11058  exec_prefix="$acl_final_exec_prefix"
11059  eval x=\"$x\"
11060  exec_prefix="$acl_save_exec_prefix"
11061  prefix="$acl_save_prefix"
11062
11063                          if test "X$x" = "X-L$additional_libdir"; then
11064                            haveit=yes
11065                            break
11066                          fi
11067                        done
11068                        if test -z "$haveit"; then
11069                          if test -d "$additional_libdir"; then
11070                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11071                          fi
11072                        fi
11073                        haveit=
11074                        for x in $LDFLAGS $LTLIBICONV; do
11075
11076  acl_save_prefix="$prefix"
11077  prefix="$acl_final_prefix"
11078  acl_save_exec_prefix="$exec_prefix"
11079  exec_prefix="$acl_final_exec_prefix"
11080  eval x=\"$x\"
11081  exec_prefix="$acl_save_exec_prefix"
11082  prefix="$acl_save_prefix"
11083
11084                          if test "X$x" = "X-L$additional_libdir"; then
11085                            haveit=yes
11086                            break
11087                          fi
11088                        done
11089                        if test -z "$haveit"; then
11090                          if test -d "$additional_libdir"; then
11091                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11092                          fi
11093                        fi
11094                      fi
11095                    fi
11096                    ;;
11097                  -R*)
11098                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11099                    if test "$enable_rpath" != no; then
11100                                                                  haveit=
11101                      for x in $rpathdirs; do
11102                        if test "X$x" = "X$dir"; then
11103                          haveit=yes
11104                          break
11105                        fi
11106                      done
11107                      if test -z "$haveit"; then
11108                        rpathdirs="$rpathdirs $dir"
11109                      fi
11110                                                                  haveit=
11111                      for x in $ltrpathdirs; do
11112                        if test "X$x" = "X$dir"; then
11113                          haveit=yes
11114                          break
11115                        fi
11116                      done
11117                      if test -z "$haveit"; then
11118                        ltrpathdirs="$ltrpathdirs $dir"
11119                      fi
11120                    fi
11121                    ;;
11122                  -l*)
11123                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11124                    ;;
11125                  *.la)
11126                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11127                    ;;
11128                  *)
11129                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11130                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11131                    ;;
11132                esac
11133              done
11134            fi
11135          else
11136                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11137            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11138          fi
11139        fi
11140      fi
11141    done
11142  done
11143  if test "X$rpathdirs" != "X"; then
11144    if test -n "$hardcode_libdir_separator"; then
11145                        alldirs=
11146      for found_dir in $rpathdirs; do
11147        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11148      done
11149            acl_save_libdir="$libdir"
11150      libdir="$alldirs"
11151      eval flag=\"$hardcode_libdir_flag_spec\"
11152      libdir="$acl_save_libdir"
11153      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11154    else
11155            for found_dir in $rpathdirs; do
11156        acl_save_libdir="$libdir"
11157        libdir="$found_dir"
11158        eval flag=\"$hardcode_libdir_flag_spec\"
11159        libdir="$acl_save_libdir"
11160        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11161      done
11162    fi
11163  fi
11164  if test "X$ltrpathdirs" != "X"; then
11165            for found_dir in $ltrpathdirs; do
11166      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11167    done
11168  fi
11169
11170
11171
11172
11173
11174
11175
11176
11177  { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11178echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11179if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11180  echo $ECHO_N "(cached) $ECHO_C" >&6
11181else
11182  cat >conftest.$ac_ext <<_ACEOF
11183/* confdefs.h.  */
11184_ACEOF
11185cat confdefs.h >>conftest.$ac_ext
11186cat >>conftest.$ac_ext <<_ACEOF
11187/* end confdefs.h.  */
11188$ac_includes_default
11189typedef ptrdiff_t ac__type_new_;
11190int
11191main ()
11192{
11193if ((ac__type_new_ *) 0)
11194  return 0;
11195if (sizeof (ac__type_new_))
11196  return 0;
11197  ;
11198  return 0;
11199}
11200_ACEOF
11201rm -f conftest.$ac_objext
11202if { (ac_try="$ac_compile"
11203case "(($ac_try" in
11204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205  *) ac_try_echo=$ac_try;;
11206esac
11207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208  (eval "$ac_compile") 2>conftest.er1
11209  ac_status=$?
11210  grep -v '^ *+' conftest.er1 >conftest.err
11211  rm -f conftest.er1
11212  cat conftest.err >&5
11213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214  (exit $ac_status); } && {
11215	 test -z "$ac_c_werror_flag" ||
11216	 test ! -s conftest.err
11217       } && test -s conftest.$ac_objext; then
11218  ac_cv_type_ptrdiff_t=yes
11219else
11220  echo "$as_me: failed program was:" >&5
11221sed 's/^/| /' conftest.$ac_ext >&5
11222
11223	ac_cv_type_ptrdiff_t=no
11224fi
11225
11226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11227fi
11228{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11229echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11230if test $ac_cv_type_ptrdiff_t = yes; then
11231  :
11232else
11233
11234cat >>confdefs.h <<\_ACEOF
11235#define ptrdiff_t long
11236_ACEOF
11237
11238
11239fi
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11252stdlib.h string.h unistd.h sys/param.h
11253do
11254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259  echo $ECHO_N "(cached) $ECHO_C" >&6
11260fi
11261ac_res=`eval echo '${'$as_ac_Header'}'`
11262	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11263echo "${ECHO_T}$ac_res" >&6; }
11264else
11265  # Is the header compilable?
11266{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11267echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11268cat >conftest.$ac_ext <<_ACEOF
11269/* confdefs.h.  */
11270_ACEOF
11271cat confdefs.h >>conftest.$ac_ext
11272cat >>conftest.$ac_ext <<_ACEOF
11273/* end confdefs.h.  */
11274$ac_includes_default
11275#include <$ac_header>
11276_ACEOF
11277rm -f conftest.$ac_objext
11278if { (ac_try="$ac_compile"
11279case "(($ac_try" in
11280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281  *) ac_try_echo=$ac_try;;
11282esac
11283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284  (eval "$ac_compile") 2>conftest.er1
11285  ac_status=$?
11286  grep -v '^ *+' conftest.er1 >conftest.err
11287  rm -f conftest.er1
11288  cat conftest.err >&5
11289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290  (exit $ac_status); } && {
11291	 test -z "$ac_c_werror_flag" ||
11292	 test ! -s conftest.err
11293       } && test -s conftest.$ac_objext; then
11294  ac_header_compiler=yes
11295else
11296  echo "$as_me: failed program was:" >&5
11297sed 's/^/| /' conftest.$ac_ext >&5
11298
11299	ac_header_compiler=no
11300fi
11301
11302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11303{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11304echo "${ECHO_T}$ac_header_compiler" >&6; }
11305
11306# Is the header present?
11307{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11308echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11309cat >conftest.$ac_ext <<_ACEOF
11310/* confdefs.h.  */
11311_ACEOF
11312cat confdefs.h >>conftest.$ac_ext
11313cat >>conftest.$ac_ext <<_ACEOF
11314/* end confdefs.h.  */
11315#include <$ac_header>
11316_ACEOF
11317if { (ac_try="$ac_cpp conftest.$ac_ext"
11318case "(($ac_try" in
11319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320  *) ac_try_echo=$ac_try;;
11321esac
11322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11324  ac_status=$?
11325  grep -v '^ *+' conftest.er1 >conftest.err
11326  rm -f conftest.er1
11327  cat conftest.err >&5
11328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329  (exit $ac_status); } >/dev/null && {
11330	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11331	 test ! -s conftest.err
11332       }; then
11333  ac_header_preproc=yes
11334else
11335  echo "$as_me: failed program was:" >&5
11336sed 's/^/| /' conftest.$ac_ext >&5
11337
11338  ac_header_preproc=no
11339fi
11340
11341rm -f conftest.err conftest.$ac_ext
11342{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11343echo "${ECHO_T}$ac_header_preproc" >&6; }
11344
11345# So?  What about this header?
11346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11347  yes:no: )
11348    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11349echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11350    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11351echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11352    ac_header_preproc=yes
11353    ;;
11354  no:yes:* )
11355    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11356echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11357    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11358echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11359    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11360echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11361    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11362echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11363    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11364echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11365    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11366echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11367    ( cat <<\_ASBOX
11368## --------------------------------------- ##
11369## Report this to cedric.bregardis@free.fr ##
11370## --------------------------------------- ##
11371_ASBOX
11372     ) | sed "s/^/$as_me: WARNING:     /" >&2
11373    ;;
11374esac
11375{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11378  echo $ECHO_N "(cached) $ECHO_C" >&6
11379else
11380  eval "$as_ac_Header=\$ac_header_preproc"
11381fi
11382ac_res=`eval echo '${'$as_ac_Header'}'`
11383	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11384echo "${ECHO_T}$ac_res" >&6; }
11385
11386fi
11387if test `eval echo '${'$as_ac_Header'}'` = yes; then
11388  cat >>confdefs.h <<_ACEOF
11389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11390_ACEOF
11391
11392fi
11393
11394done
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11420mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11421strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11422__fsetlocking
11423do
11424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11425{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11427if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11428  echo $ECHO_N "(cached) $ECHO_C" >&6
11429else
11430  cat >conftest.$ac_ext <<_ACEOF
11431/* confdefs.h.  */
11432_ACEOF
11433cat confdefs.h >>conftest.$ac_ext
11434cat >>conftest.$ac_ext <<_ACEOF
11435/* end confdefs.h.  */
11436/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11437   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11438#define $ac_func innocuous_$ac_func
11439
11440/* System header to define __stub macros and hopefully few prototypes,
11441    which can conflict with char $ac_func (); below.
11442    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11443    <limits.h> exists even on freestanding compilers.  */
11444
11445#ifdef __STDC__
11446# include <limits.h>
11447#else
11448# include <assert.h>
11449#endif
11450
11451#undef $ac_func
11452
11453/* Override any GCC internal prototype to avoid an error.
11454   Use char because int might match the return type of a GCC
11455   builtin and then its argument prototype would still apply.  */
11456#ifdef __cplusplus
11457extern "C"
11458#endif
11459char $ac_func ();
11460/* The GNU C library defines this for functions which it implements
11461    to always fail with ENOSYS.  Some functions are actually named
11462    something starting with __ and the normal name is an alias.  */
11463#if defined __stub_$ac_func || defined __stub___$ac_func
11464choke me
11465#endif
11466
11467int
11468main ()
11469{
11470return $ac_func ();
11471  ;
11472  return 0;
11473}
11474_ACEOF
11475rm -f conftest.$ac_objext conftest$ac_exeext
11476if { (ac_try="$ac_link"
11477case "(($ac_try" in
11478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479  *) ac_try_echo=$ac_try;;
11480esac
11481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482  (eval "$ac_link") 2>conftest.er1
11483  ac_status=$?
11484  grep -v '^ *+' conftest.er1 >conftest.err
11485  rm -f conftest.er1
11486  cat conftest.err >&5
11487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488  (exit $ac_status); } && {
11489	 test -z "$ac_c_werror_flag" ||
11490	 test ! -s conftest.err
11491       } && test -s conftest$ac_exeext &&
11492       $as_test_x conftest$ac_exeext; then
11493  eval "$as_ac_var=yes"
11494else
11495  echo "$as_me: failed program was:" >&5
11496sed 's/^/| /' conftest.$ac_ext >&5
11497
11498	eval "$as_ac_var=no"
11499fi
11500
11501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11502      conftest$ac_exeext conftest.$ac_ext
11503fi
11504ac_res=`eval echo '${'$as_ac_var'}'`
11505	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11506echo "${ECHO_T}$ac_res" >&6; }
11507if test `eval echo '${'$as_ac_var'}'` = yes; then
11508  cat >>confdefs.h <<_ACEOF
11509#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11510_ACEOF
11511
11512fi
11513done
11514
11515
11516
11517  { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11518echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11519if test "${ac_cv_have_decl__snprintf+set}" = set; then
11520  echo $ECHO_N "(cached) $ECHO_C" >&6
11521else
11522  cat >conftest.$ac_ext <<_ACEOF
11523/* confdefs.h.  */
11524_ACEOF
11525cat confdefs.h >>conftest.$ac_ext
11526cat >>conftest.$ac_ext <<_ACEOF
11527/* end confdefs.h.  */
11528#include <stdio.h>
11529int
11530main ()
11531{
11532
11533#ifndef _snprintf
11534  char *p = (char *) _snprintf;
11535#endif
11536
11537  ;
11538  return 0;
11539}
11540_ACEOF
11541rm -f conftest.$ac_objext
11542if { (ac_try="$ac_compile"
11543case "(($ac_try" in
11544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545  *) ac_try_echo=$ac_try;;
11546esac
11547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548  (eval "$ac_compile") 2>conftest.er1
11549  ac_status=$?
11550  grep -v '^ *+' conftest.er1 >conftest.err
11551  rm -f conftest.er1
11552  cat conftest.err >&5
11553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554  (exit $ac_status); } && {
11555	 test -z "$ac_c_werror_flag" ||
11556	 test ! -s conftest.err
11557       } && test -s conftest.$ac_objext; then
11558  ac_cv_have_decl__snprintf=yes
11559else
11560  echo "$as_me: failed program was:" >&5
11561sed 's/^/| /' conftest.$ac_ext >&5
11562
11563	ac_cv_have_decl__snprintf=no
11564fi
11565
11566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11567fi
11568{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11569echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11570  if test $ac_cv_have_decl__snprintf = yes; then
11571    gt_value=1
11572  else
11573    gt_value=0
11574  fi
11575
11576cat >>confdefs.h <<_ACEOF
11577#define HAVE_DECL__SNPRINTF $gt_value
11578_ACEOF
11579
11580
11581
11582  { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11583echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11584if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11585  echo $ECHO_N "(cached) $ECHO_C" >&6
11586else
11587  cat >conftest.$ac_ext <<_ACEOF
11588/* confdefs.h.  */
11589_ACEOF
11590cat confdefs.h >>conftest.$ac_ext
11591cat >>conftest.$ac_ext <<_ACEOF
11592/* end confdefs.h.  */
11593#include <stdio.h>
11594int
11595main ()
11596{
11597
11598#ifndef _snwprintf
11599  char *p = (char *) _snwprintf;
11600#endif
11601
11602  ;
11603  return 0;
11604}
11605_ACEOF
11606rm -f conftest.$ac_objext
11607if { (ac_try="$ac_compile"
11608case "(($ac_try" in
11609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610  *) ac_try_echo=$ac_try;;
11611esac
11612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613  (eval "$ac_compile") 2>conftest.er1
11614  ac_status=$?
11615  grep -v '^ *+' conftest.er1 >conftest.err
11616  rm -f conftest.er1
11617  cat conftest.err >&5
11618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619  (exit $ac_status); } && {
11620	 test -z "$ac_c_werror_flag" ||
11621	 test ! -s conftest.err
11622       } && test -s conftest.$ac_objext; then
11623  ac_cv_have_decl__snwprintf=yes
11624else
11625  echo "$as_me: failed program was:" >&5
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
11628	ac_cv_have_decl__snwprintf=no
11629fi
11630
11631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632fi
11633{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11634echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11635  if test $ac_cv_have_decl__snwprintf = yes; then
11636    gt_value=1
11637  else
11638    gt_value=0
11639  fi
11640
11641cat >>confdefs.h <<_ACEOF
11642#define HAVE_DECL__SNWPRINTF $gt_value
11643_ACEOF
11644
11645
11646
11647
11648  { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11649echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11650if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11651  echo $ECHO_N "(cached) $ECHO_C" >&6
11652else
11653  cat >conftest.$ac_ext <<_ACEOF
11654/* confdefs.h.  */
11655_ACEOF
11656cat confdefs.h >>conftest.$ac_ext
11657cat >>conftest.$ac_ext <<_ACEOF
11658/* end confdefs.h.  */
11659#include <stdio.h>
11660int
11661main ()
11662{
11663
11664#ifndef feof_unlocked
11665  char *p = (char *) feof_unlocked;
11666#endif
11667
11668  ;
11669  return 0;
11670}
11671_ACEOF
11672rm -f conftest.$ac_objext
11673if { (ac_try="$ac_compile"
11674case "(($ac_try" in
11675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676  *) ac_try_echo=$ac_try;;
11677esac
11678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679  (eval "$ac_compile") 2>conftest.er1
11680  ac_status=$?
11681  grep -v '^ *+' conftest.er1 >conftest.err
11682  rm -f conftest.er1
11683  cat conftest.err >&5
11684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685  (exit $ac_status); } && {
11686	 test -z "$ac_c_werror_flag" ||
11687	 test ! -s conftest.err
11688       } && test -s conftest.$ac_objext; then
11689  ac_cv_have_decl_feof_unlocked=yes
11690else
11691  echo "$as_me: failed program was:" >&5
11692sed 's/^/| /' conftest.$ac_ext >&5
11693
11694	ac_cv_have_decl_feof_unlocked=no
11695fi
11696
11697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698fi
11699{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11700echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11701  if test $ac_cv_have_decl_feof_unlocked = yes; then
11702    gt_value=1
11703  else
11704    gt_value=0
11705  fi
11706
11707cat >>confdefs.h <<_ACEOF
11708#define HAVE_DECL_FEOF_UNLOCKED $gt_value
11709_ACEOF
11710
11711
11712
11713  { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11714echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11715if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11716  echo $ECHO_N "(cached) $ECHO_C" >&6
11717else
11718  cat >conftest.$ac_ext <<_ACEOF
11719/* confdefs.h.  */
11720_ACEOF
11721cat confdefs.h >>conftest.$ac_ext
11722cat >>conftest.$ac_ext <<_ACEOF
11723/* end confdefs.h.  */
11724#include <stdio.h>
11725int
11726main ()
11727{
11728
11729#ifndef fgets_unlocked
11730  char *p = (char *) fgets_unlocked;
11731#endif
11732
11733  ;
11734  return 0;
11735}
11736_ACEOF
11737rm -f conftest.$ac_objext
11738if { (ac_try="$ac_compile"
11739case "(($ac_try" in
11740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741  *) ac_try_echo=$ac_try;;
11742esac
11743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744  (eval "$ac_compile") 2>conftest.er1
11745  ac_status=$?
11746  grep -v '^ *+' conftest.er1 >conftest.err
11747  rm -f conftest.er1
11748  cat conftest.err >&5
11749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750  (exit $ac_status); } && {
11751	 test -z "$ac_c_werror_flag" ||
11752	 test ! -s conftest.err
11753       } && test -s conftest.$ac_objext; then
11754  ac_cv_have_decl_fgets_unlocked=yes
11755else
11756  echo "$as_me: failed program was:" >&5
11757sed 's/^/| /' conftest.$ac_ext >&5
11758
11759	ac_cv_have_decl_fgets_unlocked=no
11760fi
11761
11762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763fi
11764{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11765echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11766  if test $ac_cv_have_decl_fgets_unlocked = yes; then
11767    gt_value=1
11768  else
11769    gt_value=0
11770  fi
11771
11772cat >>confdefs.h <<_ACEOF
11773#define HAVE_DECL_FGETS_UNLOCKED $gt_value
11774_ACEOF
11775
11776
11777
11778  { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11779echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11780if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11781  echo $ECHO_N "(cached) $ECHO_C" >&6
11782else
11783  cat >conftest.$ac_ext <<_ACEOF
11784/* confdefs.h.  */
11785_ACEOF
11786cat confdefs.h >>conftest.$ac_ext
11787cat >>conftest.$ac_ext <<_ACEOF
11788/* end confdefs.h.  */
11789#include <stdio.h>
11790int
11791main ()
11792{
11793
11794#ifndef getc_unlocked
11795  char *p = (char *) getc_unlocked;
11796#endif
11797
11798  ;
11799  return 0;
11800}
11801_ACEOF
11802rm -f conftest.$ac_objext
11803if { (ac_try="$ac_compile"
11804case "(($ac_try" in
11805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806  *) ac_try_echo=$ac_try;;
11807esac
11808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809  (eval "$ac_compile") 2>conftest.er1
11810  ac_status=$?
11811  grep -v '^ *+' conftest.er1 >conftest.err
11812  rm -f conftest.er1
11813  cat conftest.err >&5
11814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815  (exit $ac_status); } && {
11816	 test -z "$ac_c_werror_flag" ||
11817	 test ! -s conftest.err
11818       } && test -s conftest.$ac_objext; then
11819  ac_cv_have_decl_getc_unlocked=yes
11820else
11821  echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
11824	ac_cv_have_decl_getc_unlocked=no
11825fi
11826
11827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828fi
11829{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11830echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
11831  if test $ac_cv_have_decl_getc_unlocked = yes; then
11832    gt_value=1
11833  else
11834    gt_value=0
11835  fi
11836
11837cat >>confdefs.h <<_ACEOF
11838#define HAVE_DECL_GETC_UNLOCKED $gt_value
11839_ACEOF
11840
11841
11842
11843  case $gt_cv_func_printf_posix in
11844    *yes) HAVE_POSIX_PRINTF=1 ;;
11845    *) HAVE_POSIX_PRINTF=0 ;;
11846  esac
11847
11848  if test "$ac_cv_func_asprintf" = yes; then
11849    HAVE_ASPRINTF=1
11850  else
11851    HAVE_ASPRINTF=0
11852  fi
11853
11854  if test "$ac_cv_func_snprintf" = yes; then
11855    HAVE_SNPRINTF=1
11856  else
11857    HAVE_SNPRINTF=0
11858  fi
11859
11860  if test "$ac_cv_func_wprintf" = yes; then
11861    HAVE_WPRINTF=1
11862  else
11863    HAVE_WPRINTF=0
11864  fi
11865
11866
11867
11868
11869
11870
11871
11872          am_save_CPPFLAGS="$CPPFLAGS"
11873
11874  for element in $INCICONV; do
11875    haveit=
11876    for x in $CPPFLAGS; do
11877
11878  acl_save_prefix="$prefix"
11879  prefix="$acl_final_prefix"
11880  acl_save_exec_prefix="$exec_prefix"
11881  exec_prefix="$acl_final_exec_prefix"
11882  eval x=\"$x\"
11883  exec_prefix="$acl_save_exec_prefix"
11884  prefix="$acl_save_prefix"
11885
11886      if test "X$x" = "X$element"; then
11887        haveit=yes
11888        break
11889      fi
11890    done
11891    if test -z "$haveit"; then
11892      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11893    fi
11894  done
11895
11896
11897  { echo "$as_me:$LINENO: checking for iconv" >&5
11898echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
11899if test "${am_cv_func_iconv+set}" = set; then
11900  echo $ECHO_N "(cached) $ECHO_C" >&6
11901else
11902
11903    am_cv_func_iconv="no, consider installing GNU libiconv"
11904    am_cv_lib_iconv=no
11905    cat >conftest.$ac_ext <<_ACEOF
11906/* confdefs.h.  */
11907_ACEOF
11908cat confdefs.h >>conftest.$ac_ext
11909cat >>conftest.$ac_ext <<_ACEOF
11910/* end confdefs.h.  */
11911#include <stdlib.h>
11912#include <iconv.h>
11913int
11914main ()
11915{
11916iconv_t cd = iconv_open("","");
11917       iconv(cd,NULL,NULL,NULL,NULL);
11918       iconv_close(cd);
11919  ;
11920  return 0;
11921}
11922_ACEOF
11923rm -f conftest.$ac_objext conftest$ac_exeext
11924if { (ac_try="$ac_link"
11925case "(($ac_try" in
11926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927  *) ac_try_echo=$ac_try;;
11928esac
11929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930  (eval "$ac_link") 2>conftest.er1
11931  ac_status=$?
11932  grep -v '^ *+' conftest.er1 >conftest.err
11933  rm -f conftest.er1
11934  cat conftest.err >&5
11935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936  (exit $ac_status); } && {
11937	 test -z "$ac_c_werror_flag" ||
11938	 test ! -s conftest.err
11939       } && test -s conftest$ac_exeext &&
11940       $as_test_x conftest$ac_exeext; then
11941  am_cv_func_iconv=yes
11942else
11943  echo "$as_me: failed program was:" >&5
11944sed 's/^/| /' conftest.$ac_ext >&5
11945
11946
11947fi
11948
11949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11950      conftest$ac_exeext conftest.$ac_ext
11951    if test "$am_cv_func_iconv" != yes; then
11952      am_save_LIBS="$LIBS"
11953      LIBS="$LIBS $LIBICONV"
11954      cat >conftest.$ac_ext <<_ACEOF
11955/* confdefs.h.  */
11956_ACEOF
11957cat confdefs.h >>conftest.$ac_ext
11958cat >>conftest.$ac_ext <<_ACEOF
11959/* end confdefs.h.  */
11960#include <stdlib.h>
11961#include <iconv.h>
11962int
11963main ()
11964{
11965iconv_t cd = iconv_open("","");
11966         iconv(cd,NULL,NULL,NULL,NULL);
11967         iconv_close(cd);
11968  ;
11969  return 0;
11970}
11971_ACEOF
11972rm -f conftest.$ac_objext conftest$ac_exeext
11973if { (ac_try="$ac_link"
11974case "(($ac_try" in
11975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976  *) ac_try_echo=$ac_try;;
11977esac
11978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979  (eval "$ac_link") 2>conftest.er1
11980  ac_status=$?
11981  grep -v '^ *+' conftest.er1 >conftest.err
11982  rm -f conftest.er1
11983  cat conftest.err >&5
11984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985  (exit $ac_status); } && {
11986	 test -z "$ac_c_werror_flag" ||
11987	 test ! -s conftest.err
11988       } && test -s conftest$ac_exeext &&
11989       $as_test_x conftest$ac_exeext; then
11990  am_cv_lib_iconv=yes
11991        am_cv_func_iconv=yes
11992else
11993  echo "$as_me: failed program was:" >&5
11994sed 's/^/| /' conftest.$ac_ext >&5
11995
11996
11997fi
11998
11999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12000      conftest$ac_exeext conftest.$ac_ext
12001      LIBS="$am_save_LIBS"
12002    fi
12003
12004fi
12005{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12006echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12007  if test "$am_cv_func_iconv" = yes; then
12008
12009cat >>confdefs.h <<\_ACEOF
12010#define HAVE_ICONV 1
12011_ACEOF
12012
12013  fi
12014  if test "$am_cv_lib_iconv" = yes; then
12015    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12016echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12017    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12018echo "${ECHO_T}$LIBICONV" >&6; }
12019  else
12020            CPPFLAGS="$am_save_CPPFLAGS"
12021    LIBICONV=
12022    LTLIBICONV=
12023  fi
12024
12025
12026
12027  if test "$am_cv_func_iconv" = yes; then
12028    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12029echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12030    if test "${am_cv_proto_iconv+set}" = set; then
12031  echo $ECHO_N "(cached) $ECHO_C" >&6
12032else
12033
12034      cat >conftest.$ac_ext <<_ACEOF
12035/* confdefs.h.  */
12036_ACEOF
12037cat confdefs.h >>conftest.$ac_ext
12038cat >>conftest.$ac_ext <<_ACEOF
12039/* end confdefs.h.  */
12040
12041#include <stdlib.h>
12042#include <iconv.h>
12043extern
12044#ifdef __cplusplus
12045"C"
12046#endif
12047#if defined(__STDC__) || defined(__cplusplus)
12048size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12049#else
12050size_t iconv();
12051#endif
12052
12053int
12054main ()
12055{
12056
12057  ;
12058  return 0;
12059}
12060_ACEOF
12061rm -f conftest.$ac_objext
12062if { (ac_try="$ac_compile"
12063case "(($ac_try" in
12064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065  *) ac_try_echo=$ac_try;;
12066esac
12067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068  (eval "$ac_compile") 2>conftest.er1
12069  ac_status=$?
12070  grep -v '^ *+' conftest.er1 >conftest.err
12071  rm -f conftest.er1
12072  cat conftest.err >&5
12073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074  (exit $ac_status); } && {
12075	 test -z "$ac_c_werror_flag" ||
12076	 test ! -s conftest.err
12077       } && test -s conftest.$ac_objext; then
12078  am_cv_proto_iconv_arg1=""
12079else
12080  echo "$as_me: failed program was:" >&5
12081sed 's/^/| /' conftest.$ac_ext >&5
12082
12083	am_cv_proto_iconv_arg1="const"
12084fi
12085
12086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12088fi
12089
12090    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12091    { echo "$as_me:$LINENO: result: ${ac_t:-
12092         }$am_cv_proto_iconv" >&5
12093echo "${ECHO_T}${ac_t:-
12094         }$am_cv_proto_iconv" >&6; }
12095
12096cat >>confdefs.h <<_ACEOF
12097#define ICONV_CONST $am_cv_proto_iconv_arg1
12098_ACEOF
12099
12100  fi
12101
12102
12103  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12104echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12105if test "${am_cv_langinfo_codeset+set}" = set; then
12106  echo $ECHO_N "(cached) $ECHO_C" >&6
12107else
12108  cat >conftest.$ac_ext <<_ACEOF
12109/* confdefs.h.  */
12110_ACEOF
12111cat confdefs.h >>conftest.$ac_ext
12112cat >>conftest.$ac_ext <<_ACEOF
12113/* end confdefs.h.  */
12114#include <langinfo.h>
12115int
12116main ()
12117{
12118char* cs = nl_langinfo(CODESET);
12119  ;
12120  return 0;
12121}
12122_ACEOF
12123rm -f conftest.$ac_objext conftest$ac_exeext
12124if { (ac_try="$ac_link"
12125case "(($ac_try" in
12126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127  *) ac_try_echo=$ac_try;;
12128esac
12129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130  (eval "$ac_link") 2>conftest.er1
12131  ac_status=$?
12132  grep -v '^ *+' conftest.er1 >conftest.err
12133  rm -f conftest.er1
12134  cat conftest.err >&5
12135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136  (exit $ac_status); } && {
12137	 test -z "$ac_c_werror_flag" ||
12138	 test ! -s conftest.err
12139       } && test -s conftest$ac_exeext &&
12140       $as_test_x conftest$ac_exeext; then
12141  am_cv_langinfo_codeset=yes
12142else
12143  echo "$as_me: failed program was:" >&5
12144sed 's/^/| /' conftest.$ac_ext >&5
12145
12146	am_cv_langinfo_codeset=no
12147fi
12148
12149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12150      conftest$ac_exeext conftest.$ac_ext
12151
12152fi
12153{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12154echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12155  if test $am_cv_langinfo_codeset = yes; then
12156
12157cat >>confdefs.h <<\_ACEOF
12158#define HAVE_LANGINFO_CODESET 1
12159_ACEOF
12160
12161  fi
12162
12163  if test $ac_cv_header_locale_h = yes; then
12164
12165  { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12166echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12167if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12168  echo $ECHO_N "(cached) $ECHO_C" >&6
12169else
12170  cat >conftest.$ac_ext <<_ACEOF
12171/* confdefs.h.  */
12172_ACEOF
12173cat confdefs.h >>conftest.$ac_ext
12174cat >>conftest.$ac_ext <<_ACEOF
12175/* end confdefs.h.  */
12176#include <locale.h>
12177int
12178main ()
12179{
12180return LC_MESSAGES
12181  ;
12182  return 0;
12183}
12184_ACEOF
12185rm -f conftest.$ac_objext conftest$ac_exeext
12186if { (ac_try="$ac_link"
12187case "(($ac_try" in
12188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189  *) ac_try_echo=$ac_try;;
12190esac
12191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192  (eval "$ac_link") 2>conftest.er1
12193  ac_status=$?
12194  grep -v '^ *+' conftest.er1 >conftest.err
12195  rm -f conftest.er1
12196  cat conftest.err >&5
12197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198  (exit $ac_status); } && {
12199	 test -z "$ac_c_werror_flag" ||
12200	 test ! -s conftest.err
12201       } && test -s conftest$ac_exeext &&
12202       $as_test_x conftest$ac_exeext; then
12203  am_cv_val_LC_MESSAGES=yes
12204else
12205  echo "$as_me: failed program was:" >&5
12206sed 's/^/| /' conftest.$ac_ext >&5
12207
12208	am_cv_val_LC_MESSAGES=no
12209fi
12210
12211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12212      conftest$ac_exeext conftest.$ac_ext
12213fi
12214{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12215echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
12216  if test $am_cv_val_LC_MESSAGES = yes; then
12217
12218cat >>confdefs.h <<\_ACEOF
12219#define HAVE_LC_MESSAGES 1
12220_ACEOF
12221
12222  fi
12223
12224  fi
12225
12226                      for ac_prog in bison
12227do
12228  # Extract the first word of "$ac_prog", so it can be a program name with args.
12229set dummy $ac_prog; ac_word=$2
12230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12232if test "${ac_cv_prog_INTLBISON+set}" = set; then
12233  echo $ECHO_N "(cached) $ECHO_C" >&6
12234else
12235  if test -n "$INTLBISON"; then
12236  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12237else
12238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239for as_dir in $PATH
12240do
12241  IFS=$as_save_IFS
12242  test -z "$as_dir" && as_dir=.
12243  for ac_exec_ext in '' $ac_executable_extensions; do
12244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12245    ac_cv_prog_INTLBISON="$ac_prog"
12246    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12247    break 2
12248  fi
12249done
12250done
12251IFS=$as_save_IFS
12252
12253fi
12254fi
12255INTLBISON=$ac_cv_prog_INTLBISON
12256if test -n "$INTLBISON"; then
12257  { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12258echo "${ECHO_T}$INTLBISON" >&6; }
12259else
12260  { echo "$as_me:$LINENO: result: no" >&5
12261echo "${ECHO_T}no" >&6; }
12262fi
12263
12264
12265  test -n "$INTLBISON" && break
12266done
12267
12268  if test -z "$INTLBISON"; then
12269    ac_verc_fail=yes
12270  else
12271        { echo "$as_me:$LINENO: checking version of bison" >&5
12272echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12273    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12274    case $ac_prog_version in
12275      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12276      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12277         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12278      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12279    esac
12280    { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12281echo "${ECHO_T}$ac_prog_version" >&6; }
12282  fi
12283  if test $ac_verc_fail = yes; then
12284    INTLBISON=:
12285  fi
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12303echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12304    # Check whether --enable-nls was given.
12305if test "${enable_nls+set}" = set; then
12306  enableval=$enable_nls; USE_NLS=$enableval
12307else
12308  USE_NLS=yes
12309fi
12310
12311  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12312echo "${ECHO_T}$USE_NLS" >&6; }
12313
12314
12315
12316
12317    BUILD_INCLUDED_LIBINTL=no
12318    USE_INCLUDED_LIBINTL=no
12319
12320  LIBINTL=
12321  LTLIBINTL=
12322  POSUB=
12323
12324    if test "$USE_NLS" = "yes"; then
12325    gt_use_preinstalled_gnugettext=no
12326
12327      { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12328echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12329
12330# Check whether --with-included-gettext was given.
12331if test "${with_included_gettext+set}" = set; then
12332  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12333else
12334  nls_cv_force_use_gnu_gettext=no
12335fi
12336
12337      { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12338echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12339
12340      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12341      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12342
12343
12344
12345
12346
12347
12348        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12349echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12350if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12351  echo $ECHO_N "(cached) $ECHO_C" >&6
12352else
12353  cat >conftest.$ac_ext <<_ACEOF
12354/* confdefs.h.  */
12355_ACEOF
12356cat confdefs.h >>conftest.$ac_ext
12357cat >>conftest.$ac_ext <<_ACEOF
12358/* end confdefs.h.  */
12359#include <libintl.h>
12360extern int _nl_msg_cat_cntr;
12361extern int *_nl_domain_bindings;
12362int
12363main ()
12364{
12365bindtextdomain ("", "");
12366return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12367  ;
12368  return 0;
12369}
12370_ACEOF
12371rm -f conftest.$ac_objext conftest$ac_exeext
12372if { (ac_try="$ac_link"
12373case "(($ac_try" in
12374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375  *) ac_try_echo=$ac_try;;
12376esac
12377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378  (eval "$ac_link") 2>conftest.er1
12379  ac_status=$?
12380  grep -v '^ *+' conftest.er1 >conftest.err
12381  rm -f conftest.er1
12382  cat conftest.err >&5
12383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384  (exit $ac_status); } && {
12385	 test -z "$ac_c_werror_flag" ||
12386	 test ! -s conftest.err
12387       } && test -s conftest$ac_exeext &&
12388       $as_test_x conftest$ac_exeext; then
12389  gt_cv_func_gnugettext1_libc=yes
12390else
12391  echo "$as_me: failed program was:" >&5
12392sed 's/^/| /' conftest.$ac_ext >&5
12393
12394	gt_cv_func_gnugettext1_libc=no
12395fi
12396
12397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12398      conftest$ac_exeext conftest.$ac_ext
12399fi
12400{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12401echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12402
12403        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12404
12405
12406
12407    use_additional=yes
12408
12409  acl_save_prefix="$prefix"
12410  prefix="$acl_final_prefix"
12411  acl_save_exec_prefix="$exec_prefix"
12412  exec_prefix="$acl_final_exec_prefix"
12413
12414    eval additional_includedir=\"$includedir\"
12415    eval additional_libdir=\"$libdir\"
12416
12417  exec_prefix="$acl_save_exec_prefix"
12418  prefix="$acl_save_prefix"
12419
12420
12421# Check whether --with-libintl-prefix was given.
12422if test "${with_libintl_prefix+set}" = set; then
12423  withval=$with_libintl_prefix;
12424    if test "X$withval" = "Xno"; then
12425      use_additional=no
12426    else
12427      if test "X$withval" = "X"; then
12428
12429  acl_save_prefix="$prefix"
12430  prefix="$acl_final_prefix"
12431  acl_save_exec_prefix="$exec_prefix"
12432  exec_prefix="$acl_final_exec_prefix"
12433
12434          eval additional_includedir=\"$includedir\"
12435          eval additional_libdir=\"$libdir\"
12436
12437  exec_prefix="$acl_save_exec_prefix"
12438  prefix="$acl_save_prefix"
12439
12440      else
12441        additional_includedir="$withval/include"
12442        additional_libdir="$withval/lib"
12443      fi
12444    fi
12445
12446fi
12447
12448      LIBINTL=
12449  LTLIBINTL=
12450  INCINTL=
12451  rpathdirs=
12452  ltrpathdirs=
12453  names_already_handled=
12454  names_next_round='intl '
12455  while test -n "$names_next_round"; do
12456    names_this_round="$names_next_round"
12457    names_next_round=
12458    for name in $names_this_round; do
12459      already_handled=
12460      for n in $names_already_handled; do
12461        if test "$n" = "$name"; then
12462          already_handled=yes
12463          break
12464        fi
12465      done
12466      if test -z "$already_handled"; then
12467        names_already_handled="$names_already_handled $name"
12468                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12469        eval value=\"\$HAVE_LIB$uppername\"
12470        if test -n "$value"; then
12471          if test "$value" = yes; then
12472            eval value=\"\$LIB$uppername\"
12473            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12474            eval value=\"\$LTLIB$uppername\"
12475            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12476          else
12477                                    :
12478          fi
12479        else
12480                              found_dir=
12481          found_la=
12482          found_so=
12483          found_a=
12484          if test $use_additional = yes; then
12485            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12486              found_dir="$additional_libdir"
12487              found_so="$additional_libdir/lib$name.$shlibext"
12488              if test -f "$additional_libdir/lib$name.la"; then
12489                found_la="$additional_libdir/lib$name.la"
12490              fi
12491            else
12492              if test -f "$additional_libdir/lib$name.$libext"; then
12493                found_dir="$additional_libdir"
12494                found_a="$additional_libdir/lib$name.$libext"
12495                if test -f "$additional_libdir/lib$name.la"; then
12496                  found_la="$additional_libdir/lib$name.la"
12497                fi
12498              fi
12499            fi
12500          fi
12501          if test "X$found_dir" = "X"; then
12502            for x in $LDFLAGS $LTLIBINTL; do
12503
12504  acl_save_prefix="$prefix"
12505  prefix="$acl_final_prefix"
12506  acl_save_exec_prefix="$exec_prefix"
12507  exec_prefix="$acl_final_exec_prefix"
12508  eval x=\"$x\"
12509  exec_prefix="$acl_save_exec_prefix"
12510  prefix="$acl_save_prefix"
12511
12512              case "$x" in
12513                -L*)
12514                  dir=`echo "X$x" | sed -e 's/^X-L//'`
12515                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12516                    found_dir="$dir"
12517                    found_so="$dir/lib$name.$shlibext"
12518                    if test -f "$dir/lib$name.la"; then
12519                      found_la="$dir/lib$name.la"
12520                    fi
12521                  else
12522                    if test -f "$dir/lib$name.$libext"; then
12523                      found_dir="$dir"
12524                      found_a="$dir/lib$name.$libext"
12525                      if test -f "$dir/lib$name.la"; then
12526                        found_la="$dir/lib$name.la"
12527                      fi
12528                    fi
12529                  fi
12530                  ;;
12531              esac
12532              if test "X$found_dir" != "X"; then
12533                break
12534              fi
12535            done
12536          fi
12537          if test "X$found_dir" != "X"; then
12538                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12539            if test "X$found_so" != "X"; then
12540                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12541                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12542              else
12543                                                                                haveit=
12544                for x in $ltrpathdirs; do
12545                  if test "X$x" = "X$found_dir"; then
12546                    haveit=yes
12547                    break
12548                  fi
12549                done
12550                if test -z "$haveit"; then
12551                  ltrpathdirs="$ltrpathdirs $found_dir"
12552                fi
12553                                if test "$hardcode_direct" = yes; then
12554                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12555                else
12556                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12557                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12558                                                            haveit=
12559                    for x in $rpathdirs; do
12560                      if test "X$x" = "X$found_dir"; then
12561                        haveit=yes
12562                        break
12563                      fi
12564                    done
12565                    if test -z "$haveit"; then
12566                      rpathdirs="$rpathdirs $found_dir"
12567                    fi
12568                  else
12569                                                                                haveit=
12570                    for x in $LDFLAGS $LIBINTL; do
12571
12572  acl_save_prefix="$prefix"
12573  prefix="$acl_final_prefix"
12574  acl_save_exec_prefix="$exec_prefix"
12575  exec_prefix="$acl_final_exec_prefix"
12576  eval x=\"$x\"
12577  exec_prefix="$acl_save_exec_prefix"
12578  prefix="$acl_save_prefix"
12579
12580                      if test "X$x" = "X-L$found_dir"; then
12581                        haveit=yes
12582                        break
12583                      fi
12584                    done
12585                    if test -z "$haveit"; then
12586                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12587                    fi
12588                    if test "$hardcode_minus_L" != no; then
12589                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12590                    else
12591                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12592                    fi
12593                  fi
12594                fi
12595              fi
12596            else
12597              if test "X$found_a" != "X"; then
12598                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12599              else
12600                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12601              fi
12602            fi
12603                        additional_includedir=
12604            case "$found_dir" in
12605              */lib | */lib/)
12606                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12607                additional_includedir="$basedir/include"
12608                ;;
12609            esac
12610            if test "X$additional_includedir" != "X"; then
12611                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
12612                haveit=
12613                if test "X$additional_includedir" = "X/usr/local/include"; then
12614                  if test -n "$GCC"; then
12615                    case $host_os in
12616                      linux*) haveit=yes;;
12617                    esac
12618                  fi
12619                fi
12620                if test -z "$haveit"; then
12621                  for x in $CPPFLAGS $INCINTL; do
12622
12623  acl_save_prefix="$prefix"
12624  prefix="$acl_final_prefix"
12625  acl_save_exec_prefix="$exec_prefix"
12626  exec_prefix="$acl_final_exec_prefix"
12627  eval x=\"$x\"
12628  exec_prefix="$acl_save_exec_prefix"
12629  prefix="$acl_save_prefix"
12630
12631                    if test "X$x" = "X-I$additional_includedir"; then
12632                      haveit=yes
12633                      break
12634                    fi
12635                  done
12636                  if test -z "$haveit"; then
12637                    if test -d "$additional_includedir"; then
12638                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12639                    fi
12640                  fi
12641                fi
12642              fi
12643            fi
12644                        if test -n "$found_la"; then
12645                                                        save_libdir="$libdir"
12646              case "$found_la" in
12647                */* | *\\*) . "$found_la" ;;
12648                *) . "./$found_la" ;;
12649              esac
12650              libdir="$save_libdir"
12651                            for dep in $dependency_libs; do
12652                case "$dep" in
12653                  -L*)
12654                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12655                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
12656                      haveit=
12657                      if test "X$additional_libdir" = "X/usr/local/lib"; then
12658                        if test -n "$GCC"; then
12659                          case $host_os in
12660                            linux*) haveit=yes;;
12661                          esac
12662                        fi
12663                      fi
12664                      if test -z "$haveit"; then
12665                        haveit=
12666                        for x in $LDFLAGS $LIBINTL; do
12667
12668  acl_save_prefix="$prefix"
12669  prefix="$acl_final_prefix"
12670  acl_save_exec_prefix="$exec_prefix"
12671  exec_prefix="$acl_final_exec_prefix"
12672  eval x=\"$x\"
12673  exec_prefix="$acl_save_exec_prefix"
12674  prefix="$acl_save_prefix"
12675
12676                          if test "X$x" = "X-L$additional_libdir"; then
12677                            haveit=yes
12678                            break
12679                          fi
12680                        done
12681                        if test -z "$haveit"; then
12682                          if test -d "$additional_libdir"; then
12683                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12684                          fi
12685                        fi
12686                        haveit=
12687                        for x in $LDFLAGS $LTLIBINTL; do
12688
12689  acl_save_prefix="$prefix"
12690  prefix="$acl_final_prefix"
12691  acl_save_exec_prefix="$exec_prefix"
12692  exec_prefix="$acl_final_exec_prefix"
12693  eval x=\"$x\"
12694  exec_prefix="$acl_save_exec_prefix"
12695  prefix="$acl_save_prefix"
12696
12697                          if test "X$x" = "X-L$additional_libdir"; then
12698                            haveit=yes
12699                            break
12700                          fi
12701                        done
12702                        if test -z "$haveit"; then
12703                          if test -d "$additional_libdir"; then
12704                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12705                          fi
12706                        fi
12707                      fi
12708                    fi
12709                    ;;
12710                  -R*)
12711                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
12712                    if test "$enable_rpath" != no; then
12713                                                                  haveit=
12714                      for x in $rpathdirs; do
12715                        if test "X$x" = "X$dir"; then
12716                          haveit=yes
12717                          break
12718                        fi
12719                      done
12720                      if test -z "$haveit"; then
12721                        rpathdirs="$rpathdirs $dir"
12722                      fi
12723                                                                  haveit=
12724                      for x in $ltrpathdirs; do
12725                        if test "X$x" = "X$dir"; then
12726                          haveit=yes
12727                          break
12728                        fi
12729                      done
12730                      if test -z "$haveit"; then
12731                        ltrpathdirs="$ltrpathdirs $dir"
12732                      fi
12733                    fi
12734                    ;;
12735                  -l*)
12736                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12737                    ;;
12738                  *.la)
12739                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12740                    ;;
12741                  *)
12742                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12743                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12744                    ;;
12745                esac
12746              done
12747            fi
12748          else
12749                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12750            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12751          fi
12752        fi
12753      fi
12754    done
12755  done
12756  if test "X$rpathdirs" != "X"; then
12757    if test -n "$hardcode_libdir_separator"; then
12758                        alldirs=
12759      for found_dir in $rpathdirs; do
12760        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12761      done
12762            acl_save_libdir="$libdir"
12763      libdir="$alldirs"
12764      eval flag=\"$hardcode_libdir_flag_spec\"
12765      libdir="$acl_save_libdir"
12766      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12767    else
12768            for found_dir in $rpathdirs; do
12769        acl_save_libdir="$libdir"
12770        libdir="$found_dir"
12771        eval flag=\"$hardcode_libdir_flag_spec\"
12772        libdir="$acl_save_libdir"
12773        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12774      done
12775    fi
12776  fi
12777  if test "X$ltrpathdirs" != "X"; then
12778            for found_dir in $ltrpathdirs; do
12779      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12780    done
12781  fi
12782
12783          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12784echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
12785if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12786  echo $ECHO_N "(cached) $ECHO_C" >&6
12787else
12788  gt_save_CPPFLAGS="$CPPFLAGS"
12789            CPPFLAGS="$CPPFLAGS $INCINTL"
12790            gt_save_LIBS="$LIBS"
12791            LIBS="$LIBS $LIBINTL"
12792                        cat >conftest.$ac_ext <<_ACEOF
12793/* confdefs.h.  */
12794_ACEOF
12795cat confdefs.h >>conftest.$ac_ext
12796cat >>conftest.$ac_ext <<_ACEOF
12797/* end confdefs.h.  */
12798#include <libintl.h>
12799extern int _nl_msg_cat_cntr;
12800extern
12801#ifdef __cplusplus
12802"C"
12803#endif
12804const char *_nl_expand_alias ();
12805int
12806main ()
12807{
12808bindtextdomain ("", "");
12809return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12810  ;
12811  return 0;
12812}
12813_ACEOF
12814rm -f conftest.$ac_objext conftest$ac_exeext
12815if { (ac_try="$ac_link"
12816case "(($ac_try" in
12817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818  *) ac_try_echo=$ac_try;;
12819esac
12820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821  (eval "$ac_link") 2>conftest.er1
12822  ac_status=$?
12823  grep -v '^ *+' conftest.er1 >conftest.err
12824  rm -f conftest.er1
12825  cat conftest.err >&5
12826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827  (exit $ac_status); } && {
12828	 test -z "$ac_c_werror_flag" ||
12829	 test ! -s conftest.err
12830       } && test -s conftest$ac_exeext &&
12831       $as_test_x conftest$ac_exeext; then
12832  gt_cv_func_gnugettext1_libintl=yes
12833else
12834  echo "$as_me: failed program was:" >&5
12835sed 's/^/| /' conftest.$ac_ext >&5
12836
12837	gt_cv_func_gnugettext1_libintl=no
12838fi
12839
12840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12841      conftest$ac_exeext conftest.$ac_ext
12842                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12843              LIBS="$LIBS $LIBICONV"
12844              cat >conftest.$ac_ext <<_ACEOF
12845/* confdefs.h.  */
12846_ACEOF
12847cat confdefs.h >>conftest.$ac_ext
12848cat >>conftest.$ac_ext <<_ACEOF
12849/* end confdefs.h.  */
12850#include <libintl.h>
12851extern int _nl_msg_cat_cntr;
12852extern
12853#ifdef __cplusplus
12854"C"
12855#endif
12856const char *_nl_expand_alias ();
12857int
12858main ()
12859{
12860bindtextdomain ("", "");
12861return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12862  ;
12863  return 0;
12864}
12865_ACEOF
12866rm -f conftest.$ac_objext conftest$ac_exeext
12867if { (ac_try="$ac_link"
12868case "(($ac_try" in
12869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870  *) ac_try_echo=$ac_try;;
12871esac
12872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873  (eval "$ac_link") 2>conftest.er1
12874  ac_status=$?
12875  grep -v '^ *+' conftest.er1 >conftest.err
12876  rm -f conftest.er1
12877  cat conftest.err >&5
12878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879  (exit $ac_status); } && {
12880	 test -z "$ac_c_werror_flag" ||
12881	 test ! -s conftest.err
12882       } && test -s conftest$ac_exeext &&
12883       $as_test_x conftest$ac_exeext; then
12884  LIBINTL="$LIBINTL $LIBICONV"
12885                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12886                gt_cv_func_gnugettext1_libintl=yes
12887
12888else
12889  echo "$as_me: failed program was:" >&5
12890sed 's/^/| /' conftest.$ac_ext >&5
12891
12892
12893fi
12894
12895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12896      conftest$ac_exeext conftest.$ac_ext
12897            fi
12898            CPPFLAGS="$gt_save_CPPFLAGS"
12899            LIBS="$gt_save_LIBS"
12900fi
12901{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12902echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
12903        fi
12904
12905                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12906           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12907                && test "$PACKAGE" != gettext-runtime \
12908                && test "$PACKAGE" != gettext-tools; }; then
12909          gt_use_preinstalled_gnugettext=yes
12910        else
12911                    LIBINTL=
12912          LTLIBINTL=
12913          INCINTL=
12914        fi
12915
12916
12917        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12918                              nls_cv_use_gnu_gettext=yes
12919        fi
12920      fi
12921
12922      if test "$nls_cv_use_gnu_gettext" = "yes"; then
12923                BUILD_INCLUDED_LIBINTL=yes
12924        USE_INCLUDED_LIBINTL=yes
12925        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12926        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12927        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12928      fi
12929
12930      if test "$gt_use_preinstalled_gnugettext" = "yes" \
12931         || test "$nls_cv_use_gnu_gettext" = "yes"; then
12932                CATOBJEXT=.gmo
12933      fi
12934
12935
12936    if test "$gt_use_preinstalled_gnugettext" = "yes" \
12937       || test "$nls_cv_use_gnu_gettext" = "yes"; then
12938
12939cat >>confdefs.h <<\_ACEOF
12940#define ENABLE_NLS 1
12941_ACEOF
12942
12943    else
12944      USE_NLS=no
12945    fi
12946  fi
12947
12948  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
12949echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
12950  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12951echo "${ECHO_T}$USE_NLS" >&6; }
12952  if test "$USE_NLS" = "yes"; then
12953    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12954echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
12955    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12956      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12957        gt_source="external libintl"
12958      else
12959        gt_source="libc"
12960      fi
12961    else
12962      gt_source="included intl directory"
12963    fi
12964    { echo "$as_me:$LINENO: result: $gt_source" >&5
12965echo "${ECHO_T}$gt_source" >&6; }
12966  fi
12967
12968  if test "$USE_NLS" = "yes"; then
12969
12970    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12971      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12972        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
12973echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
12974        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
12975echo "${ECHO_T}$LIBINTL" >&6; }
12976
12977  for element in $INCINTL; do
12978    haveit=
12979    for x in $CPPFLAGS; do
12980
12981  acl_save_prefix="$prefix"
12982  prefix="$acl_final_prefix"
12983  acl_save_exec_prefix="$exec_prefix"
12984  exec_prefix="$acl_final_exec_prefix"
12985  eval x=\"$x\"
12986  exec_prefix="$acl_save_exec_prefix"
12987  prefix="$acl_save_prefix"
12988
12989      if test "X$x" = "X$element"; then
12990        haveit=yes
12991        break
12992      fi
12993    done
12994    if test -z "$haveit"; then
12995      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12996    fi
12997  done
12998
12999      fi
13000
13001
13002cat >>confdefs.h <<\_ACEOF
13003#define HAVE_GETTEXT 1
13004_ACEOF
13005
13006
13007cat >>confdefs.h <<\_ACEOF
13008#define HAVE_DCGETTEXT 1
13009_ACEOF
13010
13011    fi
13012
13013        POSUB=po
13014  fi
13015
13016
13017            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13018      BUILD_INCLUDED_LIBINTL=yes
13019    fi
13020
13021
13022
13023
13024
13025        nls_cv_header_intl=
13026    nls_cv_header_libgt=
13027
13028        DATADIRNAME=share
13029
13030
13031        INSTOBJEXT=.mo
13032
13033
13034        GENCAT=gencat
13035
13036
13037        if test "$USE_INCLUDED_LIBINTL" = yes; then
13038      INTLOBJS="\$(GETTOBJS)"
13039    fi
13040
13041
13042        INTL_LIBTOOL_SUFFIX_PREFIX=
13043
13044
13045
13046    INTLLIBS="$LIBINTL"
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059          am_save_CPPFLAGS="$CPPFLAGS"
13060
13061  for element in $INCICONV; do
13062    haveit=
13063    for x in $CPPFLAGS; do
13064
13065  acl_save_prefix="$prefix"
13066  prefix="$acl_final_prefix"
13067  acl_save_exec_prefix="$exec_prefix"
13068  exec_prefix="$acl_final_exec_prefix"
13069  eval x=\"$x\"
13070  exec_prefix="$acl_save_exec_prefix"
13071  prefix="$acl_save_prefix"
13072
13073      if test "X$x" = "X$element"; then
13074        haveit=yes
13075        break
13076      fi
13077    done
13078    if test -z "$haveit"; then
13079      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13080    fi
13081  done
13082
13083
13084  { echo "$as_me:$LINENO: checking for iconv" >&5
13085echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13086if test "${am_cv_func_iconv+set}" = set; then
13087  echo $ECHO_N "(cached) $ECHO_C" >&6
13088else
13089
13090    am_cv_func_iconv="no, consider installing GNU libiconv"
13091    am_cv_lib_iconv=no
13092    cat >conftest.$ac_ext <<_ACEOF
13093/* confdefs.h.  */
13094_ACEOF
13095cat confdefs.h >>conftest.$ac_ext
13096cat >>conftest.$ac_ext <<_ACEOF
13097/* end confdefs.h.  */
13098#include <stdlib.h>
13099#include <iconv.h>
13100int
13101main ()
13102{
13103iconv_t cd = iconv_open("","");
13104       iconv(cd,NULL,NULL,NULL,NULL);
13105       iconv_close(cd);
13106  ;
13107  return 0;
13108}
13109_ACEOF
13110rm -f conftest.$ac_objext conftest$ac_exeext
13111if { (ac_try="$ac_link"
13112case "(($ac_try" in
13113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114  *) ac_try_echo=$ac_try;;
13115esac
13116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117  (eval "$ac_link") 2>conftest.er1
13118  ac_status=$?
13119  grep -v '^ *+' conftest.er1 >conftest.err
13120  rm -f conftest.er1
13121  cat conftest.err >&5
13122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123  (exit $ac_status); } && {
13124	 test -z "$ac_c_werror_flag" ||
13125	 test ! -s conftest.err
13126       } && test -s conftest$ac_exeext &&
13127       $as_test_x conftest$ac_exeext; then
13128  am_cv_func_iconv=yes
13129else
13130  echo "$as_me: failed program was:" >&5
13131sed 's/^/| /' conftest.$ac_ext >&5
13132
13133
13134fi
13135
13136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13137      conftest$ac_exeext conftest.$ac_ext
13138    if test "$am_cv_func_iconv" != yes; then
13139      am_save_LIBS="$LIBS"
13140      LIBS="$LIBS $LIBICONV"
13141      cat >conftest.$ac_ext <<_ACEOF
13142/* confdefs.h.  */
13143_ACEOF
13144cat confdefs.h >>conftest.$ac_ext
13145cat >>conftest.$ac_ext <<_ACEOF
13146/* end confdefs.h.  */
13147#include <stdlib.h>
13148#include <iconv.h>
13149int
13150main ()
13151{
13152iconv_t cd = iconv_open("","");
13153         iconv(cd,NULL,NULL,NULL,NULL);
13154         iconv_close(cd);
13155  ;
13156  return 0;
13157}
13158_ACEOF
13159rm -f conftest.$ac_objext conftest$ac_exeext
13160if { (ac_try="$ac_link"
13161case "(($ac_try" in
13162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163  *) ac_try_echo=$ac_try;;
13164esac
13165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166  (eval "$ac_link") 2>conftest.er1
13167  ac_status=$?
13168  grep -v '^ *+' conftest.er1 >conftest.err
13169  rm -f conftest.er1
13170  cat conftest.err >&5
13171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172  (exit $ac_status); } && {
13173	 test -z "$ac_c_werror_flag" ||
13174	 test ! -s conftest.err
13175       } && test -s conftest$ac_exeext &&
13176       $as_test_x conftest$ac_exeext; then
13177  am_cv_lib_iconv=yes
13178        am_cv_func_iconv=yes
13179else
13180  echo "$as_me: failed program was:" >&5
13181sed 's/^/| /' conftest.$ac_ext >&5
13182
13183
13184fi
13185
13186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13187      conftest$ac_exeext conftest.$ac_ext
13188      LIBS="$am_save_LIBS"
13189    fi
13190
13191fi
13192{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13193echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13194  if test "$am_cv_func_iconv" = yes; then
13195
13196cat >>confdefs.h <<\_ACEOF
13197#define HAVE_ICONV 1
13198_ACEOF
13199
13200  fi
13201  if test "$am_cv_lib_iconv" = yes; then
13202    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13203echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13204    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13205echo "${ECHO_T}$LIBICONV" >&6; }
13206  else
13207            CPPFLAGS="$am_save_CPPFLAGS"
13208    LIBICONV=
13209    LTLIBICONV=
13210  fi
13211
13212
13213
13214  if test "$am_cv_func_iconv" = yes; then
13215    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13216echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13217    if test "${am_cv_proto_iconv+set}" = set; then
13218  echo $ECHO_N "(cached) $ECHO_C" >&6
13219else
13220
13221      cat >conftest.$ac_ext <<_ACEOF
13222/* confdefs.h.  */
13223_ACEOF
13224cat confdefs.h >>conftest.$ac_ext
13225cat >>conftest.$ac_ext <<_ACEOF
13226/* end confdefs.h.  */
13227
13228#include <stdlib.h>
13229#include <iconv.h>
13230extern
13231#ifdef __cplusplus
13232"C"
13233#endif
13234#if defined(__STDC__) || defined(__cplusplus)
13235size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13236#else
13237size_t iconv();
13238#endif
13239
13240int
13241main ()
13242{
13243
13244  ;
13245  return 0;
13246}
13247_ACEOF
13248rm -f conftest.$ac_objext
13249if { (ac_try="$ac_compile"
13250case "(($ac_try" in
13251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252  *) ac_try_echo=$ac_try;;
13253esac
13254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255  (eval "$ac_compile") 2>conftest.er1
13256  ac_status=$?
13257  grep -v '^ *+' conftest.er1 >conftest.err
13258  rm -f conftest.er1
13259  cat conftest.err >&5
13260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261  (exit $ac_status); } && {
13262	 test -z "$ac_c_werror_flag" ||
13263	 test ! -s conftest.err
13264       } && test -s conftest.$ac_objext; then
13265  am_cv_proto_iconv_arg1=""
13266else
13267  echo "$as_me: failed program was:" >&5
13268sed 's/^/| /' conftest.$ac_ext >&5
13269
13270	am_cv_proto_iconv_arg1="const"
13271fi
13272
13273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13275fi
13276
13277    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13278    { echo "$as_me:$LINENO: result: ${ac_t:-
13279         }$am_cv_proto_iconv" >&5
13280echo "${ECHO_T}${ac_t:-
13281         }$am_cv_proto_iconv" >&6; }
13282
13283cat >>confdefs.h <<_ACEOF
13284#define ICONV_CONST $am_cv_proto_iconv_arg1
13285_ACEOF
13286
13287  fi
13288
13289LIBS="$LIBS $INTLLIBS $LIBICONV"
13290if test "x$prefix" = "xNONE"
13291then
13292     LOCALEDIR=$ac_default_prefix/share/locale
13293else
13294     LOCALEDIR=$prefix/share/locale
13295fi
13296
13297cat >>confdefs.h <<_ACEOF
13298#define LOCALEDIR "$LOCALEDIR"
13299_ACEOF
13300
13301
13302#check host OS
13303{ echo "$as_me:$LINENO: checking host OS" >&5
13304echo $ECHO_N "checking host OS... $ECHO_C" >&6; }
13305case "${host}" in
13306  *-*-cygwin* | *-*-mingw32* )
13307    LIB_GL=opengl32
13308    LIB_GLU=glu32
13309    PROGRAM_EXT=".exe"
13310    { echo "$as_me:$LINENO: result: Host OS is Win32" >&5
13311echo "${ECHO_T}Host OS is Win32" >&6; }
13312    LIBS="-l$LIB_GL -l$LIB_GLU $LIBS"
13313    LIBS="-lSDL_mixer $LIBS"
13314    LIBS="-lSDL_ttf $LIBS"
13315    LIBS="$LIBS -lwinmm"
13316  ;;
13317  *)
13318    { echo "$as_me:$LINENO: checking for X" >&5
13319echo $ECHO_N "checking for X... $ECHO_C" >&6; }
13320
13321
13322# Check whether --with-x was given.
13323if test "${with_x+set}" = set; then
13324  withval=$with_x;
13325fi
13326
13327# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13328if test "x$with_x" = xno; then
13329  # The user explicitly disabled X.
13330  have_x=disabled
13331else
13332  case $x_includes,$x_libraries in #(
13333    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
13334echo "$as_me: error: Cannot use X directory names containing '" >&2;}
13335   { (exit 1); exit 1; }; };; #(
13336    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
13337  echo $ECHO_N "(cached) $ECHO_C" >&6
13338else
13339  # One or both of the vars are not set, and there is no cached value.
13340ac_x_includes=no ac_x_libraries=no
13341rm -f -r conftest.dir
13342if mkdir conftest.dir; then
13343  cd conftest.dir
13344  cat >Imakefile <<'_ACEOF'
13345incroot:
13346	@echo incroot='${INCROOT}'
13347usrlibdir:
13348	@echo usrlibdir='${USRLIBDIR}'
13349libdir:
13350	@echo libdir='${LIBDIR}'
13351_ACEOF
13352  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13353    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13354    for ac_var in incroot usrlibdir libdir; do
13355      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13356    done
13357    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13358    for ac_extension in a so sl; do
13359      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13360	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13361	ac_im_usrlibdir=$ac_im_libdir; break
13362      fi
13363    done
13364    # Screen out bogus values from the imake configuration.  They are
13365    # bogus both because they are the default anyway, and because
13366    # using them would break gcc on systems where it needs fixed includes.
13367    case $ac_im_incroot in
13368	/usr/include) ac_x_includes= ;;
13369	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13370    esac
13371    case $ac_im_usrlibdir in
13372	/usr/lib | /lib) ;;
13373	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13374    esac
13375  fi
13376  cd ..
13377  rm -f -r conftest.dir
13378fi
13379
13380# Standard set of common directories for X headers.
13381# Check X11 before X11Rn because it is often a symlink to the current release.
13382ac_x_header_dirs='
13383/usr/X11/include
13384/usr/X11R6/include
13385/usr/X11R5/include
13386/usr/X11R4/include
13387
13388/usr/include/X11
13389/usr/include/X11R6
13390/usr/include/X11R5
13391/usr/include/X11R4
13392
13393/usr/local/X11/include
13394/usr/local/X11R6/include
13395/usr/local/X11R5/include
13396/usr/local/X11R4/include
13397
13398/usr/local/include/X11
13399/usr/local/include/X11R6
13400/usr/local/include/X11R5
13401/usr/local/include/X11R4
13402
13403/usr/X386/include
13404/usr/x386/include
13405/usr/XFree86/include/X11
13406
13407/usr/include
13408/usr/local/include
13409/usr/unsupported/include
13410/usr/athena/include
13411/usr/local/x11r5/include
13412/usr/lpp/Xamples/include
13413
13414/usr/openwin/include
13415/usr/openwin/share/include'
13416
13417if test "$ac_x_includes" = no; then
13418  # Guess where to find include files, by looking for Xlib.h.
13419  # First, try using that file with no special directory specified.
13420  cat >conftest.$ac_ext <<_ACEOF
13421/* confdefs.h.  */
13422_ACEOF
13423cat confdefs.h >>conftest.$ac_ext
13424cat >>conftest.$ac_ext <<_ACEOF
13425/* end confdefs.h.  */
13426#include <X11/Xlib.h>
13427_ACEOF
13428if { (ac_try="$ac_cpp conftest.$ac_ext"
13429case "(($ac_try" in
13430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431  *) ac_try_echo=$ac_try;;
13432esac
13433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13435  ac_status=$?
13436  grep -v '^ *+' conftest.er1 >conftest.err
13437  rm -f conftest.er1
13438  cat conftest.err >&5
13439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440  (exit $ac_status); } >/dev/null && {
13441	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13442	 test ! -s conftest.err
13443       }; then
13444  # We can compile using X headers with no special include directory.
13445ac_x_includes=
13446else
13447  echo "$as_me: failed program was:" >&5
13448sed 's/^/| /' conftest.$ac_ext >&5
13449
13450  for ac_dir in $ac_x_header_dirs; do
13451  if test -r "$ac_dir/X11/Xlib.h"; then
13452    ac_x_includes=$ac_dir
13453    break
13454  fi
13455done
13456fi
13457
13458rm -f conftest.err conftest.$ac_ext
13459fi # $ac_x_includes = no
13460
13461if test "$ac_x_libraries" = no; then
13462  # Check for the libraries.
13463  # See if we find them without any special options.
13464  # Don't add to $LIBS permanently.
13465  ac_save_LIBS=$LIBS
13466  LIBS="-lX11 $LIBS"
13467  cat >conftest.$ac_ext <<_ACEOF
13468/* confdefs.h.  */
13469_ACEOF
13470cat confdefs.h >>conftest.$ac_ext
13471cat >>conftest.$ac_ext <<_ACEOF
13472/* end confdefs.h.  */
13473#include <X11/Xlib.h>
13474int
13475main ()
13476{
13477XrmInitialize ()
13478  ;
13479  return 0;
13480}
13481_ACEOF
13482rm -f conftest.$ac_objext conftest$ac_exeext
13483if { (ac_try="$ac_link"
13484case "(($ac_try" in
13485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486  *) ac_try_echo=$ac_try;;
13487esac
13488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489  (eval "$ac_link") 2>conftest.er1
13490  ac_status=$?
13491  grep -v '^ *+' conftest.er1 >conftest.err
13492  rm -f conftest.er1
13493  cat conftest.err >&5
13494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495  (exit $ac_status); } && {
13496	 test -z "$ac_c_werror_flag" ||
13497	 test ! -s conftest.err
13498       } && test -s conftest$ac_exeext &&
13499       $as_test_x conftest$ac_exeext; then
13500  LIBS=$ac_save_LIBS
13501# We can link X programs with no special library path.
13502ac_x_libraries=
13503else
13504  echo "$as_me: failed program was:" >&5
13505sed 's/^/| /' conftest.$ac_ext >&5
13506
13507	LIBS=$ac_save_LIBS
13508for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13509do
13510  # Don't even attempt the hair of trying to link an X program!
13511  for ac_extension in a so sl; do
13512    if test -r "$ac_dir/libX11.$ac_extension"; then
13513      ac_x_libraries=$ac_dir
13514      break 2
13515    fi
13516  done
13517done
13518fi
13519
13520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13521      conftest$ac_exeext conftest.$ac_ext
13522fi # $ac_x_libraries = no
13523
13524case $ac_x_includes,$ac_x_libraries in #(
13525  no,* | *,no | *\'*)
13526    # Didn't find X, or a directory has "'" in its name.
13527    ac_cv_have_x="have_x=no";; #(
13528  *)
13529    # Record where we found X for the cache.
13530    ac_cv_have_x="have_x=yes\
13531	ac_x_includes='$ac_x_includes'\
13532	ac_x_libraries='$ac_x_libraries'"
13533esac
13534fi
13535;; #(
13536    *) have_x=yes;;
13537  esac
13538  eval "$ac_cv_have_x"
13539fi # $with_x != no
13540
13541if test "$have_x" != yes; then
13542  { echo "$as_me:$LINENO: result: $have_x" >&5
13543echo "${ECHO_T}$have_x" >&6; }
13544  no_x=yes
13545else
13546  # If each of the values was on the command line, it overrides each guess.
13547  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13548  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13549  # Update the cache value to reflect the command line values.
13550  ac_cv_have_x="have_x=yes\
13551	ac_x_includes='$x_includes'\
13552	ac_x_libraries='$x_libraries'"
13553  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
13554echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
13555fi
13556
13557    if test "x$x_includes" != "x"
13558    then
13559        CPPFLAGS="$CPPFLAGS -I$x_includes"
13560    fi
13561
13562    if test "x$x_libraries" != "x"
13563    then
13564        LIBS="$LIBS -L$x_libraries"
13565    fi
13566
13567    LIB_GL=GL
13568    LIB_GLU=GLU
13569    PROGRAM_EXT=
13570    { echo "$as_me:$LINENO: result: Host OS is not Win32" >&5
13571echo "${ECHO_T}Host OS is not Win32" >&6; }
13572
13573as_ac_Lib=`echo "ac_cv_lib_$LIB_GL''_glVertex3f" | $as_tr_sh`
13574{ echo "$as_me:$LINENO: checking for glVertex3f in -l$LIB_GL" >&5
13575echo $ECHO_N "checking for glVertex3f in -l$LIB_GL... $ECHO_C" >&6; }
13576if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
13577  echo $ECHO_N "(cached) $ECHO_C" >&6
13578else
13579  ac_check_lib_save_LIBS=$LIBS
13580LIBS="-l$LIB_GL  $LIBS"
13581cat >conftest.$ac_ext <<_ACEOF
13582/* confdefs.h.  */
13583_ACEOF
13584cat confdefs.h >>conftest.$ac_ext
13585cat >>conftest.$ac_ext <<_ACEOF
13586/* end confdefs.h.  */
13587
13588/* Override any GCC internal prototype to avoid an error.
13589   Use char because int might match the return type of a GCC
13590   builtin and then its argument prototype would still apply.  */
13591#ifdef __cplusplus
13592extern "C"
13593#endif
13594char glVertex3f ();
13595int
13596main ()
13597{
13598return glVertex3f ();
13599  ;
13600  return 0;
13601}
13602_ACEOF
13603rm -f conftest.$ac_objext conftest$ac_exeext
13604if { (ac_try="$ac_link"
13605case "(($ac_try" in
13606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607  *) ac_try_echo=$ac_try;;
13608esac
13609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13610  (eval "$ac_link") 2>conftest.er1
13611  ac_status=$?
13612  grep -v '^ *+' conftest.er1 >conftest.err
13613  rm -f conftest.er1
13614  cat conftest.err >&5
13615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616  (exit $ac_status); } && {
13617	 test -z "$ac_c_werror_flag" ||
13618	 test ! -s conftest.err
13619       } && test -s conftest$ac_exeext &&
13620       $as_test_x conftest$ac_exeext; then
13621  eval "$as_ac_Lib=yes"
13622else
13623  echo "$as_me: failed program was:" >&5
13624sed 's/^/| /' conftest.$ac_ext >&5
13625
13626	eval "$as_ac_Lib=no"
13627fi
13628
13629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13630      conftest$ac_exeext conftest.$ac_ext
13631LIBS=$ac_check_lib_save_LIBS
13632fi
13633ac_res=`eval echo '${'$as_ac_Lib'}'`
13634	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13635echo "${ECHO_T}$ac_res" >&6; }
13636if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13637  cat >>confdefs.h <<_ACEOF
13638#define `echo "HAVE_LIB$LIB_GL" | $as_tr_cpp` 1
13639_ACEOF
13640
13641  LIBS="-l$LIB_GL $LIBS"
13642
13643else
13644  { { echo "$as_me:$LINENO: error: *** You need OpenGL" >&5
13645echo "$as_me: error: *** You need OpenGL" >&2;}
13646   { (exit 1); exit 1; }; }
13647fi
13648
13649
13650
13651as_ac_Lib=`echo "ac_cv_lib_$LIB_GLU''_gluLookAt" | $as_tr_sh`
13652{ echo "$as_me:$LINENO: checking for gluLookAt in -l$LIB_GLU" >&5
13653echo $ECHO_N "checking for gluLookAt in -l$LIB_GLU... $ECHO_C" >&6; }
13654if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
13655  echo $ECHO_N "(cached) $ECHO_C" >&6
13656else
13657  ac_check_lib_save_LIBS=$LIBS
13658LIBS="-l$LIB_GLU -lm  $LIBS"
13659cat >conftest.$ac_ext <<_ACEOF
13660/* confdefs.h.  */
13661_ACEOF
13662cat confdefs.h >>conftest.$ac_ext
13663cat >>conftest.$ac_ext <<_ACEOF
13664/* end confdefs.h.  */
13665
13666/* Override any GCC internal prototype to avoid an error.
13667   Use char because int might match the return type of a GCC
13668   builtin and then its argument prototype would still apply.  */
13669#ifdef __cplusplus
13670extern "C"
13671#endif
13672char gluLookAt ();
13673int
13674main ()
13675{
13676return gluLookAt ();
13677  ;
13678  return 0;
13679}
13680_ACEOF
13681rm -f conftest.$ac_objext conftest$ac_exeext
13682if { (ac_try="$ac_link"
13683case "(($ac_try" in
13684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685  *) ac_try_echo=$ac_try;;
13686esac
13687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688  (eval "$ac_link") 2>conftest.er1
13689  ac_status=$?
13690  grep -v '^ *+' conftest.er1 >conftest.err
13691  rm -f conftest.er1
13692  cat conftest.err >&5
13693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694  (exit $ac_status); } && {
13695	 test -z "$ac_c_werror_flag" ||
13696	 test ! -s conftest.err
13697       } && test -s conftest$ac_exeext &&
13698       $as_test_x conftest$ac_exeext; then
13699  eval "$as_ac_Lib=yes"
13700else
13701  echo "$as_me: failed program was:" >&5
13702sed 's/^/| /' conftest.$ac_ext >&5
13703
13704	eval "$as_ac_Lib=no"
13705fi
13706
13707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13708      conftest$ac_exeext conftest.$ac_ext
13709LIBS=$ac_check_lib_save_LIBS
13710fi
13711ac_res=`eval echo '${'$as_ac_Lib'}'`
13712	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13713echo "${ECHO_T}$ac_res" >&6; }
13714if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13715  cat >>confdefs.h <<_ACEOF
13716#define `echo "HAVE_LIB$LIB_GLU" | $as_tr_cpp` 1
13717_ACEOF
13718
13719  LIBS="-l$LIB_GLU $LIBS"
13720
13721else
13722  { { echo "$as_me:$LINENO: error: *** You need Glu" >&5
13723echo "$as_me: error: *** You need Glu" >&2;}
13724   { (exit 1); exit 1; }; }
13725fi
13726
13727
13728
13729{ echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5
13730echo $ECHO_N "checking for Mix_OpenAudio in -lSDL_mixer... $ECHO_C" >&6; }
13731if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then
13732  echo $ECHO_N "(cached) $ECHO_C" >&6
13733else
13734  ac_check_lib_save_LIBS=$LIBS
13735LIBS="-lSDL_mixer  $LIBS"
13736cat >conftest.$ac_ext <<_ACEOF
13737/* confdefs.h.  */
13738_ACEOF
13739cat confdefs.h >>conftest.$ac_ext
13740cat >>conftest.$ac_ext <<_ACEOF
13741/* end confdefs.h.  */
13742
13743/* Override any GCC internal prototype to avoid an error.
13744   Use char because int might match the return type of a GCC
13745   builtin and then its argument prototype would still apply.  */
13746#ifdef __cplusplus
13747extern "C"
13748#endif
13749char Mix_OpenAudio ();
13750int
13751main ()
13752{
13753return Mix_OpenAudio ();
13754  ;
13755  return 0;
13756}
13757_ACEOF
13758rm -f conftest.$ac_objext conftest$ac_exeext
13759if { (ac_try="$ac_link"
13760case "(($ac_try" in
13761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762  *) ac_try_echo=$ac_try;;
13763esac
13764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765  (eval "$ac_link") 2>conftest.er1
13766  ac_status=$?
13767  grep -v '^ *+' conftest.er1 >conftest.err
13768  rm -f conftest.er1
13769  cat conftest.err >&5
13770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771  (exit $ac_status); } && {
13772	 test -z "$ac_c_werror_flag" ||
13773	 test ! -s conftest.err
13774       } && test -s conftest$ac_exeext &&
13775       $as_test_x conftest$ac_exeext; then
13776  ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
13777else
13778  echo "$as_me: failed program was:" >&5
13779sed 's/^/| /' conftest.$ac_ext >&5
13780
13781	ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
13782fi
13783
13784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13785      conftest$ac_exeext conftest.$ac_ext
13786LIBS=$ac_check_lib_save_LIBS
13787fi
13788{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
13789echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
13790if test $ac_cv_lib_SDL_mixer_Mix_OpenAudio = yes; then
13791  cat >>confdefs.h <<_ACEOF
13792#define HAVE_LIBSDL_MIXER 1
13793_ACEOF
13794
13795  LIBS="-lSDL_mixer $LIBS"
13796
13797else
13798  { { echo "$as_me:$LINENO: error: SDL-mixer" >&5
13799echo "$as_me: error: SDL-mixer" >&2;}
13800   { (exit 1); exit 1; }; }
13801fi
13802
13803    LIBS="$LIBS -lSDL_mixer"
13804
13805
13806{ echo "$as_me:$LINENO: checking for TTF_Init in -lSDL_ttf" >&5
13807echo $ECHO_N "checking for TTF_Init in -lSDL_ttf... $ECHO_C" >&6; }
13808if test "${ac_cv_lib_SDL_ttf_TTF_Init+set}" = set; then
13809  echo $ECHO_N "(cached) $ECHO_C" >&6
13810else
13811  ac_check_lib_save_LIBS=$LIBS
13812LIBS="-lSDL_ttf  $LIBS"
13813cat >conftest.$ac_ext <<_ACEOF
13814/* confdefs.h.  */
13815_ACEOF
13816cat confdefs.h >>conftest.$ac_ext
13817cat >>conftest.$ac_ext <<_ACEOF
13818/* end confdefs.h.  */
13819
13820/* Override any GCC internal prototype to avoid an error.
13821   Use char because int might match the return type of a GCC
13822   builtin and then its argument prototype would still apply.  */
13823#ifdef __cplusplus
13824extern "C"
13825#endif
13826char TTF_Init ();
13827int
13828main ()
13829{
13830return TTF_Init ();
13831  ;
13832  return 0;
13833}
13834_ACEOF
13835rm -f conftest.$ac_objext conftest$ac_exeext
13836if { (ac_try="$ac_link"
13837case "(($ac_try" in
13838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839  *) ac_try_echo=$ac_try;;
13840esac
13841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842  (eval "$ac_link") 2>conftest.er1
13843  ac_status=$?
13844  grep -v '^ *+' conftest.er1 >conftest.err
13845  rm -f conftest.er1
13846  cat conftest.err >&5
13847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848  (exit $ac_status); } && {
13849	 test -z "$ac_c_werror_flag" ||
13850	 test ! -s conftest.err
13851       } && test -s conftest$ac_exeext &&
13852       $as_test_x conftest$ac_exeext; then
13853  ac_cv_lib_SDL_ttf_TTF_Init=yes
13854else
13855  echo "$as_me: failed program was:" >&5
13856sed 's/^/| /' conftest.$ac_ext >&5
13857
13858	ac_cv_lib_SDL_ttf_TTF_Init=no
13859fi
13860
13861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13862      conftest$ac_exeext conftest.$ac_ext
13863LIBS=$ac_check_lib_save_LIBS
13864fi
13865{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_Init" >&5
13866echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_Init" >&6; }
13867if test $ac_cv_lib_SDL_ttf_TTF_Init = yes; then
13868  cat >>confdefs.h <<_ACEOF
13869#define HAVE_LIBSDL_TTF 1
13870_ACEOF
13871
13872  LIBS="-lSDL_ttf $LIBS"
13873
13874else
13875  { { echo "$as_me:$LINENO: error: SDL_ttf" >&5
13876echo "$as_me: error: SDL_ttf" >&2;}
13877   { (exit 1); exit 1; }; }
13878fi
13879
13880    LIBS="$LIBS -lSDL_ttf"
13881esac
13882
13883
13884# Check whether --enable-debug was given.
13885if test "${enable_debug+set}" = set; then
13886  enableval=$enable_debug; mogl_debug=1
13887else
13888  mogl_debug=0
13889fi
13890
13891if test $mogl_debug -eq 1
13892then
13893        CXXFLAGS="-Wall -g $CXXFLAGS"
13894else
13895        CXXFLAGS="-Wall $CXXFLAGS"
13896fi
13897
13898CPPFLAGS="-DDATADIR_BRIQUOLO=\\\"$datadir/$PACKAGE\\\" $CPPFLAGS"
13899
13900ac_config_files="$ac_config_files po/Makefile.in m4/Makefile intl/Makefile Makefile desktop/Makefile data/Makefile data/data/Makefile data/tableau/Makefile data/tableau/old/Makefile data/tableau/new/Makefile src/MOGL/Makefile src/Makefile"
13901
13902cat >confcache <<\_ACEOF
13903# This file is a shell script that caches the results of configure
13904# tests run on this system so they can be shared between configure
13905# scripts and configure runs, see configure's option --config-cache.
13906# It is not useful on other systems.  If it contains results you don't
13907# want to keep, you may remove or edit it.
13908#
13909# config.status only pays attention to the cache file if you give it
13910# the --recheck option to rerun configure.
13911#
13912# `ac_cv_env_foo' variables (set or unset) will be overridden when
13913# loading this file, other *unset* `ac_cv_foo' will be assigned the
13914# following values.
13915
13916_ACEOF
13917
13918# The following way of writing the cache mishandles newlines in values,
13919# but we know of no workaround that is simple, portable, and efficient.
13920# So, we kill variables containing newlines.
13921# Ultrix sh set writes to stderr and can't be redirected directly,
13922# and sets the high bit in the cache file unless we assign to the vars.
13923(
13924  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13925    eval ac_val=\$$ac_var
13926    case $ac_val in #(
13927    *${as_nl}*)
13928      case $ac_var in #(
13929      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13930echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13931      esac
13932      case $ac_var in #(
13933      _ | IFS | as_nl) ;; #(
13934      *) $as_unset $ac_var ;;
13935      esac ;;
13936    esac
13937  done
13938
13939  (set) 2>&1 |
13940    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13941    *${as_nl}ac_space=\ *)
13942      # `set' does not quote correctly, so add quotes (double-quote
13943      # substitution turns \\\\ into \\, and sed turns \\ into \).
13944      sed -n \
13945	"s/'/'\\\\''/g;
13946	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13947      ;; #(
13948    *)
13949      # `set' quotes correctly as required by POSIX, so do not add quotes.
13950      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13951      ;;
13952    esac |
13953    sort
13954) |
13955  sed '
13956     /^ac_cv_env_/b end
13957     t clear
13958     :clear
13959     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13960     t end
13961     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13962     :end' >>confcache
13963if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13964  if test -w "$cache_file"; then
13965    test "x$cache_file" != "x/dev/null" &&
13966      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13967echo "$as_me: updating cache $cache_file" >&6;}
13968    cat confcache >$cache_file
13969  else
13970    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13971echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13972  fi
13973fi
13974rm -f confcache
13975
13976test "x$prefix" = xNONE && prefix=$ac_default_prefix
13977# Let make expand exec_prefix.
13978test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13979
13980DEFS=-DHAVE_CONFIG_H
13981
13982ac_libobjs=
13983ac_ltlibobjs=
13984for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13985  # 1. Remove the extension, and $U if already installed.
13986  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13987  ac_i=`echo "$ac_i" | sed "$ac_script"`
13988  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13989  #    will be set to the directory where LIBOBJS objects are built.
13990  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13991  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13992done
13993LIBOBJS=$ac_libobjs
13994
13995LTLIBOBJS=$ac_ltlibobjs
13996
13997
13998if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13999  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14000Usually this means the macro was only invoked conditionally." >&5
14001echo "$as_me: error: conditional \"AMDEP\" was never defined.
14002Usually this means the macro was only invoked conditionally." >&2;}
14003   { (exit 1); exit 1; }; }
14004fi
14005if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14006  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
14007Usually this means the macro was only invoked conditionally." >&5
14008echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
14009Usually this means the macro was only invoked conditionally." >&2;}
14010   { (exit 1); exit 1; }; }
14011fi
14012if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14013  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14014Usually this means the macro was only invoked conditionally." >&5
14015echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14016Usually this means the macro was only invoked conditionally." >&2;}
14017   { (exit 1); exit 1; }; }
14018fi
14019
14020: ${CONFIG_STATUS=./config.status}
14021ac_clean_files_save=$ac_clean_files
14022ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14023{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14024echo "$as_me: creating $CONFIG_STATUS" >&6;}
14025cat >$CONFIG_STATUS <<_ACEOF
14026#! $SHELL
14027# Generated by $as_me.
14028# Run this file to recreate the current configuration.
14029# Compiler output produced by configure, useful for debugging
14030# configure, is in config.log if it exists.
14031
14032debug=false
14033ac_cs_recheck=false
14034ac_cs_silent=false
14035SHELL=\${CONFIG_SHELL-$SHELL}
14036_ACEOF
14037
14038cat >>$CONFIG_STATUS <<\_ACEOF
14039## --------------------- ##
14040## M4sh Initialization.  ##
14041## --------------------- ##
14042
14043# Be more Bourne compatible
14044DUALCASE=1; export DUALCASE # for MKS sh
14045if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14046  emulate sh
14047  NULLCMD=:
14048  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14049  # is contrary to our usage.  Disable this feature.
14050  alias -g '${1+"$@"}'='"$@"'
14051  setopt NO_GLOB_SUBST
14052else
14053  case `(set -o) 2>/dev/null` in
14054  *posix*) set -o posix ;;
14055esac
14056
14057fi
14058
14059
14060
14061
14062# PATH needs CR
14063# Avoid depending upon Character Ranges.
14064as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14065as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14066as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14067as_cr_digits='0123456789'
14068as_cr_alnum=$as_cr_Letters$as_cr_digits
14069
14070# The user is always right.
14071if test "${PATH_SEPARATOR+set}" != set; then
14072  echo "#! /bin/sh" >conf$$.sh
14073  echo  "exit 0"   >>conf$$.sh
14074  chmod +x conf$$.sh
14075  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14076    PATH_SEPARATOR=';'
14077  else
14078    PATH_SEPARATOR=:
14079  fi
14080  rm -f conf$$.sh
14081fi
14082
14083# Support unset when possible.
14084if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14085  as_unset=unset
14086else
14087  as_unset=false
14088fi
14089
14090
14091# IFS
14092# We need space, tab and new line, in precisely that order.  Quoting is
14093# there to prevent editors from complaining about space-tab.
14094# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14095# splitting by setting IFS to empty value.)
14096as_nl='
14097'
14098IFS=" ""	$as_nl"
14099
14100# Find who we are.  Look in the path if we contain no directory separator.
14101case $0 in
14102  *[\\/]* ) as_myself=$0 ;;
14103  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104for as_dir in $PATH
14105do
14106  IFS=$as_save_IFS
14107  test -z "$as_dir" && as_dir=.
14108  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14109done
14110IFS=$as_save_IFS
14111
14112     ;;
14113esac
14114# We did not find ourselves, most probably we were run as `sh COMMAND'
14115# in which case we are not to be found in the path.
14116if test "x$as_myself" = x; then
14117  as_myself=$0
14118fi
14119if test ! -f "$as_myself"; then
14120  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14121  { (exit 1); exit 1; }
14122fi
14123
14124# Work around bugs in pre-3.0 UWIN ksh.
14125for as_var in ENV MAIL MAILPATH
14126do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14127done
14128PS1='$ '
14129PS2='> '
14130PS4='+ '
14131
14132# NLS nuisances.
14133for as_var in \
14134  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14135  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14136  LC_TELEPHONE LC_TIME
14137do
14138  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14139    eval $as_var=C; export $as_var
14140  else
14141    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14142  fi
14143done
14144
14145# Required to use basename.
14146if expr a : '\(a\)' >/dev/null 2>&1 &&
14147   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14148  as_expr=expr
14149else
14150  as_expr=false
14151fi
14152
14153if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14154  as_basename=basename
14155else
14156  as_basename=false
14157fi
14158
14159
14160# Name of the executable.
14161as_me=`$as_basename -- "$0" ||
14162$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14163	 X"$0" : 'X\(//\)$' \| \
14164	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14165echo X/"$0" |
14166    sed '/^.*\/\([^/][^/]*\)\/*$/{
14167	    s//\1/
14168	    q
14169	  }
14170	  /^X\/\(\/\/\)$/{
14171	    s//\1/
14172	    q
14173	  }
14174	  /^X\/\(\/\).*/{
14175	    s//\1/
14176	    q
14177	  }
14178	  s/.*/./; q'`
14179
14180# CDPATH.
14181$as_unset CDPATH
14182
14183
14184
14185  as_lineno_1=$LINENO
14186  as_lineno_2=$LINENO
14187  test "x$as_lineno_1" != "x$as_lineno_2" &&
14188  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14189
14190  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14191  # uniformly replaced by the line number.  The first 'sed' inserts a
14192  # line-number line after each line using $LINENO; the second 'sed'
14193  # does the real work.  The second script uses 'N' to pair each
14194  # line-number line with the line containing $LINENO, and appends
14195  # trailing '-' during substitution so that $LINENO is not a special
14196  # case at line end.
14197  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14198  # scripts with optimization help from Paolo Bonzini.  Blame Lee
14199  # E. McMahon (1931-1989) for sed's syntax.  :-)
14200  sed -n '
14201    p
14202    /[$]LINENO/=
14203  ' <$as_myself |
14204    sed '
14205      s/[$]LINENO.*/&-/
14206      t lineno
14207      b
14208      :lineno
14209      N
14210      :loop
14211      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14212      t loop
14213      s/-\n.*//
14214    ' >$as_me.lineno &&
14215  chmod +x "$as_me.lineno" ||
14216    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14217   { (exit 1); exit 1; }; }
14218
14219  # Don't try to exec as it changes $[0], causing all sort of problems
14220  # (the dirname of $[0] is not the place where we might find the
14221  # original and so on.  Autoconf is especially sensitive to this).
14222  . "./$as_me.lineno"
14223  # Exit status is that of the last command.
14224  exit
14225}
14226
14227
14228if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14229  as_dirname=dirname
14230else
14231  as_dirname=false
14232fi
14233
14234ECHO_C= ECHO_N= ECHO_T=
14235case `echo -n x` in
14236-n*)
14237  case `echo 'x\c'` in
14238  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14239  *)   ECHO_C='\c';;
14240  esac;;
14241*)
14242  ECHO_N='-n';;
14243esac
14244
14245if expr a : '\(a\)' >/dev/null 2>&1 &&
14246   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14247  as_expr=expr
14248else
14249  as_expr=false
14250fi
14251
14252rm -f conf$$ conf$$.exe conf$$.file
14253if test -d conf$$.dir; then
14254  rm -f conf$$.dir/conf$$.file
14255else
14256  rm -f conf$$.dir
14257  mkdir conf$$.dir
14258fi
14259echo >conf$$.file
14260if ln -s conf$$.file conf$$ 2>/dev/null; then
14261  as_ln_s='ln -s'
14262  # ... but there are two gotchas:
14263  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14264  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14265  # In both cases, we have to default to `cp -p'.
14266  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14267    as_ln_s='cp -p'
14268elif ln conf$$.file conf$$ 2>/dev/null; then
14269  as_ln_s=ln
14270else
14271  as_ln_s='cp -p'
14272fi
14273rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14274rmdir conf$$.dir 2>/dev/null
14275
14276if mkdir -p . 2>/dev/null; then
14277  as_mkdir_p=:
14278else
14279  test -d ./-p && rmdir ./-p
14280  as_mkdir_p=false
14281fi
14282
14283if test -x / >/dev/null 2>&1; then
14284  as_test_x='test -x'
14285else
14286  if ls -dL / >/dev/null 2>&1; then
14287    as_ls_L_option=L
14288  else
14289    as_ls_L_option=
14290  fi
14291  as_test_x='
14292    eval sh -c '\''
14293      if test -d "$1"; then
14294        test -d "$1/.";
14295      else
14296	case $1 in
14297        -*)set "./$1";;
14298	esac;
14299	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14300	???[sx]*):;;*)false;;esac;fi
14301    '\'' sh
14302  '
14303fi
14304as_executable_p=$as_test_x
14305
14306# Sed expression to map a string onto a valid CPP name.
14307as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14308
14309# Sed expression to map a string onto a valid variable name.
14310as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14311
14312
14313exec 6>&1
14314
14315# Save the log message, to keep $[0] and so on meaningful, and to
14316# report actual input values of CONFIG_FILES etc. instead of their
14317# values after options handling.
14318ac_log="
14319This file was extended by briquolo $as_me 0.5.7, which was
14320generated by GNU Autoconf 2.61.  Invocation command line was
14321
14322  CONFIG_FILES    = $CONFIG_FILES
14323  CONFIG_HEADERS  = $CONFIG_HEADERS
14324  CONFIG_LINKS    = $CONFIG_LINKS
14325  CONFIG_COMMANDS = $CONFIG_COMMANDS
14326  $ $0 $@
14327
14328on `(hostname || uname -n) 2>/dev/null | sed 1q`
14329"
14330
14331_ACEOF
14332
14333cat >>$CONFIG_STATUS <<_ACEOF
14334# Files that config.status was made for.
14335config_files="$ac_config_files"
14336config_headers="$ac_config_headers"
14337config_commands="$ac_config_commands"
14338
14339_ACEOF
14340
14341cat >>$CONFIG_STATUS <<\_ACEOF
14342ac_cs_usage="\
14343\`$as_me' instantiates files from templates according to the
14344current configuration.
14345
14346Usage: $0 [OPTIONS] [FILE]...
14347
14348  -h, --help       print this help, then exit
14349  -V, --version    print version number and configuration settings, then exit
14350  -q, --quiet      do not print progress messages
14351  -d, --debug      don't remove temporary files
14352      --recheck    update $as_me by reconfiguring in the same conditions
14353  --file=FILE[:TEMPLATE]
14354		   instantiate the configuration file FILE
14355  --header=FILE[:TEMPLATE]
14356		   instantiate the configuration header FILE
14357
14358Configuration files:
14359$config_files
14360
14361Configuration headers:
14362$config_headers
14363
14364Configuration commands:
14365$config_commands
14366
14367Report bugs to <bug-autoconf@gnu.org>."
14368
14369_ACEOF
14370cat >>$CONFIG_STATUS <<_ACEOF
14371ac_cs_version="\\
14372briquolo config.status 0.5.7
14373configured by $0, generated by GNU Autoconf 2.61,
14374  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14375
14376Copyright (C) 2006 Free Software Foundation, Inc.
14377This config.status script is free software; the Free Software Foundation
14378gives unlimited permission to copy, distribute and modify it."
14379
14380ac_pwd='$ac_pwd'
14381srcdir='$srcdir'
14382INSTALL='$INSTALL'
14383_ACEOF
14384
14385cat >>$CONFIG_STATUS <<\_ACEOF
14386# If no file are specified by the user, then we need to provide default
14387# value.  By we need to know if files were specified by the user.
14388ac_need_defaults=:
14389while test $# != 0
14390do
14391  case $1 in
14392  --*=*)
14393    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14394    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14395    ac_shift=:
14396    ;;
14397  *)
14398    ac_option=$1
14399    ac_optarg=$2
14400    ac_shift=shift
14401    ;;
14402  esac
14403
14404  case $ac_option in
14405  # Handling of the options.
14406  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14407    ac_cs_recheck=: ;;
14408  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14409    echo "$ac_cs_version"; exit ;;
14410  --debug | --debu | --deb | --de | --d | -d )
14411    debug=: ;;
14412  --file | --fil | --fi | --f )
14413    $ac_shift
14414    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14415    ac_need_defaults=false;;
14416  --header | --heade | --head | --hea )
14417    $ac_shift
14418    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14419    ac_need_defaults=false;;
14420  --he | --h)
14421    # Conflict between --help and --header
14422    { echo "$as_me: error: ambiguous option: $1
14423Try \`$0 --help' for more information." >&2
14424   { (exit 1); exit 1; }; };;
14425  --help | --hel | -h )
14426    echo "$ac_cs_usage"; exit ;;
14427  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14428  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14429    ac_cs_silent=: ;;
14430
14431  # This is an error.
14432  -*) { echo "$as_me: error: unrecognized option: $1
14433Try \`$0 --help' for more information." >&2
14434   { (exit 1); exit 1; }; } ;;
14435
14436  *) ac_config_targets="$ac_config_targets $1"
14437     ac_need_defaults=false ;;
14438
14439  esac
14440  shift
14441done
14442
14443ac_configure_extra_args=
14444
14445if $ac_cs_silent; then
14446  exec 6>/dev/null
14447  ac_configure_extra_args="$ac_configure_extra_args --silent"
14448fi
14449
14450_ACEOF
14451cat >>$CONFIG_STATUS <<_ACEOF
14452if \$ac_cs_recheck; then
14453  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14454  CONFIG_SHELL=$SHELL
14455  export CONFIG_SHELL
14456  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14457fi
14458
14459_ACEOF
14460cat >>$CONFIG_STATUS <<\_ACEOF
14461exec 5>>config.log
14462{
14463  echo
14464  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14465## Running $as_me. ##
14466_ASBOX
14467  echo "$ac_log"
14468} >&5
14469
14470_ACEOF
14471cat >>$CONFIG_STATUS <<_ACEOF
14472#
14473# INIT-COMMANDS
14474#
14475AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14476# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14477    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14478    # from automake.
14479    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14480    # Capture the value of LINGUAS because we need it to compute CATALOGS.
14481    LINGUAS="${LINGUAS-%UNSET%}"
14482
14483
14484_ACEOF
14485
14486cat >>$CONFIG_STATUS <<\_ACEOF
14487
14488# Handling of arguments.
14489for ac_config_target in $ac_config_targets
14490do
14491  case $ac_config_target in
14492    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14493    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14494    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14495    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14496    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
14497    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
14498    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14499    "desktop/Makefile") CONFIG_FILES="$CONFIG_FILES desktop/Makefile" ;;
14500    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
14501    "data/data/Makefile") CONFIG_FILES="$CONFIG_FILES data/data/Makefile" ;;
14502    "data/tableau/Makefile") CONFIG_FILES="$CONFIG_FILES data/tableau/Makefile" ;;
14503    "data/tableau/old/Makefile") CONFIG_FILES="$CONFIG_FILES data/tableau/old/Makefile" ;;
14504    "data/tableau/new/Makefile") CONFIG_FILES="$CONFIG_FILES data/tableau/new/Makefile" ;;
14505    "src/MOGL/Makefile") CONFIG_FILES="$CONFIG_FILES src/MOGL/Makefile" ;;
14506    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14507
14508  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14509echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14510   { (exit 1); exit 1; }; };;
14511  esac
14512done
14513
14514
14515# If the user did not use the arguments to specify the items to instantiate,
14516# then the envvar interface is used.  Set only those that are not.
14517# We use the long form for the default assignment because of an extremely
14518# bizarre bug on SunOS 4.1.3.
14519if $ac_need_defaults; then
14520  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14521  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14522  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14523fi
14524
14525# Have a temporary directory for convenience.  Make it in the build tree
14526# simply because there is no reason against having it here, and in addition,
14527# creating and moving files from /tmp can sometimes cause problems.
14528# Hook for its removal unless debugging.
14529# Note that there is a small window in which the directory will not be cleaned:
14530# after its creation but before its name has been assigned to `$tmp'.
14531$debug ||
14532{
14533  tmp=
14534  trap 'exit_status=$?
14535  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14536' 0
14537  trap '{ (exit 1); exit 1; }' 1 2 13 15
14538}
14539# Create a (secure) tmp directory for tmp files.
14540
14541{
14542  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14543  test -n "$tmp" && test -d "$tmp"
14544}  ||
14545{
14546  tmp=./conf$$-$RANDOM
14547  (umask 077 && mkdir "$tmp")
14548} ||
14549{
14550   echo "$me: cannot create a temporary directory in ." >&2
14551   { (exit 1); exit 1; }
14552}
14553
14554#
14555# Set up the sed scripts for CONFIG_FILES section.
14556#
14557
14558# No need to generate the scripts if there are no CONFIG_FILES.
14559# This happens for instance when ./config.status config.h
14560if test -n "$CONFIG_FILES"; then
14561
14562_ACEOF
14563
14564
14565
14566ac_delim='%!_!# '
14567for ac_last_try in false false false false false :; do
14568  cat >conf$$subs.sed <<_ACEOF
14569SHELL!$SHELL$ac_delim
14570PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14571PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14572PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14573PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14574PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14575PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14576exec_prefix!$exec_prefix$ac_delim
14577prefix!$prefix$ac_delim
14578program_transform_name!$program_transform_name$ac_delim
14579bindir!$bindir$ac_delim
14580sbindir!$sbindir$ac_delim
14581libexecdir!$libexecdir$ac_delim
14582datarootdir!$datarootdir$ac_delim
14583datadir!$datadir$ac_delim
14584sysconfdir!$sysconfdir$ac_delim
14585sharedstatedir!$sharedstatedir$ac_delim
14586localstatedir!$localstatedir$ac_delim
14587includedir!$includedir$ac_delim
14588oldincludedir!$oldincludedir$ac_delim
14589docdir!$docdir$ac_delim
14590infodir!$infodir$ac_delim
14591htmldir!$htmldir$ac_delim
14592dvidir!$dvidir$ac_delim
14593pdfdir!$pdfdir$ac_delim
14594psdir!$psdir$ac_delim
14595libdir!$libdir$ac_delim
14596localedir!$localedir$ac_delim
14597mandir!$mandir$ac_delim
14598DEFS!$DEFS$ac_delim
14599ECHO_C!$ECHO_C$ac_delim
14600ECHO_N!$ECHO_N$ac_delim
14601ECHO_T!$ECHO_T$ac_delim
14602LIBS!$LIBS$ac_delim
14603build_alias!$build_alias$ac_delim
14604host_alias!$host_alias$ac_delim
14605target_alias!$target_alias$ac_delim
14606build!$build$ac_delim
14607build_cpu!$build_cpu$ac_delim
14608build_vendor!$build_vendor$ac_delim
14609build_os!$build_os$ac_delim
14610host!$host$ac_delim
14611host_cpu!$host_cpu$ac_delim
14612host_vendor!$host_vendor$ac_delim
14613host_os!$host_os$ac_delim
14614target!$target$ac_delim
14615target_cpu!$target_cpu$ac_delim
14616target_vendor!$target_vendor$ac_delim
14617target_os!$target_os$ac_delim
14618INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14619INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14620INSTALL_DATA!$INSTALL_DATA$ac_delim
14621CYGPATH_W!$CYGPATH_W$ac_delim
14622PACKAGE!$PACKAGE$ac_delim
14623VERSION!$VERSION$ac_delim
14624ACLOCAL!$ACLOCAL$ac_delim
14625AUTOCONF!$AUTOCONF$ac_delim
14626AUTOMAKE!$AUTOMAKE$ac_delim
14627AUTOHEADER!$AUTOHEADER$ac_delim
14628MAKEINFO!$MAKEINFO$ac_delim
14629install_sh!$install_sh$ac_delim
14630STRIP!$STRIP$ac_delim
14631INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
14632mkdir_p!$mkdir_p$ac_delim
14633AWK!$AWK$ac_delim
14634SET_MAKE!$SET_MAKE$ac_delim
14635am__leading_dot!$am__leading_dot$ac_delim
14636AMTAR!$AMTAR$ac_delim
14637am__tar!$am__tar$ac_delim
14638am__untar!$am__untar$ac_delim
14639CXX!$CXX$ac_delim
14640CXXFLAGS!$CXXFLAGS$ac_delim
14641LDFLAGS!$LDFLAGS$ac_delim
14642CPPFLAGS!$CPPFLAGS$ac_delim
14643ac_ct_CXX!$ac_ct_CXX$ac_delim
14644EXEEXT!$EXEEXT$ac_delim
14645OBJEXT!$OBJEXT$ac_delim
14646DEPDIR!$DEPDIR$ac_delim
14647am__include!$am__include$ac_delim
14648am__quote!$am__quote$ac_delim
14649AMDEP_TRUE!$AMDEP_TRUE$ac_delim
14650AMDEP_FALSE!$AMDEP_FALSE$ac_delim
14651AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
14652CXXDEPMODE!$CXXDEPMODE$ac_delim
14653am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
14654am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
14655CC!$CC$ac_delim
14656CFLAGS!$CFLAGS$ac_delim
14657ac_ct_CC!$ac_ct_CC$ac_delim
14658CCDEPMODE!$CCDEPMODE$ac_delim
14659am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
14660am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
14661RANLIB!$RANLIB$ac_delim
14662YACC!$YACC$ac_delim
14663YFLAGS!$YFLAGS$ac_delim
14664ALLOCA!$ALLOCA$ac_delim
14665CPP!$CPP$ac_delim
14666_ACEOF
14667
14668  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14669    break
14670  elif $ac_last_try; then
14671    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14672echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14673   { (exit 1); exit 1; }; }
14674  else
14675    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14676  fi
14677done
14678
14679ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14680if test -n "$ac_eof"; then
14681  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14682  ac_eof=`expr $ac_eof + 1`
14683fi
14684
14685cat >>$CONFIG_STATUS <<_ACEOF
14686cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14687/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14688_ACEOF
14689sed '
14690s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14691s/^/s,@/; s/!/@,|#_!!_#|/
14692:n
14693t n
14694s/'"$ac_delim"'$/,g/; t
14695s/$/\\/; p
14696N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14697' >>$CONFIG_STATUS <conf$$subs.sed
14698rm -f conf$$subs.sed
14699cat >>$CONFIG_STATUS <<_ACEOF
14700CEOF$ac_eof
14701_ACEOF
14702
14703
14704ac_delim='%!_!# '
14705for ac_last_try in false false false false false :; do
14706  cat >conf$$subs.sed <<_ACEOF
14707GREP!$GREP$ac_delim
14708EGREP!$EGREP$ac_delim
14709LIBOBJS!$LIBOBJS$ac_delim
14710freetypeconfig!$freetypeconfig$ac_delim
14711pngconfig!$pngconfig$ac_delim
14712SDL_CONFIG!$SDL_CONFIG$ac_delim
14713SDL_CFLAGS!$SDL_CFLAGS$ac_delim
14714SDL_LIBS!$SDL_LIBS$ac_delim
14715MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
14716USE_NLS!$USE_NLS$ac_delim
14717MSGFMT!$MSGFMT$ac_delim
14718GMSGFMT!$GMSGFMT$ac_delim
14719XGETTEXT!$XGETTEXT$ac_delim
14720MSGMERGE!$MSGMERGE$ac_delim
14721GLIBC21!$GLIBC21$ac_delim
14722HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
14723HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
14724HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
14725HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
14726LIBICONV!$LIBICONV$ac_delim
14727LTLIBICONV!$LTLIBICONV$ac_delim
14728INTLBISON!$INTLBISON$ac_delim
14729BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
14730USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
14731CATOBJEXT!$CATOBJEXT$ac_delim
14732DATADIRNAME!$DATADIRNAME$ac_delim
14733INSTOBJEXT!$INSTOBJEXT$ac_delim
14734GENCAT!$GENCAT$ac_delim
14735INTLOBJS!$INTLOBJS$ac_delim
14736INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
14737INTLLIBS!$INTLLIBS$ac_delim
14738LIBINTL!$LIBINTL$ac_delim
14739LTLIBINTL!$LTLIBINTL$ac_delim
14740POSUB!$POSUB$ac_delim
14741XMKMF!$XMKMF$ac_delim
14742LTLIBOBJS!$LTLIBOBJS$ac_delim
14743_ACEOF
14744
14745  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then
14746    break
14747  elif $ac_last_try; then
14748    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14749echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14750   { (exit 1); exit 1; }; }
14751  else
14752    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14753  fi
14754done
14755
14756ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14757if test -n "$ac_eof"; then
14758  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14759  ac_eof=`expr $ac_eof + 1`
14760fi
14761
14762cat >>$CONFIG_STATUS <<_ACEOF
14763cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14764/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14765_ACEOF
14766sed '
14767s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14768s/^/s,@/; s/!/@,|#_!!_#|/
14769:n
14770t n
14771s/'"$ac_delim"'$/,g/; t
14772s/$/\\/; p
14773N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14774' >>$CONFIG_STATUS <conf$$subs.sed
14775rm -f conf$$subs.sed
14776cat >>$CONFIG_STATUS <<_ACEOF
14777:end
14778s/|#_!!_#|//g
14779CEOF$ac_eof
14780_ACEOF
14781
14782
14783# VPATH may cause trouble with some makes, so we remove $(srcdir),
14784# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14785# trailing colons and then remove the whole line if VPATH becomes empty
14786# (actually we leave an empty line to preserve line numbers).
14787if test "x$srcdir" = x.; then
14788  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14789s/:*\$(srcdir):*/:/
14790s/:*\${srcdir}:*/:/
14791s/:*@srcdir@:*/:/
14792s/^\([^=]*=[	 ]*\):*/\1/
14793s/:*$//
14794s/^[^=]*=[	 ]*$//
14795}'
14796fi
14797
14798cat >>$CONFIG_STATUS <<\_ACEOF
14799fi # test -n "$CONFIG_FILES"
14800
14801
14802for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
14803do
14804  case $ac_tag in
14805  :[FHLC]) ac_mode=$ac_tag; continue;;
14806  esac
14807  case $ac_mode$ac_tag in
14808  :[FHL]*:*);;
14809  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14810echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14811   { (exit 1); exit 1; }; };;
14812  :[FH]-) ac_tag=-:-;;
14813  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14814  esac
14815  ac_save_IFS=$IFS
14816  IFS=:
14817  set x $ac_tag
14818  IFS=$ac_save_IFS
14819  shift
14820  ac_file=$1
14821  shift
14822
14823  case $ac_mode in
14824  :L) ac_source=$1;;
14825  :[FH])
14826    ac_file_inputs=
14827    for ac_f
14828    do
14829      case $ac_f in
14830      -) ac_f="$tmp/stdin";;
14831      *) # Look for the file first in the build tree, then in the source tree
14832	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14833	 # because $ac_f cannot contain `:'.
14834	 test -f "$ac_f" ||
14835	   case $ac_f in
14836	   [\\/$]*) false;;
14837	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14838	   esac ||
14839	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14840echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14841   { (exit 1); exit 1; }; };;
14842      esac
14843      ac_file_inputs="$ac_file_inputs $ac_f"
14844    done
14845
14846    # Let's still pretend it is `configure' which instantiates (i.e., don't
14847    # use $as_me), people would be surprised to read:
14848    #    /* config.h.  Generated by config.status.  */
14849    configure_input="Generated from "`IFS=:
14850	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14851    if test x"$ac_file" != x-; then
14852      configure_input="$ac_file.  $configure_input"
14853      { echo "$as_me:$LINENO: creating $ac_file" >&5
14854echo "$as_me: creating $ac_file" >&6;}
14855    fi
14856
14857    case $ac_tag in
14858    *:-:* | *:-) cat >"$tmp/stdin";;
14859    esac
14860    ;;
14861  esac
14862
14863  ac_dir=`$as_dirname -- "$ac_file" ||
14864$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14865	 X"$ac_file" : 'X\(//\)[^/]' \| \
14866	 X"$ac_file" : 'X\(//\)$' \| \
14867	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14868echo X"$ac_file" |
14869    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14870	    s//\1/
14871	    q
14872	  }
14873	  /^X\(\/\/\)[^/].*/{
14874	    s//\1/
14875	    q
14876	  }
14877	  /^X\(\/\/\)$/{
14878	    s//\1/
14879	    q
14880	  }
14881	  /^X\(\/\).*/{
14882	    s//\1/
14883	    q
14884	  }
14885	  s/.*/./; q'`
14886  { as_dir="$ac_dir"
14887  case $as_dir in #(
14888  -*) as_dir=./$as_dir;;
14889  esac
14890  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14891    as_dirs=
14892    while :; do
14893      case $as_dir in #(
14894      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14895      *) as_qdir=$as_dir;;
14896      esac
14897      as_dirs="'$as_qdir' $as_dirs"
14898      as_dir=`$as_dirname -- "$as_dir" ||
14899$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14900	 X"$as_dir" : 'X\(//\)[^/]' \| \
14901	 X"$as_dir" : 'X\(//\)$' \| \
14902	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14903echo X"$as_dir" |
14904    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14905	    s//\1/
14906	    q
14907	  }
14908	  /^X\(\/\/\)[^/].*/{
14909	    s//\1/
14910	    q
14911	  }
14912	  /^X\(\/\/\)$/{
14913	    s//\1/
14914	    q
14915	  }
14916	  /^X\(\/\).*/{
14917	    s//\1/
14918	    q
14919	  }
14920	  s/.*/./; q'`
14921      test -d "$as_dir" && break
14922    done
14923    test -z "$as_dirs" || eval "mkdir $as_dirs"
14924  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14925echo "$as_me: error: cannot create directory $as_dir" >&2;}
14926   { (exit 1); exit 1; }; }; }
14927  ac_builddir=.
14928
14929case "$ac_dir" in
14930.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14931*)
14932  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14933  # A ".." for each directory in $ac_dir_suffix.
14934  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14935  case $ac_top_builddir_sub in
14936  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14937  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14938  esac ;;
14939esac
14940ac_abs_top_builddir=$ac_pwd
14941ac_abs_builddir=$ac_pwd$ac_dir_suffix
14942# for backward compatibility:
14943ac_top_builddir=$ac_top_build_prefix
14944
14945case $srcdir in
14946  .)  # We are building in place.
14947    ac_srcdir=.
14948    ac_top_srcdir=$ac_top_builddir_sub
14949    ac_abs_top_srcdir=$ac_pwd ;;
14950  [\\/]* | ?:[\\/]* )  # Absolute name.
14951    ac_srcdir=$srcdir$ac_dir_suffix;
14952    ac_top_srcdir=$srcdir
14953    ac_abs_top_srcdir=$srcdir ;;
14954  *) # Relative name.
14955    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14956    ac_top_srcdir=$ac_top_build_prefix$srcdir
14957    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14958esac
14959ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14960
14961
14962  case $ac_mode in
14963  :F)
14964  #
14965  # CONFIG_FILE
14966  #
14967
14968  case $INSTALL in
14969  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14970  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14971  esac
14972_ACEOF
14973
14974cat >>$CONFIG_STATUS <<\_ACEOF
14975# If the template does not know about datarootdir, expand it.
14976# FIXME: This hack should be removed a few years after 2.60.
14977ac_datarootdir_hack=; ac_datarootdir_seen=
14978
14979case `sed -n '/datarootdir/ {
14980  p
14981  q
14982}
14983/@datadir@/p
14984/@docdir@/p
14985/@infodir@/p
14986/@localedir@/p
14987/@mandir@/p
14988' $ac_file_inputs` in
14989*datarootdir*) ac_datarootdir_seen=yes;;
14990*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14991  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14992echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14993_ACEOF
14994cat >>$CONFIG_STATUS <<_ACEOF
14995  ac_datarootdir_hack='
14996  s&@datadir@&$datadir&g
14997  s&@docdir@&$docdir&g
14998  s&@infodir@&$infodir&g
14999  s&@localedir@&$localedir&g
15000  s&@mandir@&$mandir&g
15001    s&\\\${datarootdir}&$datarootdir&g' ;;
15002esac
15003_ACEOF
15004
15005# Neutralize VPATH when `$srcdir' = `.'.
15006# Shell code in configure.ac might set extrasub.
15007# FIXME: do we really want to maintain this feature?
15008cat >>$CONFIG_STATUS <<_ACEOF
15009  sed "$ac_vpsub
15010$extrasub
15011_ACEOF
15012cat >>$CONFIG_STATUS <<\_ACEOF
15013:t
15014/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15015s&@configure_input@&$configure_input&;t t
15016s&@top_builddir@&$ac_top_builddir_sub&;t t
15017s&@srcdir@&$ac_srcdir&;t t
15018s&@abs_srcdir@&$ac_abs_srcdir&;t t
15019s&@top_srcdir@&$ac_top_srcdir&;t t
15020s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15021s&@builddir@&$ac_builddir&;t t
15022s&@abs_builddir@&$ac_abs_builddir&;t t
15023s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15024s&@INSTALL@&$ac_INSTALL&;t t
15025$ac_datarootdir_hack
15026" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
15027
15028test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15029  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15030  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15031  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15032which seems to be undefined.  Please make sure it is defined." >&5
15033echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15034which seems to be undefined.  Please make sure it is defined." >&2;}
15035
15036  rm -f "$tmp/stdin"
15037  case $ac_file in
15038  -) cat "$tmp/out"; rm -f "$tmp/out";;
15039  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15040  esac
15041 ;;
15042  :H)
15043  #
15044  # CONFIG_HEADER
15045  #
15046_ACEOF
15047
15048# Transform confdefs.h into a sed script `conftest.defines', that
15049# substitutes the proper values into config.h.in to produce config.h.
15050rm -f conftest.defines conftest.tail
15051# First, append a space to every undef/define line, to ease matching.
15052echo 's/$/ /' >conftest.defines
15053# Then, protect against being on the right side of a sed subst, or in
15054# an unquoted here document, in config.status.  If some macros were
15055# called several times there might be several #defines for the same
15056# symbol, which is useless.  But do not sort them, since the last
15057# AC_DEFINE must be honored.
15058ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15059# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15060# NAME is the cpp macro being defined, VALUE is the value it is being given.
15061# PARAMS is the parameter list in the macro definition--in most cases, it's
15062# just an empty string.
15063ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
15064ac_dB='\\)[	 (].*,\\1define\\2'
15065ac_dC=' '
15066ac_dD=' ,'
15067
15068uniq confdefs.h |
15069  sed -n '
15070	t rset
15071	:rset
15072	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
15073	t ok
15074	d
15075	:ok
15076	s/[\\&,]/\\&/g
15077	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15078	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15079  ' >>conftest.defines
15080
15081# Remove the space that was appended to ease matching.
15082# Then replace #undef with comments.  This is necessary, for
15083# example, in the case of _POSIX_SOURCE, which is predefined and required
15084# on some systems where configure will not decide to define it.
15085# (The regexp can be short, since the line contains either #define or #undef.)
15086echo 's/ $//
15087s,^[	 #]*u.*,/* & */,' >>conftest.defines
15088
15089# Break up conftest.defines:
15090ac_max_sed_lines=50
15091
15092# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15093# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15094# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15095# et cetera.
15096ac_in='$ac_file_inputs'
15097ac_out='"$tmp/out1"'
15098ac_nxt='"$tmp/out2"'
15099
15100while :
15101do
15102  # Write a here document:
15103    cat >>$CONFIG_STATUS <<_ACEOF
15104    # First, check the format of the line:
15105    cat >"\$tmp/defines.sed" <<\\CEOF
15106/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
15107/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
15108b
15109:def
15110_ACEOF
15111  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15112  echo 'CEOF
15113    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15114  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15115  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15116  grep . conftest.tail >/dev/null || break
15117  rm -f conftest.defines
15118  mv conftest.tail conftest.defines
15119done
15120rm -f conftest.defines conftest.tail
15121
15122echo "ac_result=$ac_in" >>$CONFIG_STATUS
15123cat >>$CONFIG_STATUS <<\_ACEOF
15124  if test x"$ac_file" != x-; then
15125    echo "/* $configure_input  */" >"$tmp/config.h"
15126    cat "$ac_result" >>"$tmp/config.h"
15127    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15128      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15129echo "$as_me: $ac_file is unchanged" >&6;}
15130    else
15131      rm -f $ac_file
15132      mv "$tmp/config.h" $ac_file
15133    fi
15134  else
15135    echo "/* $configure_input  */"
15136    cat "$ac_result"
15137  fi
15138  rm -f "$tmp/out12"
15139# Compute $ac_file's index in $config_headers.
15140_am_stamp_count=1
15141for _am_header in $config_headers :; do
15142  case $_am_header in
15143    $ac_file | $ac_file:* )
15144      break ;;
15145    * )
15146      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15147  esac
15148done
15149echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
15150$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15151	 X$ac_file : 'X\(//\)[^/]' \| \
15152	 X$ac_file : 'X\(//\)$' \| \
15153	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
15154echo X$ac_file |
15155    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15156	    s//\1/
15157	    q
15158	  }
15159	  /^X\(\/\/\)[^/].*/{
15160	    s//\1/
15161	    q
15162	  }
15163	  /^X\(\/\/\)$/{
15164	    s//\1/
15165	    q
15166	  }
15167	  /^X\(\/\).*/{
15168	    s//\1/
15169	    q
15170	  }
15171	  s/.*/./; q'`/stamp-h$_am_stamp_count
15172 ;;
15173
15174  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15175echo "$as_me: executing $ac_file commands" >&6;}
15176 ;;
15177  esac
15178
15179
15180  case $ac_file$ac_mode in
15181    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15182  # Strip MF so we end up with the name of the file.
15183  mf=`echo "$mf" | sed -e 's/:.*$//'`
15184  # Check whether this is an Automake generated Makefile or not.
15185  # We used to match only the files named `Makefile.in', but
15186  # some people rename them; so instead we look at the file content.
15187  # Grep'ing the first line is not enough: some people post-process
15188  # each Makefile.in and add a new line on top of each file to say so.
15189  # So let's grep whole file.
15190  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15191    dirpart=`$as_dirname -- "$mf" ||
15192$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15193	 X"$mf" : 'X\(//\)[^/]' \| \
15194	 X"$mf" : 'X\(//\)$' \| \
15195	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15196echo X"$mf" |
15197    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15198	    s//\1/
15199	    q
15200	  }
15201	  /^X\(\/\/\)[^/].*/{
15202	    s//\1/
15203	    q
15204	  }
15205	  /^X\(\/\/\)$/{
15206	    s//\1/
15207	    q
15208	  }
15209	  /^X\(\/\).*/{
15210	    s//\1/
15211	    q
15212	  }
15213	  s/.*/./; q'`
15214  else
15215    continue
15216  fi
15217  # Extract the definition of DEPDIR, am__include, and am__quote
15218  # from the Makefile without running `make'.
15219  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15220  test -z "$DEPDIR" && continue
15221  am__include=`sed -n 's/^am__include = //p' < "$mf"`
15222  test -z "am__include" && continue
15223  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15224  # When using ansi2knr, U may be empty or an underscore; expand it
15225  U=`sed -n 's/^U = //p' < "$mf"`
15226  # Find all dependency output files, they are included files with
15227  # $(DEPDIR) in their names.  We invoke sed twice because it is the
15228  # simplest approach to changing $(DEPDIR) to its actual value in the
15229  # expansion.
15230  for file in `sed -n "
15231    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15232       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15233    # Make sure the directory exists.
15234    test -f "$dirpart/$file" && continue
15235    fdir=`$as_dirname -- "$file" ||
15236$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15237	 X"$file" : 'X\(//\)[^/]' \| \
15238	 X"$file" : 'X\(//\)$' \| \
15239	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15240echo X"$file" |
15241    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15242	    s//\1/
15243	    q
15244	  }
15245	  /^X\(\/\/\)[^/].*/{
15246	    s//\1/
15247	    q
15248	  }
15249	  /^X\(\/\/\)$/{
15250	    s//\1/
15251	    q
15252	  }
15253	  /^X\(\/\).*/{
15254	    s//\1/
15255	    q
15256	  }
15257	  s/.*/./; q'`
15258    { as_dir=$dirpart/$fdir
15259  case $as_dir in #(
15260  -*) as_dir=./$as_dir;;
15261  esac
15262  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15263    as_dirs=
15264    while :; do
15265      case $as_dir in #(
15266      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15267      *) as_qdir=$as_dir;;
15268      esac
15269      as_dirs="'$as_qdir' $as_dirs"
15270      as_dir=`$as_dirname -- "$as_dir" ||
15271$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15272	 X"$as_dir" : 'X\(//\)[^/]' \| \
15273	 X"$as_dir" : 'X\(//\)$' \| \
15274	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15275echo X"$as_dir" |
15276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15277	    s//\1/
15278	    q
15279	  }
15280	  /^X\(\/\/\)[^/].*/{
15281	    s//\1/
15282	    q
15283	  }
15284	  /^X\(\/\/\)$/{
15285	    s//\1/
15286	    q
15287	  }
15288	  /^X\(\/\).*/{
15289	    s//\1/
15290	    q
15291	  }
15292	  s/.*/./; q'`
15293      test -d "$as_dir" && break
15294    done
15295    test -z "$as_dirs" || eval "mkdir $as_dirs"
15296  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15297echo "$as_me: error: cannot create directory $as_dir" >&2;}
15298   { (exit 1); exit 1; }; }; }
15299    # echo "creating $dirpart/$file"
15300    echo '# dummy' > "$dirpart/$file"
15301  done
15302done
15303 ;;
15304    "default-1":C)
15305    for ac_file in $CONFIG_FILES; do
15306      # Support "outfile[:infile[:infile...]]"
15307      case "$ac_file" in
15308        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15309      esac
15310      # PO directories have a Makefile.in generated from Makefile.in.in.
15311      case "$ac_file" in */Makefile.in)
15312        # Adjust a relative srcdir.
15313        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15314        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15315        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15316        # In autoconf-2.13 it is called $ac_given_srcdir.
15317        # In autoconf-2.50 it is called $srcdir.
15318        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15319        case "$ac_given_srcdir" in
15320          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15321          /*) top_srcdir="$ac_given_srcdir" ;;
15322          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15323        esac
15324        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15325          rm -f "$ac_dir/POTFILES"
15326          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15327          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15328          POMAKEFILEDEPS="POTFILES.in"
15329          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15330          # on $ac_dir but don't depend on user-specified configuration
15331          # parameters.
15332          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15333            # The LINGUAS file contains the set of available languages.
15334            if test -n "$OBSOLETE_ALL_LINGUAS"; then
15335              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15336            fi
15337            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15338            # Hide the ALL_LINGUAS assigment from automake.
15339            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15340            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15341          else
15342            # The set of available languages was given in configure.in.
15343            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15344          fi
15345          # Compute POFILES
15346          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15347          # Compute UPDATEPOFILES
15348          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15349          # Compute DUMMYPOFILES
15350          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15351          # Compute GMOFILES
15352          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15353          case "$ac_given_srcdir" in
15354            .) srcdirpre= ;;
15355            *) srcdirpre='$(srcdir)/' ;;
15356          esac
15357          POFILES=
15358          UPDATEPOFILES=
15359          DUMMYPOFILES=
15360          GMOFILES=
15361          for lang in $ALL_LINGUAS; do
15362            POFILES="$POFILES $srcdirpre$lang.po"
15363            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15364            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15365            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15366          done
15367          # CATALOGS depends on both $ac_dir and the user's LINGUAS
15368          # environment variable.
15369          INST_LINGUAS=
15370          if test -n "$ALL_LINGUAS"; then
15371            for presentlang in $ALL_LINGUAS; do
15372              useit=no
15373              if test "%UNSET%" != "$LINGUAS"; then
15374                desiredlanguages="$LINGUAS"
15375              else
15376                desiredlanguages="$ALL_LINGUAS"
15377              fi
15378              for desiredlang in $desiredlanguages; do
15379                # Use the presentlang catalog if desiredlang is
15380                #   a. equal to presentlang, or
15381                #   b. a variant of presentlang (because in this case,
15382                #      presentlang can be used as a fallback for messages
15383                #      which are not translated in the desiredlang catalog).
15384                case "$desiredlang" in
15385                  "$presentlang"*) useit=yes;;
15386                esac
15387              done
15388              if test $useit = yes; then
15389                INST_LINGUAS="$INST_LINGUAS $presentlang"
15390              fi
15391            done
15392          fi
15393          CATALOGS=
15394          if test -n "$INST_LINGUAS"; then
15395            for lang in $INST_LINGUAS; do
15396              CATALOGS="$CATALOGS $lang.gmo"
15397            done
15398          fi
15399          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15400          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15401          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15402            if test -f "$f"; then
15403              case "$f" in
15404                *.orig | *.bak | *~) ;;
15405                *) cat "$f" >> "$ac_dir/Makefile" ;;
15406              esac
15407            fi
15408          done
15409        fi
15410        ;;
15411      esac
15412    done ;;
15413
15414  esac
15415done # for ac_tag
15416
15417
15418{ (exit 0); exit 0; }
15419_ACEOF
15420chmod +x $CONFIG_STATUS
15421ac_clean_files=$ac_clean_files_save
15422
15423
15424# configure is writing to config.log, and then calls config.status.
15425# config.status does its own redirection, appending to config.log.
15426# Unfortunately, on DOS this fails, as config.log is still kept open
15427# by configure, so config.status won't be able to write to it; its
15428# output is simply discarded.  So we exec the FD to /dev/null,
15429# effectively closing config.log, so it can be properly (re)opened and
15430# appended to by config.status.  When coming back to configure, we
15431# need to make the FD available again.
15432if test "$no_create" != yes; then
15433  ac_cs_success=:
15434  ac_config_status_args=
15435  test "$silent" = yes &&
15436    ac_config_status_args="$ac_config_status_args --quiet"
15437  exec 5>/dev/null
15438  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15439  exec 5>>config.log
15440  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15441  # would make configure fail if this is the last instruction.
15442  $ac_cs_success || { (exit 1); exit 1; }
15443fi
15444
15445