1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="viterbi27.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_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 SO_NAME VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SH_LIB REBIND MLIBS ARCH_OPTION LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778  # Omit some internal or obsolete options to make the list less imposing.
779  # This message is too long to be a string in the A/UX 3.1 sh.
780  cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791  -h, --help              display this help and exit
792      --help=short        display options specific to this package
793      --help=recursive    display the short help of all the included packages
794  -V, --version           display version information and exit
795  -q, --quiet, --silent   do not print \`checking...' messages
796      --cache-file=FILE   cache test results in FILE [disabled]
797  -C, --config-cache      alias for \`--cache-file=config.cache'
798  -n, --no-create         do not create output files
799      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation directories:
805  --prefix=PREFIX         install architecture-independent files in PREFIX
806			  [$ac_default_prefix]
807  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808			  [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818  --bindir=DIR           user executables [EPREFIX/bin]
819  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820  --libexecdir=DIR       program executables [EPREFIX/libexec]
821  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825  --libdir=DIR           object code libraries [EPREFIX/lib]
826  --includedir=DIR       C header files [PREFIX/include]
827  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828  --infodir=DIR          info documentation [PREFIX/info]
829  --mandir=DIR           man documentation [PREFIX/man]
830_ACEOF
831
832  cat <<\_ACEOF
833
834System types:
835  --build=BUILD     configure for building on BUILD [guessed]
836  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837  --target=TARGET   configure for building compilers for TARGET [HOST]
838_ACEOF
839fi
840
841if test -n "$ac_init_help"; then
842
843  cat <<\_ACEOF
844
845Some influential environment variables:
846  CC          C compiler command
847  CFLAGS      C compiler flags
848  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
849              nonstandard directory <lib dir>
850  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
851              headers in a nonstandard directory <include dir>
852  CPP         C preprocessor
853
854Use these variables to override the choices made by `configure' or to help
855it to find libraries and programs with nonstandard names/locations.
856
857_ACEOF
858fi
859
860if test "$ac_init_help" = "recursive"; then
861  # If there are subdirs, report their specific --help.
862  ac_popdir=`pwd`
863  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
864    test -d $ac_dir || continue
865    ac_builddir=.
866
867if test "$ac_dir" != .; then
868  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
869  # A "../" for each directory in $ac_dir_suffix.
870  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
871else
872  ac_dir_suffix= ac_top_builddir=
873fi
874
875case $srcdir in
876  .)  # No --srcdir option.  We are building in place.
877    ac_srcdir=.
878    if test -z "$ac_top_builddir"; then
879       ac_top_srcdir=.
880    else
881       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
882    fi ;;
883  [\\/]* | ?:[\\/]* )  # Absolute path.
884    ac_srcdir=$srcdir$ac_dir_suffix;
885    ac_top_srcdir=$srcdir ;;
886  *) # Relative path.
887    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
888    ac_top_srcdir=$ac_top_builddir$srcdir ;;
889esac
890
891# Do not use `cd foo && pwd` to compute absolute paths, because
892# the directories may not exist.
893case `pwd` in
894.) ac_abs_builddir="$ac_dir";;
895*)
896  case "$ac_dir" in
897  .) ac_abs_builddir=`pwd`;;
898  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
899  *) ac_abs_builddir=`pwd`/"$ac_dir";;
900  esac;;
901esac
902case $ac_abs_builddir in
903.) ac_abs_top_builddir=${ac_top_builddir}.;;
904*)
905  case ${ac_top_builddir}. in
906  .) ac_abs_top_builddir=$ac_abs_builddir;;
907  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
908  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
909  esac;;
910esac
911case $ac_abs_builddir in
912.) ac_abs_srcdir=$ac_srcdir;;
913*)
914  case $ac_srcdir in
915  .) ac_abs_srcdir=$ac_abs_builddir;;
916  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
917  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
918  esac;;
919esac
920case $ac_abs_builddir in
921.) ac_abs_top_srcdir=$ac_top_srcdir;;
922*)
923  case $ac_top_srcdir in
924  .) ac_abs_top_srcdir=$ac_abs_builddir;;
925  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
926  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
927  esac;;
928esac
929
930    cd $ac_dir
931    # Check for guested configure; otherwise get Cygnus style configure.
932    if test -f $ac_srcdir/configure.gnu; then
933      echo
934      $SHELL $ac_srcdir/configure.gnu  --help=recursive
935    elif test -f $ac_srcdir/configure; then
936      echo
937      $SHELL $ac_srcdir/configure  --help=recursive
938    elif test -f $ac_srcdir/configure.ac ||
939	   test -f $ac_srcdir/configure.in; then
940      echo
941      $ac_configure --help
942    else
943      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
944    fi
945    cd $ac_popdir
946  done
947fi
948
949test -n "$ac_init_help" && exit 0
950if $ac_init_version; then
951  cat <<\_ACEOF
952
953Copyright (C) 2003 Free Software Foundation, Inc.
954This configure script is free software; the Free Software Foundation
955gives unlimited permission to copy, distribute and modify it.
956_ACEOF
957  exit 0
958fi
959exec 5>config.log
960cat >&5 <<_ACEOF
961This file contains any messages produced by compilers while
962running configure, to aid debugging if configure makes a mistake.
963
964It was created by $as_me, which was
965generated by GNU Autoconf 2.59.  Invocation command line was
966
967  $ $0 $@
968
969_ACEOF
970{
971cat <<_ASUNAME
972## --------- ##
973## Platform. ##
974## --------- ##
975
976hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
977uname -m = `(uname -m) 2>/dev/null || echo unknown`
978uname -r = `(uname -r) 2>/dev/null || echo unknown`
979uname -s = `(uname -s) 2>/dev/null || echo unknown`
980uname -v = `(uname -v) 2>/dev/null || echo unknown`
981
982/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
983/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
984
985/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
986/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
987/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
988hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
989/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
990/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
991/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
992
993_ASUNAME
994
995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
996for as_dir in $PATH
997do
998  IFS=$as_save_IFS
999  test -z "$as_dir" && as_dir=.
1000  echo "PATH: $as_dir"
1001done
1002
1003} >&5
1004
1005cat >&5 <<_ACEOF
1006
1007
1008## ----------- ##
1009## Core tests. ##
1010## ----------- ##
1011
1012_ACEOF
1013
1014
1015# Keep a trace of the command line.
1016# Strip out --no-create and --no-recursion so they do not pile up.
1017# Strip out --silent because we don't want to record it for future runs.
1018# Also quote any args containing shell meta-characters.
1019# Make two passes to allow for proper duplicate-argument suppression.
1020ac_configure_args=
1021ac_configure_args0=
1022ac_configure_args1=
1023ac_sep=
1024ac_must_keep_next=false
1025for ac_pass in 1 2
1026do
1027  for ac_arg
1028  do
1029    case $ac_arg in
1030    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1031    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032    | -silent | --silent | --silen | --sile | --sil)
1033      continue ;;
1034    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036    esac
1037    case $ac_pass in
1038    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1039    2)
1040      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1041      if test $ac_must_keep_next = true; then
1042	ac_must_keep_next=false # Got value, back to normal.
1043      else
1044	case $ac_arg in
1045	  *=* | --config-cache | -C | -disable-* | --disable-* \
1046	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1047	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1048	  | -with-* | --with-* | -without-* | --without-* | --x)
1049	    case "$ac_configure_args0 " in
1050	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1051	    esac
1052	    ;;
1053	  -* ) ac_must_keep_next=true ;;
1054	esac
1055      fi
1056      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1057      # Get rid of the leading space.
1058      ac_sep=" "
1059      ;;
1060    esac
1061  done
1062done
1063$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1064$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1065
1066# When interrupted or exit'd, cleanup temporary files, and complete
1067# config.log.  We remove comments because anyway the quotes in there
1068# would cause problems or look ugly.
1069# WARNING: Be sure not to use single quotes in there, as some shells,
1070# such as our DU 5.0 friend, will then `close' the trap.
1071trap 'exit_status=$?
1072  # Save into config.log some information that might help in debugging.
1073  {
1074    echo
1075
1076    cat <<\_ASBOX
1077## ---------------- ##
1078## Cache variables. ##
1079## ---------------- ##
1080_ASBOX
1081    echo
1082    # The following way of writing the cache mishandles newlines in values,
1083{
1084  (set) 2>&1 |
1085    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1086    *ac_space=\ *)
1087      sed -n \
1088	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1089	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1090      ;;
1091    *)
1092      sed -n \
1093	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1094      ;;
1095    esac;
1096}
1097    echo
1098
1099    cat <<\_ASBOX
1100## ----------------- ##
1101## Output variables. ##
1102## ----------------- ##
1103_ASBOX
1104    echo
1105    for ac_var in $ac_subst_vars
1106    do
1107      eval ac_val=$`echo $ac_var`
1108      echo "$ac_var='"'"'$ac_val'"'"'"
1109    done | sort
1110    echo
1111
1112    if test -n "$ac_subst_files"; then
1113      cat <<\_ASBOX
1114## ------------- ##
1115## Output files. ##
1116## ------------- ##
1117_ASBOX
1118      echo
1119      for ac_var in $ac_subst_files
1120      do
1121	eval ac_val=$`echo $ac_var`
1122	echo "$ac_var='"'"'$ac_val'"'"'"
1123      done | sort
1124      echo
1125    fi
1126
1127    if test -s confdefs.h; then
1128      cat <<\_ASBOX
1129## ----------- ##
1130## confdefs.h. ##
1131## ----------- ##
1132_ASBOX
1133      echo
1134      sed "/^$/d" confdefs.h | sort
1135      echo
1136    fi
1137    test "$ac_signal" != 0 &&
1138      echo "$as_me: caught signal $ac_signal"
1139    echo "$as_me: exit $exit_status"
1140  } >&5
1141  rm -f core *.core &&
1142  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1143    exit $exit_status
1144     ' 0
1145for ac_signal in 1 2 13 15; do
1146  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1147done
1148ac_signal=0
1149
1150# confdefs.h avoids OS command line length limits that DEFS can exceed.
1151rm -rf conftest* confdefs.h
1152# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1153echo >confdefs.h
1154
1155# Predefined preprocessor variables.
1156
1157cat >>confdefs.h <<_ACEOF
1158#define PACKAGE_NAME "$PACKAGE_NAME"
1159_ACEOF
1160
1161
1162cat >>confdefs.h <<_ACEOF
1163#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1164_ACEOF
1165
1166
1167cat >>confdefs.h <<_ACEOF
1168#define PACKAGE_VERSION "$PACKAGE_VERSION"
1169_ACEOF
1170
1171
1172cat >>confdefs.h <<_ACEOF
1173#define PACKAGE_STRING "$PACKAGE_STRING"
1174_ACEOF
1175
1176
1177cat >>confdefs.h <<_ACEOF
1178#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1179_ACEOF
1180
1181
1182# Let the site file select an alternate cache file if it wants to.
1183# Prefer explicitly selected file to automatically selected ones.
1184if test -z "$CONFIG_SITE"; then
1185  if test "x$prefix" != xNONE; then
1186    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1187  else
1188    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1189  fi
1190fi
1191for ac_site_file in $CONFIG_SITE; do
1192  if test -r "$ac_site_file"; then
1193    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1194echo "$as_me: loading site script $ac_site_file" >&6;}
1195    sed 's/^/| /' "$ac_site_file" >&5
1196    . "$ac_site_file"
1197  fi
1198done
1199
1200if test -r "$cache_file"; then
1201  # Some versions of bash will fail to source /dev/null (special
1202  # files actually), so we avoid doing that.
1203  if test -f "$cache_file"; then
1204    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1205echo "$as_me: loading cache $cache_file" >&6;}
1206    case $cache_file in
1207      [\\/]* | ?:[\\/]* ) . $cache_file;;
1208      *)                      . ./$cache_file;;
1209    esac
1210  fi
1211else
1212  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1213echo "$as_me: creating cache $cache_file" >&6;}
1214  >$cache_file
1215fi
1216
1217# Check that the precious variables saved in the cache have kept the same
1218# value.
1219ac_cache_corrupted=false
1220for ac_var in `(set) 2>&1 |
1221	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1222  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1223  eval ac_new_set=\$ac_env_${ac_var}_set
1224  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1225  eval ac_new_val="\$ac_env_${ac_var}_value"
1226  case $ac_old_set,$ac_new_set in
1227    set,)
1228      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1229echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1230      ac_cache_corrupted=: ;;
1231    ,set)
1232      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1233echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1234      ac_cache_corrupted=: ;;
1235    ,);;
1236    *)
1237      if test "x$ac_old_val" != "x$ac_new_val"; then
1238	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1239echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1240	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1241echo "$as_me:   former value:  $ac_old_val" >&2;}
1242	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1243echo "$as_me:   current value: $ac_new_val" >&2;}
1244	ac_cache_corrupted=:
1245      fi;;
1246  esac
1247  # Pass precious variables to config.status.
1248  if test "$ac_new_set" = set; then
1249    case $ac_new_val in
1250    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1252    *) ac_arg=$ac_var=$ac_new_val ;;
1253    esac
1254    case " $ac_configure_args " in
1255      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1256      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1257    esac
1258  fi
1259done
1260if $ac_cache_corrupted; then
1261  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1262echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1263  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1264echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1265   { (exit 1); exit 1; }; }
1266fi
1267
1268ac_ext=c
1269ac_cpp='$CPP $CPPFLAGS'
1270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1272ac_compiler_gnu=$ac_cv_c_compiler_gnu
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292          ac_config_headers="$ac_config_headers config.h"
1293
1294SO_NAME=3
1295VERSION=3.0.0
1296
1297
1298
1299ac_ext=c
1300ac_cpp='$CPP $CPPFLAGS'
1301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304if test -n "$ac_tool_prefix"; then
1305  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1306set dummy ${ac_tool_prefix}gcc; ac_word=$2
1307echo "$as_me:$LINENO: checking for $ac_word" >&5
1308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1309if test "${ac_cv_prog_CC+set}" = set; then
1310  echo $ECHO_N "(cached) $ECHO_C" >&6
1311else
1312  if test -n "$CC"; then
1313  ac_cv_prog_CC="$CC" # Let the user override the test.
1314else
1315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1316for as_dir in $PATH
1317do
1318  IFS=$as_save_IFS
1319  test -z "$as_dir" && as_dir=.
1320  for ac_exec_ext in '' $ac_executable_extensions; do
1321  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1322    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1323    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1324    break 2
1325  fi
1326done
1327done
1328
1329fi
1330fi
1331CC=$ac_cv_prog_CC
1332if test -n "$CC"; then
1333  echo "$as_me:$LINENO: result: $CC" >&5
1334echo "${ECHO_T}$CC" >&6
1335else
1336  echo "$as_me:$LINENO: result: no" >&5
1337echo "${ECHO_T}no" >&6
1338fi
1339
1340fi
1341if test -z "$ac_cv_prog_CC"; then
1342  ac_ct_CC=$CC
1343  # Extract the first word of "gcc", so it can be a program name with args.
1344set dummy gcc; ac_word=$2
1345echo "$as_me:$LINENO: checking for $ac_word" >&5
1346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1347if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1348  echo $ECHO_N "(cached) $ECHO_C" >&6
1349else
1350  if test -n "$ac_ct_CC"; then
1351  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1352else
1353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1354for as_dir in $PATH
1355do
1356  IFS=$as_save_IFS
1357  test -z "$as_dir" && as_dir=.
1358  for ac_exec_ext in '' $ac_executable_extensions; do
1359  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1360    ac_cv_prog_ac_ct_CC="gcc"
1361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1362    break 2
1363  fi
1364done
1365done
1366
1367fi
1368fi
1369ac_ct_CC=$ac_cv_prog_ac_ct_CC
1370if test -n "$ac_ct_CC"; then
1371  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1372echo "${ECHO_T}$ac_ct_CC" >&6
1373else
1374  echo "$as_me:$LINENO: result: no" >&5
1375echo "${ECHO_T}no" >&6
1376fi
1377
1378  CC=$ac_ct_CC
1379else
1380  CC="$ac_cv_prog_CC"
1381fi
1382
1383if test -z "$CC"; then
1384  if test -n "$ac_tool_prefix"; then
1385  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1386set dummy ${ac_tool_prefix}cc; ac_word=$2
1387echo "$as_me:$LINENO: checking for $ac_word" >&5
1388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1389if test "${ac_cv_prog_CC+set}" = set; then
1390  echo $ECHO_N "(cached) $ECHO_C" >&6
1391else
1392  if test -n "$CC"; then
1393  ac_cv_prog_CC="$CC" # Let the user override the test.
1394else
1395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1396for as_dir in $PATH
1397do
1398  IFS=$as_save_IFS
1399  test -z "$as_dir" && as_dir=.
1400  for ac_exec_ext in '' $ac_executable_extensions; do
1401  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1402    ac_cv_prog_CC="${ac_tool_prefix}cc"
1403    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1404    break 2
1405  fi
1406done
1407done
1408
1409fi
1410fi
1411CC=$ac_cv_prog_CC
1412if test -n "$CC"; then
1413  echo "$as_me:$LINENO: result: $CC" >&5
1414echo "${ECHO_T}$CC" >&6
1415else
1416  echo "$as_me:$LINENO: result: no" >&5
1417echo "${ECHO_T}no" >&6
1418fi
1419
1420fi
1421if test -z "$ac_cv_prog_CC"; then
1422  ac_ct_CC=$CC
1423  # Extract the first word of "cc", so it can be a program name with args.
1424set dummy cc; ac_word=$2
1425echo "$as_me:$LINENO: checking for $ac_word" >&5
1426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1427if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1428  echo $ECHO_N "(cached) $ECHO_C" >&6
1429else
1430  if test -n "$ac_ct_CC"; then
1431  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1432else
1433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434for as_dir in $PATH
1435do
1436  IFS=$as_save_IFS
1437  test -z "$as_dir" && as_dir=.
1438  for ac_exec_ext in '' $ac_executable_extensions; do
1439  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1440    ac_cv_prog_ac_ct_CC="cc"
1441    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1442    break 2
1443  fi
1444done
1445done
1446
1447fi
1448fi
1449ac_ct_CC=$ac_cv_prog_ac_ct_CC
1450if test -n "$ac_ct_CC"; then
1451  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1452echo "${ECHO_T}$ac_ct_CC" >&6
1453else
1454  echo "$as_me:$LINENO: result: no" >&5
1455echo "${ECHO_T}no" >&6
1456fi
1457
1458  CC=$ac_ct_CC
1459else
1460  CC="$ac_cv_prog_CC"
1461fi
1462
1463fi
1464if test -z "$CC"; then
1465  # Extract the first word of "cc", so it can be a program name with args.
1466set dummy cc; ac_word=$2
1467echo "$as_me:$LINENO: checking for $ac_word" >&5
1468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1469if test "${ac_cv_prog_CC+set}" = set; then
1470  echo $ECHO_N "(cached) $ECHO_C" >&6
1471else
1472  if test -n "$CC"; then
1473  ac_cv_prog_CC="$CC" # Let the user override the test.
1474else
1475  ac_prog_rejected=no
1476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477for as_dir in $PATH
1478do
1479  IFS=$as_save_IFS
1480  test -z "$as_dir" && as_dir=.
1481  for ac_exec_ext in '' $ac_executable_extensions; do
1482  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1484       ac_prog_rejected=yes
1485       continue
1486     fi
1487    ac_cv_prog_CC="cc"
1488    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489    break 2
1490  fi
1491done
1492done
1493
1494if test $ac_prog_rejected = yes; then
1495  # We found a bogon in the path, so make sure we never use it.
1496  set dummy $ac_cv_prog_CC
1497  shift
1498  if test $# != 0; then
1499    # We chose a different compiler from the bogus one.
1500    # However, it has the same basename, so the bogon will be chosen
1501    # first if we set CC to just the basename; use the full file name.
1502    shift
1503    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1504  fi
1505fi
1506fi
1507fi
1508CC=$ac_cv_prog_CC
1509if test -n "$CC"; then
1510  echo "$as_me:$LINENO: result: $CC" >&5
1511echo "${ECHO_T}$CC" >&6
1512else
1513  echo "$as_me:$LINENO: result: no" >&5
1514echo "${ECHO_T}no" >&6
1515fi
1516
1517fi
1518if test -z "$CC"; then
1519  if test -n "$ac_tool_prefix"; then
1520  for ac_prog in cl
1521  do
1522    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1523set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1524echo "$as_me:$LINENO: checking for $ac_word" >&5
1525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526if test "${ac_cv_prog_CC+set}" = set; then
1527  echo $ECHO_N "(cached) $ECHO_C" >&6
1528else
1529  if test -n "$CC"; then
1530  ac_cv_prog_CC="$CC" # Let the user override the test.
1531else
1532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533for as_dir in $PATH
1534do
1535  IFS=$as_save_IFS
1536  test -z "$as_dir" && as_dir=.
1537  for ac_exec_ext in '' $ac_executable_extensions; do
1538  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1540    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541    break 2
1542  fi
1543done
1544done
1545
1546fi
1547fi
1548CC=$ac_cv_prog_CC
1549if test -n "$CC"; then
1550  echo "$as_me:$LINENO: result: $CC" >&5
1551echo "${ECHO_T}$CC" >&6
1552else
1553  echo "$as_me:$LINENO: result: no" >&5
1554echo "${ECHO_T}no" >&6
1555fi
1556
1557    test -n "$CC" && break
1558  done
1559fi
1560if test -z "$CC"; then
1561  ac_ct_CC=$CC
1562  for ac_prog in cl
1563do
1564  # Extract the first word of "$ac_prog", so it can be a program name with args.
1565set dummy $ac_prog; ac_word=$2
1566echo "$as_me:$LINENO: checking for $ac_word" >&5
1567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1569  echo $ECHO_N "(cached) $ECHO_C" >&6
1570else
1571  if test -n "$ac_ct_CC"; then
1572  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573else
1574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575for as_dir in $PATH
1576do
1577  IFS=$as_save_IFS
1578  test -z "$as_dir" && as_dir=.
1579  for ac_exec_ext in '' $ac_executable_extensions; do
1580  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581    ac_cv_prog_ac_ct_CC="$ac_prog"
1582    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583    break 2
1584  fi
1585done
1586done
1587
1588fi
1589fi
1590ac_ct_CC=$ac_cv_prog_ac_ct_CC
1591if test -n "$ac_ct_CC"; then
1592  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1593echo "${ECHO_T}$ac_ct_CC" >&6
1594else
1595  echo "$as_me:$LINENO: result: no" >&5
1596echo "${ECHO_T}no" >&6
1597fi
1598
1599  test -n "$ac_ct_CC" && break
1600done
1601
1602  CC=$ac_ct_CC
1603fi
1604
1605fi
1606
1607
1608test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1609See \`config.log' for more details." >&5
1610echo "$as_me: error: no acceptable C compiler found in \$PATH
1611See \`config.log' for more details." >&2;}
1612   { (exit 1); exit 1; }; }
1613
1614# Provide some information about the compiler.
1615echo "$as_me:$LINENO:" \
1616     "checking for C compiler version" >&5
1617ac_compiler=`set X $ac_compile; echo $2`
1618{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1619  (eval $ac_compiler --version </dev/null >&5) 2>&5
1620  ac_status=$?
1621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1622  (exit $ac_status); }
1623{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1624  (eval $ac_compiler -v </dev/null >&5) 2>&5
1625  ac_status=$?
1626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1627  (exit $ac_status); }
1628{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1629  (eval $ac_compiler -V </dev/null >&5) 2>&5
1630  ac_status=$?
1631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1632  (exit $ac_status); }
1633
1634cat >conftest.$ac_ext <<_ACEOF
1635/* confdefs.h.  */
1636_ACEOF
1637cat confdefs.h >>conftest.$ac_ext
1638cat >>conftest.$ac_ext <<_ACEOF
1639/* end confdefs.h.  */
1640
1641int
1642main ()
1643{
1644
1645  ;
1646  return 0;
1647}
1648_ACEOF
1649ac_clean_files_save=$ac_clean_files
1650ac_clean_files="$ac_clean_files a.out a.exe b.out"
1651# Try to create an executable without -o first, disregard a.out.
1652# It will help us diagnose broken compilers, and finding out an intuition
1653# of exeext.
1654echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1655echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1656ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1657if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1658  (eval $ac_link_default) 2>&5
1659  ac_status=$?
1660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1661  (exit $ac_status); }; then
1662  # Find the output, starting from the most likely.  This scheme is
1663# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1664# resort.
1665
1666# Be careful to initialize this variable, since it used to be cached.
1667# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1668ac_cv_exeext=
1669# b.out is created by i960 compilers.
1670for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1671do
1672  test -f "$ac_file" || continue
1673  case $ac_file in
1674    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1675	;;
1676    conftest.$ac_ext )
1677	# This is the source file.
1678	;;
1679    [ab].out )
1680	# We found the default executable, but exeext='' is most
1681	# certainly right.
1682	break;;
1683    *.* )
1684	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1685	# FIXME: I believe we export ac_cv_exeext for Libtool,
1686	# but it would be cool to find out if it's true.  Does anybody
1687	# maintain Libtool? --akim.
1688	export ac_cv_exeext
1689	break;;
1690    * )
1691	break;;
1692  esac
1693done
1694else
1695  echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1699See \`config.log' for more details." >&5
1700echo "$as_me: error: C compiler cannot create executables
1701See \`config.log' for more details." >&2;}
1702   { (exit 77); exit 77; }; }
1703fi
1704
1705ac_exeext=$ac_cv_exeext
1706echo "$as_me:$LINENO: result: $ac_file" >&5
1707echo "${ECHO_T}$ac_file" >&6
1708
1709# Check the compiler produces executables we can run.  If not, either
1710# the compiler is broken, or we cross compile.
1711echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1712echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1713# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1714# If not cross compiling, check that we can run a simple program.
1715if test "$cross_compiling" != yes; then
1716  if { ac_try='./$ac_file'
1717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1718  (eval $ac_try) 2>&5
1719  ac_status=$?
1720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1721  (exit $ac_status); }; }; then
1722    cross_compiling=no
1723  else
1724    if test "$cross_compiling" = maybe; then
1725	cross_compiling=yes
1726    else
1727	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1728If you meant to cross compile, use \`--host'.
1729See \`config.log' for more details." >&5
1730echo "$as_me: error: cannot run C compiled programs.
1731If you meant to cross compile, use \`--host'.
1732See \`config.log' for more details." >&2;}
1733   { (exit 1); exit 1; }; }
1734    fi
1735  fi
1736fi
1737echo "$as_me:$LINENO: result: yes" >&5
1738echo "${ECHO_T}yes" >&6
1739
1740rm -f a.out a.exe conftest$ac_cv_exeext b.out
1741ac_clean_files=$ac_clean_files_save
1742# Check the compiler produces executables we can run.  If not, either
1743# the compiler is broken, or we cross compile.
1744echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1745echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1746echo "$as_me:$LINENO: result: $cross_compiling" >&5
1747echo "${ECHO_T}$cross_compiling" >&6
1748
1749echo "$as_me:$LINENO: checking for suffix of executables" >&5
1750echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1752  (eval $ac_link) 2>&5
1753  ac_status=$?
1754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755  (exit $ac_status); }; then
1756  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1757# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1758# work properly (i.e., refer to `conftest.exe'), while it won't with
1759# `rm'.
1760for ac_file in conftest.exe conftest conftest.*; do
1761  test -f "$ac_file" || continue
1762  case $ac_file in
1763    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1764    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1765	  export ac_cv_exeext
1766	  break;;
1767    * ) break;;
1768  esac
1769done
1770else
1771  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1772See \`config.log' for more details." >&5
1773echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1774See \`config.log' for more details." >&2;}
1775   { (exit 1); exit 1; }; }
1776fi
1777
1778rm -f conftest$ac_cv_exeext
1779echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1780echo "${ECHO_T}$ac_cv_exeext" >&6
1781
1782rm -f conftest.$ac_ext
1783EXEEXT=$ac_cv_exeext
1784ac_exeext=$EXEEXT
1785echo "$as_me:$LINENO: checking for suffix of object files" >&5
1786echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1787if test "${ac_cv_objext+set}" = set; then
1788  echo $ECHO_N "(cached) $ECHO_C" >&6
1789else
1790  cat >conftest.$ac_ext <<_ACEOF
1791/* confdefs.h.  */
1792_ACEOF
1793cat confdefs.h >>conftest.$ac_ext
1794cat >>conftest.$ac_ext <<_ACEOF
1795/* end confdefs.h.  */
1796
1797int
1798main ()
1799{
1800
1801  ;
1802  return 0;
1803}
1804_ACEOF
1805rm -f conftest.o conftest.obj
1806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1807  (eval $ac_compile) 2>&5
1808  ac_status=$?
1809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810  (exit $ac_status); }; then
1811  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1812  case $ac_file in
1813    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1814    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1815       break;;
1816  esac
1817done
1818else
1819  echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1823See \`config.log' for more details." >&5
1824echo "$as_me: error: cannot compute suffix of object files: cannot compile
1825See \`config.log' for more details." >&2;}
1826   { (exit 1); exit 1; }; }
1827fi
1828
1829rm -f conftest.$ac_cv_objext conftest.$ac_ext
1830fi
1831echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1832echo "${ECHO_T}$ac_cv_objext" >&6
1833OBJEXT=$ac_cv_objext
1834ac_objext=$OBJEXT
1835echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1836echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1837if test "${ac_cv_c_compiler_gnu+set}" = set; then
1838  echo $ECHO_N "(cached) $ECHO_C" >&6
1839else
1840  cat >conftest.$ac_ext <<_ACEOF
1841/* confdefs.h.  */
1842_ACEOF
1843cat confdefs.h >>conftest.$ac_ext
1844cat >>conftest.$ac_ext <<_ACEOF
1845/* end confdefs.h.  */
1846
1847int
1848main ()
1849{
1850#ifndef __GNUC__
1851       choke me
1852#endif
1853
1854  ;
1855  return 0;
1856}
1857_ACEOF
1858rm -f conftest.$ac_objext
1859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1860  (eval $ac_compile) 2>conftest.er1
1861  ac_status=$?
1862  grep -v '^ *+' conftest.er1 >conftest.err
1863  rm -f conftest.er1
1864  cat conftest.err >&5
1865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866  (exit $ac_status); } &&
1867	 { ac_try='test -z "$ac_c_werror_flag"
1868			 || test ! -s conftest.err'
1869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1870  (eval $ac_try) 2>&5
1871  ac_status=$?
1872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873  (exit $ac_status); }; } &&
1874	 { ac_try='test -s conftest.$ac_objext'
1875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1876  (eval $ac_try) 2>&5
1877  ac_status=$?
1878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879  (exit $ac_status); }; }; then
1880  ac_compiler_gnu=yes
1881else
1882  echo "$as_me: failed program was:" >&5
1883sed 's/^/| /' conftest.$ac_ext >&5
1884
1885ac_compiler_gnu=no
1886fi
1887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1888ac_cv_c_compiler_gnu=$ac_compiler_gnu
1889
1890fi
1891echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1892echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1893GCC=`test $ac_compiler_gnu = yes && echo yes`
1894ac_test_CFLAGS=${CFLAGS+set}
1895ac_save_CFLAGS=$CFLAGS
1896CFLAGS="-g"
1897echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1898echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1899if test "${ac_cv_prog_cc_g+set}" = set; then
1900  echo $ECHO_N "(cached) $ECHO_C" >&6
1901else
1902  cat >conftest.$ac_ext <<_ACEOF
1903/* confdefs.h.  */
1904_ACEOF
1905cat confdefs.h >>conftest.$ac_ext
1906cat >>conftest.$ac_ext <<_ACEOF
1907/* end confdefs.h.  */
1908
1909int
1910main ()
1911{
1912
1913  ;
1914  return 0;
1915}
1916_ACEOF
1917rm -f conftest.$ac_objext
1918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1919  (eval $ac_compile) 2>conftest.er1
1920  ac_status=$?
1921  grep -v '^ *+' conftest.er1 >conftest.err
1922  rm -f conftest.er1
1923  cat conftest.err >&5
1924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925  (exit $ac_status); } &&
1926	 { ac_try='test -z "$ac_c_werror_flag"
1927			 || test ! -s conftest.err'
1928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929  (eval $ac_try) 2>&5
1930  ac_status=$?
1931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932  (exit $ac_status); }; } &&
1933	 { ac_try='test -s conftest.$ac_objext'
1934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935  (eval $ac_try) 2>&5
1936  ac_status=$?
1937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938  (exit $ac_status); }; }; then
1939  ac_cv_prog_cc_g=yes
1940else
1941  echo "$as_me: failed program was:" >&5
1942sed 's/^/| /' conftest.$ac_ext >&5
1943
1944ac_cv_prog_cc_g=no
1945fi
1946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1947fi
1948echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1949echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1950if test "$ac_test_CFLAGS" = set; then
1951  CFLAGS=$ac_save_CFLAGS
1952elif test $ac_cv_prog_cc_g = yes; then
1953  if test "$GCC" = yes; then
1954    CFLAGS="-g -O2"
1955  else
1956    CFLAGS="-g"
1957  fi
1958else
1959  if test "$GCC" = yes; then
1960    CFLAGS="-O2"
1961  else
1962    CFLAGS=
1963  fi
1964fi
1965echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1966echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1967if test "${ac_cv_prog_cc_stdc+set}" = set; then
1968  echo $ECHO_N "(cached) $ECHO_C" >&6
1969else
1970  ac_cv_prog_cc_stdc=no
1971ac_save_CC=$CC
1972cat >conftest.$ac_ext <<_ACEOF
1973/* confdefs.h.  */
1974_ACEOF
1975cat confdefs.h >>conftest.$ac_ext
1976cat >>conftest.$ac_ext <<_ACEOF
1977/* end confdefs.h.  */
1978#include <stdarg.h>
1979#include <stdio.h>
1980#include <sys/types.h>
1981#include <sys/stat.h>
1982/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1983struct buf { int x; };
1984FILE * (*rcsopen) (struct buf *, struct stat *, int);
1985static char *e (p, i)
1986     char **p;
1987     int i;
1988{
1989  return p[i];
1990}
1991static char *f (char * (*g) (char **, int), char **p, ...)
1992{
1993  char *s;
1994  va_list v;
1995  va_start (v,p);
1996  s = g (p, va_arg (v,int));
1997  va_end (v);
1998  return s;
1999}
2000
2001/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2002   function prototypes and stuff, but not '\xHH' hex character constants.
2003   These don't provoke an error unfortunately, instead are silently treated
2004   as 'x'.  The following induces an error, until -std1 is added to get
2005   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2006   array size at least.  It's necessary to write '\x00'==0 to get something
2007   that's true only with -std1.  */
2008int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2009
2010int test (int i, double x);
2011struct s1 {int (*f) (int a);};
2012struct s2 {int (*f) (double a);};
2013int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2014int argc;
2015char **argv;
2016int
2017main ()
2018{
2019return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2020  ;
2021  return 0;
2022}
2023_ACEOF
2024# Don't try gcc -ansi; that turns off useful extensions and
2025# breaks some systems' header files.
2026# AIX			-qlanglvl=ansi
2027# Ultrix and OSF/1	-std1
2028# HP-UX 10.20 and later	-Ae
2029# HP-UX older versions	-Aa -D_HPUX_SOURCE
2030# SVR4			-Xc -D__EXTENSIONS__
2031for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2032do
2033  CC="$ac_save_CC $ac_arg"
2034  rm -f conftest.$ac_objext
2035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2036  (eval $ac_compile) 2>conftest.er1
2037  ac_status=$?
2038  grep -v '^ *+' conftest.er1 >conftest.err
2039  rm -f conftest.er1
2040  cat conftest.err >&5
2041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042  (exit $ac_status); } &&
2043	 { ac_try='test -z "$ac_c_werror_flag"
2044			 || test ! -s conftest.err'
2045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046  (eval $ac_try) 2>&5
2047  ac_status=$?
2048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049  (exit $ac_status); }; } &&
2050	 { ac_try='test -s conftest.$ac_objext'
2051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052  (eval $ac_try) 2>&5
2053  ac_status=$?
2054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055  (exit $ac_status); }; }; then
2056  ac_cv_prog_cc_stdc=$ac_arg
2057break
2058else
2059  echo "$as_me: failed program was:" >&5
2060sed 's/^/| /' conftest.$ac_ext >&5
2061
2062fi
2063rm -f conftest.err conftest.$ac_objext
2064done
2065rm -f conftest.$ac_ext conftest.$ac_objext
2066CC=$ac_save_CC
2067
2068fi
2069
2070case "x$ac_cv_prog_cc_stdc" in
2071  x|xno)
2072    echo "$as_me:$LINENO: result: none needed" >&5
2073echo "${ECHO_T}none needed" >&6 ;;
2074  *)
2075    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2076echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2077    CC="$CC $ac_cv_prog_cc_stdc" ;;
2078esac
2079
2080# Some people use a C++ compiler to compile C.  Since we use `exit',
2081# in C++ we need to declare it.  In case someone uses the same compiler
2082# for both compiling C and C++ we need to have the C++ compiler decide
2083# the declaration of exit, since it's the most demanding environment.
2084cat >conftest.$ac_ext <<_ACEOF
2085#ifndef __cplusplus
2086  choke me
2087#endif
2088_ACEOF
2089rm -f conftest.$ac_objext
2090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091  (eval $ac_compile) 2>conftest.er1
2092  ac_status=$?
2093  grep -v '^ *+' conftest.er1 >conftest.err
2094  rm -f conftest.er1
2095  cat conftest.err >&5
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); } &&
2098	 { ac_try='test -z "$ac_c_werror_flag"
2099			 || test ! -s conftest.err'
2100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101  (eval $ac_try) 2>&5
2102  ac_status=$?
2103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104  (exit $ac_status); }; } &&
2105	 { ac_try='test -s conftest.$ac_objext'
2106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107  (eval $ac_try) 2>&5
2108  ac_status=$?
2109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110  (exit $ac_status); }; }; then
2111  for ac_declaration in \
2112   '' \
2113   'extern "C" void std::exit (int) throw (); using std::exit;' \
2114   'extern "C" void std::exit (int); using std::exit;' \
2115   'extern "C" void exit (int) throw ();' \
2116   'extern "C" void exit (int);' \
2117   'void exit (int);'
2118do
2119  cat >conftest.$ac_ext <<_ACEOF
2120/* confdefs.h.  */
2121_ACEOF
2122cat confdefs.h >>conftest.$ac_ext
2123cat >>conftest.$ac_ext <<_ACEOF
2124/* end confdefs.h.  */
2125$ac_declaration
2126#include <stdlib.h>
2127int
2128main ()
2129{
2130exit (42);
2131  ;
2132  return 0;
2133}
2134_ACEOF
2135rm -f conftest.$ac_objext
2136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137  (eval $ac_compile) 2>conftest.er1
2138  ac_status=$?
2139  grep -v '^ *+' conftest.er1 >conftest.err
2140  rm -f conftest.er1
2141  cat conftest.err >&5
2142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143  (exit $ac_status); } &&
2144	 { ac_try='test -z "$ac_c_werror_flag"
2145			 || test ! -s conftest.err'
2146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147  (eval $ac_try) 2>&5
2148  ac_status=$?
2149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150  (exit $ac_status); }; } &&
2151	 { ac_try='test -s conftest.$ac_objext'
2152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153  (eval $ac_try) 2>&5
2154  ac_status=$?
2155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156  (exit $ac_status); }; }; then
2157  :
2158else
2159  echo "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5
2161
2162continue
2163fi
2164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2165  cat >conftest.$ac_ext <<_ACEOF
2166/* confdefs.h.  */
2167_ACEOF
2168cat confdefs.h >>conftest.$ac_ext
2169cat >>conftest.$ac_ext <<_ACEOF
2170/* end confdefs.h.  */
2171$ac_declaration
2172int
2173main ()
2174{
2175exit (42);
2176  ;
2177  return 0;
2178}
2179_ACEOF
2180rm -f conftest.$ac_objext
2181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182  (eval $ac_compile) 2>conftest.er1
2183  ac_status=$?
2184  grep -v '^ *+' conftest.er1 >conftest.err
2185  rm -f conftest.er1
2186  cat conftest.err >&5
2187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188  (exit $ac_status); } &&
2189	 { ac_try='test -z "$ac_c_werror_flag"
2190			 || test ! -s conftest.err'
2191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192  (eval $ac_try) 2>&5
2193  ac_status=$?
2194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195  (exit $ac_status); }; } &&
2196	 { ac_try='test -s conftest.$ac_objext'
2197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198  (eval $ac_try) 2>&5
2199  ac_status=$?
2200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201  (exit $ac_status); }; }; then
2202  break
2203else
2204  echo "$as_me: failed program was:" >&5
2205sed 's/^/| /' conftest.$ac_ext >&5
2206
2207fi
2208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2209done
2210rm -f conftest*
2211if test -n "$ac_declaration"; then
2212  echo '#ifdef __cplusplus' >>confdefs.h
2213  echo $ac_declaration      >>confdefs.h
2214  echo '#endif'             >>confdefs.h
2215fi
2216
2217else
2218  echo "$as_me: failed program was:" >&5
2219sed 's/^/| /' conftest.$ac_ext >&5
2220
2221fi
2222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2223ac_ext=c
2224ac_cpp='$CPP $CPPFLAGS'
2225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
2229if test $GCC != "yes"
2230then
2231	{ { echo "$as_me:$LINENO: error: Need GNU C compiler" >&5
2232echo "$as_me: error: Need GNU C compiler" >&2;}
2233   { (exit 1); exit 1; }; }
2234fi
2235
2236
2237echo "$as_me:$LINENO: checking for malloc in -lc" >&5
2238echo $ECHO_N "checking for malloc in -lc... $ECHO_C" >&6
2239if test "${ac_cv_lib_c_malloc+set}" = set; then
2240  echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242  ac_check_lib_save_LIBS=$LIBS
2243LIBS="-lc  $LIBS"
2244cat >conftest.$ac_ext <<_ACEOF
2245/* confdefs.h.  */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h.  */
2250
2251/* Override any gcc2 internal prototype to avoid an error.  */
2252#ifdef __cplusplus
2253extern "C"
2254#endif
2255/* We use char because int might match the return type of a gcc2
2256   builtin and then its argument prototype would still apply.  */
2257char malloc ();
2258int
2259main ()
2260{
2261malloc ();
2262  ;
2263  return 0;
2264}
2265_ACEOF
2266rm -f conftest.$ac_objext conftest$ac_exeext
2267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2268  (eval $ac_link) 2>conftest.er1
2269  ac_status=$?
2270  grep -v '^ *+' conftest.er1 >conftest.err
2271  rm -f conftest.er1
2272  cat conftest.err >&5
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); } &&
2275	 { ac_try='test -z "$ac_c_werror_flag"
2276			 || test ! -s conftest.err'
2277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278  (eval $ac_try) 2>&5
2279  ac_status=$?
2280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281  (exit $ac_status); }; } &&
2282	 { ac_try='test -s conftest$ac_exeext'
2283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284  (eval $ac_try) 2>&5
2285  ac_status=$?
2286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287  (exit $ac_status); }; }; then
2288  ac_cv_lib_c_malloc=yes
2289else
2290  echo "$as_me: failed program was:" >&5
2291sed 's/^/| /' conftest.$ac_ext >&5
2292
2293ac_cv_lib_c_malloc=no
2294fi
2295rm -f conftest.err conftest.$ac_objext \
2296      conftest$ac_exeext conftest.$ac_ext
2297LIBS=$ac_check_lib_save_LIBS
2298fi
2299echo "$as_me:$LINENO: result: $ac_cv_lib_c_malloc" >&5
2300echo "${ECHO_T}$ac_cv_lib_c_malloc" >&6
2301if test $ac_cv_lib_c_malloc = yes; then
2302  cat >>confdefs.h <<_ACEOF
2303#define HAVE_LIBC 1
2304_ACEOF
2305
2306  LIBS="-lc $LIBS"
2307
2308fi
2309
2310
2311ac_ext=c
2312ac_cpp='$CPP $CPPFLAGS'
2313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2317echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2318# On Suns, sometimes $CPP names a directory.
2319if test -n "$CPP" && test -d "$CPP"; then
2320  CPP=
2321fi
2322if test -z "$CPP"; then
2323  if test "${ac_cv_prog_CPP+set}" = set; then
2324  echo $ECHO_N "(cached) $ECHO_C" >&6
2325else
2326      # Double quotes because CPP needs to be expanded
2327    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2328    do
2329      ac_preproc_ok=false
2330for ac_c_preproc_warn_flag in '' yes
2331do
2332  # Use a header file that comes with gcc, so configuring glibc
2333  # with a fresh cross-compiler works.
2334  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2335  # <limits.h> exists even on freestanding compilers.
2336  # On the NeXT, cc -E runs the code through the compiler's parser,
2337  # not just through cpp. "Syntax error" is here to catch this case.
2338  cat >conftest.$ac_ext <<_ACEOF
2339/* confdefs.h.  */
2340_ACEOF
2341cat confdefs.h >>conftest.$ac_ext
2342cat >>conftest.$ac_ext <<_ACEOF
2343/* end confdefs.h.  */
2344#ifdef __STDC__
2345# include <limits.h>
2346#else
2347# include <assert.h>
2348#endif
2349		     Syntax error
2350_ACEOF
2351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2352  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2353  ac_status=$?
2354  grep -v '^ *+' conftest.er1 >conftest.err
2355  rm -f conftest.er1
2356  cat conftest.err >&5
2357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358  (exit $ac_status); } >/dev/null; then
2359  if test -s conftest.err; then
2360    ac_cpp_err=$ac_c_preproc_warn_flag
2361    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2362  else
2363    ac_cpp_err=
2364  fi
2365else
2366  ac_cpp_err=yes
2367fi
2368if test -z "$ac_cpp_err"; then
2369  :
2370else
2371  echo "$as_me: failed program was:" >&5
2372sed 's/^/| /' conftest.$ac_ext >&5
2373
2374  # Broken: fails on valid input.
2375continue
2376fi
2377rm -f conftest.err conftest.$ac_ext
2378
2379  # OK, works on sane cases.  Now check whether non-existent headers
2380  # can be detected and how.
2381  cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h.  */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h.  */
2387#include <ac_nonexistent.h>
2388_ACEOF
2389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2390  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2391  ac_status=$?
2392  grep -v '^ *+' conftest.er1 >conftest.err
2393  rm -f conftest.er1
2394  cat conftest.err >&5
2395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396  (exit $ac_status); } >/dev/null; then
2397  if test -s conftest.err; then
2398    ac_cpp_err=$ac_c_preproc_warn_flag
2399    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2400  else
2401    ac_cpp_err=
2402  fi
2403else
2404  ac_cpp_err=yes
2405fi
2406if test -z "$ac_cpp_err"; then
2407  # Broken: success on invalid input.
2408continue
2409else
2410  echo "$as_me: failed program was:" >&5
2411sed 's/^/| /' conftest.$ac_ext >&5
2412
2413  # Passes both tests.
2414ac_preproc_ok=:
2415break
2416fi
2417rm -f conftest.err conftest.$ac_ext
2418
2419done
2420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2421rm -f conftest.err conftest.$ac_ext
2422if $ac_preproc_ok; then
2423  break
2424fi
2425
2426    done
2427    ac_cv_prog_CPP=$CPP
2428
2429fi
2430  CPP=$ac_cv_prog_CPP
2431else
2432  ac_cv_prog_CPP=$CPP
2433fi
2434echo "$as_me:$LINENO: result: $CPP" >&5
2435echo "${ECHO_T}$CPP" >&6
2436ac_preproc_ok=false
2437for ac_c_preproc_warn_flag in '' yes
2438do
2439  # Use a header file that comes with gcc, so configuring glibc
2440  # with a fresh cross-compiler works.
2441  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2442  # <limits.h> exists even on freestanding compilers.
2443  # On the NeXT, cc -E runs the code through the compiler's parser,
2444  # not just through cpp. "Syntax error" is here to catch this case.
2445  cat >conftest.$ac_ext <<_ACEOF
2446/* confdefs.h.  */
2447_ACEOF
2448cat confdefs.h >>conftest.$ac_ext
2449cat >>conftest.$ac_ext <<_ACEOF
2450/* end confdefs.h.  */
2451#ifdef __STDC__
2452# include <limits.h>
2453#else
2454# include <assert.h>
2455#endif
2456		     Syntax error
2457_ACEOF
2458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2459  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2460  ac_status=$?
2461  grep -v '^ *+' conftest.er1 >conftest.err
2462  rm -f conftest.er1
2463  cat conftest.err >&5
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); } >/dev/null; then
2466  if test -s conftest.err; then
2467    ac_cpp_err=$ac_c_preproc_warn_flag
2468    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2469  else
2470    ac_cpp_err=
2471  fi
2472else
2473  ac_cpp_err=yes
2474fi
2475if test -z "$ac_cpp_err"; then
2476  :
2477else
2478  echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481  # Broken: fails on valid input.
2482continue
2483fi
2484rm -f conftest.err conftest.$ac_ext
2485
2486  # OK, works on sane cases.  Now check whether non-existent headers
2487  # can be detected and how.
2488  cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h.  */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h.  */
2494#include <ac_nonexistent.h>
2495_ACEOF
2496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498  ac_status=$?
2499  grep -v '^ *+' conftest.er1 >conftest.err
2500  rm -f conftest.er1
2501  cat conftest.err >&5
2502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503  (exit $ac_status); } >/dev/null; then
2504  if test -s conftest.err; then
2505    ac_cpp_err=$ac_c_preproc_warn_flag
2506    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2507  else
2508    ac_cpp_err=
2509  fi
2510else
2511  ac_cpp_err=yes
2512fi
2513if test -z "$ac_cpp_err"; then
2514  # Broken: success on invalid input.
2515continue
2516else
2517  echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520  # Passes both tests.
2521ac_preproc_ok=:
2522break
2523fi
2524rm -f conftest.err conftest.$ac_ext
2525
2526done
2527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2528rm -f conftest.err conftest.$ac_ext
2529if $ac_preproc_ok; then
2530  :
2531else
2532  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2533See \`config.log' for more details." >&5
2534echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2535See \`config.log' for more details." >&2;}
2536   { (exit 1); exit 1; }; }
2537fi
2538
2539ac_ext=c
2540ac_cpp='$CPP $CPPFLAGS'
2541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544
2545
2546echo "$as_me:$LINENO: checking for egrep" >&5
2547echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2548if test "${ac_cv_prog_egrep+set}" = set; then
2549  echo $ECHO_N "(cached) $ECHO_C" >&6
2550else
2551  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2552    then ac_cv_prog_egrep='grep -E'
2553    else ac_cv_prog_egrep='egrep'
2554    fi
2555fi
2556echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2557echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2558 EGREP=$ac_cv_prog_egrep
2559
2560
2561echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2562echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2563if test "${ac_cv_header_stdc+set}" = set; then
2564  echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
2566  cat >conftest.$ac_ext <<_ACEOF
2567/* confdefs.h.  */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h.  */
2572#include <stdlib.h>
2573#include <stdarg.h>
2574#include <string.h>
2575#include <float.h>
2576
2577int
2578main ()
2579{
2580
2581  ;
2582  return 0;
2583}
2584_ACEOF
2585rm -f conftest.$ac_objext
2586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587  (eval $ac_compile) 2>conftest.er1
2588  ac_status=$?
2589  grep -v '^ *+' conftest.er1 >conftest.err
2590  rm -f conftest.er1
2591  cat conftest.err >&5
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); } &&
2594	 { ac_try='test -z "$ac_c_werror_flag"
2595			 || test ! -s conftest.err'
2596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597  (eval $ac_try) 2>&5
2598  ac_status=$?
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); }; } &&
2601	 { ac_try='test -s conftest.$ac_objext'
2602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603  (eval $ac_try) 2>&5
2604  ac_status=$?
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); }; }; then
2607  ac_cv_header_stdc=yes
2608else
2609  echo "$as_me: failed program was:" >&5
2610sed 's/^/| /' conftest.$ac_ext >&5
2611
2612ac_cv_header_stdc=no
2613fi
2614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2615
2616if test $ac_cv_header_stdc = yes; then
2617  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2618  cat >conftest.$ac_ext <<_ACEOF
2619/* confdefs.h.  */
2620_ACEOF
2621cat confdefs.h >>conftest.$ac_ext
2622cat >>conftest.$ac_ext <<_ACEOF
2623/* end confdefs.h.  */
2624#include <string.h>
2625
2626_ACEOF
2627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2628  $EGREP "memchr" >/dev/null 2>&1; then
2629  :
2630else
2631  ac_cv_header_stdc=no
2632fi
2633rm -f conftest*
2634
2635fi
2636
2637if test $ac_cv_header_stdc = yes; then
2638  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2639  cat >conftest.$ac_ext <<_ACEOF
2640/* confdefs.h.  */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
2644/* end confdefs.h.  */
2645#include <stdlib.h>
2646
2647_ACEOF
2648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2649  $EGREP "free" >/dev/null 2>&1; then
2650  :
2651else
2652  ac_cv_header_stdc=no
2653fi
2654rm -f conftest*
2655
2656fi
2657
2658if test $ac_cv_header_stdc = yes; then
2659  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2660  if test "$cross_compiling" = yes; then
2661  :
2662else
2663  cat >conftest.$ac_ext <<_ACEOF
2664/* confdefs.h.  */
2665_ACEOF
2666cat confdefs.h >>conftest.$ac_ext
2667cat >>conftest.$ac_ext <<_ACEOF
2668/* end confdefs.h.  */
2669#include <ctype.h>
2670#if ((' ' & 0x0FF) == 0x020)
2671# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2672# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2673#else
2674# define ISLOWER(c) \
2675		   (('a' <= (c) && (c) <= 'i') \
2676		     || ('j' <= (c) && (c) <= 'r') \
2677		     || ('s' <= (c) && (c) <= 'z'))
2678# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2679#endif
2680
2681#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2682int
2683main ()
2684{
2685  int i;
2686  for (i = 0; i < 256; i++)
2687    if (XOR (islower (i), ISLOWER (i))
2688	|| toupper (i) != TOUPPER (i))
2689      exit(2);
2690  exit (0);
2691}
2692_ACEOF
2693rm -f conftest$ac_exeext
2694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2695  (eval $ac_link) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700  (eval $ac_try) 2>&5
2701  ac_status=$?
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); }; }; then
2704  :
2705else
2706  echo "$as_me: program exited with status $ac_status" >&5
2707echo "$as_me: failed program was:" >&5
2708sed 's/^/| /' conftest.$ac_ext >&5
2709
2710( exit $ac_status )
2711ac_cv_header_stdc=no
2712fi
2713rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2714fi
2715fi
2716fi
2717echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2718echo "${ECHO_T}$ac_cv_header_stdc" >&6
2719if test $ac_cv_header_stdc = yes; then
2720
2721cat >>confdefs.h <<\_ACEOF
2722#define STDC_HEADERS 1
2723_ACEOF
2724
2725fi
2726
2727# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2738		  inttypes.h stdint.h unistd.h
2739do
2740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2741echo "$as_me:$LINENO: checking for $ac_header" >&5
2742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2743if eval "test \"\${$as_ac_Header+set}\" = set"; then
2744  echo $ECHO_N "(cached) $ECHO_C" >&6
2745else
2746  cat >conftest.$ac_ext <<_ACEOF
2747/* confdefs.h.  */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h.  */
2752$ac_includes_default
2753
2754#include <$ac_header>
2755_ACEOF
2756rm -f conftest.$ac_objext
2757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758  (eval $ac_compile) 2>conftest.er1
2759  ac_status=$?
2760  grep -v '^ *+' conftest.er1 >conftest.err
2761  rm -f conftest.er1
2762  cat conftest.err >&5
2763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764  (exit $ac_status); } &&
2765	 { ac_try='test -z "$ac_c_werror_flag"
2766			 || test ! -s conftest.err'
2767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768  (eval $ac_try) 2>&5
2769  ac_status=$?
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); }; } &&
2772	 { ac_try='test -s conftest.$ac_objext'
2773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774  (eval $ac_try) 2>&5
2775  ac_status=$?
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); }; }; then
2778  eval "$as_ac_Header=yes"
2779else
2780  echo "$as_me: failed program was:" >&5
2781sed 's/^/| /' conftest.$ac_ext >&5
2782
2783eval "$as_ac_Header=no"
2784fi
2785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2786fi
2787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2789if test `eval echo '${'$as_ac_Header'}'` = yes; then
2790  cat >>confdefs.h <<_ACEOF
2791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2792_ACEOF
2793
2794fi
2795
2796done
2797
2798
2799
2800
2801
2802
2803
2804for ac_header in getopt.h stdio.h stdlib.h memory.h string.h
2805do
2806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2807if eval "test \"\${$as_ac_Header+set}\" = set"; then
2808  echo "$as_me:$LINENO: checking for $ac_header" >&5
2809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2810if eval "test \"\${$as_ac_Header+set}\" = set"; then
2811  echo $ECHO_N "(cached) $ECHO_C" >&6
2812fi
2813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2815else
2816  # Is the header compilable?
2817echo "$as_me:$LINENO: checking $ac_header usability" >&5
2818echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2819cat >conftest.$ac_ext <<_ACEOF
2820/* confdefs.h.  */
2821_ACEOF
2822cat confdefs.h >>conftest.$ac_ext
2823cat >>conftest.$ac_ext <<_ACEOF
2824/* end confdefs.h.  */
2825$ac_includes_default
2826#include <$ac_header>
2827_ACEOF
2828rm -f conftest.$ac_objext
2829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830  (eval $ac_compile) 2>conftest.er1
2831  ac_status=$?
2832  grep -v '^ *+' conftest.er1 >conftest.err
2833  rm -f conftest.er1
2834  cat conftest.err >&5
2835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836  (exit $ac_status); } &&
2837	 { ac_try='test -z "$ac_c_werror_flag"
2838			 || test ! -s conftest.err'
2839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840  (eval $ac_try) 2>&5
2841  ac_status=$?
2842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843  (exit $ac_status); }; } &&
2844	 { ac_try='test -s conftest.$ac_objext'
2845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846  (eval $ac_try) 2>&5
2847  ac_status=$?
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); }; }; then
2850  ac_header_compiler=yes
2851else
2852  echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855ac_header_compiler=no
2856fi
2857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2859echo "${ECHO_T}$ac_header_compiler" >&6
2860
2861# Is the header present?
2862echo "$as_me:$LINENO: checking $ac_header presence" >&5
2863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2864cat >conftest.$ac_ext <<_ACEOF
2865/* confdefs.h.  */
2866_ACEOF
2867cat confdefs.h >>conftest.$ac_ext
2868cat >>conftest.$ac_ext <<_ACEOF
2869/* end confdefs.h.  */
2870#include <$ac_header>
2871_ACEOF
2872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2873  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2874  ac_status=$?
2875  grep -v '^ *+' conftest.er1 >conftest.err
2876  rm -f conftest.er1
2877  cat conftest.err >&5
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); } >/dev/null; then
2880  if test -s conftest.err; then
2881    ac_cpp_err=$ac_c_preproc_warn_flag
2882    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2883  else
2884    ac_cpp_err=
2885  fi
2886else
2887  ac_cpp_err=yes
2888fi
2889if test -z "$ac_cpp_err"; then
2890  ac_header_preproc=yes
2891else
2892  echo "$as_me: failed program was:" >&5
2893sed 's/^/| /' conftest.$ac_ext >&5
2894
2895  ac_header_preproc=no
2896fi
2897rm -f conftest.err conftest.$ac_ext
2898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2899echo "${ECHO_T}$ac_header_preproc" >&6
2900
2901# So?  What about this header?
2902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2903  yes:no: )
2904    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2906    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2908    ac_header_preproc=yes
2909    ;;
2910  no:yes:* )
2911    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2913    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
2914echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
2915    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2917    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
2918echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
2919    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2921    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2923    (
2924      cat <<\_ASBOX
2925## ------------------------------------------ ##
2926## Report this to the AC_PACKAGE_NAME lists.  ##
2927## ------------------------------------------ ##
2928_ASBOX
2929    ) |
2930      sed "s/^/$as_me: WARNING:     /" >&2
2931    ;;
2932esac
2933echo "$as_me:$LINENO: checking for $ac_header" >&5
2934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2935if eval "test \"\${$as_ac_Header+set}\" = set"; then
2936  echo $ECHO_N "(cached) $ECHO_C" >&6
2937else
2938  eval "$as_ac_Header=\$ac_header_preproc"
2939fi
2940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2942
2943fi
2944if test `eval echo '${'$as_ac_Header'}'` = yes; then
2945  cat >>confdefs.h <<_ACEOF
2946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2947_ACEOF
2948
2949fi
2950
2951done
2952
2953if test -z "$HAVE_stdio.h"
2954then
2955	{ { echo "$as_me:$LINENO: error: Need stdio.h!" >&5
2956echo "$as_me: error: Need stdio.h!" >&2;}
2957   { (exit 1); exit 1; }; }
2958fi
2959if test -z "$HAVE_stdlib.h"
2960then
2961	{ { echo "$as_me:$LINENO: error: Need stdlib.h!" >&5
2962echo "$as_me: error: Need stdlib.h!" >&2;}
2963   { (exit 1); exit 1; }; }
2964fi
2965if test -z "$HAVE_stdlib.h"
2966then
2967	{ { echo "$as_me:$LINENO: error: Need memory.h!" >&5
2968echo "$as_me: error: Need memory.h!" >&2;}
2969   { (exit 1); exit 1; }; }
2970fi
2971if test -z "$HAVE_string.h"
2972then
2973	{ { echo "$as_me:$LINENO: error: Need string.h" >&5
2974echo "$as_me: error: Need string.h" >&2;}
2975   { (exit 1); exit 1; }; }
2976fi
2977
2978ac_aux_dir=
2979for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2980  if test -f $ac_dir/install-sh; then
2981    ac_aux_dir=$ac_dir
2982    ac_install_sh="$ac_aux_dir/install-sh -c"
2983    break
2984  elif test -f $ac_dir/install.sh; then
2985    ac_aux_dir=$ac_dir
2986    ac_install_sh="$ac_aux_dir/install.sh -c"
2987    break
2988  elif test -f $ac_dir/shtool; then
2989    ac_aux_dir=$ac_dir
2990    ac_install_sh="$ac_aux_dir/shtool install -c"
2991    break
2992  fi
2993done
2994if test -z "$ac_aux_dir"; then
2995  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2996echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2997   { (exit 1); exit 1; }; }
2998fi
2999ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3000ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3001ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3002
3003# Make sure we can run config.sub.
3004$ac_config_sub sun4 >/dev/null 2>&1 ||
3005  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3006echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3007   { (exit 1); exit 1; }; }
3008
3009echo "$as_me:$LINENO: checking build system type" >&5
3010echo $ECHO_N "checking build system type... $ECHO_C" >&6
3011if test "${ac_cv_build+set}" = set; then
3012  echo $ECHO_N "(cached) $ECHO_C" >&6
3013else
3014  ac_cv_build_alias=$build_alias
3015test -z "$ac_cv_build_alias" &&
3016  ac_cv_build_alias=`$ac_config_guess`
3017test -z "$ac_cv_build_alias" &&
3018  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3019echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3020   { (exit 1); exit 1; }; }
3021ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3022  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3023echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3024   { (exit 1); exit 1; }; }
3025
3026fi
3027echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3028echo "${ECHO_T}$ac_cv_build" >&6
3029build=$ac_cv_build
3030build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3031build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3032build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3033
3034
3035echo "$as_me:$LINENO: checking host system type" >&5
3036echo $ECHO_N "checking host system type... $ECHO_C" >&6
3037if test "${ac_cv_host+set}" = set; then
3038  echo $ECHO_N "(cached) $ECHO_C" >&6
3039else
3040  ac_cv_host_alias=$host_alias
3041test -z "$ac_cv_host_alias" &&
3042  ac_cv_host_alias=$ac_cv_build_alias
3043ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3044  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3045echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3046   { (exit 1); exit 1; }; }
3047
3048fi
3049echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3050echo "${ECHO_T}$ac_cv_host" >&6
3051host=$ac_cv_host
3052host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3053host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3054host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3055
3056
3057echo "$as_me:$LINENO: checking target system type" >&5
3058echo $ECHO_N "checking target system type... $ECHO_C" >&6
3059if test "${ac_cv_target+set}" = set; then
3060  echo $ECHO_N "(cached) $ECHO_C" >&6
3061else
3062  ac_cv_target_alias=$target_alias
3063test "x$ac_cv_target_alias" = "x" &&
3064  ac_cv_target_alias=$ac_cv_host_alias
3065ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3066  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3067echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3068   { (exit 1); exit 1; }; }
3069
3070fi
3071echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3072echo "${ECHO_T}$ac_cv_target" >&6
3073target=$ac_cv_target
3074target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3075target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3076target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3077
3078
3079# The aliases save the names the user supplied, while $host etc.
3080# will get canonicalized.
3081test -n "$target_alias" &&
3082  test "$program_prefix$program_suffix$program_transform_name" = \
3083    NONENONEs,x,x, &&
3084  program_prefix=${target_alias}-
3085case $target_cpu in
3086i386|i486|i586|i686)
3087	ARCH_OPTION="-march=$target_cpu"
3088	MLIBS="viterbi27_mmx.o mmxbfly27.o viterbi27_sse.o ssebfly27.o viterbi27_sse2.o sse2bfly27.o \
3089	viterbi29_mmx.o mmxbfly29.o viterbi29_sse.o ssebfly29.o viterbi29_sse2.o sse2bfly29.o \
3090	viterbi39_sse2.o viterbi39_sse.o viterbi39_mmx.o \
3091	viterbi615_mmx.o viterbi615_sse.o viterbi615_sse2.o \
3092	dotprod_mmx.o dotprod_mmx_assist.o \
3093	dotprod_sse2.o dotprod_sse2_assist.o \
3094	peakval_mmx.o peakval_mmx_assist.o \
3095	peakval_sse.o peakval_sse_assist.o \
3096	peakval_sse2.o peakval_sse2_assist.o \
3097	sumsq.o sumsq_port.o \
3098	sumsq_sse2.o sumsq_sse2_assist.o \
3099	sumsq_mmx.o sumsq_mmx_assist.o \
3100	cpu_features.o cpu_mode_x86.o"
3101	;;
3102powerpc*)
3103	ARCH_OPTION="-fno-common -faltivec"
3104	MLIBS="viterbi27_av.o viterbi29_av.o viterbi39_av.o viterbi615_av.o \
3105	encode_rs_av.o \
3106	dotprod_av.o sumsq_av.o peakval_av.o cpu_mode_ppc.o"
3107	;;
3108*)
3109	MLIBS=
3110esac
3111case $target_os in
3112darwin*)
3113	SH_LIB=libfec.dylib
3114	REBIND=""
3115	;;
3116*)
3117	SH_LIB=libfec.so
3118	REBIND=ldconfig
3119	;;
3120esac
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130for ac_func in getopt_long memset memmove
3131do
3132as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3133echo "$as_me:$LINENO: checking for $ac_func" >&5
3134echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3135if eval "test \"\${$as_ac_var+set}\" = set"; then
3136  echo $ECHO_N "(cached) $ECHO_C" >&6
3137else
3138  cat >conftest.$ac_ext <<_ACEOF
3139/* confdefs.h.  */
3140_ACEOF
3141cat confdefs.h >>conftest.$ac_ext
3142cat >>conftest.$ac_ext <<_ACEOF
3143/* end confdefs.h.  */
3144/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3145   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3146#define $ac_func innocuous_$ac_func
3147
3148/* System header to define __stub macros and hopefully few prototypes,
3149    which can conflict with char $ac_func (); below.
3150    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3151    <limits.h> exists even on freestanding compilers.  */
3152
3153#ifdef __STDC__
3154# include <limits.h>
3155#else
3156# include <assert.h>
3157#endif
3158
3159#undef $ac_func
3160
3161/* Override any gcc2 internal prototype to avoid an error.  */
3162#ifdef __cplusplus
3163extern "C"
3164{
3165#endif
3166/* We use char because int might match the return type of a gcc2
3167   builtin and then its argument prototype would still apply.  */
3168char $ac_func ();
3169/* The GNU C library defines this for functions which it implements
3170    to always fail with ENOSYS.  Some functions are actually named
3171    something starting with __ and the normal name is an alias.  */
3172#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3173choke me
3174#else
3175char (*f) () = $ac_func;
3176#endif
3177#ifdef __cplusplus
3178}
3179#endif
3180
3181int
3182main ()
3183{
3184return f != $ac_func;
3185  ;
3186  return 0;
3187}
3188_ACEOF
3189rm -f conftest.$ac_objext conftest$ac_exeext
3190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3191  (eval $ac_link) 2>conftest.er1
3192  ac_status=$?
3193  grep -v '^ *+' conftest.er1 >conftest.err
3194  rm -f conftest.er1
3195  cat conftest.err >&5
3196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197  (exit $ac_status); } &&
3198	 { ac_try='test -z "$ac_c_werror_flag"
3199			 || test ! -s conftest.err'
3200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201  (eval $ac_try) 2>&5
3202  ac_status=$?
3203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204  (exit $ac_status); }; } &&
3205	 { ac_try='test -s conftest$ac_exeext'
3206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207  (eval $ac_try) 2>&5
3208  ac_status=$?
3209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210  (exit $ac_status); }; }; then
3211  eval "$as_ac_var=yes"
3212else
3213  echo "$as_me: failed program was:" >&5
3214sed 's/^/| /' conftest.$ac_ext >&5
3215
3216eval "$as_ac_var=no"
3217fi
3218rm -f conftest.err conftest.$ac_objext \
3219      conftest$ac_exeext conftest.$ac_ext
3220fi
3221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3222echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3223if test `eval echo '${'$as_ac_var'}'` = yes; then
3224  cat >>confdefs.h <<_ACEOF
3225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3226_ACEOF
3227
3228fi
3229done
3230
3231
3232          ac_config_files="$ac_config_files makefile"
3233cat >confcache <<\_ACEOF
3234# This file is a shell script that caches the results of configure
3235# tests run on this system so they can be shared between configure
3236# scripts and configure runs, see configure's option --config-cache.
3237# It is not useful on other systems.  If it contains results you don't
3238# want to keep, you may remove or edit it.
3239#
3240# config.status only pays attention to the cache file if you give it
3241# the --recheck option to rerun configure.
3242#
3243# `ac_cv_env_foo' variables (set or unset) will be overridden when
3244# loading this file, other *unset* `ac_cv_foo' will be assigned the
3245# following values.
3246
3247_ACEOF
3248
3249# The following way of writing the cache mishandles newlines in values,
3250# but we know of no workaround that is simple, portable, and efficient.
3251# So, don't put newlines in cache variables' values.
3252# Ultrix sh set writes to stderr and can't be redirected directly,
3253# and sets the high bit in the cache file unless we assign to the vars.
3254{
3255  (set) 2>&1 |
3256    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3257    *ac_space=\ *)
3258      # `set' does not quote correctly, so add quotes (double-quote
3259      # substitution turns \\\\ into \\, and sed turns \\ into \).
3260      sed -n \
3261	"s/'/'\\\\''/g;
3262	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3263      ;;
3264    *)
3265      # `set' quotes correctly as required by POSIX, so do not add quotes.
3266      sed -n \
3267	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3268      ;;
3269    esac;
3270} |
3271  sed '
3272     t clear
3273     : clear
3274     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3275     t end
3276     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3277     : end' >>confcache
3278if diff $cache_file confcache >/dev/null 2>&1; then :; else
3279  if test -w $cache_file; then
3280    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3281    cat confcache >$cache_file
3282  else
3283    echo "not updating unwritable cache $cache_file"
3284  fi
3285fi
3286rm -f confcache
3287
3288test "x$prefix" = xNONE && prefix=$ac_default_prefix
3289# Let make expand exec_prefix.
3290test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3291
3292# VPATH may cause trouble with some makes, so we remove $(srcdir),
3293# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3294# trailing colons and then remove the whole line if VPATH becomes empty
3295# (actually we leave an empty line to preserve line numbers).
3296if test "x$srcdir" = x.; then
3297  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
3298s/:*\$(srcdir):*/:/;
3299s/:*\${srcdir}:*/:/;
3300s/:*@srcdir@:*/:/;
3301s/^\([^=]*=[	 ]*\):*/\1/;
3302s/:*$//;
3303s/^[^=]*=[	 ]*$//;
3304}'
3305fi
3306
3307DEFS=-DHAVE_CONFIG_H
3308
3309ac_libobjs=
3310ac_ltlibobjs=
3311for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3312  # 1. Remove the extension, and $U if already installed.
3313  ac_i=`echo "$ac_i" |
3314	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3315  # 2. Add them.
3316  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3317  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3318done
3319LIBOBJS=$ac_libobjs
3320
3321LTLIBOBJS=$ac_ltlibobjs
3322
3323
3324
3325: ${CONFIG_STATUS=./config.status}
3326ac_clean_files_save=$ac_clean_files
3327ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3328{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3329echo "$as_me: creating $CONFIG_STATUS" >&6;}
3330cat >$CONFIG_STATUS <<_ACEOF
3331#! $SHELL
3332# Generated by $as_me.
3333# Run this file to recreate the current configuration.
3334# Compiler output produced by configure, useful for debugging
3335# configure, is in config.log if it exists.
3336
3337debug=false
3338ac_cs_recheck=false
3339ac_cs_silent=false
3340SHELL=\${CONFIG_SHELL-$SHELL}
3341_ACEOF
3342
3343cat >>$CONFIG_STATUS <<\_ACEOF
3344## --------------------- ##
3345## M4sh Initialization.  ##
3346## --------------------- ##
3347
3348# Be Bourne compatible
3349if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3350  emulate sh
3351  NULLCMD=:
3352  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3353  # is contrary to our usage.  Disable this feature.
3354  alias -g '${1+"$@"}'='"$@"'
3355elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3356  set -o posix
3357fi
3358DUALCASE=1; export DUALCASE # for MKS sh
3359
3360# Support unset when possible.
3361if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3362  as_unset=unset
3363else
3364  as_unset=false
3365fi
3366
3367
3368# Work around bugs in pre-3.0 UWIN ksh.
3369$as_unset ENV MAIL MAILPATH
3370PS1='$ '
3371PS2='> '
3372PS4='+ '
3373
3374# NLS nuisances.
3375for as_var in \
3376  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3377  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3378  LC_TELEPHONE LC_TIME
3379do
3380  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3381    eval $as_var=C; export $as_var
3382  else
3383    $as_unset $as_var
3384  fi
3385done
3386
3387# Required to use basename.
3388if expr a : '\(a\)' >/dev/null 2>&1; then
3389  as_expr=expr
3390else
3391  as_expr=false
3392fi
3393
3394if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3395  as_basename=basename
3396else
3397  as_basename=false
3398fi
3399
3400
3401# Name of the executable.
3402as_me=`$as_basename "$0" ||
3403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3404	 X"$0" : 'X\(//\)$' \| \
3405	 X"$0" : 'X\(/\)$' \| \
3406	 .     : '\(.\)' 2>/dev/null ||
3407echo X/"$0" |
3408    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3409  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
3410  	  /^X\/\(\/\).*/{ s//\1/; q; }
3411  	  s/.*/./; q'`
3412
3413
3414# PATH needs CR, and LINENO needs CR and PATH.
3415# Avoid depending upon Character Ranges.
3416as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3417as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3418as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3419as_cr_digits='0123456789'
3420as_cr_alnum=$as_cr_Letters$as_cr_digits
3421
3422# The user is always right.
3423if test "${PATH_SEPARATOR+set}" != set; then
3424  echo "#! /bin/sh" >conf$$.sh
3425  echo  "exit 0"   >>conf$$.sh
3426  chmod +x conf$$.sh
3427  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3428    PATH_SEPARATOR=';'
3429  else
3430    PATH_SEPARATOR=:
3431  fi
3432  rm -f conf$$.sh
3433fi
3434
3435
3436  as_lineno_1=$LINENO
3437  as_lineno_2=$LINENO
3438  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3439  test "x$as_lineno_1" != "x$as_lineno_2" &&
3440  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3441  # Find who we are.  Look in the path if we contain no path at all
3442  # relative or not.
3443  case $0 in
3444    *[\\/]* ) as_myself=$0 ;;
3445    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446for as_dir in $PATH
3447do
3448  IFS=$as_save_IFS
3449  test -z "$as_dir" && as_dir=.
3450  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3451done
3452
3453       ;;
3454  esac
3455  # We did not find ourselves, most probably we were run as `sh COMMAND'
3456  # in which case we are not to be found in the path.
3457  if test "x$as_myself" = x; then
3458    as_myself=$0
3459  fi
3460  if test ! -f "$as_myself"; then
3461    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3462echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3463   { (exit 1); exit 1; }; }
3464  fi
3465  case $CONFIG_SHELL in
3466  '')
3467    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3469do
3470  IFS=$as_save_IFS
3471  test -z "$as_dir" && as_dir=.
3472  for as_base in sh bash ksh sh5; do
3473	 case $as_dir in
3474	 /*)
3475	   if ("$as_dir/$as_base" -c '
3476  as_lineno_1=$LINENO
3477  as_lineno_2=$LINENO
3478  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3479  test "x$as_lineno_1" != "x$as_lineno_2" &&
3480  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3481	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3482	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3483	     CONFIG_SHELL=$as_dir/$as_base
3484	     export CONFIG_SHELL
3485	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3486	   fi;;
3487	 esac
3488       done
3489done
3490;;
3491  esac
3492
3493  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3494  # uniformly replaced by the line number.  The first 'sed' inserts a
3495  # line-number line before each line; the second 'sed' does the real
3496  # work.  The second script uses 'N' to pair each line-number line
3497  # with the numbered line, and appends trailing '-' during
3498  # substitution so that $LINENO is not a special case at line end.
3499  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3500  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3501  sed '=' <$as_myself |
3502    sed '
3503      N
3504      s,$,-,
3505      : loop
3506      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3507      t loop
3508      s,-$,,
3509      s,^['$as_cr_digits']*\n,,
3510    ' >$as_me.lineno &&
3511  chmod +x $as_me.lineno ||
3512    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3513echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3514   { (exit 1); exit 1; }; }
3515
3516  # Don't try to exec as it changes $[0], causing all sort of problems
3517  # (the dirname of $[0] is not the place where we might find the
3518  # original and so on.  Autoconf is especially sensible to this).
3519  . ./$as_me.lineno
3520  # Exit status is that of the last command.
3521  exit
3522}
3523
3524
3525case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3526  *c*,-n*) ECHO_N= ECHO_C='
3527' ECHO_T='	' ;;
3528  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3529  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3530esac
3531
3532if expr a : '\(a\)' >/dev/null 2>&1; then
3533  as_expr=expr
3534else
3535  as_expr=false
3536fi
3537
3538rm -f conf$$ conf$$.exe conf$$.file
3539echo >conf$$.file
3540if ln -s conf$$.file conf$$ 2>/dev/null; then
3541  # We could just check for DJGPP; but this test a) works b) is more generic
3542  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3543  if test -f conf$$.exe; then
3544    # Don't use ln at all; we don't have any links
3545    as_ln_s='cp -p'
3546  else
3547    as_ln_s='ln -s'
3548  fi
3549elif ln conf$$.file conf$$ 2>/dev/null; then
3550  as_ln_s=ln
3551else
3552  as_ln_s='cp -p'
3553fi
3554rm -f conf$$ conf$$.exe conf$$.file
3555
3556if mkdir -p . 2>/dev/null; then
3557  as_mkdir_p=:
3558else
3559  test -d ./-p && rmdir ./-p
3560  as_mkdir_p=false
3561fi
3562
3563as_executable_p="test -f"
3564
3565# Sed expression to map a string onto a valid CPP name.
3566as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3567
3568# Sed expression to map a string onto a valid variable name.
3569as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3570
3571
3572# IFS
3573# We need space, tab and new line, in precisely that order.
3574as_nl='
3575'
3576IFS=" 	$as_nl"
3577
3578# CDPATH.
3579$as_unset CDPATH
3580
3581exec 6>&1
3582
3583# Open the log real soon, to keep \$[0] and so on meaningful, and to
3584# report actual input values of CONFIG_FILES etc. instead of their
3585# values after options handling.  Logging --version etc. is OK.
3586exec 5>>config.log
3587{
3588  echo
3589  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3590## Running $as_me. ##
3591_ASBOX
3592} >&5
3593cat >&5 <<_CSEOF
3594
3595This file was extended by $as_me, which was
3596generated by GNU Autoconf 2.59.  Invocation command line was
3597
3598  CONFIG_FILES    = $CONFIG_FILES
3599  CONFIG_HEADERS  = $CONFIG_HEADERS
3600  CONFIG_LINKS    = $CONFIG_LINKS
3601  CONFIG_COMMANDS = $CONFIG_COMMANDS
3602  $ $0 $@
3603
3604_CSEOF
3605echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3606echo >&5
3607_ACEOF
3608
3609# Files that config.status was made for.
3610if test -n "$ac_config_files"; then
3611  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3612fi
3613
3614if test -n "$ac_config_headers"; then
3615  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3616fi
3617
3618if test -n "$ac_config_links"; then
3619  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3620fi
3621
3622if test -n "$ac_config_commands"; then
3623  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3624fi
3625
3626cat >>$CONFIG_STATUS <<\_ACEOF
3627
3628ac_cs_usage="\
3629\`$as_me' instantiates files from templates according to the
3630current configuration.
3631
3632Usage: $0 [OPTIONS] [FILE]...
3633
3634  -h, --help       print this help, then exit
3635  -V, --version    print version number, then exit
3636  -q, --quiet      do not print progress messages
3637  -d, --debug      don't remove temporary files
3638      --recheck    update $as_me by reconfiguring in the same conditions
3639  --file=FILE[:TEMPLATE]
3640		   instantiate the configuration file FILE
3641  --header=FILE[:TEMPLATE]
3642		   instantiate the configuration header FILE
3643
3644Configuration files:
3645$config_files
3646
3647Configuration headers:
3648$config_headers
3649
3650Report bugs to <bug-autoconf@gnu.org>."
3651_ACEOF
3652
3653cat >>$CONFIG_STATUS <<_ACEOF
3654ac_cs_version="\\
3655config.status
3656configured by $0, generated by GNU Autoconf 2.59,
3657  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3658
3659Copyright (C) 2003 Free Software Foundation, Inc.
3660This config.status script is free software; the Free Software Foundation
3661gives unlimited permission to copy, distribute and modify it."
3662srcdir=$srcdir
3663_ACEOF
3664
3665cat >>$CONFIG_STATUS <<\_ACEOF
3666# If no file are specified by the user, then we need to provide default
3667# value.  By we need to know if files were specified by the user.
3668ac_need_defaults=:
3669while test $# != 0
3670do
3671  case $1 in
3672  --*=*)
3673    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3674    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3675    ac_shift=:
3676    ;;
3677  -*)
3678    ac_option=$1
3679    ac_optarg=$2
3680    ac_shift=shift
3681    ;;
3682  *) # This is not an option, so the user has probably given explicit
3683     # arguments.
3684     ac_option=$1
3685     ac_need_defaults=false;;
3686  esac
3687
3688  case $ac_option in
3689  # Handling of the options.
3690_ACEOF
3691cat >>$CONFIG_STATUS <<\_ACEOF
3692  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3693    ac_cs_recheck=: ;;
3694  --version | --vers* | -V )
3695    echo "$ac_cs_version"; exit 0 ;;
3696  --he | --h)
3697    # Conflict between --help and --header
3698    { { echo "$as_me:$LINENO: error: ambiguous option: $1
3699Try \`$0 --help' for more information." >&5
3700echo "$as_me: error: ambiguous option: $1
3701Try \`$0 --help' for more information." >&2;}
3702   { (exit 1); exit 1; }; };;
3703  --help | --hel | -h )
3704    echo "$ac_cs_usage"; exit 0 ;;
3705  --debug | --d* | -d )
3706    debug=: ;;
3707  --file | --fil | --fi | --f )
3708    $ac_shift
3709    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3710    ac_need_defaults=false;;
3711  --header | --heade | --head | --hea )
3712    $ac_shift
3713    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3714    ac_need_defaults=false;;
3715  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3716  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3717    ac_cs_silent=: ;;
3718
3719  # This is an error.
3720  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3721Try \`$0 --help' for more information." >&5
3722echo "$as_me: error: unrecognized option: $1
3723Try \`$0 --help' for more information." >&2;}
3724   { (exit 1); exit 1; }; } ;;
3725
3726  *) ac_config_targets="$ac_config_targets $1" ;;
3727
3728  esac
3729  shift
3730done
3731
3732ac_configure_extra_args=
3733
3734if $ac_cs_silent; then
3735  exec 6>/dev/null
3736  ac_configure_extra_args="$ac_configure_extra_args --silent"
3737fi
3738
3739_ACEOF
3740cat >>$CONFIG_STATUS <<_ACEOF
3741if \$ac_cs_recheck; then
3742  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3743  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3744fi
3745
3746_ACEOF
3747
3748
3749
3750
3751
3752cat >>$CONFIG_STATUS <<\_ACEOF
3753for ac_config_target in $ac_config_targets
3754do
3755  case "$ac_config_target" in
3756  # Handling of arguments.
3757  "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
3758  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3759  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3760echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3761   { (exit 1); exit 1; }; };;
3762  esac
3763done
3764
3765# If the user did not use the arguments to specify the items to instantiate,
3766# then the envvar interface is used.  Set only those that are not.
3767# We use the long form for the default assignment because of an extremely
3768# bizarre bug on SunOS 4.1.3.
3769if $ac_need_defaults; then
3770  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3771  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3772fi
3773
3774# Have a temporary directory for convenience.  Make it in the build tree
3775# simply because there is no reason to put it here, and in addition,
3776# creating and moving files from /tmp can sometimes cause problems.
3777# Create a temporary directory, and hook for its removal unless debugging.
3778$debug ||
3779{
3780  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3781  trap '{ (exit 1); exit 1; }' 1 2 13 15
3782}
3783
3784# Create a (secure) tmp directory for tmp files.
3785
3786{
3787  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3788  test -n "$tmp" && test -d "$tmp"
3789}  ||
3790{
3791  tmp=./confstat$$-$RANDOM
3792  (umask 077 && mkdir $tmp)
3793} ||
3794{
3795   echo "$me: cannot create a temporary directory in ." >&2
3796   { (exit 1); exit 1; }
3797}
3798
3799_ACEOF
3800
3801cat >>$CONFIG_STATUS <<_ACEOF
3802
3803#
3804# CONFIG_FILES section.
3805#
3806
3807# No need to generate the scripts if there are no CONFIG_FILES.
3808# This happens for instance when ./config.status config.h
3809if test -n "\$CONFIG_FILES"; then
3810  # Protect against being on the right side of a sed subst in config.status.
3811  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3812   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3813s,@SHELL@,$SHELL,;t t
3814s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3815s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3816s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3817s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3818s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3819s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3820s,@exec_prefix@,$exec_prefix,;t t
3821s,@prefix@,$prefix,;t t
3822s,@program_transform_name@,$program_transform_name,;t t
3823s,@bindir@,$bindir,;t t
3824s,@sbindir@,$sbindir,;t t
3825s,@libexecdir@,$libexecdir,;t t
3826s,@datadir@,$datadir,;t t
3827s,@sysconfdir@,$sysconfdir,;t t
3828s,@sharedstatedir@,$sharedstatedir,;t t
3829s,@localstatedir@,$localstatedir,;t t
3830s,@libdir@,$libdir,;t t
3831s,@includedir@,$includedir,;t t
3832s,@oldincludedir@,$oldincludedir,;t t
3833s,@infodir@,$infodir,;t t
3834s,@mandir@,$mandir,;t t
3835s,@build_alias@,$build_alias,;t t
3836s,@host_alias@,$host_alias,;t t
3837s,@target_alias@,$target_alias,;t t
3838s,@DEFS@,$DEFS,;t t
3839s,@ECHO_C@,$ECHO_C,;t t
3840s,@ECHO_N@,$ECHO_N,;t t
3841s,@ECHO_T@,$ECHO_T,;t t
3842s,@LIBS@,$LIBS,;t t
3843s,@SO_NAME@,$SO_NAME,;t t
3844s,@VERSION@,$VERSION,;t t
3845s,@CC@,$CC,;t t
3846s,@CFLAGS@,$CFLAGS,;t t
3847s,@LDFLAGS@,$LDFLAGS,;t t
3848s,@CPPFLAGS@,$CPPFLAGS,;t t
3849s,@ac_ct_CC@,$ac_ct_CC,;t t
3850s,@EXEEXT@,$EXEEXT,;t t
3851s,@OBJEXT@,$OBJEXT,;t t
3852s,@CPP@,$CPP,;t t
3853s,@EGREP@,$EGREP,;t t
3854s,@build@,$build,;t t
3855s,@build_cpu@,$build_cpu,;t t
3856s,@build_vendor@,$build_vendor,;t t
3857s,@build_os@,$build_os,;t t
3858s,@host@,$host,;t t
3859s,@host_cpu@,$host_cpu,;t t
3860s,@host_vendor@,$host_vendor,;t t
3861s,@host_os@,$host_os,;t t
3862s,@target@,$target,;t t
3863s,@target_cpu@,$target_cpu,;t t
3864s,@target_vendor@,$target_vendor,;t t
3865s,@target_os@,$target_os,;t t
3866s,@SH_LIB@,$SH_LIB,;t t
3867s,@REBIND@,$REBIND,;t t
3868s,@MLIBS@,$MLIBS,;t t
3869s,@ARCH_OPTION@,$ARCH_OPTION,;t t
3870s,@LIBOBJS@,$LIBOBJS,;t t
3871s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3872CEOF
3873
3874_ACEOF
3875
3876  cat >>$CONFIG_STATUS <<\_ACEOF
3877  # Split the substitutions into bite-sized pieces for seds with
3878  # small command number limits, like on Digital OSF/1 and HP-UX.
3879  ac_max_sed_lines=48
3880  ac_sed_frag=1 # Number of current file.
3881  ac_beg=1 # First line for current file.
3882  ac_end=$ac_max_sed_lines # Line after last line for current file.
3883  ac_more_lines=:
3884  ac_sed_cmds=
3885  while $ac_more_lines; do
3886    if test $ac_beg -gt 1; then
3887      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3888    else
3889      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3890    fi
3891    if test ! -s $tmp/subs.frag; then
3892      ac_more_lines=false
3893    else
3894      # The purpose of the label and of the branching condition is to
3895      # speed up the sed processing (if there are no `@' at all, there
3896      # is no need to browse any of the substitutions).
3897      # These are the two extra sed commands mentioned above.
3898      (echo ':t
3899  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3900      if test -z "$ac_sed_cmds"; then
3901	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3902      else
3903	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3904      fi
3905      ac_sed_frag=`expr $ac_sed_frag + 1`
3906      ac_beg=$ac_end
3907      ac_end=`expr $ac_end + $ac_max_sed_lines`
3908    fi
3909  done
3910  if test -z "$ac_sed_cmds"; then
3911    ac_sed_cmds=cat
3912  fi
3913fi # test -n "$CONFIG_FILES"
3914
3915_ACEOF
3916cat >>$CONFIG_STATUS <<\_ACEOF
3917for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3918  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3919  case $ac_file in
3920  - | *:- | *:-:* ) # input from stdin
3921	cat >$tmp/stdin
3922	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3923	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3924  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3925	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3926  * )   ac_file_in=$ac_file.in ;;
3927  esac
3928
3929  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3930  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3931$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3932	 X"$ac_file" : 'X\(//\)[^/]' \| \
3933	 X"$ac_file" : 'X\(//\)$' \| \
3934	 X"$ac_file" : 'X\(/\)' \| \
3935	 .     : '\(.\)' 2>/dev/null ||
3936echo X"$ac_file" |
3937    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3938  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3939  	  /^X\(\/\/\)$/{ s//\1/; q; }
3940  	  /^X\(\/\).*/{ s//\1/; q; }
3941  	  s/.*/./; q'`
3942  { if $as_mkdir_p; then
3943    mkdir -p "$ac_dir"
3944  else
3945    as_dir="$ac_dir"
3946    as_dirs=
3947    while test ! -d "$as_dir"; do
3948      as_dirs="$as_dir $as_dirs"
3949      as_dir=`(dirname "$as_dir") 2>/dev/null ||
3950$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3951	 X"$as_dir" : 'X\(//\)[^/]' \| \
3952	 X"$as_dir" : 'X\(//\)$' \| \
3953	 X"$as_dir" : 'X\(/\)' \| \
3954	 .     : '\(.\)' 2>/dev/null ||
3955echo X"$as_dir" |
3956    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3957  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3958  	  /^X\(\/\/\)$/{ s//\1/; q; }
3959  	  /^X\(\/\).*/{ s//\1/; q; }
3960  	  s/.*/./; q'`
3961    done
3962    test ! -n "$as_dirs" || mkdir $as_dirs
3963  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3964echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3965   { (exit 1); exit 1; }; }; }
3966
3967  ac_builddir=.
3968
3969if test "$ac_dir" != .; then
3970  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3971  # A "../" for each directory in $ac_dir_suffix.
3972  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3973else
3974  ac_dir_suffix= ac_top_builddir=
3975fi
3976
3977case $srcdir in
3978  .)  # No --srcdir option.  We are building in place.
3979    ac_srcdir=.
3980    if test -z "$ac_top_builddir"; then
3981       ac_top_srcdir=.
3982    else
3983       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3984    fi ;;
3985  [\\/]* | ?:[\\/]* )  # Absolute path.
3986    ac_srcdir=$srcdir$ac_dir_suffix;
3987    ac_top_srcdir=$srcdir ;;
3988  *) # Relative path.
3989    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3990    ac_top_srcdir=$ac_top_builddir$srcdir ;;
3991esac
3992
3993# Do not use `cd foo && pwd` to compute absolute paths, because
3994# the directories may not exist.
3995case `pwd` in
3996.) ac_abs_builddir="$ac_dir";;
3997*)
3998  case "$ac_dir" in
3999  .) ac_abs_builddir=`pwd`;;
4000  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4001  *) ac_abs_builddir=`pwd`/"$ac_dir";;
4002  esac;;
4003esac
4004case $ac_abs_builddir in
4005.) ac_abs_top_builddir=${ac_top_builddir}.;;
4006*)
4007  case ${ac_top_builddir}. in
4008  .) ac_abs_top_builddir=$ac_abs_builddir;;
4009  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4010  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4011  esac;;
4012esac
4013case $ac_abs_builddir in
4014.) ac_abs_srcdir=$ac_srcdir;;
4015*)
4016  case $ac_srcdir in
4017  .) ac_abs_srcdir=$ac_abs_builddir;;
4018  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4019  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4020  esac;;
4021esac
4022case $ac_abs_builddir in
4023.) ac_abs_top_srcdir=$ac_top_srcdir;;
4024*)
4025  case $ac_top_srcdir in
4026  .) ac_abs_top_srcdir=$ac_abs_builddir;;
4027  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4028  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4029  esac;;
4030esac
4031
4032
4033
4034  if test x"$ac_file" != x-; then
4035    { echo "$as_me:$LINENO: creating $ac_file" >&5
4036echo "$as_me: creating $ac_file" >&6;}
4037    rm -f "$ac_file"
4038  fi
4039  # Let's still pretend it is `configure' which instantiates (i.e., don't
4040  # use $as_me), people would be surprised to read:
4041  #    /* config.h.  Generated by config.status.  */
4042  if test x"$ac_file" = x-; then
4043    configure_input=
4044  else
4045    configure_input="$ac_file.  "
4046  fi
4047  configure_input=$configure_input"Generated from `echo $ac_file_in |
4048				     sed 's,.*/,,'` by configure."
4049
4050  # First look for the input files in the build tree, otherwise in the
4051  # src tree.
4052  ac_file_inputs=`IFS=:
4053    for f in $ac_file_in; do
4054      case $f in
4055      -) echo $tmp/stdin ;;
4056      [\\/$]*)
4057	 # Absolute (can't be DOS-style, as IFS=:)
4058	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4059echo "$as_me: error: cannot find input file: $f" >&2;}
4060   { (exit 1); exit 1; }; }
4061	 echo "$f";;
4062      *) # Relative
4063	 if test -f "$f"; then
4064	   # Build tree
4065	   echo "$f"
4066	 elif test -f "$srcdir/$f"; then
4067	   # Source tree
4068	   echo "$srcdir/$f"
4069	 else
4070	   # /dev/null tree
4071	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4072echo "$as_me: error: cannot find input file: $f" >&2;}
4073   { (exit 1); exit 1; }; }
4074	 fi;;
4075      esac
4076    done` || { (exit 1); exit 1; }
4077_ACEOF
4078cat >>$CONFIG_STATUS <<_ACEOF
4079  sed "$ac_vpsub
4080$extrasub
4081_ACEOF
4082cat >>$CONFIG_STATUS <<\_ACEOF
4083:t
4084/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4085s,@configure_input@,$configure_input,;t t
4086s,@srcdir@,$ac_srcdir,;t t
4087s,@abs_srcdir@,$ac_abs_srcdir,;t t
4088s,@top_srcdir@,$ac_top_srcdir,;t t
4089s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4090s,@builddir@,$ac_builddir,;t t
4091s,@abs_builddir@,$ac_abs_builddir,;t t
4092s,@top_builddir@,$ac_top_builddir,;t t
4093s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4094" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4095  rm -f $tmp/stdin
4096  if test x"$ac_file" != x-; then
4097    mv $tmp/out $ac_file
4098  else
4099    cat $tmp/out
4100    rm -f $tmp/out
4101  fi
4102
4103done
4104_ACEOF
4105cat >>$CONFIG_STATUS <<\_ACEOF
4106
4107#
4108# CONFIG_HEADER section.
4109#
4110
4111# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4112# NAME is the cpp macro being defined and VALUE is the value it is being given.
4113#
4114# ac_d sets the value in "#define NAME VALUE" lines.
4115ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
4116ac_dB='[	 ].*$,\1#\2'
4117ac_dC=' '
4118ac_dD=',;t'
4119# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4120ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
4121ac_uB='$,\1#\2define\3'
4122ac_uC=' '
4123ac_uD=',;t'
4124
4125for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4126  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4127  case $ac_file in
4128  - | *:- | *:-:* ) # input from stdin
4129	cat >$tmp/stdin
4130	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4131	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4132  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4133	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4134  * )   ac_file_in=$ac_file.in ;;
4135  esac
4136
4137  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4138echo "$as_me: creating $ac_file" >&6;}
4139
4140  # First look for the input files in the build tree, otherwise in the
4141  # src tree.
4142  ac_file_inputs=`IFS=:
4143    for f in $ac_file_in; do
4144      case $f in
4145      -) echo $tmp/stdin ;;
4146      [\\/$]*)
4147	 # Absolute (can't be DOS-style, as IFS=:)
4148	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4149echo "$as_me: error: cannot find input file: $f" >&2;}
4150   { (exit 1); exit 1; }; }
4151	 # Do quote $f, to prevent DOS paths from being IFS'd.
4152	 echo "$f";;
4153      *) # Relative
4154	 if test -f "$f"; then
4155	   # Build tree
4156	   echo "$f"
4157	 elif test -f "$srcdir/$f"; then
4158	   # Source tree
4159	   echo "$srcdir/$f"
4160	 else
4161	   # /dev/null tree
4162	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4163echo "$as_me: error: cannot find input file: $f" >&2;}
4164   { (exit 1); exit 1; }; }
4165	 fi;;
4166      esac
4167    done` || { (exit 1); exit 1; }
4168  # Remove the trailing spaces.
4169  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
4170
4171_ACEOF
4172
4173# Transform confdefs.h into two sed scripts, `conftest.defines' and
4174# `conftest.undefs', that substitutes the proper values into
4175# config.h.in to produce config.h.  The first handles `#define'
4176# templates, and the second `#undef' templates.
4177# And first: Protect against being on the right side of a sed subst in
4178# config.status.  Protect against being in an unquoted here document
4179# in config.status.
4180rm -f conftest.defines conftest.undefs
4181# Using a here document instead of a string reduces the quoting nightmare.
4182# Putting comments in sed scripts is not portable.
4183#
4184# `end' is used to avoid that the second main sed command (meant for
4185# 0-ary CPP macros) applies to n-ary macro definitions.
4186# See the Autoconf documentation for `clear'.
4187cat >confdef2sed.sed <<\_ACEOF
4188s/[\\&,]/\\&/g
4189s,[\\$`],\\&,g
4190t clear
4191: clear
4192s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4193t end
4194s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4195: end
4196_ACEOF
4197# If some macros were called several times there might be several times
4198# the same #defines, which is useless.  Nevertheless, we may not want to
4199# sort them, since we want the *last* AC-DEFINE to be honored.
4200uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4201sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4202rm -f confdef2sed.sed
4203
4204# This sed command replaces #undef with comments.  This is necessary, for
4205# example, in the case of _POSIX_SOURCE, which is predefined and required
4206# on some systems where configure will not decide to define it.
4207cat >>conftest.undefs <<\_ACEOF
4208s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4209_ACEOF
4210
4211# Break up conftest.defines because some shells have a limit on the size
4212# of here documents, and old seds have small limits too (100 cmds).
4213echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4214echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4215echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4216echo '  :' >>$CONFIG_STATUS
4217rm -f conftest.tail
4218while grep . conftest.defines >/dev/null
4219do
4220  # Write a limited-size here document to $tmp/defines.sed.
4221  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4222  # Speed up: don't consider the non `#define' lines.
4223  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
4224  # Work around the forget-to-reset-the-flag bug.
4225  echo 't clr' >>$CONFIG_STATUS
4226  echo ': clr' >>$CONFIG_STATUS
4227  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4228  echo 'CEOF
4229  sed -f $tmp/defines.sed $tmp/in >$tmp/out
4230  rm -f $tmp/in
4231  mv $tmp/out $tmp/in
4232' >>$CONFIG_STATUS
4233  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4234  rm -f conftest.defines
4235  mv conftest.tail conftest.defines
4236done
4237rm -f conftest.defines
4238echo '  fi # grep' >>$CONFIG_STATUS
4239echo >>$CONFIG_STATUS
4240
4241# Break up conftest.undefs because some shells have a limit on the size
4242# of here documents, and old seds have small limits too (100 cmds).
4243echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4244rm -f conftest.tail
4245while grep . conftest.undefs >/dev/null
4246do
4247  # Write a limited-size here document to $tmp/undefs.sed.
4248  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4249  # Speed up: don't consider the non `#undef'
4250  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
4251  # Work around the forget-to-reset-the-flag bug.
4252  echo 't clr' >>$CONFIG_STATUS
4253  echo ': clr' >>$CONFIG_STATUS
4254  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4255  echo 'CEOF
4256  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4257  rm -f $tmp/in
4258  mv $tmp/out $tmp/in
4259' >>$CONFIG_STATUS
4260  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4261  rm -f conftest.undefs
4262  mv conftest.tail conftest.undefs
4263done
4264rm -f conftest.undefs
4265
4266cat >>$CONFIG_STATUS <<\_ACEOF
4267  # Let's still pretend it is `configure' which instantiates (i.e., don't
4268  # use $as_me), people would be surprised to read:
4269  #    /* config.h.  Generated by config.status.  */
4270  if test x"$ac_file" = x-; then
4271    echo "/* Generated by configure.  */" >$tmp/config.h
4272  else
4273    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
4274  fi
4275  cat $tmp/in >>$tmp/config.h
4276  rm -f $tmp/in
4277  if test x"$ac_file" != x-; then
4278    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4279      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4280echo "$as_me: $ac_file is unchanged" >&6;}
4281    else
4282      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4283$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4284	 X"$ac_file" : 'X\(//\)[^/]' \| \
4285	 X"$ac_file" : 'X\(//\)$' \| \
4286	 X"$ac_file" : 'X\(/\)' \| \
4287	 .     : '\(.\)' 2>/dev/null ||
4288echo X"$ac_file" |
4289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4290  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4291  	  /^X\(\/\/\)$/{ s//\1/; q; }
4292  	  /^X\(\/\).*/{ s//\1/; q; }
4293  	  s/.*/./; q'`
4294      { if $as_mkdir_p; then
4295    mkdir -p "$ac_dir"
4296  else
4297    as_dir="$ac_dir"
4298    as_dirs=
4299    while test ! -d "$as_dir"; do
4300      as_dirs="$as_dir $as_dirs"
4301      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4303	 X"$as_dir" : 'X\(//\)[^/]' \| \
4304	 X"$as_dir" : 'X\(//\)$' \| \
4305	 X"$as_dir" : 'X\(/\)' \| \
4306	 .     : '\(.\)' 2>/dev/null ||
4307echo X"$as_dir" |
4308    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4309  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4310  	  /^X\(\/\/\)$/{ s//\1/; q; }
4311  	  /^X\(\/\).*/{ s//\1/; q; }
4312  	  s/.*/./; q'`
4313    done
4314    test ! -n "$as_dirs" || mkdir $as_dirs
4315  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4316echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4317   { (exit 1); exit 1; }; }; }
4318
4319      rm -f $ac_file
4320      mv $tmp/config.h $ac_file
4321    fi
4322  else
4323    cat $tmp/config.h
4324    rm -f $tmp/config.h
4325  fi
4326done
4327_ACEOF
4328
4329cat >>$CONFIG_STATUS <<\_ACEOF
4330
4331{ (exit 0); exit 0; }
4332_ACEOF
4333chmod +x $CONFIG_STATUS
4334ac_clean_files=$ac_clean_files_save
4335
4336
4337# configure is writing to config.log, and then calls config.status.
4338# config.status does its own redirection, appending to config.log.
4339# Unfortunately, on DOS this fails, as config.log is still kept open
4340# by configure, so config.status won't be able to write to it; its
4341# output is simply discarded.  So we exec the FD to /dev/null,
4342# effectively closing config.log, so it can be properly (re)opened and
4343# appended to by config.status.  When coming back to configure, we
4344# need to make the FD available again.
4345if test "$no_create" != yes; then
4346  ac_cs_success=:
4347  ac_config_status_args=
4348  test "$silent" = yes &&
4349    ac_config_status_args="$ac_config_status_args --quiet"
4350  exec 5>/dev/null
4351  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4352  exec 5>>config.log
4353  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4354  # would make configure fail if this is the last instruction.
4355  $ac_cs_success || { (exit 1); exit 1; }
4356fi
4357
4358