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