1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Arts++ 1.1.a12.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME='Arts++'
269PACKAGE_TARNAME='arts--'
270PACKAGE_VERSION='1.1.a12'
271PACKAGE_STRING='Arts++ 1.1.a12'
272PACKAGE_BUGREPORT=''
273
274ac_unique_file="classes/include/Arts.hh"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CXXCPP EGREP RANLIB ac_ct_RANLIB X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os LD NM LN_S LIBTOOL have_xrt3d have_xrtgear have_xrtfield have_xrttable have_xrtmvc have_xrtgraph have_xrtpds flexdir FLEXINC FLEXLIB XINCDIR XLIBDIR MOTIFINCDIR MOTIFLIBDIR artspptop docurl debug OSNAME TAR PKG_VERSION C_R_A LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CXX_set=${CXX+set}
770ac_env_CXX_value=$CXX
771ac_cv_env_CXX_set=${CXX+set}
772ac_cv_env_CXX_value=$CXX
773ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774ac_env_CXXFLAGS_value=$CXXFLAGS
775ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777ac_env_CXXCPP_set=${CXXCPP+set}
778ac_env_CXXCPP_value=$CXXCPP
779ac_cv_env_CXXCPP_set=${CXXCPP+set}
780ac_cv_env_CXXCPP_value=$CXXCPP
781
782#
783# Report the --help message.
784#
785if test "$ac_init_help" = "long"; then
786  # Omit some internal or obsolete options to make the list less imposing.
787  # This message is too long to be a string in the A/UX 3.1 sh.
788  cat <<_ACEOF
789\`configure' configures Arts++ 1.1.a12 to adapt to many kinds of systems.
790
791Usage: $0 [OPTION]... [VAR=VALUE]...
792
793To assign environment variables (e.g., CC, CFLAGS...), specify them as
794VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796Defaults for the options are specified in brackets.
797
798Configuration:
799  -h, --help              display this help and exit
800      --help=short        display options specific to this package
801      --help=recursive    display the short help of all the included packages
802  -V, --version           display version information and exit
803  -q, --quiet, --silent   do not print \`checking...' messages
804      --cache-file=FILE   cache test results in FILE [disabled]
805  -C, --config-cache      alias for \`--cache-file=config.cache'
806  -n, --no-create         do not create output files
807      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809_ACEOF
810
811  cat <<_ACEOF
812Installation directories:
813  --prefix=PREFIX         install architecture-independent files in PREFIX
814			  [$ac_default_prefix]
815  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816			  [PREFIX]
817
818By default, \`make install' will install all the files in
819\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821for instance \`--prefix=\$HOME'.
822
823For better control, use the options below.
824
825Fine tuning of the installation directories:
826  --bindir=DIR           user executables [EPREFIX/bin]
827  --sbindir=DIR          system admin executables [EPREFIX/sbin]
828  --libexecdir=DIR       program executables [EPREFIX/libexec]
829  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833  --libdir=DIR           object code libraries [EPREFIX/lib]
834  --includedir=DIR       C header files [PREFIX/include]
835  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836  --infodir=DIR          info documentation [PREFIX/info]
837  --mandir=DIR           man documentation [PREFIX/man]
838_ACEOF
839
840  cat <<\_ACEOF
841
842X features:
843  --x-includes=DIR    X include files are in DIR
844  --x-libraries=DIR   X library files are in DIR
845
846System types:
847  --build=BUILD     configure for building on BUILD [guessed]
848  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
849  --target=TARGET   configure for building compilers for TARGET [HOST]
850_ACEOF
851fi
852
853if test -n "$ac_init_help"; then
854  case $ac_init_help in
855     short | recursive ) echo "Configuration of Arts++ 1.1.a12:";;
856   esac
857  cat <<\_ACEOF
858
859Optional Features:
860  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
861  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
862  --enable-shared=PKGS  build shared libraries default=no
863  --enable-static=PKGS  build static libraries default=yes
864  --enable-fast-install=PKGS  optimize for fast installation default=yes
865  --disable-libtool-lock  avoid locking (might break parallel builds)
866  --disable-debug            disable debugging (enabled by default)
867
868Optional Packages:
869  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
870  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
871  --with-x                use the X Window System
872  --with-gnu-ld           assume the C compiler uses GNU ld default=no
873  --with-flexdir=value   set \$flexdir to value (flex directory)
874  --with-XINCDIR=value   set \$XINCDIR to value (X11 include directory)
875  --with-XLIBDIR=value   set \$XLIBDIR to value (X11 library directory)
876  --with-MOTIFINCDIR=value   set \$MOTIFINCDIR to value ()
877  --with-MOTIFLIBDIR=value   set \$MOTIFLIBDIR to value ()
878  --with-artspptop=value   set \$artspptop to value (arts++ top-level source directory)
879  --with-docurl=value   set \$docurl to value (top-level documentation URL)
880
881Some influential environment variables:
882  CC          C compiler command
883  CFLAGS      C compiler flags
884  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
885              nonstandard directory <lib dir>
886  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
887              headers in a nonstandard directory <include dir>
888  CXX         C++ compiler command
889  CXXFLAGS    C++ compiler flags
890  CXXCPP      C++ preprocessor
891
892Use these variables to override the choices made by `configure' or to help
893it to find libraries and programs with nonstandard names/locations.
894
895_ACEOF
896fi
897
898if test "$ac_init_help" = "recursive"; then
899  # If there are subdirs, report their specific --help.
900  ac_popdir=`pwd`
901  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902    test -d $ac_dir || continue
903    ac_builddir=.
904
905if test "$ac_dir" != .; then
906  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907  # A "../" for each directory in $ac_dir_suffix.
908  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909else
910  ac_dir_suffix= ac_top_builddir=
911fi
912
913case $srcdir in
914  .)  # No --srcdir option.  We are building in place.
915    ac_srcdir=.
916    if test -z "$ac_top_builddir"; then
917       ac_top_srcdir=.
918    else
919       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920    fi ;;
921  [\\/]* | ?:[\\/]* )  # Absolute path.
922    ac_srcdir=$srcdir$ac_dir_suffix;
923    ac_top_srcdir=$srcdir ;;
924  *) # Relative path.
925    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926    ac_top_srcdir=$ac_top_builddir$srcdir ;;
927esac
928
929# Do not use `cd foo && pwd` to compute absolute paths, because
930# the directories may not exist.
931case `pwd` in
932.) ac_abs_builddir="$ac_dir";;
933*)
934  case "$ac_dir" in
935  .) ac_abs_builddir=`pwd`;;
936  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937  *) ac_abs_builddir=`pwd`/"$ac_dir";;
938  esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_top_builddir=${ac_top_builddir}.;;
942*)
943  case ${ac_top_builddir}. in
944  .) ac_abs_top_builddir=$ac_abs_builddir;;
945  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947  esac;;
948esac
949case $ac_abs_builddir in
950.) ac_abs_srcdir=$ac_srcdir;;
951*)
952  case $ac_srcdir in
953  .) ac_abs_srcdir=$ac_abs_builddir;;
954  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956  esac;;
957esac
958case $ac_abs_builddir in
959.) ac_abs_top_srcdir=$ac_top_srcdir;;
960*)
961  case $ac_top_srcdir in
962  .) ac_abs_top_srcdir=$ac_abs_builddir;;
963  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965  esac;;
966esac
967
968    cd $ac_dir
969    # Check for guested configure; otherwise get Cygnus style configure.
970    if test -f $ac_srcdir/configure.gnu; then
971      echo
972      $SHELL $ac_srcdir/configure.gnu  --help=recursive
973    elif test -f $ac_srcdir/configure; then
974      echo
975      $SHELL $ac_srcdir/configure  --help=recursive
976    elif test -f $ac_srcdir/configure.ac ||
977	   test -f $ac_srcdir/configure.in; then
978      echo
979      $ac_configure --help
980    else
981      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982    fi
983    cd $ac_popdir
984  done
985fi
986
987test -n "$ac_init_help" && exit 0
988if $ac_init_version; then
989  cat <<\_ACEOF
990Arts++ configure 1.1.a12
991generated by GNU Autoconf 2.59
992
993Copyright (C) 2003 Free Software Foundation, Inc.
994This configure script is free software; the Free Software Foundation
995gives unlimited permission to copy, distribute and modify it.
996_ACEOF
997  exit 0
998fi
999exec 5>config.log
1000cat >&5 <<_ACEOF
1001This file contains any messages produced by compilers while
1002running configure, to aid debugging if configure makes a mistake.
1003
1004It was created by Arts++ $as_me 1.1.a12, which was
1005generated by GNU Autoconf 2.59.  Invocation command line was
1006
1007  $ $0 $@
1008
1009_ACEOF
1010{
1011cat <<_ASUNAME
1012## --------- ##
1013## Platform. ##
1014## --------- ##
1015
1016hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1024
1025/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1026/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1027/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1029/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1030/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1031/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1032
1033_ASUNAME
1034
1035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036for as_dir in $PATH
1037do
1038  IFS=$as_save_IFS
1039  test -z "$as_dir" && as_dir=.
1040  echo "PATH: $as_dir"
1041done
1042
1043} >&5
1044
1045cat >&5 <<_ACEOF
1046
1047
1048## ----------- ##
1049## Core tests. ##
1050## ----------- ##
1051
1052_ACEOF
1053
1054
1055# Keep a trace of the command line.
1056# Strip out --no-create and --no-recursion so they do not pile up.
1057# Strip out --silent because we don't want to record it for future runs.
1058# Also quote any args containing shell meta-characters.
1059# Make two passes to allow for proper duplicate-argument suppression.
1060ac_configure_args=
1061ac_configure_args0=
1062ac_configure_args1=
1063ac_sep=
1064ac_must_keep_next=false
1065for ac_pass in 1 2
1066do
1067  for ac_arg
1068  do
1069    case $ac_arg in
1070    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072    | -silent | --silent | --silen | --sile | --sil)
1073      continue ;;
1074    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076    esac
1077    case $ac_pass in
1078    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079    2)
1080      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081      if test $ac_must_keep_next = true; then
1082	ac_must_keep_next=false # Got value, back to normal.
1083      else
1084	case $ac_arg in
1085	  *=* | --config-cache | -C | -disable-* | --disable-* \
1086	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088	  | -with-* | --with-* | -without-* | --without-* | --x)
1089	    case "$ac_configure_args0 " in
1090	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091	    esac
1092	    ;;
1093	  -* ) ac_must_keep_next=true ;;
1094	esac
1095      fi
1096      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097      # Get rid of the leading space.
1098      ac_sep=" "
1099      ;;
1100    esac
1101  done
1102done
1103$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106# When interrupted or exit'd, cleanup temporary files, and complete
1107# config.log.  We remove comments because anyway the quotes in there
1108# would cause problems or look ugly.
1109# WARNING: Be sure not to use single quotes in there, as some shells,
1110# such as our DU 5.0 friend, will then `close' the trap.
1111trap 'exit_status=$?
1112  # Save into config.log some information that might help in debugging.
1113  {
1114    echo
1115
1116    cat <<\_ASBOX
1117## ---------------- ##
1118## Cache variables. ##
1119## ---------------- ##
1120_ASBOX
1121    echo
1122    # The following way of writing the cache mishandles newlines in values,
1123{
1124  (set) 2>&1 |
1125    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126    *ac_space=\ *)
1127      sed -n \
1128	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130      ;;
1131    *)
1132      sed -n \
1133	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134      ;;
1135    esac;
1136}
1137    echo
1138
1139    cat <<\_ASBOX
1140## ----------------- ##
1141## Output variables. ##
1142## ----------------- ##
1143_ASBOX
1144    echo
1145    for ac_var in $ac_subst_vars
1146    do
1147      eval ac_val=$`echo $ac_var`
1148      echo "$ac_var='"'"'$ac_val'"'"'"
1149    done | sort
1150    echo
1151
1152    if test -n "$ac_subst_files"; then
1153      cat <<\_ASBOX
1154## ------------- ##
1155## Output files. ##
1156## ------------- ##
1157_ASBOX
1158      echo
1159      for ac_var in $ac_subst_files
1160      do
1161	eval ac_val=$`echo $ac_var`
1162	echo "$ac_var='"'"'$ac_val'"'"'"
1163      done | sort
1164      echo
1165    fi
1166
1167    if test -s confdefs.h; then
1168      cat <<\_ASBOX
1169## ----------- ##
1170## confdefs.h. ##
1171## ----------- ##
1172_ASBOX
1173      echo
1174      sed "/^$/d" confdefs.h | sort
1175      echo
1176    fi
1177    test "$ac_signal" != 0 &&
1178      echo "$as_me: caught signal $ac_signal"
1179    echo "$as_me: exit $exit_status"
1180  } >&5
1181  rm -f core *.core &&
1182  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183    exit $exit_status
1184     ' 0
1185for ac_signal in 1 2 13 15; do
1186  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187done
1188ac_signal=0
1189
1190# confdefs.h avoids OS command line length limits that DEFS can exceed.
1191rm -rf conftest* confdefs.h
1192# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193echo >confdefs.h
1194
1195# Predefined preprocessor variables.
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_NAME "$PACKAGE_NAME"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_VERSION "$PACKAGE_VERSION"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_STRING "$PACKAGE_STRING"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219_ACEOF
1220
1221
1222# Let the site file select an alternate cache file if it wants to.
1223# Prefer explicitly selected file to automatically selected ones.
1224if test -z "$CONFIG_SITE"; then
1225  if test "x$prefix" != xNONE; then
1226    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227  else
1228    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229  fi
1230fi
1231for ac_site_file in $CONFIG_SITE; do
1232  if test -r "$ac_site_file"; then
1233    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234echo "$as_me: loading site script $ac_site_file" >&6;}
1235    sed 's/^/| /' "$ac_site_file" >&5
1236    . "$ac_site_file"
1237  fi
1238done
1239
1240if test -r "$cache_file"; then
1241  # Some versions of bash will fail to source /dev/null (special
1242  # files actually), so we avoid doing that.
1243  if test -f "$cache_file"; then
1244    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245echo "$as_me: loading cache $cache_file" >&6;}
1246    case $cache_file in
1247      [\\/]* | ?:[\\/]* ) . $cache_file;;
1248      *)                      . ./$cache_file;;
1249    esac
1250  fi
1251else
1252  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253echo "$as_me: creating cache $cache_file" >&6;}
1254  >$cache_file
1255fi
1256
1257# Check that the precious variables saved in the cache have kept the same
1258# value.
1259ac_cache_corrupted=false
1260for ac_var in `(set) 2>&1 |
1261	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263  eval ac_new_set=\$ac_env_${ac_var}_set
1264  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265  eval ac_new_val="\$ac_env_${ac_var}_value"
1266  case $ac_old_set,$ac_new_set in
1267    set,)
1268      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270      ac_cache_corrupted=: ;;
1271    ,set)
1272      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274      ac_cache_corrupted=: ;;
1275    ,);;
1276    *)
1277      if test "x$ac_old_val" != "x$ac_new_val"; then
1278	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1281echo "$as_me:   former value:  $ac_old_val" >&2;}
1282	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1283echo "$as_me:   current value: $ac_new_val" >&2;}
1284	ac_cache_corrupted=:
1285      fi;;
1286  esac
1287  # Pass precious variables to config.status.
1288  if test "$ac_new_set" = set; then
1289    case $ac_new_val in
1290    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292    *) ac_arg=$ac_var=$ac_new_val ;;
1293    esac
1294    case " $ac_configure_args " in
1295      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1296      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297    esac
1298  fi
1299done
1300if $ac_cache_corrupted; then
1301  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305   { (exit 1); exit 1; }; }
1306fi
1307
1308ac_ext=c
1309ac_cpp='$CPP $CPPFLAGS'
1310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342                                        ac_config_headers="$ac_config_headers classes/include/caida_t.h classes/include/artslocal.h include/aclocal.h classes/include/Ipv4PrefixPatricia.hh"
1343
1344
1345
1346
1347if test "$prefix" = "NONE"; then
1348  prefix="/usr/local/arts"
1349fi
1350
1351ac_ext=cc
1352ac_cpp='$CXXCPP $CPPFLAGS'
1353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1356
1357
1358
1359ac_ext=c
1360ac_cpp='$CPP $CPPFLAGS'
1361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364if test -n "$ac_tool_prefix"; then
1365  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1366set dummy ${ac_tool_prefix}gcc; ac_word=$2
1367echo "$as_me:$LINENO: checking for $ac_word" >&5
1368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1369if test "${ac_cv_prog_CC+set}" = set; then
1370  echo $ECHO_N "(cached) $ECHO_C" >&6
1371else
1372  if test -n "$CC"; then
1373  ac_cv_prog_CC="$CC" # Let the user override the test.
1374else
1375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1376for as_dir in $PATH
1377do
1378  IFS=$as_save_IFS
1379  test -z "$as_dir" && as_dir=.
1380  for ac_exec_ext in '' $ac_executable_extensions; do
1381  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1382    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1383    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1384    break 2
1385  fi
1386done
1387done
1388
1389fi
1390fi
1391CC=$ac_cv_prog_CC
1392if test -n "$CC"; then
1393  echo "$as_me:$LINENO: result: $CC" >&5
1394echo "${ECHO_T}$CC" >&6
1395else
1396  echo "$as_me:$LINENO: result: no" >&5
1397echo "${ECHO_T}no" >&6
1398fi
1399
1400fi
1401if test -z "$ac_cv_prog_CC"; then
1402  ac_ct_CC=$CC
1403  # Extract the first word of "gcc", so it can be a program name with args.
1404set dummy gcc; ac_word=$2
1405echo "$as_me:$LINENO: checking for $ac_word" >&5
1406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1408  echo $ECHO_N "(cached) $ECHO_C" >&6
1409else
1410  if test -n "$ac_ct_CC"; then
1411  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1412else
1413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414for as_dir in $PATH
1415do
1416  IFS=$as_save_IFS
1417  test -z "$as_dir" && as_dir=.
1418  for ac_exec_ext in '' $ac_executable_extensions; do
1419  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420    ac_cv_prog_ac_ct_CC="gcc"
1421    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422    break 2
1423  fi
1424done
1425done
1426
1427fi
1428fi
1429ac_ct_CC=$ac_cv_prog_ac_ct_CC
1430if test -n "$ac_ct_CC"; then
1431  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1432echo "${ECHO_T}$ac_ct_CC" >&6
1433else
1434  echo "$as_me:$LINENO: result: no" >&5
1435echo "${ECHO_T}no" >&6
1436fi
1437
1438  CC=$ac_ct_CC
1439else
1440  CC="$ac_cv_prog_CC"
1441fi
1442
1443if test -z "$CC"; then
1444  if test -n "$ac_tool_prefix"; then
1445  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1446set dummy ${ac_tool_prefix}cc; ac_word=$2
1447echo "$as_me:$LINENO: checking for $ac_word" >&5
1448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1449if test "${ac_cv_prog_CC+set}" = set; then
1450  echo $ECHO_N "(cached) $ECHO_C" >&6
1451else
1452  if test -n "$CC"; then
1453  ac_cv_prog_CC="$CC" # Let the user override the test.
1454else
1455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1456for as_dir in $PATH
1457do
1458  IFS=$as_save_IFS
1459  test -z "$as_dir" && as_dir=.
1460  for ac_exec_ext in '' $ac_executable_extensions; do
1461  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1462    ac_cv_prog_CC="${ac_tool_prefix}cc"
1463    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464    break 2
1465  fi
1466done
1467done
1468
1469fi
1470fi
1471CC=$ac_cv_prog_CC
1472if test -n "$CC"; then
1473  echo "$as_me:$LINENO: result: $CC" >&5
1474echo "${ECHO_T}$CC" >&6
1475else
1476  echo "$as_me:$LINENO: result: no" >&5
1477echo "${ECHO_T}no" >&6
1478fi
1479
1480fi
1481if test -z "$ac_cv_prog_CC"; then
1482  ac_ct_CC=$CC
1483  # Extract the first word of "cc", so it can be a program name with args.
1484set dummy cc; ac_word=$2
1485echo "$as_me:$LINENO: checking for $ac_word" >&5
1486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1488  echo $ECHO_N "(cached) $ECHO_C" >&6
1489else
1490  if test -n "$ac_ct_CC"; then
1491  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1492else
1493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494for as_dir in $PATH
1495do
1496  IFS=$as_save_IFS
1497  test -z "$as_dir" && as_dir=.
1498  for ac_exec_ext in '' $ac_executable_extensions; do
1499  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500    ac_cv_prog_ac_ct_CC="cc"
1501    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502    break 2
1503  fi
1504done
1505done
1506
1507fi
1508fi
1509ac_ct_CC=$ac_cv_prog_ac_ct_CC
1510if test -n "$ac_ct_CC"; then
1511  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1512echo "${ECHO_T}$ac_ct_CC" >&6
1513else
1514  echo "$as_me:$LINENO: result: no" >&5
1515echo "${ECHO_T}no" >&6
1516fi
1517
1518  CC=$ac_ct_CC
1519else
1520  CC="$ac_cv_prog_CC"
1521fi
1522
1523fi
1524if test -z "$CC"; then
1525  # Extract the first word of "cc", so it can be a program name with args.
1526set dummy cc; ac_word=$2
1527echo "$as_me:$LINENO: checking for $ac_word" >&5
1528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529if test "${ac_cv_prog_CC+set}" = set; then
1530  echo $ECHO_N "(cached) $ECHO_C" >&6
1531else
1532  if test -n "$CC"; then
1533  ac_cv_prog_CC="$CC" # Let the user override the test.
1534else
1535  ac_prog_rejected=no
1536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537for as_dir in $PATH
1538do
1539  IFS=$as_save_IFS
1540  test -z "$as_dir" && as_dir=.
1541  for ac_exec_ext in '' $ac_executable_extensions; do
1542  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1544       ac_prog_rejected=yes
1545       continue
1546     fi
1547    ac_cv_prog_CC="cc"
1548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549    break 2
1550  fi
1551done
1552done
1553
1554if test $ac_prog_rejected = yes; then
1555  # We found a bogon in the path, so make sure we never use it.
1556  set dummy $ac_cv_prog_CC
1557  shift
1558  if test $# != 0; then
1559    # We chose a different compiler from the bogus one.
1560    # However, it has the same basename, so the bogon will be chosen
1561    # first if we set CC to just the basename; use the full file name.
1562    shift
1563    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1564  fi
1565fi
1566fi
1567fi
1568CC=$ac_cv_prog_CC
1569if test -n "$CC"; then
1570  echo "$as_me:$LINENO: result: $CC" >&5
1571echo "${ECHO_T}$CC" >&6
1572else
1573  echo "$as_me:$LINENO: result: no" >&5
1574echo "${ECHO_T}no" >&6
1575fi
1576
1577fi
1578if test -z "$CC"; then
1579  if test -n "$ac_tool_prefix"; then
1580  for ac_prog in cl
1581  do
1582    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1583set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1584echo "$as_me:$LINENO: checking for $ac_word" >&5
1585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586if test "${ac_cv_prog_CC+set}" = set; then
1587  echo $ECHO_N "(cached) $ECHO_C" >&6
1588else
1589  if test -n "$CC"; then
1590  ac_cv_prog_CC="$CC" # Let the user override the test.
1591else
1592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593for as_dir in $PATH
1594do
1595  IFS=$as_save_IFS
1596  test -z "$as_dir" && as_dir=.
1597  for ac_exec_ext in '' $ac_executable_extensions; do
1598  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1600    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601    break 2
1602  fi
1603done
1604done
1605
1606fi
1607fi
1608CC=$ac_cv_prog_CC
1609if test -n "$CC"; then
1610  echo "$as_me:$LINENO: result: $CC" >&5
1611echo "${ECHO_T}$CC" >&6
1612else
1613  echo "$as_me:$LINENO: result: no" >&5
1614echo "${ECHO_T}no" >&6
1615fi
1616
1617    test -n "$CC" && break
1618  done
1619fi
1620if test -z "$CC"; then
1621  ac_ct_CC=$CC
1622  for ac_prog in cl
1623do
1624  # Extract the first word of "$ac_prog", so it can be a program name with args.
1625set dummy $ac_prog; ac_word=$2
1626echo "$as_me:$LINENO: checking for $ac_word" >&5
1627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1629  echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631  if test -n "$ac_ct_CC"; then
1632  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1633else
1634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635for as_dir in $PATH
1636do
1637  IFS=$as_save_IFS
1638  test -z "$as_dir" && as_dir=.
1639  for ac_exec_ext in '' $ac_executable_extensions; do
1640  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641    ac_cv_prog_ac_ct_CC="$ac_prog"
1642    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643    break 2
1644  fi
1645done
1646done
1647
1648fi
1649fi
1650ac_ct_CC=$ac_cv_prog_ac_ct_CC
1651if test -n "$ac_ct_CC"; then
1652  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1653echo "${ECHO_T}$ac_ct_CC" >&6
1654else
1655  echo "$as_me:$LINENO: result: no" >&5
1656echo "${ECHO_T}no" >&6
1657fi
1658
1659  test -n "$ac_ct_CC" && break
1660done
1661
1662  CC=$ac_ct_CC
1663fi
1664
1665fi
1666
1667
1668test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1669See \`config.log' for more details." >&5
1670echo "$as_me: error: no acceptable C compiler found in \$PATH
1671See \`config.log' for more details." >&2;}
1672   { (exit 1); exit 1; }; }
1673
1674# Provide some information about the compiler.
1675echo "$as_me:$LINENO:" \
1676     "checking for C compiler version" >&5
1677ac_compiler=`set X $ac_compile; echo $2`
1678{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1679  (eval $ac_compiler --version </dev/null >&5) 2>&5
1680  ac_status=$?
1681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1682  (exit $ac_status); }
1683{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1684  (eval $ac_compiler -v </dev/null >&5) 2>&5
1685  ac_status=$?
1686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1687  (exit $ac_status); }
1688{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1689  (eval $ac_compiler -V </dev/null >&5) 2>&5
1690  ac_status=$?
1691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692  (exit $ac_status); }
1693
1694cat >conftest.$ac_ext <<_ACEOF
1695/* confdefs.h.  */
1696_ACEOF
1697cat confdefs.h >>conftest.$ac_ext
1698cat >>conftest.$ac_ext <<_ACEOF
1699/* end confdefs.h.  */
1700
1701int
1702main ()
1703{
1704
1705  ;
1706  return 0;
1707}
1708_ACEOF
1709ac_clean_files_save=$ac_clean_files
1710ac_clean_files="$ac_clean_files a.out a.exe b.out"
1711# Try to create an executable without -o first, disregard a.out.
1712# It will help us diagnose broken compilers, and finding out an intuition
1713# of exeext.
1714echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1715echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1716ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1717if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1718  (eval $ac_link_default) 2>&5
1719  ac_status=$?
1720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1721  (exit $ac_status); }; then
1722  # Find the output, starting from the most likely.  This scheme is
1723# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1724# resort.
1725
1726# Be careful to initialize this variable, since it used to be cached.
1727# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1728ac_cv_exeext=
1729# b.out is created by i960 compilers.
1730for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1731do
1732  test -f "$ac_file" || continue
1733  case $ac_file in
1734    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1735	;;
1736    conftest.$ac_ext )
1737	# This is the source file.
1738	;;
1739    [ab].out )
1740	# We found the default executable, but exeext='' is most
1741	# certainly right.
1742	break;;
1743    *.* )
1744	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1745	# FIXME: I believe we export ac_cv_exeext for Libtool,
1746	# but it would be cool to find out if it's true.  Does anybody
1747	# maintain Libtool? --akim.
1748	export ac_cv_exeext
1749	break;;
1750    * )
1751	break;;
1752  esac
1753done
1754else
1755  echo "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
1757
1758{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1759See \`config.log' for more details." >&5
1760echo "$as_me: error: C compiler cannot create executables
1761See \`config.log' for more details." >&2;}
1762   { (exit 77); exit 77; }; }
1763fi
1764
1765ac_exeext=$ac_cv_exeext
1766echo "$as_me:$LINENO: result: $ac_file" >&5
1767echo "${ECHO_T}$ac_file" >&6
1768
1769# Check the compiler produces executables we can run.  If not, either
1770# the compiler is broken, or we cross compile.
1771echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1772echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1773# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1774# If not cross compiling, check that we can run a simple program.
1775if test "$cross_compiling" != yes; then
1776  if { ac_try='./$ac_file'
1777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1778  (eval $ac_try) 2>&5
1779  ac_status=$?
1780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781  (exit $ac_status); }; }; then
1782    cross_compiling=no
1783  else
1784    if test "$cross_compiling" = maybe; then
1785	cross_compiling=yes
1786    else
1787	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1788If you meant to cross compile, use \`--host'.
1789See \`config.log' for more details." >&5
1790echo "$as_me: error: cannot run C compiled programs.
1791If you meant to cross compile, use \`--host'.
1792See \`config.log' for more details." >&2;}
1793   { (exit 1); exit 1; }; }
1794    fi
1795  fi
1796fi
1797echo "$as_me:$LINENO: result: yes" >&5
1798echo "${ECHO_T}yes" >&6
1799
1800rm -f a.out a.exe conftest$ac_cv_exeext b.out
1801ac_clean_files=$ac_clean_files_save
1802# Check the compiler produces executables we can run.  If not, either
1803# the compiler is broken, or we cross compile.
1804echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1805echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1806echo "$as_me:$LINENO: result: $cross_compiling" >&5
1807echo "${ECHO_T}$cross_compiling" >&6
1808
1809echo "$as_me:$LINENO: checking for suffix of executables" >&5
1810echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1812  (eval $ac_link) 2>&5
1813  ac_status=$?
1814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815  (exit $ac_status); }; then
1816  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1817# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1818# work properly (i.e., refer to `conftest.exe'), while it won't with
1819# `rm'.
1820for ac_file in conftest.exe conftest conftest.*; do
1821  test -f "$ac_file" || continue
1822  case $ac_file in
1823    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1824    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1825	  export ac_cv_exeext
1826	  break;;
1827    * ) break;;
1828  esac
1829done
1830else
1831  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1832See \`config.log' for more details." >&5
1833echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1834See \`config.log' for more details." >&2;}
1835   { (exit 1); exit 1; }; }
1836fi
1837
1838rm -f conftest$ac_cv_exeext
1839echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1840echo "${ECHO_T}$ac_cv_exeext" >&6
1841
1842rm -f conftest.$ac_ext
1843EXEEXT=$ac_cv_exeext
1844ac_exeext=$EXEEXT
1845echo "$as_me:$LINENO: checking for suffix of object files" >&5
1846echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1847if test "${ac_cv_objext+set}" = set; then
1848  echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850  cat >conftest.$ac_ext <<_ACEOF
1851/* confdefs.h.  */
1852_ACEOF
1853cat confdefs.h >>conftest.$ac_ext
1854cat >>conftest.$ac_ext <<_ACEOF
1855/* end confdefs.h.  */
1856
1857int
1858main ()
1859{
1860
1861  ;
1862  return 0;
1863}
1864_ACEOF
1865rm -f conftest.o conftest.obj
1866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1867  (eval $ac_compile) 2>&5
1868  ac_status=$?
1869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870  (exit $ac_status); }; then
1871  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1872  case $ac_file in
1873    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1874    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1875       break;;
1876  esac
1877done
1878else
1879  echo "$as_me: failed program was:" >&5
1880sed 's/^/| /' conftest.$ac_ext >&5
1881
1882{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1883See \`config.log' for more details." >&5
1884echo "$as_me: error: cannot compute suffix of object files: cannot compile
1885See \`config.log' for more details." >&2;}
1886   { (exit 1); exit 1; }; }
1887fi
1888
1889rm -f conftest.$ac_cv_objext conftest.$ac_ext
1890fi
1891echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1892echo "${ECHO_T}$ac_cv_objext" >&6
1893OBJEXT=$ac_cv_objext
1894ac_objext=$OBJEXT
1895echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1896echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1897if test "${ac_cv_c_compiler_gnu+set}" = set; then
1898  echo $ECHO_N "(cached) $ECHO_C" >&6
1899else
1900  cat >conftest.$ac_ext <<_ACEOF
1901/* confdefs.h.  */
1902_ACEOF
1903cat confdefs.h >>conftest.$ac_ext
1904cat >>conftest.$ac_ext <<_ACEOF
1905/* end confdefs.h.  */
1906
1907int
1908main ()
1909{
1910#ifndef __GNUC__
1911       choke me
1912#endif
1913
1914  ;
1915  return 0;
1916}
1917_ACEOF
1918rm -f conftest.$ac_objext
1919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1920  (eval $ac_compile) 2>conftest.er1
1921  ac_status=$?
1922  grep -v '^ *+' conftest.er1 >conftest.err
1923  rm -f conftest.er1
1924  cat conftest.err >&5
1925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926  (exit $ac_status); } &&
1927	 { ac_try='test -z "$ac_c_werror_flag"
1928			 || test ! -s conftest.err'
1929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1930  (eval $ac_try) 2>&5
1931  ac_status=$?
1932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933  (exit $ac_status); }; } &&
1934	 { ac_try='test -s conftest.$ac_objext'
1935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1936  (eval $ac_try) 2>&5
1937  ac_status=$?
1938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939  (exit $ac_status); }; }; then
1940  ac_compiler_gnu=yes
1941else
1942  echo "$as_me: failed program was:" >&5
1943sed 's/^/| /' conftest.$ac_ext >&5
1944
1945ac_compiler_gnu=no
1946fi
1947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1948ac_cv_c_compiler_gnu=$ac_compiler_gnu
1949
1950fi
1951echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1952echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1953GCC=`test $ac_compiler_gnu = yes && echo yes`
1954ac_test_CFLAGS=${CFLAGS+set}
1955ac_save_CFLAGS=$CFLAGS
1956CFLAGS="-g"
1957echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1958echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1959if test "${ac_cv_prog_cc_g+set}" = set; then
1960  echo $ECHO_N "(cached) $ECHO_C" >&6
1961else
1962  cat >conftest.$ac_ext <<_ACEOF
1963/* confdefs.h.  */
1964_ACEOF
1965cat confdefs.h >>conftest.$ac_ext
1966cat >>conftest.$ac_ext <<_ACEOF
1967/* end confdefs.h.  */
1968
1969int
1970main ()
1971{
1972
1973  ;
1974  return 0;
1975}
1976_ACEOF
1977rm -f conftest.$ac_objext
1978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979  (eval $ac_compile) 2>conftest.er1
1980  ac_status=$?
1981  grep -v '^ *+' conftest.er1 >conftest.err
1982  rm -f conftest.er1
1983  cat conftest.err >&5
1984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985  (exit $ac_status); } &&
1986	 { ac_try='test -z "$ac_c_werror_flag"
1987			 || test ! -s conftest.err'
1988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989  (eval $ac_try) 2>&5
1990  ac_status=$?
1991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992  (exit $ac_status); }; } &&
1993	 { ac_try='test -s conftest.$ac_objext'
1994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995  (eval $ac_try) 2>&5
1996  ac_status=$?
1997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998  (exit $ac_status); }; }; then
1999  ac_cv_prog_cc_g=yes
2000else
2001  echo "$as_me: failed program was:" >&5
2002sed 's/^/| /' conftest.$ac_ext >&5
2003
2004ac_cv_prog_cc_g=no
2005fi
2006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2007fi
2008echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2009echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2010if test "$ac_test_CFLAGS" = set; then
2011  CFLAGS=$ac_save_CFLAGS
2012elif test $ac_cv_prog_cc_g = yes; then
2013  if test "$GCC" = yes; then
2014    CFLAGS="-g -O2"
2015  else
2016    CFLAGS="-g"
2017  fi
2018else
2019  if test "$GCC" = yes; then
2020    CFLAGS="-O2"
2021  else
2022    CFLAGS=
2023  fi
2024fi
2025echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2026echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2027if test "${ac_cv_prog_cc_stdc+set}" = set; then
2028  echo $ECHO_N "(cached) $ECHO_C" >&6
2029else
2030  ac_cv_prog_cc_stdc=no
2031ac_save_CC=$CC
2032cat >conftest.$ac_ext <<_ACEOF
2033/* confdefs.h.  */
2034_ACEOF
2035cat confdefs.h >>conftest.$ac_ext
2036cat >>conftest.$ac_ext <<_ACEOF
2037/* end confdefs.h.  */
2038#include <stdarg.h>
2039#include <stdio.h>
2040#include <sys/types.h>
2041#include <sys/stat.h>
2042/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2043struct buf { int x; };
2044FILE * (*rcsopen) (struct buf *, struct stat *, int);
2045static char *e (p, i)
2046     char **p;
2047     int i;
2048{
2049  return p[i];
2050}
2051static char *f (char * (*g) (char **, int), char **p, ...)
2052{
2053  char *s;
2054  va_list v;
2055  va_start (v,p);
2056  s = g (p, va_arg (v,int));
2057  va_end (v);
2058  return s;
2059}
2060
2061/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2062   function prototypes and stuff, but not '\xHH' hex character constants.
2063   These don't provoke an error unfortunately, instead are silently treated
2064   as 'x'.  The following induces an error, until -std1 is added to get
2065   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2066   array size at least.  It's necessary to write '\x00'==0 to get something
2067   that's true only with -std1.  */
2068int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2069
2070int test (int i, double x);
2071struct s1 {int (*f) (int a);};
2072struct s2 {int (*f) (double a);};
2073int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2074int argc;
2075char **argv;
2076int
2077main ()
2078{
2079return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2080  ;
2081  return 0;
2082}
2083_ACEOF
2084# Don't try gcc -ansi; that turns off useful extensions and
2085# breaks some systems' header files.
2086# AIX			-qlanglvl=ansi
2087# Ultrix and OSF/1	-std1
2088# HP-UX 10.20 and later	-Ae
2089# HP-UX older versions	-Aa -D_HPUX_SOURCE
2090# SVR4			-Xc -D__EXTENSIONS__
2091for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2092do
2093  CC="$ac_save_CC $ac_arg"
2094  rm -f conftest.$ac_objext
2095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096  (eval $ac_compile) 2>conftest.er1
2097  ac_status=$?
2098  grep -v '^ *+' conftest.er1 >conftest.err
2099  rm -f conftest.er1
2100  cat conftest.err >&5
2101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102  (exit $ac_status); } &&
2103	 { ac_try='test -z "$ac_c_werror_flag"
2104			 || test ! -s conftest.err'
2105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106  (eval $ac_try) 2>&5
2107  ac_status=$?
2108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109  (exit $ac_status); }; } &&
2110	 { ac_try='test -s conftest.$ac_objext'
2111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112  (eval $ac_try) 2>&5
2113  ac_status=$?
2114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115  (exit $ac_status); }; }; then
2116  ac_cv_prog_cc_stdc=$ac_arg
2117break
2118else
2119  echo "$as_me: failed program was:" >&5
2120sed 's/^/| /' conftest.$ac_ext >&5
2121
2122fi
2123rm -f conftest.err conftest.$ac_objext
2124done
2125rm -f conftest.$ac_ext conftest.$ac_objext
2126CC=$ac_save_CC
2127
2128fi
2129
2130case "x$ac_cv_prog_cc_stdc" in
2131  x|xno)
2132    echo "$as_me:$LINENO: result: none needed" >&5
2133echo "${ECHO_T}none needed" >&6 ;;
2134  *)
2135    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2136echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2137    CC="$CC $ac_cv_prog_cc_stdc" ;;
2138esac
2139
2140# Some people use a C++ compiler to compile C.  Since we use `exit',
2141# in C++ we need to declare it.  In case someone uses the same compiler
2142# for both compiling C and C++ we need to have the C++ compiler decide
2143# the declaration of exit, since it's the most demanding environment.
2144cat >conftest.$ac_ext <<_ACEOF
2145#ifndef __cplusplus
2146  choke me
2147#endif
2148_ACEOF
2149rm -f conftest.$ac_objext
2150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2151  (eval $ac_compile) 2>conftest.er1
2152  ac_status=$?
2153  grep -v '^ *+' conftest.er1 >conftest.err
2154  rm -f conftest.er1
2155  cat conftest.err >&5
2156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157  (exit $ac_status); } &&
2158	 { ac_try='test -z "$ac_c_werror_flag"
2159			 || test ! -s conftest.err'
2160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161  (eval $ac_try) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }; } &&
2165	 { ac_try='test -s conftest.$ac_objext'
2166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167  (eval $ac_try) 2>&5
2168  ac_status=$?
2169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170  (exit $ac_status); }; }; then
2171  for ac_declaration in \
2172   '' \
2173   'extern "C" void std::exit (int) throw (); using std::exit;' \
2174   'extern "C" void std::exit (int); using std::exit;' \
2175   'extern "C" void exit (int) throw ();' \
2176   'extern "C" void exit (int);' \
2177   'void exit (int);'
2178do
2179  cat >conftest.$ac_ext <<_ACEOF
2180/* confdefs.h.  */
2181_ACEOF
2182cat confdefs.h >>conftest.$ac_ext
2183cat >>conftest.$ac_ext <<_ACEOF
2184/* end confdefs.h.  */
2185$ac_declaration
2186#include <stdlib.h>
2187int
2188main ()
2189{
2190exit (42);
2191  ;
2192  return 0;
2193}
2194_ACEOF
2195rm -f conftest.$ac_objext
2196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197  (eval $ac_compile) 2>conftest.er1
2198  ac_status=$?
2199  grep -v '^ *+' conftest.er1 >conftest.err
2200  rm -f conftest.er1
2201  cat conftest.err >&5
2202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203  (exit $ac_status); } &&
2204	 { ac_try='test -z "$ac_c_werror_flag"
2205			 || test ! -s conftest.err'
2206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207  (eval $ac_try) 2>&5
2208  ac_status=$?
2209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210  (exit $ac_status); }; } &&
2211	 { ac_try='test -s conftest.$ac_objext'
2212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213  (eval $ac_try) 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }; }; then
2217  :
2218else
2219  echo "$as_me: failed program was:" >&5
2220sed 's/^/| /' conftest.$ac_ext >&5
2221
2222continue
2223fi
2224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2225  cat >conftest.$ac_ext <<_ACEOF
2226/* confdefs.h.  */
2227_ACEOF
2228cat confdefs.h >>conftest.$ac_ext
2229cat >>conftest.$ac_ext <<_ACEOF
2230/* end confdefs.h.  */
2231$ac_declaration
2232int
2233main ()
2234{
2235exit (42);
2236  ;
2237  return 0;
2238}
2239_ACEOF
2240rm -f conftest.$ac_objext
2241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242  (eval $ac_compile) 2>conftest.er1
2243  ac_status=$?
2244  grep -v '^ *+' conftest.er1 >conftest.err
2245  rm -f conftest.er1
2246  cat conftest.err >&5
2247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248  (exit $ac_status); } &&
2249	 { ac_try='test -z "$ac_c_werror_flag"
2250			 || test ! -s conftest.err'
2251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252  (eval $ac_try) 2>&5
2253  ac_status=$?
2254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255  (exit $ac_status); }; } &&
2256	 { ac_try='test -s conftest.$ac_objext'
2257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258  (eval $ac_try) 2>&5
2259  ac_status=$?
2260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261  (exit $ac_status); }; }; then
2262  break
2263else
2264  echo "$as_me: failed program was:" >&5
2265sed 's/^/| /' conftest.$ac_ext >&5
2266
2267fi
2268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2269done
2270rm -f conftest*
2271if test -n "$ac_declaration"; then
2272  echo '#ifdef __cplusplus' >>confdefs.h
2273  echo $ac_declaration      >>confdefs.h
2274  echo '#endif'             >>confdefs.h
2275fi
2276
2277else
2278  echo "$as_me: failed program was:" >&5
2279sed 's/^/| /' conftest.$ac_ext >&5
2280
2281fi
2282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2283ac_ext=cc
2284ac_cpp='$CXXCPP $CPPFLAGS'
2285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2288
2289ac_ext=cc
2290ac_cpp='$CXXCPP $CPPFLAGS'
2291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2294if test -n "$ac_tool_prefix"; then
2295  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2296  do
2297    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2298set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2299echo "$as_me:$LINENO: checking for $ac_word" >&5
2300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301if test "${ac_cv_prog_CXX+set}" = set; then
2302  echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304  if test -n "$CXX"; then
2305  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2306else
2307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308for as_dir in $PATH
2309do
2310  IFS=$as_save_IFS
2311  test -z "$as_dir" && as_dir=.
2312  for ac_exec_ext in '' $ac_executable_extensions; do
2313  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2315    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316    break 2
2317  fi
2318done
2319done
2320
2321fi
2322fi
2323CXX=$ac_cv_prog_CXX
2324if test -n "$CXX"; then
2325  echo "$as_me:$LINENO: result: $CXX" >&5
2326echo "${ECHO_T}$CXX" >&6
2327else
2328  echo "$as_me:$LINENO: result: no" >&5
2329echo "${ECHO_T}no" >&6
2330fi
2331
2332    test -n "$CXX" && break
2333  done
2334fi
2335if test -z "$CXX"; then
2336  ac_ct_CXX=$CXX
2337  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2338do
2339  # Extract the first word of "$ac_prog", so it can be a program name with args.
2340set dummy $ac_prog; 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_prog_ac_ct_CXX+set}" = set; then
2344  echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346  if test -n "$ac_ct_CXX"; then
2347  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2348else
2349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350for as_dir in $PATH
2351do
2352  IFS=$as_save_IFS
2353  test -z "$as_dir" && as_dir=.
2354  for ac_exec_ext in '' $ac_executable_extensions; do
2355  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2356    ac_cv_prog_ac_ct_CXX="$ac_prog"
2357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358    break 2
2359  fi
2360done
2361done
2362
2363fi
2364fi
2365ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2366if test -n "$ac_ct_CXX"; then
2367  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2368echo "${ECHO_T}$ac_ct_CXX" >&6
2369else
2370  echo "$as_me:$LINENO: result: no" >&5
2371echo "${ECHO_T}no" >&6
2372fi
2373
2374  test -n "$ac_ct_CXX" && break
2375done
2376test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2377
2378  CXX=$ac_ct_CXX
2379fi
2380
2381
2382# Provide some information about the compiler.
2383echo "$as_me:$LINENO:" \
2384     "checking for C++ compiler version" >&5
2385ac_compiler=`set X $ac_compile; echo $2`
2386{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2387  (eval $ac_compiler --version </dev/null >&5) 2>&5
2388  ac_status=$?
2389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390  (exit $ac_status); }
2391{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2392  (eval $ac_compiler -v </dev/null >&5) 2>&5
2393  ac_status=$?
2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); }
2396{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2397  (eval $ac_compiler -V </dev/null >&5) 2>&5
2398  ac_status=$?
2399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400  (exit $ac_status); }
2401
2402echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2403echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2404if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2405  echo $ECHO_N "(cached) $ECHO_C" >&6
2406else
2407  cat >conftest.$ac_ext <<_ACEOF
2408/* confdefs.h.  */
2409_ACEOF
2410cat confdefs.h >>conftest.$ac_ext
2411cat >>conftest.$ac_ext <<_ACEOF
2412/* end confdefs.h.  */
2413
2414int
2415main ()
2416{
2417#ifndef __GNUC__
2418       choke me
2419#endif
2420
2421  ;
2422  return 0;
2423}
2424_ACEOF
2425rm -f conftest.$ac_objext
2426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427  (eval $ac_compile) 2>conftest.er1
2428  ac_status=$?
2429  grep -v '^ *+' conftest.er1 >conftest.err
2430  rm -f conftest.er1
2431  cat conftest.err >&5
2432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433  (exit $ac_status); } &&
2434	 { ac_try='test -z "$ac_cxx_werror_flag"
2435			 || test ! -s conftest.err'
2436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437  (eval $ac_try) 2>&5
2438  ac_status=$?
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); }; } &&
2441	 { ac_try='test -s conftest.$ac_objext'
2442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443  (eval $ac_try) 2>&5
2444  ac_status=$?
2445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446  (exit $ac_status); }; }; then
2447  ac_compiler_gnu=yes
2448else
2449  echo "$as_me: failed program was:" >&5
2450sed 's/^/| /' conftest.$ac_ext >&5
2451
2452ac_compiler_gnu=no
2453fi
2454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2456
2457fi
2458echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2459echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2460GXX=`test $ac_compiler_gnu = yes && echo yes`
2461ac_test_CXXFLAGS=${CXXFLAGS+set}
2462ac_save_CXXFLAGS=$CXXFLAGS
2463CXXFLAGS="-g"
2464echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2465echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2466if test "${ac_cv_prog_cxx_g+set}" = set; then
2467  echo $ECHO_N "(cached) $ECHO_C" >&6
2468else
2469  cat >conftest.$ac_ext <<_ACEOF
2470/* confdefs.h.  */
2471_ACEOF
2472cat confdefs.h >>conftest.$ac_ext
2473cat >>conftest.$ac_ext <<_ACEOF
2474/* end confdefs.h.  */
2475
2476int
2477main ()
2478{
2479
2480  ;
2481  return 0;
2482}
2483_ACEOF
2484rm -f conftest.$ac_objext
2485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2486  (eval $ac_compile) 2>conftest.er1
2487  ac_status=$?
2488  grep -v '^ *+' conftest.er1 >conftest.err
2489  rm -f conftest.er1
2490  cat conftest.err >&5
2491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492  (exit $ac_status); } &&
2493	 { ac_try='test -z "$ac_cxx_werror_flag"
2494			 || test ! -s conftest.err'
2495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496  (eval $ac_try) 2>&5
2497  ac_status=$?
2498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499  (exit $ac_status); }; } &&
2500	 { ac_try='test -s conftest.$ac_objext'
2501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502  (eval $ac_try) 2>&5
2503  ac_status=$?
2504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505  (exit $ac_status); }; }; then
2506  ac_cv_prog_cxx_g=yes
2507else
2508  echo "$as_me: failed program was:" >&5
2509sed 's/^/| /' conftest.$ac_ext >&5
2510
2511ac_cv_prog_cxx_g=no
2512fi
2513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2514fi
2515echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2516echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2517if test "$ac_test_CXXFLAGS" = set; then
2518  CXXFLAGS=$ac_save_CXXFLAGS
2519elif test $ac_cv_prog_cxx_g = yes; then
2520  if test "$GXX" = yes; then
2521    CXXFLAGS="-g -O2"
2522  else
2523    CXXFLAGS="-g"
2524  fi
2525else
2526  if test "$GXX" = yes; then
2527    CXXFLAGS="-O2"
2528  else
2529    CXXFLAGS=
2530  fi
2531fi
2532for ac_declaration in \
2533   '' \
2534   'extern "C" void std::exit (int) throw (); using std::exit;' \
2535   'extern "C" void std::exit (int); using std::exit;' \
2536   'extern "C" void exit (int) throw ();' \
2537   'extern "C" void exit (int);' \
2538   'void exit (int);'
2539do
2540  cat >conftest.$ac_ext <<_ACEOF
2541/* confdefs.h.  */
2542_ACEOF
2543cat confdefs.h >>conftest.$ac_ext
2544cat >>conftest.$ac_ext <<_ACEOF
2545/* end confdefs.h.  */
2546$ac_declaration
2547#include <stdlib.h>
2548int
2549main ()
2550{
2551exit (42);
2552  ;
2553  return 0;
2554}
2555_ACEOF
2556rm -f conftest.$ac_objext
2557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558  (eval $ac_compile) 2>conftest.er1
2559  ac_status=$?
2560  grep -v '^ *+' conftest.er1 >conftest.err
2561  rm -f conftest.er1
2562  cat conftest.err >&5
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); } &&
2565	 { ac_try='test -z "$ac_cxx_werror_flag"
2566			 || test ! -s conftest.err'
2567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568  (eval $ac_try) 2>&5
2569  ac_status=$?
2570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571  (exit $ac_status); }; } &&
2572	 { ac_try='test -s conftest.$ac_objext'
2573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574  (eval $ac_try) 2>&5
2575  ac_status=$?
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); }; }; then
2578  :
2579else
2580  echo "$as_me: failed program was:" >&5
2581sed 's/^/| /' conftest.$ac_ext >&5
2582
2583continue
2584fi
2585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586  cat >conftest.$ac_ext <<_ACEOF
2587/* confdefs.h.  */
2588_ACEOF
2589cat confdefs.h >>conftest.$ac_ext
2590cat >>conftest.$ac_ext <<_ACEOF
2591/* end confdefs.h.  */
2592$ac_declaration
2593int
2594main ()
2595{
2596exit (42);
2597  ;
2598  return 0;
2599}
2600_ACEOF
2601rm -f conftest.$ac_objext
2602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603  (eval $ac_compile) 2>conftest.er1
2604  ac_status=$?
2605  grep -v '^ *+' conftest.er1 >conftest.err
2606  rm -f conftest.er1
2607  cat conftest.err >&5
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); } &&
2610	 { ac_try='test -z "$ac_cxx_werror_flag"
2611			 || test ! -s conftest.err'
2612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613  (eval $ac_try) 2>&5
2614  ac_status=$?
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); }; } &&
2617	 { ac_try='test -s conftest.$ac_objext'
2618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619  (eval $ac_try) 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; }; then
2623  break
2624else
2625  echo "$as_me: failed program was:" >&5
2626sed 's/^/| /' conftest.$ac_ext >&5
2627
2628fi
2629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630done
2631rm -f conftest*
2632if test -n "$ac_declaration"; then
2633  echo '#ifdef __cplusplus' >>confdefs.h
2634  echo $ac_declaration      >>confdefs.h
2635  echo '#endif'             >>confdefs.h
2636fi
2637
2638ac_ext=cc
2639ac_cpp='$CXXCPP $CPPFLAGS'
2640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2643
2644
2645ac_ext=cc
2646ac_cpp='$CXXCPP $CPPFLAGS'
2647ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2650echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2651echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2652if test -z "$CXXCPP"; then
2653  if test "${ac_cv_prog_CXXCPP+set}" = set; then
2654  echo $ECHO_N "(cached) $ECHO_C" >&6
2655else
2656      # Double quotes because CXXCPP needs to be expanded
2657    for CXXCPP in "$CXX -E" "/lib/cpp"
2658    do
2659      ac_preproc_ok=false
2660for ac_cxx_preproc_warn_flag in '' yes
2661do
2662  # Use a header file that comes with gcc, so configuring glibc
2663  # with a fresh cross-compiler works.
2664  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2665  # <limits.h> exists even on freestanding compilers.
2666  # On the NeXT, cc -E runs the code through the compiler's parser,
2667  # not just through cpp. "Syntax error" is here to catch this case.
2668  cat >conftest.$ac_ext <<_ACEOF
2669/* confdefs.h.  */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h.  */
2674#ifdef __STDC__
2675# include <limits.h>
2676#else
2677# include <assert.h>
2678#endif
2679		     Syntax error
2680_ACEOF
2681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2682  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2683  ac_status=$?
2684  grep -v '^ *+' conftest.er1 >conftest.err
2685  rm -f conftest.er1
2686  cat conftest.err >&5
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); } >/dev/null; then
2689  if test -s conftest.err; then
2690    ac_cpp_err=$ac_cxx_preproc_warn_flag
2691    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2692  else
2693    ac_cpp_err=
2694  fi
2695else
2696  ac_cpp_err=yes
2697fi
2698if test -z "$ac_cpp_err"; then
2699  :
2700else
2701  echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704  # Broken: fails on valid input.
2705continue
2706fi
2707rm -f conftest.err conftest.$ac_ext
2708
2709  # OK, works on sane cases.  Now check whether non-existent headers
2710  # can be detected and how.
2711  cat >conftest.$ac_ext <<_ACEOF
2712/* confdefs.h.  */
2713_ACEOF
2714cat confdefs.h >>conftest.$ac_ext
2715cat >>conftest.$ac_ext <<_ACEOF
2716/* end confdefs.h.  */
2717#include <ac_nonexistent.h>
2718_ACEOF
2719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2720  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2721  ac_status=$?
2722  grep -v '^ *+' conftest.er1 >conftest.err
2723  rm -f conftest.er1
2724  cat conftest.err >&5
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); } >/dev/null; then
2727  if test -s conftest.err; then
2728    ac_cpp_err=$ac_cxx_preproc_warn_flag
2729    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2730  else
2731    ac_cpp_err=
2732  fi
2733else
2734  ac_cpp_err=yes
2735fi
2736if test -z "$ac_cpp_err"; then
2737  # Broken: success on invalid input.
2738continue
2739else
2740  echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743  # Passes both tests.
2744ac_preproc_ok=:
2745break
2746fi
2747rm -f conftest.err conftest.$ac_ext
2748
2749done
2750# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2751rm -f conftest.err conftest.$ac_ext
2752if $ac_preproc_ok; then
2753  break
2754fi
2755
2756    done
2757    ac_cv_prog_CXXCPP=$CXXCPP
2758
2759fi
2760  CXXCPP=$ac_cv_prog_CXXCPP
2761else
2762  ac_cv_prog_CXXCPP=$CXXCPP
2763fi
2764echo "$as_me:$LINENO: result: $CXXCPP" >&5
2765echo "${ECHO_T}$CXXCPP" >&6
2766ac_preproc_ok=false
2767for ac_cxx_preproc_warn_flag in '' yes
2768do
2769  # Use a header file that comes with gcc, so configuring glibc
2770  # with a fresh cross-compiler works.
2771  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2772  # <limits.h> exists even on freestanding compilers.
2773  # On the NeXT, cc -E runs the code through the compiler's parser,
2774  # not just through cpp. "Syntax error" is here to catch this case.
2775  cat >conftest.$ac_ext <<_ACEOF
2776/* confdefs.h.  */
2777_ACEOF
2778cat confdefs.h >>conftest.$ac_ext
2779cat >>conftest.$ac_ext <<_ACEOF
2780/* end confdefs.h.  */
2781#ifdef __STDC__
2782# include <limits.h>
2783#else
2784# include <assert.h>
2785#endif
2786		     Syntax error
2787_ACEOF
2788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2790  ac_status=$?
2791  grep -v '^ *+' conftest.er1 >conftest.err
2792  rm -f conftest.er1
2793  cat conftest.err >&5
2794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795  (exit $ac_status); } >/dev/null; then
2796  if test -s conftest.err; then
2797    ac_cpp_err=$ac_cxx_preproc_warn_flag
2798    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2799  else
2800    ac_cpp_err=
2801  fi
2802else
2803  ac_cpp_err=yes
2804fi
2805if test -z "$ac_cpp_err"; then
2806  :
2807else
2808  echo "$as_me: failed program was:" >&5
2809sed 's/^/| /' conftest.$ac_ext >&5
2810
2811  # Broken: fails on valid input.
2812continue
2813fi
2814rm -f conftest.err conftest.$ac_ext
2815
2816  # OK, works on sane cases.  Now check whether non-existent headers
2817  # can be detected and how.
2818  cat >conftest.$ac_ext <<_ACEOF
2819/* confdefs.h.  */
2820_ACEOF
2821cat confdefs.h >>conftest.$ac_ext
2822cat >>conftest.$ac_ext <<_ACEOF
2823/* end confdefs.h.  */
2824#include <ac_nonexistent.h>
2825_ACEOF
2826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2827  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2828  ac_status=$?
2829  grep -v '^ *+' conftest.er1 >conftest.err
2830  rm -f conftest.er1
2831  cat conftest.err >&5
2832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833  (exit $ac_status); } >/dev/null; then
2834  if test -s conftest.err; then
2835    ac_cpp_err=$ac_cxx_preproc_warn_flag
2836    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2837  else
2838    ac_cpp_err=
2839  fi
2840else
2841  ac_cpp_err=yes
2842fi
2843if test -z "$ac_cpp_err"; then
2844  # Broken: success on invalid input.
2845continue
2846else
2847  echo "$as_me: failed program was:" >&5
2848sed 's/^/| /' conftest.$ac_ext >&5
2849
2850  # Passes both tests.
2851ac_preproc_ok=:
2852break
2853fi
2854rm -f conftest.err conftest.$ac_ext
2855
2856done
2857# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2858rm -f conftest.err conftest.$ac_ext
2859if $ac_preproc_ok; then
2860  :
2861else
2862  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2863See \`config.log' for more details." >&5
2864echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2865See \`config.log' for more details." >&2;}
2866   { (exit 1); exit 1; }; }
2867fi
2868
2869ac_ext=cc
2870ac_cpp='$CXXCPP $CPPFLAGS'
2871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2874
2875
2876echo "$as_me:$LINENO: checking for egrep" >&5
2877echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2878if test "${ac_cv_prog_egrep+set}" = set; then
2879  echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2882    then ac_cv_prog_egrep='grep -E'
2883    else ac_cv_prog_egrep='egrep'
2884    fi
2885fi
2886echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2887echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2888 EGREP=$ac_cv_prog_egrep
2889
2890
2891
2892echo "$as_me:$LINENO: checking for AIX" >&5
2893echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2894cat >conftest.$ac_ext <<_ACEOF
2895/* confdefs.h.  */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h.  */
2900#ifdef _AIX
2901  yes
2902#endif
2903
2904_ACEOF
2905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2906  $EGREP "yes" >/dev/null 2>&1; then
2907  echo "$as_me:$LINENO: result: yes" >&5
2908echo "${ECHO_T}yes" >&6
2909cat >>confdefs.h <<\_ACEOF
2910#define _ALL_SOURCE 1
2911_ACEOF
2912
2913else
2914  echo "$as_me:$LINENO: result: no" >&5
2915echo "${ECHO_T}no" >&6
2916fi
2917rm -f conftest*
2918
2919
2920if test -n "$ac_tool_prefix"; then
2921  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2922set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2923echo "$as_me:$LINENO: checking for $ac_word" >&5
2924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2925if test "${ac_cv_prog_RANLIB+set}" = set; then
2926  echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928  if test -n "$RANLIB"; then
2929  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2930else
2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932for as_dir in $PATH
2933do
2934  IFS=$as_save_IFS
2935  test -z "$as_dir" && as_dir=.
2936  for ac_exec_ext in '' $ac_executable_extensions; do
2937  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2939    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940    break 2
2941  fi
2942done
2943done
2944
2945fi
2946fi
2947RANLIB=$ac_cv_prog_RANLIB
2948if test -n "$RANLIB"; then
2949  echo "$as_me:$LINENO: result: $RANLIB" >&5
2950echo "${ECHO_T}$RANLIB" >&6
2951else
2952  echo "$as_me:$LINENO: result: no" >&5
2953echo "${ECHO_T}no" >&6
2954fi
2955
2956fi
2957if test -z "$ac_cv_prog_RANLIB"; then
2958  ac_ct_RANLIB=$RANLIB
2959  # Extract the first word of "ranlib", so it can be a program name with args.
2960set dummy ranlib; ac_word=$2
2961echo "$as_me:$LINENO: checking for $ac_word" >&5
2962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2963if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2964  echo $ECHO_N "(cached) $ECHO_C" >&6
2965else
2966  if test -n "$ac_ct_RANLIB"; then
2967  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2968else
2969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970for as_dir in $PATH
2971do
2972  IFS=$as_save_IFS
2973  test -z "$as_dir" && as_dir=.
2974  for ac_exec_ext in '' $ac_executable_extensions; do
2975  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976    ac_cv_prog_ac_ct_RANLIB="ranlib"
2977    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978    break 2
2979  fi
2980done
2981done
2982
2983  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2984fi
2985fi
2986ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2987if test -n "$ac_ct_RANLIB"; then
2988  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2989echo "${ECHO_T}$ac_ct_RANLIB" >&6
2990else
2991  echo "$as_me:$LINENO: result: no" >&5
2992echo "${ECHO_T}no" >&6
2993fi
2994
2995  RANLIB=$ac_ct_RANLIB
2996else
2997  RANLIB="$ac_cv_prog_RANLIB"
2998fi
2999
3000echo "$as_me:$LINENO: checking for X" >&5
3001echo $ECHO_N "checking for X... $ECHO_C" >&6
3002
3003
3004# Check whether --with-x or --without-x was given.
3005if test "${with_x+set}" = set; then
3006  withval="$with_x"
3007
3008fi;
3009# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3010if test "x$with_x" = xno; then
3011  # The user explicitly disabled X.
3012  have_x=disabled
3013else
3014  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3015    # Both variables are already set.
3016    have_x=yes
3017  else
3018    if test "${ac_cv_have_x+set}" = set; then
3019  echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
3021  # One or both of the vars are not set, and there is no cached value.
3022ac_x_includes=no ac_x_libraries=no
3023rm -fr conftest.dir
3024if mkdir conftest.dir; then
3025  cd conftest.dir
3026  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3027  cat >Imakefile <<'_ACEOF'
3028acfindx:
3029	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3030_ACEOF
3031  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3032    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3033    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3034    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3035    for ac_extension in a so sl; do
3036      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3037	 test -f $ac_im_libdir/libX11.$ac_extension; then
3038	ac_im_usrlibdir=$ac_im_libdir; break
3039      fi
3040    done
3041    # Screen out bogus values from the imake configuration.  They are
3042    # bogus both because they are the default anyway, and because
3043    # using them would break gcc on systems where it needs fixed includes.
3044    case $ac_im_incroot in
3045	/usr/include) ;;
3046	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3047    esac
3048    case $ac_im_usrlibdir in
3049	/usr/lib | /lib) ;;
3050	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3051    esac
3052  fi
3053  cd ..
3054  rm -fr conftest.dir
3055fi
3056
3057# Standard set of common directories for X headers.
3058# Check X11 before X11Rn because it is often a symlink to the current release.
3059ac_x_header_dirs='
3060/usr/X11/include
3061/usr/X11R6/include
3062/usr/X11R5/include
3063/usr/X11R4/include
3064
3065/usr/include/X11
3066/usr/include/X11R6
3067/usr/include/X11R5
3068/usr/include/X11R4
3069
3070/usr/local/X11/include
3071/usr/local/X11R6/include
3072/usr/local/X11R5/include
3073/usr/local/X11R4/include
3074
3075/usr/local/include/X11
3076/usr/local/include/X11R6
3077/usr/local/include/X11R5
3078/usr/local/include/X11R4
3079
3080/usr/X386/include
3081/usr/x386/include
3082/usr/XFree86/include/X11
3083
3084/usr/include
3085/usr/local/include
3086/usr/unsupported/include
3087/usr/athena/include
3088/usr/local/x11r5/include
3089/usr/lpp/Xamples/include
3090
3091/usr/openwin/include
3092/usr/openwin/share/include'
3093
3094if test "$ac_x_includes" = no; then
3095  # Guess where to find include files, by looking for Intrinsic.h.
3096  # First, try using that file with no special directory specified.
3097  cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h.  */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h.  */
3103#include <X11/Intrinsic.h>
3104_ACEOF
3105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3106  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3107  ac_status=$?
3108  grep -v '^ *+' conftest.er1 >conftest.err
3109  rm -f conftest.er1
3110  cat conftest.err >&5
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); } >/dev/null; then
3113  if test -s conftest.err; then
3114    ac_cpp_err=$ac_cxx_preproc_warn_flag
3115    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3116  else
3117    ac_cpp_err=
3118  fi
3119else
3120  ac_cpp_err=yes
3121fi
3122if test -z "$ac_cpp_err"; then
3123  # We can compile using X headers with no special include directory.
3124ac_x_includes=
3125else
3126  echo "$as_me: failed program was:" >&5
3127sed 's/^/| /' conftest.$ac_ext >&5
3128
3129  for ac_dir in $ac_x_header_dirs; do
3130  if test -r "$ac_dir/X11/Intrinsic.h"; then
3131    ac_x_includes=$ac_dir
3132    break
3133  fi
3134done
3135fi
3136rm -f conftest.err conftest.$ac_ext
3137fi # $ac_x_includes = no
3138
3139if test "$ac_x_libraries" = no; then
3140  # Check for the libraries.
3141  # See if we find them without any special options.
3142  # Don't add to $LIBS permanently.
3143  ac_save_LIBS=$LIBS
3144  LIBS="-lXt $LIBS"
3145  cat >conftest.$ac_ext <<_ACEOF
3146/* confdefs.h.  */
3147_ACEOF
3148cat confdefs.h >>conftest.$ac_ext
3149cat >>conftest.$ac_ext <<_ACEOF
3150/* end confdefs.h.  */
3151#include <X11/Intrinsic.h>
3152int
3153main ()
3154{
3155XtMalloc (0)
3156  ;
3157  return 0;
3158}
3159_ACEOF
3160rm -f conftest.$ac_objext conftest$ac_exeext
3161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3162  (eval $ac_link) 2>conftest.er1
3163  ac_status=$?
3164  grep -v '^ *+' conftest.er1 >conftest.err
3165  rm -f conftest.er1
3166  cat conftest.err >&5
3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168  (exit $ac_status); } &&
3169	 { ac_try='test -z "$ac_cxx_werror_flag"
3170			 || test ! -s conftest.err'
3171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172  (eval $ac_try) 2>&5
3173  ac_status=$?
3174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175  (exit $ac_status); }; } &&
3176	 { ac_try='test -s conftest$ac_exeext'
3177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178  (eval $ac_try) 2>&5
3179  ac_status=$?
3180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181  (exit $ac_status); }; }; then
3182  LIBS=$ac_save_LIBS
3183# We can link X programs with no special library path.
3184ac_x_libraries=
3185else
3186  echo "$as_me: failed program was:" >&5
3187sed 's/^/| /' conftest.$ac_ext >&5
3188
3189LIBS=$ac_save_LIBS
3190for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3191do
3192  # Don't even attempt the hair of trying to link an X program!
3193  for ac_extension in a so sl; do
3194    if test -r $ac_dir/libXt.$ac_extension; then
3195      ac_x_libraries=$ac_dir
3196      break 2
3197    fi
3198  done
3199done
3200fi
3201rm -f conftest.err conftest.$ac_objext \
3202      conftest$ac_exeext conftest.$ac_ext
3203fi # $ac_x_libraries = no
3204
3205if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3206  # Didn't find X anywhere.  Cache the known absence of X.
3207  ac_cv_have_x="have_x=no"
3208else
3209  # Record where we found X for the cache.
3210  ac_cv_have_x="have_x=yes \
3211		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3212fi
3213fi
3214
3215  fi
3216  eval "$ac_cv_have_x"
3217fi # $with_x != no
3218
3219if test "$have_x" != yes; then
3220  echo "$as_me:$LINENO: result: $have_x" >&5
3221echo "${ECHO_T}$have_x" >&6
3222  no_x=yes
3223else
3224  # If each of the values was on the command line, it overrides each guess.
3225  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3226  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3227  # Update the cache value to reflect the command line values.
3228  ac_cv_have_x="have_x=yes \
3229		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3230  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3231echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3232fi
3233
3234if test "$no_x" = yes; then
3235  # Not all programs may use this symbol, but it does not hurt to define it.
3236
3237cat >>confdefs.h <<\_ACEOF
3238#define X_DISPLAY_MISSING 1
3239_ACEOF
3240
3241  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3242else
3243  if test -n "$x_includes"; then
3244    X_CFLAGS="$X_CFLAGS -I$x_includes"
3245  fi
3246
3247  # It would also be nice to do this for all -L options, not just this one.
3248  if test -n "$x_libraries"; then
3249    X_LIBS="$X_LIBS -L$x_libraries"
3250    # For Solaris; some versions of Sun CC require a space after -R and
3251    # others require no space.  Words are not sufficient . . . .
3252    case `(uname -sr) 2>/dev/null` in
3253    "SunOS 5"*)
3254      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3255echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3256      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3257      cat >conftest.$ac_ext <<_ACEOF
3258/* confdefs.h.  */
3259_ACEOF
3260cat confdefs.h >>conftest.$ac_ext
3261cat >>conftest.$ac_ext <<_ACEOF
3262/* end confdefs.h.  */
3263
3264int
3265main ()
3266{
3267
3268  ;
3269  return 0;
3270}
3271_ACEOF
3272rm -f conftest.$ac_objext conftest$ac_exeext
3273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3274  (eval $ac_link) 2>conftest.er1
3275  ac_status=$?
3276  grep -v '^ *+' conftest.er1 >conftest.err
3277  rm -f conftest.er1
3278  cat conftest.err >&5
3279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280  (exit $ac_status); } &&
3281	 { ac_try='test -z "$ac_cxx_werror_flag"
3282			 || test ! -s conftest.err'
3283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284  (eval $ac_try) 2>&5
3285  ac_status=$?
3286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287  (exit $ac_status); }; } &&
3288	 { ac_try='test -s conftest$ac_exeext'
3289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290  (eval $ac_try) 2>&5
3291  ac_status=$?
3292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); }; }; then
3294  ac_R_nospace=yes
3295else
3296  echo "$as_me: failed program was:" >&5
3297sed 's/^/| /' conftest.$ac_ext >&5
3298
3299ac_R_nospace=no
3300fi
3301rm -f conftest.err conftest.$ac_objext \
3302      conftest$ac_exeext conftest.$ac_ext
3303      if test $ac_R_nospace = yes; then
3304	echo "$as_me:$LINENO: result: no" >&5
3305echo "${ECHO_T}no" >&6
3306	X_LIBS="$X_LIBS -R$x_libraries"
3307      else
3308	LIBS="$ac_xsave_LIBS -R $x_libraries"
3309	cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h.  */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h.  */
3315
3316int
3317main ()
3318{
3319
3320  ;
3321  return 0;
3322}
3323_ACEOF
3324rm -f conftest.$ac_objext conftest$ac_exeext
3325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3326  (eval $ac_link) 2>conftest.er1
3327  ac_status=$?
3328  grep -v '^ *+' conftest.er1 >conftest.err
3329  rm -f conftest.er1
3330  cat conftest.err >&5
3331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332  (exit $ac_status); } &&
3333	 { ac_try='test -z "$ac_cxx_werror_flag"
3334			 || test ! -s conftest.err'
3335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336  (eval $ac_try) 2>&5
3337  ac_status=$?
3338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339  (exit $ac_status); }; } &&
3340	 { ac_try='test -s conftest$ac_exeext'
3341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342  (eval $ac_try) 2>&5
3343  ac_status=$?
3344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345  (exit $ac_status); }; }; then
3346  ac_R_space=yes
3347else
3348  echo "$as_me: failed program was:" >&5
3349sed 's/^/| /' conftest.$ac_ext >&5
3350
3351ac_R_space=no
3352fi
3353rm -f conftest.err conftest.$ac_objext \
3354      conftest$ac_exeext conftest.$ac_ext
3355	if test $ac_R_space = yes; then
3356	  echo "$as_me:$LINENO: result: yes" >&5
3357echo "${ECHO_T}yes" >&6
3358	  X_LIBS="$X_LIBS -R $x_libraries"
3359	else
3360	  echo "$as_me:$LINENO: result: neither works" >&5
3361echo "${ECHO_T}neither works" >&6
3362	fi
3363      fi
3364      LIBS=$ac_xsave_LIBS
3365    esac
3366  fi
3367
3368  # Check for system-dependent libraries X programs must link with.
3369  # Do this before checking for the system-independent R6 libraries
3370  # (-lICE), since we may need -lsocket or whatever for X linking.
3371
3372  if test "$ISC" = yes; then
3373    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3374  else
3375    # Martyn Johnson says this is needed for Ultrix, if the X
3376    # libraries were built with DECnet support.  And Karl Berry says
3377    # the Alpha needs dnet_stub (dnet does not exist).
3378    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3379    cat >conftest.$ac_ext <<_ACEOF
3380/* confdefs.h.  */
3381_ACEOF
3382cat confdefs.h >>conftest.$ac_ext
3383cat >>conftest.$ac_ext <<_ACEOF
3384/* end confdefs.h.  */
3385
3386/* Override any gcc2 internal prototype to avoid an error.  */
3387#ifdef __cplusplus
3388extern "C"
3389#endif
3390/* We use char because int might match the return type of a gcc2
3391   builtin and then its argument prototype would still apply.  */
3392char XOpenDisplay ();
3393int
3394main ()
3395{
3396XOpenDisplay ();
3397  ;
3398  return 0;
3399}
3400_ACEOF
3401rm -f conftest.$ac_objext conftest$ac_exeext
3402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3403  (eval $ac_link) 2>conftest.er1
3404  ac_status=$?
3405  grep -v '^ *+' conftest.er1 >conftest.err
3406  rm -f conftest.er1
3407  cat conftest.err >&5
3408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); } &&
3410	 { ac_try='test -z "$ac_cxx_werror_flag"
3411			 || test ! -s conftest.err'
3412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413  (eval $ac_try) 2>&5
3414  ac_status=$?
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); }; } &&
3417	 { ac_try='test -s conftest$ac_exeext'
3418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419  (eval $ac_try) 2>&5
3420  ac_status=$?
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); }; }; then
3423  :
3424else
3425  echo "$as_me: failed program was:" >&5
3426sed 's/^/| /' conftest.$ac_ext >&5
3427
3428echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3429echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3430if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3431  echo $ECHO_N "(cached) $ECHO_C" >&6
3432else
3433  ac_check_lib_save_LIBS=$LIBS
3434LIBS="-ldnet  $LIBS"
3435cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h.  */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h.  */
3441
3442/* Override any gcc2 internal prototype to avoid an error.  */
3443#ifdef __cplusplus
3444extern "C"
3445#endif
3446/* We use char because int might match the return type of a gcc2
3447   builtin and then its argument prototype would still apply.  */
3448char dnet_ntoa ();
3449int
3450main ()
3451{
3452dnet_ntoa ();
3453  ;
3454  return 0;
3455}
3456_ACEOF
3457rm -f conftest.$ac_objext conftest$ac_exeext
3458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3459  (eval $ac_link) 2>conftest.er1
3460  ac_status=$?
3461  grep -v '^ *+' conftest.er1 >conftest.err
3462  rm -f conftest.er1
3463  cat conftest.err >&5
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); } &&
3466	 { ac_try='test -z "$ac_cxx_werror_flag"
3467			 || test ! -s conftest.err'
3468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469  (eval $ac_try) 2>&5
3470  ac_status=$?
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); }; } &&
3473	 { ac_try='test -s conftest$ac_exeext'
3474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475  (eval $ac_try) 2>&5
3476  ac_status=$?
3477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); }; }; then
3479  ac_cv_lib_dnet_dnet_ntoa=yes
3480else
3481  echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
3484ac_cv_lib_dnet_dnet_ntoa=no
3485fi
3486rm -f conftest.err conftest.$ac_objext \
3487      conftest$ac_exeext conftest.$ac_ext
3488LIBS=$ac_check_lib_save_LIBS
3489fi
3490echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3491echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3492if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3493  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3494fi
3495
3496    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3497      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3498echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3499if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3500  echo $ECHO_N "(cached) $ECHO_C" >&6
3501else
3502  ac_check_lib_save_LIBS=$LIBS
3503LIBS="-ldnet_stub  $LIBS"
3504cat >conftest.$ac_ext <<_ACEOF
3505/* confdefs.h.  */
3506_ACEOF
3507cat confdefs.h >>conftest.$ac_ext
3508cat >>conftest.$ac_ext <<_ACEOF
3509/* end confdefs.h.  */
3510
3511/* Override any gcc2 internal prototype to avoid an error.  */
3512#ifdef __cplusplus
3513extern "C"
3514#endif
3515/* We use char because int might match the return type of a gcc2
3516   builtin and then its argument prototype would still apply.  */
3517char dnet_ntoa ();
3518int
3519main ()
3520{
3521dnet_ntoa ();
3522  ;
3523  return 0;
3524}
3525_ACEOF
3526rm -f conftest.$ac_objext conftest$ac_exeext
3527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3528  (eval $ac_link) 2>conftest.er1
3529  ac_status=$?
3530  grep -v '^ *+' conftest.er1 >conftest.err
3531  rm -f conftest.er1
3532  cat conftest.err >&5
3533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534  (exit $ac_status); } &&
3535	 { ac_try='test -z "$ac_cxx_werror_flag"
3536			 || test ! -s conftest.err'
3537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538  (eval $ac_try) 2>&5
3539  ac_status=$?
3540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541  (exit $ac_status); }; } &&
3542	 { ac_try='test -s conftest$ac_exeext'
3543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544  (eval $ac_try) 2>&5
3545  ac_status=$?
3546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547  (exit $ac_status); }; }; then
3548  ac_cv_lib_dnet_stub_dnet_ntoa=yes
3549else
3550  echo "$as_me: failed program was:" >&5
3551sed 's/^/| /' conftest.$ac_ext >&5
3552
3553ac_cv_lib_dnet_stub_dnet_ntoa=no
3554fi
3555rm -f conftest.err conftest.$ac_objext \
3556      conftest$ac_exeext conftest.$ac_ext
3557LIBS=$ac_check_lib_save_LIBS
3558fi
3559echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3560echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3561if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3562  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3563fi
3564
3565    fi
3566fi
3567rm -f conftest.err conftest.$ac_objext \
3568      conftest$ac_exeext conftest.$ac_ext
3569    LIBS="$ac_xsave_LIBS"
3570
3571    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3572    # to get the SysV transport functions.
3573    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3574    # needs -lnsl.
3575    # The nsl library prevents programs from opening the X display
3576    # on Irix 5.2, according to T.E. Dickey.
3577    # The functions gethostbyname, getservbyname, and inet_addr are
3578    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3579    echo "$as_me:$LINENO: checking for gethostbyname" >&5
3580echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3581if test "${ac_cv_func_gethostbyname+set}" = set; then
3582  echo $ECHO_N "(cached) $ECHO_C" >&6
3583else
3584  cat >conftest.$ac_ext <<_ACEOF
3585/* confdefs.h.  */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h.  */
3590/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3591   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3592#define gethostbyname innocuous_gethostbyname
3593
3594/* System header to define __stub macros and hopefully few prototypes,
3595    which can conflict with char gethostbyname (); below.
3596    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3597    <limits.h> exists even on freestanding compilers.  */
3598
3599#ifdef __STDC__
3600# include <limits.h>
3601#else
3602# include <assert.h>
3603#endif
3604
3605#undef gethostbyname
3606
3607/* Override any gcc2 internal prototype to avoid an error.  */
3608#ifdef __cplusplus
3609extern "C"
3610{
3611#endif
3612/* We use char because int might match the return type of a gcc2
3613   builtin and then its argument prototype would still apply.  */
3614char gethostbyname ();
3615/* The GNU C library defines this for functions which it implements
3616    to always fail with ENOSYS.  Some functions are actually named
3617    something starting with __ and the normal name is an alias.  */
3618#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3619choke me
3620#else
3621char (*f) () = gethostbyname;
3622#endif
3623#ifdef __cplusplus
3624}
3625#endif
3626
3627int
3628main ()
3629{
3630return f != gethostbyname;
3631  ;
3632  return 0;
3633}
3634_ACEOF
3635rm -f conftest.$ac_objext conftest$ac_exeext
3636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3637  (eval $ac_link) 2>conftest.er1
3638  ac_status=$?
3639  grep -v '^ *+' conftest.er1 >conftest.err
3640  rm -f conftest.er1
3641  cat conftest.err >&5
3642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643  (exit $ac_status); } &&
3644	 { ac_try='test -z "$ac_cxx_werror_flag"
3645			 || test ! -s conftest.err'
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); }; } &&
3651	 { ac_try='test -s conftest$ac_exeext'
3652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653  (eval $ac_try) 2>&5
3654  ac_status=$?
3655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); }; }; then
3657  ac_cv_func_gethostbyname=yes
3658else
3659  echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
3662ac_cv_func_gethostbyname=no
3663fi
3664rm -f conftest.err conftest.$ac_objext \
3665      conftest$ac_exeext conftest.$ac_ext
3666fi
3667echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3668echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3669
3670    if test $ac_cv_func_gethostbyname = no; then
3671      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3672echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3673if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3674  echo $ECHO_N "(cached) $ECHO_C" >&6
3675else
3676  ac_check_lib_save_LIBS=$LIBS
3677LIBS="-lnsl  $LIBS"
3678cat >conftest.$ac_ext <<_ACEOF
3679/* confdefs.h.  */
3680_ACEOF
3681cat confdefs.h >>conftest.$ac_ext
3682cat >>conftest.$ac_ext <<_ACEOF
3683/* end confdefs.h.  */
3684
3685/* Override any gcc2 internal prototype to avoid an error.  */
3686#ifdef __cplusplus
3687extern "C"
3688#endif
3689/* We use char because int might match the return type of a gcc2
3690   builtin and then its argument prototype would still apply.  */
3691char gethostbyname ();
3692int
3693main ()
3694{
3695gethostbyname ();
3696  ;
3697  return 0;
3698}
3699_ACEOF
3700rm -f conftest.$ac_objext conftest$ac_exeext
3701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3702  (eval $ac_link) 2>conftest.er1
3703  ac_status=$?
3704  grep -v '^ *+' conftest.er1 >conftest.err
3705  rm -f conftest.er1
3706  cat conftest.err >&5
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); } &&
3709	 { ac_try='test -z "$ac_cxx_werror_flag"
3710			 || test ! -s conftest.err'
3711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712  (eval $ac_try) 2>&5
3713  ac_status=$?
3714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715  (exit $ac_status); }; } &&
3716	 { ac_try='test -s 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_lib_nsl_gethostbyname=yes
3723else
3724  echo "$as_me: failed program was:" >&5
3725sed 's/^/| /' conftest.$ac_ext >&5
3726
3727ac_cv_lib_nsl_gethostbyname=no
3728fi
3729rm -f conftest.err conftest.$ac_objext \
3730      conftest$ac_exeext conftest.$ac_ext
3731LIBS=$ac_check_lib_save_LIBS
3732fi
3733echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3734echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3735if test $ac_cv_lib_nsl_gethostbyname = yes; then
3736  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3737fi
3738
3739      if test $ac_cv_lib_nsl_gethostbyname = no; then
3740	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3741echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3742if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3743  echo $ECHO_N "(cached) $ECHO_C" >&6
3744else
3745  ac_check_lib_save_LIBS=$LIBS
3746LIBS="-lbsd  $LIBS"
3747cat >conftest.$ac_ext <<_ACEOF
3748/* confdefs.h.  */
3749_ACEOF
3750cat confdefs.h >>conftest.$ac_ext
3751cat >>conftest.$ac_ext <<_ACEOF
3752/* end confdefs.h.  */
3753
3754/* Override any gcc2 internal prototype to avoid an error.  */
3755#ifdef __cplusplus
3756extern "C"
3757#endif
3758/* We use char because int might match the return type of a gcc2
3759   builtin and then its argument prototype would still apply.  */
3760char gethostbyname ();
3761int
3762main ()
3763{
3764gethostbyname ();
3765  ;
3766  return 0;
3767}
3768_ACEOF
3769rm -f conftest.$ac_objext conftest$ac_exeext
3770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3771  (eval $ac_link) 2>conftest.er1
3772  ac_status=$?
3773  grep -v '^ *+' conftest.er1 >conftest.err
3774  rm -f conftest.er1
3775  cat conftest.err >&5
3776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777  (exit $ac_status); } &&
3778	 { ac_try='test -z "$ac_cxx_werror_flag"
3779			 || test ! -s conftest.err'
3780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781  (eval $ac_try) 2>&5
3782  ac_status=$?
3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784  (exit $ac_status); }; } &&
3785	 { ac_try='test -s conftest$ac_exeext'
3786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787  (eval $ac_try) 2>&5
3788  ac_status=$?
3789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790  (exit $ac_status); }; }; then
3791  ac_cv_lib_bsd_gethostbyname=yes
3792else
3793  echo "$as_me: failed program was:" >&5
3794sed 's/^/| /' conftest.$ac_ext >&5
3795
3796ac_cv_lib_bsd_gethostbyname=no
3797fi
3798rm -f conftest.err conftest.$ac_objext \
3799      conftest$ac_exeext conftest.$ac_ext
3800LIBS=$ac_check_lib_save_LIBS
3801fi
3802echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3803echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3804if test $ac_cv_lib_bsd_gethostbyname = yes; then
3805  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3806fi
3807
3808      fi
3809    fi
3810
3811    # lieder@skyler.mavd.honeywell.com says without -lsocket,
3812    # socket/setsockopt and other routines are undefined under SCO ODT
3813    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3814    # on later versions), says Simon Leinen: it contains gethostby*
3815    # variants that don't use the name server (or something).  -lsocket
3816    # must be given before -lnsl if both are needed.  We assume that
3817    # if connect needs -lnsl, so does gethostbyname.
3818    echo "$as_me:$LINENO: checking for connect" >&5
3819echo $ECHO_N "checking for connect... $ECHO_C" >&6
3820if test "${ac_cv_func_connect+set}" = set; then
3821  echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823  cat >conftest.$ac_ext <<_ACEOF
3824/* confdefs.h.  */
3825_ACEOF
3826cat confdefs.h >>conftest.$ac_ext
3827cat >>conftest.$ac_ext <<_ACEOF
3828/* end confdefs.h.  */
3829/* Define connect to an innocuous variant, in case <limits.h> declares connect.
3830   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3831#define connect innocuous_connect
3832
3833/* System header to define __stub macros and hopefully few prototypes,
3834    which can conflict with char connect (); below.
3835    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3836    <limits.h> exists even on freestanding compilers.  */
3837
3838#ifdef __STDC__
3839# include <limits.h>
3840#else
3841# include <assert.h>
3842#endif
3843
3844#undef connect
3845
3846/* Override any gcc2 internal prototype to avoid an error.  */
3847#ifdef __cplusplus
3848extern "C"
3849{
3850#endif
3851/* We use char because int might match the return type of a gcc2
3852   builtin and then its argument prototype would still apply.  */
3853char connect ();
3854/* The GNU C library defines this for functions which it implements
3855    to always fail with ENOSYS.  Some functions are actually named
3856    something starting with __ and the normal name is an alias.  */
3857#if defined (__stub_connect) || defined (__stub___connect)
3858choke me
3859#else
3860char (*f) () = connect;
3861#endif
3862#ifdef __cplusplus
3863}
3864#endif
3865
3866int
3867main ()
3868{
3869return f != connect;
3870  ;
3871  return 0;
3872}
3873_ACEOF
3874rm -f conftest.$ac_objext conftest$ac_exeext
3875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3876  (eval $ac_link) 2>conftest.er1
3877  ac_status=$?
3878  grep -v '^ *+' conftest.er1 >conftest.err
3879  rm -f conftest.er1
3880  cat conftest.err >&5
3881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882  (exit $ac_status); } &&
3883	 { ac_try='test -z "$ac_cxx_werror_flag"
3884			 || test ! -s conftest.err'
3885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886  (eval $ac_try) 2>&5
3887  ac_status=$?
3888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889  (exit $ac_status); }; } &&
3890	 { ac_try='test -s conftest$ac_exeext'
3891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892  (eval $ac_try) 2>&5
3893  ac_status=$?
3894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895  (exit $ac_status); }; }; then
3896  ac_cv_func_connect=yes
3897else
3898  echo "$as_me: failed program was:" >&5
3899sed 's/^/| /' conftest.$ac_ext >&5
3900
3901ac_cv_func_connect=no
3902fi
3903rm -f conftest.err conftest.$ac_objext \
3904      conftest$ac_exeext conftest.$ac_ext
3905fi
3906echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3907echo "${ECHO_T}$ac_cv_func_connect" >&6
3908
3909    if test $ac_cv_func_connect = no; then
3910      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3911echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3912if test "${ac_cv_lib_socket_connect+set}" = set; then
3913  echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915  ac_check_lib_save_LIBS=$LIBS
3916LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3917cat >conftest.$ac_ext <<_ACEOF
3918/* confdefs.h.  */
3919_ACEOF
3920cat confdefs.h >>conftest.$ac_ext
3921cat >>conftest.$ac_ext <<_ACEOF
3922/* end confdefs.h.  */
3923
3924/* Override any gcc2 internal prototype to avoid an error.  */
3925#ifdef __cplusplus
3926extern "C"
3927#endif
3928/* We use char because int might match the return type of a gcc2
3929   builtin and then its argument prototype would still apply.  */
3930char connect ();
3931int
3932main ()
3933{
3934connect ();
3935  ;
3936  return 0;
3937}
3938_ACEOF
3939rm -f conftest.$ac_objext conftest$ac_exeext
3940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3941  (eval $ac_link) 2>conftest.er1
3942  ac_status=$?
3943  grep -v '^ *+' conftest.er1 >conftest.err
3944  rm -f conftest.er1
3945  cat conftest.err >&5
3946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947  (exit $ac_status); } &&
3948	 { ac_try='test -z "$ac_cxx_werror_flag"
3949			 || test ! -s conftest.err'
3950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951  (eval $ac_try) 2>&5
3952  ac_status=$?
3953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954  (exit $ac_status); }; } &&
3955	 { ac_try='test -s conftest$ac_exeext'
3956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957  (eval $ac_try) 2>&5
3958  ac_status=$?
3959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960  (exit $ac_status); }; }; then
3961  ac_cv_lib_socket_connect=yes
3962else
3963  echo "$as_me: failed program was:" >&5
3964sed 's/^/| /' conftest.$ac_ext >&5
3965
3966ac_cv_lib_socket_connect=no
3967fi
3968rm -f conftest.err conftest.$ac_objext \
3969      conftest$ac_exeext conftest.$ac_ext
3970LIBS=$ac_check_lib_save_LIBS
3971fi
3972echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3973echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3974if test $ac_cv_lib_socket_connect = yes; then
3975  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3976fi
3977
3978    fi
3979
3980    # Guillermo Gomez says -lposix is necessary on A/UX.
3981    echo "$as_me:$LINENO: checking for remove" >&5
3982echo $ECHO_N "checking for remove... $ECHO_C" >&6
3983if test "${ac_cv_func_remove+set}" = set; then
3984  echo $ECHO_N "(cached) $ECHO_C" >&6
3985else
3986  cat >conftest.$ac_ext <<_ACEOF
3987/* confdefs.h.  */
3988_ACEOF
3989cat confdefs.h >>conftest.$ac_ext
3990cat >>conftest.$ac_ext <<_ACEOF
3991/* end confdefs.h.  */
3992/* Define remove to an innocuous variant, in case <limits.h> declares remove.
3993   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3994#define remove innocuous_remove
3995
3996/* System header to define __stub macros and hopefully few prototypes,
3997    which can conflict with char remove (); below.
3998    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999    <limits.h> exists even on freestanding compilers.  */
4000
4001#ifdef __STDC__
4002# include <limits.h>
4003#else
4004# include <assert.h>
4005#endif
4006
4007#undef remove
4008
4009/* Override any gcc2 internal prototype to avoid an error.  */
4010#ifdef __cplusplus
4011extern "C"
4012{
4013#endif
4014/* We use char because int might match the return type of a gcc2
4015   builtin and then its argument prototype would still apply.  */
4016char remove ();
4017/* The GNU C library defines this for functions which it implements
4018    to always fail with ENOSYS.  Some functions are actually named
4019    something starting with __ and the normal name is an alias.  */
4020#if defined (__stub_remove) || defined (__stub___remove)
4021choke me
4022#else
4023char (*f) () = remove;
4024#endif
4025#ifdef __cplusplus
4026}
4027#endif
4028
4029int
4030main ()
4031{
4032return f != remove;
4033  ;
4034  return 0;
4035}
4036_ACEOF
4037rm -f conftest.$ac_objext conftest$ac_exeext
4038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4039  (eval $ac_link) 2>conftest.er1
4040  ac_status=$?
4041  grep -v '^ *+' conftest.er1 >conftest.err
4042  rm -f conftest.er1
4043  cat conftest.err >&5
4044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045  (exit $ac_status); } &&
4046	 { ac_try='test -z "$ac_cxx_werror_flag"
4047			 || test ! -s conftest.err'
4048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049  (eval $ac_try) 2>&5
4050  ac_status=$?
4051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052  (exit $ac_status); }; } &&
4053	 { ac_try='test -s conftest$ac_exeext'
4054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055  (eval $ac_try) 2>&5
4056  ac_status=$?
4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058  (exit $ac_status); }; }; then
4059  ac_cv_func_remove=yes
4060else
4061  echo "$as_me: failed program was:" >&5
4062sed 's/^/| /' conftest.$ac_ext >&5
4063
4064ac_cv_func_remove=no
4065fi
4066rm -f conftest.err conftest.$ac_objext \
4067      conftest$ac_exeext conftest.$ac_ext
4068fi
4069echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4070echo "${ECHO_T}$ac_cv_func_remove" >&6
4071
4072    if test $ac_cv_func_remove = no; then
4073      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4074echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4075if test "${ac_cv_lib_posix_remove+set}" = set; then
4076  echo $ECHO_N "(cached) $ECHO_C" >&6
4077else
4078  ac_check_lib_save_LIBS=$LIBS
4079LIBS="-lposix  $LIBS"
4080cat >conftest.$ac_ext <<_ACEOF
4081/* confdefs.h.  */
4082_ACEOF
4083cat confdefs.h >>conftest.$ac_ext
4084cat >>conftest.$ac_ext <<_ACEOF
4085/* end confdefs.h.  */
4086
4087/* Override any gcc2 internal prototype to avoid an error.  */
4088#ifdef __cplusplus
4089extern "C"
4090#endif
4091/* We use char because int might match the return type of a gcc2
4092   builtin and then its argument prototype would still apply.  */
4093char remove ();
4094int
4095main ()
4096{
4097remove ();
4098  ;
4099  return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext conftest$ac_exeext
4103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4104  (eval $ac_link) 2>conftest.er1
4105  ac_status=$?
4106  grep -v '^ *+' conftest.er1 >conftest.err
4107  rm -f conftest.er1
4108  cat conftest.err >&5
4109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110  (exit $ac_status); } &&
4111	 { ac_try='test -z "$ac_cxx_werror_flag"
4112			 || test ! -s conftest.err'
4113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114  (eval $ac_try) 2>&5
4115  ac_status=$?
4116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117  (exit $ac_status); }; } &&
4118	 { ac_try='test -s conftest$ac_exeext'
4119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120  (eval $ac_try) 2>&5
4121  ac_status=$?
4122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123  (exit $ac_status); }; }; then
4124  ac_cv_lib_posix_remove=yes
4125else
4126  echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
4129ac_cv_lib_posix_remove=no
4130fi
4131rm -f conftest.err conftest.$ac_objext \
4132      conftest$ac_exeext conftest.$ac_ext
4133LIBS=$ac_check_lib_save_LIBS
4134fi
4135echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4136echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4137if test $ac_cv_lib_posix_remove = yes; then
4138  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4139fi
4140
4141    fi
4142
4143    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4144    echo "$as_me:$LINENO: checking for shmat" >&5
4145echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4146if test "${ac_cv_func_shmat+set}" = set; then
4147  echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149  cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h.  */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
4154/* end confdefs.h.  */
4155/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4156   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4157#define shmat innocuous_shmat
4158
4159/* System header to define __stub macros and hopefully few prototypes,
4160    which can conflict with char shmat (); below.
4161    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4162    <limits.h> exists even on freestanding compilers.  */
4163
4164#ifdef __STDC__
4165# include <limits.h>
4166#else
4167# include <assert.h>
4168#endif
4169
4170#undef shmat
4171
4172/* Override any gcc2 internal prototype to avoid an error.  */
4173#ifdef __cplusplus
4174extern "C"
4175{
4176#endif
4177/* We use char because int might match the return type of a gcc2
4178   builtin and then its argument prototype would still apply.  */
4179char shmat ();
4180/* The GNU C library defines this for functions which it implements
4181    to always fail with ENOSYS.  Some functions are actually named
4182    something starting with __ and the normal name is an alias.  */
4183#if defined (__stub_shmat) || defined (__stub___shmat)
4184choke me
4185#else
4186char (*f) () = shmat;
4187#endif
4188#ifdef __cplusplus
4189}
4190#endif
4191
4192int
4193main ()
4194{
4195return f != shmat;
4196  ;
4197  return 0;
4198}
4199_ACEOF
4200rm -f conftest.$ac_objext conftest$ac_exeext
4201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202  (eval $ac_link) 2>conftest.er1
4203  ac_status=$?
4204  grep -v '^ *+' conftest.er1 >conftest.err
4205  rm -f conftest.er1
4206  cat conftest.err >&5
4207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208  (exit $ac_status); } &&
4209	 { ac_try='test -z "$ac_cxx_werror_flag"
4210			 || test ! -s conftest.err'
4211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212  (eval $ac_try) 2>&5
4213  ac_status=$?
4214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215  (exit $ac_status); }; } &&
4216	 { ac_try='test -s conftest$ac_exeext'
4217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218  (eval $ac_try) 2>&5
4219  ac_status=$?
4220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221  (exit $ac_status); }; }; then
4222  ac_cv_func_shmat=yes
4223else
4224  echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4227ac_cv_func_shmat=no
4228fi
4229rm -f conftest.err conftest.$ac_objext \
4230      conftest$ac_exeext conftest.$ac_ext
4231fi
4232echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4233echo "${ECHO_T}$ac_cv_func_shmat" >&6
4234
4235    if test $ac_cv_func_shmat = no; then
4236      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4237echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4238if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4239  echo $ECHO_N "(cached) $ECHO_C" >&6
4240else
4241  ac_check_lib_save_LIBS=$LIBS
4242LIBS="-lipc  $LIBS"
4243cat >conftest.$ac_ext <<_ACEOF
4244/* confdefs.h.  */
4245_ACEOF
4246cat confdefs.h >>conftest.$ac_ext
4247cat >>conftest.$ac_ext <<_ACEOF
4248/* end confdefs.h.  */
4249
4250/* Override any gcc2 internal prototype to avoid an error.  */
4251#ifdef __cplusplus
4252extern "C"
4253#endif
4254/* We use char because int might match the return type of a gcc2
4255   builtin and then its argument prototype would still apply.  */
4256char shmat ();
4257int
4258main ()
4259{
4260shmat ();
4261  ;
4262  return 0;
4263}
4264_ACEOF
4265rm -f conftest.$ac_objext conftest$ac_exeext
4266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267  (eval $ac_link) 2>conftest.er1
4268  ac_status=$?
4269  grep -v '^ *+' conftest.er1 >conftest.err
4270  rm -f conftest.er1
4271  cat conftest.err >&5
4272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273  (exit $ac_status); } &&
4274	 { ac_try='test -z "$ac_cxx_werror_flag"
4275			 || test ! -s conftest.err'
4276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277  (eval $ac_try) 2>&5
4278  ac_status=$?
4279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280  (exit $ac_status); }; } &&
4281	 { ac_try='test -s conftest$ac_exeext'
4282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283  (eval $ac_try) 2>&5
4284  ac_status=$?
4285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286  (exit $ac_status); }; }; then
4287  ac_cv_lib_ipc_shmat=yes
4288else
4289  echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
4292ac_cv_lib_ipc_shmat=no
4293fi
4294rm -f conftest.err conftest.$ac_objext \
4295      conftest$ac_exeext conftest.$ac_ext
4296LIBS=$ac_check_lib_save_LIBS
4297fi
4298echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4299echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4300if test $ac_cv_lib_ipc_shmat = yes; then
4301  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4302fi
4303
4304    fi
4305  fi
4306
4307  # Check for libraries that X11R6 Xt/Xaw programs need.
4308  ac_save_LDFLAGS=$LDFLAGS
4309  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4310  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4311  # check for ICE first), but we must link in the order -lSM -lICE or
4312  # we get undefined symbols.  So assume we have SM if we have ICE.
4313  # These have to be linked with before -lX11, unlike the other
4314  # libraries we check for below, so use a different variable.
4315  # John Interrante, Karl Berry
4316  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4317echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4318if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4319  echo $ECHO_N "(cached) $ECHO_C" >&6
4320else
4321  ac_check_lib_save_LIBS=$LIBS
4322LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4323cat >conftest.$ac_ext <<_ACEOF
4324/* confdefs.h.  */
4325_ACEOF
4326cat confdefs.h >>conftest.$ac_ext
4327cat >>conftest.$ac_ext <<_ACEOF
4328/* end confdefs.h.  */
4329
4330/* Override any gcc2 internal prototype to avoid an error.  */
4331#ifdef __cplusplus
4332extern "C"
4333#endif
4334/* We use char because int might match the return type of a gcc2
4335   builtin and then its argument prototype would still apply.  */
4336char IceConnectionNumber ();
4337int
4338main ()
4339{
4340IceConnectionNumber ();
4341  ;
4342  return 0;
4343}
4344_ACEOF
4345rm -f conftest.$ac_objext conftest$ac_exeext
4346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4347  (eval $ac_link) 2>conftest.er1
4348  ac_status=$?
4349  grep -v '^ *+' conftest.er1 >conftest.err
4350  rm -f conftest.er1
4351  cat conftest.err >&5
4352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353  (exit $ac_status); } &&
4354	 { ac_try='test -z "$ac_cxx_werror_flag"
4355			 || test ! -s conftest.err'
4356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357  (eval $ac_try) 2>&5
4358  ac_status=$?
4359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360  (exit $ac_status); }; } &&
4361	 { ac_try='test -s conftest$ac_exeext'
4362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363  (eval $ac_try) 2>&5
4364  ac_status=$?
4365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366  (exit $ac_status); }; }; then
4367  ac_cv_lib_ICE_IceConnectionNumber=yes
4368else
4369  echo "$as_me: failed program was:" >&5
4370sed 's/^/| /' conftest.$ac_ext >&5
4371
4372ac_cv_lib_ICE_IceConnectionNumber=no
4373fi
4374rm -f conftest.err conftest.$ac_objext \
4375      conftest$ac_exeext conftest.$ac_ext
4376LIBS=$ac_check_lib_save_LIBS
4377fi
4378echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4379echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4380if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4381  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4382fi
4383
4384  LDFLAGS=$ac_save_LDFLAGS
4385
4386fi
4387
4388ac_aux_dir=
4389for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4390  if test -f $ac_dir/install-sh; then
4391    ac_aux_dir=$ac_dir
4392    ac_install_sh="$ac_aux_dir/install-sh -c"
4393    break
4394  elif test -f $ac_dir/install.sh; then
4395    ac_aux_dir=$ac_dir
4396    ac_install_sh="$ac_aux_dir/install.sh -c"
4397    break
4398  elif test -f $ac_dir/shtool; then
4399    ac_aux_dir=$ac_dir
4400    ac_install_sh="$ac_aux_dir/shtool install -c"
4401    break
4402  fi
4403done
4404if test -z "$ac_aux_dir"; then
4405  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4406echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4407   { (exit 1); exit 1; }; }
4408fi
4409ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4410ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4411ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4412
4413# Make sure we can run config.sub.
4414$ac_config_sub sun4 >/dev/null 2>&1 ||
4415  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4416echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4417   { (exit 1); exit 1; }; }
4418
4419echo "$as_me:$LINENO: checking build system type" >&5
4420echo $ECHO_N "checking build system type... $ECHO_C" >&6
4421if test "${ac_cv_build+set}" = set; then
4422  echo $ECHO_N "(cached) $ECHO_C" >&6
4423else
4424  ac_cv_build_alias=$build_alias
4425test -z "$ac_cv_build_alias" &&
4426  ac_cv_build_alias=`$ac_config_guess`
4427test -z "$ac_cv_build_alias" &&
4428  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4429echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4430   { (exit 1); exit 1; }; }
4431ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4432  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4433echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4434   { (exit 1); exit 1; }; }
4435
4436fi
4437echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4438echo "${ECHO_T}$ac_cv_build" >&6
4439build=$ac_cv_build
4440build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4441build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4442build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4443
4444
4445echo "$as_me:$LINENO: checking host system type" >&5
4446echo $ECHO_N "checking host system type... $ECHO_C" >&6
4447if test "${ac_cv_host+set}" = set; then
4448  echo $ECHO_N "(cached) $ECHO_C" >&6
4449else
4450  ac_cv_host_alias=$host_alias
4451test -z "$ac_cv_host_alias" &&
4452  ac_cv_host_alias=$ac_cv_build_alias
4453ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4454  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4455echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4456   { (exit 1); exit 1; }; }
4457
4458fi
4459echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4460echo "${ECHO_T}$ac_cv_host" >&6
4461host=$ac_cv_host
4462host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4463host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4464host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4465
4466
4467echo "$as_me:$LINENO: checking target system type" >&5
4468echo $ECHO_N "checking target system type... $ECHO_C" >&6
4469if test "${ac_cv_target+set}" = set; then
4470  echo $ECHO_N "(cached) $ECHO_C" >&6
4471else
4472  ac_cv_target_alias=$target_alias
4473test "x$ac_cv_target_alias" = "x" &&
4474  ac_cv_target_alias=$ac_cv_host_alias
4475ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
4476  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
4477echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
4478   { (exit 1); exit 1; }; }
4479
4480fi
4481echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4482echo "${ECHO_T}$ac_cv_target" >&6
4483target=$ac_cv_target
4484target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4485target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4486target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4487
4488
4489# The aliases save the names the user supplied, while $host etc.
4490# will get canonicalized.
4491test -n "$target_alias" &&
4492  test "$program_prefix$program_suffix$program_transform_name" = \
4493    NONENONEs,x,x, &&
4494  program_prefix=${target_alias}-
4495# Check whether --enable-shared or --disable-shared was given.
4496if test "${enable_shared+set}" = set; then
4497  enableval="$enable_shared"
4498  p=${PACKAGE-default}
4499case "$enableval" in
4500yes) enable_shared=yes ;;
4501no) enable_shared=no ;;
4502*)
4503  enable_shared=no
4504  # Look at the argument we got.  We use all the common list separators.
4505  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4506  for pkg in $enableval; do
4507    if test "X$pkg" = "X$p"; then
4508      enable_shared=yes
4509    fi
4510  done
4511  IFS="$ac_save_ifs"
4512  ;;
4513esac
4514else
4515  enable_shared=no
4516fi;
4517# Check whether --enable-static or --disable-static was given.
4518if test "${enable_static+set}" = set; then
4519  enableval="$enable_static"
4520  p=${PACKAGE-default}
4521case "$enableval" in
4522yes) enable_static=yes ;;
4523no) enable_static=no ;;
4524*)
4525  enable_static=no
4526  # Look at the argument we got.  We use all the common list separators.
4527  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4528  for pkg in $enableval; do
4529    if test "X$pkg" = "X$p"; then
4530      enable_static=yes
4531    fi
4532  done
4533  IFS="$ac_save_ifs"
4534  ;;
4535esac
4536else
4537  enable_static=yes
4538fi;
4539# Check whether --enable-fast-install or --disable-fast-install was given.
4540if test "${enable_fast_install+set}" = set; then
4541  enableval="$enable_fast_install"
4542  p=${PACKAGE-default}
4543case "$enableval" in
4544yes) enable_fast_install=yes ;;
4545no) enable_fast_install=no ;;
4546*)
4547  enable_fast_install=no
4548  # Look at the argument we got.  We use all the common list separators.
4549  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4550  for pkg in $enableval; do
4551    if test "X$pkg" = "X$p"; then
4552      enable_fast_install=yes
4553    fi
4554  done
4555  IFS="$ac_save_ifs"
4556  ;;
4557esac
4558else
4559  enable_fast_install=yes
4560fi;
4561
4562# Check whether --with-gnu-ld or --without-gnu-ld was given.
4563if test "${with_gnu_ld+set}" = set; then
4564  withval="$with_gnu_ld"
4565  test "$withval" = no || with_gnu_ld=yes
4566else
4567  with_gnu_ld=no
4568fi;
4569ac_prog=ld
4570if test "$ac_cv_c_compiler_gnu" = yes; then
4571  # Check if gcc -print-prog-name=ld gives a path.
4572  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4573echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4574  ac_prog=`($CC -print-prog-name=ld) 2>&5`
4575  case "$ac_prog" in
4576    # Accept absolute paths.
4577    [\\/]* | [A-Za-z]:[\\/]*)
4578      re_direlt='/[^/][^/]*/\.\./'
4579      # Canonicalize the path of ld
4580      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4581      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4582	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4583      done
4584      test -z "$LD" && LD="$ac_prog"
4585      ;;
4586  "")
4587    # If it fails, then pretend we aren't using GCC.
4588    ac_prog=ld
4589    ;;
4590  *)
4591    # If it is relative, then search for the first ld in PATH.
4592    with_gnu_ld=unknown
4593    ;;
4594  esac
4595elif test "$with_gnu_ld" = yes; then
4596  echo "$as_me:$LINENO: checking for GNU ld" >&5
4597echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4598else
4599  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4600echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4601fi
4602if test "${ac_cv_path_LD+set}" = set; then
4603  echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605  if test -z "$LD"; then
4606  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4607  for ac_dir in $PATH; do
4608    test -z "$ac_dir" && ac_dir=.
4609    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4610      ac_cv_path_LD="$ac_dir/$ac_prog"
4611      # Check to see if the program is GNU ld.  I'd rather use --version,
4612      # but apparently some GNU ld's only accept -v.
4613      # Break only if it was the GNU/non-GNU ld that we prefer.
4614      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4615	test "$with_gnu_ld" != no && break
4616      else
4617	test "$with_gnu_ld" != yes && break
4618      fi
4619    fi
4620  done
4621  IFS="$ac_save_ifs"
4622else
4623  ac_cv_path_LD="$LD" # Let the user override the test with a path.
4624fi
4625fi
4626
4627LD="$ac_cv_path_LD"
4628if test -n "$LD"; then
4629  echo "$as_me:$LINENO: result: $LD" >&5
4630echo "${ECHO_T}$LD" >&6
4631else
4632  echo "$as_me:$LINENO: result: no" >&5
4633echo "${ECHO_T}no" >&6
4634fi
4635test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4636echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4637   { (exit 1); exit 1; }; }
4638
4639echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4640echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4641if test "${ac_cv_prog_gnu_ld+set}" = set; then
4642  echo $ECHO_N "(cached) $ECHO_C" >&6
4643else
4644  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4645if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4646  ac_cv_prog_gnu_ld=yes
4647else
4648  ac_cv_prog_gnu_ld=no
4649fi
4650fi
4651echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4652echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4653
4654
4655echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4656echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4657if test "${ac_cv_path_NM+set}" = set; then
4658  echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660  if test -n "$NM"; then
4661  # Let the user override the test.
4662  ac_cv_path_NM="$NM"
4663else
4664  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4665  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4666    test -z "$ac_dir" && ac_dir=.
4667    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
4668      # Check to see if the nm accepts a BSD-compat flag.
4669      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4670      #   nm: unknown option "B" ignored
4671      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4672	ac_cv_path_NM="$ac_dir/nm -B"
4673	break
4674      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4675	ac_cv_path_NM="$ac_dir/nm -p"
4676	break
4677      else
4678	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
4679	continue # so that we can try to find one that supports BSD flags
4680      fi
4681    fi
4682  done
4683  IFS="$ac_save_ifs"
4684  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
4685fi
4686fi
4687
4688NM="$ac_cv_path_NM"
4689echo "$as_me:$LINENO: result: $NM" >&5
4690echo "${ECHO_T}$NM" >&6
4691
4692
4693echo "$as_me:$LINENO: checking whether ln -s works" >&5
4694echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4695LN_S=$as_ln_s
4696if test "$LN_S" = "ln -s"; then
4697  echo "$as_me:$LINENO: result: yes" >&5
4698echo "${ECHO_T}yes" >&6
4699else
4700  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4701echo "${ECHO_T}no, using $LN_S" >&6
4702fi
4703
4704
4705# Check for any special flags to pass to ltconfig.
4706libtool_flags="--cache-file=$cache_file"
4707test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4708test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4709test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4710test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc"
4711test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4712
4713
4714# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4715if test "${enable_libtool_lock+set}" = set; then
4716  enableval="$enable_libtool_lock"
4717
4718fi;
4719test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4720test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4721
4722# Some flags need to be propagated to the compiler or linker for good
4723# libtool support.
4724case "$host" in
4725*-*-irix6*)
4726  # Find out which ABI we are using.
4727  echo '#line 4727 "configure"' > conftest.$ac_ext
4728  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729  (eval $ac_compile) 2>&5
4730  ac_status=$?
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); }; then
4733    case "`/usr/bin/file conftest.o`" in
4734    *32-bit*)
4735      LD="${LD-ld} -32"
4736      ;;
4737    *N32*)
4738      LD="${LD-ld} -n32"
4739      ;;
4740    *64-bit*)
4741      LD="${LD-ld} -64"
4742      ;;
4743    esac
4744  fi
4745  rm -rf conftest*
4746  ;;
4747
4748*-*-sco3.2v5*)
4749  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4750  SAVE_CFLAGS="$CFLAGS"
4751  CFLAGS="$CFLAGS -belf"
4752  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4753echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4754if test "${lt_cv_cc_needs_belf+set}" = set; then
4755  echo $ECHO_N "(cached) $ECHO_C" >&6
4756else
4757  cat >conftest.$ac_ext <<_ACEOF
4758/* confdefs.h.  */
4759_ACEOF
4760cat confdefs.h >>conftest.$ac_ext
4761cat >>conftest.$ac_ext <<_ACEOF
4762/* end confdefs.h.  */
4763
4764int
4765main ()
4766{
4767
4768  ;
4769  return 0;
4770}
4771_ACEOF
4772rm -f conftest.$ac_objext conftest$ac_exeext
4773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4774  (eval $ac_link) 2>conftest.er1
4775  ac_status=$?
4776  grep -v '^ *+' conftest.er1 >conftest.err
4777  rm -f conftest.er1
4778  cat conftest.err >&5
4779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780  (exit $ac_status); } &&
4781	 { ac_try='test -z "$ac_cxx_werror_flag"
4782			 || test ! -s conftest.err'
4783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784  (eval $ac_try) 2>&5
4785  ac_status=$?
4786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787  (exit $ac_status); }; } &&
4788	 { ac_try='test -s conftest$ac_exeext'
4789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790  (eval $ac_try) 2>&5
4791  ac_status=$?
4792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793  (exit $ac_status); }; }; then
4794  lt_cv_cc_needs_belf=yes
4795else
4796  echo "$as_me: failed program was:" >&5
4797sed 's/^/| /' conftest.$ac_ext >&5
4798
4799lt_cv_cc_needs_belf=no
4800fi
4801rm -f conftest.err conftest.$ac_objext \
4802      conftest$ac_exeext conftest.$ac_ext
4803fi
4804echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4805echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4806  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4807    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4808    CFLAGS="$SAVE_CFLAGS"
4809  fi
4810  ;;
4811
4812
4813esac
4814
4815
4816# Save cache, so that ltconfig can load it
4817cat >confcache <<\_ACEOF
4818# This file is a shell script that caches the results of configure
4819# tests run on this system so they can be shared between configure
4820# scripts and configure runs, see configure's option --config-cache.
4821# It is not useful on other systems.  If it contains results you don't
4822# want to keep, you may remove or edit it.
4823#
4824# config.status only pays attention to the cache file if you give it
4825# the --recheck option to rerun configure.
4826#
4827# `ac_cv_env_foo' variables (set or unset) will be overridden when
4828# loading this file, other *unset* `ac_cv_foo' will be assigned the
4829# following values.
4830
4831_ACEOF
4832
4833# The following way of writing the cache mishandles newlines in values,
4834# but we know of no workaround that is simple, portable, and efficient.
4835# So, don't put newlines in cache variables' values.
4836# Ultrix sh set writes to stderr and can't be redirected directly,
4837# and sets the high bit in the cache file unless we assign to the vars.
4838{
4839  (set) 2>&1 |
4840    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4841    *ac_space=\ *)
4842      # `set' does not quote correctly, so add quotes (double-quote
4843      # substitution turns \\\\ into \\, and sed turns \\ into \).
4844      sed -n \
4845	"s/'/'\\\\''/g;
4846	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4847      ;;
4848    *)
4849      # `set' quotes correctly as required by POSIX, so do not add quotes.
4850      sed -n \
4851	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4852      ;;
4853    esac;
4854} |
4855  sed '
4856     t clear
4857     : clear
4858     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4859     t end
4860     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4861     : end' >>confcache
4862if diff $cache_file confcache >/dev/null 2>&1; then :; else
4863  if test -w $cache_file; then
4864    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4865    cat confcache >$cache_file
4866  else
4867    echo "not updating unwritable cache $cache_file"
4868  fi
4869fi
4870rm -f confcache
4871
4872# Actually configure libtool.  ac_aux_dir is where install-sh is found.
4873CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4874LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4875LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
4876DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
4877${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4878$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
4879|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4880echo "$as_me: error: libtool configure failed" >&2;}
4881   { (exit 1); exit 1; }; }
4882
4883# Reload cache, that may have been modified by ltconfig
4884if test -r "$cache_file"; then
4885  # Some versions of bash will fail to source /dev/null (special
4886  # files actually), so we avoid doing that.
4887  if test -f "$cache_file"; then
4888    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4889echo "$as_me: loading cache $cache_file" >&6;}
4890    case $cache_file in
4891      [\\/]* | ?:[\\/]* ) . $cache_file;;
4892      *)                      . ./$cache_file;;
4893    esac
4894  fi
4895else
4896  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4897echo "$as_me: creating cache $cache_file" >&6;}
4898  >$cache_file
4899fi
4900
4901
4902# This can be used to rebuild libtool when needed
4903LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
4904
4905# Always use our own libtool.
4906LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4907
4908# Redirect the config.log output again, so that the ltconfig log is not
4909# clobbered by the next message.
4910exec 5>>./config.log
4911
4912
4913inttypes=no
4914echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4915echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4916if test "${ac_cv_header_stdc+set}" = set; then
4917  echo $ECHO_N "(cached) $ECHO_C" >&6
4918else
4919  cat >conftest.$ac_ext <<_ACEOF
4920/* confdefs.h.  */
4921_ACEOF
4922cat confdefs.h >>conftest.$ac_ext
4923cat >>conftest.$ac_ext <<_ACEOF
4924/* end confdefs.h.  */
4925#include <stdlib.h>
4926#include <stdarg.h>
4927#include <string.h>
4928#include <float.h>
4929
4930int
4931main ()
4932{
4933
4934  ;
4935  return 0;
4936}
4937_ACEOF
4938rm -f conftest.$ac_objext
4939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940  (eval $ac_compile) 2>conftest.er1
4941  ac_status=$?
4942  grep -v '^ *+' conftest.er1 >conftest.err
4943  rm -f conftest.er1
4944  cat conftest.err >&5
4945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946  (exit $ac_status); } &&
4947	 { ac_try='test -z "$ac_cxx_werror_flag"
4948			 || test ! -s conftest.err'
4949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950  (eval $ac_try) 2>&5
4951  ac_status=$?
4952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953  (exit $ac_status); }; } &&
4954	 { ac_try='test -s conftest.$ac_objext'
4955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956  (eval $ac_try) 2>&5
4957  ac_status=$?
4958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959  (exit $ac_status); }; }; then
4960  ac_cv_header_stdc=yes
4961else
4962  echo "$as_me: failed program was:" >&5
4963sed 's/^/| /' conftest.$ac_ext >&5
4964
4965ac_cv_header_stdc=no
4966fi
4967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4968
4969if test $ac_cv_header_stdc = yes; then
4970  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4971  cat >conftest.$ac_ext <<_ACEOF
4972/* confdefs.h.  */
4973_ACEOF
4974cat confdefs.h >>conftest.$ac_ext
4975cat >>conftest.$ac_ext <<_ACEOF
4976/* end confdefs.h.  */
4977#include <string.h>
4978
4979_ACEOF
4980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4981  $EGREP "memchr" >/dev/null 2>&1; then
4982  :
4983else
4984  ac_cv_header_stdc=no
4985fi
4986rm -f conftest*
4987
4988fi
4989
4990if test $ac_cv_header_stdc = yes; then
4991  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4992  cat >conftest.$ac_ext <<_ACEOF
4993/* confdefs.h.  */
4994_ACEOF
4995cat confdefs.h >>conftest.$ac_ext
4996cat >>conftest.$ac_ext <<_ACEOF
4997/* end confdefs.h.  */
4998#include <stdlib.h>
4999
5000_ACEOF
5001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5002  $EGREP "free" >/dev/null 2>&1; then
5003  :
5004else
5005  ac_cv_header_stdc=no
5006fi
5007rm -f conftest*
5008
5009fi
5010
5011if test $ac_cv_header_stdc = yes; then
5012  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5013  if test "$cross_compiling" = yes; then
5014  :
5015else
5016  cat >conftest.$ac_ext <<_ACEOF
5017/* confdefs.h.  */
5018_ACEOF
5019cat confdefs.h >>conftest.$ac_ext
5020cat >>conftest.$ac_ext <<_ACEOF
5021/* end confdefs.h.  */
5022#include <ctype.h>
5023#if ((' ' & 0x0FF) == 0x020)
5024# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5025# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5026#else
5027# define ISLOWER(c) \
5028		   (('a' <= (c) && (c) <= 'i') \
5029		     || ('j' <= (c) && (c) <= 'r') \
5030		     || ('s' <= (c) && (c) <= 'z'))
5031# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5032#endif
5033
5034#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5035int
5036main ()
5037{
5038  int i;
5039  for (i = 0; i < 256; i++)
5040    if (XOR (islower (i), ISLOWER (i))
5041	|| toupper (i) != TOUPPER (i))
5042      exit(2);
5043  exit (0);
5044}
5045_ACEOF
5046rm -f conftest$ac_exeext
5047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5048  (eval $ac_link) 2>&5
5049  ac_status=$?
5050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053  (eval $ac_try) 2>&5
5054  ac_status=$?
5055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056  (exit $ac_status); }; }; then
5057  :
5058else
5059  echo "$as_me: program exited with status $ac_status" >&5
5060echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063( exit $ac_status )
5064ac_cv_header_stdc=no
5065fi
5066rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5067fi
5068fi
5069fi
5070echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5071echo "${ECHO_T}$ac_cv_header_stdc" >&6
5072if test $ac_cv_header_stdc = yes; then
5073
5074cat >>confdefs.h <<\_ACEOF
5075#define STDC_HEADERS 1
5076_ACEOF
5077
5078fi
5079
5080# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5091		  inttypes.h stdint.h unistd.h
5092do
5093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5094echo "$as_me:$LINENO: checking for $ac_header" >&5
5095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5096if eval "test \"\${$as_ac_Header+set}\" = set"; then
5097  echo $ECHO_N "(cached) $ECHO_C" >&6
5098else
5099  cat >conftest.$ac_ext <<_ACEOF
5100/* confdefs.h.  */
5101_ACEOF
5102cat confdefs.h >>conftest.$ac_ext
5103cat >>conftest.$ac_ext <<_ACEOF
5104/* end confdefs.h.  */
5105$ac_includes_default
5106
5107#include <$ac_header>
5108_ACEOF
5109rm -f conftest.$ac_objext
5110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5111  (eval $ac_compile) 2>conftest.er1
5112  ac_status=$?
5113  grep -v '^ *+' conftest.er1 >conftest.err
5114  rm -f conftest.er1
5115  cat conftest.err >&5
5116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117  (exit $ac_status); } &&
5118	 { ac_try='test -z "$ac_cxx_werror_flag"
5119			 || test ! -s conftest.err'
5120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121  (eval $ac_try) 2>&5
5122  ac_status=$?
5123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124  (exit $ac_status); }; } &&
5125	 { ac_try='test -s conftest.$ac_objext'
5126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127  (eval $ac_try) 2>&5
5128  ac_status=$?
5129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130  (exit $ac_status); }; }; then
5131  eval "$as_ac_Header=yes"
5132else
5133  echo "$as_me: failed program was:" >&5
5134sed 's/^/| /' conftest.$ac_ext >&5
5135
5136eval "$as_ac_Header=no"
5137fi
5138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5139fi
5140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5142if test `eval echo '${'$as_ac_Header'}'` = yes; then
5143  cat >>confdefs.h <<_ACEOF
5144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5145_ACEOF
5146
5147fi
5148
5149done
5150
5151
5152
5153for ac_header in inttypes.h
5154do
5155as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5156if eval "test \"\${$as_ac_Header+set}\" = set"; then
5157  echo "$as_me:$LINENO: checking for $ac_header" >&5
5158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5159if eval "test \"\${$as_ac_Header+set}\" = set"; then
5160  echo $ECHO_N "(cached) $ECHO_C" >&6
5161fi
5162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5164else
5165  # Is the header compilable?
5166echo "$as_me:$LINENO: checking $ac_header usability" >&5
5167echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5168cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h.  */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h.  */
5174$ac_includes_default
5175#include <$ac_header>
5176_ACEOF
5177rm -f conftest.$ac_objext
5178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5179  (eval $ac_compile) 2>conftest.er1
5180  ac_status=$?
5181  grep -v '^ *+' conftest.er1 >conftest.err
5182  rm -f conftest.er1
5183  cat conftest.err >&5
5184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185  (exit $ac_status); } &&
5186	 { ac_try='test -z "$ac_cxx_werror_flag"
5187			 || test ! -s conftest.err'
5188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189  (eval $ac_try) 2>&5
5190  ac_status=$?
5191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192  (exit $ac_status); }; } &&
5193	 { ac_try='test -s conftest.$ac_objext'
5194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195  (eval $ac_try) 2>&5
5196  ac_status=$?
5197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198  (exit $ac_status); }; }; then
5199  ac_header_compiler=yes
5200else
5201  echo "$as_me: failed program was:" >&5
5202sed 's/^/| /' conftest.$ac_ext >&5
5203
5204ac_header_compiler=no
5205fi
5206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5207echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5208echo "${ECHO_T}$ac_header_compiler" >&6
5209
5210# Is the header present?
5211echo "$as_me:$LINENO: checking $ac_header presence" >&5
5212echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5213cat >conftest.$ac_ext <<_ACEOF
5214/* confdefs.h.  */
5215_ACEOF
5216cat confdefs.h >>conftest.$ac_ext
5217cat >>conftest.$ac_ext <<_ACEOF
5218/* end confdefs.h.  */
5219#include <$ac_header>
5220_ACEOF
5221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5222  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5223  ac_status=$?
5224  grep -v '^ *+' conftest.er1 >conftest.err
5225  rm -f conftest.er1
5226  cat conftest.err >&5
5227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228  (exit $ac_status); } >/dev/null; then
5229  if test -s conftest.err; then
5230    ac_cpp_err=$ac_cxx_preproc_warn_flag
5231    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5232  else
5233    ac_cpp_err=
5234  fi
5235else
5236  ac_cpp_err=yes
5237fi
5238if test -z "$ac_cpp_err"; then
5239  ac_header_preproc=yes
5240else
5241  echo "$as_me: failed program was:" >&5
5242sed 's/^/| /' conftest.$ac_ext >&5
5243
5244  ac_header_preproc=no
5245fi
5246rm -f conftest.err conftest.$ac_ext
5247echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5248echo "${ECHO_T}$ac_header_preproc" >&6
5249
5250# So?  What about this header?
5251case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5252  yes:no: )
5253    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5254echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5255    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5256echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5257    ac_header_preproc=yes
5258    ;;
5259  no:yes:* )
5260    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5262    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5263echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5264    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5265echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5266    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5267echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5268    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5270    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5271echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5272    (
5273      cat <<\_ASBOX
5274## --------------------------------- ##
5275## Report this to the Arts++ lists.  ##
5276## --------------------------------- ##
5277_ASBOX
5278    ) |
5279      sed "s/^/$as_me: WARNING:     /" >&2
5280    ;;
5281esac
5282echo "$as_me:$LINENO: checking for $ac_header" >&5
5283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5284if eval "test \"\${$as_ac_Header+set}\" = set"; then
5285  echo $ECHO_N "(cached) $ECHO_C" >&6
5286else
5287  eval "$as_ac_Header=\$ac_header_preproc"
5288fi
5289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5290echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5291
5292fi
5293if test `eval echo '${'$as_ac_Header'}'` = yes; then
5294  cat >>confdefs.h <<_ACEOF
5295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5296_ACEOF
5297 inttypes=yes
5298fi
5299
5300done
5301
5302case $inttypes in
5303  yes)
5304    echo "$as_me:$LINENO: checking for int8_t in <inttypes.h>" >&5
5305echo $ECHO_N "checking for int8_t in <inttypes.h>... $ECHO_C" >&6
5306    cat >conftest.$ac_ext <<_ACEOF
5307/* confdefs.h.  */
5308_ACEOF
5309cat confdefs.h >>conftest.$ac_ext
5310cat >>conftest.$ac_ext <<_ACEOF
5311/* end confdefs.h.  */
5312#include <inttypes.h>
5313int
5314main ()
5315{
5316int8_t  bar;
5317  ;
5318  return 0;
5319}
5320_ACEOF
5321rm -f conftest.$ac_objext
5322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5323  (eval $ac_compile) 2>conftest.er1
5324  ac_status=$?
5325  grep -v '^ *+' conftest.er1 >conftest.err
5326  rm -f conftest.er1
5327  cat conftest.err >&5
5328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329  (exit $ac_status); } &&
5330	 { ac_try='test -z "$ac_cxx_werror_flag"
5331			 || test ! -s conftest.err'
5332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333  (eval $ac_try) 2>&5
5334  ac_status=$?
5335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336  (exit $ac_status); }; } &&
5337	 { ac_try='test -s conftest.$ac_objext'
5338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339  (eval $ac_try) 2>&5
5340  ac_status=$?
5341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342  (exit $ac_status); }; }; then
5343  cat >>confdefs.h <<\_ACEOF
5344#define HAVE_INT8_T 1
5345_ACEOF
5346
5347	 echo "$as_me:$LINENO: result: yes" >&5
5348echo "${ECHO_T}yes" >&6
5349
5350else
5351  echo "$as_me: failed program was:" >&5
5352sed 's/^/| /' conftest.$ac_ext >&5
5353
5354echo "$as_me:$LINENO: result: no" >&5
5355echo "${ECHO_T}no" >&6
5356fi
5357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5358    echo "$as_me:$LINENO: checking for int16_t in <inttypes.h>" >&5
5359echo $ECHO_N "checking for int16_t in <inttypes.h>... $ECHO_C" >&6
5360    cat >conftest.$ac_ext <<_ACEOF
5361/* confdefs.h.  */
5362_ACEOF
5363cat confdefs.h >>conftest.$ac_ext
5364cat >>conftest.$ac_ext <<_ACEOF
5365/* end confdefs.h.  */
5366#include <inttypes.h>
5367int
5368main ()
5369{
5370int16_t  bar;
5371  ;
5372  return 0;
5373}
5374_ACEOF
5375rm -f conftest.$ac_objext
5376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5377  (eval $ac_compile) 2>conftest.er1
5378  ac_status=$?
5379  grep -v '^ *+' conftest.er1 >conftest.err
5380  rm -f conftest.er1
5381  cat conftest.err >&5
5382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383  (exit $ac_status); } &&
5384	 { ac_try='test -z "$ac_cxx_werror_flag"
5385			 || test ! -s conftest.err'
5386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387  (eval $ac_try) 2>&5
5388  ac_status=$?
5389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390  (exit $ac_status); }; } &&
5391	 { ac_try='test -s conftest.$ac_objext'
5392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393  (eval $ac_try) 2>&5
5394  ac_status=$?
5395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396  (exit $ac_status); }; }; then
5397  cat >>confdefs.h <<\_ACEOF
5398#define HAVE_INT16_T 1
5399_ACEOF
5400
5401	 echo "$as_me:$LINENO: result: yes" >&5
5402echo "${ECHO_T}yes" >&6
5403
5404else
5405  echo "$as_me: failed program was:" >&5
5406sed 's/^/| /' conftest.$ac_ext >&5
5407
5408echo "$as_me:$LINENO: result: no" >&5
5409echo "${ECHO_T}no" >&6
5410fi
5411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5412    echo "$as_me:$LINENO: checking for int32_t in <inttypes.h>" >&5
5413echo $ECHO_N "checking for int32_t in <inttypes.h>... $ECHO_C" >&6
5414    cat >conftest.$ac_ext <<_ACEOF
5415/* confdefs.h.  */
5416_ACEOF
5417cat confdefs.h >>conftest.$ac_ext
5418cat >>conftest.$ac_ext <<_ACEOF
5419/* end confdefs.h.  */
5420#include <inttypes.h>
5421int
5422main ()
5423{
5424int32_t  bar;
5425  ;
5426  return 0;
5427}
5428_ACEOF
5429rm -f conftest.$ac_objext
5430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431  (eval $ac_compile) 2>conftest.er1
5432  ac_status=$?
5433  grep -v '^ *+' conftest.er1 >conftest.err
5434  rm -f conftest.er1
5435  cat conftest.err >&5
5436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437  (exit $ac_status); } &&
5438	 { ac_try='test -z "$ac_cxx_werror_flag"
5439			 || test ! -s conftest.err'
5440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441  (eval $ac_try) 2>&5
5442  ac_status=$?
5443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444  (exit $ac_status); }; } &&
5445	 { ac_try='test -s conftest.$ac_objext'
5446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447  (eval $ac_try) 2>&5
5448  ac_status=$?
5449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450  (exit $ac_status); }; }; then
5451  cat >>confdefs.h <<\_ACEOF
5452#define HAVE_INT32_T 1
5453_ACEOF
5454
5455	 echo "$as_me:$LINENO: result: yes" >&5
5456echo "${ECHO_T}yes" >&6
5457
5458else
5459  echo "$as_me: failed program was:" >&5
5460sed 's/^/| /' conftest.$ac_ext >&5
5461
5462echo "$as_me:$LINENO: result: no" >&5
5463echo "${ECHO_T}no" >&6
5464fi
5465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5466    echo "$as_me:$LINENO: checking for int64_t in <inttypes.h>" >&5
5467echo $ECHO_N "checking for int64_t in <inttypes.h>... $ECHO_C" >&6
5468    cat >conftest.$ac_ext <<_ACEOF
5469/* confdefs.h.  */
5470_ACEOF
5471cat confdefs.h >>conftest.$ac_ext
5472cat >>conftest.$ac_ext <<_ACEOF
5473/* end confdefs.h.  */
5474#include <inttypes.h>
5475int
5476main ()
5477{
5478int64_t  bar;
5479  ;
5480  return 0;
5481}
5482_ACEOF
5483rm -f conftest.$ac_objext
5484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485  (eval $ac_compile) 2>conftest.er1
5486  ac_status=$?
5487  grep -v '^ *+' conftest.er1 >conftest.err
5488  rm -f conftest.er1
5489  cat conftest.err >&5
5490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491  (exit $ac_status); } &&
5492	 { ac_try='test -z "$ac_cxx_werror_flag"
5493			 || test ! -s conftest.err'
5494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495  (eval $ac_try) 2>&5
5496  ac_status=$?
5497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498  (exit $ac_status); }; } &&
5499	 { ac_try='test -s conftest.$ac_objext'
5500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501  (eval $ac_try) 2>&5
5502  ac_status=$?
5503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504  (exit $ac_status); }; }; then
5505  cat >>confdefs.h <<\_ACEOF
5506#define HAVE_INT64_T 1
5507_ACEOF
5508
5509	 echo "$as_me:$LINENO: result: yes" >&5
5510echo "${ECHO_T}yes" >&6
5511
5512else
5513  echo "$as_me: failed program was:" >&5
5514sed 's/^/| /' conftest.$ac_ext >&5
5515
5516echo "$as_me:$LINENO: result: no" >&5
5517echo "${ECHO_T}no" >&6
5518fi
5519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5520    echo "$as_me:$LINENO: checking for uint8_t in <inttypes.h>" >&5
5521echo $ECHO_N "checking for uint8_t in <inttypes.h>... $ECHO_C" >&6
5522    cat >conftest.$ac_ext <<_ACEOF
5523/* confdefs.h.  */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
5527/* end confdefs.h.  */
5528#include <inttypes.h>
5529int
5530main ()
5531{
5532uint8_t  bar;
5533  ;
5534  return 0;
5535}
5536_ACEOF
5537rm -f conftest.$ac_objext
5538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539  (eval $ac_compile) 2>conftest.er1
5540  ac_status=$?
5541  grep -v '^ *+' conftest.er1 >conftest.err
5542  rm -f conftest.er1
5543  cat conftest.err >&5
5544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545  (exit $ac_status); } &&
5546	 { ac_try='test -z "$ac_cxx_werror_flag"
5547			 || test ! -s conftest.err'
5548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549  (eval $ac_try) 2>&5
5550  ac_status=$?
5551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552  (exit $ac_status); }; } &&
5553	 { ac_try='test -s conftest.$ac_objext'
5554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555  (eval $ac_try) 2>&5
5556  ac_status=$?
5557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558  (exit $ac_status); }; }; then
5559  cat >>confdefs.h <<\_ACEOF
5560#define HAVE_UINT8_T 1
5561_ACEOF
5562
5563	 echo "$as_me:$LINENO: result: yes" >&5
5564echo "${ECHO_T}yes" >&6
5565
5566else
5567  echo "$as_me: failed program was:" >&5
5568sed 's/^/| /' conftest.$ac_ext >&5
5569
5570echo "$as_me:$LINENO: result: no" >&5
5571echo "${ECHO_T}no" >&6
5572fi
5573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5574    echo "$as_me:$LINENO: checking for uint16_t in <inttypes.h>" >&5
5575echo $ECHO_N "checking for uint16_t in <inttypes.h>... $ECHO_C" >&6
5576    cat >conftest.$ac_ext <<_ACEOF
5577/* confdefs.h.  */
5578_ACEOF
5579cat confdefs.h >>conftest.$ac_ext
5580cat >>conftest.$ac_ext <<_ACEOF
5581/* end confdefs.h.  */
5582#include <inttypes.h>
5583int
5584main ()
5585{
5586uint16_t  bar;
5587  ;
5588  return 0;
5589}
5590_ACEOF
5591rm -f conftest.$ac_objext
5592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593  (eval $ac_compile) 2>conftest.er1
5594  ac_status=$?
5595  grep -v '^ *+' conftest.er1 >conftest.err
5596  rm -f conftest.er1
5597  cat conftest.err >&5
5598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599  (exit $ac_status); } &&
5600	 { ac_try='test -z "$ac_cxx_werror_flag"
5601			 || test ! -s conftest.err'
5602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603  (eval $ac_try) 2>&5
5604  ac_status=$?
5605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606  (exit $ac_status); }; } &&
5607	 { ac_try='test -s conftest.$ac_objext'
5608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609  (eval $ac_try) 2>&5
5610  ac_status=$?
5611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612  (exit $ac_status); }; }; then
5613  cat >>confdefs.h <<\_ACEOF
5614#define HAVE_UINT16_T 1
5615_ACEOF
5616
5617	 echo "$as_me:$LINENO: result: yes" >&5
5618echo "${ECHO_T}yes" >&6
5619
5620else
5621  echo "$as_me: failed program was:" >&5
5622sed 's/^/| /' conftest.$ac_ext >&5
5623
5624echo "$as_me:$LINENO: result: no" >&5
5625echo "${ECHO_T}no" >&6
5626fi
5627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5628    echo "$as_me:$LINENO: checking for uint32_t in <inttypes.h>" >&5
5629echo $ECHO_N "checking for uint32_t in <inttypes.h>... $ECHO_C" >&6
5630    cat >conftest.$ac_ext <<_ACEOF
5631/* confdefs.h.  */
5632_ACEOF
5633cat confdefs.h >>conftest.$ac_ext
5634cat >>conftest.$ac_ext <<_ACEOF
5635/* end confdefs.h.  */
5636#include <inttypes.h>
5637int
5638main ()
5639{
5640uint32_t  bar;
5641  ;
5642  return 0;
5643}
5644_ACEOF
5645rm -f conftest.$ac_objext
5646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647  (eval $ac_compile) 2>conftest.er1
5648  ac_status=$?
5649  grep -v '^ *+' conftest.er1 >conftest.err
5650  rm -f conftest.er1
5651  cat conftest.err >&5
5652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653  (exit $ac_status); } &&
5654	 { ac_try='test -z "$ac_cxx_werror_flag"
5655			 || test ! -s conftest.err'
5656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657  (eval $ac_try) 2>&5
5658  ac_status=$?
5659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660  (exit $ac_status); }; } &&
5661	 { ac_try='test -s conftest.$ac_objext'
5662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663  (eval $ac_try) 2>&5
5664  ac_status=$?
5665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666  (exit $ac_status); }; }; then
5667  cat >>confdefs.h <<\_ACEOF
5668#define HAVE_UINT32_T 1
5669_ACEOF
5670
5671	 echo "$as_me:$LINENO: result: yes" >&5
5672echo "${ECHO_T}yes" >&6
5673
5674else
5675  echo "$as_me: failed program was:" >&5
5676sed 's/^/| /' conftest.$ac_ext >&5
5677
5678echo "$as_me:$LINENO: result: no" >&5
5679echo "${ECHO_T}no" >&6
5680fi
5681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5682    echo "$as_me:$LINENO: checking for uint64_t in <inttypes.h>" >&5
5683echo $ECHO_N "checking for uint64_t in <inttypes.h>... $ECHO_C" >&6
5684    cat >conftest.$ac_ext <<_ACEOF
5685/* confdefs.h.  */
5686_ACEOF
5687cat confdefs.h >>conftest.$ac_ext
5688cat >>conftest.$ac_ext <<_ACEOF
5689/* end confdefs.h.  */
5690#include <inttypes.h>
5691int
5692main ()
5693{
5694uint64_t  bar;
5695  ;
5696  return 0;
5697}
5698_ACEOF
5699rm -f conftest.$ac_objext
5700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701  (eval $ac_compile) 2>conftest.er1
5702  ac_status=$?
5703  grep -v '^ *+' conftest.er1 >conftest.err
5704  rm -f conftest.er1
5705  cat conftest.err >&5
5706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707  (exit $ac_status); } &&
5708	 { ac_try='test -z "$ac_cxx_werror_flag"
5709			 || test ! -s conftest.err'
5710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711  (eval $ac_try) 2>&5
5712  ac_status=$?
5713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714  (exit $ac_status); }; } &&
5715	 { ac_try='test -s conftest.$ac_objext'
5716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717  (eval $ac_try) 2>&5
5718  ac_status=$?
5719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720  (exit $ac_status); }; }; then
5721  cat >>confdefs.h <<\_ACEOF
5722#define HAVE_UINT64_T 1
5723_ACEOF
5724
5725	 echo "$as_me:$LINENO: result: yes" >&5
5726echo "${ECHO_T}yes" >&6
5727
5728else
5729  echo "$as_me: failed program was:" >&5
5730sed 's/^/| /' conftest.$ac_ext >&5
5731
5732echo "$as_me:$LINENO: result: no" >&5
5733echo "${ECHO_T}no" >&6
5734fi
5735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5736    ;;
5737esac
5738
5739
5740machine_types=no
5741
5742for ac_header in machine/types.h
5743do
5744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5745if eval "test \"\${$as_ac_Header+set}\" = set"; then
5746  echo "$as_me:$LINENO: checking for $ac_header" >&5
5747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5748if eval "test \"\${$as_ac_Header+set}\" = set"; then
5749  echo $ECHO_N "(cached) $ECHO_C" >&6
5750fi
5751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5753else
5754  # Is the header compilable?
5755echo "$as_me:$LINENO: checking $ac_header usability" >&5
5756echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5757cat >conftest.$ac_ext <<_ACEOF
5758/* confdefs.h.  */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h.  */
5763$ac_includes_default
5764#include <$ac_header>
5765_ACEOF
5766rm -f conftest.$ac_objext
5767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768  (eval $ac_compile) 2>conftest.er1
5769  ac_status=$?
5770  grep -v '^ *+' conftest.er1 >conftest.err
5771  rm -f conftest.er1
5772  cat conftest.err >&5
5773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774  (exit $ac_status); } &&
5775	 { ac_try='test -z "$ac_cxx_werror_flag"
5776			 || test ! -s conftest.err'
5777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778  (eval $ac_try) 2>&5
5779  ac_status=$?
5780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781  (exit $ac_status); }; } &&
5782	 { ac_try='test -s conftest.$ac_objext'
5783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784  (eval $ac_try) 2>&5
5785  ac_status=$?
5786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787  (exit $ac_status); }; }; then
5788  ac_header_compiler=yes
5789else
5790  echo "$as_me: failed program was:" >&5
5791sed 's/^/| /' conftest.$ac_ext >&5
5792
5793ac_header_compiler=no
5794fi
5795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5796echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5797echo "${ECHO_T}$ac_header_compiler" >&6
5798
5799# Is the header present?
5800echo "$as_me:$LINENO: checking $ac_header presence" >&5
5801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5802cat >conftest.$ac_ext <<_ACEOF
5803/* confdefs.h.  */
5804_ACEOF
5805cat confdefs.h >>conftest.$ac_ext
5806cat >>conftest.$ac_ext <<_ACEOF
5807/* end confdefs.h.  */
5808#include <$ac_header>
5809_ACEOF
5810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5811  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5812  ac_status=$?
5813  grep -v '^ *+' conftest.er1 >conftest.err
5814  rm -f conftest.er1
5815  cat conftest.err >&5
5816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817  (exit $ac_status); } >/dev/null; then
5818  if test -s conftest.err; then
5819    ac_cpp_err=$ac_cxx_preproc_warn_flag
5820    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5821  else
5822    ac_cpp_err=
5823  fi
5824else
5825  ac_cpp_err=yes
5826fi
5827if test -z "$ac_cpp_err"; then
5828  ac_header_preproc=yes
5829else
5830  echo "$as_me: failed program was:" >&5
5831sed 's/^/| /' conftest.$ac_ext >&5
5832
5833  ac_header_preproc=no
5834fi
5835rm -f conftest.err conftest.$ac_ext
5836echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5837echo "${ECHO_T}$ac_header_preproc" >&6
5838
5839# So?  What about this header?
5840case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5841  yes:no: )
5842    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5843echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5844    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5845echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5846    ac_header_preproc=yes
5847    ;;
5848  no:yes:* )
5849    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5850echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5851    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5852echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5853    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5854echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5855    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5856echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5857    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5859    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5860echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5861    (
5862      cat <<\_ASBOX
5863## --------------------------------- ##
5864## Report this to the Arts++ lists.  ##
5865## --------------------------------- ##
5866_ASBOX
5867    ) |
5868      sed "s/^/$as_me: WARNING:     /" >&2
5869    ;;
5870esac
5871echo "$as_me:$LINENO: checking for $ac_header" >&5
5872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5873if eval "test \"\${$as_ac_Header+set}\" = set"; then
5874  echo $ECHO_N "(cached) $ECHO_C" >&6
5875else
5876  eval "$as_ac_Header=\$ac_header_preproc"
5877fi
5878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5880
5881fi
5882if test `eval echo '${'$as_ac_Header'}'` = yes; then
5883  cat >>confdefs.h <<_ACEOF
5884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5885_ACEOF
5886 machine_types=yes
5887fi
5888
5889done
5890
5891
5892case $machine_types in
5893  yes)
5894    echo "$as_me:$LINENO: checking for int8_t in <machine/types.h>" >&5
5895echo $ECHO_N "checking for int8_t in <machine/types.h>... $ECHO_C" >&6
5896    cat >conftest.$ac_ext <<_ACEOF
5897/* confdefs.h.  */
5898_ACEOF
5899cat confdefs.h >>conftest.$ac_ext
5900cat >>conftest.$ac_ext <<_ACEOF
5901/* end confdefs.h.  */
5902#include <machine/types.h>
5903int
5904main ()
5905{
5906int8_t  bar;
5907  ;
5908  return 0;
5909}
5910_ACEOF
5911rm -f conftest.$ac_objext
5912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5913  (eval $ac_compile) 2>conftest.er1
5914  ac_status=$?
5915  grep -v '^ *+' conftest.er1 >conftest.err
5916  rm -f conftest.er1
5917  cat conftest.err >&5
5918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919  (exit $ac_status); } &&
5920	 { ac_try='test -z "$ac_cxx_werror_flag"
5921			 || test ! -s conftest.err'
5922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923  (eval $ac_try) 2>&5
5924  ac_status=$?
5925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926  (exit $ac_status); }; } &&
5927	 { ac_try='test -s conftest.$ac_objext'
5928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929  (eval $ac_try) 2>&5
5930  ac_status=$?
5931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932  (exit $ac_status); }; }; then
5933  cat >>confdefs.h <<\_ACEOF
5934#define HAVE_INT8_T 1
5935_ACEOF
5936
5937	 echo "$as_me:$LINENO: result: yes" >&5
5938echo "${ECHO_T}yes" >&6
5939
5940else
5941  echo "$as_me: failed program was:" >&5
5942sed 's/^/| /' conftest.$ac_ext >&5
5943
5944echo "$as_me:$LINENO: result: no" >&5
5945echo "${ECHO_T}no" >&6
5946fi
5947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5948    echo "$as_me:$LINENO: checking for int16_t in <machine/types.h>" >&5
5949echo $ECHO_N "checking for int16_t in <machine/types.h>... $ECHO_C" >&6
5950    cat >conftest.$ac_ext <<_ACEOF
5951/* confdefs.h.  */
5952_ACEOF
5953cat confdefs.h >>conftest.$ac_ext
5954cat >>conftest.$ac_ext <<_ACEOF
5955/* end confdefs.h.  */
5956#include <machine/types.h>
5957int
5958main ()
5959{
5960int16_t  bar;
5961  ;
5962  return 0;
5963}
5964_ACEOF
5965rm -f conftest.$ac_objext
5966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5967  (eval $ac_compile) 2>conftest.er1
5968  ac_status=$?
5969  grep -v '^ *+' conftest.er1 >conftest.err
5970  rm -f conftest.er1
5971  cat conftest.err >&5
5972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973  (exit $ac_status); } &&
5974	 { ac_try='test -z "$ac_cxx_werror_flag"
5975			 || test ! -s conftest.err'
5976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977  (eval $ac_try) 2>&5
5978  ac_status=$?
5979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980  (exit $ac_status); }; } &&
5981	 { ac_try='test -s conftest.$ac_objext'
5982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983  (eval $ac_try) 2>&5
5984  ac_status=$?
5985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986  (exit $ac_status); }; }; then
5987  cat >>confdefs.h <<\_ACEOF
5988#define HAVE_INT16_T 1
5989_ACEOF
5990
5991	 echo "$as_me:$LINENO: result: yes" >&5
5992echo "${ECHO_T}yes" >&6
5993
5994else
5995  echo "$as_me: failed program was:" >&5
5996sed 's/^/| /' conftest.$ac_ext >&5
5997
5998echo "$as_me:$LINENO: result: no" >&5
5999echo "${ECHO_T}no" >&6
6000fi
6001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6002    echo "$as_me:$LINENO: checking for int32_t in <machine/types.h>" >&5
6003echo $ECHO_N "checking for int32_t in <machine/types.h>... $ECHO_C" >&6
6004    cat >conftest.$ac_ext <<_ACEOF
6005/* confdefs.h.  */
6006_ACEOF
6007cat confdefs.h >>conftest.$ac_ext
6008cat >>conftest.$ac_ext <<_ACEOF
6009/* end confdefs.h.  */
6010#include <machine/types.h>
6011int
6012main ()
6013{
6014int32_t  bar;
6015  ;
6016  return 0;
6017}
6018_ACEOF
6019rm -f conftest.$ac_objext
6020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021  (eval $ac_compile) 2>conftest.er1
6022  ac_status=$?
6023  grep -v '^ *+' conftest.er1 >conftest.err
6024  rm -f conftest.er1
6025  cat conftest.err >&5
6026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027  (exit $ac_status); } &&
6028	 { ac_try='test -z "$ac_cxx_werror_flag"
6029			 || test ! -s conftest.err'
6030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031  (eval $ac_try) 2>&5
6032  ac_status=$?
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); }; } &&
6035	 { ac_try='test -s conftest.$ac_objext'
6036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037  (eval $ac_try) 2>&5
6038  ac_status=$?
6039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040  (exit $ac_status); }; }; then
6041  cat >>confdefs.h <<\_ACEOF
6042#define HAVE_INT32_T 1
6043_ACEOF
6044
6045	 echo "$as_me:$LINENO: result: yes" >&5
6046echo "${ECHO_T}yes" >&6
6047
6048else
6049  echo "$as_me: failed program was:" >&5
6050sed 's/^/| /' conftest.$ac_ext >&5
6051
6052echo "$as_me:$LINENO: result: no" >&5
6053echo "${ECHO_T}no" >&6
6054fi
6055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6056    echo "$as_me:$LINENO: checking for int64_t in <machine/types.h>" >&5
6057echo $ECHO_N "checking for int64_t in <machine/types.h>... $ECHO_C" >&6
6058    cat >conftest.$ac_ext <<_ACEOF
6059/* confdefs.h.  */
6060_ACEOF
6061cat confdefs.h >>conftest.$ac_ext
6062cat >>conftest.$ac_ext <<_ACEOF
6063/* end confdefs.h.  */
6064#include <machine/types.h>
6065int
6066main ()
6067{
6068int64_t  bar;
6069  ;
6070  return 0;
6071}
6072_ACEOF
6073rm -f conftest.$ac_objext
6074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6075  (eval $ac_compile) 2>conftest.er1
6076  ac_status=$?
6077  grep -v '^ *+' conftest.er1 >conftest.err
6078  rm -f conftest.er1
6079  cat conftest.err >&5
6080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081  (exit $ac_status); } &&
6082	 { ac_try='test -z "$ac_cxx_werror_flag"
6083			 || test ! -s conftest.err'
6084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085  (eval $ac_try) 2>&5
6086  ac_status=$?
6087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088  (exit $ac_status); }; } &&
6089	 { ac_try='test -s conftest.$ac_objext'
6090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091  (eval $ac_try) 2>&5
6092  ac_status=$?
6093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094  (exit $ac_status); }; }; then
6095  cat >>confdefs.h <<\_ACEOF
6096#define HAVE_INT64_T 1
6097_ACEOF
6098
6099	 echo "$as_me:$LINENO: result: yes" >&5
6100echo "${ECHO_T}yes" >&6
6101
6102else
6103  echo "$as_me: failed program was:" >&5
6104sed 's/^/| /' conftest.$ac_ext >&5
6105
6106echo "$as_me:$LINENO: result: no" >&5
6107echo "${ECHO_T}no" >&6
6108fi
6109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6110    echo "$as_me:$LINENO: checking for uint8_t in <machine/types.h>" >&5
6111echo $ECHO_N "checking for uint8_t in <machine/types.h>... $ECHO_C" >&6
6112    cat >conftest.$ac_ext <<_ACEOF
6113/* confdefs.h.  */
6114_ACEOF
6115cat confdefs.h >>conftest.$ac_ext
6116cat >>conftest.$ac_ext <<_ACEOF
6117/* end confdefs.h.  */
6118#include <machine/types.h>
6119int
6120main ()
6121{
6122uint8_t  bar;
6123  ;
6124  return 0;
6125}
6126_ACEOF
6127rm -f conftest.$ac_objext
6128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129  (eval $ac_compile) 2>conftest.er1
6130  ac_status=$?
6131  grep -v '^ *+' conftest.er1 >conftest.err
6132  rm -f conftest.er1
6133  cat conftest.err >&5
6134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135  (exit $ac_status); } &&
6136	 { ac_try='test -z "$ac_cxx_werror_flag"
6137			 || test ! -s conftest.err'
6138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139  (eval $ac_try) 2>&5
6140  ac_status=$?
6141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142  (exit $ac_status); }; } &&
6143	 { ac_try='test -s conftest.$ac_objext'
6144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145  (eval $ac_try) 2>&5
6146  ac_status=$?
6147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148  (exit $ac_status); }; }; then
6149  cat >>confdefs.h <<\_ACEOF
6150#define HAVE_UINT8_T 1
6151_ACEOF
6152
6153	 echo "$as_me:$LINENO: result: yes" >&5
6154echo "${ECHO_T}yes" >&6
6155
6156else
6157  echo "$as_me: failed program was:" >&5
6158sed 's/^/| /' conftest.$ac_ext >&5
6159
6160echo "$as_me:$LINENO: result: no" >&5
6161echo "${ECHO_T}no" >&6
6162fi
6163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6164    echo "$as_me:$LINENO: checking for uint16_t in <machine/types.h>" >&5
6165echo $ECHO_N "checking for uint16_t in <machine/types.h>... $ECHO_C" >&6
6166    cat >conftest.$ac_ext <<_ACEOF
6167/* confdefs.h.  */
6168_ACEOF
6169cat confdefs.h >>conftest.$ac_ext
6170cat >>conftest.$ac_ext <<_ACEOF
6171/* end confdefs.h.  */
6172#include <machine/types.h>
6173int
6174main ()
6175{
6176uint16_t  bar;
6177  ;
6178  return 0;
6179}
6180_ACEOF
6181rm -f conftest.$ac_objext
6182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6183  (eval $ac_compile) 2>conftest.er1
6184  ac_status=$?
6185  grep -v '^ *+' conftest.er1 >conftest.err
6186  rm -f conftest.er1
6187  cat conftest.err >&5
6188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189  (exit $ac_status); } &&
6190	 { ac_try='test -z "$ac_cxx_werror_flag"
6191			 || test ! -s conftest.err'
6192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193  (eval $ac_try) 2>&5
6194  ac_status=$?
6195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196  (exit $ac_status); }; } &&
6197	 { ac_try='test -s conftest.$ac_objext'
6198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199  (eval $ac_try) 2>&5
6200  ac_status=$?
6201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202  (exit $ac_status); }; }; then
6203  cat >>confdefs.h <<\_ACEOF
6204#define HAVE_UINT16_T 1
6205_ACEOF
6206
6207	 echo "$as_me:$LINENO: result: yes" >&5
6208echo "${ECHO_T}yes" >&6
6209
6210else
6211  echo "$as_me: failed program was:" >&5
6212sed 's/^/| /' conftest.$ac_ext >&5
6213
6214echo "$as_me:$LINENO: result: no" >&5
6215echo "${ECHO_T}no" >&6
6216fi
6217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6218    echo "$as_me:$LINENO: checking for uint32_t in <machine/types.h>" >&5
6219echo $ECHO_N "checking for uint32_t in <machine/types.h>... $ECHO_C" >&6
6220    cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h.  */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h.  */
6226#include <machine/types.h>
6227int
6228main ()
6229{
6230uint32_t  bar;
6231  ;
6232  return 0;
6233}
6234_ACEOF
6235rm -f conftest.$ac_objext
6236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237  (eval $ac_compile) 2>conftest.er1
6238  ac_status=$?
6239  grep -v '^ *+' conftest.er1 >conftest.err
6240  rm -f conftest.er1
6241  cat conftest.err >&5
6242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243  (exit $ac_status); } &&
6244	 { ac_try='test -z "$ac_cxx_werror_flag"
6245			 || test ! -s conftest.err'
6246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247  (eval $ac_try) 2>&5
6248  ac_status=$?
6249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250  (exit $ac_status); }; } &&
6251	 { ac_try='test -s conftest.$ac_objext'
6252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253  (eval $ac_try) 2>&5
6254  ac_status=$?
6255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256  (exit $ac_status); }; }; then
6257  cat >>confdefs.h <<\_ACEOF
6258#define HAVE_UINT32_T 1
6259_ACEOF
6260
6261	 echo "$as_me:$LINENO: result: yes" >&5
6262echo "${ECHO_T}yes" >&6
6263
6264else
6265  echo "$as_me: failed program was:" >&5
6266sed 's/^/| /' conftest.$ac_ext >&5
6267
6268echo "$as_me:$LINENO: result: no" >&5
6269echo "${ECHO_T}no" >&6
6270fi
6271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272    echo "$as_me:$LINENO: checking for uint64_t in <machine/types.h>" >&5
6273echo $ECHO_N "checking for uint64_t in <machine/types.h>... $ECHO_C" >&6
6274    cat >conftest.$ac_ext <<_ACEOF
6275/* confdefs.h.  */
6276_ACEOF
6277cat confdefs.h >>conftest.$ac_ext
6278cat >>conftest.$ac_ext <<_ACEOF
6279/* end confdefs.h.  */
6280#include <machine/types.h>
6281int
6282main ()
6283{
6284uint64_t  bar;
6285  ;
6286  return 0;
6287}
6288_ACEOF
6289rm -f conftest.$ac_objext
6290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6291  (eval $ac_compile) 2>conftest.er1
6292  ac_status=$?
6293  grep -v '^ *+' conftest.er1 >conftest.err
6294  rm -f conftest.er1
6295  cat conftest.err >&5
6296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297  (exit $ac_status); } &&
6298	 { ac_try='test -z "$ac_cxx_werror_flag"
6299			 || test ! -s conftest.err'
6300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301  (eval $ac_try) 2>&5
6302  ac_status=$?
6303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304  (exit $ac_status); }; } &&
6305	 { ac_try='test -s conftest.$ac_objext'
6306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307  (eval $ac_try) 2>&5
6308  ac_status=$?
6309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310  (exit $ac_status); }; }; then
6311  cat >>confdefs.h <<\_ACEOF
6312#define HAVE_UINT64_T 1
6313_ACEOF
6314
6315	 echo "$as_me:$LINENO: result: yes" >&5
6316echo "${ECHO_T}yes" >&6
6317
6318else
6319  echo "$as_me: failed program was:" >&5
6320sed 's/^/| /' conftest.$ac_ext >&5
6321
6322echo "$as_me:$LINENO: result: no" >&5
6323echo "${ECHO_T}no" >&6
6324fi
6325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6326    ;;
6327esac
6328
6329sys_types=no
6330
6331for ac_header in sys/types.h
6332do
6333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6334if eval "test \"\${$as_ac_Header+set}\" = set"; then
6335  echo "$as_me:$LINENO: checking for $ac_header" >&5
6336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6337if eval "test \"\${$as_ac_Header+set}\" = set"; then
6338  echo $ECHO_N "(cached) $ECHO_C" >&6
6339fi
6340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6342else
6343  # Is the header compilable?
6344echo "$as_me:$LINENO: checking $ac_header usability" >&5
6345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6346cat >conftest.$ac_ext <<_ACEOF
6347/* confdefs.h.  */
6348_ACEOF
6349cat confdefs.h >>conftest.$ac_ext
6350cat >>conftest.$ac_ext <<_ACEOF
6351/* end confdefs.h.  */
6352$ac_includes_default
6353#include <$ac_header>
6354_ACEOF
6355rm -f conftest.$ac_objext
6356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6357  (eval $ac_compile) 2>conftest.er1
6358  ac_status=$?
6359  grep -v '^ *+' conftest.er1 >conftest.err
6360  rm -f conftest.er1
6361  cat conftest.err >&5
6362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363  (exit $ac_status); } &&
6364	 { ac_try='test -z "$ac_cxx_werror_flag"
6365			 || test ! -s conftest.err'
6366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367  (eval $ac_try) 2>&5
6368  ac_status=$?
6369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370  (exit $ac_status); }; } &&
6371	 { ac_try='test -s conftest.$ac_objext'
6372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373  (eval $ac_try) 2>&5
6374  ac_status=$?
6375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376  (exit $ac_status); }; }; then
6377  ac_header_compiler=yes
6378else
6379  echo "$as_me: failed program was:" >&5
6380sed 's/^/| /' conftest.$ac_ext >&5
6381
6382ac_header_compiler=no
6383fi
6384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6385echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6386echo "${ECHO_T}$ac_header_compiler" >&6
6387
6388# Is the header present?
6389echo "$as_me:$LINENO: checking $ac_header presence" >&5
6390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6391cat >conftest.$ac_ext <<_ACEOF
6392/* confdefs.h.  */
6393_ACEOF
6394cat confdefs.h >>conftest.$ac_ext
6395cat >>conftest.$ac_ext <<_ACEOF
6396/* end confdefs.h.  */
6397#include <$ac_header>
6398_ACEOF
6399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6400  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6401  ac_status=$?
6402  grep -v '^ *+' conftest.er1 >conftest.err
6403  rm -f conftest.er1
6404  cat conftest.err >&5
6405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406  (exit $ac_status); } >/dev/null; then
6407  if test -s conftest.err; then
6408    ac_cpp_err=$ac_cxx_preproc_warn_flag
6409    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6410  else
6411    ac_cpp_err=
6412  fi
6413else
6414  ac_cpp_err=yes
6415fi
6416if test -z "$ac_cpp_err"; then
6417  ac_header_preproc=yes
6418else
6419  echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
6422  ac_header_preproc=no
6423fi
6424rm -f conftest.err conftest.$ac_ext
6425echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6426echo "${ECHO_T}$ac_header_preproc" >&6
6427
6428# So?  What about this header?
6429case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6430  yes:no: )
6431    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6433    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6434echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6435    ac_header_preproc=yes
6436    ;;
6437  no:yes:* )
6438    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6439echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6440    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6441echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6442    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6443echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6444    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6445echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6446    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6447echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6448    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6449echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6450    (
6451      cat <<\_ASBOX
6452## --------------------------------- ##
6453## Report this to the Arts++ lists.  ##
6454## --------------------------------- ##
6455_ASBOX
6456    ) |
6457      sed "s/^/$as_me: WARNING:     /" >&2
6458    ;;
6459esac
6460echo "$as_me:$LINENO: checking for $ac_header" >&5
6461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6462if eval "test \"\${$as_ac_Header+set}\" = set"; then
6463  echo $ECHO_N "(cached) $ECHO_C" >&6
6464else
6465  eval "$as_ac_Header=\$ac_header_preproc"
6466fi
6467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6469
6470fi
6471if test `eval echo '${'$as_ac_Header'}'` = yes; then
6472  cat >>confdefs.h <<_ACEOF
6473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6474_ACEOF
6475 sys_types=yes
6476fi
6477
6478done
6479
6480
6481case $sys_types in
6482  yes)
6483    echo "$as_me:$LINENO: checking for int8_t in <sys/types.h>" >&5
6484echo $ECHO_N "checking for int8_t in <sys/types.h>... $ECHO_C" >&6
6485    cat >conftest.$ac_ext <<_ACEOF
6486/* confdefs.h.  */
6487_ACEOF
6488cat confdefs.h >>conftest.$ac_ext
6489cat >>conftest.$ac_ext <<_ACEOF
6490/* end confdefs.h.  */
6491#include <sys/types.h>
6492int
6493main ()
6494{
6495int8_t  bar;
6496  ;
6497  return 0;
6498}
6499_ACEOF
6500rm -f conftest.$ac_objext
6501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6502  (eval $ac_compile) 2>conftest.er1
6503  ac_status=$?
6504  grep -v '^ *+' conftest.er1 >conftest.err
6505  rm -f conftest.er1
6506  cat conftest.err >&5
6507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508  (exit $ac_status); } &&
6509	 { ac_try='test -z "$ac_cxx_werror_flag"
6510			 || test ! -s conftest.err'
6511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512  (eval $ac_try) 2>&5
6513  ac_status=$?
6514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515  (exit $ac_status); }; } &&
6516	 { ac_try='test -s conftest.$ac_objext'
6517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518  (eval $ac_try) 2>&5
6519  ac_status=$?
6520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521  (exit $ac_status); }; }; then
6522  cat >>confdefs.h <<\_ACEOF
6523#define HAVE_INT8_T 1
6524_ACEOF
6525
6526	 echo "$as_me:$LINENO: result: yes" >&5
6527echo "${ECHO_T}yes" >&6
6528
6529else
6530  echo "$as_me: failed program was:" >&5
6531sed 's/^/| /' conftest.$ac_ext >&5
6532
6533echo "$as_me:$LINENO: result: no" >&5
6534echo "${ECHO_T}no" >&6
6535fi
6536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6537    echo "$as_me:$LINENO: checking for int16_t in <sys/types.h>" >&5
6538echo $ECHO_N "checking for int16_t in <sys/types.h>... $ECHO_C" >&6
6539    cat >conftest.$ac_ext <<_ACEOF
6540/* confdefs.h.  */
6541_ACEOF
6542cat confdefs.h >>conftest.$ac_ext
6543cat >>conftest.$ac_ext <<_ACEOF
6544/* end confdefs.h.  */
6545#include <sys/types.h>
6546int
6547main ()
6548{
6549int16_t  bar;
6550  ;
6551  return 0;
6552}
6553_ACEOF
6554rm -f conftest.$ac_objext
6555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6556  (eval $ac_compile) 2>conftest.er1
6557  ac_status=$?
6558  grep -v '^ *+' conftest.er1 >conftest.err
6559  rm -f conftest.er1
6560  cat conftest.err >&5
6561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562  (exit $ac_status); } &&
6563	 { ac_try='test -z "$ac_cxx_werror_flag"
6564			 || test ! -s conftest.err'
6565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566  (eval $ac_try) 2>&5
6567  ac_status=$?
6568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569  (exit $ac_status); }; } &&
6570	 { ac_try='test -s conftest.$ac_objext'
6571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572  (eval $ac_try) 2>&5
6573  ac_status=$?
6574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575  (exit $ac_status); }; }; then
6576  cat >>confdefs.h <<\_ACEOF
6577#define HAVE_INT16_T 1
6578_ACEOF
6579
6580	 echo "$as_me:$LINENO: result: yes" >&5
6581echo "${ECHO_T}yes" >&6
6582
6583else
6584  echo "$as_me: failed program was:" >&5
6585sed 's/^/| /' conftest.$ac_ext >&5
6586
6587echo "$as_me:$LINENO: result: no" >&5
6588echo "${ECHO_T}no" >&6
6589fi
6590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6591    echo "$as_me:$LINENO: checking for int32_t in <sys/types.h>" >&5
6592echo $ECHO_N "checking for int32_t in <sys/types.h>... $ECHO_C" >&6
6593    cat >conftest.$ac_ext <<_ACEOF
6594/* confdefs.h.  */
6595_ACEOF
6596cat confdefs.h >>conftest.$ac_ext
6597cat >>conftest.$ac_ext <<_ACEOF
6598/* end confdefs.h.  */
6599#include <sys/types.h>
6600int
6601main ()
6602{
6603int32_t  bar;
6604  ;
6605  return 0;
6606}
6607_ACEOF
6608rm -f conftest.$ac_objext
6609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610  (eval $ac_compile) 2>conftest.er1
6611  ac_status=$?
6612  grep -v '^ *+' conftest.er1 >conftest.err
6613  rm -f conftest.er1
6614  cat conftest.err >&5
6615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616  (exit $ac_status); } &&
6617	 { ac_try='test -z "$ac_cxx_werror_flag"
6618			 || test ! -s conftest.err'
6619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620  (eval $ac_try) 2>&5
6621  ac_status=$?
6622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623  (exit $ac_status); }; } &&
6624	 { ac_try='test -s conftest.$ac_objext'
6625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626  (eval $ac_try) 2>&5
6627  ac_status=$?
6628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629  (exit $ac_status); }; }; then
6630  cat >>confdefs.h <<\_ACEOF
6631#define HAVE_INT32_T 1
6632_ACEOF
6633
6634	 echo "$as_me:$LINENO: result: yes" >&5
6635echo "${ECHO_T}yes" >&6
6636
6637else
6638  echo "$as_me: failed program was:" >&5
6639sed 's/^/| /' conftest.$ac_ext >&5
6640
6641echo "$as_me:$LINENO: result: no" >&5
6642echo "${ECHO_T}no" >&6
6643fi
6644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6645    echo "$as_me:$LINENO: checking for int64_t in <sys/types.h>" >&5
6646echo $ECHO_N "checking for int64_t in <sys/types.h>... $ECHO_C" >&6
6647    cat >conftest.$ac_ext <<_ACEOF
6648/* confdefs.h.  */
6649_ACEOF
6650cat confdefs.h >>conftest.$ac_ext
6651cat >>conftest.$ac_ext <<_ACEOF
6652/* end confdefs.h.  */
6653#include <sys/types.h>
6654int
6655main ()
6656{
6657int64_t  bar;
6658  ;
6659  return 0;
6660}
6661_ACEOF
6662rm -f conftest.$ac_objext
6663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6664  (eval $ac_compile) 2>conftest.er1
6665  ac_status=$?
6666  grep -v '^ *+' conftest.er1 >conftest.err
6667  rm -f conftest.er1
6668  cat conftest.err >&5
6669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670  (exit $ac_status); } &&
6671	 { ac_try='test -z "$ac_cxx_werror_flag"
6672			 || test ! -s conftest.err'
6673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674  (eval $ac_try) 2>&5
6675  ac_status=$?
6676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677  (exit $ac_status); }; } &&
6678	 { ac_try='test -s conftest.$ac_objext'
6679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680  (eval $ac_try) 2>&5
6681  ac_status=$?
6682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683  (exit $ac_status); }; }; then
6684  cat >>confdefs.h <<\_ACEOF
6685#define HAVE_INT64_T 1
6686_ACEOF
6687
6688	 echo "$as_me:$LINENO: result: yes" >&5
6689echo "${ECHO_T}yes" >&6
6690
6691else
6692  echo "$as_me: failed program was:" >&5
6693sed 's/^/| /' conftest.$ac_ext >&5
6694
6695echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6
6697fi
6698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6699    echo "$as_me:$LINENO: checking for uint8_t in <sys/types.h>" >&5
6700echo $ECHO_N "checking for uint8_t in <sys/types.h>... $ECHO_C" >&6
6701    cat >conftest.$ac_ext <<_ACEOF
6702/* confdefs.h.  */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h.  */
6707#include <sys/types.h>
6708int
6709main ()
6710{
6711uint8_t  bar;
6712  ;
6713  return 0;
6714}
6715_ACEOF
6716rm -f conftest.$ac_objext
6717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718  (eval $ac_compile) 2>conftest.er1
6719  ac_status=$?
6720  grep -v '^ *+' conftest.er1 >conftest.err
6721  rm -f conftest.er1
6722  cat conftest.err >&5
6723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724  (exit $ac_status); } &&
6725	 { ac_try='test -z "$ac_cxx_werror_flag"
6726			 || test ! -s conftest.err'
6727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728  (eval $ac_try) 2>&5
6729  ac_status=$?
6730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731  (exit $ac_status); }; } &&
6732	 { ac_try='test -s conftest.$ac_objext'
6733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734  (eval $ac_try) 2>&5
6735  ac_status=$?
6736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737  (exit $ac_status); }; }; then
6738  cat >>confdefs.h <<\_ACEOF
6739#define HAVE_UINT8_T 1
6740_ACEOF
6741
6742	 echo "$as_me:$LINENO: result: yes" >&5
6743echo "${ECHO_T}yes" >&6
6744
6745else
6746  echo "$as_me: failed program was:" >&5
6747sed 's/^/| /' conftest.$ac_ext >&5
6748
6749echo "$as_me:$LINENO: result: no" >&5
6750echo "${ECHO_T}no" >&6
6751fi
6752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6753    echo "$as_me:$LINENO: checking for uint16_t in <sys/types.h>" >&5
6754echo $ECHO_N "checking for uint16_t in <sys/types.h>... $ECHO_C" >&6
6755    cat >conftest.$ac_ext <<_ACEOF
6756/* confdefs.h.  */
6757_ACEOF
6758cat confdefs.h >>conftest.$ac_ext
6759cat >>conftest.$ac_ext <<_ACEOF
6760/* end confdefs.h.  */
6761#include <sys/types.h>
6762int
6763main ()
6764{
6765uint16_t  bar;
6766  ;
6767  return 0;
6768}
6769_ACEOF
6770rm -f conftest.$ac_objext
6771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6772  (eval $ac_compile) 2>conftest.er1
6773  ac_status=$?
6774  grep -v '^ *+' conftest.er1 >conftest.err
6775  rm -f conftest.er1
6776  cat conftest.err >&5
6777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778  (exit $ac_status); } &&
6779	 { ac_try='test -z "$ac_cxx_werror_flag"
6780			 || test ! -s conftest.err'
6781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782  (eval $ac_try) 2>&5
6783  ac_status=$?
6784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785  (exit $ac_status); }; } &&
6786	 { ac_try='test -s conftest.$ac_objext'
6787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788  (eval $ac_try) 2>&5
6789  ac_status=$?
6790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791  (exit $ac_status); }; }; then
6792  cat >>confdefs.h <<\_ACEOF
6793#define HAVE_UINT16_T 1
6794_ACEOF
6795
6796	 echo "$as_me:$LINENO: result: yes" >&5
6797echo "${ECHO_T}yes" >&6
6798
6799else
6800  echo "$as_me: failed program was:" >&5
6801sed 's/^/| /' conftest.$ac_ext >&5
6802
6803echo "$as_me:$LINENO: result: no" >&5
6804echo "${ECHO_T}no" >&6
6805fi
6806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6807    echo "$as_me:$LINENO: checking for uint32_t in <sys/types.h>" >&5
6808echo $ECHO_N "checking for uint32_t in <sys/types.h>... $ECHO_C" >&6
6809    cat >conftest.$ac_ext <<_ACEOF
6810/* confdefs.h.  */
6811_ACEOF
6812cat confdefs.h >>conftest.$ac_ext
6813cat >>conftest.$ac_ext <<_ACEOF
6814/* end confdefs.h.  */
6815#include <sys/types.h>
6816int
6817main ()
6818{
6819uint32_t  bar;
6820  ;
6821  return 0;
6822}
6823_ACEOF
6824rm -f conftest.$ac_objext
6825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6826  (eval $ac_compile) 2>conftest.er1
6827  ac_status=$?
6828  grep -v '^ *+' conftest.er1 >conftest.err
6829  rm -f conftest.er1
6830  cat conftest.err >&5
6831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832  (exit $ac_status); } &&
6833	 { ac_try='test -z "$ac_cxx_werror_flag"
6834			 || test ! -s conftest.err'
6835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836  (eval $ac_try) 2>&5
6837  ac_status=$?
6838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839  (exit $ac_status); }; } &&
6840	 { ac_try='test -s conftest.$ac_objext'
6841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842  (eval $ac_try) 2>&5
6843  ac_status=$?
6844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845  (exit $ac_status); }; }; then
6846  cat >>confdefs.h <<\_ACEOF
6847#define HAVE_UINT32_T 1
6848_ACEOF
6849
6850	 echo "$as_me:$LINENO: result: yes" >&5
6851echo "${ECHO_T}yes" >&6
6852
6853else
6854  echo "$as_me: failed program was:" >&5
6855sed 's/^/| /' conftest.$ac_ext >&5
6856
6857echo "$as_me:$LINENO: result: no" >&5
6858echo "${ECHO_T}no" >&6
6859fi
6860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6861    echo "$as_me:$LINENO: checking for uint64_t in <sys/types.h>" >&5
6862echo $ECHO_N "checking for uint64_t in <sys/types.h>... $ECHO_C" >&6
6863    cat >conftest.$ac_ext <<_ACEOF
6864/* confdefs.h.  */
6865_ACEOF
6866cat confdefs.h >>conftest.$ac_ext
6867cat >>conftest.$ac_ext <<_ACEOF
6868/* end confdefs.h.  */
6869#include <sys/types.h>
6870int
6871main ()
6872{
6873uint64_t  bar;
6874  ;
6875  return 0;
6876}
6877_ACEOF
6878rm -f conftest.$ac_objext
6879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6880  (eval $ac_compile) 2>conftest.er1
6881  ac_status=$?
6882  grep -v '^ *+' conftest.er1 >conftest.err
6883  rm -f conftest.er1
6884  cat conftest.err >&5
6885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886  (exit $ac_status); } &&
6887	 { ac_try='test -z "$ac_cxx_werror_flag"
6888			 || test ! -s conftest.err'
6889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890  (eval $ac_try) 2>&5
6891  ac_status=$?
6892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893  (exit $ac_status); }; } &&
6894	 { ac_try='test -s conftest.$ac_objext'
6895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896  (eval $ac_try) 2>&5
6897  ac_status=$?
6898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899  (exit $ac_status); }; }; then
6900  cat >>confdefs.h <<\_ACEOF
6901#define HAVE_UINT64_T 1
6902_ACEOF
6903
6904	 echo "$as_me:$LINENO: result: yes" >&5
6905echo "${ECHO_T}yes" >&6
6906
6907else
6908  echo "$as_me: failed program was:" >&5
6909sed 's/^/| /' conftest.$ac_ext >&5
6910
6911echo "$as_me:$LINENO: result: no" >&5
6912echo "${ECHO_T}no" >&6
6913fi
6914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6915    ;;
6916esac
6917
6918echo "$as_me:$LINENO: checking for unsigned short" >&5
6919echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
6920if test "${ac_cv_type_unsigned_short+set}" = set; then
6921  echo $ECHO_N "(cached) $ECHO_C" >&6
6922else
6923  cat >conftest.$ac_ext <<_ACEOF
6924/* confdefs.h.  */
6925_ACEOF
6926cat confdefs.h >>conftest.$ac_ext
6927cat >>conftest.$ac_ext <<_ACEOF
6928/* end confdefs.h.  */
6929$ac_includes_default
6930int
6931main ()
6932{
6933if ((unsigned short *) 0)
6934  return 0;
6935if (sizeof (unsigned short))
6936  return 0;
6937  ;
6938  return 0;
6939}
6940_ACEOF
6941rm -f conftest.$ac_objext
6942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943  (eval $ac_compile) 2>conftest.er1
6944  ac_status=$?
6945  grep -v '^ *+' conftest.er1 >conftest.err
6946  rm -f conftest.er1
6947  cat conftest.err >&5
6948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949  (exit $ac_status); } &&
6950	 { ac_try='test -z "$ac_cxx_werror_flag"
6951			 || test ! -s conftest.err'
6952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953  (eval $ac_try) 2>&5
6954  ac_status=$?
6955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956  (exit $ac_status); }; } &&
6957	 { ac_try='test -s conftest.$ac_objext'
6958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959  (eval $ac_try) 2>&5
6960  ac_status=$?
6961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962  (exit $ac_status); }; }; then
6963  ac_cv_type_unsigned_short=yes
6964else
6965  echo "$as_me: failed program was:" >&5
6966sed 's/^/| /' conftest.$ac_ext >&5
6967
6968ac_cv_type_unsigned_short=no
6969fi
6970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6971fi
6972echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
6973echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
6974
6975echo "$as_me:$LINENO: checking size of unsigned short" >&5
6976echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
6977if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
6978  echo $ECHO_N "(cached) $ECHO_C" >&6
6979else
6980  if test "$ac_cv_type_unsigned_short" = yes; then
6981  # The cast to unsigned long works around a bug in the HP C Compiler
6982  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6983  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6984  # This bug is HP SR number 8606223364.
6985  if test "$cross_compiling" = yes; then
6986  # Depending upon the size, compute the lo and hi bounds.
6987cat >conftest.$ac_ext <<_ACEOF
6988/* confdefs.h.  */
6989_ACEOF
6990cat confdefs.h >>conftest.$ac_ext
6991cat >>conftest.$ac_ext <<_ACEOF
6992/* end confdefs.h.  */
6993$ac_includes_default
6994int
6995main ()
6996{
6997static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
6998test_array [0] = 0
6999
7000  ;
7001  return 0;
7002}
7003_ACEOF
7004rm -f conftest.$ac_objext
7005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006  (eval $ac_compile) 2>conftest.er1
7007  ac_status=$?
7008  grep -v '^ *+' conftest.er1 >conftest.err
7009  rm -f conftest.er1
7010  cat conftest.err >&5
7011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012  (exit $ac_status); } &&
7013	 { ac_try='test -z "$ac_cxx_werror_flag"
7014			 || test ! -s conftest.err'
7015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016  (eval $ac_try) 2>&5
7017  ac_status=$?
7018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019  (exit $ac_status); }; } &&
7020	 { ac_try='test -s conftest.$ac_objext'
7021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022  (eval $ac_try) 2>&5
7023  ac_status=$?
7024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025  (exit $ac_status); }; }; then
7026  ac_lo=0 ac_mid=0
7027  while :; do
7028    cat >conftest.$ac_ext <<_ACEOF
7029/* confdefs.h.  */
7030_ACEOF
7031cat confdefs.h >>conftest.$ac_ext
7032cat >>conftest.$ac_ext <<_ACEOF
7033/* end confdefs.h.  */
7034$ac_includes_default
7035int
7036main ()
7037{
7038static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
7039test_array [0] = 0
7040
7041  ;
7042  return 0;
7043}
7044_ACEOF
7045rm -f conftest.$ac_objext
7046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047  (eval $ac_compile) 2>conftest.er1
7048  ac_status=$?
7049  grep -v '^ *+' conftest.er1 >conftest.err
7050  rm -f conftest.er1
7051  cat conftest.err >&5
7052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053  (exit $ac_status); } &&
7054	 { ac_try='test -z "$ac_cxx_werror_flag"
7055			 || test ! -s conftest.err'
7056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057  (eval $ac_try) 2>&5
7058  ac_status=$?
7059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060  (exit $ac_status); }; } &&
7061	 { ac_try='test -s conftest.$ac_objext'
7062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063  (eval $ac_try) 2>&5
7064  ac_status=$?
7065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066  (exit $ac_status); }; }; then
7067  ac_hi=$ac_mid; break
7068else
7069  echo "$as_me: failed program was:" >&5
7070sed 's/^/| /' conftest.$ac_ext >&5
7071
7072ac_lo=`expr $ac_mid + 1`
7073		    if test $ac_lo -le $ac_mid; then
7074		      ac_lo= ac_hi=
7075		      break
7076		    fi
7077		    ac_mid=`expr 2 '*' $ac_mid + 1`
7078fi
7079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7080  done
7081else
7082  echo "$as_me: failed program was:" >&5
7083sed 's/^/| /' conftest.$ac_ext >&5
7084
7085cat >conftest.$ac_ext <<_ACEOF
7086/* confdefs.h.  */
7087_ACEOF
7088cat confdefs.h >>conftest.$ac_ext
7089cat >>conftest.$ac_ext <<_ACEOF
7090/* end confdefs.h.  */
7091$ac_includes_default
7092int
7093main ()
7094{
7095static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
7096test_array [0] = 0
7097
7098  ;
7099  return 0;
7100}
7101_ACEOF
7102rm -f conftest.$ac_objext
7103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7104  (eval $ac_compile) 2>conftest.er1
7105  ac_status=$?
7106  grep -v '^ *+' conftest.er1 >conftest.err
7107  rm -f conftest.er1
7108  cat conftest.err >&5
7109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110  (exit $ac_status); } &&
7111	 { ac_try='test -z "$ac_cxx_werror_flag"
7112			 || test ! -s conftest.err'
7113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114  (eval $ac_try) 2>&5
7115  ac_status=$?
7116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117  (exit $ac_status); }; } &&
7118	 { ac_try='test -s conftest.$ac_objext'
7119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120  (eval $ac_try) 2>&5
7121  ac_status=$?
7122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123  (exit $ac_status); }; }; then
7124  ac_hi=-1 ac_mid=-1
7125  while :; do
7126    cat >conftest.$ac_ext <<_ACEOF
7127/* confdefs.h.  */
7128_ACEOF
7129cat confdefs.h >>conftest.$ac_ext
7130cat >>conftest.$ac_ext <<_ACEOF
7131/* end confdefs.h.  */
7132$ac_includes_default
7133int
7134main ()
7135{
7136static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
7137test_array [0] = 0
7138
7139  ;
7140  return 0;
7141}
7142_ACEOF
7143rm -f conftest.$ac_objext
7144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7145  (eval $ac_compile) 2>conftest.er1
7146  ac_status=$?
7147  grep -v '^ *+' conftest.er1 >conftest.err
7148  rm -f conftest.er1
7149  cat conftest.err >&5
7150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151  (exit $ac_status); } &&
7152	 { ac_try='test -z "$ac_cxx_werror_flag"
7153			 || test ! -s conftest.err'
7154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155  (eval $ac_try) 2>&5
7156  ac_status=$?
7157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158  (exit $ac_status); }; } &&
7159	 { ac_try='test -s conftest.$ac_objext'
7160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161  (eval $ac_try) 2>&5
7162  ac_status=$?
7163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164  (exit $ac_status); }; }; then
7165  ac_lo=$ac_mid; break
7166else
7167  echo "$as_me: failed program was:" >&5
7168sed 's/^/| /' conftest.$ac_ext >&5
7169
7170ac_hi=`expr '(' $ac_mid ')' - 1`
7171		       if test $ac_mid -le $ac_hi; then
7172			 ac_lo= ac_hi=
7173			 break
7174		       fi
7175		       ac_mid=`expr 2 '*' $ac_mid`
7176fi
7177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178  done
7179else
7180  echo "$as_me: failed program was:" >&5
7181sed 's/^/| /' conftest.$ac_ext >&5
7182
7183ac_lo= ac_hi=
7184fi
7185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7186fi
7187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7188# Binary search between lo and hi bounds.
7189while test "x$ac_lo" != "x$ac_hi"; do
7190  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7191  cat >conftest.$ac_ext <<_ACEOF
7192/* confdefs.h.  */
7193_ACEOF
7194cat confdefs.h >>conftest.$ac_ext
7195cat >>conftest.$ac_ext <<_ACEOF
7196/* end confdefs.h.  */
7197$ac_includes_default
7198int
7199main ()
7200{
7201static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
7202test_array [0] = 0
7203
7204  ;
7205  return 0;
7206}
7207_ACEOF
7208rm -f conftest.$ac_objext
7209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7210  (eval $ac_compile) 2>conftest.er1
7211  ac_status=$?
7212  grep -v '^ *+' conftest.er1 >conftest.err
7213  rm -f conftest.er1
7214  cat conftest.err >&5
7215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216  (exit $ac_status); } &&
7217	 { ac_try='test -z "$ac_cxx_werror_flag"
7218			 || test ! -s conftest.err'
7219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220  (eval $ac_try) 2>&5
7221  ac_status=$?
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); }; } &&
7224	 { ac_try='test -s conftest.$ac_objext'
7225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226  (eval $ac_try) 2>&5
7227  ac_status=$?
7228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229  (exit $ac_status); }; }; then
7230  ac_hi=$ac_mid
7231else
7232  echo "$as_me: failed program was:" >&5
7233sed 's/^/| /' conftest.$ac_ext >&5
7234
7235ac_lo=`expr '(' $ac_mid ')' + 1`
7236fi
7237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7238done
7239case $ac_lo in
7240?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
7241'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
7242See \`config.log' for more details." >&5
7243echo "$as_me: error: cannot compute sizeof (unsigned short), 77
7244See \`config.log' for more details." >&2;}
7245   { (exit 1); exit 1; }; } ;;
7246esac
7247else
7248  if test "$cross_compiling" = yes; then
7249  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7250See \`config.log' for more details." >&5
7251echo "$as_me: error: cannot run test program while cross compiling
7252See \`config.log' for more details." >&2;}
7253   { (exit 1); exit 1; }; }
7254else
7255  cat >conftest.$ac_ext <<_ACEOF
7256/* confdefs.h.  */
7257_ACEOF
7258cat confdefs.h >>conftest.$ac_ext
7259cat >>conftest.$ac_ext <<_ACEOF
7260/* end confdefs.h.  */
7261$ac_includes_default
7262long longval () { return (long) (sizeof (unsigned short)); }
7263unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
7264#include <stdio.h>
7265#include <stdlib.h>
7266int
7267main ()
7268{
7269
7270  FILE *f = fopen ("conftest.val", "w");
7271  if (! f)
7272    exit (1);
7273  if (((long) (sizeof (unsigned short))) < 0)
7274    {
7275      long i = longval ();
7276      if (i != ((long) (sizeof (unsigned short))))
7277	exit (1);
7278      fprintf (f, "%ld\n", i);
7279    }
7280  else
7281    {
7282      unsigned long i = ulongval ();
7283      if (i != ((long) (sizeof (unsigned short))))
7284	exit (1);
7285      fprintf (f, "%lu\n", i);
7286    }
7287  exit (ferror (f) || fclose (f) != 0);
7288
7289  ;
7290  return 0;
7291}
7292_ACEOF
7293rm -f conftest$ac_exeext
7294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7295  (eval $ac_link) 2>&5
7296  ac_status=$?
7297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300  (eval $ac_try) 2>&5
7301  ac_status=$?
7302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303  (exit $ac_status); }; }; then
7304  ac_cv_sizeof_unsigned_short=`cat conftest.val`
7305else
7306  echo "$as_me: program exited with status $ac_status" >&5
7307echo "$as_me: failed program was:" >&5
7308sed 's/^/| /' conftest.$ac_ext >&5
7309
7310( exit $ac_status )
7311{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
7312See \`config.log' for more details." >&5
7313echo "$as_me: error: cannot compute sizeof (unsigned short), 77
7314See \`config.log' for more details." >&2;}
7315   { (exit 1); exit 1; }; }
7316fi
7317rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7318fi
7319fi
7320rm -f conftest.val
7321else
7322  ac_cv_sizeof_unsigned_short=0
7323fi
7324fi
7325echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
7326echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
7327cat >>confdefs.h <<_ACEOF
7328#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
7329_ACEOF
7330
7331
7332echo "$as_me:$LINENO: checking for short" >&5
7333echo $ECHO_N "checking for short... $ECHO_C" >&6
7334if test "${ac_cv_type_short+set}" = set; then
7335  echo $ECHO_N "(cached) $ECHO_C" >&6
7336else
7337  cat >conftest.$ac_ext <<_ACEOF
7338/* confdefs.h.  */
7339_ACEOF
7340cat confdefs.h >>conftest.$ac_ext
7341cat >>conftest.$ac_ext <<_ACEOF
7342/* end confdefs.h.  */
7343$ac_includes_default
7344int
7345main ()
7346{
7347if ((short *) 0)
7348  return 0;
7349if (sizeof (short))
7350  return 0;
7351  ;
7352  return 0;
7353}
7354_ACEOF
7355rm -f conftest.$ac_objext
7356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7357  (eval $ac_compile) 2>conftest.er1
7358  ac_status=$?
7359  grep -v '^ *+' conftest.er1 >conftest.err
7360  rm -f conftest.er1
7361  cat conftest.err >&5
7362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363  (exit $ac_status); } &&
7364	 { ac_try='test -z "$ac_cxx_werror_flag"
7365			 || test ! -s conftest.err'
7366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367  (eval $ac_try) 2>&5
7368  ac_status=$?
7369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370  (exit $ac_status); }; } &&
7371	 { ac_try='test -s conftest.$ac_objext'
7372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373  (eval $ac_try) 2>&5
7374  ac_status=$?
7375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376  (exit $ac_status); }; }; then
7377  ac_cv_type_short=yes
7378else
7379  echo "$as_me: failed program was:" >&5
7380sed 's/^/| /' conftest.$ac_ext >&5
7381
7382ac_cv_type_short=no
7383fi
7384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7385fi
7386echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7387echo "${ECHO_T}$ac_cv_type_short" >&6
7388
7389echo "$as_me:$LINENO: checking size of short" >&5
7390echo $ECHO_N "checking size of short... $ECHO_C" >&6
7391if test "${ac_cv_sizeof_short+set}" = set; then
7392  echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394  if test "$ac_cv_type_short" = yes; then
7395  # The cast to unsigned long works around a bug in the HP C Compiler
7396  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7397  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7398  # This bug is HP SR number 8606223364.
7399  if test "$cross_compiling" = yes; then
7400  # Depending upon the size, compute the lo and hi bounds.
7401cat >conftest.$ac_ext <<_ACEOF
7402/* confdefs.h.  */
7403_ACEOF
7404cat confdefs.h >>conftest.$ac_ext
7405cat >>conftest.$ac_ext <<_ACEOF
7406/* end confdefs.h.  */
7407$ac_includes_default
7408int
7409main ()
7410{
7411static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7412test_array [0] = 0
7413
7414  ;
7415  return 0;
7416}
7417_ACEOF
7418rm -f conftest.$ac_objext
7419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420  (eval $ac_compile) 2>conftest.er1
7421  ac_status=$?
7422  grep -v '^ *+' conftest.er1 >conftest.err
7423  rm -f conftest.er1
7424  cat conftest.err >&5
7425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426  (exit $ac_status); } &&
7427	 { ac_try='test -z "$ac_cxx_werror_flag"
7428			 || test ! -s conftest.err'
7429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430  (eval $ac_try) 2>&5
7431  ac_status=$?
7432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433  (exit $ac_status); }; } &&
7434	 { ac_try='test -s conftest.$ac_objext'
7435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436  (eval $ac_try) 2>&5
7437  ac_status=$?
7438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439  (exit $ac_status); }; }; then
7440  ac_lo=0 ac_mid=0
7441  while :; do
7442    cat >conftest.$ac_ext <<_ACEOF
7443/* confdefs.h.  */
7444_ACEOF
7445cat confdefs.h >>conftest.$ac_ext
7446cat >>conftest.$ac_ext <<_ACEOF
7447/* end confdefs.h.  */
7448$ac_includes_default
7449int
7450main ()
7451{
7452static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7453test_array [0] = 0
7454
7455  ;
7456  return 0;
7457}
7458_ACEOF
7459rm -f conftest.$ac_objext
7460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7461  (eval $ac_compile) 2>conftest.er1
7462  ac_status=$?
7463  grep -v '^ *+' conftest.er1 >conftest.err
7464  rm -f conftest.er1
7465  cat conftest.err >&5
7466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467  (exit $ac_status); } &&
7468	 { ac_try='test -z "$ac_cxx_werror_flag"
7469			 || test ! -s conftest.err'
7470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471  (eval $ac_try) 2>&5
7472  ac_status=$?
7473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474  (exit $ac_status); }; } &&
7475	 { ac_try='test -s conftest.$ac_objext'
7476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477  (eval $ac_try) 2>&5
7478  ac_status=$?
7479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480  (exit $ac_status); }; }; then
7481  ac_hi=$ac_mid; break
7482else
7483  echo "$as_me: failed program was:" >&5
7484sed 's/^/| /' conftest.$ac_ext >&5
7485
7486ac_lo=`expr $ac_mid + 1`
7487		    if test $ac_lo -le $ac_mid; then
7488		      ac_lo= ac_hi=
7489		      break
7490		    fi
7491		    ac_mid=`expr 2 '*' $ac_mid + 1`
7492fi
7493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7494  done
7495else
7496  echo "$as_me: failed program was:" >&5
7497sed 's/^/| /' conftest.$ac_ext >&5
7498
7499cat >conftest.$ac_ext <<_ACEOF
7500/* confdefs.h.  */
7501_ACEOF
7502cat confdefs.h >>conftest.$ac_ext
7503cat >>conftest.$ac_ext <<_ACEOF
7504/* end confdefs.h.  */
7505$ac_includes_default
7506int
7507main ()
7508{
7509static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7510test_array [0] = 0
7511
7512  ;
7513  return 0;
7514}
7515_ACEOF
7516rm -f conftest.$ac_objext
7517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7518  (eval $ac_compile) 2>conftest.er1
7519  ac_status=$?
7520  grep -v '^ *+' conftest.er1 >conftest.err
7521  rm -f conftest.er1
7522  cat conftest.err >&5
7523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524  (exit $ac_status); } &&
7525	 { ac_try='test -z "$ac_cxx_werror_flag"
7526			 || test ! -s conftest.err'
7527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528  (eval $ac_try) 2>&5
7529  ac_status=$?
7530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531  (exit $ac_status); }; } &&
7532	 { ac_try='test -s conftest.$ac_objext'
7533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534  (eval $ac_try) 2>&5
7535  ac_status=$?
7536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537  (exit $ac_status); }; }; then
7538  ac_hi=-1 ac_mid=-1
7539  while :; do
7540    cat >conftest.$ac_ext <<_ACEOF
7541/* confdefs.h.  */
7542_ACEOF
7543cat confdefs.h >>conftest.$ac_ext
7544cat >>conftest.$ac_ext <<_ACEOF
7545/* end confdefs.h.  */
7546$ac_includes_default
7547int
7548main ()
7549{
7550static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7551test_array [0] = 0
7552
7553  ;
7554  return 0;
7555}
7556_ACEOF
7557rm -f conftest.$ac_objext
7558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7559  (eval $ac_compile) 2>conftest.er1
7560  ac_status=$?
7561  grep -v '^ *+' conftest.er1 >conftest.err
7562  rm -f conftest.er1
7563  cat conftest.err >&5
7564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565  (exit $ac_status); } &&
7566	 { ac_try='test -z "$ac_cxx_werror_flag"
7567			 || test ! -s conftest.err'
7568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569  (eval $ac_try) 2>&5
7570  ac_status=$?
7571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572  (exit $ac_status); }; } &&
7573	 { ac_try='test -s conftest.$ac_objext'
7574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575  (eval $ac_try) 2>&5
7576  ac_status=$?
7577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578  (exit $ac_status); }; }; then
7579  ac_lo=$ac_mid; break
7580else
7581  echo "$as_me: failed program was:" >&5
7582sed 's/^/| /' conftest.$ac_ext >&5
7583
7584ac_hi=`expr '(' $ac_mid ')' - 1`
7585		       if test $ac_mid -le $ac_hi; then
7586			 ac_lo= ac_hi=
7587			 break
7588		       fi
7589		       ac_mid=`expr 2 '*' $ac_mid`
7590fi
7591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7592  done
7593else
7594  echo "$as_me: failed program was:" >&5
7595sed 's/^/| /' conftest.$ac_ext >&5
7596
7597ac_lo= ac_hi=
7598fi
7599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7600fi
7601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7602# Binary search between lo and hi bounds.
7603while test "x$ac_lo" != "x$ac_hi"; do
7604  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7605  cat >conftest.$ac_ext <<_ACEOF
7606/* confdefs.h.  */
7607_ACEOF
7608cat confdefs.h >>conftest.$ac_ext
7609cat >>conftest.$ac_ext <<_ACEOF
7610/* end confdefs.h.  */
7611$ac_includes_default
7612int
7613main ()
7614{
7615static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7616test_array [0] = 0
7617
7618  ;
7619  return 0;
7620}
7621_ACEOF
7622rm -f conftest.$ac_objext
7623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7624  (eval $ac_compile) 2>conftest.er1
7625  ac_status=$?
7626  grep -v '^ *+' conftest.er1 >conftest.err
7627  rm -f conftest.er1
7628  cat conftest.err >&5
7629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630  (exit $ac_status); } &&
7631	 { ac_try='test -z "$ac_cxx_werror_flag"
7632			 || test ! -s conftest.err'
7633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634  (eval $ac_try) 2>&5
7635  ac_status=$?
7636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637  (exit $ac_status); }; } &&
7638	 { ac_try='test -s conftest.$ac_objext'
7639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640  (eval $ac_try) 2>&5
7641  ac_status=$?
7642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643  (exit $ac_status); }; }; then
7644  ac_hi=$ac_mid
7645else
7646  echo "$as_me: failed program was:" >&5
7647sed 's/^/| /' conftest.$ac_ext >&5
7648
7649ac_lo=`expr '(' $ac_mid ')' + 1`
7650fi
7651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7652done
7653case $ac_lo in
7654?*) ac_cv_sizeof_short=$ac_lo;;
7655'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7656See \`config.log' for more details." >&5
7657echo "$as_me: error: cannot compute sizeof (short), 77
7658See \`config.log' for more details." >&2;}
7659   { (exit 1); exit 1; }; } ;;
7660esac
7661else
7662  if test "$cross_compiling" = yes; then
7663  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7664See \`config.log' for more details." >&5
7665echo "$as_me: error: cannot run test program while cross compiling
7666See \`config.log' for more details." >&2;}
7667   { (exit 1); exit 1; }; }
7668else
7669  cat >conftest.$ac_ext <<_ACEOF
7670/* confdefs.h.  */
7671_ACEOF
7672cat confdefs.h >>conftest.$ac_ext
7673cat >>conftest.$ac_ext <<_ACEOF
7674/* end confdefs.h.  */
7675$ac_includes_default
7676long longval () { return (long) (sizeof (short)); }
7677unsigned long ulongval () { return (long) (sizeof (short)); }
7678#include <stdio.h>
7679#include <stdlib.h>
7680int
7681main ()
7682{
7683
7684  FILE *f = fopen ("conftest.val", "w");
7685  if (! f)
7686    exit (1);
7687  if (((long) (sizeof (short))) < 0)
7688    {
7689      long i = longval ();
7690      if (i != ((long) (sizeof (short))))
7691	exit (1);
7692      fprintf (f, "%ld\n", i);
7693    }
7694  else
7695    {
7696      unsigned long i = ulongval ();
7697      if (i != ((long) (sizeof (short))))
7698	exit (1);
7699      fprintf (f, "%lu\n", i);
7700    }
7701  exit (ferror (f) || fclose (f) != 0);
7702
7703  ;
7704  return 0;
7705}
7706_ACEOF
7707rm -f conftest$ac_exeext
7708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709  (eval $ac_link) 2>&5
7710  ac_status=$?
7711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714  (eval $ac_try) 2>&5
7715  ac_status=$?
7716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717  (exit $ac_status); }; }; then
7718  ac_cv_sizeof_short=`cat conftest.val`
7719else
7720  echo "$as_me: program exited with status $ac_status" >&5
7721echo "$as_me: failed program was:" >&5
7722sed 's/^/| /' conftest.$ac_ext >&5
7723
7724( exit $ac_status )
7725{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7726See \`config.log' for more details." >&5
7727echo "$as_me: error: cannot compute sizeof (short), 77
7728See \`config.log' for more details." >&2;}
7729   { (exit 1); exit 1; }; }
7730fi
7731rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7732fi
7733fi
7734rm -f conftest.val
7735else
7736  ac_cv_sizeof_short=0
7737fi
7738fi
7739echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7740echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7741cat >>confdefs.h <<_ACEOF
7742#define SIZEOF_SHORT $ac_cv_sizeof_short
7743_ACEOF
7744
7745
7746echo "$as_me:$LINENO: checking for unsigned int" >&5
7747echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
7748if test "${ac_cv_type_unsigned_int+set}" = set; then
7749  echo $ECHO_N "(cached) $ECHO_C" >&6
7750else
7751  cat >conftest.$ac_ext <<_ACEOF
7752/* confdefs.h.  */
7753_ACEOF
7754cat confdefs.h >>conftest.$ac_ext
7755cat >>conftest.$ac_ext <<_ACEOF
7756/* end confdefs.h.  */
7757$ac_includes_default
7758int
7759main ()
7760{
7761if ((unsigned int *) 0)
7762  return 0;
7763if (sizeof (unsigned int))
7764  return 0;
7765  ;
7766  return 0;
7767}
7768_ACEOF
7769rm -f conftest.$ac_objext
7770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7771  (eval $ac_compile) 2>conftest.er1
7772  ac_status=$?
7773  grep -v '^ *+' conftest.er1 >conftest.err
7774  rm -f conftest.er1
7775  cat conftest.err >&5
7776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777  (exit $ac_status); } &&
7778	 { ac_try='test -z "$ac_cxx_werror_flag"
7779			 || test ! -s conftest.err'
7780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781  (eval $ac_try) 2>&5
7782  ac_status=$?
7783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784  (exit $ac_status); }; } &&
7785	 { ac_try='test -s conftest.$ac_objext'
7786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787  (eval $ac_try) 2>&5
7788  ac_status=$?
7789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790  (exit $ac_status); }; }; then
7791  ac_cv_type_unsigned_int=yes
7792else
7793  echo "$as_me: failed program was:" >&5
7794sed 's/^/| /' conftest.$ac_ext >&5
7795
7796ac_cv_type_unsigned_int=no
7797fi
7798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7799fi
7800echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
7801echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
7802
7803echo "$as_me:$LINENO: checking size of unsigned int" >&5
7804echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
7805if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
7806  echo $ECHO_N "(cached) $ECHO_C" >&6
7807else
7808  if test "$ac_cv_type_unsigned_int" = yes; then
7809  # The cast to unsigned long works around a bug in the HP C Compiler
7810  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7811  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7812  # This bug is HP SR number 8606223364.
7813  if test "$cross_compiling" = yes; then
7814  # Depending upon the size, compute the lo and hi bounds.
7815cat >conftest.$ac_ext <<_ACEOF
7816/* confdefs.h.  */
7817_ACEOF
7818cat confdefs.h >>conftest.$ac_ext
7819cat >>conftest.$ac_ext <<_ACEOF
7820/* end confdefs.h.  */
7821$ac_includes_default
7822int
7823main ()
7824{
7825static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
7826test_array [0] = 0
7827
7828  ;
7829  return 0;
7830}
7831_ACEOF
7832rm -f conftest.$ac_objext
7833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7834  (eval $ac_compile) 2>conftest.er1
7835  ac_status=$?
7836  grep -v '^ *+' conftest.er1 >conftest.err
7837  rm -f conftest.er1
7838  cat conftest.err >&5
7839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840  (exit $ac_status); } &&
7841	 { ac_try='test -z "$ac_cxx_werror_flag"
7842			 || test ! -s conftest.err'
7843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844  (eval $ac_try) 2>&5
7845  ac_status=$?
7846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847  (exit $ac_status); }; } &&
7848	 { ac_try='test -s conftest.$ac_objext'
7849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850  (eval $ac_try) 2>&5
7851  ac_status=$?
7852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853  (exit $ac_status); }; }; then
7854  ac_lo=0 ac_mid=0
7855  while :; do
7856    cat >conftest.$ac_ext <<_ACEOF
7857/* confdefs.h.  */
7858_ACEOF
7859cat confdefs.h >>conftest.$ac_ext
7860cat >>conftest.$ac_ext <<_ACEOF
7861/* end confdefs.h.  */
7862$ac_includes_default
7863int
7864main ()
7865{
7866static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
7867test_array [0] = 0
7868
7869  ;
7870  return 0;
7871}
7872_ACEOF
7873rm -f conftest.$ac_objext
7874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7875  (eval $ac_compile) 2>conftest.er1
7876  ac_status=$?
7877  grep -v '^ *+' conftest.er1 >conftest.err
7878  rm -f conftest.er1
7879  cat conftest.err >&5
7880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881  (exit $ac_status); } &&
7882	 { ac_try='test -z "$ac_cxx_werror_flag"
7883			 || test ! -s conftest.err'
7884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885  (eval $ac_try) 2>&5
7886  ac_status=$?
7887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888  (exit $ac_status); }; } &&
7889	 { ac_try='test -s conftest.$ac_objext'
7890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891  (eval $ac_try) 2>&5
7892  ac_status=$?
7893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894  (exit $ac_status); }; }; then
7895  ac_hi=$ac_mid; break
7896else
7897  echo "$as_me: failed program was:" >&5
7898sed 's/^/| /' conftest.$ac_ext >&5
7899
7900ac_lo=`expr $ac_mid + 1`
7901		    if test $ac_lo -le $ac_mid; then
7902		      ac_lo= ac_hi=
7903		      break
7904		    fi
7905		    ac_mid=`expr 2 '*' $ac_mid + 1`
7906fi
7907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7908  done
7909else
7910  echo "$as_me: failed program was:" >&5
7911sed 's/^/| /' conftest.$ac_ext >&5
7912
7913cat >conftest.$ac_ext <<_ACEOF
7914/* confdefs.h.  */
7915_ACEOF
7916cat confdefs.h >>conftest.$ac_ext
7917cat >>conftest.$ac_ext <<_ACEOF
7918/* end confdefs.h.  */
7919$ac_includes_default
7920int
7921main ()
7922{
7923static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
7924test_array [0] = 0
7925
7926  ;
7927  return 0;
7928}
7929_ACEOF
7930rm -f conftest.$ac_objext
7931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7932  (eval $ac_compile) 2>conftest.er1
7933  ac_status=$?
7934  grep -v '^ *+' conftest.er1 >conftest.err
7935  rm -f conftest.er1
7936  cat conftest.err >&5
7937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938  (exit $ac_status); } &&
7939	 { ac_try='test -z "$ac_cxx_werror_flag"
7940			 || test ! -s conftest.err'
7941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942  (eval $ac_try) 2>&5
7943  ac_status=$?
7944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945  (exit $ac_status); }; } &&
7946	 { ac_try='test -s conftest.$ac_objext'
7947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948  (eval $ac_try) 2>&5
7949  ac_status=$?
7950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951  (exit $ac_status); }; }; then
7952  ac_hi=-1 ac_mid=-1
7953  while :; do
7954    cat >conftest.$ac_ext <<_ACEOF
7955/* confdefs.h.  */
7956_ACEOF
7957cat confdefs.h >>conftest.$ac_ext
7958cat >>conftest.$ac_ext <<_ACEOF
7959/* end confdefs.h.  */
7960$ac_includes_default
7961int
7962main ()
7963{
7964static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
7965test_array [0] = 0
7966
7967  ;
7968  return 0;
7969}
7970_ACEOF
7971rm -f conftest.$ac_objext
7972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973  (eval $ac_compile) 2>conftest.er1
7974  ac_status=$?
7975  grep -v '^ *+' conftest.er1 >conftest.err
7976  rm -f conftest.er1
7977  cat conftest.err >&5
7978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979  (exit $ac_status); } &&
7980	 { ac_try='test -z "$ac_cxx_werror_flag"
7981			 || test ! -s conftest.err'
7982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983  (eval $ac_try) 2>&5
7984  ac_status=$?
7985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986  (exit $ac_status); }; } &&
7987	 { ac_try='test -s conftest.$ac_objext'
7988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989  (eval $ac_try) 2>&5
7990  ac_status=$?
7991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992  (exit $ac_status); }; }; then
7993  ac_lo=$ac_mid; break
7994else
7995  echo "$as_me: failed program was:" >&5
7996sed 's/^/| /' conftest.$ac_ext >&5
7997
7998ac_hi=`expr '(' $ac_mid ')' - 1`
7999		       if test $ac_mid -le $ac_hi; then
8000			 ac_lo= ac_hi=
8001			 break
8002		       fi
8003		       ac_mid=`expr 2 '*' $ac_mid`
8004fi
8005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8006  done
8007else
8008  echo "$as_me: failed program was:" >&5
8009sed 's/^/| /' conftest.$ac_ext >&5
8010
8011ac_lo= ac_hi=
8012fi
8013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8014fi
8015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8016# Binary search between lo and hi bounds.
8017while test "x$ac_lo" != "x$ac_hi"; do
8018  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8019  cat >conftest.$ac_ext <<_ACEOF
8020/* confdefs.h.  */
8021_ACEOF
8022cat confdefs.h >>conftest.$ac_ext
8023cat >>conftest.$ac_ext <<_ACEOF
8024/* end confdefs.h.  */
8025$ac_includes_default
8026int
8027main ()
8028{
8029static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
8030test_array [0] = 0
8031
8032  ;
8033  return 0;
8034}
8035_ACEOF
8036rm -f conftest.$ac_objext
8037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8038  (eval $ac_compile) 2>conftest.er1
8039  ac_status=$?
8040  grep -v '^ *+' conftest.er1 >conftest.err
8041  rm -f conftest.er1
8042  cat conftest.err >&5
8043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044  (exit $ac_status); } &&
8045	 { ac_try='test -z "$ac_cxx_werror_flag"
8046			 || test ! -s conftest.err'
8047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048  (eval $ac_try) 2>&5
8049  ac_status=$?
8050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051  (exit $ac_status); }; } &&
8052	 { ac_try='test -s conftest.$ac_objext'
8053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054  (eval $ac_try) 2>&5
8055  ac_status=$?
8056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057  (exit $ac_status); }; }; then
8058  ac_hi=$ac_mid
8059else
8060  echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
8063ac_lo=`expr '(' $ac_mid ')' + 1`
8064fi
8065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8066done
8067case $ac_lo in
8068?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
8069'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
8070See \`config.log' for more details." >&5
8071echo "$as_me: error: cannot compute sizeof (unsigned int), 77
8072See \`config.log' for more details." >&2;}
8073   { (exit 1); exit 1; }; } ;;
8074esac
8075else
8076  if test "$cross_compiling" = yes; then
8077  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8078See \`config.log' for more details." >&5
8079echo "$as_me: error: cannot run test program while cross compiling
8080See \`config.log' for more details." >&2;}
8081   { (exit 1); exit 1; }; }
8082else
8083  cat >conftest.$ac_ext <<_ACEOF
8084/* confdefs.h.  */
8085_ACEOF
8086cat confdefs.h >>conftest.$ac_ext
8087cat >>conftest.$ac_ext <<_ACEOF
8088/* end confdefs.h.  */
8089$ac_includes_default
8090long longval () { return (long) (sizeof (unsigned int)); }
8091unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
8092#include <stdio.h>
8093#include <stdlib.h>
8094int
8095main ()
8096{
8097
8098  FILE *f = fopen ("conftest.val", "w");
8099  if (! f)
8100    exit (1);
8101  if (((long) (sizeof (unsigned int))) < 0)
8102    {
8103      long i = longval ();
8104      if (i != ((long) (sizeof (unsigned int))))
8105	exit (1);
8106      fprintf (f, "%ld\n", i);
8107    }
8108  else
8109    {
8110      unsigned long i = ulongval ();
8111      if (i != ((long) (sizeof (unsigned int))))
8112	exit (1);
8113      fprintf (f, "%lu\n", i);
8114    }
8115  exit (ferror (f) || fclose (f) != 0);
8116
8117  ;
8118  return 0;
8119}
8120_ACEOF
8121rm -f conftest$ac_exeext
8122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8123  (eval $ac_link) 2>&5
8124  ac_status=$?
8125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128  (eval $ac_try) 2>&5
8129  ac_status=$?
8130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131  (exit $ac_status); }; }; then
8132  ac_cv_sizeof_unsigned_int=`cat conftest.val`
8133else
8134  echo "$as_me: program exited with status $ac_status" >&5
8135echo "$as_me: failed program was:" >&5
8136sed 's/^/| /' conftest.$ac_ext >&5
8137
8138( exit $ac_status )
8139{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
8140See \`config.log' for more details." >&5
8141echo "$as_me: error: cannot compute sizeof (unsigned int), 77
8142See \`config.log' for more details." >&2;}
8143   { (exit 1); exit 1; }; }
8144fi
8145rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8146fi
8147fi
8148rm -f conftest.val
8149else
8150  ac_cv_sizeof_unsigned_int=0
8151fi
8152fi
8153echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
8154echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
8155cat >>confdefs.h <<_ACEOF
8156#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
8157_ACEOF
8158
8159
8160echo "$as_me:$LINENO: checking for int" >&5
8161echo $ECHO_N "checking for int... $ECHO_C" >&6
8162if test "${ac_cv_type_int+set}" = set; then
8163  echo $ECHO_N "(cached) $ECHO_C" >&6
8164else
8165  cat >conftest.$ac_ext <<_ACEOF
8166/* confdefs.h.  */
8167_ACEOF
8168cat confdefs.h >>conftest.$ac_ext
8169cat >>conftest.$ac_ext <<_ACEOF
8170/* end confdefs.h.  */
8171$ac_includes_default
8172int
8173main ()
8174{
8175if ((int *) 0)
8176  return 0;
8177if (sizeof (int))
8178  return 0;
8179  ;
8180  return 0;
8181}
8182_ACEOF
8183rm -f conftest.$ac_objext
8184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8185  (eval $ac_compile) 2>conftest.er1
8186  ac_status=$?
8187  grep -v '^ *+' conftest.er1 >conftest.err
8188  rm -f conftest.er1
8189  cat conftest.err >&5
8190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191  (exit $ac_status); } &&
8192	 { ac_try='test -z "$ac_cxx_werror_flag"
8193			 || test ! -s conftest.err'
8194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195  (eval $ac_try) 2>&5
8196  ac_status=$?
8197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198  (exit $ac_status); }; } &&
8199	 { ac_try='test -s conftest.$ac_objext'
8200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201  (eval $ac_try) 2>&5
8202  ac_status=$?
8203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204  (exit $ac_status); }; }; then
8205  ac_cv_type_int=yes
8206else
8207  echo "$as_me: failed program was:" >&5
8208sed 's/^/| /' conftest.$ac_ext >&5
8209
8210ac_cv_type_int=no
8211fi
8212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8213fi
8214echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8215echo "${ECHO_T}$ac_cv_type_int" >&6
8216
8217echo "$as_me:$LINENO: checking size of int" >&5
8218echo $ECHO_N "checking size of int... $ECHO_C" >&6
8219if test "${ac_cv_sizeof_int+set}" = set; then
8220  echo $ECHO_N "(cached) $ECHO_C" >&6
8221else
8222  if test "$ac_cv_type_int" = yes; then
8223  # The cast to unsigned long works around a bug in the HP C Compiler
8224  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8225  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8226  # This bug is HP SR number 8606223364.
8227  if test "$cross_compiling" = yes; then
8228  # Depending upon the size, compute the lo and hi bounds.
8229cat >conftest.$ac_ext <<_ACEOF
8230/* confdefs.h.  */
8231_ACEOF
8232cat confdefs.h >>conftest.$ac_ext
8233cat >>conftest.$ac_ext <<_ACEOF
8234/* end confdefs.h.  */
8235$ac_includes_default
8236int
8237main ()
8238{
8239static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8240test_array [0] = 0
8241
8242  ;
8243  return 0;
8244}
8245_ACEOF
8246rm -f conftest.$ac_objext
8247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248  (eval $ac_compile) 2>conftest.er1
8249  ac_status=$?
8250  grep -v '^ *+' conftest.er1 >conftest.err
8251  rm -f conftest.er1
8252  cat conftest.err >&5
8253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254  (exit $ac_status); } &&
8255	 { ac_try='test -z "$ac_cxx_werror_flag"
8256			 || test ! -s conftest.err'
8257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258  (eval $ac_try) 2>&5
8259  ac_status=$?
8260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261  (exit $ac_status); }; } &&
8262	 { ac_try='test -s conftest.$ac_objext'
8263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264  (eval $ac_try) 2>&5
8265  ac_status=$?
8266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267  (exit $ac_status); }; }; then
8268  ac_lo=0 ac_mid=0
8269  while :; do
8270    cat >conftest.$ac_ext <<_ACEOF
8271/* confdefs.h.  */
8272_ACEOF
8273cat confdefs.h >>conftest.$ac_ext
8274cat >>conftest.$ac_ext <<_ACEOF
8275/* end confdefs.h.  */
8276$ac_includes_default
8277int
8278main ()
8279{
8280static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8281test_array [0] = 0
8282
8283  ;
8284  return 0;
8285}
8286_ACEOF
8287rm -f conftest.$ac_objext
8288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8289  (eval $ac_compile) 2>conftest.er1
8290  ac_status=$?
8291  grep -v '^ *+' conftest.er1 >conftest.err
8292  rm -f conftest.er1
8293  cat conftest.err >&5
8294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295  (exit $ac_status); } &&
8296	 { ac_try='test -z "$ac_cxx_werror_flag"
8297			 || test ! -s conftest.err'
8298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299  (eval $ac_try) 2>&5
8300  ac_status=$?
8301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302  (exit $ac_status); }; } &&
8303	 { ac_try='test -s conftest.$ac_objext'
8304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305  (eval $ac_try) 2>&5
8306  ac_status=$?
8307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308  (exit $ac_status); }; }; then
8309  ac_hi=$ac_mid; break
8310else
8311  echo "$as_me: failed program was:" >&5
8312sed 's/^/| /' conftest.$ac_ext >&5
8313
8314ac_lo=`expr $ac_mid + 1`
8315		    if test $ac_lo -le $ac_mid; then
8316		      ac_lo= ac_hi=
8317		      break
8318		    fi
8319		    ac_mid=`expr 2 '*' $ac_mid + 1`
8320fi
8321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8322  done
8323else
8324  echo "$as_me: failed program was:" >&5
8325sed 's/^/| /' conftest.$ac_ext >&5
8326
8327cat >conftest.$ac_ext <<_ACEOF
8328/* confdefs.h.  */
8329_ACEOF
8330cat confdefs.h >>conftest.$ac_ext
8331cat >>conftest.$ac_ext <<_ACEOF
8332/* end confdefs.h.  */
8333$ac_includes_default
8334int
8335main ()
8336{
8337static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8338test_array [0] = 0
8339
8340  ;
8341  return 0;
8342}
8343_ACEOF
8344rm -f conftest.$ac_objext
8345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8346  (eval $ac_compile) 2>conftest.er1
8347  ac_status=$?
8348  grep -v '^ *+' conftest.er1 >conftest.err
8349  rm -f conftest.er1
8350  cat conftest.err >&5
8351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352  (exit $ac_status); } &&
8353	 { ac_try='test -z "$ac_cxx_werror_flag"
8354			 || test ! -s conftest.err'
8355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356  (eval $ac_try) 2>&5
8357  ac_status=$?
8358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359  (exit $ac_status); }; } &&
8360	 { ac_try='test -s conftest.$ac_objext'
8361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362  (eval $ac_try) 2>&5
8363  ac_status=$?
8364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365  (exit $ac_status); }; }; then
8366  ac_hi=-1 ac_mid=-1
8367  while :; do
8368    cat >conftest.$ac_ext <<_ACEOF
8369/* confdefs.h.  */
8370_ACEOF
8371cat confdefs.h >>conftest.$ac_ext
8372cat >>conftest.$ac_ext <<_ACEOF
8373/* end confdefs.h.  */
8374$ac_includes_default
8375int
8376main ()
8377{
8378static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8379test_array [0] = 0
8380
8381  ;
8382  return 0;
8383}
8384_ACEOF
8385rm -f conftest.$ac_objext
8386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387  (eval $ac_compile) 2>conftest.er1
8388  ac_status=$?
8389  grep -v '^ *+' conftest.er1 >conftest.err
8390  rm -f conftest.er1
8391  cat conftest.err >&5
8392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393  (exit $ac_status); } &&
8394	 { ac_try='test -z "$ac_cxx_werror_flag"
8395			 || test ! -s conftest.err'
8396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397  (eval $ac_try) 2>&5
8398  ac_status=$?
8399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400  (exit $ac_status); }; } &&
8401	 { ac_try='test -s conftest.$ac_objext'
8402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403  (eval $ac_try) 2>&5
8404  ac_status=$?
8405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406  (exit $ac_status); }; }; then
8407  ac_lo=$ac_mid; break
8408else
8409  echo "$as_me: failed program was:" >&5
8410sed 's/^/| /' conftest.$ac_ext >&5
8411
8412ac_hi=`expr '(' $ac_mid ')' - 1`
8413		       if test $ac_mid -le $ac_hi; then
8414			 ac_lo= ac_hi=
8415			 break
8416		       fi
8417		       ac_mid=`expr 2 '*' $ac_mid`
8418fi
8419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8420  done
8421else
8422  echo "$as_me: failed program was:" >&5
8423sed 's/^/| /' conftest.$ac_ext >&5
8424
8425ac_lo= ac_hi=
8426fi
8427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8428fi
8429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8430# Binary search between lo and hi bounds.
8431while test "x$ac_lo" != "x$ac_hi"; do
8432  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8433  cat >conftest.$ac_ext <<_ACEOF
8434/* confdefs.h.  */
8435_ACEOF
8436cat confdefs.h >>conftest.$ac_ext
8437cat >>conftest.$ac_ext <<_ACEOF
8438/* end confdefs.h.  */
8439$ac_includes_default
8440int
8441main ()
8442{
8443static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8444test_array [0] = 0
8445
8446  ;
8447  return 0;
8448}
8449_ACEOF
8450rm -f conftest.$ac_objext
8451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8452  (eval $ac_compile) 2>conftest.er1
8453  ac_status=$?
8454  grep -v '^ *+' conftest.er1 >conftest.err
8455  rm -f conftest.er1
8456  cat conftest.err >&5
8457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458  (exit $ac_status); } &&
8459	 { ac_try='test -z "$ac_cxx_werror_flag"
8460			 || test ! -s conftest.err'
8461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462  (eval $ac_try) 2>&5
8463  ac_status=$?
8464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465  (exit $ac_status); }; } &&
8466	 { ac_try='test -s conftest.$ac_objext'
8467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468  (eval $ac_try) 2>&5
8469  ac_status=$?
8470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471  (exit $ac_status); }; }; then
8472  ac_hi=$ac_mid
8473else
8474  echo "$as_me: failed program was:" >&5
8475sed 's/^/| /' conftest.$ac_ext >&5
8476
8477ac_lo=`expr '(' $ac_mid ')' + 1`
8478fi
8479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8480done
8481case $ac_lo in
8482?*) ac_cv_sizeof_int=$ac_lo;;
8483'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8484See \`config.log' for more details." >&5
8485echo "$as_me: error: cannot compute sizeof (int), 77
8486See \`config.log' for more details." >&2;}
8487   { (exit 1); exit 1; }; } ;;
8488esac
8489else
8490  if test "$cross_compiling" = yes; then
8491  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8492See \`config.log' for more details." >&5
8493echo "$as_me: error: cannot run test program while cross compiling
8494See \`config.log' for more details." >&2;}
8495   { (exit 1); exit 1; }; }
8496else
8497  cat >conftest.$ac_ext <<_ACEOF
8498/* confdefs.h.  */
8499_ACEOF
8500cat confdefs.h >>conftest.$ac_ext
8501cat >>conftest.$ac_ext <<_ACEOF
8502/* end confdefs.h.  */
8503$ac_includes_default
8504long longval () { return (long) (sizeof (int)); }
8505unsigned long ulongval () { return (long) (sizeof (int)); }
8506#include <stdio.h>
8507#include <stdlib.h>
8508int
8509main ()
8510{
8511
8512  FILE *f = fopen ("conftest.val", "w");
8513  if (! f)
8514    exit (1);
8515  if (((long) (sizeof (int))) < 0)
8516    {
8517      long i = longval ();
8518      if (i != ((long) (sizeof (int))))
8519	exit (1);
8520      fprintf (f, "%ld\n", i);
8521    }
8522  else
8523    {
8524      unsigned long i = ulongval ();
8525      if (i != ((long) (sizeof (int))))
8526	exit (1);
8527      fprintf (f, "%lu\n", i);
8528    }
8529  exit (ferror (f) || fclose (f) != 0);
8530
8531  ;
8532  return 0;
8533}
8534_ACEOF
8535rm -f conftest$ac_exeext
8536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8537  (eval $ac_link) 2>&5
8538  ac_status=$?
8539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542  (eval $ac_try) 2>&5
8543  ac_status=$?
8544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545  (exit $ac_status); }; }; then
8546  ac_cv_sizeof_int=`cat conftest.val`
8547else
8548  echo "$as_me: program exited with status $ac_status" >&5
8549echo "$as_me: failed program was:" >&5
8550sed 's/^/| /' conftest.$ac_ext >&5
8551
8552( exit $ac_status )
8553{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8554See \`config.log' for more details." >&5
8555echo "$as_me: error: cannot compute sizeof (int), 77
8556See \`config.log' for more details." >&2;}
8557   { (exit 1); exit 1; }; }
8558fi
8559rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8560fi
8561fi
8562rm -f conftest.val
8563else
8564  ac_cv_sizeof_int=0
8565fi
8566fi
8567echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8568echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8569cat >>confdefs.h <<_ACEOF
8570#define SIZEOF_INT $ac_cv_sizeof_int
8571_ACEOF
8572
8573
8574echo "$as_me:$LINENO: checking for unsigned long" >&5
8575echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
8576if test "${ac_cv_type_unsigned_long+set}" = set; then
8577  echo $ECHO_N "(cached) $ECHO_C" >&6
8578else
8579  cat >conftest.$ac_ext <<_ACEOF
8580/* confdefs.h.  */
8581_ACEOF
8582cat confdefs.h >>conftest.$ac_ext
8583cat >>conftest.$ac_ext <<_ACEOF
8584/* end confdefs.h.  */
8585$ac_includes_default
8586int
8587main ()
8588{
8589if ((unsigned long *) 0)
8590  return 0;
8591if (sizeof (unsigned long))
8592  return 0;
8593  ;
8594  return 0;
8595}
8596_ACEOF
8597rm -f conftest.$ac_objext
8598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8599  (eval $ac_compile) 2>conftest.er1
8600  ac_status=$?
8601  grep -v '^ *+' conftest.er1 >conftest.err
8602  rm -f conftest.er1
8603  cat conftest.err >&5
8604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605  (exit $ac_status); } &&
8606	 { ac_try='test -z "$ac_cxx_werror_flag"
8607			 || test ! -s conftest.err'
8608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609  (eval $ac_try) 2>&5
8610  ac_status=$?
8611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612  (exit $ac_status); }; } &&
8613	 { ac_try='test -s conftest.$ac_objext'
8614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615  (eval $ac_try) 2>&5
8616  ac_status=$?
8617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618  (exit $ac_status); }; }; then
8619  ac_cv_type_unsigned_long=yes
8620else
8621  echo "$as_me: failed program was:" >&5
8622sed 's/^/| /' conftest.$ac_ext >&5
8623
8624ac_cv_type_unsigned_long=no
8625fi
8626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8627fi
8628echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
8629echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
8630
8631echo "$as_me:$LINENO: checking size of unsigned long" >&5
8632echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
8633if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
8634  echo $ECHO_N "(cached) $ECHO_C" >&6
8635else
8636  if test "$ac_cv_type_unsigned_long" = yes; then
8637  # The cast to unsigned long works around a bug in the HP C Compiler
8638  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8639  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8640  # This bug is HP SR number 8606223364.
8641  if test "$cross_compiling" = yes; then
8642  # Depending upon the size, compute the lo and hi bounds.
8643cat >conftest.$ac_ext <<_ACEOF
8644/* confdefs.h.  */
8645_ACEOF
8646cat confdefs.h >>conftest.$ac_ext
8647cat >>conftest.$ac_ext <<_ACEOF
8648/* end confdefs.h.  */
8649$ac_includes_default
8650int
8651main ()
8652{
8653static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
8654test_array [0] = 0
8655
8656  ;
8657  return 0;
8658}
8659_ACEOF
8660rm -f conftest.$ac_objext
8661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8662  (eval $ac_compile) 2>conftest.er1
8663  ac_status=$?
8664  grep -v '^ *+' conftest.er1 >conftest.err
8665  rm -f conftest.er1
8666  cat conftest.err >&5
8667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668  (exit $ac_status); } &&
8669	 { ac_try='test -z "$ac_cxx_werror_flag"
8670			 || test ! -s conftest.err'
8671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672  (eval $ac_try) 2>&5
8673  ac_status=$?
8674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675  (exit $ac_status); }; } &&
8676	 { ac_try='test -s conftest.$ac_objext'
8677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678  (eval $ac_try) 2>&5
8679  ac_status=$?
8680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681  (exit $ac_status); }; }; then
8682  ac_lo=0 ac_mid=0
8683  while :; do
8684    cat >conftest.$ac_ext <<_ACEOF
8685/* confdefs.h.  */
8686_ACEOF
8687cat confdefs.h >>conftest.$ac_ext
8688cat >>conftest.$ac_ext <<_ACEOF
8689/* end confdefs.h.  */
8690$ac_includes_default
8691int
8692main ()
8693{
8694static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
8695test_array [0] = 0
8696
8697  ;
8698  return 0;
8699}
8700_ACEOF
8701rm -f conftest.$ac_objext
8702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8703  (eval $ac_compile) 2>conftest.er1
8704  ac_status=$?
8705  grep -v '^ *+' conftest.er1 >conftest.err
8706  rm -f conftest.er1
8707  cat conftest.err >&5
8708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709  (exit $ac_status); } &&
8710	 { ac_try='test -z "$ac_cxx_werror_flag"
8711			 || test ! -s conftest.err'
8712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713  (eval $ac_try) 2>&5
8714  ac_status=$?
8715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716  (exit $ac_status); }; } &&
8717	 { ac_try='test -s conftest.$ac_objext'
8718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719  (eval $ac_try) 2>&5
8720  ac_status=$?
8721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722  (exit $ac_status); }; }; then
8723  ac_hi=$ac_mid; break
8724else
8725  echo "$as_me: failed program was:" >&5
8726sed 's/^/| /' conftest.$ac_ext >&5
8727
8728ac_lo=`expr $ac_mid + 1`
8729		    if test $ac_lo -le $ac_mid; then
8730		      ac_lo= ac_hi=
8731		      break
8732		    fi
8733		    ac_mid=`expr 2 '*' $ac_mid + 1`
8734fi
8735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8736  done
8737else
8738  echo "$as_me: failed program was:" >&5
8739sed 's/^/| /' conftest.$ac_ext >&5
8740
8741cat >conftest.$ac_ext <<_ACEOF
8742/* confdefs.h.  */
8743_ACEOF
8744cat confdefs.h >>conftest.$ac_ext
8745cat >>conftest.$ac_ext <<_ACEOF
8746/* end confdefs.h.  */
8747$ac_includes_default
8748int
8749main ()
8750{
8751static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
8752test_array [0] = 0
8753
8754  ;
8755  return 0;
8756}
8757_ACEOF
8758rm -f conftest.$ac_objext
8759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8760  (eval $ac_compile) 2>conftest.er1
8761  ac_status=$?
8762  grep -v '^ *+' conftest.er1 >conftest.err
8763  rm -f conftest.er1
8764  cat conftest.err >&5
8765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766  (exit $ac_status); } &&
8767	 { ac_try='test -z "$ac_cxx_werror_flag"
8768			 || test ! -s conftest.err'
8769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770  (eval $ac_try) 2>&5
8771  ac_status=$?
8772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773  (exit $ac_status); }; } &&
8774	 { ac_try='test -s conftest.$ac_objext'
8775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776  (eval $ac_try) 2>&5
8777  ac_status=$?
8778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779  (exit $ac_status); }; }; then
8780  ac_hi=-1 ac_mid=-1
8781  while :; do
8782    cat >conftest.$ac_ext <<_ACEOF
8783/* confdefs.h.  */
8784_ACEOF
8785cat confdefs.h >>conftest.$ac_ext
8786cat >>conftest.$ac_ext <<_ACEOF
8787/* end confdefs.h.  */
8788$ac_includes_default
8789int
8790main ()
8791{
8792static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
8793test_array [0] = 0
8794
8795  ;
8796  return 0;
8797}
8798_ACEOF
8799rm -f conftest.$ac_objext
8800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8801  (eval $ac_compile) 2>conftest.er1
8802  ac_status=$?
8803  grep -v '^ *+' conftest.er1 >conftest.err
8804  rm -f conftest.er1
8805  cat conftest.err >&5
8806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807  (exit $ac_status); } &&
8808	 { ac_try='test -z "$ac_cxx_werror_flag"
8809			 || test ! -s conftest.err'
8810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811  (eval $ac_try) 2>&5
8812  ac_status=$?
8813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814  (exit $ac_status); }; } &&
8815	 { ac_try='test -s conftest.$ac_objext'
8816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817  (eval $ac_try) 2>&5
8818  ac_status=$?
8819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820  (exit $ac_status); }; }; then
8821  ac_lo=$ac_mid; break
8822else
8823  echo "$as_me: failed program was:" >&5
8824sed 's/^/| /' conftest.$ac_ext >&5
8825
8826ac_hi=`expr '(' $ac_mid ')' - 1`
8827		       if test $ac_mid -le $ac_hi; then
8828			 ac_lo= ac_hi=
8829			 break
8830		       fi
8831		       ac_mid=`expr 2 '*' $ac_mid`
8832fi
8833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8834  done
8835else
8836  echo "$as_me: failed program was:" >&5
8837sed 's/^/| /' conftest.$ac_ext >&5
8838
8839ac_lo= ac_hi=
8840fi
8841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8842fi
8843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8844# Binary search between lo and hi bounds.
8845while test "x$ac_lo" != "x$ac_hi"; do
8846  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8847  cat >conftest.$ac_ext <<_ACEOF
8848/* confdefs.h.  */
8849_ACEOF
8850cat confdefs.h >>conftest.$ac_ext
8851cat >>conftest.$ac_ext <<_ACEOF
8852/* end confdefs.h.  */
8853$ac_includes_default
8854int
8855main ()
8856{
8857static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
8858test_array [0] = 0
8859
8860  ;
8861  return 0;
8862}
8863_ACEOF
8864rm -f conftest.$ac_objext
8865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8866  (eval $ac_compile) 2>conftest.er1
8867  ac_status=$?
8868  grep -v '^ *+' conftest.er1 >conftest.err
8869  rm -f conftest.er1
8870  cat conftest.err >&5
8871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872  (exit $ac_status); } &&
8873	 { ac_try='test -z "$ac_cxx_werror_flag"
8874			 || test ! -s conftest.err'
8875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876  (eval $ac_try) 2>&5
8877  ac_status=$?
8878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879  (exit $ac_status); }; } &&
8880	 { ac_try='test -s conftest.$ac_objext'
8881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882  (eval $ac_try) 2>&5
8883  ac_status=$?
8884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885  (exit $ac_status); }; }; then
8886  ac_hi=$ac_mid
8887else
8888  echo "$as_me: failed program was:" >&5
8889sed 's/^/| /' conftest.$ac_ext >&5
8890
8891ac_lo=`expr '(' $ac_mid ')' + 1`
8892fi
8893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8894done
8895case $ac_lo in
8896?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
8897'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
8898See \`config.log' for more details." >&5
8899echo "$as_me: error: cannot compute sizeof (unsigned long), 77
8900See \`config.log' for more details." >&2;}
8901   { (exit 1); exit 1; }; } ;;
8902esac
8903else
8904  if test "$cross_compiling" = yes; then
8905  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8906See \`config.log' for more details." >&5
8907echo "$as_me: error: cannot run test program while cross compiling
8908See \`config.log' for more details." >&2;}
8909   { (exit 1); exit 1; }; }
8910else
8911  cat >conftest.$ac_ext <<_ACEOF
8912/* confdefs.h.  */
8913_ACEOF
8914cat confdefs.h >>conftest.$ac_ext
8915cat >>conftest.$ac_ext <<_ACEOF
8916/* end confdefs.h.  */
8917$ac_includes_default
8918long longval () { return (long) (sizeof (unsigned long)); }
8919unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
8920#include <stdio.h>
8921#include <stdlib.h>
8922int
8923main ()
8924{
8925
8926  FILE *f = fopen ("conftest.val", "w");
8927  if (! f)
8928    exit (1);
8929  if (((long) (sizeof (unsigned long))) < 0)
8930    {
8931      long i = longval ();
8932      if (i != ((long) (sizeof (unsigned long))))
8933	exit (1);
8934      fprintf (f, "%ld\n", i);
8935    }
8936  else
8937    {
8938      unsigned long i = ulongval ();
8939      if (i != ((long) (sizeof (unsigned long))))
8940	exit (1);
8941      fprintf (f, "%lu\n", i);
8942    }
8943  exit (ferror (f) || fclose (f) != 0);
8944
8945  ;
8946  return 0;
8947}
8948_ACEOF
8949rm -f conftest$ac_exeext
8950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8951  (eval $ac_link) 2>&5
8952  ac_status=$?
8953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956  (eval $ac_try) 2>&5
8957  ac_status=$?
8958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959  (exit $ac_status); }; }; then
8960  ac_cv_sizeof_unsigned_long=`cat conftest.val`
8961else
8962  echo "$as_me: program exited with status $ac_status" >&5
8963echo "$as_me: failed program was:" >&5
8964sed 's/^/| /' conftest.$ac_ext >&5
8965
8966( exit $ac_status )
8967{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
8968See \`config.log' for more details." >&5
8969echo "$as_me: error: cannot compute sizeof (unsigned long), 77
8970See \`config.log' for more details." >&2;}
8971   { (exit 1); exit 1; }; }
8972fi
8973rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8974fi
8975fi
8976rm -f conftest.val
8977else
8978  ac_cv_sizeof_unsigned_long=0
8979fi
8980fi
8981echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
8982echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
8983cat >>confdefs.h <<_ACEOF
8984#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8985_ACEOF
8986
8987
8988echo "$as_me:$LINENO: checking for long" >&5
8989echo $ECHO_N "checking for long... $ECHO_C" >&6
8990if test "${ac_cv_type_long+set}" = set; then
8991  echo $ECHO_N "(cached) $ECHO_C" >&6
8992else
8993  cat >conftest.$ac_ext <<_ACEOF
8994/* confdefs.h.  */
8995_ACEOF
8996cat confdefs.h >>conftest.$ac_ext
8997cat >>conftest.$ac_ext <<_ACEOF
8998/* end confdefs.h.  */
8999$ac_includes_default
9000int
9001main ()
9002{
9003if ((long *) 0)
9004  return 0;
9005if (sizeof (long))
9006  return 0;
9007  ;
9008  return 0;
9009}
9010_ACEOF
9011rm -f conftest.$ac_objext
9012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9013  (eval $ac_compile) 2>conftest.er1
9014  ac_status=$?
9015  grep -v '^ *+' conftest.er1 >conftest.err
9016  rm -f conftest.er1
9017  cat conftest.err >&5
9018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019  (exit $ac_status); } &&
9020	 { ac_try='test -z "$ac_cxx_werror_flag"
9021			 || test ! -s conftest.err'
9022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023  (eval $ac_try) 2>&5
9024  ac_status=$?
9025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026  (exit $ac_status); }; } &&
9027	 { ac_try='test -s conftest.$ac_objext'
9028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029  (eval $ac_try) 2>&5
9030  ac_status=$?
9031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032  (exit $ac_status); }; }; then
9033  ac_cv_type_long=yes
9034else
9035  echo "$as_me: failed program was:" >&5
9036sed 's/^/| /' conftest.$ac_ext >&5
9037
9038ac_cv_type_long=no
9039fi
9040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9041fi
9042echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9043echo "${ECHO_T}$ac_cv_type_long" >&6
9044
9045echo "$as_me:$LINENO: checking size of long" >&5
9046echo $ECHO_N "checking size of long... $ECHO_C" >&6
9047if test "${ac_cv_sizeof_long+set}" = set; then
9048  echo $ECHO_N "(cached) $ECHO_C" >&6
9049else
9050  if test "$ac_cv_type_long" = yes; then
9051  # The cast to unsigned long works around a bug in the HP C Compiler
9052  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9053  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9054  # This bug is HP SR number 8606223364.
9055  if test "$cross_compiling" = yes; then
9056  # Depending upon the size, compute the lo and hi bounds.
9057cat >conftest.$ac_ext <<_ACEOF
9058/* confdefs.h.  */
9059_ACEOF
9060cat confdefs.h >>conftest.$ac_ext
9061cat >>conftest.$ac_ext <<_ACEOF
9062/* end confdefs.h.  */
9063$ac_includes_default
9064int
9065main ()
9066{
9067static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
9068test_array [0] = 0
9069
9070  ;
9071  return 0;
9072}
9073_ACEOF
9074rm -f conftest.$ac_objext
9075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9076  (eval $ac_compile) 2>conftest.er1
9077  ac_status=$?
9078  grep -v '^ *+' conftest.er1 >conftest.err
9079  rm -f conftest.er1
9080  cat conftest.err >&5
9081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082  (exit $ac_status); } &&
9083	 { ac_try='test -z "$ac_cxx_werror_flag"
9084			 || test ! -s conftest.err'
9085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086  (eval $ac_try) 2>&5
9087  ac_status=$?
9088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089  (exit $ac_status); }; } &&
9090	 { ac_try='test -s conftest.$ac_objext'
9091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092  (eval $ac_try) 2>&5
9093  ac_status=$?
9094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095  (exit $ac_status); }; }; then
9096  ac_lo=0 ac_mid=0
9097  while :; do
9098    cat >conftest.$ac_ext <<_ACEOF
9099/* confdefs.h.  */
9100_ACEOF
9101cat confdefs.h >>conftest.$ac_ext
9102cat >>conftest.$ac_ext <<_ACEOF
9103/* end confdefs.h.  */
9104$ac_includes_default
9105int
9106main ()
9107{
9108static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9109test_array [0] = 0
9110
9111  ;
9112  return 0;
9113}
9114_ACEOF
9115rm -f conftest.$ac_objext
9116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9117  (eval $ac_compile) 2>conftest.er1
9118  ac_status=$?
9119  grep -v '^ *+' conftest.er1 >conftest.err
9120  rm -f conftest.er1
9121  cat conftest.err >&5
9122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123  (exit $ac_status); } &&
9124	 { ac_try='test -z "$ac_cxx_werror_flag"
9125			 || test ! -s conftest.err'
9126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127  (eval $ac_try) 2>&5
9128  ac_status=$?
9129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130  (exit $ac_status); }; } &&
9131	 { ac_try='test -s conftest.$ac_objext'
9132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133  (eval $ac_try) 2>&5
9134  ac_status=$?
9135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136  (exit $ac_status); }; }; then
9137  ac_hi=$ac_mid; break
9138else
9139  echo "$as_me: failed program was:" >&5
9140sed 's/^/| /' conftest.$ac_ext >&5
9141
9142ac_lo=`expr $ac_mid + 1`
9143		    if test $ac_lo -le $ac_mid; then
9144		      ac_lo= ac_hi=
9145		      break
9146		    fi
9147		    ac_mid=`expr 2 '*' $ac_mid + 1`
9148fi
9149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9150  done
9151else
9152  echo "$as_me: failed program was:" >&5
9153sed 's/^/| /' conftest.$ac_ext >&5
9154
9155cat >conftest.$ac_ext <<_ACEOF
9156/* confdefs.h.  */
9157_ACEOF
9158cat confdefs.h >>conftest.$ac_ext
9159cat >>conftest.$ac_ext <<_ACEOF
9160/* end confdefs.h.  */
9161$ac_includes_default
9162int
9163main ()
9164{
9165static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9166test_array [0] = 0
9167
9168  ;
9169  return 0;
9170}
9171_ACEOF
9172rm -f conftest.$ac_objext
9173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9174  (eval $ac_compile) 2>conftest.er1
9175  ac_status=$?
9176  grep -v '^ *+' conftest.er1 >conftest.err
9177  rm -f conftest.er1
9178  cat conftest.err >&5
9179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180  (exit $ac_status); } &&
9181	 { ac_try='test -z "$ac_cxx_werror_flag"
9182			 || test ! -s conftest.err'
9183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184  (eval $ac_try) 2>&5
9185  ac_status=$?
9186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187  (exit $ac_status); }; } &&
9188	 { ac_try='test -s conftest.$ac_objext'
9189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190  (eval $ac_try) 2>&5
9191  ac_status=$?
9192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193  (exit $ac_status); }; }; then
9194  ac_hi=-1 ac_mid=-1
9195  while :; do
9196    cat >conftest.$ac_ext <<_ACEOF
9197/* confdefs.h.  */
9198_ACEOF
9199cat confdefs.h >>conftest.$ac_ext
9200cat >>conftest.$ac_ext <<_ACEOF
9201/* end confdefs.h.  */
9202$ac_includes_default
9203int
9204main ()
9205{
9206static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9207test_array [0] = 0
9208
9209  ;
9210  return 0;
9211}
9212_ACEOF
9213rm -f conftest.$ac_objext
9214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9215  (eval $ac_compile) 2>conftest.er1
9216  ac_status=$?
9217  grep -v '^ *+' conftest.er1 >conftest.err
9218  rm -f conftest.er1
9219  cat conftest.err >&5
9220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221  (exit $ac_status); } &&
9222	 { ac_try='test -z "$ac_cxx_werror_flag"
9223			 || test ! -s conftest.err'
9224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225  (eval $ac_try) 2>&5
9226  ac_status=$?
9227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228  (exit $ac_status); }; } &&
9229	 { ac_try='test -s conftest.$ac_objext'
9230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231  (eval $ac_try) 2>&5
9232  ac_status=$?
9233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234  (exit $ac_status); }; }; then
9235  ac_lo=$ac_mid; break
9236else
9237  echo "$as_me: failed program was:" >&5
9238sed 's/^/| /' conftest.$ac_ext >&5
9239
9240ac_hi=`expr '(' $ac_mid ')' - 1`
9241		       if test $ac_mid -le $ac_hi; then
9242			 ac_lo= ac_hi=
9243			 break
9244		       fi
9245		       ac_mid=`expr 2 '*' $ac_mid`
9246fi
9247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9248  done
9249else
9250  echo "$as_me: failed program was:" >&5
9251sed 's/^/| /' conftest.$ac_ext >&5
9252
9253ac_lo= ac_hi=
9254fi
9255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9256fi
9257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9258# Binary search between lo and hi bounds.
9259while test "x$ac_lo" != "x$ac_hi"; do
9260  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9261  cat >conftest.$ac_ext <<_ACEOF
9262/* confdefs.h.  */
9263_ACEOF
9264cat confdefs.h >>conftest.$ac_ext
9265cat >>conftest.$ac_ext <<_ACEOF
9266/* end confdefs.h.  */
9267$ac_includes_default
9268int
9269main ()
9270{
9271static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9272test_array [0] = 0
9273
9274  ;
9275  return 0;
9276}
9277_ACEOF
9278rm -f conftest.$ac_objext
9279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9280  (eval $ac_compile) 2>conftest.er1
9281  ac_status=$?
9282  grep -v '^ *+' conftest.er1 >conftest.err
9283  rm -f conftest.er1
9284  cat conftest.err >&5
9285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286  (exit $ac_status); } &&
9287	 { ac_try='test -z "$ac_cxx_werror_flag"
9288			 || test ! -s conftest.err'
9289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290  (eval $ac_try) 2>&5
9291  ac_status=$?
9292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293  (exit $ac_status); }; } &&
9294	 { ac_try='test -s conftest.$ac_objext'
9295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296  (eval $ac_try) 2>&5
9297  ac_status=$?
9298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299  (exit $ac_status); }; }; then
9300  ac_hi=$ac_mid
9301else
9302  echo "$as_me: failed program was:" >&5
9303sed 's/^/| /' conftest.$ac_ext >&5
9304
9305ac_lo=`expr '(' $ac_mid ')' + 1`
9306fi
9307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9308done
9309case $ac_lo in
9310?*) ac_cv_sizeof_long=$ac_lo;;
9311'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9312See \`config.log' for more details." >&5
9313echo "$as_me: error: cannot compute sizeof (long), 77
9314See \`config.log' for more details." >&2;}
9315   { (exit 1); exit 1; }; } ;;
9316esac
9317else
9318  if test "$cross_compiling" = yes; then
9319  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9320See \`config.log' for more details." >&5
9321echo "$as_me: error: cannot run test program while cross compiling
9322See \`config.log' for more details." >&2;}
9323   { (exit 1); exit 1; }; }
9324else
9325  cat >conftest.$ac_ext <<_ACEOF
9326/* confdefs.h.  */
9327_ACEOF
9328cat confdefs.h >>conftest.$ac_ext
9329cat >>conftest.$ac_ext <<_ACEOF
9330/* end confdefs.h.  */
9331$ac_includes_default
9332long longval () { return (long) (sizeof (long)); }
9333unsigned long ulongval () { return (long) (sizeof (long)); }
9334#include <stdio.h>
9335#include <stdlib.h>
9336int
9337main ()
9338{
9339
9340  FILE *f = fopen ("conftest.val", "w");
9341  if (! f)
9342    exit (1);
9343  if (((long) (sizeof (long))) < 0)
9344    {
9345      long i = longval ();
9346      if (i != ((long) (sizeof (long))))
9347	exit (1);
9348      fprintf (f, "%ld\n", i);
9349    }
9350  else
9351    {
9352      unsigned long i = ulongval ();
9353      if (i != ((long) (sizeof (long))))
9354	exit (1);
9355      fprintf (f, "%lu\n", i);
9356    }
9357  exit (ferror (f) || fclose (f) != 0);
9358
9359  ;
9360  return 0;
9361}
9362_ACEOF
9363rm -f conftest$ac_exeext
9364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365  (eval $ac_link) 2>&5
9366  ac_status=$?
9367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370  (eval $ac_try) 2>&5
9371  ac_status=$?
9372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373  (exit $ac_status); }; }; then
9374  ac_cv_sizeof_long=`cat conftest.val`
9375else
9376  echo "$as_me: program exited with status $ac_status" >&5
9377echo "$as_me: failed program was:" >&5
9378sed 's/^/| /' conftest.$ac_ext >&5
9379
9380( exit $ac_status )
9381{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9382See \`config.log' for more details." >&5
9383echo "$as_me: error: cannot compute sizeof (long), 77
9384See \`config.log' for more details." >&2;}
9385   { (exit 1); exit 1; }; }
9386fi
9387rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9388fi
9389fi
9390rm -f conftest.val
9391else
9392  ac_cv_sizeof_long=0
9393fi
9394fi
9395echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9396echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9397cat >>confdefs.h <<_ACEOF
9398#define SIZEOF_LONG $ac_cv_sizeof_long
9399_ACEOF
9400
9401
9402echo "$as_me:$LINENO: checking for unsigned long long" >&5
9403echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9404if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9405  echo $ECHO_N "(cached) $ECHO_C" >&6
9406else
9407  cat >conftest.$ac_ext <<_ACEOF
9408/* confdefs.h.  */
9409_ACEOF
9410cat confdefs.h >>conftest.$ac_ext
9411cat >>conftest.$ac_ext <<_ACEOF
9412/* end confdefs.h.  */
9413$ac_includes_default
9414int
9415main ()
9416{
9417if ((unsigned long long *) 0)
9418  return 0;
9419if (sizeof (unsigned long long))
9420  return 0;
9421  ;
9422  return 0;
9423}
9424_ACEOF
9425rm -f conftest.$ac_objext
9426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9427  (eval $ac_compile) 2>conftest.er1
9428  ac_status=$?
9429  grep -v '^ *+' conftest.er1 >conftest.err
9430  rm -f conftest.er1
9431  cat conftest.err >&5
9432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433  (exit $ac_status); } &&
9434	 { ac_try='test -z "$ac_cxx_werror_flag"
9435			 || test ! -s conftest.err'
9436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437  (eval $ac_try) 2>&5
9438  ac_status=$?
9439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440  (exit $ac_status); }; } &&
9441	 { ac_try='test -s conftest.$ac_objext'
9442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443  (eval $ac_try) 2>&5
9444  ac_status=$?
9445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446  (exit $ac_status); }; }; then
9447  ac_cv_type_unsigned_long_long=yes
9448else
9449  echo "$as_me: failed program was:" >&5
9450sed 's/^/| /' conftest.$ac_ext >&5
9451
9452ac_cv_type_unsigned_long_long=no
9453fi
9454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9455fi
9456echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9457echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9458
9459echo "$as_me:$LINENO: checking size of unsigned long long" >&5
9460echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6
9461if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
9462  echo $ECHO_N "(cached) $ECHO_C" >&6
9463else
9464  if test "$ac_cv_type_unsigned_long_long" = yes; then
9465  # The cast to unsigned long works around a bug in the HP C Compiler
9466  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9467  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9468  # This bug is HP SR number 8606223364.
9469  if test "$cross_compiling" = yes; then
9470  # Depending upon the size, compute the lo and hi bounds.
9471cat >conftest.$ac_ext <<_ACEOF
9472/* confdefs.h.  */
9473_ACEOF
9474cat confdefs.h >>conftest.$ac_ext
9475cat >>conftest.$ac_ext <<_ACEOF
9476/* end confdefs.h.  */
9477$ac_includes_default
9478int
9479main ()
9480{
9481static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= 0)];
9482test_array [0] = 0
9483
9484  ;
9485  return 0;
9486}
9487_ACEOF
9488rm -f conftest.$ac_objext
9489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9490  (eval $ac_compile) 2>conftest.er1
9491  ac_status=$?
9492  grep -v '^ *+' conftest.er1 >conftest.err
9493  rm -f conftest.er1
9494  cat conftest.err >&5
9495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496  (exit $ac_status); } &&
9497	 { ac_try='test -z "$ac_cxx_werror_flag"
9498			 || test ! -s conftest.err'
9499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500  (eval $ac_try) 2>&5
9501  ac_status=$?
9502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503  (exit $ac_status); }; } &&
9504	 { ac_try='test -s conftest.$ac_objext'
9505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506  (eval $ac_try) 2>&5
9507  ac_status=$?
9508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509  (exit $ac_status); }; }; then
9510  ac_lo=0 ac_mid=0
9511  while :; do
9512    cat >conftest.$ac_ext <<_ACEOF
9513/* confdefs.h.  */
9514_ACEOF
9515cat confdefs.h >>conftest.$ac_ext
9516cat >>conftest.$ac_ext <<_ACEOF
9517/* end confdefs.h.  */
9518$ac_includes_default
9519int
9520main ()
9521{
9522static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
9523test_array [0] = 0
9524
9525  ;
9526  return 0;
9527}
9528_ACEOF
9529rm -f conftest.$ac_objext
9530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9531  (eval $ac_compile) 2>conftest.er1
9532  ac_status=$?
9533  grep -v '^ *+' conftest.er1 >conftest.err
9534  rm -f conftest.er1
9535  cat conftest.err >&5
9536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537  (exit $ac_status); } &&
9538	 { ac_try='test -z "$ac_cxx_werror_flag"
9539			 || test ! -s conftest.err'
9540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541  (eval $ac_try) 2>&5
9542  ac_status=$?
9543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544  (exit $ac_status); }; } &&
9545	 { ac_try='test -s conftest.$ac_objext'
9546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547  (eval $ac_try) 2>&5
9548  ac_status=$?
9549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550  (exit $ac_status); }; }; then
9551  ac_hi=$ac_mid; break
9552else
9553  echo "$as_me: failed program was:" >&5
9554sed 's/^/| /' conftest.$ac_ext >&5
9555
9556ac_lo=`expr $ac_mid + 1`
9557		    if test $ac_lo -le $ac_mid; then
9558		      ac_lo= ac_hi=
9559		      break
9560		    fi
9561		    ac_mid=`expr 2 '*' $ac_mid + 1`
9562fi
9563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9564  done
9565else
9566  echo "$as_me: failed program was:" >&5
9567sed 's/^/| /' conftest.$ac_ext >&5
9568
9569cat >conftest.$ac_ext <<_ACEOF
9570/* confdefs.h.  */
9571_ACEOF
9572cat confdefs.h >>conftest.$ac_ext
9573cat >>conftest.$ac_ext <<_ACEOF
9574/* end confdefs.h.  */
9575$ac_includes_default
9576int
9577main ()
9578{
9579static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) < 0)];
9580test_array [0] = 0
9581
9582  ;
9583  return 0;
9584}
9585_ACEOF
9586rm -f conftest.$ac_objext
9587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588  (eval $ac_compile) 2>conftest.er1
9589  ac_status=$?
9590  grep -v '^ *+' conftest.er1 >conftest.err
9591  rm -f conftest.er1
9592  cat conftest.err >&5
9593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594  (exit $ac_status); } &&
9595	 { ac_try='test -z "$ac_cxx_werror_flag"
9596			 || test ! -s conftest.err'
9597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598  (eval $ac_try) 2>&5
9599  ac_status=$?
9600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601  (exit $ac_status); }; } &&
9602	 { ac_try='test -s conftest.$ac_objext'
9603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604  (eval $ac_try) 2>&5
9605  ac_status=$?
9606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607  (exit $ac_status); }; }; then
9608  ac_hi=-1 ac_mid=-1
9609  while :; do
9610    cat >conftest.$ac_ext <<_ACEOF
9611/* confdefs.h.  */
9612_ACEOF
9613cat confdefs.h >>conftest.$ac_ext
9614cat >>conftest.$ac_ext <<_ACEOF
9615/* end confdefs.h.  */
9616$ac_includes_default
9617int
9618main ()
9619{
9620static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= $ac_mid)];
9621test_array [0] = 0
9622
9623  ;
9624  return 0;
9625}
9626_ACEOF
9627rm -f conftest.$ac_objext
9628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9629  (eval $ac_compile) 2>conftest.er1
9630  ac_status=$?
9631  grep -v '^ *+' conftest.er1 >conftest.err
9632  rm -f conftest.er1
9633  cat conftest.err >&5
9634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635  (exit $ac_status); } &&
9636	 { ac_try='test -z "$ac_cxx_werror_flag"
9637			 || test ! -s conftest.err'
9638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639  (eval $ac_try) 2>&5
9640  ac_status=$?
9641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642  (exit $ac_status); }; } &&
9643	 { ac_try='test -s conftest.$ac_objext'
9644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645  (eval $ac_try) 2>&5
9646  ac_status=$?
9647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648  (exit $ac_status); }; }; then
9649  ac_lo=$ac_mid; break
9650else
9651  echo "$as_me: failed program was:" >&5
9652sed 's/^/| /' conftest.$ac_ext >&5
9653
9654ac_hi=`expr '(' $ac_mid ')' - 1`
9655		       if test $ac_mid -le $ac_hi; then
9656			 ac_lo= ac_hi=
9657			 break
9658		       fi
9659		       ac_mid=`expr 2 '*' $ac_mid`
9660fi
9661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9662  done
9663else
9664  echo "$as_me: failed program was:" >&5
9665sed 's/^/| /' conftest.$ac_ext >&5
9666
9667ac_lo= ac_hi=
9668fi
9669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9670fi
9671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9672# Binary search between lo and hi bounds.
9673while test "x$ac_lo" != "x$ac_hi"; do
9674  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9675  cat >conftest.$ac_ext <<_ACEOF
9676/* confdefs.h.  */
9677_ACEOF
9678cat confdefs.h >>conftest.$ac_ext
9679cat >>conftest.$ac_ext <<_ACEOF
9680/* end confdefs.h.  */
9681$ac_includes_default
9682int
9683main ()
9684{
9685static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
9686test_array [0] = 0
9687
9688  ;
9689  return 0;
9690}
9691_ACEOF
9692rm -f conftest.$ac_objext
9693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9694  (eval $ac_compile) 2>conftest.er1
9695  ac_status=$?
9696  grep -v '^ *+' conftest.er1 >conftest.err
9697  rm -f conftest.er1
9698  cat conftest.err >&5
9699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700  (exit $ac_status); } &&
9701	 { ac_try='test -z "$ac_cxx_werror_flag"
9702			 || test ! -s conftest.err'
9703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704  (eval $ac_try) 2>&5
9705  ac_status=$?
9706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707  (exit $ac_status); }; } &&
9708	 { ac_try='test -s conftest.$ac_objext'
9709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710  (eval $ac_try) 2>&5
9711  ac_status=$?
9712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713  (exit $ac_status); }; }; then
9714  ac_hi=$ac_mid
9715else
9716  echo "$as_me: failed program was:" >&5
9717sed 's/^/| /' conftest.$ac_ext >&5
9718
9719ac_lo=`expr '(' $ac_mid ')' + 1`
9720fi
9721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9722done
9723case $ac_lo in
9724?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
9725'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
9726See \`config.log' for more details." >&5
9727echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
9728See \`config.log' for more details." >&2;}
9729   { (exit 1); exit 1; }; } ;;
9730esac
9731else
9732  if test "$cross_compiling" = yes; then
9733  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9734See \`config.log' for more details." >&5
9735echo "$as_me: error: cannot run test program while cross compiling
9736See \`config.log' for more details." >&2;}
9737   { (exit 1); exit 1; }; }
9738else
9739  cat >conftest.$ac_ext <<_ACEOF
9740/* confdefs.h.  */
9741_ACEOF
9742cat confdefs.h >>conftest.$ac_ext
9743cat >>conftest.$ac_ext <<_ACEOF
9744/* end confdefs.h.  */
9745$ac_includes_default
9746long longval () { return (long) (sizeof (unsigned long long)); }
9747unsigned long ulongval () { return (long) (sizeof (unsigned long long)); }
9748#include <stdio.h>
9749#include <stdlib.h>
9750int
9751main ()
9752{
9753
9754  FILE *f = fopen ("conftest.val", "w");
9755  if (! f)
9756    exit (1);
9757  if (((long) (sizeof (unsigned long long))) < 0)
9758    {
9759      long i = longval ();
9760      if (i != ((long) (sizeof (unsigned long long))))
9761	exit (1);
9762      fprintf (f, "%ld\n", i);
9763    }
9764  else
9765    {
9766      unsigned long i = ulongval ();
9767      if (i != ((long) (sizeof (unsigned long long))))
9768	exit (1);
9769      fprintf (f, "%lu\n", i);
9770    }
9771  exit (ferror (f) || fclose (f) != 0);
9772
9773  ;
9774  return 0;
9775}
9776_ACEOF
9777rm -f conftest$ac_exeext
9778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9779  (eval $ac_link) 2>&5
9780  ac_status=$?
9781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784  (eval $ac_try) 2>&5
9785  ac_status=$?
9786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787  (exit $ac_status); }; }; then
9788  ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
9789else
9790  echo "$as_me: program exited with status $ac_status" >&5
9791echo "$as_me: failed program was:" >&5
9792sed 's/^/| /' conftest.$ac_ext >&5
9793
9794( exit $ac_status )
9795{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
9796See \`config.log' for more details." >&5
9797echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
9798See \`config.log' for more details." >&2;}
9799   { (exit 1); exit 1; }; }
9800fi
9801rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9802fi
9803fi
9804rm -f conftest.val
9805else
9806  ac_cv_sizeof_unsigned_long_long=0
9807fi
9808fi
9809echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
9810echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6
9811cat >>confdefs.h <<_ACEOF
9812#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9813_ACEOF
9814
9815
9816echo "$as_me:$LINENO: checking for long long" >&5
9817echo $ECHO_N "checking for long long... $ECHO_C" >&6
9818if test "${ac_cv_type_long_long+set}" = set; then
9819  echo $ECHO_N "(cached) $ECHO_C" >&6
9820else
9821  cat >conftest.$ac_ext <<_ACEOF
9822/* confdefs.h.  */
9823_ACEOF
9824cat confdefs.h >>conftest.$ac_ext
9825cat >>conftest.$ac_ext <<_ACEOF
9826/* end confdefs.h.  */
9827$ac_includes_default
9828int
9829main ()
9830{
9831if ((long long *) 0)
9832  return 0;
9833if (sizeof (long long))
9834  return 0;
9835  ;
9836  return 0;
9837}
9838_ACEOF
9839rm -f conftest.$ac_objext
9840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9841  (eval $ac_compile) 2>conftest.er1
9842  ac_status=$?
9843  grep -v '^ *+' conftest.er1 >conftest.err
9844  rm -f conftest.er1
9845  cat conftest.err >&5
9846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847  (exit $ac_status); } &&
9848	 { ac_try='test -z "$ac_cxx_werror_flag"
9849			 || test ! -s conftest.err'
9850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851  (eval $ac_try) 2>&5
9852  ac_status=$?
9853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854  (exit $ac_status); }; } &&
9855	 { ac_try='test -s conftest.$ac_objext'
9856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857  (eval $ac_try) 2>&5
9858  ac_status=$?
9859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860  (exit $ac_status); }; }; then
9861  ac_cv_type_long_long=yes
9862else
9863  echo "$as_me: failed program was:" >&5
9864sed 's/^/| /' conftest.$ac_ext >&5
9865
9866ac_cv_type_long_long=no
9867fi
9868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9869fi
9870echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9871echo "${ECHO_T}$ac_cv_type_long_long" >&6
9872
9873echo "$as_me:$LINENO: checking size of long long" >&5
9874echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9875if test "${ac_cv_sizeof_long_long+set}" = set; then
9876  echo $ECHO_N "(cached) $ECHO_C" >&6
9877else
9878  if test "$ac_cv_type_long_long" = yes; then
9879  # The cast to unsigned long works around a bug in the HP C Compiler
9880  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9881  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9882  # This bug is HP SR number 8606223364.
9883  if test "$cross_compiling" = yes; then
9884  # Depending upon the size, compute the lo and hi bounds.
9885cat >conftest.$ac_ext <<_ACEOF
9886/* confdefs.h.  */
9887_ACEOF
9888cat confdefs.h >>conftest.$ac_ext
9889cat >>conftest.$ac_ext <<_ACEOF
9890/* end confdefs.h.  */
9891$ac_includes_default
9892int
9893main ()
9894{
9895static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9896test_array [0] = 0
9897
9898  ;
9899  return 0;
9900}
9901_ACEOF
9902rm -f conftest.$ac_objext
9903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9904  (eval $ac_compile) 2>conftest.er1
9905  ac_status=$?
9906  grep -v '^ *+' conftest.er1 >conftest.err
9907  rm -f conftest.er1
9908  cat conftest.err >&5
9909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910  (exit $ac_status); } &&
9911	 { ac_try='test -z "$ac_cxx_werror_flag"
9912			 || test ! -s conftest.err'
9913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914  (eval $ac_try) 2>&5
9915  ac_status=$?
9916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917  (exit $ac_status); }; } &&
9918	 { ac_try='test -s conftest.$ac_objext'
9919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920  (eval $ac_try) 2>&5
9921  ac_status=$?
9922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923  (exit $ac_status); }; }; then
9924  ac_lo=0 ac_mid=0
9925  while :; do
9926    cat >conftest.$ac_ext <<_ACEOF
9927/* confdefs.h.  */
9928_ACEOF
9929cat confdefs.h >>conftest.$ac_ext
9930cat >>conftest.$ac_ext <<_ACEOF
9931/* end confdefs.h.  */
9932$ac_includes_default
9933int
9934main ()
9935{
9936static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9937test_array [0] = 0
9938
9939  ;
9940  return 0;
9941}
9942_ACEOF
9943rm -f conftest.$ac_objext
9944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9945  (eval $ac_compile) 2>conftest.er1
9946  ac_status=$?
9947  grep -v '^ *+' conftest.er1 >conftest.err
9948  rm -f conftest.er1
9949  cat conftest.err >&5
9950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951  (exit $ac_status); } &&
9952	 { ac_try='test -z "$ac_cxx_werror_flag"
9953			 || test ! -s conftest.err'
9954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955  (eval $ac_try) 2>&5
9956  ac_status=$?
9957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958  (exit $ac_status); }; } &&
9959	 { ac_try='test -s conftest.$ac_objext'
9960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961  (eval $ac_try) 2>&5
9962  ac_status=$?
9963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964  (exit $ac_status); }; }; then
9965  ac_hi=$ac_mid; break
9966else
9967  echo "$as_me: failed program was:" >&5
9968sed 's/^/| /' conftest.$ac_ext >&5
9969
9970ac_lo=`expr $ac_mid + 1`
9971		    if test $ac_lo -le $ac_mid; then
9972		      ac_lo= ac_hi=
9973		      break
9974		    fi
9975		    ac_mid=`expr 2 '*' $ac_mid + 1`
9976fi
9977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9978  done
9979else
9980  echo "$as_me: failed program was:" >&5
9981sed 's/^/| /' conftest.$ac_ext >&5
9982
9983cat >conftest.$ac_ext <<_ACEOF
9984/* confdefs.h.  */
9985_ACEOF
9986cat confdefs.h >>conftest.$ac_ext
9987cat >>conftest.$ac_ext <<_ACEOF
9988/* end confdefs.h.  */
9989$ac_includes_default
9990int
9991main ()
9992{
9993static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9994test_array [0] = 0
9995
9996  ;
9997  return 0;
9998}
9999_ACEOF
10000rm -f conftest.$ac_objext
10001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10002  (eval $ac_compile) 2>conftest.er1
10003  ac_status=$?
10004  grep -v '^ *+' conftest.er1 >conftest.err
10005  rm -f conftest.er1
10006  cat conftest.err >&5
10007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008  (exit $ac_status); } &&
10009	 { ac_try='test -z "$ac_cxx_werror_flag"
10010			 || test ! -s conftest.err'
10011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012  (eval $ac_try) 2>&5
10013  ac_status=$?
10014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015  (exit $ac_status); }; } &&
10016	 { ac_try='test -s conftest.$ac_objext'
10017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018  (eval $ac_try) 2>&5
10019  ac_status=$?
10020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021  (exit $ac_status); }; }; then
10022  ac_hi=-1 ac_mid=-1
10023  while :; do
10024    cat >conftest.$ac_ext <<_ACEOF
10025/* confdefs.h.  */
10026_ACEOF
10027cat confdefs.h >>conftest.$ac_ext
10028cat >>conftest.$ac_ext <<_ACEOF
10029/* end confdefs.h.  */
10030$ac_includes_default
10031int
10032main ()
10033{
10034static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
10035test_array [0] = 0
10036
10037  ;
10038  return 0;
10039}
10040_ACEOF
10041rm -f conftest.$ac_objext
10042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043  (eval $ac_compile) 2>conftest.er1
10044  ac_status=$?
10045  grep -v '^ *+' conftest.er1 >conftest.err
10046  rm -f conftest.er1
10047  cat conftest.err >&5
10048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049  (exit $ac_status); } &&
10050	 { ac_try='test -z "$ac_cxx_werror_flag"
10051			 || test ! -s conftest.err'
10052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053  (eval $ac_try) 2>&5
10054  ac_status=$?
10055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056  (exit $ac_status); }; } &&
10057	 { ac_try='test -s conftest.$ac_objext'
10058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059  (eval $ac_try) 2>&5
10060  ac_status=$?
10061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062  (exit $ac_status); }; }; then
10063  ac_lo=$ac_mid; break
10064else
10065  echo "$as_me: failed program was:" >&5
10066sed 's/^/| /' conftest.$ac_ext >&5
10067
10068ac_hi=`expr '(' $ac_mid ')' - 1`
10069		       if test $ac_mid -le $ac_hi; then
10070			 ac_lo= ac_hi=
10071			 break
10072		       fi
10073		       ac_mid=`expr 2 '*' $ac_mid`
10074fi
10075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10076  done
10077else
10078  echo "$as_me: failed program was:" >&5
10079sed 's/^/| /' conftest.$ac_ext >&5
10080
10081ac_lo= ac_hi=
10082fi
10083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10084fi
10085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10086# Binary search between lo and hi bounds.
10087while test "x$ac_lo" != "x$ac_hi"; do
10088  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10089  cat >conftest.$ac_ext <<_ACEOF
10090/* confdefs.h.  */
10091_ACEOF
10092cat confdefs.h >>conftest.$ac_ext
10093cat >>conftest.$ac_ext <<_ACEOF
10094/* end confdefs.h.  */
10095$ac_includes_default
10096int
10097main ()
10098{
10099static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
10100test_array [0] = 0
10101
10102  ;
10103  return 0;
10104}
10105_ACEOF
10106rm -f conftest.$ac_objext
10107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10108  (eval $ac_compile) 2>conftest.er1
10109  ac_status=$?
10110  grep -v '^ *+' conftest.er1 >conftest.err
10111  rm -f conftest.er1
10112  cat conftest.err >&5
10113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114  (exit $ac_status); } &&
10115	 { ac_try='test -z "$ac_cxx_werror_flag"
10116			 || test ! -s conftest.err'
10117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118  (eval $ac_try) 2>&5
10119  ac_status=$?
10120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121  (exit $ac_status); }; } &&
10122	 { ac_try='test -s conftest.$ac_objext'
10123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124  (eval $ac_try) 2>&5
10125  ac_status=$?
10126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127  (exit $ac_status); }; }; then
10128  ac_hi=$ac_mid
10129else
10130  echo "$as_me: failed program was:" >&5
10131sed 's/^/| /' conftest.$ac_ext >&5
10132
10133ac_lo=`expr '(' $ac_mid ')' + 1`
10134fi
10135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10136done
10137case $ac_lo in
10138?*) ac_cv_sizeof_long_long=$ac_lo;;
10139'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10140See \`config.log' for more details." >&5
10141echo "$as_me: error: cannot compute sizeof (long long), 77
10142See \`config.log' for more details." >&2;}
10143   { (exit 1); exit 1; }; } ;;
10144esac
10145else
10146  if test "$cross_compiling" = yes; then
10147  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10148See \`config.log' for more details." >&5
10149echo "$as_me: error: cannot run test program while cross compiling
10150See \`config.log' for more details." >&2;}
10151   { (exit 1); exit 1; }; }
10152else
10153  cat >conftest.$ac_ext <<_ACEOF
10154/* confdefs.h.  */
10155_ACEOF
10156cat confdefs.h >>conftest.$ac_ext
10157cat >>conftest.$ac_ext <<_ACEOF
10158/* end confdefs.h.  */
10159$ac_includes_default
10160long longval () { return (long) (sizeof (long long)); }
10161unsigned long ulongval () { return (long) (sizeof (long long)); }
10162#include <stdio.h>
10163#include <stdlib.h>
10164int
10165main ()
10166{
10167
10168  FILE *f = fopen ("conftest.val", "w");
10169  if (! f)
10170    exit (1);
10171  if (((long) (sizeof (long long))) < 0)
10172    {
10173      long i = longval ();
10174      if (i != ((long) (sizeof (long long))))
10175	exit (1);
10176      fprintf (f, "%ld\n", i);
10177    }
10178  else
10179    {
10180      unsigned long i = ulongval ();
10181      if (i != ((long) (sizeof (long long))))
10182	exit (1);
10183      fprintf (f, "%lu\n", i);
10184    }
10185  exit (ferror (f) || fclose (f) != 0);
10186
10187  ;
10188  return 0;
10189}
10190_ACEOF
10191rm -f conftest$ac_exeext
10192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10193  (eval $ac_link) 2>&5
10194  ac_status=$?
10195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198  (eval $ac_try) 2>&5
10199  ac_status=$?
10200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201  (exit $ac_status); }; }; then
10202  ac_cv_sizeof_long_long=`cat conftest.val`
10203else
10204  echo "$as_me: program exited with status $ac_status" >&5
10205echo "$as_me: failed program was:" >&5
10206sed 's/^/| /' conftest.$ac_ext >&5
10207
10208( exit $ac_status )
10209{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10210See \`config.log' for more details." >&5
10211echo "$as_me: error: cannot compute sizeof (long long), 77
10212See \`config.log' for more details." >&2;}
10213   { (exit 1); exit 1; }; }
10214fi
10215rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10216fi
10217fi
10218rm -f conftest.val
10219else
10220  ac_cv_sizeof_long_long=0
10221fi
10222fi
10223echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10224echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10225cat >>confdefs.h <<_ACEOF
10226#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10227_ACEOF
10228
10229
10230
10231echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10232echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10233if test "${ac_cv_c_bigendian+set}" = set; then
10234  echo $ECHO_N "(cached) $ECHO_C" >&6
10235else
10236  # See if sys/param.h defines the BYTE_ORDER macro.
10237cat >conftest.$ac_ext <<_ACEOF
10238/* confdefs.h.  */
10239_ACEOF
10240cat confdefs.h >>conftest.$ac_ext
10241cat >>conftest.$ac_ext <<_ACEOF
10242/* end confdefs.h.  */
10243#include <sys/types.h>
10244#include <sys/param.h>
10245
10246int
10247main ()
10248{
10249#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10250 bogus endian macros
10251#endif
10252
10253  ;
10254  return 0;
10255}
10256_ACEOF
10257rm -f conftest.$ac_objext
10258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259  (eval $ac_compile) 2>conftest.er1
10260  ac_status=$?
10261  grep -v '^ *+' conftest.er1 >conftest.err
10262  rm -f conftest.er1
10263  cat conftest.err >&5
10264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265  (exit $ac_status); } &&
10266	 { ac_try='test -z "$ac_cxx_werror_flag"
10267			 || test ! -s conftest.err'
10268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269  (eval $ac_try) 2>&5
10270  ac_status=$?
10271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272  (exit $ac_status); }; } &&
10273	 { ac_try='test -s conftest.$ac_objext'
10274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275  (eval $ac_try) 2>&5
10276  ac_status=$?
10277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278  (exit $ac_status); }; }; then
10279  # It does; now see whether it defined to BIG_ENDIAN or not.
10280cat >conftest.$ac_ext <<_ACEOF
10281/* confdefs.h.  */
10282_ACEOF
10283cat confdefs.h >>conftest.$ac_ext
10284cat >>conftest.$ac_ext <<_ACEOF
10285/* end confdefs.h.  */
10286#include <sys/types.h>
10287#include <sys/param.h>
10288
10289int
10290main ()
10291{
10292#if BYTE_ORDER != BIG_ENDIAN
10293 not big endian
10294#endif
10295
10296  ;
10297  return 0;
10298}
10299_ACEOF
10300rm -f conftest.$ac_objext
10301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10302  (eval $ac_compile) 2>conftest.er1
10303  ac_status=$?
10304  grep -v '^ *+' conftest.er1 >conftest.err
10305  rm -f conftest.er1
10306  cat conftest.err >&5
10307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308  (exit $ac_status); } &&
10309	 { ac_try='test -z "$ac_cxx_werror_flag"
10310			 || test ! -s conftest.err'
10311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312  (eval $ac_try) 2>&5
10313  ac_status=$?
10314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315  (exit $ac_status); }; } &&
10316	 { ac_try='test -s conftest.$ac_objext'
10317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318  (eval $ac_try) 2>&5
10319  ac_status=$?
10320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321  (exit $ac_status); }; }; then
10322  ac_cv_c_bigendian=yes
10323else
10324  echo "$as_me: failed program was:" >&5
10325sed 's/^/| /' conftest.$ac_ext >&5
10326
10327ac_cv_c_bigendian=no
10328fi
10329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10330else
10331  echo "$as_me: failed program was:" >&5
10332sed 's/^/| /' conftest.$ac_ext >&5
10333
10334# It does not; compile a test program.
10335if test "$cross_compiling" = yes; then
10336  # try to guess the endianness by grepping values into an object file
10337  ac_cv_c_bigendian=unknown
10338  cat >conftest.$ac_ext <<_ACEOF
10339/* confdefs.h.  */
10340_ACEOF
10341cat confdefs.h >>conftest.$ac_ext
10342cat >>conftest.$ac_ext <<_ACEOF
10343/* end confdefs.h.  */
10344short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10345short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10346void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10347short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10348short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10349void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10350int
10351main ()
10352{
10353 _ascii (); _ebcdic ();
10354  ;
10355  return 0;
10356}
10357_ACEOF
10358rm -f conftest.$ac_objext
10359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10360  (eval $ac_compile) 2>conftest.er1
10361  ac_status=$?
10362  grep -v '^ *+' conftest.er1 >conftest.err
10363  rm -f conftest.er1
10364  cat conftest.err >&5
10365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366  (exit $ac_status); } &&
10367	 { ac_try='test -z "$ac_cxx_werror_flag"
10368			 || test ! -s conftest.err'
10369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370  (eval $ac_try) 2>&5
10371  ac_status=$?
10372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373  (exit $ac_status); }; } &&
10374	 { ac_try='test -s conftest.$ac_objext'
10375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376  (eval $ac_try) 2>&5
10377  ac_status=$?
10378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379  (exit $ac_status); }; }; then
10380  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10381  ac_cv_c_bigendian=yes
10382fi
10383if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10384  if test "$ac_cv_c_bigendian" = unknown; then
10385    ac_cv_c_bigendian=no
10386  else
10387    # finding both strings is unlikely to happen, but who knows?
10388    ac_cv_c_bigendian=unknown
10389  fi
10390fi
10391else
10392  echo "$as_me: failed program was:" >&5
10393sed 's/^/| /' conftest.$ac_ext >&5
10394
10395fi
10396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10397else
10398  cat >conftest.$ac_ext <<_ACEOF
10399/* confdefs.h.  */
10400_ACEOF
10401cat confdefs.h >>conftest.$ac_ext
10402cat >>conftest.$ac_ext <<_ACEOF
10403/* end confdefs.h.  */
10404int
10405main ()
10406{
10407  /* Are we little or big endian?  From Harbison&Steele.  */
10408  union
10409  {
10410    long l;
10411    char c[sizeof (long)];
10412  } u;
10413  u.l = 1;
10414  exit (u.c[sizeof (long) - 1] == 1);
10415}
10416_ACEOF
10417rm -f conftest$ac_exeext
10418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10419  (eval $ac_link) 2>&5
10420  ac_status=$?
10421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424  (eval $ac_try) 2>&5
10425  ac_status=$?
10426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427  (exit $ac_status); }; }; then
10428  ac_cv_c_bigendian=no
10429else
10430  echo "$as_me: program exited with status $ac_status" >&5
10431echo "$as_me: failed program was:" >&5
10432sed 's/^/| /' conftest.$ac_ext >&5
10433
10434( exit $ac_status )
10435ac_cv_c_bigendian=yes
10436fi
10437rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10438fi
10439fi
10440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10441fi
10442echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10443echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10444case $ac_cv_c_bigendian in
10445  yes)
10446
10447cat >>confdefs.h <<\_ACEOF
10448#define WORDS_BIGENDIAN 1
10449_ACEOF
10450 ;;
10451  no)
10452     ;;
10453  *)
10454    { { echo "$as_me:$LINENO: error: unknown endianness
10455presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10456echo "$as_me: error: unknown endianness
10457presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10458   { (exit 1); exit 1; }; } ;;
10459esac
10460
10461
10462cat >conftest.$ac_ext <<_ACEOF
10463/* confdefs.h.  */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h.  */
10468#include <fstream>
10469_ACEOF
10470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10471  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10472  ac_status=$?
10473  grep -v '^ *+' conftest.er1 >conftest.err
10474  rm -f conftest.er1
10475  cat conftest.err >&5
10476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477  (exit $ac_status); } >/dev/null; then
10478  if test -s conftest.err; then
10479    ac_cpp_err=$ac_cxx_preproc_warn_flag
10480    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10481  else
10482    ac_cpp_err=
10483  fi
10484else
10485  ac_cpp_err=yes
10486fi
10487if test -z "$ac_cpp_err"; then
10488  cat >>confdefs.h <<\_ACEOF
10489#define HAVE_FSTREAM 1
10490_ACEOF
10491
10492else
10493  echo "$as_me: failed program was:" >&5
10494sed 's/^/| /' conftest.$ac_ext >&5
10495
10496
10497fi
10498rm -f conftest.err conftest.$ac_ext
10499cat >conftest.$ac_ext <<_ACEOF
10500/* confdefs.h.  */
10501_ACEOF
10502cat confdefs.h >>conftest.$ac_ext
10503cat >>conftest.$ac_ext <<_ACEOF
10504/* end confdefs.h.  */
10505#include <iostream>
10506_ACEOF
10507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10508  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10509  ac_status=$?
10510  grep -v '^ *+' conftest.er1 >conftest.err
10511  rm -f conftest.er1
10512  cat conftest.err >&5
10513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514  (exit $ac_status); } >/dev/null; then
10515  if test -s conftest.err; then
10516    ac_cpp_err=$ac_cxx_preproc_warn_flag
10517    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10518  else
10519    ac_cpp_err=
10520  fi
10521else
10522  ac_cpp_err=yes
10523fi
10524if test -z "$ac_cpp_err"; then
10525  cat >>confdefs.h <<\_ACEOF
10526#define HAVE_IOSTREAM 1
10527_ACEOF
10528
10529else
10530  echo "$as_me: failed program was:" >&5
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533
10534fi
10535rm -f conftest.err conftest.$ac_ext
10536cat >conftest.$ac_ext <<_ACEOF
10537/* confdefs.h.  */
10538_ACEOF
10539cat confdefs.h >>conftest.$ac_ext
10540cat >>conftest.$ac_ext <<_ACEOF
10541/* end confdefs.h.  */
10542#include <iomanip>
10543_ACEOF
10544if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10545  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10546  ac_status=$?
10547  grep -v '^ *+' conftest.er1 >conftest.err
10548  rm -f conftest.er1
10549  cat conftest.err >&5
10550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551  (exit $ac_status); } >/dev/null; then
10552  if test -s conftest.err; then
10553    ac_cpp_err=$ac_cxx_preproc_warn_flag
10554    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10555  else
10556    ac_cpp_err=
10557  fi
10558else
10559  ac_cpp_err=yes
10560fi
10561if test -z "$ac_cpp_err"; then
10562  cat >>confdefs.h <<\_ACEOF
10563#define HAVE_IOMANIP 1
10564_ACEOF
10565
10566else
10567  echo "$as_me: failed program was:" >&5
10568sed 's/^/| /' conftest.$ac_ext >&5
10569
10570
10571fi
10572rm -f conftest.err conftest.$ac_ext
10573cat >conftest.$ac_ext <<_ACEOF
10574/* confdefs.h.  */
10575_ACEOF
10576cat confdefs.h >>conftest.$ac_ext
10577cat >>conftest.$ac_ext <<_ACEOF
10578/* end confdefs.h.  */
10579#include <sstream>
10580_ACEOF
10581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10582  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10583  ac_status=$?
10584  grep -v '^ *+' conftest.er1 >conftest.err
10585  rm -f conftest.er1
10586  cat conftest.err >&5
10587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588  (exit $ac_status); } >/dev/null; then
10589  if test -s conftest.err; then
10590    ac_cpp_err=$ac_cxx_preproc_warn_flag
10591    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10592  else
10593    ac_cpp_err=
10594  fi
10595else
10596  ac_cpp_err=yes
10597fi
10598if test -z "$ac_cpp_err"; then
10599  cat >>confdefs.h <<\_ACEOF
10600#define HAVE_SSTREAM 1
10601_ACEOF
10602
10603else
10604  echo "$as_me: failed program was:" >&5
10605sed 's/^/| /' conftest.$ac_ext >&5
10606
10607
10608fi
10609rm -f conftest.err conftest.$ac_ext
10610cat >conftest.$ac_ext <<_ACEOF
10611/* confdefs.h.  */
10612_ACEOF
10613cat confdefs.h >>conftest.$ac_ext
10614cat >>conftest.$ac_ext <<_ACEOF
10615/* end confdefs.h.  */
10616#include <strstream>
10617_ACEOF
10618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10619  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10620  ac_status=$?
10621  grep -v '^ *+' conftest.er1 >conftest.err
10622  rm -f conftest.er1
10623  cat conftest.err >&5
10624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625  (exit $ac_status); } >/dev/null; then
10626  if test -s conftest.err; then
10627    ac_cpp_err=$ac_cxx_preproc_warn_flag
10628    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10629  else
10630    ac_cpp_err=
10631  fi
10632else
10633  ac_cpp_err=yes
10634fi
10635if test -z "$ac_cpp_err"; then
10636  cat >>confdefs.h <<\_ACEOF
10637#define HAVE_STRSTREAM 1
10638_ACEOF
10639
10640else
10641  echo "$as_me: failed program was:" >&5
10642sed 's/^/| /' conftest.$ac_ext >&5
10643
10644
10645fi
10646rm -f conftest.err conftest.$ac_ext
10647
10648
10649echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
10650echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
10651if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
10652  echo $ECHO_N "(cached) $ECHO_C" >&6
10653else
10654  ac_check_lib_save_LIBS=$LIBS
10655LIBS="-lnsl  $LIBS"
10656cat >conftest.$ac_ext <<_ACEOF
10657/* confdefs.h.  */
10658_ACEOF
10659cat confdefs.h >>conftest.$ac_ext
10660cat >>conftest.$ac_ext <<_ACEOF
10661/* end confdefs.h.  */
10662
10663/* Override any gcc2 internal prototype to avoid an error.  */
10664#ifdef __cplusplus
10665extern "C"
10666#endif
10667/* We use char because int might match the return type of a gcc2
10668   builtin and then its argument prototype would still apply.  */
10669char inet_ntoa ();
10670int
10671main ()
10672{
10673inet_ntoa ();
10674  ;
10675  return 0;
10676}
10677_ACEOF
10678rm -f conftest.$ac_objext conftest$ac_exeext
10679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10680  (eval $ac_link) 2>conftest.er1
10681  ac_status=$?
10682  grep -v '^ *+' conftest.er1 >conftest.err
10683  rm -f conftest.er1
10684  cat conftest.err >&5
10685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686  (exit $ac_status); } &&
10687	 { ac_try='test -z "$ac_cxx_werror_flag"
10688			 || test ! -s conftest.err'
10689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690  (eval $ac_try) 2>&5
10691  ac_status=$?
10692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693  (exit $ac_status); }; } &&
10694	 { ac_try='test -s conftest$ac_exeext'
10695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696  (eval $ac_try) 2>&5
10697  ac_status=$?
10698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699  (exit $ac_status); }; }; then
10700  ac_cv_lib_nsl_inet_ntoa=yes
10701else
10702  echo "$as_me: failed program was:" >&5
10703sed 's/^/| /' conftest.$ac_ext >&5
10704
10705ac_cv_lib_nsl_inet_ntoa=no
10706fi
10707rm -f conftest.err conftest.$ac_objext \
10708      conftest$ac_exeext conftest.$ac_ext
10709LIBS=$ac_check_lib_save_LIBS
10710fi
10711echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
10712echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
10713if test $ac_cv_lib_nsl_inet_ntoa = yes; then
10714  cat >>confdefs.h <<_ACEOF
10715#define HAVE_LIBNSL 1
10716_ACEOF
10717
10718  LIBS="-lnsl $LIBS"
10719
10720fi
10721
10722
10723echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
10724echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
10725if test "${ac_cv_lib_socket_socket+set}" = set; then
10726  echo $ECHO_N "(cached) $ECHO_C" >&6
10727else
10728  ac_check_lib_save_LIBS=$LIBS
10729LIBS="-lsocket  $LIBS"
10730cat >conftest.$ac_ext <<_ACEOF
10731/* confdefs.h.  */
10732_ACEOF
10733cat confdefs.h >>conftest.$ac_ext
10734cat >>conftest.$ac_ext <<_ACEOF
10735/* end confdefs.h.  */
10736
10737/* Override any gcc2 internal prototype to avoid an error.  */
10738#ifdef __cplusplus
10739extern "C"
10740#endif
10741/* We use char because int might match the return type of a gcc2
10742   builtin and then its argument prototype would still apply.  */
10743char socket ();
10744int
10745main ()
10746{
10747socket ();
10748  ;
10749  return 0;
10750}
10751_ACEOF
10752rm -f conftest.$ac_objext conftest$ac_exeext
10753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10754  (eval $ac_link) 2>conftest.er1
10755  ac_status=$?
10756  grep -v '^ *+' conftest.er1 >conftest.err
10757  rm -f conftest.er1
10758  cat conftest.err >&5
10759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760  (exit $ac_status); } &&
10761	 { ac_try='test -z "$ac_cxx_werror_flag"
10762			 || test ! -s conftest.err'
10763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764  (eval $ac_try) 2>&5
10765  ac_status=$?
10766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767  (exit $ac_status); }; } &&
10768	 { ac_try='test -s conftest$ac_exeext'
10769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770  (eval $ac_try) 2>&5
10771  ac_status=$?
10772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773  (exit $ac_status); }; }; then
10774  ac_cv_lib_socket_socket=yes
10775else
10776  echo "$as_me: failed program was:" >&5
10777sed 's/^/| /' conftest.$ac_ext >&5
10778
10779ac_cv_lib_socket_socket=no
10780fi
10781rm -f conftest.err conftest.$ac_objext \
10782      conftest$ac_exeext conftest.$ac_ext
10783LIBS=$ac_check_lib_save_LIBS
10784fi
10785echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
10786echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
10787if test $ac_cv_lib_socket_socket = yes; then
10788  cat >>confdefs.h <<_ACEOF
10789#define HAVE_LIBSOCKET 1
10790_ACEOF
10791
10792  LIBS="-lsocket $LIBS"
10793
10794fi
10795
10796
10797echo "$as_me:$LINENO: checking for xdr_float in -lrpc" >&5
10798echo $ECHO_N "checking for xdr_float in -lrpc... $ECHO_C" >&6
10799if test "${ac_cv_lib_rpc_xdr_float+set}" = set; then
10800  echo $ECHO_N "(cached) $ECHO_C" >&6
10801else
10802  ac_check_lib_save_LIBS=$LIBS
10803LIBS="-lrpc  $LIBS"
10804cat >conftest.$ac_ext <<_ACEOF
10805/* confdefs.h.  */
10806_ACEOF
10807cat confdefs.h >>conftest.$ac_ext
10808cat >>conftest.$ac_ext <<_ACEOF
10809/* end confdefs.h.  */
10810
10811/* Override any gcc2 internal prototype to avoid an error.  */
10812#ifdef __cplusplus
10813extern "C"
10814#endif
10815/* We use char because int might match the return type of a gcc2
10816   builtin and then its argument prototype would still apply.  */
10817char xdr_float ();
10818int
10819main ()
10820{
10821xdr_float ();
10822  ;
10823  return 0;
10824}
10825_ACEOF
10826rm -f conftest.$ac_objext conftest$ac_exeext
10827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10828  (eval $ac_link) 2>conftest.er1
10829  ac_status=$?
10830  grep -v '^ *+' conftest.er1 >conftest.err
10831  rm -f conftest.er1
10832  cat conftest.err >&5
10833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834  (exit $ac_status); } &&
10835	 { ac_try='test -z "$ac_cxx_werror_flag"
10836			 || test ! -s conftest.err'
10837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838  (eval $ac_try) 2>&5
10839  ac_status=$?
10840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841  (exit $ac_status); }; } &&
10842	 { ac_try='test -s conftest$ac_exeext'
10843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844  (eval $ac_try) 2>&5
10845  ac_status=$?
10846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847  (exit $ac_status); }; }; then
10848  ac_cv_lib_rpc_xdr_float=yes
10849else
10850  echo "$as_me: failed program was:" >&5
10851sed 's/^/| /' conftest.$ac_ext >&5
10852
10853ac_cv_lib_rpc_xdr_float=no
10854fi
10855rm -f conftest.err conftest.$ac_objext \
10856      conftest$ac_exeext conftest.$ac_ext
10857LIBS=$ac_check_lib_save_LIBS
10858fi
10859echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_xdr_float" >&5
10860echo "${ECHO_T}$ac_cv_lib_rpc_xdr_float" >&6
10861if test $ac_cv_lib_rpc_xdr_float = yes; then
10862  cat >>confdefs.h <<_ACEOF
10863#define HAVE_LIBRPC 1
10864_ACEOF
10865
10866  LIBS="-lrpc $LIBS"
10867
10868fi
10869
10870
10871echo "$as_me:$LINENO: checking for xdr_float in -lrpcsvc" >&5
10872echo $ECHO_N "checking for xdr_float in -lrpcsvc... $ECHO_C" >&6
10873if test "${ac_cv_lib_rpcsvc_xdr_float+set}" = set; then
10874  echo $ECHO_N "(cached) $ECHO_C" >&6
10875else
10876  ac_check_lib_save_LIBS=$LIBS
10877LIBS="-lrpcsvc  $LIBS"
10878cat >conftest.$ac_ext <<_ACEOF
10879/* confdefs.h.  */
10880_ACEOF
10881cat confdefs.h >>conftest.$ac_ext
10882cat >>conftest.$ac_ext <<_ACEOF
10883/* end confdefs.h.  */
10884
10885/* Override any gcc2 internal prototype to avoid an error.  */
10886#ifdef __cplusplus
10887extern "C"
10888#endif
10889/* We use char because int might match the return type of a gcc2
10890   builtin and then its argument prototype would still apply.  */
10891char xdr_float ();
10892int
10893main ()
10894{
10895xdr_float ();
10896  ;
10897  return 0;
10898}
10899_ACEOF
10900rm -f conftest.$ac_objext conftest$ac_exeext
10901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902  (eval $ac_link) 2>conftest.er1
10903  ac_status=$?
10904  grep -v '^ *+' conftest.er1 >conftest.err
10905  rm -f conftest.er1
10906  cat conftest.err >&5
10907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908  (exit $ac_status); } &&
10909	 { ac_try='test -z "$ac_cxx_werror_flag"
10910			 || test ! -s conftest.err'
10911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912  (eval $ac_try) 2>&5
10913  ac_status=$?
10914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915  (exit $ac_status); }; } &&
10916	 { ac_try='test -s conftest$ac_exeext'
10917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918  (eval $ac_try) 2>&5
10919  ac_status=$?
10920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921  (exit $ac_status); }; }; then
10922  ac_cv_lib_rpcsvc_xdr_float=yes
10923else
10924  echo "$as_me: failed program was:" >&5
10925sed 's/^/| /' conftest.$ac_ext >&5
10926
10927ac_cv_lib_rpcsvc_xdr_float=no
10928fi
10929rm -f conftest.err conftest.$ac_objext \
10930      conftest$ac_exeext conftest.$ac_ext
10931LIBS=$ac_check_lib_save_LIBS
10932fi
10933echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsvc_xdr_float" >&5
10934echo "${ECHO_T}$ac_cv_lib_rpcsvc_xdr_float" >&6
10935if test $ac_cv_lib_rpcsvc_xdr_float = yes; then
10936  cat >>confdefs.h <<_ACEOF
10937#define HAVE_LIBRPCSVC 1
10938_ACEOF
10939
10940  LIBS="-lrpcsvc $LIBS"
10941
10942fi
10943
10944
10945
10946
10947echo "$as_me:$LINENO: checking for \$XRTHOME/lib/libxrt3d.a" >&5
10948echo $ECHO_N "checking for \$XRTHOME/lib/libxrt3d.a... $ECHO_C" >&6
10949if test -f ${XRTHOME}/lib/libxrt3d.a ; then
10950  have_xrt3d="xrt3d"
10951  echo "$as_me:$LINENO: result: yes; have_xrt3d = $have_xrt3d" >&5
10952echo "${ECHO_T}yes; have_xrt3d = $have_xrt3d" >&6
10953else
10954  have_xrt3d="noxrt3d"
10955  echo "$as_me:$LINENO: result: no; have_xrt3d = $have_xrt3d" >&5
10956echo "${ECHO_T}no; have_xrt3d = $have_xrt3d" >&6
10957fi
10958
10959
10960echo "$as_me:$LINENO: checking for \$XRTHOME/lib/libxrtgear.a" >&5
10961echo $ECHO_N "checking for \$XRTHOME/lib/libxrtgear.a... $ECHO_C" >&6
10962if test -f ${XRTHOME}/lib/libxrtgear.a ; then
10963  have_xrtgear="xrtgear"
10964  echo "$as_me:$LINENO: result: yes; have_xrtgear = $have_xrtgear" >&5
10965echo "${ECHO_T}yes; have_xrtgear = $have_xrtgear" >&6
10966else
10967  have_xrtgear="noxrtgear"
10968  echo "$as_me:$LINENO: result: no; have_xrtgear = $have_xrtgear" >&5
10969echo "${ECHO_T}no; have_xrtgear = $have_xrtgear" >&6
10970fi
10971
10972
10973echo "$as_me:$LINENO: checking for \$XRTHOME/lib/libxrtfield.a" >&5
10974echo $ECHO_N "checking for \$XRTHOME/lib/libxrtfield.a... $ECHO_C" >&6
10975if test -f ${XRTHOME}/lib/libxrtfield.a ; then
10976  have_xrtfield="xrtfield"
10977  echo "$as_me:$LINENO: result: yes; have_xrtfield = $have_xrtfield" >&5
10978echo "${ECHO_T}yes; have_xrtfield = $have_xrtfield" >&6
10979else
10980  have_xrtfield="noxrtfield"
10981  echo "$as_me:$LINENO: result: no; have_xrtfield = $have_xrtfield" >&5
10982echo "${ECHO_T}no; have_xrtfield = $have_xrtfield" >&6
10983fi
10984
10985
10986echo "$as_me:$LINENO: checking for \$XRTHOME/lib/libxrttable.a" >&5
10987echo $ECHO_N "checking for \$XRTHOME/lib/libxrttable.a... $ECHO_C" >&6
10988if test -f ${XRTHOME}/lib/libxrttable.a ; then
10989  have_xrttable="xrttable"
10990  echo "$as_me:$LINENO: result: yes; have_xrttable = $have_xrttable" >&5
10991echo "${ECHO_T}yes; have_xrttable = $have_xrttable" >&6
10992else
10993  have_xrttable="noxrttable"
10994  echo "$as_me:$LINENO: result: no; have_xrttable = $have_xrttable" >&5
10995echo "${ECHO_T}no; have_xrttable = $have_xrttable" >&6
10996fi
10997
10998
10999echo "$as_me:$LINENO: checking for \$XRTHOME/lib/libxrtmvc.a" >&5
11000echo $ECHO_N "checking for \$XRTHOME/lib/libxrtmvc.a... $ECHO_C" >&6
11001if test -f ${XRTHOME}/lib/libxrtmvc.a ; then
11002  have_xrtmvc="xrtmvc"
11003  echo "$as_me:$LINENO: result: yes; have_xrtmvc = $have_xrtmvc" >&5
11004echo "${ECHO_T}yes; have_xrtmvc = $have_xrtmvc" >&6
11005else
11006  have_xrtmvc="noxrtmvc"
11007  echo "$as_me:$LINENO: result: no; have_xrtmvc = $have_xrtmvc" >&5
11008echo "${ECHO_T}no; have_xrtmvc = $have_xrtmvc" >&6
11009fi
11010
11011
11012echo "$as_me:$LINENO: checking for \$XRTHOME/lib/libxrtm.a" >&5
11013echo $ECHO_N "checking for \$XRTHOME/lib/libxrtm.a... $ECHO_C" >&6
11014if test -f ${XRTHOME}/lib/libxrtm.a ; then
11015  have_xrtgraph="xrtgraph"
11016  echo "$as_me:$LINENO: result: yes; have_xrtgraph = $have_xrtgraph" >&5
11017echo "${ECHO_T}yes; have_xrtgraph = $have_xrtgraph" >&6
11018else
11019  have_xrtgraph="noxrtgraph"
11020  echo "$as_me:$LINENO: result: no; have_xrtgraph = $have_xrtgraph" >&5
11021echo "${ECHO_T}no; have_xrtgraph = $have_xrtgraph" >&6
11022fi
11023
11024
11025echo "$as_me:$LINENO: checking for XRT PDS" >&5
11026echo $ECHO_N "checking for XRT PDS... $ECHO_C" >&6
11027if test "$have_xrtmvc" = "xrtmvc" -a "$have_xrttable" = "xrttable" -a \
11028        "$have_xrtfield" = "xrtfield" -a "$have_xrtgear" = "xrtgear" -a \
11029        "$have_xrt3d" = "xrt3d" -a "$have_xrtgraph" = "xrtgraph" ; then
11030  have_xrtpds="xrtpds"
11031  echo "$as_me:$LINENO: result: yes; have_xrtpds = $have_xrtpds" >&5
11032echo "${ECHO_T}yes; have_xrtpds = $have_xrtpds" >&6
11033else
11034  have_xrtpds="noxrtpds"
11035  echo "$as_me:$LINENO: result: no; have_xrtpds = $have_xrtpds" >&5
11036echo "${ECHO_T}no; have_xrtpds = $have_xrtpds" >&6
11037fi
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11059echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11060if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11061  echo $ECHO_N "(cached) $ECHO_C" >&6
11062else
11063  ac_check_lib_save_LIBS=$LIBS
11064LIBS="-lfl  $LIBS"
11065cat >conftest.$ac_ext <<_ACEOF
11066/* confdefs.h.  */
11067_ACEOF
11068cat confdefs.h >>conftest.$ac_ext
11069cat >>conftest.$ac_ext <<_ACEOF
11070/* end confdefs.h.  */
11071
11072/* Override any gcc2 internal prototype to avoid an error.  */
11073#ifdef __cplusplus
11074extern "C"
11075#endif
11076/* We use char because int might match the return type of a gcc2
11077   builtin and then its argument prototype would still apply.  */
11078char yywrap ();
11079int
11080main ()
11081{
11082yywrap ();
11083  ;
11084  return 0;
11085}
11086_ACEOF
11087rm -f conftest.$ac_objext conftest$ac_exeext
11088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11089  (eval $ac_link) 2>conftest.er1
11090  ac_status=$?
11091  grep -v '^ *+' conftest.er1 >conftest.err
11092  rm -f conftest.er1
11093  cat conftest.err >&5
11094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095  (exit $ac_status); } &&
11096	 { ac_try='test -z "$ac_cxx_werror_flag"
11097			 || test ! -s conftest.err'
11098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099  (eval $ac_try) 2>&5
11100  ac_status=$?
11101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102  (exit $ac_status); }; } &&
11103	 { ac_try='test -s conftest$ac_exeext'
11104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105  (eval $ac_try) 2>&5
11106  ac_status=$?
11107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108  (exit $ac_status); }; }; then
11109  ac_cv_lib_fl_yywrap=yes
11110else
11111  echo "$as_me: failed program was:" >&5
11112sed 's/^/| /' conftest.$ac_ext >&5
11113
11114ac_cv_lib_fl_yywrap=no
11115fi
11116rm -f conftest.err conftest.$ac_objext \
11117      conftest$ac_exeext conftest.$ac_ext
11118LIBS=$ac_check_lib_save_LIBS
11119fi
11120echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11121echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11122if test $ac_cv_lib_fl_yywrap = yes; then
11123  flexdirguess=system
11124else
11125  flexguess=`which flex`
11126              flexdirguess=`echo $flexguess | awk -F/ '{for (i = 2; i < NF-1; i++) {printf "/%s",$i;} printf "\n";}'`
11127fi
11128
11129
11130  flexdir=$flexdirguess
11131
11132# Check whether --with-flexdir or --without-flexdir was given.
11133if test "${with_flexdir+set}" = set; then
11134  withval="$with_flexdir"
11135  flexdir=$withval; /usr/bin/printf "%s set to %s\n" flexdir $withval
11136else
11137  /usr/bin/printf "%s set to %s (default)\n" flexdir $flexdirguess
11138
11139fi;
11140  if test -z "$dwm_prereq_max_name_len" ; then
11141    dwm_prereq_max_name_len=`echo flexdir | wc -c | cut -f1`
11142    dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11143  else
11144    if test `echo flexdir | wc -c | cut -f1` -ge $dwm_prereq_max_name_len ; then
11145      dwm_prereq_max_name_len=`echo flexdir | wc -c | cut -f1`
11146      dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11147    fi
11148  fi
11149  dwm_prereq_names="$dwm_prereq_names flexdir"
11150  dwm_prereq_vals="$dwm_prereq_vals $flexdir"
11151
11152
11153case $flexdirguess in
11154  system)
11155    FLEXINC=""
11156    FLEXLIB="-lfl"
11157    ;;
11158  *)
11159    FLEXINC="-I ${flexdir}/include"
11160    FLEXLIB="-L ${flexdir}/lib -lfl"
11161    ;;
11162esac
11163
11164
11165
11166
11167
11168  XINCDIR=$x_includes
11169
11170# Check whether --with-XINCDIR or --without-XINCDIR was given.
11171if test "${with_XINCDIR+set}" = set; then
11172  withval="$with_XINCDIR"
11173  XINCDIR=$withval; /usr/bin/printf "%s set to %s\n" XINCDIR $withval
11174else
11175  /usr/bin/printf "%s set to %s (default)\n" XINCDIR $x_includes
11176
11177fi;
11178  if test -z "$dwm_prereq_max_name_len" ; then
11179    dwm_prereq_max_name_len=`echo XINCDIR | wc -c | cut -f1`
11180    dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11181  else
11182    if test `echo XINCDIR | wc -c | cut -f1` -ge $dwm_prereq_max_name_len ; then
11183      dwm_prereq_max_name_len=`echo XINCDIR | wc -c | cut -f1`
11184      dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11185    fi
11186  fi
11187  dwm_prereq_names="$dwm_prereq_names XINCDIR"
11188  dwm_prereq_vals="$dwm_prereq_vals $XINCDIR"
11189
11190
11191  XLIBDIR=$x_libraries
11192
11193# Check whether --with-XLIBDIR or --without-XLIBDIR was given.
11194if test "${with_XLIBDIR+set}" = set; then
11195  withval="$with_XLIBDIR"
11196  XLIBDIR=$withval; /usr/bin/printf "%s set to %s\n" XLIBDIR $withval
11197else
11198  /usr/bin/printf "%s set to %s (default)\n" XLIBDIR $x_libraries
11199
11200fi;
11201  if test -z "$dwm_prereq_max_name_len" ; then
11202    dwm_prereq_max_name_len=`echo XLIBDIR | wc -c | cut -f1`
11203    dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11204  else
11205    if test `echo XLIBDIR | wc -c | cut -f1` -ge $dwm_prereq_max_name_len ; then
11206      dwm_prereq_max_name_len=`echo XLIBDIR | wc -c | cut -f1`
11207      dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11208    fi
11209  fi
11210  dwm_prereq_names="$dwm_prereq_names XLIBDIR"
11211  dwm_prereq_vals="$dwm_prereq_vals $XLIBDIR"
11212
11213
11214  MOTIFINCDIR=/usr/include
11215
11216# Check whether --with-MOTIFINCDIR or --without-MOTIFINCDIR was given.
11217if test "${with_MOTIFINCDIR+set}" = set; then
11218  withval="$with_MOTIFINCDIR"
11219  MOTIFINCDIR=$withval; /usr/bin/printf "%s set to %s\n" MOTIFINCDIR $withval
11220else
11221  /usr/bin/printf "%s set to %s (default)\n" MOTIFINCDIR /usr/include
11222
11223fi;
11224  if test -z "$dwm_prereq_max_name_len" ; then
11225    dwm_prereq_max_name_len=`echo MOTIFINCDIR | wc -c | cut -f1`
11226    dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11227  else
11228    if test `echo MOTIFINCDIR | wc -c | cut -f1` -ge $dwm_prereq_max_name_len ; then
11229      dwm_prereq_max_name_len=`echo MOTIFINCDIR | wc -c | cut -f1`
11230      dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11231    fi
11232  fi
11233  dwm_prereq_names="$dwm_prereq_names MOTIFINCDIR"
11234  dwm_prereq_vals="$dwm_prereq_vals $MOTIFINCDIR"
11235
11236
11237  MOTIFLIBDIR=/usr/lib
11238
11239# Check whether --with-MOTIFLIBDIR or --without-MOTIFLIBDIR was given.
11240if test "${with_MOTIFLIBDIR+set}" = set; then
11241  withval="$with_MOTIFLIBDIR"
11242  MOTIFLIBDIR=$withval; /usr/bin/printf "%s set to %s\n" MOTIFLIBDIR $withval
11243else
11244  /usr/bin/printf "%s set to %s (default)\n" MOTIFLIBDIR /usr/lib
11245
11246fi;
11247  if test -z "$dwm_prereq_max_name_len" ; then
11248    dwm_prereq_max_name_len=`echo MOTIFLIBDIR | wc -c | cut -f1`
11249    dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11250  else
11251    if test `echo MOTIFLIBDIR | wc -c | cut -f1` -ge $dwm_prereq_max_name_len ; then
11252      dwm_prereq_max_name_len=`echo MOTIFLIBDIR | wc -c | cut -f1`
11253      dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11254    fi
11255  fi
11256  dwm_prereq_names="$dwm_prereq_names MOTIFLIBDIR"
11257  dwm_prereq_vals="$dwm_prereq_vals $MOTIFLIBDIR"
11258
11259
11260  artspptop=`pwd`
11261
11262# Check whether --with-artspptop or --without-artspptop was given.
11263if test "${with_artspptop+set}" = set; then
11264  withval="$with_artspptop"
11265  artspptop=$withval; /usr/bin/printf "%s set to %s\n" artspptop $withval
11266else
11267  /usr/bin/printf "%s set to %s (default)\n" artspptop `pwd`
11268
11269fi;
11270  if test -z "$dwm_prereq_max_name_len" ; then
11271    dwm_prereq_max_name_len=`echo artspptop | wc -c | cut -f1`
11272    dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11273  else
11274    if test `echo artspptop | wc -c | cut -f1` -ge $dwm_prereq_max_name_len ; then
11275      dwm_prereq_max_name_len=`echo artspptop | wc -c | cut -f1`
11276      dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11277    fi
11278  fi
11279  dwm_prereq_names="$dwm_prereq_names artspptop"
11280  dwm_prereq_vals="$dwm_prereq_vals $artspptop"
11281
11282
11283  docurl=/caida/powertools/arts
11284
11285# Check whether --with-docurl or --without-docurl was given.
11286if test "${with_docurl+set}" = set; then
11287  withval="$with_docurl"
11288  docurl=$withval; /usr/bin/printf "%s set to %s\n" docurl $withval
11289else
11290  /usr/bin/printf "%s set to %s (default)\n" docurl /caida/powertools/arts
11291
11292fi;
11293  if test -z "$dwm_prereq_max_name_len" ; then
11294    dwm_prereq_max_name_len=`echo docurl | wc -c | cut -f1`
11295    dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11296  else
11297    if test `echo docurl | wc -c | cut -f1` -ge $dwm_prereq_max_name_len ; then
11298      dwm_prereq_max_name_len=`echo docurl | wc -c | cut -f1`
11299      dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11300    fi
11301  fi
11302  dwm_prereq_names="$dwm_prereq_names docurl"
11303  dwm_prereq_vals="$dwm_prereq_vals $docurl"
11304
11305
11306
11307
11308  case includedir in
11309    sbindir)
11310      if test "$includedir" = '${exec_prefix}/sbin'; then
11311        includedir=$prefix/include
11312      fi
11313      ;;
11314    datadir)
11315      if test "$includedir" = '${prefix}/share'; then
11316        includedir=$prefix/include
11317      fi
11318      ;;
11319    bindir)
11320      if test "$includedir" = '${exec_prefix}/bin'; then
11321        includedir=$prefix/include
11322      fi
11323      ;;
11324    libdir)
11325      if test "$includedir" = '${exec_prefix}/lib'; then
11326        includedir=$prefix/include
11327      fi
11328      ;;
11329    libexecdir)
11330      if test "$includedir" = '${exec_prefix}/libexec'; then
11331        includedir=$prefix/include
11332      fi
11333      ;;
11334    sysconfdir)
11335      if test "$includedir" = '${prefix}/etc'; then
11336        includedir=$prefix/include
11337      fi
11338      ;;
11339    sharedstatedir)
11340      if test "$includedir" = '${prefix}/com'; then
11341        includedir=$prefix/include
11342      fi
11343      ;;
11344    localstatedir)
11345      if test "$includedir" = '${prefix}/var'; then
11346        includedir=$prefix/include
11347      fi
11348      ;;
11349    infodir)
11350      if test "$includedir" = '${prefix}/info'; then
11351        includedir=$prefix/include
11352      fi
11353      ;;
11354    mandir)
11355      if test "$includedir" = '${prefix}/man'; then
11356        includedir=$prefix/include
11357      fi
11358      ;;
11359    srcdir)
11360      ;;
11361    includedir)
11362      if test "$includedir" = '${prefix}/include'; then
11363        includedir=$prefix/include
11364      fi
11365      ;;
11366    *)
11367      ;;
11368  esac
11369  if test -z "$dwm_install_max_name_len" ; then
11370    dwm_install_max_name_len=`echo includedir | wc -c | cut -f1`
11371    dwm_install_max_name_len=`expr $dwm_install_max_name_len`
11372  else
11373    if test `echo includedir | wc -c` -ge $dwm_install_max_name_len ; then
11374      dwm_install_max_name_len=`echo includedir | wc -c | cut -f1`
11375      dwm_install_max_name_len=`expr $dwm_install_max_name_len`
11376    fi
11377  fi
11378  dwm_preset_path_names="$dwm_preset_path_names includedir"
11379  dwm_preset_path_values="$dwm_preset_path_values $includedir"
11380
11381
11382  case libdir in
11383    sbindir)
11384      if test "$libdir" = '${exec_prefix}/sbin'; then
11385        libdir=$prefix/lib
11386      fi
11387      ;;
11388    datadir)
11389      if test "$libdir" = '${prefix}/share'; then
11390        libdir=$prefix/lib
11391      fi
11392      ;;
11393    bindir)
11394      if test "$libdir" = '${exec_prefix}/bin'; then
11395        libdir=$prefix/lib
11396      fi
11397      ;;
11398    libdir)
11399      if test "$libdir" = '${exec_prefix}/lib'; then
11400        libdir=$prefix/lib
11401      fi
11402      ;;
11403    libexecdir)
11404      if test "$libdir" = '${exec_prefix}/libexec'; then
11405        libdir=$prefix/lib
11406      fi
11407      ;;
11408    sysconfdir)
11409      if test "$libdir" = '${prefix}/etc'; then
11410        libdir=$prefix/lib
11411      fi
11412      ;;
11413    sharedstatedir)
11414      if test "$libdir" = '${prefix}/com'; then
11415        libdir=$prefix/lib
11416      fi
11417      ;;
11418    localstatedir)
11419      if test "$libdir" = '${prefix}/var'; then
11420        libdir=$prefix/lib
11421      fi
11422      ;;
11423    infodir)
11424      if test "$libdir" = '${prefix}/info'; then
11425        libdir=$prefix/lib
11426      fi
11427      ;;
11428    mandir)
11429      if test "$libdir" = '${prefix}/man'; then
11430        libdir=$prefix/lib
11431      fi
11432      ;;
11433    srcdir)
11434      ;;
11435    includedir)
11436      if test "$libdir" = '${prefix}/include'; then
11437        libdir=$prefix/lib
11438      fi
11439      ;;
11440    *)
11441      ;;
11442  esac
11443  if test -z "$dwm_install_max_name_len" ; then
11444    dwm_install_max_name_len=`echo libdir | wc -c | cut -f1`
11445    dwm_install_max_name_len=`expr $dwm_install_max_name_len`
11446  else
11447    if test `echo libdir | wc -c` -ge $dwm_install_max_name_len ; then
11448      dwm_install_max_name_len=`echo libdir | wc -c | cut -f1`
11449      dwm_install_max_name_len=`expr $dwm_install_max_name_len`
11450    fi
11451  fi
11452  dwm_preset_path_names="$dwm_preset_path_names libdir"
11453  dwm_preset_path_values="$dwm_preset_path_values $libdir"
11454
11455
11456  case bindir in
11457    sbindir)
11458      if test "$bindir" = '${exec_prefix}/sbin'; then
11459        bindir=$prefix/bin
11460      fi
11461      ;;
11462    datadir)
11463      if test "$bindir" = '${prefix}/share'; then
11464        bindir=$prefix/bin
11465      fi
11466      ;;
11467    bindir)
11468      if test "$bindir" = '${exec_prefix}/bin'; then
11469        bindir=$prefix/bin
11470      fi
11471      ;;
11472    libdir)
11473      if test "$bindir" = '${exec_prefix}/lib'; then
11474        bindir=$prefix/bin
11475      fi
11476      ;;
11477    libexecdir)
11478      if test "$bindir" = '${exec_prefix}/libexec'; then
11479        bindir=$prefix/bin
11480      fi
11481      ;;
11482    sysconfdir)
11483      if test "$bindir" = '${prefix}/etc'; then
11484        bindir=$prefix/bin
11485      fi
11486      ;;
11487    sharedstatedir)
11488      if test "$bindir" = '${prefix}/com'; then
11489        bindir=$prefix/bin
11490      fi
11491      ;;
11492    localstatedir)
11493      if test "$bindir" = '${prefix}/var'; then
11494        bindir=$prefix/bin
11495      fi
11496      ;;
11497    infodir)
11498      if test "$bindir" = '${prefix}/info'; then
11499        bindir=$prefix/bin
11500      fi
11501      ;;
11502    mandir)
11503      if test "$bindir" = '${prefix}/man'; then
11504        bindir=$prefix/bin
11505      fi
11506      ;;
11507    srcdir)
11508      ;;
11509    includedir)
11510      if test "$bindir" = '${prefix}/include'; then
11511        bindir=$prefix/bin
11512      fi
11513      ;;
11514    *)
11515      ;;
11516  esac
11517  if test -z "$dwm_install_max_name_len" ; then
11518    dwm_install_max_name_len=`echo bindir | wc -c | cut -f1`
11519    dwm_install_max_name_len=`expr $dwm_install_max_name_len`
11520  else
11521    if test `echo bindir | wc -c` -ge $dwm_install_max_name_len ; then
11522      dwm_install_max_name_len=`echo bindir | wc -c | cut -f1`
11523      dwm_install_max_name_len=`expr $dwm_install_max_name_len`
11524    fi
11525  fi
11526  dwm_preset_path_names="$dwm_preset_path_names bindir"
11527  dwm_preset_path_values="$dwm_preset_path_values $bindir"
11528
11529
11530  case mandir in
11531    sbindir)
11532      if test "$mandir" = '${exec_prefix}/sbin'; then
11533        mandir=$prefix/man
11534      fi
11535      ;;
11536    datadir)
11537      if test "$mandir" = '${prefix}/share'; then
11538        mandir=$prefix/man
11539      fi
11540      ;;
11541    bindir)
11542      if test "$mandir" = '${exec_prefix}/bin'; then
11543        mandir=$prefix/man
11544      fi
11545      ;;
11546    libdir)
11547      if test "$mandir" = '${exec_prefix}/lib'; then
11548        mandir=$prefix/man
11549      fi
11550      ;;
11551    libexecdir)
11552      if test "$mandir" = '${exec_prefix}/libexec'; then
11553        mandir=$prefix/man
11554      fi
11555      ;;
11556    sysconfdir)
11557      if test "$mandir" = '${prefix}/etc'; then
11558        mandir=$prefix/man
11559      fi
11560      ;;
11561    sharedstatedir)
11562      if test "$mandir" = '${prefix}/com'; then
11563        mandir=$prefix/man
11564      fi
11565      ;;
11566    localstatedir)
11567      if test "$mandir" = '${prefix}/var'; then
11568        mandir=$prefix/man
11569      fi
11570      ;;
11571    infodir)
11572      if test "$mandir" = '${prefix}/info'; then
11573        mandir=$prefix/man
11574      fi
11575      ;;
11576    mandir)
11577      if test "$mandir" = '${prefix}/man'; then
11578        mandir=$prefix/man
11579      fi
11580      ;;
11581    srcdir)
11582      ;;
11583    includedir)
11584      if test "$mandir" = '${prefix}/include'; then
11585        mandir=$prefix/man
11586      fi
11587      ;;
11588    *)
11589      ;;
11590  esac
11591  if test -z "$dwm_install_max_name_len" ; then
11592    dwm_install_max_name_len=`echo mandir | wc -c | cut -f1`
11593    dwm_install_max_name_len=`expr $dwm_install_max_name_len`
11594  else
11595    if test `echo mandir | wc -c` -ge $dwm_install_max_name_len ; then
11596      dwm_install_max_name_len=`echo mandir | wc -c | cut -f1`
11597      dwm_install_max_name_len=`expr $dwm_install_max_name_len`
11598    fi
11599  fi
11600  dwm_preset_path_names="$dwm_preset_path_names mandir"
11601  dwm_preset_path_values="$dwm_preset_path_values $mandir"
11602
11603
11604
11605  # Check whether --enable-debug or --disable-debug was given.
11606if test "${enable_debug+set}" = set; then
11607  enableval="$enable_debug"
11608   debug=$enableval
11609else
11610   debug=yes
11611fi;
11612
11613  case $debug in
11614    yes)
11615      echo "debug enabled"
11616      ;;
11617    no)
11618      echo "debug disabled"
11619      ;;
11620  esac
11621
11622case $debug in
11623  no)
11624    CXXFLAGS="${CXXFLAGS} -DNDEBUG"
11625    ;;
11626  yes)
11627    ;;
11628esac
11629
11630OSNAME=`echo ${host_cpu}-${host_os} | sed 's/\//\_/g'`
11631
11632
11633echo "OSNAME set to $OSNAME"
11634
11635case $host_os in
11636  bsdi*)
11637    TAR="tar"
11638    ;;
11639  freebsd2*)
11640
11641  echo "$as_me:$LINENO: checking if xdr_destroy macro should pass XDR pointer" >&5
11642echo $ECHO_N "checking if xdr_destroy macro should pass XDR pointer... $ECHO_C" >&6
11643  cat >conftest.$ac_ext <<_ACEOF
11644/* confdefs.h.  */
11645_ACEOF
11646cat confdefs.h >>conftest.$ac_ext
11647cat >>conftest.$ac_ext <<_ACEOF
11648/* end confdefs.h.  */
11649#include <sys/types.h> #include <rpc/rpc.h> #include <string>
11650int
11651main ()
11652{
11653
11654      int foo()
11655      {
11656        XDR  *xdrs;
11657
11658        xdr_destroy(xdrs);
11659        return(0);
11660      }
11661
11662  ;
11663  return 0;
11664}
11665_ACEOF
11666rm -f conftest.$ac_objext
11667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11668  (eval $ac_compile) 2>conftest.er1
11669  ac_status=$?
11670  grep -v '^ *+' conftest.er1 >conftest.err
11671  rm -f conftest.er1
11672  cat conftest.err >&5
11673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674  (exit $ac_status); } &&
11675	 { ac_try='test -z "$ac_cxx_werror_flag"
11676			 || test ! -s conftest.err'
11677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678  (eval $ac_try) 2>&5
11679  ac_status=$?
11680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681  (exit $ac_status); }; } &&
11682	 { ac_try='test -s conftest.$ac_objext'
11683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684  (eval $ac_try) 2>&5
11685  ac_status=$?
11686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687  (exit $ac_status); }; }; then
11688   echo "$as_me:$LINENO: result: yes" >&5
11689echo "${ECHO_T}yes" >&6
11690else
11691  echo "$as_me: failed program was:" >&5
11692sed 's/^/| /' conftest.$ac_ext >&5
11693
11694 cat >>confdefs.h <<\_ACEOF
11695#define XDR_DESTROY_MACRO_DONT_PASS_POINTER 1
11696_ACEOF
11697
11698      echo "$as_me:$LINENO: result: no" >&5
11699echo "${ECHO_T}no" >&6
11700
11701
11702fi
11703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11704
11705    TAR="/usr/bin/tar -P"
11706    ;;
11707  freebsd3*)
11708    TAR="/usr/bin/tar -P"
11709    ;;
11710  linux*)
11711    TAR="/bin/tar -P"
11712    ;;
11713  solaris*)
11714
11715  MOTIFINCDIR=/usr/dt/include
11716
11717# Check whether --with-MOTIFINCDIR or --without-MOTIFINCDIR was given.
11718if test "${with_MOTIFINCDIR+set}" = set; then
11719  withval="$with_MOTIFINCDIR"
11720  MOTIFINCDIR=$withval; /usr/bin/printf "%s set to %s\n" MOTIFINCDIR $withval
11721else
11722  /usr/bin/printf "%s set to %s (default)\n" MOTIFINCDIR /usr/dt/include
11723
11724fi;
11725  if test -z "$dwm_prereq_max_name_len" ; then
11726    dwm_prereq_max_name_len=`echo MOTIFINCDIR | wc -c | cut -f1`
11727    dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11728  else
11729    if test `echo MOTIFINCDIR | wc -c | cut -f1` -ge $dwm_prereq_max_name_len ; then
11730      dwm_prereq_max_name_len=`echo MOTIFINCDIR | wc -c | cut -f1`
11731      dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11732    fi
11733  fi
11734  dwm_prereq_names="$dwm_prereq_names MOTIFINCDIR"
11735  dwm_prereq_vals="$dwm_prereq_vals $MOTIFINCDIR"
11736
11737
11738  MOTIFLIBDIR=/usr/dt/lib
11739
11740# Check whether --with-MOTIFLIBDIR or --without-MOTIFLIBDIR was given.
11741if test "${with_MOTIFLIBDIR+set}" = set; then
11742  withval="$with_MOTIFLIBDIR"
11743  MOTIFLIBDIR=$withval; /usr/bin/printf "%s set to %s\n" MOTIFLIBDIR $withval
11744else
11745  /usr/bin/printf "%s set to %s (default)\n" MOTIFLIBDIR /usr/dt/lib
11746
11747fi;
11748  if test -z "$dwm_prereq_max_name_len" ; then
11749    dwm_prereq_max_name_len=`echo MOTIFLIBDIR | wc -c | cut -f1`
11750    dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11751  else
11752    if test `echo MOTIFLIBDIR | wc -c | cut -f1` -ge $dwm_prereq_max_name_len ; then
11753      dwm_prereq_max_name_len=`echo MOTIFLIBDIR | wc -c | cut -f1`
11754      dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11755    fi
11756  fi
11757  dwm_prereq_names="$dwm_prereq_names MOTIFLIBDIR"
11758  dwm_prereq_vals="$dwm_prereq_vals $MOTIFLIBDIR"
11759
11760    X_EXTRA_LIBS="-lICE -lSM"
11761    TAR="/usr/bin/tar"
11762    ;;
11763  sunos*)
11764
11765  MOTIFINCDIR=/usr/dt/include
11766
11767# Check whether --with-MOTIFINCDIR or --without-MOTIFINCDIR was given.
11768if test "${with_MOTIFINCDIR+set}" = set; then
11769  withval="$with_MOTIFINCDIR"
11770  MOTIFINCDIR=$withval; /usr/bin/printf "%s set to %s\n" MOTIFINCDIR $withval
11771else
11772  /usr/bin/printf "%s set to %s (default)\n" MOTIFINCDIR /usr/dt/include
11773
11774fi;
11775  if test -z "$dwm_prereq_max_name_len" ; then
11776    dwm_prereq_max_name_len=`echo MOTIFINCDIR | wc -c | cut -f1`
11777    dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11778  else
11779    if test `echo MOTIFINCDIR | wc -c | cut -f1` -ge $dwm_prereq_max_name_len ; then
11780      dwm_prereq_max_name_len=`echo MOTIFINCDIR | wc -c | cut -f1`
11781      dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11782    fi
11783  fi
11784  dwm_prereq_names="$dwm_prereq_names MOTIFINCDIR"
11785  dwm_prereq_vals="$dwm_prereq_vals $MOTIFINCDIR"
11786
11787
11788  MOTIFLIBDIR=/usr/dt/lib
11789
11790# Check whether --with-MOTIFLIBDIR or --without-MOTIFLIBDIR was given.
11791if test "${with_MOTIFLIBDIR+set}" = set; then
11792  withval="$with_MOTIFLIBDIR"
11793  MOTIFLIBDIR=$withval; /usr/bin/printf "%s set to %s\n" MOTIFLIBDIR $withval
11794else
11795  /usr/bin/printf "%s set to %s (default)\n" MOTIFLIBDIR /usr/dt/lib
11796
11797fi;
11798  if test -z "$dwm_prereq_max_name_len" ; then
11799    dwm_prereq_max_name_len=`echo MOTIFLIBDIR | wc -c | cut -f1`
11800    dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11801  else
11802    if test `echo MOTIFLIBDIR | wc -c | cut -f1` -ge $dwm_prereq_max_name_len ; then
11803      dwm_prereq_max_name_len=`echo MOTIFLIBDIR | wc -c | cut -f1`
11804      dwm_prereq_max_name_len=`expr $dwm_prereq_max_name_len`
11805    fi
11806  fi
11807  dwm_prereq_names="$dwm_prereq_names MOTIFLIBDIR"
11808  dwm_prereq_vals="$dwm_prereq_vals $MOTIFLIBDIR"
11809
11810    X_EXTRA_LIBS="-lICE -lSM"
11811    TAR="/usr/bin/tar"
11812    ;;
11813  *)
11814    TAR="tar"
11815    ;;
11816esac
11817
11818
11819
11820
11821  PKG_VERSION=`echo '$Name: arts++-1-1-a13 $' | sed 's/\$Name\:[ ]*//g' | sed 's/[ $]//g'`
11822  if test "$PKG_VERSION" = "" ; then
11823    PKG_VERSION=arts++-1-1-a12
11824  fi
11825  echo "PKG_VERSION set to $PKG_VERSION"
11826
11827
11828
11829
11830  C_R_A=`echo '0:0:0' | sed 's/\$Name\:[ ]*//g' | sed 's/[ $]//g'`
11831  if test "$C_R_A" = "" ; then
11832    C_R_A=0:0:0
11833  fi
11834  echo "C_R_A set to $C_R_A"
11835
11836
11837
11838
11839/bin/echo ""
11840/bin/echo "Prereq paths:"
11841dwm_name_index=0
11842for dwm_prereq_name in $dwm_prereq_names ; do
11843  dwm_val_index=0
11844  for dwm_prereq_value in $dwm_prereq_vals ; do
11845    if test "$dwm_name_index" = "$dwm_val_index"; then
11846      /usr/bin/printf "    %${dwm_prereq_max_name_len}s:  %s\n" $dwm_prereq_name $dwm_prereq_value
11847    fi
11848    dwm_val_index=`expr $dwm_val_index + 1`
11849  done
11850  dwm_name_index=`expr $dwm_name_index + 1`
11851done
11852/bin/echo ""
11853
11854
11855
11856
11857/bin/echo ""
11858/bin/echo "Install paths: "
11859dwm_name_index=0
11860for dwm_install_name in $dwm_install_names ; do
11861  dwm_val_index=0
11862  for dwm_install_value in $dwm_install_vals ; do
11863    if test "$dwm_name_index" = "$dwm_val_index"; then
11864      /usr/bin/printf "    %${dwm_install_max_name_len}s:  %s\n" $dwm_install_name $dwm_install_value
11865    fi
11866    dwm_val_index=`expr $dwm_val_index + 1`
11867  done
11868  dwm_name_index=`expr $dwm_name_index + 1`
11869done
11870dwm_name_index=0
11871for dwm_install_name in $dwm_preset_path_names ; do
11872  dwm_val_index=0
11873  for dwm_install_value in $dwm_preset_path_values ; do
11874    if test "$dwm_name_index" = "$dwm_val_index"; then
11875      /usr/bin/printf "    %${dwm_install_max_name_len}s:  %s\n" $dwm_install_name $dwm_install_value
11876    fi
11877    dwm_val_index=`expr $dwm_val_index + 1`
11878  done
11879  dwm_name_index=`expr $dwm_name_index + 1`
11880done
11881
11882/bin/echo ""
11883
11884
11885
11886                                                                                                                                                                                                                                                                    ac_config_files="$ac_config_files Makefile classes/src/Makefile classes/include/Makefile doc/Makefile doc/libArts/Makefile doc/installHtml.sh doc/libArts/installHtml.sh apps/artsagg/Makefile apps/artsases/Makefile apps/artsasagg/Makefile apps/artsdump/Makefile apps/artsintfms/Makefile apps/artsintfmagg/Makefile apps/artsnets/Makefile apps/artsnexthops/Makefile apps/artsnexthopagg/Makefile apps/artsnetagg/Makefile apps/artsportagg/Makefile apps/artsportmagg/Makefile apps/artsportms/Makefile apps/artsports/Makefile apps/artsprotoagg/Makefile apps/artsprotos/Makefile apps/artstoc/Makefile apps/artstos/Makefile apps/artstrunc/Makefile"
11887
11888cat >confcache <<\_ACEOF
11889# This file is a shell script that caches the results of configure
11890# tests run on this system so they can be shared between configure
11891# scripts and configure runs, see configure's option --config-cache.
11892# It is not useful on other systems.  If it contains results you don't
11893# want to keep, you may remove or edit it.
11894#
11895# config.status only pays attention to the cache file if you give it
11896# the --recheck option to rerun configure.
11897#
11898# `ac_cv_env_foo' variables (set or unset) will be overridden when
11899# loading this file, other *unset* `ac_cv_foo' will be assigned the
11900# following values.
11901
11902_ACEOF
11903
11904# The following way of writing the cache mishandles newlines in values,
11905# but we know of no workaround that is simple, portable, and efficient.
11906# So, don't put newlines in cache variables' values.
11907# Ultrix sh set writes to stderr and can't be redirected directly,
11908# and sets the high bit in the cache file unless we assign to the vars.
11909{
11910  (set) 2>&1 |
11911    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11912    *ac_space=\ *)
11913      # `set' does not quote correctly, so add quotes (double-quote
11914      # substitution turns \\\\ into \\, and sed turns \\ into \).
11915      sed -n \
11916	"s/'/'\\\\''/g;
11917	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11918      ;;
11919    *)
11920      # `set' quotes correctly as required by POSIX, so do not add quotes.
11921      sed -n \
11922	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11923      ;;
11924    esac;
11925} |
11926  sed '
11927     t clear
11928     : clear
11929     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11930     t end
11931     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11932     : end' >>confcache
11933if diff $cache_file confcache >/dev/null 2>&1; then :; else
11934  if test -w $cache_file; then
11935    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11936    cat confcache >$cache_file
11937  else
11938    echo "not updating unwritable cache $cache_file"
11939  fi
11940fi
11941rm -f confcache
11942
11943test "x$prefix" = xNONE && prefix=$ac_default_prefix
11944# Let make expand exec_prefix.
11945test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11946
11947# VPATH may cause trouble with some makes, so we remove $(srcdir),
11948# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11949# trailing colons and then remove the whole line if VPATH becomes empty
11950# (actually we leave an empty line to preserve line numbers).
11951if test "x$srcdir" = x.; then
11952  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
11953s/:*\$(srcdir):*/:/;
11954s/:*\${srcdir}:*/:/;
11955s/:*@srcdir@:*/:/;
11956s/^\([^=]*=[	 ]*\):*/\1/;
11957s/:*$//;
11958s/^[^=]*=[	 ]*$//;
11959}'
11960fi
11961
11962DEFS=-DHAVE_CONFIG_H
11963
11964ac_libobjs=
11965ac_ltlibobjs=
11966for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11967  # 1. Remove the extension, and $U if already installed.
11968  ac_i=`echo "$ac_i" |
11969	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11970  # 2. Add them.
11971  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11972  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11973done
11974LIBOBJS=$ac_libobjs
11975
11976LTLIBOBJS=$ac_ltlibobjs
11977
11978
11979
11980: ${CONFIG_STATUS=./config.status}
11981ac_clean_files_save=$ac_clean_files
11982ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11983{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11984echo "$as_me: creating $CONFIG_STATUS" >&6;}
11985cat >$CONFIG_STATUS <<_ACEOF
11986#! $SHELL
11987# Generated by $as_me.
11988# Run this file to recreate the current configuration.
11989# Compiler output produced by configure, useful for debugging
11990# configure, is in config.log if it exists.
11991
11992debug=false
11993ac_cs_recheck=false
11994ac_cs_silent=false
11995SHELL=\${CONFIG_SHELL-$SHELL}
11996_ACEOF
11997
11998cat >>$CONFIG_STATUS <<\_ACEOF
11999## --------------------- ##
12000## M4sh Initialization.  ##
12001## --------------------- ##
12002
12003# Be Bourne compatible
12004if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12005  emulate sh
12006  NULLCMD=:
12007  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12008  # is contrary to our usage.  Disable this feature.
12009  alias -g '${1+"$@"}'='"$@"'
12010elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12011  set -o posix
12012fi
12013DUALCASE=1; export DUALCASE # for MKS sh
12014
12015# Support unset when possible.
12016if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12017  as_unset=unset
12018else
12019  as_unset=false
12020fi
12021
12022
12023# Work around bugs in pre-3.0 UWIN ksh.
12024$as_unset ENV MAIL MAILPATH
12025PS1='$ '
12026PS2='> '
12027PS4='+ '
12028
12029# NLS nuisances.
12030for as_var in \
12031  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12032  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12033  LC_TELEPHONE LC_TIME
12034do
12035  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12036    eval $as_var=C; export $as_var
12037  else
12038    $as_unset $as_var
12039  fi
12040done
12041
12042# Required to use basename.
12043if expr a : '\(a\)' >/dev/null 2>&1; then
12044  as_expr=expr
12045else
12046  as_expr=false
12047fi
12048
12049if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12050  as_basename=basename
12051else
12052  as_basename=false
12053fi
12054
12055
12056# Name of the executable.
12057as_me=`$as_basename "$0" ||
12058$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12059	 X"$0" : 'X\(//\)$' \| \
12060	 X"$0" : 'X\(/\)$' \| \
12061	 .     : '\(.\)' 2>/dev/null ||
12062echo X/"$0" |
12063    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12064  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
12065  	  /^X\/\(\/\).*/{ s//\1/; q; }
12066  	  s/.*/./; q'`
12067
12068
12069# PATH needs CR, and LINENO needs CR and PATH.
12070# Avoid depending upon Character Ranges.
12071as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12072as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12073as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12074as_cr_digits='0123456789'
12075as_cr_alnum=$as_cr_Letters$as_cr_digits
12076
12077# The user is always right.
12078if test "${PATH_SEPARATOR+set}" != set; then
12079  echo "#! /bin/sh" >conf$$.sh
12080  echo  "exit 0"   >>conf$$.sh
12081  chmod +x conf$$.sh
12082  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12083    PATH_SEPARATOR=';'
12084  else
12085    PATH_SEPARATOR=:
12086  fi
12087  rm -f conf$$.sh
12088fi
12089
12090
12091  as_lineno_1=$LINENO
12092  as_lineno_2=$LINENO
12093  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12094  test "x$as_lineno_1" != "x$as_lineno_2" &&
12095  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12096  # Find who we are.  Look in the path if we contain no path at all
12097  # relative or not.
12098  case $0 in
12099    *[\\/]* ) as_myself=$0 ;;
12100    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101for as_dir in $PATH
12102do
12103  IFS=$as_save_IFS
12104  test -z "$as_dir" && as_dir=.
12105  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12106done
12107
12108       ;;
12109  esac
12110  # We did not find ourselves, most probably we were run as `sh COMMAND'
12111  # in which case we are not to be found in the path.
12112  if test "x$as_myself" = x; then
12113    as_myself=$0
12114  fi
12115  if test ! -f "$as_myself"; then
12116    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12117echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12118   { (exit 1); exit 1; }; }
12119  fi
12120  case $CONFIG_SHELL in
12121  '')
12122    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12124do
12125  IFS=$as_save_IFS
12126  test -z "$as_dir" && as_dir=.
12127  for as_base in sh bash ksh sh5; do
12128	 case $as_dir in
12129	 /*)
12130	   if ("$as_dir/$as_base" -c '
12131  as_lineno_1=$LINENO
12132  as_lineno_2=$LINENO
12133  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12134  test "x$as_lineno_1" != "x$as_lineno_2" &&
12135  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12136	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12137	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12138	     CONFIG_SHELL=$as_dir/$as_base
12139	     export CONFIG_SHELL
12140	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12141	   fi;;
12142	 esac
12143       done
12144done
12145;;
12146  esac
12147
12148  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12149  # uniformly replaced by the line number.  The first 'sed' inserts a
12150  # line-number line before each line; the second 'sed' does the real
12151  # work.  The second script uses 'N' to pair each line-number line
12152  # with the numbered line, and appends trailing '-' during
12153  # substitution so that $LINENO is not a special case at line end.
12154  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12155  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12156  sed '=' <$as_myself |
12157    sed '
12158      N
12159      s,$,-,
12160      : loop
12161      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12162      t loop
12163      s,-$,,
12164      s,^['$as_cr_digits']*\n,,
12165    ' >$as_me.lineno &&
12166  chmod +x $as_me.lineno ||
12167    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12168echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12169   { (exit 1); exit 1; }; }
12170
12171  # Don't try to exec as it changes $[0], causing all sort of problems
12172  # (the dirname of $[0] is not the place where we might find the
12173  # original and so on.  Autoconf is especially sensible to this).
12174  . ./$as_me.lineno
12175  # Exit status is that of the last command.
12176  exit
12177}
12178
12179
12180case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12181  *c*,-n*) ECHO_N= ECHO_C='
12182' ECHO_T='	' ;;
12183  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12184  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12185esac
12186
12187if expr a : '\(a\)' >/dev/null 2>&1; then
12188  as_expr=expr
12189else
12190  as_expr=false
12191fi
12192
12193rm -f conf$$ conf$$.exe conf$$.file
12194echo >conf$$.file
12195if ln -s conf$$.file conf$$ 2>/dev/null; then
12196  # We could just check for DJGPP; but this test a) works b) is more generic
12197  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12198  if test -f conf$$.exe; then
12199    # Don't use ln at all; we don't have any links
12200    as_ln_s='cp -p'
12201  else
12202    as_ln_s='ln -s'
12203  fi
12204elif ln conf$$.file conf$$ 2>/dev/null; then
12205  as_ln_s=ln
12206else
12207  as_ln_s='cp -p'
12208fi
12209rm -f conf$$ conf$$.exe conf$$.file
12210
12211if mkdir -p . 2>/dev/null; then
12212  as_mkdir_p=:
12213else
12214  test -d ./-p && rmdir ./-p
12215  as_mkdir_p=false
12216fi
12217
12218as_executable_p="test -f"
12219
12220# Sed expression to map a string onto a valid CPP name.
12221as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12222
12223# Sed expression to map a string onto a valid variable name.
12224as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12225
12226
12227# IFS
12228# We need space, tab and new line, in precisely that order.
12229as_nl='
12230'
12231IFS=" 	$as_nl"
12232
12233# CDPATH.
12234$as_unset CDPATH
12235
12236exec 6>&1
12237
12238# Open the log real soon, to keep \$[0] and so on meaningful, and to
12239# report actual input values of CONFIG_FILES etc. instead of their
12240# values after options handling.  Logging --version etc. is OK.
12241exec 5>>config.log
12242{
12243  echo
12244  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12245## Running $as_me. ##
12246_ASBOX
12247} >&5
12248cat >&5 <<_CSEOF
12249
12250This file was extended by Arts++ $as_me 1.1.a12, which was
12251generated by GNU Autoconf 2.59.  Invocation command line was
12252
12253  CONFIG_FILES    = $CONFIG_FILES
12254  CONFIG_HEADERS  = $CONFIG_HEADERS
12255  CONFIG_LINKS    = $CONFIG_LINKS
12256  CONFIG_COMMANDS = $CONFIG_COMMANDS
12257  $ $0 $@
12258
12259_CSEOF
12260echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12261echo >&5
12262_ACEOF
12263
12264# Files that config.status was made for.
12265if test -n "$ac_config_files"; then
12266  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12267fi
12268
12269if test -n "$ac_config_headers"; then
12270  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12271fi
12272
12273if test -n "$ac_config_links"; then
12274  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12275fi
12276
12277if test -n "$ac_config_commands"; then
12278  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12279fi
12280
12281cat >>$CONFIG_STATUS <<\_ACEOF
12282
12283ac_cs_usage="\
12284\`$as_me' instantiates files from templates according to the
12285current configuration.
12286
12287Usage: $0 [OPTIONS] [FILE]...
12288
12289  -h, --help       print this help, then exit
12290  -V, --version    print version number, then exit
12291  -q, --quiet      do not print progress messages
12292  -d, --debug      don't remove temporary files
12293      --recheck    update $as_me by reconfiguring in the same conditions
12294  --file=FILE[:TEMPLATE]
12295		   instantiate the configuration file FILE
12296  --header=FILE[:TEMPLATE]
12297		   instantiate the configuration header FILE
12298
12299Configuration files:
12300$config_files
12301
12302Configuration headers:
12303$config_headers
12304
12305Report bugs to <bug-autoconf@gnu.org>."
12306_ACEOF
12307
12308cat >>$CONFIG_STATUS <<_ACEOF
12309ac_cs_version="\\
12310Arts++ config.status 1.1.a12
12311configured by $0, generated by GNU Autoconf 2.59,
12312  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12313
12314Copyright (C) 2003 Free Software Foundation, Inc.
12315This config.status script is free software; the Free Software Foundation
12316gives unlimited permission to copy, distribute and modify it."
12317srcdir=$srcdir
12318_ACEOF
12319
12320cat >>$CONFIG_STATUS <<\_ACEOF
12321# If no file are specified by the user, then we need to provide default
12322# value.  By we need to know if files were specified by the user.
12323ac_need_defaults=:
12324while test $# != 0
12325do
12326  case $1 in
12327  --*=*)
12328    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12329    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12330    ac_shift=:
12331    ;;
12332  -*)
12333    ac_option=$1
12334    ac_optarg=$2
12335    ac_shift=shift
12336    ;;
12337  *) # This is not an option, so the user has probably given explicit
12338     # arguments.
12339     ac_option=$1
12340     ac_need_defaults=false;;
12341  esac
12342
12343  case $ac_option in
12344  # Handling of the options.
12345_ACEOF
12346cat >>$CONFIG_STATUS <<\_ACEOF
12347  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12348    ac_cs_recheck=: ;;
12349  --version | --vers* | -V )
12350    echo "$ac_cs_version"; exit 0 ;;
12351  --he | --h)
12352    # Conflict between --help and --header
12353    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12354Try \`$0 --help' for more information." >&5
12355echo "$as_me: error: ambiguous option: $1
12356Try \`$0 --help' for more information." >&2;}
12357   { (exit 1); exit 1; }; };;
12358  --help | --hel | -h )
12359    echo "$ac_cs_usage"; exit 0 ;;
12360  --debug | --d* | -d )
12361    debug=: ;;
12362  --file | --fil | --fi | --f )
12363    $ac_shift
12364    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12365    ac_need_defaults=false;;
12366  --header | --heade | --head | --hea )
12367    $ac_shift
12368    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12369    ac_need_defaults=false;;
12370  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12371  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12372    ac_cs_silent=: ;;
12373
12374  # This is an error.
12375  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12376Try \`$0 --help' for more information." >&5
12377echo "$as_me: error: unrecognized option: $1
12378Try \`$0 --help' for more information." >&2;}
12379   { (exit 1); exit 1; }; } ;;
12380
12381  *) ac_config_targets="$ac_config_targets $1" ;;
12382
12383  esac
12384  shift
12385done
12386
12387ac_configure_extra_args=
12388
12389if $ac_cs_silent; then
12390  exec 6>/dev/null
12391  ac_configure_extra_args="$ac_configure_extra_args --silent"
12392fi
12393
12394_ACEOF
12395cat >>$CONFIG_STATUS <<_ACEOF
12396if \$ac_cs_recheck; then
12397  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12398  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12399fi
12400
12401_ACEOF
12402
12403
12404
12405
12406
12407cat >>$CONFIG_STATUS <<\_ACEOF
12408for ac_config_target in $ac_config_targets
12409do
12410  case "$ac_config_target" in
12411  # Handling of arguments.
12412  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12413  "classes/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES classes/src/Makefile" ;;
12414  "classes/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES classes/include/Makefile" ;;
12415  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12416  "doc/libArts/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/libArts/Makefile" ;;
12417  "doc/installHtml.sh" ) CONFIG_FILES="$CONFIG_FILES doc/installHtml.sh" ;;
12418  "doc/libArts/installHtml.sh" ) CONFIG_FILES="$CONFIG_FILES doc/libArts/installHtml.sh" ;;
12419  "apps/artsagg/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsagg/Makefile" ;;
12420  "apps/artsases/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsases/Makefile" ;;
12421  "apps/artsasagg/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsasagg/Makefile" ;;
12422  "apps/artsdump/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsdump/Makefile" ;;
12423  "apps/artsintfms/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsintfms/Makefile" ;;
12424  "apps/artsintfmagg/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsintfmagg/Makefile" ;;
12425  "apps/artsnets/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsnets/Makefile" ;;
12426  "apps/artsnexthops/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsnexthops/Makefile" ;;
12427  "apps/artsnexthopagg/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsnexthopagg/Makefile" ;;
12428  "apps/artsnetagg/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsnetagg/Makefile" ;;
12429  "apps/artsportagg/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsportagg/Makefile" ;;
12430  "apps/artsportmagg/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsportmagg/Makefile" ;;
12431  "apps/artsportms/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsportms/Makefile" ;;
12432  "apps/artsports/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsports/Makefile" ;;
12433  "apps/artsprotoagg/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsprotoagg/Makefile" ;;
12434  "apps/artsprotos/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artsprotos/Makefile" ;;
12435  "apps/artstoc/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artstoc/Makefile" ;;
12436  "apps/artstos/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artstos/Makefile" ;;
12437  "apps/artstrunc/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/artstrunc/Makefile" ;;
12438  "classes/include/caida_t.h" ) CONFIG_HEADERS="$CONFIG_HEADERS classes/include/caida_t.h" ;;
12439  "classes/include/artslocal.h" ) CONFIG_HEADERS="$CONFIG_HEADERS classes/include/artslocal.h" ;;
12440  "include/aclocal.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/aclocal.h" ;;
12441  "classes/include/Ipv4PrefixPatricia.hh" ) CONFIG_HEADERS="$CONFIG_HEADERS classes/include/Ipv4PrefixPatricia.hh" ;;
12442  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12443echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12444   { (exit 1); exit 1; }; };;
12445  esac
12446done
12447
12448# If the user did not use the arguments to specify the items to instantiate,
12449# then the envvar interface is used.  Set only those that are not.
12450# We use the long form for the default assignment because of an extremely
12451# bizarre bug on SunOS 4.1.3.
12452if $ac_need_defaults; then
12453  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12454  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12455fi
12456
12457# Have a temporary directory for convenience.  Make it in the build tree
12458# simply because there is no reason to put it here, and in addition,
12459# creating and moving files from /tmp can sometimes cause problems.
12460# Create a temporary directory, and hook for its removal unless debugging.
12461$debug ||
12462{
12463  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12464  trap '{ (exit 1); exit 1; }' 1 2 13 15
12465}
12466
12467# Create a (secure) tmp directory for tmp files.
12468
12469{
12470  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12471  test -n "$tmp" && test -d "$tmp"
12472}  ||
12473{
12474  tmp=./confstat$$-$RANDOM
12475  (umask 077 && mkdir $tmp)
12476} ||
12477{
12478   echo "$me: cannot create a temporary directory in ." >&2
12479   { (exit 1); exit 1; }
12480}
12481
12482_ACEOF
12483
12484cat >>$CONFIG_STATUS <<_ACEOF
12485
12486#
12487# CONFIG_FILES section.
12488#
12489
12490# No need to generate the scripts if there are no CONFIG_FILES.
12491# This happens for instance when ./config.status config.h
12492if test -n "\$CONFIG_FILES"; then
12493  # Protect against being on the right side of a sed subst in config.status.
12494  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12495   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12496s,@SHELL@,$SHELL,;t t
12497s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12498s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12499s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12500s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12501s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12502s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12503s,@exec_prefix@,$exec_prefix,;t t
12504s,@prefix@,$prefix,;t t
12505s,@program_transform_name@,$program_transform_name,;t t
12506s,@bindir@,$bindir,;t t
12507s,@sbindir@,$sbindir,;t t
12508s,@libexecdir@,$libexecdir,;t t
12509s,@datadir@,$datadir,;t t
12510s,@sysconfdir@,$sysconfdir,;t t
12511s,@sharedstatedir@,$sharedstatedir,;t t
12512s,@localstatedir@,$localstatedir,;t t
12513s,@libdir@,$libdir,;t t
12514s,@includedir@,$includedir,;t t
12515s,@oldincludedir@,$oldincludedir,;t t
12516s,@infodir@,$infodir,;t t
12517s,@mandir@,$mandir,;t t
12518s,@build_alias@,$build_alias,;t t
12519s,@host_alias@,$host_alias,;t t
12520s,@target_alias@,$target_alias,;t t
12521s,@DEFS@,$DEFS,;t t
12522s,@ECHO_C@,$ECHO_C,;t t
12523s,@ECHO_N@,$ECHO_N,;t t
12524s,@ECHO_T@,$ECHO_T,;t t
12525s,@LIBS@,$LIBS,;t t
12526s,@CC@,$CC,;t t
12527s,@CFLAGS@,$CFLAGS,;t t
12528s,@LDFLAGS@,$LDFLAGS,;t t
12529s,@CPPFLAGS@,$CPPFLAGS,;t t
12530s,@ac_ct_CC@,$ac_ct_CC,;t t
12531s,@EXEEXT@,$EXEEXT,;t t
12532s,@OBJEXT@,$OBJEXT,;t t
12533s,@CXX@,$CXX,;t t
12534s,@CXXFLAGS@,$CXXFLAGS,;t t
12535s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12536s,@CXXCPP@,$CXXCPP,;t t
12537s,@EGREP@,$EGREP,;t t
12538s,@RANLIB@,$RANLIB,;t t
12539s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12540s,@X_CFLAGS@,$X_CFLAGS,;t t
12541s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12542s,@X_LIBS@,$X_LIBS,;t t
12543s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12544s,@build@,$build,;t t
12545s,@build_cpu@,$build_cpu,;t t
12546s,@build_vendor@,$build_vendor,;t t
12547s,@build_os@,$build_os,;t t
12548s,@host@,$host,;t t
12549s,@host_cpu@,$host_cpu,;t t
12550s,@host_vendor@,$host_vendor,;t t
12551s,@host_os@,$host_os,;t t
12552s,@target@,$target,;t t
12553s,@target_cpu@,$target_cpu,;t t
12554s,@target_vendor@,$target_vendor,;t t
12555s,@target_os@,$target_os,;t t
12556s,@LD@,$LD,;t t
12557s,@NM@,$NM,;t t
12558s,@LN_S@,$LN_S,;t t
12559s,@LIBTOOL@,$LIBTOOL,;t t
12560s,@have_xrt3d@,$have_xrt3d,;t t
12561s,@have_xrtgear@,$have_xrtgear,;t t
12562s,@have_xrtfield@,$have_xrtfield,;t t
12563s,@have_xrttable@,$have_xrttable,;t t
12564s,@have_xrtmvc@,$have_xrtmvc,;t t
12565s,@have_xrtgraph@,$have_xrtgraph,;t t
12566s,@have_xrtpds@,$have_xrtpds,;t t
12567s,@flexdir@,$flexdir,;t t
12568s,@FLEXINC@,$FLEXINC,;t t
12569s,@FLEXLIB@,$FLEXLIB,;t t
12570s,@XINCDIR@,$XINCDIR,;t t
12571s,@XLIBDIR@,$XLIBDIR,;t t
12572s,@MOTIFINCDIR@,$MOTIFINCDIR,;t t
12573s,@MOTIFLIBDIR@,$MOTIFLIBDIR,;t t
12574s,@artspptop@,$artspptop,;t t
12575s,@docurl@,$docurl,;t t
12576s,@debug@,$debug,;t t
12577s,@OSNAME@,$OSNAME,;t t
12578s,@TAR@,$TAR,;t t
12579s,@PKG_VERSION@,$PKG_VERSION,;t t
12580s,@C_R_A@,$C_R_A,;t t
12581s,@LIBOBJS@,$LIBOBJS,;t t
12582s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12583CEOF
12584
12585_ACEOF
12586
12587  cat >>$CONFIG_STATUS <<\_ACEOF
12588  # Split the substitutions into bite-sized pieces for seds with
12589  # small command number limits, like on Digital OSF/1 and HP-UX.
12590  ac_max_sed_lines=48
12591  ac_sed_frag=1 # Number of current file.
12592  ac_beg=1 # First line for current file.
12593  ac_end=$ac_max_sed_lines # Line after last line for current file.
12594  ac_more_lines=:
12595  ac_sed_cmds=
12596  while $ac_more_lines; do
12597    if test $ac_beg -gt 1; then
12598      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12599    else
12600      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12601    fi
12602    if test ! -s $tmp/subs.frag; then
12603      ac_more_lines=false
12604    else
12605      # The purpose of the label and of the branching condition is to
12606      # speed up the sed processing (if there are no `@' at all, there
12607      # is no need to browse any of the substitutions).
12608      # These are the two extra sed commands mentioned above.
12609      (echo ':t
12610  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12611      if test -z "$ac_sed_cmds"; then
12612	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12613      else
12614	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12615      fi
12616      ac_sed_frag=`expr $ac_sed_frag + 1`
12617      ac_beg=$ac_end
12618      ac_end=`expr $ac_end + $ac_max_sed_lines`
12619    fi
12620  done
12621  if test -z "$ac_sed_cmds"; then
12622    ac_sed_cmds=cat
12623  fi
12624fi # test -n "$CONFIG_FILES"
12625
12626_ACEOF
12627cat >>$CONFIG_STATUS <<\_ACEOF
12628for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12629  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12630  case $ac_file in
12631  - | *:- | *:-:* ) # input from stdin
12632	cat >$tmp/stdin
12633	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12634	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12635  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12636	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12637  * )   ac_file_in=$ac_file.in ;;
12638  esac
12639
12640  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12641  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12642$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12643	 X"$ac_file" : 'X\(//\)[^/]' \| \
12644	 X"$ac_file" : 'X\(//\)$' \| \
12645	 X"$ac_file" : 'X\(/\)' \| \
12646	 .     : '\(.\)' 2>/dev/null ||
12647echo X"$ac_file" |
12648    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12649  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12650  	  /^X\(\/\/\)$/{ s//\1/; q; }
12651  	  /^X\(\/\).*/{ s//\1/; q; }
12652  	  s/.*/./; q'`
12653  { if $as_mkdir_p; then
12654    mkdir -p "$ac_dir"
12655  else
12656    as_dir="$ac_dir"
12657    as_dirs=
12658    while test ! -d "$as_dir"; do
12659      as_dirs="$as_dir $as_dirs"
12660      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12661$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12662	 X"$as_dir" : 'X\(//\)[^/]' \| \
12663	 X"$as_dir" : 'X\(//\)$' \| \
12664	 X"$as_dir" : 'X\(/\)' \| \
12665	 .     : '\(.\)' 2>/dev/null ||
12666echo X"$as_dir" |
12667    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12668  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12669  	  /^X\(\/\/\)$/{ s//\1/; q; }
12670  	  /^X\(\/\).*/{ s//\1/; q; }
12671  	  s/.*/./; q'`
12672    done
12673    test ! -n "$as_dirs" || mkdir $as_dirs
12674  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12675echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12676   { (exit 1); exit 1; }; }; }
12677
12678  ac_builddir=.
12679
12680if test "$ac_dir" != .; then
12681  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12682  # A "../" for each directory in $ac_dir_suffix.
12683  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12684else
12685  ac_dir_suffix= ac_top_builddir=
12686fi
12687
12688case $srcdir in
12689  .)  # No --srcdir option.  We are building in place.
12690    ac_srcdir=.
12691    if test -z "$ac_top_builddir"; then
12692       ac_top_srcdir=.
12693    else
12694       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12695    fi ;;
12696  [\\/]* | ?:[\\/]* )  # Absolute path.
12697    ac_srcdir=$srcdir$ac_dir_suffix;
12698    ac_top_srcdir=$srcdir ;;
12699  *) # Relative path.
12700    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12701    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12702esac
12703
12704# Do not use `cd foo && pwd` to compute absolute paths, because
12705# the directories may not exist.
12706case `pwd` in
12707.) ac_abs_builddir="$ac_dir";;
12708*)
12709  case "$ac_dir" in
12710  .) ac_abs_builddir=`pwd`;;
12711  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12712  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12713  esac;;
12714esac
12715case $ac_abs_builddir in
12716.) ac_abs_top_builddir=${ac_top_builddir}.;;
12717*)
12718  case ${ac_top_builddir}. in
12719  .) ac_abs_top_builddir=$ac_abs_builddir;;
12720  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12721  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12722  esac;;
12723esac
12724case $ac_abs_builddir in
12725.) ac_abs_srcdir=$ac_srcdir;;
12726*)
12727  case $ac_srcdir in
12728  .) ac_abs_srcdir=$ac_abs_builddir;;
12729  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12730  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12731  esac;;
12732esac
12733case $ac_abs_builddir in
12734.) ac_abs_top_srcdir=$ac_top_srcdir;;
12735*)
12736  case $ac_top_srcdir in
12737  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12738  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12739  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12740  esac;;
12741esac
12742
12743
12744
12745  if test x"$ac_file" != x-; then
12746    { echo "$as_me:$LINENO: creating $ac_file" >&5
12747echo "$as_me: creating $ac_file" >&6;}
12748    rm -f "$ac_file"
12749  fi
12750  # Let's still pretend it is `configure' which instantiates (i.e., don't
12751  # use $as_me), people would be surprised to read:
12752  #    /* config.h.  Generated by config.status.  */
12753  if test x"$ac_file" = x-; then
12754    configure_input=
12755  else
12756    configure_input="$ac_file.  "
12757  fi
12758  configure_input=$configure_input"Generated from `echo $ac_file_in |
12759				     sed 's,.*/,,'` by configure."
12760
12761  # First look for the input files in the build tree, otherwise in the
12762  # src tree.
12763  ac_file_inputs=`IFS=:
12764    for f in $ac_file_in; do
12765      case $f in
12766      -) echo $tmp/stdin ;;
12767      [\\/$]*)
12768	 # Absolute (can't be DOS-style, as IFS=:)
12769	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12770echo "$as_me: error: cannot find input file: $f" >&2;}
12771   { (exit 1); exit 1; }; }
12772	 echo "$f";;
12773      *) # Relative
12774	 if test -f "$f"; then
12775	   # Build tree
12776	   echo "$f"
12777	 elif test -f "$srcdir/$f"; then
12778	   # Source tree
12779	   echo "$srcdir/$f"
12780	 else
12781	   # /dev/null tree
12782	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12783echo "$as_me: error: cannot find input file: $f" >&2;}
12784   { (exit 1); exit 1; }; }
12785	 fi;;
12786      esac
12787    done` || { (exit 1); exit 1; }
12788_ACEOF
12789cat >>$CONFIG_STATUS <<_ACEOF
12790  sed "$ac_vpsub
12791$extrasub
12792_ACEOF
12793cat >>$CONFIG_STATUS <<\_ACEOF
12794:t
12795/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12796s,@configure_input@,$configure_input,;t t
12797s,@srcdir@,$ac_srcdir,;t t
12798s,@abs_srcdir@,$ac_abs_srcdir,;t t
12799s,@top_srcdir@,$ac_top_srcdir,;t t
12800s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12801s,@builddir@,$ac_builddir,;t t
12802s,@abs_builddir@,$ac_abs_builddir,;t t
12803s,@top_builddir@,$ac_top_builddir,;t t
12804s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12805" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12806  rm -f $tmp/stdin
12807  if test x"$ac_file" != x-; then
12808    mv $tmp/out $ac_file
12809  else
12810    cat $tmp/out
12811    rm -f $tmp/out
12812  fi
12813
12814done
12815_ACEOF
12816cat >>$CONFIG_STATUS <<\_ACEOF
12817
12818#
12819# CONFIG_HEADER section.
12820#
12821
12822# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12823# NAME is the cpp macro being defined and VALUE is the value it is being given.
12824#
12825# ac_d sets the value in "#define NAME VALUE" lines.
12826ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
12827ac_dB='[	 ].*$,\1#\2'
12828ac_dC=' '
12829ac_dD=',;t'
12830# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12831ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
12832ac_uB='$,\1#\2define\3'
12833ac_uC=' '
12834ac_uD=',;t'
12835
12836for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12837  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12838  case $ac_file in
12839  - | *:- | *:-:* ) # input from stdin
12840	cat >$tmp/stdin
12841	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12842	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12843  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12844	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12845  * )   ac_file_in=$ac_file.in ;;
12846  esac
12847
12848  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12849echo "$as_me: creating $ac_file" >&6;}
12850
12851  # First look for the input files in the build tree, otherwise in the
12852  # src tree.
12853  ac_file_inputs=`IFS=:
12854    for f in $ac_file_in; do
12855      case $f in
12856      -) echo $tmp/stdin ;;
12857      [\\/$]*)
12858	 # Absolute (can't be DOS-style, as IFS=:)
12859	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12860echo "$as_me: error: cannot find input file: $f" >&2;}
12861   { (exit 1); exit 1; }; }
12862	 # Do quote $f, to prevent DOS paths from being IFS'd.
12863	 echo "$f";;
12864      *) # Relative
12865	 if test -f "$f"; then
12866	   # Build tree
12867	   echo "$f"
12868	 elif test -f "$srcdir/$f"; then
12869	   # Source tree
12870	   echo "$srcdir/$f"
12871	 else
12872	   # /dev/null tree
12873	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12874echo "$as_me: error: cannot find input file: $f" >&2;}
12875   { (exit 1); exit 1; }; }
12876	 fi;;
12877      esac
12878    done` || { (exit 1); exit 1; }
12879  # Remove the trailing spaces.
12880  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
12881
12882_ACEOF
12883
12884# Transform confdefs.h into two sed scripts, `conftest.defines' and
12885# `conftest.undefs', that substitutes the proper values into
12886# config.h.in to produce config.h.  The first handles `#define'
12887# templates, and the second `#undef' templates.
12888# And first: Protect against being on the right side of a sed subst in
12889# config.status.  Protect against being in an unquoted here document
12890# in config.status.
12891rm -f conftest.defines conftest.undefs
12892# Using a here document instead of a string reduces the quoting nightmare.
12893# Putting comments in sed scripts is not portable.
12894#
12895# `end' is used to avoid that the second main sed command (meant for
12896# 0-ary CPP macros) applies to n-ary macro definitions.
12897# See the Autoconf documentation for `clear'.
12898cat >confdef2sed.sed <<\_ACEOF
12899s/[\\&,]/\\&/g
12900s,[\\$`],\\&,g
12901t clear
12902: clear
12903s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12904t end
12905s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12906: end
12907_ACEOF
12908# If some macros were called several times there might be several times
12909# the same #defines, which is useless.  Nevertheless, we may not want to
12910# sort them, since we want the *last* AC-DEFINE to be honored.
12911uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12912sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12913rm -f confdef2sed.sed
12914
12915# This sed command replaces #undef with comments.  This is necessary, for
12916# example, in the case of _POSIX_SOURCE, which is predefined and required
12917# on some systems where configure will not decide to define it.
12918cat >>conftest.undefs <<\_ACEOF
12919s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12920_ACEOF
12921
12922# Break up conftest.defines because some shells have a limit on the size
12923# of here documents, and old seds have small limits too (100 cmds).
12924echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12925echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12926echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12927echo '  :' >>$CONFIG_STATUS
12928rm -f conftest.tail
12929while grep . conftest.defines >/dev/null
12930do
12931  # Write a limited-size here document to $tmp/defines.sed.
12932  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12933  # Speed up: don't consider the non `#define' lines.
12934  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
12935  # Work around the forget-to-reset-the-flag bug.
12936  echo 't clr' >>$CONFIG_STATUS
12937  echo ': clr' >>$CONFIG_STATUS
12938  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12939  echo 'CEOF
12940  sed -f $tmp/defines.sed $tmp/in >$tmp/out
12941  rm -f $tmp/in
12942  mv $tmp/out $tmp/in
12943' >>$CONFIG_STATUS
12944  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12945  rm -f conftest.defines
12946  mv conftest.tail conftest.defines
12947done
12948rm -f conftest.defines
12949echo '  fi # grep' >>$CONFIG_STATUS
12950echo >>$CONFIG_STATUS
12951
12952# Break up conftest.undefs because some shells have a limit on the size
12953# of here documents, and old seds have small limits too (100 cmds).
12954echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12955rm -f conftest.tail
12956while grep . conftest.undefs >/dev/null
12957do
12958  # Write a limited-size here document to $tmp/undefs.sed.
12959  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12960  # Speed up: don't consider the non `#undef'
12961  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
12962  # Work around the forget-to-reset-the-flag bug.
12963  echo 't clr' >>$CONFIG_STATUS
12964  echo ': clr' >>$CONFIG_STATUS
12965  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12966  echo 'CEOF
12967  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12968  rm -f $tmp/in
12969  mv $tmp/out $tmp/in
12970' >>$CONFIG_STATUS
12971  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12972  rm -f conftest.undefs
12973  mv conftest.tail conftest.undefs
12974done
12975rm -f conftest.undefs
12976
12977cat >>$CONFIG_STATUS <<\_ACEOF
12978  # Let's still pretend it is `configure' which instantiates (i.e., don't
12979  # use $as_me), people would be surprised to read:
12980  #    /* config.h.  Generated by config.status.  */
12981  if test x"$ac_file" = x-; then
12982    echo "/* Generated by configure.  */" >$tmp/config.h
12983  else
12984    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12985  fi
12986  cat $tmp/in >>$tmp/config.h
12987  rm -f $tmp/in
12988  if test x"$ac_file" != x-; then
12989    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12990      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12991echo "$as_me: $ac_file is unchanged" >&6;}
12992    else
12993      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12994$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12995	 X"$ac_file" : 'X\(//\)[^/]' \| \
12996	 X"$ac_file" : 'X\(//\)$' \| \
12997	 X"$ac_file" : 'X\(/\)' \| \
12998	 .     : '\(.\)' 2>/dev/null ||
12999echo X"$ac_file" |
13000    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13001  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13002  	  /^X\(\/\/\)$/{ s//\1/; q; }
13003  	  /^X\(\/\).*/{ s//\1/; q; }
13004  	  s/.*/./; q'`
13005      { if $as_mkdir_p; then
13006    mkdir -p "$ac_dir"
13007  else
13008    as_dir="$ac_dir"
13009    as_dirs=
13010    while test ! -d "$as_dir"; do
13011      as_dirs="$as_dir $as_dirs"
13012      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13013$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13014	 X"$as_dir" : 'X\(//\)[^/]' \| \
13015	 X"$as_dir" : 'X\(//\)$' \| \
13016	 X"$as_dir" : 'X\(/\)' \| \
13017	 .     : '\(.\)' 2>/dev/null ||
13018echo X"$as_dir" |
13019    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13020  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13021  	  /^X\(\/\/\)$/{ s//\1/; q; }
13022  	  /^X\(\/\).*/{ s//\1/; q; }
13023  	  s/.*/./; q'`
13024    done
13025    test ! -n "$as_dirs" || mkdir $as_dirs
13026  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13027echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13028   { (exit 1); exit 1; }; }; }
13029
13030      rm -f $ac_file
13031      mv $tmp/config.h $ac_file
13032    fi
13033  else
13034    cat $tmp/config.h
13035    rm -f $tmp/config.h
13036  fi
13037done
13038_ACEOF
13039
13040cat >>$CONFIG_STATUS <<\_ACEOF
13041
13042{ (exit 0); exit 0; }
13043_ACEOF
13044chmod +x $CONFIG_STATUS
13045ac_clean_files=$ac_clean_files_save
13046
13047
13048# configure is writing to config.log, and then calls config.status.
13049# config.status does its own redirection, appending to config.log.
13050# Unfortunately, on DOS this fails, as config.log is still kept open
13051# by configure, so config.status won't be able to write to it; its
13052# output is simply discarded.  So we exec the FD to /dev/null,
13053# effectively closing config.log, so it can be properly (re)opened and
13054# appended to by config.status.  When coming back to configure, we
13055# need to make the FD available again.
13056if test "$no_create" != yes; then
13057  ac_cs_success=:
13058  ac_config_status_args=
13059  test "$silent" = yes &&
13060    ac_config_status_args="$ac_config_status_args --quiet"
13061  exec 5>/dev/null
13062  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13063  exec 5>>config.log
13064  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13065  # would make configure fail if this is the last instruction.
13066  $ac_cs_success || { (exit 1); exit 1; }
13067fi
13068
13069
13070