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