1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libpng 1.2.8.
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='libpng'
269PACKAGE_TARNAME='libpng'
270PACKAGE_VERSION='1.2.8'
271PACKAGE_STRING='libpng 1.2.8'
272PACKAGE_BUGREPORT=''
273
274ac_unique_file="png.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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS POW_LIB 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 libpng 1.2.8 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
834Program names:
835  --program-prefix=PREFIX            prepend PREFIX to installed program names
836  --program-suffix=SUFFIX            append SUFFIX to installed program names
837  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839System types:
840  --build=BUILD     configure for building on BUILD [guessed]
841  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842_ACEOF
843fi
844
845if test -n "$ac_init_help"; then
846  case $ac_init_help in
847     short | recursive ) echo "Configuration of libpng 1.2.8:";;
848   esac
849  cat <<\_ACEOF
850
851Optional Features:
852  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
853  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
854  --enable-maintainer-mode  enable make rules and dependencies not useful
855			  (and sometimes confusing) to the casual installer
856
857Some influential environment variables:
858  CC          C compiler command
859  CFLAGS      C compiler flags
860  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
861              nonstandard directory <lib dir>
862  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
863              headers in a nonstandard directory <include dir>
864  CPP         C preprocessor
865
866Use these variables to override the choices made by `configure' or to help
867it to find libraries and programs with nonstandard names/locations.
868
869_ACEOF
870fi
871
872if test "$ac_init_help" = "recursive"; then
873  # If there are subdirs, report their specific --help.
874  ac_popdir=`pwd`
875  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
876    test -d $ac_dir || continue
877    ac_builddir=.
878
879if test "$ac_dir" != .; then
880  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
881  # A "../" for each directory in $ac_dir_suffix.
882  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
883else
884  ac_dir_suffix= ac_top_builddir=
885fi
886
887case $srcdir in
888  .)  # No --srcdir option.  We are building in place.
889    ac_srcdir=.
890    if test -z "$ac_top_builddir"; then
891       ac_top_srcdir=.
892    else
893       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
894    fi ;;
895  [\\/]* | ?:[\\/]* )  # Absolute path.
896    ac_srcdir=$srcdir$ac_dir_suffix;
897    ac_top_srcdir=$srcdir ;;
898  *) # Relative path.
899    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
900    ac_top_srcdir=$ac_top_builddir$srcdir ;;
901esac
902
903# Do not use `cd foo && pwd` to compute absolute paths, because
904# the directories may not exist.
905case `pwd` in
906.) ac_abs_builddir="$ac_dir";;
907*)
908  case "$ac_dir" in
909  .) ac_abs_builddir=`pwd`;;
910  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
911  *) ac_abs_builddir=`pwd`/"$ac_dir";;
912  esac;;
913esac
914case $ac_abs_builddir in
915.) ac_abs_top_builddir=${ac_top_builddir}.;;
916*)
917  case ${ac_top_builddir}. in
918  .) ac_abs_top_builddir=$ac_abs_builddir;;
919  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
920  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
921  esac;;
922esac
923case $ac_abs_builddir in
924.) ac_abs_srcdir=$ac_srcdir;;
925*)
926  case $ac_srcdir in
927  .) ac_abs_srcdir=$ac_abs_builddir;;
928  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
929  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
930  esac;;
931esac
932case $ac_abs_builddir in
933.) ac_abs_top_srcdir=$ac_top_srcdir;;
934*)
935  case $ac_top_srcdir in
936  .) ac_abs_top_srcdir=$ac_abs_builddir;;
937  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
938  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
939  esac;;
940esac
941
942    cd $ac_dir
943    # Check for guested configure; otherwise get Cygnus style configure.
944    if test -f $ac_srcdir/configure.gnu; then
945      echo
946      $SHELL $ac_srcdir/configure.gnu  --help=recursive
947    elif test -f $ac_srcdir/configure; then
948      echo
949      $SHELL $ac_srcdir/configure  --help=recursive
950    elif test -f $ac_srcdir/configure.ac ||
951	   test -f $ac_srcdir/configure.in; then
952      echo
953      $ac_configure --help
954    else
955      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
956    fi
957    cd $ac_popdir
958  done
959fi
960
961test -n "$ac_init_help" && exit 0
962if $ac_init_version; then
963  cat <<\_ACEOF
964libpng configure 1.2.8
965generated by GNU Autoconf 2.59
966
967Copyright (C) 2003 Free Software Foundation, Inc.
968This configure script is free software; the Free Software Foundation
969gives unlimited permission to copy, distribute and modify it.
970_ACEOF
971  exit 0
972fi
973exec 5>config.log
974cat >&5 <<_ACEOF
975This file contains any messages produced by compilers while
976running configure, to aid debugging if configure makes a mistake.
977
978It was created by libpng $as_me 1.2.8, which was
979generated by GNU Autoconf 2.59.  Invocation command line was
980
981  $ $0 $@
982
983_ACEOF
984{
985cat <<_ASUNAME
986## --------- ##
987## Platform. ##
988## --------- ##
989
990hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
991uname -m = `(uname -m) 2>/dev/null || echo unknown`
992uname -r = `(uname -r) 2>/dev/null || echo unknown`
993uname -s = `(uname -s) 2>/dev/null || echo unknown`
994uname -v = `(uname -v) 2>/dev/null || echo unknown`
995
996/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
997/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
998
999/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1000/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1001/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1002hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1003/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1004/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1005/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1006
1007_ASUNAME
1008
1009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1010for as_dir in $PATH
1011do
1012  IFS=$as_save_IFS
1013  test -z "$as_dir" && as_dir=.
1014  echo "PATH: $as_dir"
1015done
1016
1017} >&5
1018
1019cat >&5 <<_ACEOF
1020
1021
1022## ----------- ##
1023## Core tests. ##
1024## ----------- ##
1025
1026_ACEOF
1027
1028
1029# Keep a trace of the command line.
1030# Strip out --no-create and --no-recursion so they do not pile up.
1031# Strip out --silent because we don't want to record it for future runs.
1032# Also quote any args containing shell meta-characters.
1033# Make two passes to allow for proper duplicate-argument suppression.
1034ac_configure_args=
1035ac_configure_args0=
1036ac_configure_args1=
1037ac_sep=
1038ac_must_keep_next=false
1039for ac_pass in 1 2
1040do
1041  for ac_arg
1042  do
1043    case $ac_arg in
1044    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1045    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046    | -silent | --silent | --silen | --sile | --sil)
1047      continue ;;
1048    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1049      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1050    esac
1051    case $ac_pass in
1052    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053    2)
1054      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1055      if test $ac_must_keep_next = true; then
1056	ac_must_keep_next=false # Got value, back to normal.
1057      else
1058	case $ac_arg in
1059	  *=* | --config-cache | -C | -disable-* | --disable-* \
1060	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1061	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1062	  | -with-* | --with-* | -without-* | --without-* | --x)
1063	    case "$ac_configure_args0 " in
1064	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1065	    esac
1066	    ;;
1067	  -* ) ac_must_keep_next=true ;;
1068	esac
1069      fi
1070      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1071      # Get rid of the leading space.
1072      ac_sep=" "
1073      ;;
1074    esac
1075  done
1076done
1077$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1078$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079
1080# When interrupted or exit'd, cleanup temporary files, and complete
1081# config.log.  We remove comments because anyway the quotes in there
1082# would cause problems or look ugly.
1083# WARNING: Be sure not to use single quotes in there, as some shells,
1084# such as our DU 5.0 friend, will then `close' the trap.
1085trap 'exit_status=$?
1086  # Save into config.log some information that might help in debugging.
1087  {
1088    echo
1089
1090    cat <<\_ASBOX
1091## ---------------- ##
1092## Cache variables. ##
1093## ---------------- ##
1094_ASBOX
1095    echo
1096    # The following way of writing the cache mishandles newlines in values,
1097{
1098  (set) 2>&1 |
1099    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1100    *ac_space=\ *)
1101      sed -n \
1102	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1103	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1104      ;;
1105    *)
1106      sed -n \
1107	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1108      ;;
1109    esac;
1110}
1111    echo
1112
1113    cat <<\_ASBOX
1114## ----------------- ##
1115## Output variables. ##
1116## ----------------- ##
1117_ASBOX
1118    echo
1119    for ac_var in $ac_subst_vars
1120    do
1121      eval ac_val=$`echo $ac_var`
1122      echo "$ac_var='"'"'$ac_val'"'"'"
1123    done | sort
1124    echo
1125
1126    if test -n "$ac_subst_files"; then
1127      cat <<\_ASBOX
1128## ------------- ##
1129## Output files. ##
1130## ------------- ##
1131_ASBOX
1132      echo
1133      for ac_var in $ac_subst_files
1134      do
1135	eval ac_val=$`echo $ac_var`
1136	echo "$ac_var='"'"'$ac_val'"'"'"
1137      done | sort
1138      echo
1139    fi
1140
1141    if test -s confdefs.h; then
1142      cat <<\_ASBOX
1143## ----------- ##
1144## confdefs.h. ##
1145## ----------- ##
1146_ASBOX
1147      echo
1148      sed "/^$/d" confdefs.h | sort
1149      echo
1150    fi
1151    test "$ac_signal" != 0 &&
1152      echo "$as_me: caught signal $ac_signal"
1153    echo "$as_me: exit $exit_status"
1154  } >&5
1155  rm -f core *.core &&
1156  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1157    exit $exit_status
1158     ' 0
1159for ac_signal in 1 2 13 15; do
1160  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1161done
1162ac_signal=0
1163
1164# confdefs.h avoids OS command line length limits that DEFS can exceed.
1165rm -rf conftest* confdefs.h
1166# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1167echo >confdefs.h
1168
1169# Predefined preprocessor variables.
1170
1171cat >>confdefs.h <<_ACEOF
1172#define PACKAGE_NAME "$PACKAGE_NAME"
1173_ACEOF
1174
1175
1176cat >>confdefs.h <<_ACEOF
1177#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1178_ACEOF
1179
1180
1181cat >>confdefs.h <<_ACEOF
1182#define PACKAGE_VERSION "$PACKAGE_VERSION"
1183_ACEOF
1184
1185
1186cat >>confdefs.h <<_ACEOF
1187#define PACKAGE_STRING "$PACKAGE_STRING"
1188_ACEOF
1189
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1193_ACEOF
1194
1195
1196# Let the site file select an alternate cache file if it wants to.
1197# Prefer explicitly selected file to automatically selected ones.
1198if test -z "$CONFIG_SITE"; then
1199  if test "x$prefix" != xNONE; then
1200    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1201  else
1202    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1203  fi
1204fi
1205for ac_site_file in $CONFIG_SITE; do
1206  if test -r "$ac_site_file"; then
1207    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1208echo "$as_me: loading site script $ac_site_file" >&6;}
1209    sed 's/^/| /' "$ac_site_file" >&5
1210    . "$ac_site_file"
1211  fi
1212done
1213
1214if test -r "$cache_file"; then
1215  # Some versions of bash will fail to source /dev/null (special
1216  # files actually), so we avoid doing that.
1217  if test -f "$cache_file"; then
1218    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1219echo "$as_me: loading cache $cache_file" >&6;}
1220    case $cache_file in
1221      [\\/]* | ?:[\\/]* ) . $cache_file;;
1222      *)                      . ./$cache_file;;
1223    esac
1224  fi
1225else
1226  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1227echo "$as_me: creating cache $cache_file" >&6;}
1228  >$cache_file
1229fi
1230
1231# Check that the precious variables saved in the cache have kept the same
1232# value.
1233ac_cache_corrupted=false
1234for ac_var in `(set) 2>&1 |
1235	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1236  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1237  eval ac_new_set=\$ac_env_${ac_var}_set
1238  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1239  eval ac_new_val="\$ac_env_${ac_var}_value"
1240  case $ac_old_set,$ac_new_set in
1241    set,)
1242      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1243echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1244      ac_cache_corrupted=: ;;
1245    ,set)
1246      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1247echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1248      ac_cache_corrupted=: ;;
1249    ,);;
1250    *)
1251      if test "x$ac_old_val" != "x$ac_new_val"; then
1252	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1253echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1254	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1255echo "$as_me:   former value:  $ac_old_val" >&2;}
1256	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1257echo "$as_me:   current value: $ac_new_val" >&2;}
1258	ac_cache_corrupted=:
1259      fi;;
1260  esac
1261  # Pass precious variables to config.status.
1262  if test "$ac_new_set" = set; then
1263    case $ac_new_val in
1264    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1266    *) ac_arg=$ac_var=$ac_new_val ;;
1267    esac
1268    case " $ac_configure_args " in
1269      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1270      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1271    esac
1272  fi
1273done
1274if $ac_cache_corrupted; then
1275  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1276echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1277  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1278echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1279   { (exit 1); exit 1; }; }
1280fi
1281
1282ac_ext=c
1283ac_cpp='$CPP $CPPFLAGS'
1284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1286ac_compiler_gnu=$ac_cv_c_compiler_gnu
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315          ac_config_headers="$ac_config_headers config.h"
1316
1317
1318ac_aux_dir=
1319for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320  if test -f $ac_dir/install-sh; then
1321    ac_aux_dir=$ac_dir
1322    ac_install_sh="$ac_aux_dir/install-sh -c"
1323    break
1324  elif test -f $ac_dir/install.sh; then
1325    ac_aux_dir=$ac_dir
1326    ac_install_sh="$ac_aux_dir/install.sh -c"
1327    break
1328  elif test -f $ac_dir/shtool; then
1329    ac_aux_dir=$ac_dir
1330    ac_install_sh="$ac_aux_dir/shtool install -c"
1331    break
1332  fi
1333done
1334if test -z "$ac_aux_dir"; then
1335  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337   { (exit 1); exit 1; }; }
1338fi
1339ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1342
1343# Make sure we can run config.sub.
1344$ac_config_sub sun4 >/dev/null 2>&1 ||
1345  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1346echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1347   { (exit 1); exit 1; }; }
1348
1349echo "$as_me:$LINENO: checking build system type" >&5
1350echo $ECHO_N "checking build system type... $ECHO_C" >&6
1351if test "${ac_cv_build+set}" = set; then
1352  echo $ECHO_N "(cached) $ECHO_C" >&6
1353else
1354  ac_cv_build_alias=$build_alias
1355test -z "$ac_cv_build_alias" &&
1356  ac_cv_build_alias=`$ac_config_guess`
1357test -z "$ac_cv_build_alias" &&
1358  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1359echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1360   { (exit 1); exit 1; }; }
1361ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1362  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1363echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1364   { (exit 1); exit 1; }; }
1365
1366fi
1367echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1368echo "${ECHO_T}$ac_cv_build" >&6
1369build=$ac_cv_build
1370build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1371build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1372build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1373
1374
1375echo "$as_me:$LINENO: checking host system type" >&5
1376echo $ECHO_N "checking host system type... $ECHO_C" >&6
1377if test "${ac_cv_host+set}" = set; then
1378  echo $ECHO_N "(cached) $ECHO_C" >&6
1379else
1380  ac_cv_host_alias=$host_alias
1381test -z "$ac_cv_host_alias" &&
1382  ac_cv_host_alias=$ac_cv_build_alias
1383ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1384  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1385echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1386   { (exit 1); exit 1; }; }
1387
1388fi
1389echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1390echo "${ECHO_T}$ac_cv_host" >&6
1391host=$ac_cv_host
1392host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1393host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1394host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1395
1396
1397am__api_version="1.9"
1398# Find a good install program.  We prefer a C program (faster),
1399# so one script is as good as another.  But avoid the broken or
1400# incompatible versions:
1401# SysV /etc/install, /usr/sbin/install
1402# SunOS /usr/etc/install
1403# IRIX /sbin/install
1404# AIX /bin/install
1405# AmigaOS /C/install, which installs bootblocks on floppy discs
1406# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1407# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1408# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1409# OS/2's system install, which has a completely different semantic
1410# ./install, which can be erroneously created by make from ./install.sh.
1411echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1412echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1413if test -z "$INSTALL"; then
1414if test "${ac_cv_path_install+set}" = set; then
1415  echo $ECHO_N "(cached) $ECHO_C" >&6
1416else
1417  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1418for as_dir in $PATH
1419do
1420  IFS=$as_save_IFS
1421  test -z "$as_dir" && as_dir=.
1422  # Account for people who put trailing slashes in PATH elements.
1423case $as_dir/ in
1424  ./ | .// | /cC/* | \
1425  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1426  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1427  /usr/ucb/* ) ;;
1428  *)
1429    # OSF1 and SCO ODT 3.0 have their own names for install.
1430    # Don't use installbsd from OSF since it installs stuff as root
1431    # by default.
1432    for ac_prog in ginstall scoinst install; do
1433      for ac_exec_ext in '' $ac_executable_extensions; do
1434	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1435	  if test $ac_prog = install &&
1436	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1437	    # AIX install.  It has an incompatible calling convention.
1438	    :
1439	  elif test $ac_prog = install &&
1440	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1441	    # program-specific install script used by HP pwplus--don't use.
1442	    :
1443	  else
1444	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1445	    break 3
1446	  fi
1447	fi
1448      done
1449    done
1450    ;;
1451esac
1452done
1453
1454
1455fi
1456  if test "${ac_cv_path_install+set}" = set; then
1457    INSTALL=$ac_cv_path_install
1458  else
1459    # As a last resort, use the slow shell script.  We don't cache a
1460    # path for INSTALL within a source directory, because that will
1461    # break other packages using the cache if that directory is
1462    # removed, or if the path is relative.
1463    INSTALL=$ac_install_sh
1464  fi
1465fi
1466echo "$as_me:$LINENO: result: $INSTALL" >&5
1467echo "${ECHO_T}$INSTALL" >&6
1468
1469# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1470# It thinks the first close brace ends the variable substitution.
1471test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1472
1473test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1474
1475test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1476
1477echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1478echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1479# Just in case
1480sleep 1
1481echo timestamp > conftest.file
1482# Do `set' in a subshell so we don't clobber the current shell's
1483# arguments.  Must try -L first in case configure is actually a
1484# symlink; some systems play weird games with the mod time of symlinks
1485# (eg FreeBSD returns the mod time of the symlink's containing
1486# directory).
1487if (
1488   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1489   if test "$*" = "X"; then
1490      # -L didn't work.
1491      set X `ls -t $srcdir/configure conftest.file`
1492   fi
1493   rm -f conftest.file
1494   if test "$*" != "X $srcdir/configure conftest.file" \
1495      && test "$*" != "X conftest.file $srcdir/configure"; then
1496
1497      # If neither matched, then we have a broken ls.  This can happen
1498      # if, for instance, CONFIG_SHELL is bash and it inherits a
1499      # broken ls alias from the environment.  This has actually
1500      # happened.  Such a system could not be considered "sane".
1501      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1502alias in your environment" >&5
1503echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1504alias in your environment" >&2;}
1505   { (exit 1); exit 1; }; }
1506   fi
1507
1508   test "$2" = conftest.file
1509   )
1510then
1511   # Ok.
1512   :
1513else
1514   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1515Check your system clock" >&5
1516echo "$as_me: error: newly created file is older than distributed files!
1517Check your system clock" >&2;}
1518   { (exit 1); exit 1; }; }
1519fi
1520echo "$as_me:$LINENO: result: yes" >&5
1521echo "${ECHO_T}yes" >&6
1522test "$program_prefix" != NONE &&
1523  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1524# Use a double $ so make ignores it.
1525test "$program_suffix" != NONE &&
1526  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1527# Double any \ or $.  echo might interpret backslashes.
1528# By default was `s,x,x', remove it if useless.
1529cat <<\_ACEOF >conftest.sed
1530s/[\\$]/&&/g;s/;s,x,x,$//
1531_ACEOF
1532program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1533rm conftest.sed
1534
1535# expand $ac_aux_dir to an absolute path
1536am_aux_dir=`cd $ac_aux_dir && pwd`
1537
1538test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1539# Use eval to expand $SHELL
1540if eval "$MISSING --run true"; then
1541  am_missing_run="$MISSING --run "
1542else
1543  am_missing_run=
1544  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1545echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1546fi
1547
1548if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1549  # We used to keeping the `.' as first argument, in order to
1550  # allow $(mkdir_p) to be used without argument.  As in
1551  #   $(mkdir_p) $(somedir)
1552  # where $(somedir) is conditionally defined.  However this is wrong
1553  # for two reasons:
1554  #  1. if the package is installed by a user who cannot write `.'
1555  #     make install will fail,
1556  #  2. the above comment should most certainly read
1557  #     $(mkdir_p) $(DESTDIR)$(somedir)
1558  #     so it does not work when $(somedir) is undefined and
1559  #     $(DESTDIR) is not.
1560  #  To support the latter case, we have to write
1561  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1562  #  so the `.' trick is pointless.
1563  mkdir_p='mkdir -p --'
1564else
1565  # On NextStep and OpenStep, the `mkdir' command does not
1566  # recognize any option.  It will interpret all options as
1567  # directories to create, and then abort because `.' already
1568  # exists.
1569  for d in ./-p ./--version;
1570  do
1571    test -d $d && rmdir $d
1572  done
1573  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1574  if test -f "$ac_aux_dir/mkinstalldirs"; then
1575    mkdir_p='$(mkinstalldirs)'
1576  else
1577    mkdir_p='$(install_sh) -d'
1578  fi
1579fi
1580
1581for ac_prog in gawk mawk nawk awk
1582do
1583  # Extract the first word of "$ac_prog", so it can be a program name with args.
1584set dummy $ac_prog; ac_word=$2
1585echo "$as_me:$LINENO: checking for $ac_word" >&5
1586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587if test "${ac_cv_prog_AWK+set}" = set; then
1588  echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590  if test -n "$AWK"; then
1591  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1592else
1593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594for as_dir in $PATH
1595do
1596  IFS=$as_save_IFS
1597  test -z "$as_dir" && as_dir=.
1598  for ac_exec_ext in '' $ac_executable_extensions; do
1599  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600    ac_cv_prog_AWK="$ac_prog"
1601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602    break 2
1603  fi
1604done
1605done
1606
1607fi
1608fi
1609AWK=$ac_cv_prog_AWK
1610if test -n "$AWK"; then
1611  echo "$as_me:$LINENO: result: $AWK" >&5
1612echo "${ECHO_T}$AWK" >&6
1613else
1614  echo "$as_me:$LINENO: result: no" >&5
1615echo "${ECHO_T}no" >&6
1616fi
1617
1618  test -n "$AWK" && break
1619done
1620
1621echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1622echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1623set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1624if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1625  echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627  cat >conftest.make <<\_ACEOF
1628all:
1629	@echo 'ac_maketemp="$(MAKE)"'
1630_ACEOF
1631# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1632eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1633if test -n "$ac_maketemp"; then
1634  eval ac_cv_prog_make_${ac_make}_set=yes
1635else
1636  eval ac_cv_prog_make_${ac_make}_set=no
1637fi
1638rm -f conftest.make
1639fi
1640if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1641  echo "$as_me:$LINENO: result: yes" >&5
1642echo "${ECHO_T}yes" >&6
1643  SET_MAKE=
1644else
1645  echo "$as_me:$LINENO: result: no" >&5
1646echo "${ECHO_T}no" >&6
1647  SET_MAKE="MAKE=${MAKE-make}"
1648fi
1649
1650rm -rf .tst 2>/dev/null
1651mkdir .tst 2>/dev/null
1652if test -d .tst; then
1653  am__leading_dot=.
1654else
1655  am__leading_dot=_
1656fi
1657rmdir .tst 2>/dev/null
1658
1659# test to see if srcdir already configured
1660if test "`cd $srcdir && pwd`" != "`pwd`" &&
1661   test -f $srcdir/config.status; then
1662  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1663echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1664   { (exit 1); exit 1; }; }
1665fi
1666
1667# test whether we have cygpath
1668if test -z "$CYGPATH_W"; then
1669  if (cygpath --version) >/dev/null 2>/dev/null; then
1670    CYGPATH_W='cygpath -w'
1671  else
1672    CYGPATH_W=echo
1673  fi
1674fi
1675
1676
1677# Define the identity of the package.
1678 PACKAGE='libpng'
1679 VERSION='1.2.8'
1680
1681
1682cat >>confdefs.h <<_ACEOF
1683#define PACKAGE "$PACKAGE"
1684_ACEOF
1685
1686
1687cat >>confdefs.h <<_ACEOF
1688#define VERSION "$VERSION"
1689_ACEOF
1690
1691# Some tools Automake needs.
1692
1693ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1694
1695
1696AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1697
1698
1699AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1700
1701
1702AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1703
1704
1705MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1706
1707install_sh=${install_sh-"$am_aux_dir/install-sh"}
1708
1709# Installed binaries are usually stripped using `strip' when the user
1710# run `make install-strip'.  However `strip' might not be the right
1711# tool to use in cross-compilation environments, therefore Automake
1712# will honor the `STRIP' environment variable to overrule this program.
1713if test "$cross_compiling" != no; then
1714  if test -n "$ac_tool_prefix"; then
1715  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1716set dummy ${ac_tool_prefix}strip; ac_word=$2
1717echo "$as_me:$LINENO: checking for $ac_word" >&5
1718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719if test "${ac_cv_prog_STRIP+set}" = set; then
1720  echo $ECHO_N "(cached) $ECHO_C" >&6
1721else
1722  if test -n "$STRIP"; then
1723  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1724else
1725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726for as_dir in $PATH
1727do
1728  IFS=$as_save_IFS
1729  test -z "$as_dir" && as_dir=.
1730  for ac_exec_ext in '' $ac_executable_extensions; do
1731  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734    break 2
1735  fi
1736done
1737done
1738
1739fi
1740fi
1741STRIP=$ac_cv_prog_STRIP
1742if test -n "$STRIP"; then
1743  echo "$as_me:$LINENO: result: $STRIP" >&5
1744echo "${ECHO_T}$STRIP" >&6
1745else
1746  echo "$as_me:$LINENO: result: no" >&5
1747echo "${ECHO_T}no" >&6
1748fi
1749
1750fi
1751if test -z "$ac_cv_prog_STRIP"; then
1752  ac_ct_STRIP=$STRIP
1753  # Extract the first word of "strip", so it can be a program name with args.
1754set dummy strip; ac_word=$2
1755echo "$as_me:$LINENO: checking for $ac_word" >&5
1756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1758  echo $ECHO_N "(cached) $ECHO_C" >&6
1759else
1760  if test -n "$ac_ct_STRIP"; then
1761  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1762else
1763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764for as_dir in $PATH
1765do
1766  IFS=$as_save_IFS
1767  test -z "$as_dir" && as_dir=.
1768  for ac_exec_ext in '' $ac_executable_extensions; do
1769  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770    ac_cv_prog_ac_ct_STRIP="strip"
1771    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772    break 2
1773  fi
1774done
1775done
1776
1777  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1778fi
1779fi
1780ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1781if test -n "$ac_ct_STRIP"; then
1782  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1783echo "${ECHO_T}$ac_ct_STRIP" >&6
1784else
1785  echo "$as_me:$LINENO: result: no" >&5
1786echo "${ECHO_T}no" >&6
1787fi
1788
1789  STRIP=$ac_ct_STRIP
1790else
1791  STRIP="$ac_cv_prog_STRIP"
1792fi
1793
1794fi
1795INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1796
1797# We need awk for the "check" target.  The system "awk" is bad on
1798# some platforms.
1799# Always define AMTAR for backward compatibility.
1800
1801AMTAR=${AMTAR-"${am_missing_run}tar"}
1802
1803am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1804
1805
1806
1807
1808
1809echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1810echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1811    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1812if test "${enable_maintainer_mode+set}" = set; then
1813  enableval="$enable_maintainer_mode"
1814  USE_MAINTAINER_MODE=$enableval
1815else
1816  USE_MAINTAINER_MODE=no
1817fi;
1818  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1819echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1820
1821
1822if test $USE_MAINTAINER_MODE = yes; then
1823  MAINTAINER_MODE_TRUE=
1824  MAINTAINER_MODE_FALSE='#'
1825else
1826  MAINTAINER_MODE_TRUE='#'
1827  MAINTAINER_MODE_FALSE=
1828fi
1829
1830  MAINT=$MAINTAINER_MODE_TRUE
1831
1832
1833
1834# Checks for programs.
1835# Inits compiler flags with -O if none given.
1836CFLAGS=${CFLAGS:--O}
1837ac_ext=c
1838ac_cpp='$CPP $CPPFLAGS'
1839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1841ac_compiler_gnu=$ac_cv_c_compiler_gnu
1842if test -n "$ac_tool_prefix"; then
1843  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1844set dummy ${ac_tool_prefix}gcc; ac_word=$2
1845echo "$as_me:$LINENO: checking for $ac_word" >&5
1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847if test "${ac_cv_prog_CC+set}" = set; then
1848  echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850  if test -n "$CC"; then
1851  ac_cv_prog_CC="$CC" # Let the user override the test.
1852else
1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856  IFS=$as_save_IFS
1857  test -z "$as_dir" && as_dir=.
1858  for ac_exec_ext in '' $ac_executable_extensions; do
1859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862    break 2
1863  fi
1864done
1865done
1866
1867fi
1868fi
1869CC=$ac_cv_prog_CC
1870if test -n "$CC"; then
1871  echo "$as_me:$LINENO: result: $CC" >&5
1872echo "${ECHO_T}$CC" >&6
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878fi
1879if test -z "$ac_cv_prog_CC"; then
1880  ac_ct_CC=$CC
1881  # Extract the first word of "gcc", so it can be a program name with args.
1882set dummy gcc; ac_word=$2
1883echo "$as_me:$LINENO: checking for $ac_word" >&5
1884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1886  echo $ECHO_N "(cached) $ECHO_C" >&6
1887else
1888  if test -n "$ac_ct_CC"; then
1889  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1890else
1891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892for as_dir in $PATH
1893do
1894  IFS=$as_save_IFS
1895  test -z "$as_dir" && as_dir=.
1896  for ac_exec_ext in '' $ac_executable_extensions; do
1897  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898    ac_cv_prog_ac_ct_CC="gcc"
1899    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900    break 2
1901  fi
1902done
1903done
1904
1905fi
1906fi
1907ac_ct_CC=$ac_cv_prog_ac_ct_CC
1908if test -n "$ac_ct_CC"; then
1909  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1910echo "${ECHO_T}$ac_ct_CC" >&6
1911else
1912  echo "$as_me:$LINENO: result: no" >&5
1913echo "${ECHO_T}no" >&6
1914fi
1915
1916  CC=$ac_ct_CC
1917else
1918  CC="$ac_cv_prog_CC"
1919fi
1920
1921if test -z "$CC"; then
1922  if test -n "$ac_tool_prefix"; then
1923  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1924set dummy ${ac_tool_prefix}cc; ac_word=$2
1925echo "$as_me:$LINENO: checking for $ac_word" >&5
1926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927if test "${ac_cv_prog_CC+set}" = set; then
1928  echo $ECHO_N "(cached) $ECHO_C" >&6
1929else
1930  if test -n "$CC"; then
1931  ac_cv_prog_CC="$CC" # Let the user override the test.
1932else
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936  IFS=$as_save_IFS
1937  test -z "$as_dir" && as_dir=.
1938  for ac_exec_ext in '' $ac_executable_extensions; do
1939  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940    ac_cv_prog_CC="${ac_tool_prefix}cc"
1941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942    break 2
1943  fi
1944done
1945done
1946
1947fi
1948fi
1949CC=$ac_cv_prog_CC
1950if test -n "$CC"; then
1951  echo "$as_me:$LINENO: result: $CC" >&5
1952echo "${ECHO_T}$CC" >&6
1953else
1954  echo "$as_me:$LINENO: result: no" >&5
1955echo "${ECHO_T}no" >&6
1956fi
1957
1958fi
1959if test -z "$ac_cv_prog_CC"; then
1960  ac_ct_CC=$CC
1961  # Extract the first word of "cc", so it can be a program name with args.
1962set dummy cc; ac_word=$2
1963echo "$as_me:$LINENO: checking for $ac_word" >&5
1964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1966  echo $ECHO_N "(cached) $ECHO_C" >&6
1967else
1968  if test -n "$ac_ct_CC"; then
1969  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1970else
1971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972for as_dir in $PATH
1973do
1974  IFS=$as_save_IFS
1975  test -z "$as_dir" && as_dir=.
1976  for ac_exec_ext in '' $ac_executable_extensions; do
1977  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978    ac_cv_prog_ac_ct_CC="cc"
1979    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980    break 2
1981  fi
1982done
1983done
1984
1985fi
1986fi
1987ac_ct_CC=$ac_cv_prog_ac_ct_CC
1988if test -n "$ac_ct_CC"; then
1989  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1990echo "${ECHO_T}$ac_ct_CC" >&6
1991else
1992  echo "$as_me:$LINENO: result: no" >&5
1993echo "${ECHO_T}no" >&6
1994fi
1995
1996  CC=$ac_ct_CC
1997else
1998  CC="$ac_cv_prog_CC"
1999fi
2000
2001fi
2002if test -z "$CC"; then
2003  # Extract the first word of "cc", so it can be a program name with args.
2004set dummy cc; ac_word=$2
2005echo "$as_me:$LINENO: checking for $ac_word" >&5
2006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007if test "${ac_cv_prog_CC+set}" = set; then
2008  echo $ECHO_N "(cached) $ECHO_C" >&6
2009else
2010  if test -n "$CC"; then
2011  ac_cv_prog_CC="$CC" # Let the user override the test.
2012else
2013  ac_prog_rejected=no
2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015for as_dir in $PATH
2016do
2017  IFS=$as_save_IFS
2018  test -z "$as_dir" && as_dir=.
2019  for ac_exec_ext in '' $ac_executable_extensions; do
2020  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2022       ac_prog_rejected=yes
2023       continue
2024     fi
2025    ac_cv_prog_CC="cc"
2026    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027    break 2
2028  fi
2029done
2030done
2031
2032if test $ac_prog_rejected = yes; then
2033  # We found a bogon in the path, so make sure we never use it.
2034  set dummy $ac_cv_prog_CC
2035  shift
2036  if test $# != 0; then
2037    # We chose a different compiler from the bogus one.
2038    # However, it has the same basename, so the bogon will be chosen
2039    # first if we set CC to just the basename; use the full file name.
2040    shift
2041    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2042  fi
2043fi
2044fi
2045fi
2046CC=$ac_cv_prog_CC
2047if test -n "$CC"; then
2048  echo "$as_me:$LINENO: result: $CC" >&5
2049echo "${ECHO_T}$CC" >&6
2050else
2051  echo "$as_me:$LINENO: result: no" >&5
2052echo "${ECHO_T}no" >&6
2053fi
2054
2055fi
2056if test -z "$CC"; then
2057  if test -n "$ac_tool_prefix"; then
2058  for ac_prog in cl
2059  do
2060    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2061set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2062echo "$as_me:$LINENO: checking for $ac_word" >&5
2063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2064if test "${ac_cv_prog_CC+set}" = set; then
2065  echo $ECHO_N "(cached) $ECHO_C" >&6
2066else
2067  if test -n "$CC"; then
2068  ac_cv_prog_CC="$CC" # Let the user override the test.
2069else
2070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071for as_dir in $PATH
2072do
2073  IFS=$as_save_IFS
2074  test -z "$as_dir" && as_dir=.
2075  for ac_exec_ext in '' $ac_executable_extensions; do
2076  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2078    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079    break 2
2080  fi
2081done
2082done
2083
2084fi
2085fi
2086CC=$ac_cv_prog_CC
2087if test -n "$CC"; then
2088  echo "$as_me:$LINENO: result: $CC" >&5
2089echo "${ECHO_T}$CC" >&6
2090else
2091  echo "$as_me:$LINENO: result: no" >&5
2092echo "${ECHO_T}no" >&6
2093fi
2094
2095    test -n "$CC" && break
2096  done
2097fi
2098if test -z "$CC"; then
2099  ac_ct_CC=$CC
2100  for ac_prog in cl
2101do
2102  # Extract the first word of "$ac_prog", so it can be a program name with args.
2103set dummy $ac_prog; ac_word=$2
2104echo "$as_me:$LINENO: checking for $ac_word" >&5
2105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2107  echo $ECHO_N "(cached) $ECHO_C" >&6
2108else
2109  if test -n "$ac_ct_CC"; then
2110  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2111else
2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113for as_dir in $PATH
2114do
2115  IFS=$as_save_IFS
2116  test -z "$as_dir" && as_dir=.
2117  for ac_exec_ext in '' $ac_executable_extensions; do
2118  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119    ac_cv_prog_ac_ct_CC="$ac_prog"
2120    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121    break 2
2122  fi
2123done
2124done
2125
2126fi
2127fi
2128ac_ct_CC=$ac_cv_prog_ac_ct_CC
2129if test -n "$ac_ct_CC"; then
2130  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2131echo "${ECHO_T}$ac_ct_CC" >&6
2132else
2133  echo "$as_me:$LINENO: result: no" >&5
2134echo "${ECHO_T}no" >&6
2135fi
2136
2137  test -n "$ac_ct_CC" && break
2138done
2139
2140  CC=$ac_ct_CC
2141fi
2142
2143fi
2144
2145
2146test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2147See \`config.log' for more details." >&5
2148echo "$as_me: error: no acceptable C compiler found in \$PATH
2149See \`config.log' for more details." >&2;}
2150   { (exit 1); exit 1; }; }
2151
2152# Provide some information about the compiler.
2153echo "$as_me:$LINENO:" \
2154     "checking for C compiler version" >&5
2155ac_compiler=`set X $ac_compile; echo $2`
2156{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2157  (eval $ac_compiler --version </dev/null >&5) 2>&5
2158  ac_status=$?
2159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160  (exit $ac_status); }
2161{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2162  (eval $ac_compiler -v </dev/null >&5) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }
2166{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2167  (eval $ac_compiler -V </dev/null >&5) 2>&5
2168  ac_status=$?
2169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170  (exit $ac_status); }
2171
2172cat >conftest.$ac_ext <<_ACEOF
2173/* confdefs.h.  */
2174_ACEOF
2175cat confdefs.h >>conftest.$ac_ext
2176cat >>conftest.$ac_ext <<_ACEOF
2177/* end confdefs.h.  */
2178
2179int
2180main ()
2181{
2182
2183  ;
2184  return 0;
2185}
2186_ACEOF
2187ac_clean_files_save=$ac_clean_files
2188ac_clean_files="$ac_clean_files a.out a.exe b.out"
2189# Try to create an executable without -o first, disregard a.out.
2190# It will help us diagnose broken compilers, and finding out an intuition
2191# of exeext.
2192echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2193echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2194ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2195if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2196  (eval $ac_link_default) 2>&5
2197  ac_status=$?
2198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199  (exit $ac_status); }; then
2200  # Find the output, starting from the most likely.  This scheme is
2201# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2202# resort.
2203
2204# Be careful to initialize this variable, since it used to be cached.
2205# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2206ac_cv_exeext=
2207# b.out is created by i960 compilers.
2208for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2209do
2210  test -f "$ac_file" || continue
2211  case $ac_file in
2212    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2213	;;
2214    conftest.$ac_ext )
2215	# This is the source file.
2216	;;
2217    [ab].out )
2218	# We found the default executable, but exeext='' is most
2219	# certainly right.
2220	break;;
2221    *.* )
2222	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2223	# FIXME: I believe we export ac_cv_exeext for Libtool,
2224	# but it would be cool to find out if it's true.  Does anybody
2225	# maintain Libtool? --akim.
2226	export ac_cv_exeext
2227	break;;
2228    * )
2229	break;;
2230  esac
2231done
2232else
2233  echo "$as_me: failed program was:" >&5
2234sed 's/^/| /' conftest.$ac_ext >&5
2235
2236{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2237See \`config.log' for more details." >&5
2238echo "$as_me: error: C compiler cannot create executables
2239See \`config.log' for more details." >&2;}
2240   { (exit 77); exit 77; }; }
2241fi
2242
2243ac_exeext=$ac_cv_exeext
2244echo "$as_me:$LINENO: result: $ac_file" >&5
2245echo "${ECHO_T}$ac_file" >&6
2246
2247# Check the compiler produces executables we can run.  If not, either
2248# the compiler is broken, or we cross compile.
2249echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2250echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2251# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2252# If not cross compiling, check that we can run a simple program.
2253if test "$cross_compiling" != yes; then
2254  if { ac_try='./$ac_file'
2255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256  (eval $ac_try) 2>&5
2257  ac_status=$?
2258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259  (exit $ac_status); }; }; then
2260    cross_compiling=no
2261  else
2262    if test "$cross_compiling" = maybe; then
2263	cross_compiling=yes
2264    else
2265	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2266If you meant to cross compile, use \`--host'.
2267See \`config.log' for more details." >&5
2268echo "$as_me: error: cannot run C compiled programs.
2269If you meant to cross compile, use \`--host'.
2270See \`config.log' for more details." >&2;}
2271   { (exit 1); exit 1; }; }
2272    fi
2273  fi
2274fi
2275echo "$as_me:$LINENO: result: yes" >&5
2276echo "${ECHO_T}yes" >&6
2277
2278rm -f a.out a.exe conftest$ac_cv_exeext b.out
2279ac_clean_files=$ac_clean_files_save
2280# Check the compiler produces executables we can run.  If not, either
2281# the compiler is broken, or we cross compile.
2282echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2283echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2284echo "$as_me:$LINENO: result: $cross_compiling" >&5
2285echo "${ECHO_T}$cross_compiling" >&6
2286
2287echo "$as_me:$LINENO: checking for suffix of executables" >&5
2288echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2290  (eval $ac_link) 2>&5
2291  ac_status=$?
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); }; then
2294  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2295# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2296# work properly (i.e., refer to `conftest.exe'), while it won't with
2297# `rm'.
2298for ac_file in conftest.exe conftest conftest.*; do
2299  test -f "$ac_file" || continue
2300  case $ac_file in
2301    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2302    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2303	  export ac_cv_exeext
2304	  break;;
2305    * ) break;;
2306  esac
2307done
2308else
2309  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2310See \`config.log' for more details." >&5
2311echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2312See \`config.log' for more details." >&2;}
2313   { (exit 1); exit 1; }; }
2314fi
2315
2316rm -f conftest$ac_cv_exeext
2317echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2318echo "${ECHO_T}$ac_cv_exeext" >&6
2319
2320rm -f conftest.$ac_ext
2321EXEEXT=$ac_cv_exeext
2322ac_exeext=$EXEEXT
2323echo "$as_me:$LINENO: checking for suffix of object files" >&5
2324echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2325if test "${ac_cv_objext+set}" = set; then
2326  echo $ECHO_N "(cached) $ECHO_C" >&6
2327else
2328  cat >conftest.$ac_ext <<_ACEOF
2329/* confdefs.h.  */
2330_ACEOF
2331cat confdefs.h >>conftest.$ac_ext
2332cat >>conftest.$ac_ext <<_ACEOF
2333/* end confdefs.h.  */
2334
2335int
2336main ()
2337{
2338
2339  ;
2340  return 0;
2341}
2342_ACEOF
2343rm -f conftest.o conftest.obj
2344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345  (eval $ac_compile) 2>&5
2346  ac_status=$?
2347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348  (exit $ac_status); }; then
2349  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2350  case $ac_file in
2351    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2352    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2353       break;;
2354  esac
2355done
2356else
2357  echo "$as_me: failed program was:" >&5
2358sed 's/^/| /' conftest.$ac_ext >&5
2359
2360{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2361See \`config.log' for more details." >&5
2362echo "$as_me: error: cannot compute suffix of object files: cannot compile
2363See \`config.log' for more details." >&2;}
2364   { (exit 1); exit 1; }; }
2365fi
2366
2367rm -f conftest.$ac_cv_objext conftest.$ac_ext
2368fi
2369echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2370echo "${ECHO_T}$ac_cv_objext" >&6
2371OBJEXT=$ac_cv_objext
2372ac_objext=$OBJEXT
2373echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2374echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2375if test "${ac_cv_c_compiler_gnu+set}" = set; then
2376  echo $ECHO_N "(cached) $ECHO_C" >&6
2377else
2378  cat >conftest.$ac_ext <<_ACEOF
2379/* confdefs.h.  */
2380_ACEOF
2381cat confdefs.h >>conftest.$ac_ext
2382cat >>conftest.$ac_ext <<_ACEOF
2383/* end confdefs.h.  */
2384
2385int
2386main ()
2387{
2388#ifndef __GNUC__
2389       choke me
2390#endif
2391
2392  ;
2393  return 0;
2394}
2395_ACEOF
2396rm -f conftest.$ac_objext
2397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398  (eval $ac_compile) 2>conftest.er1
2399  ac_status=$?
2400  grep -v '^ *+' conftest.er1 >conftest.err
2401  rm -f conftest.er1
2402  cat conftest.err >&5
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); } &&
2405	 { ac_try='test -z "$ac_c_werror_flag"
2406			 || test ! -s conftest.err'
2407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408  (eval $ac_try) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; } &&
2412	 { ac_try='test -s conftest.$ac_objext'
2413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414  (eval $ac_try) 2>&5
2415  ac_status=$?
2416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417  (exit $ac_status); }; }; then
2418  ac_compiler_gnu=yes
2419else
2420  echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
2423ac_compiler_gnu=no
2424fi
2425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2426ac_cv_c_compiler_gnu=$ac_compiler_gnu
2427
2428fi
2429echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2430echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2431GCC=`test $ac_compiler_gnu = yes && echo yes`
2432ac_test_CFLAGS=${CFLAGS+set}
2433ac_save_CFLAGS=$CFLAGS
2434CFLAGS="-g"
2435echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2436echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2437if test "${ac_cv_prog_cc_g+set}" = set; then
2438  echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440  cat >conftest.$ac_ext <<_ACEOF
2441/* confdefs.h.  */
2442_ACEOF
2443cat confdefs.h >>conftest.$ac_ext
2444cat >>conftest.$ac_ext <<_ACEOF
2445/* end confdefs.h.  */
2446
2447int
2448main ()
2449{
2450
2451  ;
2452  return 0;
2453}
2454_ACEOF
2455rm -f conftest.$ac_objext
2456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457  (eval $ac_compile) 2>conftest.er1
2458  ac_status=$?
2459  grep -v '^ *+' conftest.er1 >conftest.err
2460  rm -f conftest.er1
2461  cat conftest.err >&5
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); } &&
2464	 { ac_try='test -z "$ac_c_werror_flag"
2465			 || test ! -s conftest.err'
2466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467  (eval $ac_try) 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; } &&
2471	 { ac_try='test -s conftest.$ac_objext'
2472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473  (eval $ac_try) 2>&5
2474  ac_status=$?
2475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476  (exit $ac_status); }; }; then
2477  ac_cv_prog_cc_g=yes
2478else
2479  echo "$as_me: failed program was:" >&5
2480sed 's/^/| /' conftest.$ac_ext >&5
2481
2482ac_cv_prog_cc_g=no
2483fi
2484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485fi
2486echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2487echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2488if test "$ac_test_CFLAGS" = set; then
2489  CFLAGS=$ac_save_CFLAGS
2490elif test $ac_cv_prog_cc_g = yes; then
2491  if test "$GCC" = yes; then
2492    CFLAGS="-g -O2"
2493  else
2494    CFLAGS="-g"
2495  fi
2496else
2497  if test "$GCC" = yes; then
2498    CFLAGS="-O2"
2499  else
2500    CFLAGS=
2501  fi
2502fi
2503echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2504echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2505if test "${ac_cv_prog_cc_stdc+set}" = set; then
2506  echo $ECHO_N "(cached) $ECHO_C" >&6
2507else
2508  ac_cv_prog_cc_stdc=no
2509ac_save_CC=$CC
2510cat >conftest.$ac_ext <<_ACEOF
2511/* confdefs.h.  */
2512_ACEOF
2513cat confdefs.h >>conftest.$ac_ext
2514cat >>conftest.$ac_ext <<_ACEOF
2515/* end confdefs.h.  */
2516#include <stdarg.h>
2517#include <stdio.h>
2518#include <sys/types.h>
2519#include <sys/stat.h>
2520/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2521struct buf { int x; };
2522FILE * (*rcsopen) (struct buf *, struct stat *, int);
2523static char *e (p, i)
2524     char **p;
2525     int i;
2526{
2527  return p[i];
2528}
2529static char *f (char * (*g) (char **, int), char **p, ...)
2530{
2531  char *s;
2532  va_list v;
2533  va_start (v,p);
2534  s = g (p, va_arg (v,int));
2535  va_end (v);
2536  return s;
2537}
2538
2539/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2540   function prototypes and stuff, but not '\xHH' hex character constants.
2541   These don't provoke an error unfortunately, instead are silently treated
2542   as 'x'.  The following induces an error, until -std1 is added to get
2543   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2544   array size at least.  It's necessary to write '\x00'==0 to get something
2545   that's true only with -std1.  */
2546int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2547
2548int test (int i, double x);
2549struct s1 {int (*f) (int a);};
2550struct s2 {int (*f) (double a);};
2551int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2552int argc;
2553char **argv;
2554int
2555main ()
2556{
2557return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2558  ;
2559  return 0;
2560}
2561_ACEOF
2562# Don't try gcc -ansi; that turns off useful extensions and
2563# breaks some systems' header files.
2564# AIX			-qlanglvl=ansi
2565# Ultrix and OSF/1	-std1
2566# HP-UX 10.20 and later	-Ae
2567# HP-UX older versions	-Aa -D_HPUX_SOURCE
2568# SVR4			-Xc -D__EXTENSIONS__
2569for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2570do
2571  CC="$ac_save_CC $ac_arg"
2572  rm -f conftest.$ac_objext
2573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574  (eval $ac_compile) 2>conftest.er1
2575  ac_status=$?
2576  grep -v '^ *+' conftest.er1 >conftest.err
2577  rm -f conftest.er1
2578  cat conftest.err >&5
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); } &&
2581	 { ac_try='test -z "$ac_c_werror_flag"
2582			 || test ! -s conftest.err'
2583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584  (eval $ac_try) 2>&5
2585  ac_status=$?
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); }; } &&
2588	 { ac_try='test -s conftest.$ac_objext'
2589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590  (eval $ac_try) 2>&5
2591  ac_status=$?
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); }; }; then
2594  ac_cv_prog_cc_stdc=$ac_arg
2595break
2596else
2597  echo "$as_me: failed program was:" >&5
2598sed 's/^/| /' conftest.$ac_ext >&5
2599
2600fi
2601rm -f conftest.err conftest.$ac_objext
2602done
2603rm -f conftest.$ac_ext conftest.$ac_objext
2604CC=$ac_save_CC
2605
2606fi
2607
2608case "x$ac_cv_prog_cc_stdc" in
2609  x|xno)
2610    echo "$as_me:$LINENO: result: none needed" >&5
2611echo "${ECHO_T}none needed" >&6 ;;
2612  *)
2613    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2614echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2615    CC="$CC $ac_cv_prog_cc_stdc" ;;
2616esac
2617
2618# Some people use a C++ compiler to compile C.  Since we use `exit',
2619# in C++ we need to declare it.  In case someone uses the same compiler
2620# for both compiling C and C++ we need to have the C++ compiler decide
2621# the declaration of exit, since it's the most demanding environment.
2622cat >conftest.$ac_ext <<_ACEOF
2623#ifndef __cplusplus
2624  choke me
2625#endif
2626_ACEOF
2627rm -f conftest.$ac_objext
2628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629  (eval $ac_compile) 2>conftest.er1
2630  ac_status=$?
2631  grep -v '^ *+' conftest.er1 >conftest.err
2632  rm -f conftest.er1
2633  cat conftest.err >&5
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); } &&
2636	 { ac_try='test -z "$ac_c_werror_flag"
2637			 || test ! -s conftest.err'
2638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639  (eval $ac_try) 2>&5
2640  ac_status=$?
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); }; } &&
2643	 { ac_try='test -s conftest.$ac_objext'
2644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645  (eval $ac_try) 2>&5
2646  ac_status=$?
2647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648  (exit $ac_status); }; }; then
2649  for ac_declaration in \
2650   '' \
2651   'extern "C" void std::exit (int) throw (); using std::exit;' \
2652   'extern "C" void std::exit (int); using std::exit;' \
2653   'extern "C" void exit (int) throw ();' \
2654   'extern "C" void exit (int);' \
2655   'void exit (int);'
2656do
2657  cat >conftest.$ac_ext <<_ACEOF
2658/* confdefs.h.  */
2659_ACEOF
2660cat confdefs.h >>conftest.$ac_ext
2661cat >>conftest.$ac_ext <<_ACEOF
2662/* end confdefs.h.  */
2663$ac_declaration
2664#include <stdlib.h>
2665int
2666main ()
2667{
2668exit (42);
2669  ;
2670  return 0;
2671}
2672_ACEOF
2673rm -f conftest.$ac_objext
2674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675  (eval $ac_compile) 2>conftest.er1
2676  ac_status=$?
2677  grep -v '^ *+' conftest.er1 >conftest.err
2678  rm -f conftest.er1
2679  cat conftest.err >&5
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); } &&
2682	 { ac_try='test -z "$ac_c_werror_flag"
2683			 || test ! -s conftest.err'
2684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685  (eval $ac_try) 2>&5
2686  ac_status=$?
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); }; } &&
2689	 { ac_try='test -s conftest.$ac_objext'
2690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691  (eval $ac_try) 2>&5
2692  ac_status=$?
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); }; }; then
2695  :
2696else
2697  echo "$as_me: failed program was:" >&5
2698sed 's/^/| /' conftest.$ac_ext >&5
2699
2700continue
2701fi
2702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2703  cat >conftest.$ac_ext <<_ACEOF
2704/* confdefs.h.  */
2705_ACEOF
2706cat confdefs.h >>conftest.$ac_ext
2707cat >>conftest.$ac_ext <<_ACEOF
2708/* end confdefs.h.  */
2709$ac_declaration
2710int
2711main ()
2712{
2713exit (42);
2714  ;
2715  return 0;
2716}
2717_ACEOF
2718rm -f conftest.$ac_objext
2719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720  (eval $ac_compile) 2>conftest.er1
2721  ac_status=$?
2722  grep -v '^ *+' conftest.er1 >conftest.err
2723  rm -f conftest.er1
2724  cat conftest.err >&5
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); } &&
2727	 { ac_try='test -z "$ac_c_werror_flag"
2728			 || test ! -s conftest.err'
2729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730  (eval $ac_try) 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); }; } &&
2734	 { ac_try='test -s conftest.$ac_objext'
2735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736  (eval $ac_try) 2>&5
2737  ac_status=$?
2738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739  (exit $ac_status); }; }; then
2740  break
2741else
2742  echo "$as_me: failed program was:" >&5
2743sed 's/^/| /' conftest.$ac_ext >&5
2744
2745fi
2746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2747done
2748rm -f conftest*
2749if test -n "$ac_declaration"; then
2750  echo '#ifdef __cplusplus' >>confdefs.h
2751  echo $ac_declaration      >>confdefs.h
2752  echo '#endif'             >>confdefs.h
2753fi
2754
2755else
2756  echo "$as_me: failed program was:" >&5
2757sed 's/^/| /' conftest.$ac_ext >&5
2758
2759fi
2760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761ac_ext=c
2762ac_cpp='$CPP $CPPFLAGS'
2763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766
2767echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2768echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2769set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2770if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2771  echo $ECHO_N "(cached) $ECHO_C" >&6
2772else
2773  cat >conftest.make <<\_ACEOF
2774all:
2775	@echo 'ac_maketemp="$(MAKE)"'
2776_ACEOF
2777# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2778eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2779if test -n "$ac_maketemp"; then
2780  eval ac_cv_prog_make_${ac_make}_set=yes
2781else
2782  eval ac_cv_prog_make_${ac_make}_set=no
2783fi
2784rm -f conftest.make
2785fi
2786if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2787  echo "$as_me:$LINENO: result: yes" >&5
2788echo "${ECHO_T}yes" >&6
2789  SET_MAKE=
2790else
2791  echo "$as_me:$LINENO: result: no" >&5
2792echo "${ECHO_T}no" >&6
2793  SET_MAKE="MAKE=${MAKE-make}"
2794fi
2795
2796if test -n "$ac_tool_prefix"; then
2797  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2798set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2799echo "$as_me:$LINENO: checking for $ac_word" >&5
2800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801if test "${ac_cv_prog_RANLIB+set}" = set; then
2802  echo $ECHO_N "(cached) $ECHO_C" >&6
2803else
2804  if test -n "$RANLIB"; then
2805  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810  IFS=$as_save_IFS
2811  test -z "$as_dir" && as_dir=.
2812  for ac_exec_ext in '' $ac_executable_extensions; do
2813  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816    break 2
2817  fi
2818done
2819done
2820
2821fi
2822fi
2823RANLIB=$ac_cv_prog_RANLIB
2824if test -n "$RANLIB"; then
2825  echo "$as_me:$LINENO: result: $RANLIB" >&5
2826echo "${ECHO_T}$RANLIB" >&6
2827else
2828  echo "$as_me:$LINENO: result: no" >&5
2829echo "${ECHO_T}no" >&6
2830fi
2831
2832fi
2833if test -z "$ac_cv_prog_RANLIB"; then
2834  ac_ct_RANLIB=$RANLIB
2835  # Extract the first word of "ranlib", so it can be a program name with args.
2836set dummy ranlib; ac_word=$2
2837echo "$as_me:$LINENO: checking for $ac_word" >&5
2838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2839if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2840  echo $ECHO_N "(cached) $ECHO_C" >&6
2841else
2842  if test -n "$ac_ct_RANLIB"; then
2843  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848  IFS=$as_save_IFS
2849  test -z "$as_dir" && as_dir=.
2850  for ac_exec_ext in '' $ac_executable_extensions; do
2851  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852    ac_cv_prog_ac_ct_RANLIB="ranlib"
2853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854    break 2
2855  fi
2856done
2857done
2858
2859  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2860fi
2861fi
2862ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2863if test -n "$ac_ct_RANLIB"; then
2864  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2865echo "${ECHO_T}$ac_ct_RANLIB" >&6
2866else
2867  echo "$as_me:$LINENO: result: no" >&5
2868echo "${ECHO_T}no" >&6
2869fi
2870
2871  RANLIB=$ac_ct_RANLIB
2872else
2873  RANLIB="$ac_cv_prog_RANLIB"
2874fi
2875
2876
2877# Checks for libraries.
2878
2879# Checks for header files.
2880
2881ac_ext=c
2882ac_cpp='$CPP $CPPFLAGS'
2883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2885ac_compiler_gnu=$ac_cv_c_compiler_gnu
2886echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2887echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2888# On Suns, sometimes $CPP names a directory.
2889if test -n "$CPP" && test -d "$CPP"; then
2890  CPP=
2891fi
2892if test -z "$CPP"; then
2893  if test "${ac_cv_prog_CPP+set}" = set; then
2894  echo $ECHO_N "(cached) $ECHO_C" >&6
2895else
2896      # Double quotes because CPP needs to be expanded
2897    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2898    do
2899      ac_preproc_ok=false
2900for ac_c_preproc_warn_flag in '' yes
2901do
2902  # Use a header file that comes with gcc, so configuring glibc
2903  # with a fresh cross-compiler works.
2904  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2905  # <limits.h> exists even on freestanding compilers.
2906  # On the NeXT, cc -E runs the code through the compiler's parser,
2907  # not just through cpp. "Syntax error" is here to catch this case.
2908  cat >conftest.$ac_ext <<_ACEOF
2909/* confdefs.h.  */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h.  */
2914#ifdef __STDC__
2915# include <limits.h>
2916#else
2917# include <assert.h>
2918#endif
2919		     Syntax error
2920_ACEOF
2921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2922  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2923  ac_status=$?
2924  grep -v '^ *+' conftest.er1 >conftest.err
2925  rm -f conftest.er1
2926  cat conftest.err >&5
2927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928  (exit $ac_status); } >/dev/null; then
2929  if test -s conftest.err; then
2930    ac_cpp_err=$ac_c_preproc_warn_flag
2931    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2932  else
2933    ac_cpp_err=
2934  fi
2935else
2936  ac_cpp_err=yes
2937fi
2938if test -z "$ac_cpp_err"; then
2939  :
2940else
2941  echo "$as_me: failed program was:" >&5
2942sed 's/^/| /' conftest.$ac_ext >&5
2943
2944  # Broken: fails on valid input.
2945continue
2946fi
2947rm -f conftest.err conftest.$ac_ext
2948
2949  # OK, works on sane cases.  Now check whether non-existent headers
2950  # can be detected and how.
2951  cat >conftest.$ac_ext <<_ACEOF
2952/* confdefs.h.  */
2953_ACEOF
2954cat confdefs.h >>conftest.$ac_ext
2955cat >>conftest.$ac_ext <<_ACEOF
2956/* end confdefs.h.  */
2957#include <ac_nonexistent.h>
2958_ACEOF
2959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2960  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2961  ac_status=$?
2962  grep -v '^ *+' conftest.er1 >conftest.err
2963  rm -f conftest.er1
2964  cat conftest.err >&5
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); } >/dev/null; then
2967  if test -s conftest.err; then
2968    ac_cpp_err=$ac_c_preproc_warn_flag
2969    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2970  else
2971    ac_cpp_err=
2972  fi
2973else
2974  ac_cpp_err=yes
2975fi
2976if test -z "$ac_cpp_err"; then
2977  # Broken: success on invalid input.
2978continue
2979else
2980  echo "$as_me: failed program was:" >&5
2981sed 's/^/| /' conftest.$ac_ext >&5
2982
2983  # Passes both tests.
2984ac_preproc_ok=:
2985break
2986fi
2987rm -f conftest.err conftest.$ac_ext
2988
2989done
2990# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2991rm -f conftest.err conftest.$ac_ext
2992if $ac_preproc_ok; then
2993  break
2994fi
2995
2996    done
2997    ac_cv_prog_CPP=$CPP
2998
2999fi
3000  CPP=$ac_cv_prog_CPP
3001else
3002  ac_cv_prog_CPP=$CPP
3003fi
3004echo "$as_me:$LINENO: result: $CPP" >&5
3005echo "${ECHO_T}$CPP" >&6
3006ac_preproc_ok=false
3007for ac_c_preproc_warn_flag in '' yes
3008do
3009  # Use a header file that comes with gcc, so configuring glibc
3010  # with a fresh cross-compiler works.
3011  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012  # <limits.h> exists even on freestanding compilers.
3013  # On the NeXT, cc -E runs the code through the compiler's parser,
3014  # not just through cpp. "Syntax error" is here to catch this case.
3015  cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h.  */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h.  */
3021#ifdef __STDC__
3022# include <limits.h>
3023#else
3024# include <assert.h>
3025#endif
3026		     Syntax error
3027_ACEOF
3028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3029  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3030  ac_status=$?
3031  grep -v '^ *+' conftest.er1 >conftest.err
3032  rm -f conftest.er1
3033  cat conftest.err >&5
3034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035  (exit $ac_status); } >/dev/null; then
3036  if test -s conftest.err; then
3037    ac_cpp_err=$ac_c_preproc_warn_flag
3038    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3039  else
3040    ac_cpp_err=
3041  fi
3042else
3043  ac_cpp_err=yes
3044fi
3045if test -z "$ac_cpp_err"; then
3046  :
3047else
3048  echo "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
3051  # Broken: fails on valid input.
3052continue
3053fi
3054rm -f conftest.err conftest.$ac_ext
3055
3056  # OK, works on sane cases.  Now check whether non-existent headers
3057  # can be detected and how.
3058  cat >conftest.$ac_ext <<_ACEOF
3059/* confdefs.h.  */
3060_ACEOF
3061cat confdefs.h >>conftest.$ac_ext
3062cat >>conftest.$ac_ext <<_ACEOF
3063/* end confdefs.h.  */
3064#include <ac_nonexistent.h>
3065_ACEOF
3066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3067  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3068  ac_status=$?
3069  grep -v '^ *+' conftest.er1 >conftest.err
3070  rm -f conftest.er1
3071  cat conftest.err >&5
3072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073  (exit $ac_status); } >/dev/null; then
3074  if test -s conftest.err; then
3075    ac_cpp_err=$ac_c_preproc_warn_flag
3076    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3077  else
3078    ac_cpp_err=
3079  fi
3080else
3081  ac_cpp_err=yes
3082fi
3083if test -z "$ac_cpp_err"; then
3084  # Broken: success on invalid input.
3085continue
3086else
3087  echo "$as_me: failed program was:" >&5
3088sed 's/^/| /' conftest.$ac_ext >&5
3089
3090  # Passes both tests.
3091ac_preproc_ok=:
3092break
3093fi
3094rm -f conftest.err conftest.$ac_ext
3095
3096done
3097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3098rm -f conftest.err conftest.$ac_ext
3099if $ac_preproc_ok; then
3100  :
3101else
3102  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3103See \`config.log' for more details." >&5
3104echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3105See \`config.log' for more details." >&2;}
3106   { (exit 1); exit 1; }; }
3107fi
3108
3109ac_ext=c
3110ac_cpp='$CPP $CPPFLAGS'
3111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114
3115
3116echo "$as_me:$LINENO: checking for egrep" >&5
3117echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3118if test "${ac_cv_prog_egrep+set}" = set; then
3119  echo $ECHO_N "(cached) $ECHO_C" >&6
3120else
3121  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3122    then ac_cv_prog_egrep='grep -E'
3123    else ac_cv_prog_egrep='egrep'
3124    fi
3125fi
3126echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3127echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3128 EGREP=$ac_cv_prog_egrep
3129
3130
3131echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3132echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3133if test "${ac_cv_header_stdc+set}" = set; then
3134  echo $ECHO_N "(cached) $ECHO_C" >&6
3135else
3136  cat >conftest.$ac_ext <<_ACEOF
3137/* confdefs.h.  */
3138_ACEOF
3139cat confdefs.h >>conftest.$ac_ext
3140cat >>conftest.$ac_ext <<_ACEOF
3141/* end confdefs.h.  */
3142#include <stdlib.h>
3143#include <stdarg.h>
3144#include <string.h>
3145#include <float.h>
3146
3147int
3148main ()
3149{
3150
3151  ;
3152  return 0;
3153}
3154_ACEOF
3155rm -f conftest.$ac_objext
3156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157  (eval $ac_compile) 2>conftest.er1
3158  ac_status=$?
3159  grep -v '^ *+' conftest.er1 >conftest.err
3160  rm -f conftest.er1
3161  cat conftest.err >&5
3162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163  (exit $ac_status); } &&
3164	 { ac_try='test -z "$ac_c_werror_flag"
3165			 || test ! -s conftest.err'
3166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167  (eval $ac_try) 2>&5
3168  ac_status=$?
3169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170  (exit $ac_status); }; } &&
3171	 { ac_try='test -s conftest.$ac_objext'
3172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173  (eval $ac_try) 2>&5
3174  ac_status=$?
3175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176  (exit $ac_status); }; }; then
3177  ac_cv_header_stdc=yes
3178else
3179  echo "$as_me: failed program was:" >&5
3180sed 's/^/| /' conftest.$ac_ext >&5
3181
3182ac_cv_header_stdc=no
3183fi
3184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3185
3186if test $ac_cv_header_stdc = yes; then
3187  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3188  cat >conftest.$ac_ext <<_ACEOF
3189/* confdefs.h.  */
3190_ACEOF
3191cat confdefs.h >>conftest.$ac_ext
3192cat >>conftest.$ac_ext <<_ACEOF
3193/* end confdefs.h.  */
3194#include <string.h>
3195
3196_ACEOF
3197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3198  $EGREP "memchr" >/dev/null 2>&1; then
3199  :
3200else
3201  ac_cv_header_stdc=no
3202fi
3203rm -f conftest*
3204
3205fi
3206
3207if test $ac_cv_header_stdc = yes; then
3208  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3209  cat >conftest.$ac_ext <<_ACEOF
3210/* confdefs.h.  */
3211_ACEOF
3212cat confdefs.h >>conftest.$ac_ext
3213cat >>conftest.$ac_ext <<_ACEOF
3214/* end confdefs.h.  */
3215#include <stdlib.h>
3216
3217_ACEOF
3218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3219  $EGREP "free" >/dev/null 2>&1; then
3220  :
3221else
3222  ac_cv_header_stdc=no
3223fi
3224rm -f conftest*
3225
3226fi
3227
3228if test $ac_cv_header_stdc = yes; then
3229  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3230  if test "$cross_compiling" = yes; then
3231  :
3232else
3233  cat >conftest.$ac_ext <<_ACEOF
3234/* confdefs.h.  */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
3238/* end confdefs.h.  */
3239#include <ctype.h>
3240#if ((' ' & 0x0FF) == 0x020)
3241# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3242# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3243#else
3244# define ISLOWER(c) \
3245		   (('a' <= (c) && (c) <= 'i') \
3246		     || ('j' <= (c) && (c) <= 'r') \
3247		     || ('s' <= (c) && (c) <= 'z'))
3248# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3249#endif
3250
3251#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3252int
3253main ()
3254{
3255  int i;
3256  for (i = 0; i < 256; i++)
3257    if (XOR (islower (i), ISLOWER (i))
3258	|| toupper (i) != TOUPPER (i))
3259      exit(2);
3260  exit (0);
3261}
3262_ACEOF
3263rm -f conftest$ac_exeext
3264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3265  (eval $ac_link) 2>&5
3266  ac_status=$?
3267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270  (eval $ac_try) 2>&5
3271  ac_status=$?
3272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273  (exit $ac_status); }; }; then
3274  :
3275else
3276  echo "$as_me: program exited with status $ac_status" >&5
3277echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
3280( exit $ac_status )
3281ac_cv_header_stdc=no
3282fi
3283rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3284fi
3285fi
3286fi
3287echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3288echo "${ECHO_T}$ac_cv_header_stdc" >&6
3289if test $ac_cv_header_stdc = yes; then
3290
3291cat >>confdefs.h <<\_ACEOF
3292#define STDC_HEADERS 1
3293_ACEOF
3294
3295fi
3296
3297# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3308		  inttypes.h stdint.h unistd.h
3309do
3310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3311echo "$as_me:$LINENO: checking for $ac_header" >&5
3312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3313if eval "test \"\${$as_ac_Header+set}\" = set"; then
3314  echo $ECHO_N "(cached) $ECHO_C" >&6
3315else
3316  cat >conftest.$ac_ext <<_ACEOF
3317/* confdefs.h.  */
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h.  */
3322$ac_includes_default
3323
3324#include <$ac_header>
3325_ACEOF
3326rm -f conftest.$ac_objext
3327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3328  (eval $ac_compile) 2>conftest.er1
3329  ac_status=$?
3330  grep -v '^ *+' conftest.er1 >conftest.err
3331  rm -f conftest.er1
3332  cat conftest.err >&5
3333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334  (exit $ac_status); } &&
3335	 { ac_try='test -z "$ac_c_werror_flag"
3336			 || test ! -s conftest.err'
3337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338  (eval $ac_try) 2>&5
3339  ac_status=$?
3340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341  (exit $ac_status); }; } &&
3342	 { ac_try='test -s conftest.$ac_objext'
3343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344  (eval $ac_try) 2>&5
3345  ac_status=$?
3346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347  (exit $ac_status); }; }; then
3348  eval "$as_ac_Header=yes"
3349else
3350  echo "$as_me: failed program was:" >&5
3351sed 's/^/| /' conftest.$ac_ext >&5
3352
3353eval "$as_ac_Header=no"
3354fi
3355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3356fi
3357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3359if test `eval echo '${'$as_ac_Header'}'` = yes; then
3360  cat >>confdefs.h <<_ACEOF
3361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3362_ACEOF
3363
3364fi
3365
3366done
3367
3368
3369
3370
3371
3372
3373
3374
3375for ac_header in fcntl.h malloc.h stdlib.h string.h strings.h unistd.h
3376do
3377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3378if eval "test \"\${$as_ac_Header+set}\" = set"; then
3379  echo "$as_me:$LINENO: checking for $ac_header" >&5
3380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3381if eval "test \"\${$as_ac_Header+set}\" = set"; then
3382  echo $ECHO_N "(cached) $ECHO_C" >&6
3383fi
3384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3386else
3387  # Is the header compilable?
3388echo "$as_me:$LINENO: checking $ac_header usability" >&5
3389echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3390cat >conftest.$ac_ext <<_ACEOF
3391/* confdefs.h.  */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
3395/* end confdefs.h.  */
3396$ac_includes_default
3397#include <$ac_header>
3398_ACEOF
3399rm -f conftest.$ac_objext
3400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401  (eval $ac_compile) 2>conftest.er1
3402  ac_status=$?
3403  grep -v '^ *+' conftest.er1 >conftest.err
3404  rm -f conftest.er1
3405  cat conftest.err >&5
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); } &&
3408	 { ac_try='test -z "$ac_c_werror_flag"
3409			 || test ! -s conftest.err'
3410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411  (eval $ac_try) 2>&5
3412  ac_status=$?
3413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414  (exit $ac_status); }; } &&
3415	 { ac_try='test -s conftest.$ac_objext'
3416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417  (eval $ac_try) 2>&5
3418  ac_status=$?
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); }; }; then
3421  ac_header_compiler=yes
3422else
3423  echo "$as_me: failed program was:" >&5
3424sed 's/^/| /' conftest.$ac_ext >&5
3425
3426ac_header_compiler=no
3427fi
3428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3429echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3430echo "${ECHO_T}$ac_header_compiler" >&6
3431
3432# Is the header present?
3433echo "$as_me:$LINENO: checking $ac_header presence" >&5
3434echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3435cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h.  */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h.  */
3441#include <$ac_header>
3442_ACEOF
3443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3444  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3445  ac_status=$?
3446  grep -v '^ *+' conftest.er1 >conftest.err
3447  rm -f conftest.er1
3448  cat conftest.err >&5
3449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450  (exit $ac_status); } >/dev/null; then
3451  if test -s conftest.err; then
3452    ac_cpp_err=$ac_c_preproc_warn_flag
3453    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454  else
3455    ac_cpp_err=
3456  fi
3457else
3458  ac_cpp_err=yes
3459fi
3460if test -z "$ac_cpp_err"; then
3461  ac_header_preproc=yes
3462else
3463  echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466  ac_header_preproc=no
3467fi
3468rm -f conftest.err conftest.$ac_ext
3469echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3470echo "${ECHO_T}$ac_header_preproc" >&6
3471
3472# So?  What about this header?
3473case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3474  yes:no: )
3475    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3476echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3477    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3478echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3479    ac_header_preproc=yes
3480    ;;
3481  no:yes:* )
3482    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3483echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3484    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3485echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3486    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3487echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3488    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3489echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3490    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3491echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3492    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3493echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3494    (
3495      cat <<\_ASBOX
3496## --------------------------------- ##
3497## Report this to the libpng lists.  ##
3498## --------------------------------- ##
3499_ASBOX
3500    ) |
3501      sed "s/^/$as_me: WARNING:     /" >&2
3502    ;;
3503esac
3504echo "$as_me:$LINENO: checking for $ac_header" >&5
3505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3506if eval "test \"\${$as_ac_Header+set}\" = set"; then
3507  echo $ECHO_N "(cached) $ECHO_C" >&6
3508else
3509  eval "$as_ac_Header=\$ac_header_preproc"
3510fi
3511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3513
3514fi
3515if test `eval echo '${'$as_ac_Header'}'` = yes; then
3516  cat >>confdefs.h <<_ACEOF
3517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3518_ACEOF
3519
3520fi
3521
3522done
3523
3524
3525# Checks for typedefs, structures, and compiler characteristics.
3526echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3527echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3528if test "${ac_cv_c_const+set}" = set; then
3529  echo $ECHO_N "(cached) $ECHO_C" >&6
3530else
3531  cat >conftest.$ac_ext <<_ACEOF
3532/* confdefs.h.  */
3533_ACEOF
3534cat confdefs.h >>conftest.$ac_ext
3535cat >>conftest.$ac_ext <<_ACEOF
3536/* end confdefs.h.  */
3537
3538int
3539main ()
3540{
3541/* FIXME: Include the comments suggested by Paul. */
3542#ifndef __cplusplus
3543  /* Ultrix mips cc rejects this.  */
3544  typedef int charset[2];
3545  const charset x;
3546  /* SunOS 4.1.1 cc rejects this.  */
3547  char const *const *ccp;
3548  char **p;
3549  /* NEC SVR4.0.2 mips cc rejects this.  */
3550  struct point {int x, y;};
3551  static struct point const zero = {0,0};
3552  /* AIX XL C 1.02.0.0 rejects this.
3553     It does not let you subtract one const X* pointer from another in
3554     an arm of an if-expression whose if-part is not a constant
3555     expression */
3556  const char *g = "string";
3557  ccp = &g + (g ? g-g : 0);
3558  /* HPUX 7.0 cc rejects these. */
3559  ++ccp;
3560  p = (char**) ccp;
3561  ccp = (char const *const *) p;
3562  { /* SCO 3.2v4 cc rejects this.  */
3563    char *t;
3564    char const *s = 0 ? (char *) 0 : (char const *) 0;
3565
3566    *t++ = 0;
3567  }
3568  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3569    int x[] = {25, 17};
3570    const int *foo = &x[0];
3571    ++foo;
3572  }
3573  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3574    typedef const int *iptr;
3575    iptr p = 0;
3576    ++p;
3577  }
3578  { /* AIX XL C 1.02.0.0 rejects this saying
3579       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3580    struct s { int j; const int *ap[3]; };
3581    struct s *b; b->j = 5;
3582  }
3583  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3584    const int foo = 10;
3585  }
3586#endif
3587
3588  ;
3589  return 0;
3590}
3591_ACEOF
3592rm -f conftest.$ac_objext
3593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594  (eval $ac_compile) 2>conftest.er1
3595  ac_status=$?
3596  grep -v '^ *+' conftest.er1 >conftest.err
3597  rm -f conftest.er1
3598  cat conftest.err >&5
3599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600  (exit $ac_status); } &&
3601	 { ac_try='test -z "$ac_c_werror_flag"
3602			 || test ! -s conftest.err'
3603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604  (eval $ac_try) 2>&5
3605  ac_status=$?
3606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607  (exit $ac_status); }; } &&
3608	 { ac_try='test -s conftest.$ac_objext'
3609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610  (eval $ac_try) 2>&5
3611  ac_status=$?
3612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613  (exit $ac_status); }; }; then
3614  ac_cv_c_const=yes
3615else
3616  echo "$as_me: failed program was:" >&5
3617sed 's/^/| /' conftest.$ac_ext >&5
3618
3619ac_cv_c_const=no
3620fi
3621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622fi
3623echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3624echo "${ECHO_T}$ac_cv_c_const" >&6
3625if test $ac_cv_c_const = no; then
3626
3627cat >>confdefs.h <<\_ACEOF
3628#define const
3629_ACEOF
3630
3631fi
3632
3633echo "$as_me:$LINENO: checking for size_t" >&5
3634echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3635if test "${ac_cv_type_size_t+set}" = set; then
3636  echo $ECHO_N "(cached) $ECHO_C" >&6
3637else
3638  cat >conftest.$ac_ext <<_ACEOF
3639/* confdefs.h.  */
3640_ACEOF
3641cat confdefs.h >>conftest.$ac_ext
3642cat >>conftest.$ac_ext <<_ACEOF
3643/* end confdefs.h.  */
3644$ac_includes_default
3645int
3646main ()
3647{
3648if ((size_t *) 0)
3649  return 0;
3650if (sizeof (size_t))
3651  return 0;
3652  ;
3653  return 0;
3654}
3655_ACEOF
3656rm -f conftest.$ac_objext
3657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3658  (eval $ac_compile) 2>conftest.er1
3659  ac_status=$?
3660  grep -v '^ *+' conftest.er1 >conftest.err
3661  rm -f conftest.er1
3662  cat conftest.err >&5
3663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664  (exit $ac_status); } &&
3665	 { ac_try='test -z "$ac_c_werror_flag"
3666			 || test ! -s conftest.err'
3667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668  (eval $ac_try) 2>&5
3669  ac_status=$?
3670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671  (exit $ac_status); }; } &&
3672	 { ac_try='test -s conftest.$ac_objext'
3673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674  (eval $ac_try) 2>&5
3675  ac_status=$?
3676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677  (exit $ac_status); }; }; then
3678  ac_cv_type_size_t=yes
3679else
3680  echo "$as_me: failed program was:" >&5
3681sed 's/^/| /' conftest.$ac_ext >&5
3682
3683ac_cv_type_size_t=no
3684fi
3685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3686fi
3687echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3688echo "${ECHO_T}$ac_cv_type_size_t" >&6
3689if test $ac_cv_type_size_t = yes; then
3690  :
3691else
3692
3693cat >>confdefs.h <<_ACEOF
3694#define size_t unsigned
3695_ACEOF
3696
3697fi
3698
3699echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3700echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3701if test "${ac_cv_struct_tm+set}" = set; then
3702  echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
3704  cat >conftest.$ac_ext <<_ACEOF
3705/* confdefs.h.  */
3706_ACEOF
3707cat confdefs.h >>conftest.$ac_ext
3708cat >>conftest.$ac_ext <<_ACEOF
3709/* end confdefs.h.  */
3710#include <sys/types.h>
3711#include <time.h>
3712
3713int
3714main ()
3715{
3716struct tm *tp; tp->tm_sec;
3717  ;
3718  return 0;
3719}
3720_ACEOF
3721rm -f conftest.$ac_objext
3722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3723  (eval $ac_compile) 2>conftest.er1
3724  ac_status=$?
3725  grep -v '^ *+' conftest.er1 >conftest.err
3726  rm -f conftest.er1
3727  cat conftest.err >&5
3728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729  (exit $ac_status); } &&
3730	 { ac_try='test -z "$ac_c_werror_flag"
3731			 || test ! -s conftest.err'
3732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733  (eval $ac_try) 2>&5
3734  ac_status=$?
3735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736  (exit $ac_status); }; } &&
3737	 { ac_try='test -s conftest.$ac_objext'
3738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739  (eval $ac_try) 2>&5
3740  ac_status=$?
3741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742  (exit $ac_status); }; }; then
3743  ac_cv_struct_tm=time.h
3744else
3745  echo "$as_me: failed program was:" >&5
3746sed 's/^/| /' conftest.$ac_ext >&5
3747
3748ac_cv_struct_tm=sys/time.h
3749fi
3750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3751fi
3752echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3753echo "${ECHO_T}$ac_cv_struct_tm" >&6
3754if test $ac_cv_struct_tm = sys/time.h; then
3755
3756cat >>confdefs.h <<\_ACEOF
3757#define TM_IN_SYS_TIME 1
3758_ACEOF
3759
3760fi
3761
3762
3763# Checks for library functions.
3764
3765for ac_header in stdlib.h
3766do
3767as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3768if eval "test \"\${$as_ac_Header+set}\" = set"; then
3769  echo "$as_me:$LINENO: checking for $ac_header" >&5
3770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3771if eval "test \"\${$as_ac_Header+set}\" = set"; then
3772  echo $ECHO_N "(cached) $ECHO_C" >&6
3773fi
3774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3776else
3777  # Is the header compilable?
3778echo "$as_me:$LINENO: checking $ac_header usability" >&5
3779echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3780cat >conftest.$ac_ext <<_ACEOF
3781/* confdefs.h.  */
3782_ACEOF
3783cat confdefs.h >>conftest.$ac_ext
3784cat >>conftest.$ac_ext <<_ACEOF
3785/* end confdefs.h.  */
3786$ac_includes_default
3787#include <$ac_header>
3788_ACEOF
3789rm -f conftest.$ac_objext
3790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3791  (eval $ac_compile) 2>conftest.er1
3792  ac_status=$?
3793  grep -v '^ *+' conftest.er1 >conftest.err
3794  rm -f conftest.er1
3795  cat conftest.err >&5
3796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797  (exit $ac_status); } &&
3798	 { ac_try='test -z "$ac_c_werror_flag"
3799			 || test ! -s conftest.err'
3800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801  (eval $ac_try) 2>&5
3802  ac_status=$?
3803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804  (exit $ac_status); }; } &&
3805	 { ac_try='test -s conftest.$ac_objext'
3806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807  (eval $ac_try) 2>&5
3808  ac_status=$?
3809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810  (exit $ac_status); }; }; then
3811  ac_header_compiler=yes
3812else
3813  echo "$as_me: failed program was:" >&5
3814sed 's/^/| /' conftest.$ac_ext >&5
3815
3816ac_header_compiler=no
3817fi
3818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3819echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3820echo "${ECHO_T}$ac_header_compiler" >&6
3821
3822# Is the header present?
3823echo "$as_me:$LINENO: checking $ac_header presence" >&5
3824echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3825cat >conftest.$ac_ext <<_ACEOF
3826/* confdefs.h.  */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h.  */
3831#include <$ac_header>
3832_ACEOF
3833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3834  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3835  ac_status=$?
3836  grep -v '^ *+' conftest.er1 >conftest.err
3837  rm -f conftest.er1
3838  cat conftest.err >&5
3839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840  (exit $ac_status); } >/dev/null; then
3841  if test -s conftest.err; then
3842    ac_cpp_err=$ac_c_preproc_warn_flag
3843    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3844  else
3845    ac_cpp_err=
3846  fi
3847else
3848  ac_cpp_err=yes
3849fi
3850if test -z "$ac_cpp_err"; then
3851  ac_header_preproc=yes
3852else
3853  echo "$as_me: failed program was:" >&5
3854sed 's/^/| /' conftest.$ac_ext >&5
3855
3856  ac_header_preproc=no
3857fi
3858rm -f conftest.err conftest.$ac_ext
3859echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3860echo "${ECHO_T}$ac_header_preproc" >&6
3861
3862# So?  What about this header?
3863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3864  yes:no: )
3865    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3866echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3867    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3868echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3869    ac_header_preproc=yes
3870    ;;
3871  no:yes:* )
3872    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3874    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3875echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3876    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3877echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3878    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3879echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3880    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3882    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3883echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3884    (
3885      cat <<\_ASBOX
3886## --------------------------------- ##
3887## Report this to the libpng lists.  ##
3888## --------------------------------- ##
3889_ASBOX
3890    ) |
3891      sed "s/^/$as_me: WARNING:     /" >&2
3892    ;;
3893esac
3894echo "$as_me:$LINENO: checking for $ac_header" >&5
3895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3896if eval "test \"\${$as_ac_Header+set}\" = set"; then
3897  echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899  eval "$as_ac_Header=\$ac_header_preproc"
3900fi
3901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3903
3904fi
3905if test `eval echo '${'$as_ac_Header'}'` = yes; then
3906  cat >>confdefs.h <<_ACEOF
3907#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3908_ACEOF
3909
3910fi
3911
3912done
3913
3914echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
3915echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
3916if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
3917  echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
3919  if test "$cross_compiling" = yes; then
3920  ac_cv_func_malloc_0_nonnull=no
3921else
3922  cat >conftest.$ac_ext <<_ACEOF
3923/* confdefs.h.  */
3924_ACEOF
3925cat confdefs.h >>conftest.$ac_ext
3926cat >>conftest.$ac_ext <<_ACEOF
3927/* end confdefs.h.  */
3928#if STDC_HEADERS || HAVE_STDLIB_H
3929# include <stdlib.h>
3930#else
3931char *malloc ();
3932#endif
3933
3934int
3935main ()
3936{
3937exit (malloc (0) ? 0 : 1);
3938  ;
3939  return 0;
3940}
3941_ACEOF
3942rm -f conftest$ac_exeext
3943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3944  (eval $ac_link) 2>&5
3945  ac_status=$?
3946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949  (eval $ac_try) 2>&5
3950  ac_status=$?
3951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952  (exit $ac_status); }; }; then
3953  ac_cv_func_malloc_0_nonnull=yes
3954else
3955  echo "$as_me: program exited with status $ac_status" >&5
3956echo "$as_me: failed program was:" >&5
3957sed 's/^/| /' conftest.$ac_ext >&5
3958
3959( exit $ac_status )
3960ac_cv_func_malloc_0_nonnull=no
3961fi
3962rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3963fi
3964fi
3965echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
3966echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
3967if test $ac_cv_func_malloc_0_nonnull = yes; then
3968
3969cat >>confdefs.h <<\_ACEOF
3970#define HAVE_MALLOC 1
3971_ACEOF
3972
3973else
3974  cat >>confdefs.h <<\_ACEOF
3975#define HAVE_MALLOC 0
3976_ACEOF
3977
3978   case $LIBOBJS in
3979    "malloc.$ac_objext"   | \
3980  *" malloc.$ac_objext"   | \
3981    "malloc.$ac_objext "* | \
3982  *" malloc.$ac_objext "* ) ;;
3983  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
3984esac
3985
3986
3987cat >>confdefs.h <<\_ACEOF
3988#define malloc rpl_malloc
3989_ACEOF
3990
3991fi
3992
3993
3994
3995echo "$as_me:$LINENO: checking for working strtod" >&5
3996echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
3997if test "${ac_cv_func_strtod+set}" = set; then
3998  echo $ECHO_N "(cached) $ECHO_C" >&6
3999else
4000  if test "$cross_compiling" = yes; then
4001  ac_cv_func_strtod=no
4002else
4003  cat >conftest.$ac_ext <<_ACEOF
4004/* confdefs.h.  */
4005_ACEOF
4006cat confdefs.h >>conftest.$ac_ext
4007cat >>conftest.$ac_ext <<_ACEOF
4008/* end confdefs.h.  */
4009
4010double strtod ();
4011int
4012main()
4013{
4014  {
4015    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
4016    char *string = " +69";
4017    char *term;
4018    double value;
4019    value = strtod (string, &term);
4020    if (value != 69 || term != (string + 4))
4021      exit (1);
4022  }
4023
4024  {
4025    /* Under Solaris 2.4, strtod returns the wrong value for the
4026       terminating character under some conditions.  */
4027    char *string = "NaN";
4028    char *term;
4029    strtod (string, &term);
4030    if (term != string && *(term - 1) == 0)
4031      exit (1);
4032  }
4033  exit (0);
4034}
4035
4036_ACEOF
4037rm -f conftest$ac_exeext
4038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4039  (eval $ac_link) 2>&5
4040  ac_status=$?
4041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044  (eval $ac_try) 2>&5
4045  ac_status=$?
4046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047  (exit $ac_status); }; }; then
4048  ac_cv_func_strtod=yes
4049else
4050  echo "$as_me: program exited with status $ac_status" >&5
4051echo "$as_me: failed program was:" >&5
4052sed 's/^/| /' conftest.$ac_ext >&5
4053
4054( exit $ac_status )
4055ac_cv_func_strtod=no
4056fi
4057rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4058fi
4059fi
4060echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
4061echo "${ECHO_T}$ac_cv_func_strtod" >&6
4062if test $ac_cv_func_strtod = no; then
4063  case $LIBOBJS in
4064    "strtod.$ac_objext"   | \
4065  *" strtod.$ac_objext"   | \
4066    "strtod.$ac_objext "* | \
4067  *" strtod.$ac_objext "* ) ;;
4068  *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
4069esac
4070
4071echo "$as_me:$LINENO: checking for pow" >&5
4072echo $ECHO_N "checking for pow... $ECHO_C" >&6
4073if test "${ac_cv_func_pow+set}" = set; then
4074  echo $ECHO_N "(cached) $ECHO_C" >&6
4075else
4076  cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h.  */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h.  */
4082/* Define pow to an innocuous variant, in case <limits.h> declares pow.
4083   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4084#define pow innocuous_pow
4085
4086/* System header to define __stub macros and hopefully few prototypes,
4087    which can conflict with char pow (); below.
4088    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4089    <limits.h> exists even on freestanding compilers.  */
4090
4091#ifdef __STDC__
4092# include <limits.h>
4093#else
4094# include <assert.h>
4095#endif
4096
4097#undef pow
4098
4099/* Override any gcc2 internal prototype to avoid an error.  */
4100#ifdef __cplusplus
4101extern "C"
4102{
4103#endif
4104/* We use char because int might match the return type of a gcc2
4105   builtin and then its argument prototype would still apply.  */
4106char pow ();
4107/* The GNU C library defines this for functions which it implements
4108    to always fail with ENOSYS.  Some functions are actually named
4109    something starting with __ and the normal name is an alias.  */
4110#if defined (__stub_pow) || defined (__stub___pow)
4111choke me
4112#else
4113char (*f) () = pow;
4114#endif
4115#ifdef __cplusplus
4116}
4117#endif
4118
4119int
4120main ()
4121{
4122return f != pow;
4123  ;
4124  return 0;
4125}
4126_ACEOF
4127rm -f conftest.$ac_objext conftest$ac_exeext
4128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4129  (eval $ac_link) 2>conftest.er1
4130  ac_status=$?
4131  grep -v '^ *+' conftest.er1 >conftest.err
4132  rm -f conftest.er1
4133  cat conftest.err >&5
4134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135  (exit $ac_status); } &&
4136	 { ac_try='test -z "$ac_c_werror_flag"
4137			 || test ! -s conftest.err'
4138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139  (eval $ac_try) 2>&5
4140  ac_status=$?
4141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142  (exit $ac_status); }; } &&
4143	 { ac_try='test -s conftest$ac_exeext'
4144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145  (eval $ac_try) 2>&5
4146  ac_status=$?
4147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148  (exit $ac_status); }; }; then
4149  ac_cv_func_pow=yes
4150else
4151  echo "$as_me: failed program was:" >&5
4152sed 's/^/| /' conftest.$ac_ext >&5
4153
4154ac_cv_func_pow=no
4155fi
4156rm -f conftest.err conftest.$ac_objext \
4157      conftest$ac_exeext conftest.$ac_ext
4158fi
4159echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
4160echo "${ECHO_T}$ac_cv_func_pow" >&6
4161
4162if test $ac_cv_func_pow = no; then
4163  echo "$as_me:$LINENO: checking for pow in -lm" >&5
4164echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
4165if test "${ac_cv_lib_m_pow+set}" = set; then
4166  echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
4168  ac_check_lib_save_LIBS=$LIBS
4169LIBS="-lm  $LIBS"
4170cat >conftest.$ac_ext <<_ACEOF
4171/* confdefs.h.  */
4172_ACEOF
4173cat confdefs.h >>conftest.$ac_ext
4174cat >>conftest.$ac_ext <<_ACEOF
4175/* end confdefs.h.  */
4176
4177/* Override any gcc2 internal prototype to avoid an error.  */
4178#ifdef __cplusplus
4179extern "C"
4180#endif
4181/* We use char because int might match the return type of a gcc2
4182   builtin and then its argument prototype would still apply.  */
4183char pow ();
4184int
4185main ()
4186{
4187pow ();
4188  ;
4189  return 0;
4190}
4191_ACEOF
4192rm -f conftest.$ac_objext conftest$ac_exeext
4193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4194  (eval $ac_link) 2>conftest.er1
4195  ac_status=$?
4196  grep -v '^ *+' conftest.er1 >conftest.err
4197  rm -f conftest.er1
4198  cat conftest.err >&5
4199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200  (exit $ac_status); } &&
4201	 { ac_try='test -z "$ac_c_werror_flag"
4202			 || test ! -s conftest.err'
4203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204  (eval $ac_try) 2>&5
4205  ac_status=$?
4206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207  (exit $ac_status); }; } &&
4208	 { ac_try='test -s conftest$ac_exeext'
4209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210  (eval $ac_try) 2>&5
4211  ac_status=$?
4212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213  (exit $ac_status); }; }; then
4214  ac_cv_lib_m_pow=yes
4215else
4216  echo "$as_me: failed program was:" >&5
4217sed 's/^/| /' conftest.$ac_ext >&5
4218
4219ac_cv_lib_m_pow=no
4220fi
4221rm -f conftest.err conftest.$ac_objext \
4222      conftest$ac_exeext conftest.$ac_ext
4223LIBS=$ac_check_lib_save_LIBS
4224fi
4225echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
4226echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
4227if test $ac_cv_lib_m_pow = yes; then
4228  POW_LIB=-lm
4229else
4230  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
4231echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
4232fi
4233
4234fi
4235
4236fi
4237
4238
4239
4240
4241for ac_func in memset pow strrchr
4242do
4243as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4244echo "$as_me:$LINENO: checking for $ac_func" >&5
4245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4246if eval "test \"\${$as_ac_var+set}\" = set"; then
4247  echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249  cat >conftest.$ac_ext <<_ACEOF
4250/* confdefs.h.  */
4251_ACEOF
4252cat confdefs.h >>conftest.$ac_ext
4253cat >>conftest.$ac_ext <<_ACEOF
4254/* end confdefs.h.  */
4255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4256   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4257#define $ac_func innocuous_$ac_func
4258
4259/* System header to define __stub macros and hopefully few prototypes,
4260    which can conflict with char $ac_func (); below.
4261    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262    <limits.h> exists even on freestanding compilers.  */
4263
4264#ifdef __STDC__
4265# include <limits.h>
4266#else
4267# include <assert.h>
4268#endif
4269
4270#undef $ac_func
4271
4272/* Override any gcc2 internal prototype to avoid an error.  */
4273#ifdef __cplusplus
4274extern "C"
4275{
4276#endif
4277/* We use char because int might match the return type of a gcc2
4278   builtin and then its argument prototype would still apply.  */
4279char $ac_func ();
4280/* The GNU C library defines this for functions which it implements
4281    to always fail with ENOSYS.  Some functions are actually named
4282    something starting with __ and the normal name is an alias.  */
4283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4284choke me
4285#else
4286char (*f) () = $ac_func;
4287#endif
4288#ifdef __cplusplus
4289}
4290#endif
4291
4292int
4293main ()
4294{
4295return f != $ac_func;
4296  ;
4297  return 0;
4298}
4299_ACEOF
4300rm -f conftest.$ac_objext conftest$ac_exeext
4301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4302  (eval $ac_link) 2>conftest.er1
4303  ac_status=$?
4304  grep -v '^ *+' conftest.er1 >conftest.err
4305  rm -f conftest.er1
4306  cat conftest.err >&5
4307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308  (exit $ac_status); } &&
4309	 { ac_try='test -z "$ac_c_werror_flag"
4310			 || test ! -s conftest.err'
4311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312  (eval $ac_try) 2>&5
4313  ac_status=$?
4314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315  (exit $ac_status); }; } &&
4316	 { ac_try='test -s conftest$ac_exeext'
4317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318  (eval $ac_try) 2>&5
4319  ac_status=$?
4320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321  (exit $ac_status); }; }; then
4322  eval "$as_ac_var=yes"
4323else
4324  echo "$as_me: failed program was:" >&5
4325sed 's/^/| /' conftest.$ac_ext >&5
4326
4327eval "$as_ac_var=no"
4328fi
4329rm -f conftest.err conftest.$ac_objext \
4330      conftest$ac_exeext conftest.$ac_ext
4331fi
4332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4334if test `eval echo '${'$as_ac_var'}'` = yes; then
4335  cat >>confdefs.h <<_ACEOF
4336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4337_ACEOF
4338
4339fi
4340done
4341
4342
4343          ac_config_files="$ac_config_files Makefile"
4344
4345cat >confcache <<\_ACEOF
4346# This file is a shell script that caches the results of configure
4347# tests run on this system so they can be shared between configure
4348# scripts and configure runs, see configure's option --config-cache.
4349# It is not useful on other systems.  If it contains results you don't
4350# want to keep, you may remove or edit it.
4351#
4352# config.status only pays attention to the cache file if you give it
4353# the --recheck option to rerun configure.
4354#
4355# `ac_cv_env_foo' variables (set or unset) will be overridden when
4356# loading this file, other *unset* `ac_cv_foo' will be assigned the
4357# following values.
4358
4359_ACEOF
4360
4361# The following way of writing the cache mishandles newlines in values,
4362# but we know of no workaround that is simple, portable, and efficient.
4363# So, don't put newlines in cache variables' values.
4364# Ultrix sh set writes to stderr and can't be redirected directly,
4365# and sets the high bit in the cache file unless we assign to the vars.
4366{
4367  (set) 2>&1 |
4368    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4369    *ac_space=\ *)
4370      # `set' does not quote correctly, so add quotes (double-quote
4371      # substitution turns \\\\ into \\, and sed turns \\ into \).
4372      sed -n \
4373	"s/'/'\\\\''/g;
4374	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4375      ;;
4376    *)
4377      # `set' quotes correctly as required by POSIX, so do not add quotes.
4378      sed -n \
4379	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4380      ;;
4381    esac;
4382} |
4383  sed '
4384     t clear
4385     : clear
4386     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4387     t end
4388     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4389     : end' >>confcache
4390if diff $cache_file confcache >/dev/null 2>&1; then :; else
4391  if test -w $cache_file; then
4392    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4393    cat confcache >$cache_file
4394  else
4395    echo "not updating unwritable cache $cache_file"
4396  fi
4397fi
4398rm -f confcache
4399
4400test "x$prefix" = xNONE && prefix=$ac_default_prefix
4401# Let make expand exec_prefix.
4402test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4403
4404# VPATH may cause trouble with some makes, so we remove $(srcdir),
4405# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4406# trailing colons and then remove the whole line if VPATH becomes empty
4407# (actually we leave an empty line to preserve line numbers).
4408if test "x$srcdir" = x.; then
4409  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
4410s/:*\$(srcdir):*/:/;
4411s/:*\${srcdir}:*/:/;
4412s/:*@srcdir@:*/:/;
4413s/^\([^=]*=[	 ]*\):*/\1/;
4414s/:*$//;
4415s/^[^=]*=[	 ]*$//;
4416}'
4417fi
4418
4419DEFS=-DHAVE_CONFIG_H
4420
4421ac_libobjs=
4422ac_ltlibobjs=
4423for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4424  # 1. Remove the extension, and $U if already installed.
4425  ac_i=`echo "$ac_i" |
4426	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4427  # 2. Add them.
4428  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4429  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4430done
4431LIBOBJS=$ac_libobjs
4432
4433LTLIBOBJS=$ac_ltlibobjs
4434
4435
4436if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4437  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
4438Usually this means the macro was only invoked conditionally." >&5
4439echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
4440Usually this means the macro was only invoked conditionally." >&2;}
4441   { (exit 1); exit 1; }; }
4442fi
4443
4444: ${CONFIG_STATUS=./config.status}
4445ac_clean_files_save=$ac_clean_files
4446ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4447{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4448echo "$as_me: creating $CONFIG_STATUS" >&6;}
4449cat >$CONFIG_STATUS <<_ACEOF
4450#! $SHELL
4451# Generated by $as_me.
4452# Run this file to recreate the current configuration.
4453# Compiler output produced by configure, useful for debugging
4454# configure, is in config.log if it exists.
4455
4456debug=false
4457ac_cs_recheck=false
4458ac_cs_silent=false
4459SHELL=\${CONFIG_SHELL-$SHELL}
4460_ACEOF
4461
4462cat >>$CONFIG_STATUS <<\_ACEOF
4463## --------------------- ##
4464## M4sh Initialization.  ##
4465## --------------------- ##
4466
4467# Be Bourne compatible
4468if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4469  emulate sh
4470  NULLCMD=:
4471  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4472  # is contrary to our usage.  Disable this feature.
4473  alias -g '${1+"$@"}'='"$@"'
4474elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4475  set -o posix
4476fi
4477DUALCASE=1; export DUALCASE # for MKS sh
4478
4479# Support unset when possible.
4480if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4481  as_unset=unset
4482else
4483  as_unset=false
4484fi
4485
4486
4487# Work around bugs in pre-3.0 UWIN ksh.
4488$as_unset ENV MAIL MAILPATH
4489PS1='$ '
4490PS2='> '
4491PS4='+ '
4492
4493# NLS nuisances.
4494for as_var in \
4495  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4496  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4497  LC_TELEPHONE LC_TIME
4498do
4499  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4500    eval $as_var=C; export $as_var
4501  else
4502    $as_unset $as_var
4503  fi
4504done
4505
4506# Required to use basename.
4507if expr a : '\(a\)' >/dev/null 2>&1; then
4508  as_expr=expr
4509else
4510  as_expr=false
4511fi
4512
4513if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4514  as_basename=basename
4515else
4516  as_basename=false
4517fi
4518
4519
4520# Name of the executable.
4521as_me=`$as_basename "$0" ||
4522$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4523	 X"$0" : 'X\(//\)$' \| \
4524	 X"$0" : 'X\(/\)$' \| \
4525	 .     : '\(.\)' 2>/dev/null ||
4526echo X/"$0" |
4527    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4528  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
4529  	  /^X\/\(\/\).*/{ s//\1/; q; }
4530  	  s/.*/./; q'`
4531
4532
4533# PATH needs CR, and LINENO needs CR and PATH.
4534# Avoid depending upon Character Ranges.
4535as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4536as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4537as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4538as_cr_digits='0123456789'
4539as_cr_alnum=$as_cr_Letters$as_cr_digits
4540
4541# The user is always right.
4542if test "${PATH_SEPARATOR+set}" != set; then
4543  echo "#! /bin/sh" >conf$$.sh
4544  echo  "exit 0"   >>conf$$.sh
4545  chmod +x conf$$.sh
4546  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4547    PATH_SEPARATOR=';'
4548  else
4549    PATH_SEPARATOR=:
4550  fi
4551  rm -f conf$$.sh
4552fi
4553
4554
4555  as_lineno_1=$LINENO
4556  as_lineno_2=$LINENO
4557  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4558  test "x$as_lineno_1" != "x$as_lineno_2" &&
4559  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4560  # Find who we are.  Look in the path if we contain no path at all
4561  # relative or not.
4562  case $0 in
4563    *[\\/]* ) as_myself=$0 ;;
4564    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in $PATH
4566do
4567  IFS=$as_save_IFS
4568  test -z "$as_dir" && as_dir=.
4569  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4570done
4571
4572       ;;
4573  esac
4574  # We did not find ourselves, most probably we were run as `sh COMMAND'
4575  # in which case we are not to be found in the path.
4576  if test "x$as_myself" = x; then
4577    as_myself=$0
4578  fi
4579  if test ! -f "$as_myself"; then
4580    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4581echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4582   { (exit 1); exit 1; }; }
4583  fi
4584  case $CONFIG_SHELL in
4585  '')
4586    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4588do
4589  IFS=$as_save_IFS
4590  test -z "$as_dir" && as_dir=.
4591  for as_base in sh bash ksh sh5; do
4592	 case $as_dir in
4593	 /*)
4594	   if ("$as_dir/$as_base" -c '
4595  as_lineno_1=$LINENO
4596  as_lineno_2=$LINENO
4597  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4598  test "x$as_lineno_1" != "x$as_lineno_2" &&
4599  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4600	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4601	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4602	     CONFIG_SHELL=$as_dir/$as_base
4603	     export CONFIG_SHELL
4604	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4605	   fi;;
4606	 esac
4607       done
4608done
4609;;
4610  esac
4611
4612  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4613  # uniformly replaced by the line number.  The first 'sed' inserts a
4614  # line-number line before each line; the second 'sed' does the real
4615  # work.  The second script uses 'N' to pair each line-number line
4616  # with the numbered line, and appends trailing '-' during
4617  # substitution so that $LINENO is not a special case at line end.
4618  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4619  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4620  sed '=' <$as_myself |
4621    sed '
4622      N
4623      s,$,-,
4624      : loop
4625      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4626      t loop
4627      s,-$,,
4628      s,^['$as_cr_digits']*\n,,
4629    ' >$as_me.lineno &&
4630  chmod +x $as_me.lineno ||
4631    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4632echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4633   { (exit 1); exit 1; }; }
4634
4635  # Don't try to exec as it changes $[0], causing all sort of problems
4636  # (the dirname of $[0] is not the place where we might find the
4637  # original and so on.  Autoconf is especially sensible to this).
4638  . ./$as_me.lineno
4639  # Exit status is that of the last command.
4640  exit
4641}
4642
4643
4644case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4645  *c*,-n*) ECHO_N= ECHO_C='
4646' ECHO_T='	' ;;
4647  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4648  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4649esac
4650
4651if expr a : '\(a\)' >/dev/null 2>&1; then
4652  as_expr=expr
4653else
4654  as_expr=false
4655fi
4656
4657rm -f conf$$ conf$$.exe conf$$.file
4658echo >conf$$.file
4659if ln -s conf$$.file conf$$ 2>/dev/null; then
4660  # We could just check for DJGPP; but this test a) works b) is more generic
4661  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4662  if test -f conf$$.exe; then
4663    # Don't use ln at all; we don't have any links
4664    as_ln_s='cp -p'
4665  else
4666    as_ln_s='ln -s'
4667  fi
4668elif ln conf$$.file conf$$ 2>/dev/null; then
4669  as_ln_s=ln
4670else
4671  as_ln_s='cp -p'
4672fi
4673rm -f conf$$ conf$$.exe conf$$.file
4674
4675if mkdir -p . 2>/dev/null; then
4676  as_mkdir_p=:
4677else
4678  test -d ./-p && rmdir ./-p
4679  as_mkdir_p=false
4680fi
4681
4682as_executable_p="test -f"
4683
4684# Sed expression to map a string onto a valid CPP name.
4685as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4686
4687# Sed expression to map a string onto a valid variable name.
4688as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4689
4690
4691# IFS
4692# We need space, tab and new line, in precisely that order.
4693as_nl='
4694'
4695IFS=" 	$as_nl"
4696
4697# CDPATH.
4698$as_unset CDPATH
4699
4700exec 6>&1
4701
4702# Open the log real soon, to keep \$[0] and so on meaningful, and to
4703# report actual input values of CONFIG_FILES etc. instead of their
4704# values after options handling.  Logging --version etc. is OK.
4705exec 5>>config.log
4706{
4707  echo
4708  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4709## Running $as_me. ##
4710_ASBOX
4711} >&5
4712cat >&5 <<_CSEOF
4713
4714This file was extended by libpng $as_me 1.2.8, which was
4715generated by GNU Autoconf 2.59.  Invocation command line was
4716
4717  CONFIG_FILES    = $CONFIG_FILES
4718  CONFIG_HEADERS  = $CONFIG_HEADERS
4719  CONFIG_LINKS    = $CONFIG_LINKS
4720  CONFIG_COMMANDS = $CONFIG_COMMANDS
4721  $ $0 $@
4722
4723_CSEOF
4724echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4725echo >&5
4726_ACEOF
4727
4728# Files that config.status was made for.
4729if test -n "$ac_config_files"; then
4730  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4731fi
4732
4733if test -n "$ac_config_headers"; then
4734  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4735fi
4736
4737if test -n "$ac_config_links"; then
4738  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4739fi
4740
4741if test -n "$ac_config_commands"; then
4742  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4743fi
4744
4745cat >>$CONFIG_STATUS <<\_ACEOF
4746
4747ac_cs_usage="\
4748\`$as_me' instantiates files from templates according to the
4749current configuration.
4750
4751Usage: $0 [OPTIONS] [FILE]...
4752
4753  -h, --help       print this help, then exit
4754  -V, --version    print version number, then exit
4755  -q, --quiet      do not print progress messages
4756  -d, --debug      don't remove temporary files
4757      --recheck    update $as_me by reconfiguring in the same conditions
4758  --file=FILE[:TEMPLATE]
4759		   instantiate the configuration file FILE
4760  --header=FILE[:TEMPLATE]
4761		   instantiate the configuration header FILE
4762
4763Configuration files:
4764$config_files
4765
4766Configuration headers:
4767$config_headers
4768
4769Report bugs to <bug-autoconf@gnu.org>."
4770_ACEOF
4771
4772cat >>$CONFIG_STATUS <<_ACEOF
4773ac_cs_version="\\
4774libpng config.status 1.2.8
4775configured by $0, generated by GNU Autoconf 2.59,
4776  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4777
4778Copyright (C) 2003 Free Software Foundation, Inc.
4779This config.status script is free software; the Free Software Foundation
4780gives unlimited permission to copy, distribute and modify it."
4781srcdir=$srcdir
4782INSTALL="$INSTALL"
4783_ACEOF
4784
4785cat >>$CONFIG_STATUS <<\_ACEOF
4786# If no file are specified by the user, then we need to provide default
4787# value.  By we need to know if files were specified by the user.
4788ac_need_defaults=:
4789while test $# != 0
4790do
4791  case $1 in
4792  --*=*)
4793    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4794    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4795    ac_shift=:
4796    ;;
4797  -*)
4798    ac_option=$1
4799    ac_optarg=$2
4800    ac_shift=shift
4801    ;;
4802  *) # This is not an option, so the user has probably given explicit
4803     # arguments.
4804     ac_option=$1
4805     ac_need_defaults=false;;
4806  esac
4807
4808  case $ac_option in
4809  # Handling of the options.
4810_ACEOF
4811cat >>$CONFIG_STATUS <<\_ACEOF
4812  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4813    ac_cs_recheck=: ;;
4814  --version | --vers* | -V )
4815    echo "$ac_cs_version"; exit 0 ;;
4816  --he | --h)
4817    # Conflict between --help and --header
4818    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4819Try \`$0 --help' for more information." >&5
4820echo "$as_me: error: ambiguous option: $1
4821Try \`$0 --help' for more information." >&2;}
4822   { (exit 1); exit 1; }; };;
4823  --help | --hel | -h )
4824    echo "$ac_cs_usage"; exit 0 ;;
4825  --debug | --d* | -d )
4826    debug=: ;;
4827  --file | --fil | --fi | --f )
4828    $ac_shift
4829    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4830    ac_need_defaults=false;;
4831  --header | --heade | --head | --hea )
4832    $ac_shift
4833    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4834    ac_need_defaults=false;;
4835  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4836  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4837    ac_cs_silent=: ;;
4838
4839  # This is an error.
4840  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4841Try \`$0 --help' for more information." >&5
4842echo "$as_me: error: unrecognized option: $1
4843Try \`$0 --help' for more information." >&2;}
4844   { (exit 1); exit 1; }; } ;;
4845
4846  *) ac_config_targets="$ac_config_targets $1" ;;
4847
4848  esac
4849  shift
4850done
4851
4852ac_configure_extra_args=
4853
4854if $ac_cs_silent; then
4855  exec 6>/dev/null
4856  ac_configure_extra_args="$ac_configure_extra_args --silent"
4857fi
4858
4859_ACEOF
4860cat >>$CONFIG_STATUS <<_ACEOF
4861if \$ac_cs_recheck; then
4862  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4863  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4864fi
4865
4866_ACEOF
4867
4868
4869
4870
4871
4872cat >>$CONFIG_STATUS <<\_ACEOF
4873for ac_config_target in $ac_config_targets
4874do
4875  case "$ac_config_target" in
4876  # Handling of arguments.
4877  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4878  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4879  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4880echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4881   { (exit 1); exit 1; }; };;
4882  esac
4883done
4884
4885# If the user did not use the arguments to specify the items to instantiate,
4886# then the envvar interface is used.  Set only those that are not.
4887# We use the long form for the default assignment because of an extremely
4888# bizarre bug on SunOS 4.1.3.
4889if $ac_need_defaults; then
4890  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4891  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4892fi
4893
4894# Have a temporary directory for convenience.  Make it in the build tree
4895# simply because there is no reason to put it here, and in addition,
4896# creating and moving files from /tmp can sometimes cause problems.
4897# Create a temporary directory, and hook for its removal unless debugging.
4898$debug ||
4899{
4900  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4901  trap '{ (exit 1); exit 1; }' 1 2 13 15
4902}
4903
4904# Create a (secure) tmp directory for tmp files.
4905
4906{
4907  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4908  test -n "$tmp" && test -d "$tmp"
4909}  ||
4910{
4911  tmp=./confstat$$-$RANDOM
4912  (umask 077 && mkdir $tmp)
4913} ||
4914{
4915   echo "$me: cannot create a temporary directory in ." >&2
4916   { (exit 1); exit 1; }
4917}
4918
4919_ACEOF
4920
4921cat >>$CONFIG_STATUS <<_ACEOF
4922
4923#
4924# CONFIG_FILES section.
4925#
4926
4927# No need to generate the scripts if there are no CONFIG_FILES.
4928# This happens for instance when ./config.status config.h
4929if test -n "\$CONFIG_FILES"; then
4930  # Protect against being on the right side of a sed subst in config.status.
4931  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4932   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4933s,@SHELL@,$SHELL,;t t
4934s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4935s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4936s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4937s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4938s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4939s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4940s,@exec_prefix@,$exec_prefix,;t t
4941s,@prefix@,$prefix,;t t
4942s,@program_transform_name@,$program_transform_name,;t t
4943s,@bindir@,$bindir,;t t
4944s,@sbindir@,$sbindir,;t t
4945s,@libexecdir@,$libexecdir,;t t
4946s,@datadir@,$datadir,;t t
4947s,@sysconfdir@,$sysconfdir,;t t
4948s,@sharedstatedir@,$sharedstatedir,;t t
4949s,@localstatedir@,$localstatedir,;t t
4950s,@libdir@,$libdir,;t t
4951s,@includedir@,$includedir,;t t
4952s,@oldincludedir@,$oldincludedir,;t t
4953s,@infodir@,$infodir,;t t
4954s,@mandir@,$mandir,;t t
4955s,@build_alias@,$build_alias,;t t
4956s,@host_alias@,$host_alias,;t t
4957s,@target_alias@,$target_alias,;t t
4958s,@DEFS@,$DEFS,;t t
4959s,@ECHO_C@,$ECHO_C,;t t
4960s,@ECHO_N@,$ECHO_N,;t t
4961s,@ECHO_T@,$ECHO_T,;t t
4962s,@LIBS@,$LIBS,;t t
4963s,@build@,$build,;t t
4964s,@build_cpu@,$build_cpu,;t t
4965s,@build_vendor@,$build_vendor,;t t
4966s,@build_os@,$build_os,;t t
4967s,@host@,$host,;t t
4968s,@host_cpu@,$host_cpu,;t t
4969s,@host_vendor@,$host_vendor,;t t
4970s,@host_os@,$host_os,;t t
4971s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4972s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4973s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4974s,@CYGPATH_W@,$CYGPATH_W,;t t
4975s,@PACKAGE@,$PACKAGE,;t t
4976s,@VERSION@,$VERSION,;t t
4977s,@ACLOCAL@,$ACLOCAL,;t t
4978s,@AUTOCONF@,$AUTOCONF,;t t
4979s,@AUTOMAKE@,$AUTOMAKE,;t t
4980s,@AUTOHEADER@,$AUTOHEADER,;t t
4981s,@MAKEINFO@,$MAKEINFO,;t t
4982s,@install_sh@,$install_sh,;t t
4983s,@STRIP@,$STRIP,;t t
4984s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4985s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4986s,@mkdir_p@,$mkdir_p,;t t
4987s,@AWK@,$AWK,;t t
4988s,@SET_MAKE@,$SET_MAKE,;t t
4989s,@am__leading_dot@,$am__leading_dot,;t t
4990s,@AMTAR@,$AMTAR,;t t
4991s,@am__tar@,$am__tar,;t t
4992s,@am__untar@,$am__untar,;t t
4993s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4994s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4995s,@MAINT@,$MAINT,;t t
4996s,@CC@,$CC,;t t
4997s,@CFLAGS@,$CFLAGS,;t t
4998s,@LDFLAGS@,$LDFLAGS,;t t
4999s,@CPPFLAGS@,$CPPFLAGS,;t t
5000s,@ac_ct_CC@,$ac_ct_CC,;t t
5001s,@EXEEXT@,$EXEEXT,;t t
5002s,@OBJEXT@,$OBJEXT,;t t
5003s,@RANLIB@,$RANLIB,;t t
5004s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5005s,@CPP@,$CPP,;t t
5006s,@EGREP@,$EGREP,;t t
5007s,@LIBOBJS@,$LIBOBJS,;t t
5008s,@POW_LIB@,$POW_LIB,;t t
5009s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5010CEOF
5011
5012_ACEOF
5013
5014  cat >>$CONFIG_STATUS <<\_ACEOF
5015  # Split the substitutions into bite-sized pieces for seds with
5016  # small command number limits, like on Digital OSF/1 and HP-UX.
5017  ac_max_sed_lines=48
5018  ac_sed_frag=1 # Number of current file.
5019  ac_beg=1 # First line for current file.
5020  ac_end=$ac_max_sed_lines # Line after last line for current file.
5021  ac_more_lines=:
5022  ac_sed_cmds=
5023  while $ac_more_lines; do
5024    if test $ac_beg -gt 1; then
5025      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5026    else
5027      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5028    fi
5029    if test ! -s $tmp/subs.frag; then
5030      ac_more_lines=false
5031    else
5032      # The purpose of the label and of the branching condition is to
5033      # speed up the sed processing (if there are no `@' at all, there
5034      # is no need to browse any of the substitutions).
5035      # These are the two extra sed commands mentioned above.
5036      (echo ':t
5037  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5038      if test -z "$ac_sed_cmds"; then
5039	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5040      else
5041	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5042      fi
5043      ac_sed_frag=`expr $ac_sed_frag + 1`
5044      ac_beg=$ac_end
5045      ac_end=`expr $ac_end + $ac_max_sed_lines`
5046    fi
5047  done
5048  if test -z "$ac_sed_cmds"; then
5049    ac_sed_cmds=cat
5050  fi
5051fi # test -n "$CONFIG_FILES"
5052
5053_ACEOF
5054cat >>$CONFIG_STATUS <<\_ACEOF
5055for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5056  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5057  case $ac_file in
5058  - | *:- | *:-:* ) # input from stdin
5059	cat >$tmp/stdin
5060	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5061	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5062  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5063	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5064  * )   ac_file_in=$ac_file.in ;;
5065  esac
5066
5067  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5068  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5069$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5070	 X"$ac_file" : 'X\(//\)[^/]' \| \
5071	 X"$ac_file" : 'X\(//\)$' \| \
5072	 X"$ac_file" : 'X\(/\)' \| \
5073	 .     : '\(.\)' 2>/dev/null ||
5074echo X"$ac_file" |
5075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5076  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5077  	  /^X\(\/\/\)$/{ s//\1/; q; }
5078  	  /^X\(\/\).*/{ s//\1/; q; }
5079  	  s/.*/./; q'`
5080  { if $as_mkdir_p; then
5081    mkdir -p "$ac_dir"
5082  else
5083    as_dir="$ac_dir"
5084    as_dirs=
5085    while test ! -d "$as_dir"; do
5086      as_dirs="$as_dir $as_dirs"
5087      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5088$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5089	 X"$as_dir" : 'X\(//\)[^/]' \| \
5090	 X"$as_dir" : 'X\(//\)$' \| \
5091	 X"$as_dir" : 'X\(/\)' \| \
5092	 .     : '\(.\)' 2>/dev/null ||
5093echo X"$as_dir" |
5094    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5095  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5096  	  /^X\(\/\/\)$/{ s//\1/; q; }
5097  	  /^X\(\/\).*/{ s//\1/; q; }
5098  	  s/.*/./; q'`
5099    done
5100    test ! -n "$as_dirs" || mkdir $as_dirs
5101  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5102echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5103   { (exit 1); exit 1; }; }; }
5104
5105  ac_builddir=.
5106
5107if test "$ac_dir" != .; then
5108  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5109  # A "../" for each directory in $ac_dir_suffix.
5110  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5111else
5112  ac_dir_suffix= ac_top_builddir=
5113fi
5114
5115case $srcdir in
5116  .)  # No --srcdir option.  We are building in place.
5117    ac_srcdir=.
5118    if test -z "$ac_top_builddir"; then
5119       ac_top_srcdir=.
5120    else
5121       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5122    fi ;;
5123  [\\/]* | ?:[\\/]* )  # Absolute path.
5124    ac_srcdir=$srcdir$ac_dir_suffix;
5125    ac_top_srcdir=$srcdir ;;
5126  *) # Relative path.
5127    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5128    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5129esac
5130
5131# Do not use `cd foo && pwd` to compute absolute paths, because
5132# the directories may not exist.
5133case `pwd` in
5134.) ac_abs_builddir="$ac_dir";;
5135*)
5136  case "$ac_dir" in
5137  .) ac_abs_builddir=`pwd`;;
5138  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5139  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5140  esac;;
5141esac
5142case $ac_abs_builddir in
5143.) ac_abs_top_builddir=${ac_top_builddir}.;;
5144*)
5145  case ${ac_top_builddir}. in
5146  .) ac_abs_top_builddir=$ac_abs_builddir;;
5147  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5148  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5149  esac;;
5150esac
5151case $ac_abs_builddir in
5152.) ac_abs_srcdir=$ac_srcdir;;
5153*)
5154  case $ac_srcdir in
5155  .) ac_abs_srcdir=$ac_abs_builddir;;
5156  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5157  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5158  esac;;
5159esac
5160case $ac_abs_builddir in
5161.) ac_abs_top_srcdir=$ac_top_srcdir;;
5162*)
5163  case $ac_top_srcdir in
5164  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5165  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5166  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5167  esac;;
5168esac
5169
5170
5171  case $INSTALL in
5172  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5173  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5174  esac
5175
5176  if test x"$ac_file" != x-; then
5177    { echo "$as_me:$LINENO: creating $ac_file" >&5
5178echo "$as_me: creating $ac_file" >&6;}
5179    rm -f "$ac_file"
5180  fi
5181  # Let's still pretend it is `configure' which instantiates (i.e., don't
5182  # use $as_me), people would be surprised to read:
5183  #    /* config.h.  Generated by config.status.  */
5184  if test x"$ac_file" = x-; then
5185    configure_input=
5186  else
5187    configure_input="$ac_file.  "
5188  fi
5189  configure_input=$configure_input"Generated from `echo $ac_file_in |
5190				     sed 's,.*/,,'` by configure."
5191
5192  # First look for the input files in the build tree, otherwise in the
5193  # src tree.
5194  ac_file_inputs=`IFS=:
5195    for f in $ac_file_in; do
5196      case $f in
5197      -) echo $tmp/stdin ;;
5198      [\\/$]*)
5199	 # Absolute (can't be DOS-style, as IFS=:)
5200	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5201echo "$as_me: error: cannot find input file: $f" >&2;}
5202   { (exit 1); exit 1; }; }
5203	 echo "$f";;
5204      *) # Relative
5205	 if test -f "$f"; then
5206	   # Build tree
5207	   echo "$f"
5208	 elif test -f "$srcdir/$f"; then
5209	   # Source tree
5210	   echo "$srcdir/$f"
5211	 else
5212	   # /dev/null tree
5213	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5214echo "$as_me: error: cannot find input file: $f" >&2;}
5215   { (exit 1); exit 1; }; }
5216	 fi;;
5217      esac
5218    done` || { (exit 1); exit 1; }
5219_ACEOF
5220cat >>$CONFIG_STATUS <<_ACEOF
5221  sed "$ac_vpsub
5222$extrasub
5223_ACEOF
5224cat >>$CONFIG_STATUS <<\_ACEOF
5225:t
5226/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5227s,@configure_input@,$configure_input,;t t
5228s,@srcdir@,$ac_srcdir,;t t
5229s,@abs_srcdir@,$ac_abs_srcdir,;t t
5230s,@top_srcdir@,$ac_top_srcdir,;t t
5231s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5232s,@builddir@,$ac_builddir,;t t
5233s,@abs_builddir@,$ac_abs_builddir,;t t
5234s,@top_builddir@,$ac_top_builddir,;t t
5235s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5236s,@INSTALL@,$ac_INSTALL,;t t
5237" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5238  rm -f $tmp/stdin
5239  if test x"$ac_file" != x-; then
5240    mv $tmp/out $ac_file
5241  else
5242    cat $tmp/out
5243    rm -f $tmp/out
5244  fi
5245
5246done
5247_ACEOF
5248cat >>$CONFIG_STATUS <<\_ACEOF
5249
5250#
5251# CONFIG_HEADER section.
5252#
5253
5254# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5255# NAME is the cpp macro being defined and VALUE is the value it is being given.
5256#
5257# ac_d sets the value in "#define NAME VALUE" lines.
5258ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
5259ac_dB='[	 ].*$,\1#\2'
5260ac_dC=' '
5261ac_dD=',;t'
5262# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5263ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
5264ac_uB='$,\1#\2define\3'
5265ac_uC=' '
5266ac_uD=',;t'
5267
5268for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5269  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5270  case $ac_file in
5271  - | *:- | *:-:* ) # input from stdin
5272	cat >$tmp/stdin
5273	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5274	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5275  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5276	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5277  * )   ac_file_in=$ac_file.in ;;
5278  esac
5279
5280  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5281echo "$as_me: creating $ac_file" >&6;}
5282
5283  # First look for the input files in the build tree, otherwise in the
5284  # src tree.
5285  ac_file_inputs=`IFS=:
5286    for f in $ac_file_in; do
5287      case $f in
5288      -) echo $tmp/stdin ;;
5289      [\\/$]*)
5290	 # Absolute (can't be DOS-style, as IFS=:)
5291	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5292echo "$as_me: error: cannot find input file: $f" >&2;}
5293   { (exit 1); exit 1; }; }
5294	 # Do quote $f, to prevent DOS paths from being IFS'd.
5295	 echo "$f";;
5296      *) # Relative
5297	 if test -f "$f"; then
5298	   # Build tree
5299	   echo "$f"
5300	 elif test -f "$srcdir/$f"; then
5301	   # Source tree
5302	   echo "$srcdir/$f"
5303	 else
5304	   # /dev/null tree
5305	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5306echo "$as_me: error: cannot find input file: $f" >&2;}
5307   { (exit 1); exit 1; }; }
5308	 fi;;
5309      esac
5310    done` || { (exit 1); exit 1; }
5311  # Remove the trailing spaces.
5312  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
5313
5314_ACEOF
5315
5316# Transform confdefs.h into two sed scripts, `conftest.defines' and
5317# `conftest.undefs', that substitutes the proper values into
5318# config.h.in to produce config.h.  The first handles `#define'
5319# templates, and the second `#undef' templates.
5320# And first: Protect against being on the right side of a sed subst in
5321# config.status.  Protect against being in an unquoted here document
5322# in config.status.
5323rm -f conftest.defines conftest.undefs
5324# Using a here document instead of a string reduces the quoting nightmare.
5325# Putting comments in sed scripts is not portable.
5326#
5327# `end' is used to avoid that the second main sed command (meant for
5328# 0-ary CPP macros) applies to n-ary macro definitions.
5329# See the Autoconf documentation for `clear'.
5330cat >confdef2sed.sed <<\_ACEOF
5331s/[\\&,]/\\&/g
5332s,[\\$`],\\&,g
5333t clear
5334: clear
5335s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5336t end
5337s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5338: end
5339_ACEOF
5340# If some macros were called several times there might be several times
5341# the same #defines, which is useless.  Nevertheless, we may not want to
5342# sort them, since we want the *last* AC-DEFINE to be honored.
5343uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5344sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5345rm -f confdef2sed.sed
5346
5347# This sed command replaces #undef with comments.  This is necessary, for
5348# example, in the case of _POSIX_SOURCE, which is predefined and required
5349# on some systems where configure will not decide to define it.
5350cat >>conftest.undefs <<\_ACEOF
5351s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5352_ACEOF
5353
5354# Break up conftest.defines because some shells have a limit on the size
5355# of here documents, and old seds have small limits too (100 cmds).
5356echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5357echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5358echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5359echo '  :' >>$CONFIG_STATUS
5360rm -f conftest.tail
5361while grep . conftest.defines >/dev/null
5362do
5363  # Write a limited-size here document to $tmp/defines.sed.
5364  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5365  # Speed up: don't consider the non `#define' lines.
5366  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
5367  # Work around the forget-to-reset-the-flag bug.
5368  echo 't clr' >>$CONFIG_STATUS
5369  echo ': clr' >>$CONFIG_STATUS
5370  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5371  echo 'CEOF
5372  sed -f $tmp/defines.sed $tmp/in >$tmp/out
5373  rm -f $tmp/in
5374  mv $tmp/out $tmp/in
5375' >>$CONFIG_STATUS
5376  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5377  rm -f conftest.defines
5378  mv conftest.tail conftest.defines
5379done
5380rm -f conftest.defines
5381echo '  fi # grep' >>$CONFIG_STATUS
5382echo >>$CONFIG_STATUS
5383
5384# Break up conftest.undefs because some shells have a limit on the size
5385# of here documents, and old seds have small limits too (100 cmds).
5386echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5387rm -f conftest.tail
5388while grep . conftest.undefs >/dev/null
5389do
5390  # Write a limited-size here document to $tmp/undefs.sed.
5391  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5392  # Speed up: don't consider the non `#undef'
5393  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
5394  # Work around the forget-to-reset-the-flag bug.
5395  echo 't clr' >>$CONFIG_STATUS
5396  echo ': clr' >>$CONFIG_STATUS
5397  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5398  echo 'CEOF
5399  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5400  rm -f $tmp/in
5401  mv $tmp/out $tmp/in
5402' >>$CONFIG_STATUS
5403  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5404  rm -f conftest.undefs
5405  mv conftest.tail conftest.undefs
5406done
5407rm -f conftest.undefs
5408
5409cat >>$CONFIG_STATUS <<\_ACEOF
5410  # Let's still pretend it is `configure' which instantiates (i.e., don't
5411  # use $as_me), people would be surprised to read:
5412  #    /* config.h.  Generated by config.status.  */
5413  if test x"$ac_file" = x-; then
5414    echo "/* Generated by configure.  */" >$tmp/config.h
5415  else
5416    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5417  fi
5418  cat $tmp/in >>$tmp/config.h
5419  rm -f $tmp/in
5420  if test x"$ac_file" != x-; then
5421    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5422      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5423echo "$as_me: $ac_file is unchanged" >&6;}
5424    else
5425      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5426$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5427	 X"$ac_file" : 'X\(//\)[^/]' \| \
5428	 X"$ac_file" : 'X\(//\)$' \| \
5429	 X"$ac_file" : 'X\(/\)' \| \
5430	 .     : '\(.\)' 2>/dev/null ||
5431echo X"$ac_file" |
5432    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5433  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5434  	  /^X\(\/\/\)$/{ s//\1/; q; }
5435  	  /^X\(\/\).*/{ s//\1/; q; }
5436  	  s/.*/./; q'`
5437      { if $as_mkdir_p; then
5438    mkdir -p "$ac_dir"
5439  else
5440    as_dir="$ac_dir"
5441    as_dirs=
5442    while test ! -d "$as_dir"; do
5443      as_dirs="$as_dir $as_dirs"
5444      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5445$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5446	 X"$as_dir" : 'X\(//\)[^/]' \| \
5447	 X"$as_dir" : 'X\(//\)$' \| \
5448	 X"$as_dir" : 'X\(/\)' \| \
5449	 .     : '\(.\)' 2>/dev/null ||
5450echo X"$as_dir" |
5451    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5452  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5453  	  /^X\(\/\/\)$/{ s//\1/; q; }
5454  	  /^X\(\/\).*/{ s//\1/; q; }
5455  	  s/.*/./; q'`
5456    done
5457    test ! -n "$as_dirs" || mkdir $as_dirs
5458  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5459echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5460   { (exit 1); exit 1; }; }; }
5461
5462      rm -f $ac_file
5463      mv $tmp/config.h $ac_file
5464    fi
5465  else
5466    cat $tmp/config.h
5467    rm -f $tmp/config.h
5468  fi
5469# Compute $ac_file's index in $config_headers.
5470_am_stamp_count=1
5471for _am_header in $config_headers :; do
5472  case $_am_header in
5473    $ac_file | $ac_file:* )
5474      break ;;
5475    * )
5476      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5477  esac
5478done
5479echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
5480$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5481	 X$ac_file : 'X\(//\)[^/]' \| \
5482	 X$ac_file : 'X\(//\)$' \| \
5483	 X$ac_file : 'X\(/\)' \| \
5484	 .     : '\(.\)' 2>/dev/null ||
5485echo X$ac_file |
5486    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5487  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5488  	  /^X\(\/\/\)$/{ s//\1/; q; }
5489  	  /^X\(\/\).*/{ s//\1/; q; }
5490  	  s/.*/./; q'`/stamp-h$_am_stamp_count
5491done
5492_ACEOF
5493
5494cat >>$CONFIG_STATUS <<\_ACEOF
5495
5496{ (exit 0); exit 0; }
5497_ACEOF
5498chmod +x $CONFIG_STATUS
5499ac_clean_files=$ac_clean_files_save
5500
5501
5502# configure is writing to config.log, and then calls config.status.
5503# config.status does its own redirection, appending to config.log.
5504# Unfortunately, on DOS this fails, as config.log is still kept open
5505# by configure, so config.status won't be able to write to it; its
5506# output is simply discarded.  So we exec the FD to /dev/null,
5507# effectively closing config.log, so it can be properly (re)opened and
5508# appended to by config.status.  When coming back to configure, we
5509# need to make the FD available again.
5510if test "$no_create" != yes; then
5511  ac_cs_success=:
5512  ac_config_status_args=
5513  test "$silent" = yes &&
5514    ac_config_status_args="$ac_config_status_args --quiet"
5515  exec 5>/dev/null
5516  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5517  exec 5>>config.log
5518  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5519  # would make configure fail if this is the last instruction.
5520  $ac_cs_success || { (exit 1); exit 1; }
5521fi
5522
5523