r10662: new upstream: 4.4.0. Changes to support X.org
[ctsim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS="   $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.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${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.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/ctsim.cpp"
275 # Factoring default headers for most tests.
276 ac_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
312 ac_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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE wxconfig build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP INCLUDED_GETOPT_LONG_TRUE INCLUDED_GETOPT_LONG_FALSE DEBUG_TRUE DEBUG_FALSE lamdir mpienable cgibindir cgibinurl webdatadir webdataurl htmldir cgiprograms htmldata USE_HTML_TRUE USE_HTML_FALSE webenabled USE_LAM_TRUE USE_LAM_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_TOOLKIT_LIBS X_BASIC_LIBS NO_X_TRUE NO_X_FALSE my_includes HAVE_SGP_TRUE HAVE_SGP_FALSE wxcflags wxlibs HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE ctlibs lamprograms lamdefs LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_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.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
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
627 Try \`$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
650 done
651
652 if 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; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
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
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
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
679 done
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.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if 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
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if 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 ||
715 echo 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
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if 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
736 fi
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; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781
782 #
783 # Report the --help message.
784 #
785 if 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 this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
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
812 Installation 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
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine 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
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 X features:
848   --x-includes=DIR    X include files are in DIR
849   --x-libraries=DIR   X library files are in DIR
850
851 System types:
852   --build=BUILD     configure for building on BUILD [guessed]
853   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
854 _ACEOF
855 fi
856
857 if test -n "$ac_init_help"; then
858
859   cat <<\_ACEOF
860
861 Optional Features:
862   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
863   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
864   --enable-maintainer-mode enable make rules and dependencies not useful
865                           (and sometimes confusing) to the casual installer
866   --disable-dependency-tracking Speeds up one-time builds
867   --enable-dependency-tracking  Do not reject slow dependency extractors
868   --enable-debug          Turn on debugging
869   --enable-verbose-warnings
870                           Enable verbose compiler warnings.
871   --enable-static
872                             Enable static executables.
873   --enable-dmalloc        Use dmalloc memory allocation
874   --enable-efence        Use ElectricFence memory allocation
875
876 Optional Packages:
877   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
878   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
879   --with-lam=PATH         Set path of LAM MPI
880   --with-ctn=PATH         Set path of CTN DICOM library
881   --with-mcpu=CPU         Set name of CPU for gcc -mcpu
882   --with-cgibin-dir=PATH  Set path of CGI binaries directory
883   --with-cgibin-url=PATH  Set URL path of CGI binaries
884   --with-webdata-dir=PATH Set path of webdata
885   --with-webdata-url=PATH Set URL path of webdata
886   --with-html-dir=PATH    Set directory of html files
887   --with-x                use the X Window System
888
889 Some influential environment variables:
890   CC          C compiler command
891   CFLAGS      C compiler flags
892   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
893               nonstandard directory <lib dir>
894   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
895               headers in a nonstandard directory <include dir>
896   CXX         C++ compiler command
897   CXXFLAGS    C++ compiler flags
898   CPP         C preprocessor
899
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
902
903 _ACEOF
904 fi
905
906 if test "$ac_init_help" = "recursive"; then
907   # If there are subdirs, report their specific --help.
908   ac_popdir=`pwd`
909   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910     test -d $ac_dir || continue
911     ac_builddir=.
912
913 if test "$ac_dir" != .; then
914   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915   # A "../" for each directory in $ac_dir_suffix.
916   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918   ac_dir_suffix= ac_top_builddir=
919 fi
920
921 case $srcdir in
922   .)  # No --srcdir option.  We are building in place.
923     ac_srcdir=.
924     if test -z "$ac_top_builddir"; then
925        ac_top_srcdir=.
926     else
927        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928     fi ;;
929   [\\/]* | ?:[\\/]* )  # Absolute path.
930     ac_srcdir=$srcdir$ac_dir_suffix;
931     ac_top_srcdir=$srcdir ;;
932   *) # Relative path.
933     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934     ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
936
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
941 *)
942   case "$ac_dir" in
943   .) ac_abs_builddir=`pwd`;;
944   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945   *) ac_abs_builddir=`pwd`/"$ac_dir";;
946   esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *)
951   case ${ac_top_builddir}. in
952   .) ac_abs_top_builddir=$ac_abs_builddir;;
953   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955   esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
959 *)
960   case $ac_srcdir in
961   .) ac_abs_srcdir=$ac_abs_builddir;;
962   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964   esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *)
969   case $ac_top_srcdir in
970   .) ac_abs_top_srcdir=$ac_abs_builddir;;
971   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973   esac;;
974 esac
975
976     cd $ac_dir
977     # Check for guested configure; otherwise get Cygnus style configure.
978     if test -f $ac_srcdir/configure.gnu; then
979       echo
980       $SHELL $ac_srcdir/configure.gnu  --help=recursive
981     elif test -f $ac_srcdir/configure; then
982       echo
983       $SHELL $ac_srcdir/configure  --help=recursive
984     elif test -f $ac_srcdir/configure.ac ||
985            test -f $ac_srcdir/configure.in; then
986       echo
987       $ac_configure --help
988     else
989       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
990     fi
991     cd "$ac_popdir"
992   done
993 fi
994
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997   cat <<\_ACEOF
998
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003   exit 0
1004 fi
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1009
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59.  Invocation command line was
1012
1013   $ $0 $@
1014
1015 _ACEOF
1016 {
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1021
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1030
1031 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1032 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1035 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1036 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1037 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1038
1039 _ASUNAME
1040
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1043 do
1044   IFS=$as_save_IFS
1045   test -z "$as_dir" && as_dir=.
1046   echo "PATH: $as_dir"
1047 done
1048
1049 } >&5
1050
1051 cat >&5 <<_ACEOF
1052
1053
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1057
1058 _ACEOF
1059
1060
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1072 do
1073   for ac_arg
1074   do
1075     case $ac_arg in
1076     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078     | -silent | --silent | --silen | --sile | --sil)
1079       continue ;;
1080     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082     esac
1083     case $ac_pass in
1084     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085     2)
1086       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087       if test $ac_must_keep_next = true; then
1088         ac_must_keep_next=false # Got value, back to normal.
1089       else
1090         case $ac_arg in
1091           *=* | --config-cache | -C | -disable-* | --disable-* \
1092           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094           | -with-* | --with-* | -without-* | --without-* | --x)
1095             case "$ac_configure_args0 " in
1096               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097             esac
1098             ;;
1099           -* ) ac_must_keep_next=true ;;
1100         esac
1101       fi
1102       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103       # Get rid of the leading space.
1104       ac_sep=" "
1105       ;;
1106     esac
1107   done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log.  We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118   # Save into config.log some information that might help in debugging.
1119   {
1120     echo
1121
1122     cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127     echo
1128     # The following way of writing the cache mishandles newlines in values,
1129 {
1130   (set) 2>&1 |
1131     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132     *ac_space=\ *)
1133       sed -n \
1134         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136       ;;
1137     *)
1138       sed -n \
1139         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140       ;;
1141     esac;
1142 }
1143     echo
1144
1145     cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150     echo
1151     for ac_var in $ac_subst_vars
1152     do
1153       eval ac_val=$`echo $ac_var`
1154       echo "$ac_var='"'"'$ac_val'"'"'"
1155     done | sort
1156     echo
1157
1158     if test -n "$ac_subst_files"; then
1159       cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164       echo
1165       for ac_var in $ac_subst_files
1166       do
1167         eval ac_val=$`echo $ac_var`
1168         echo "$ac_var='"'"'$ac_val'"'"'"
1169       done | sort
1170       echo
1171     fi
1172
1173     if test -s confdefs.h; then
1174       cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179       echo
1180       sed "/^$/d" confdefs.h | sort
1181       echo
1182     fi
1183     test "$ac_signal" != 0 &&
1184       echo "$as_me: caught signal $ac_signal"
1185     echo "$as_me: exit $exit_status"
1186   } >&5
1187   rm -f core *.core &&
1188   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189     exit $exit_status
1190      ' 0
1191 for ac_signal in 1 2 13 15; do
1192   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1195
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1200
1201 # Predefined preprocessor variables.
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1226
1227
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231   if test "x$prefix" != xNONE; then
1232     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233   else
1234     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235   fi
1236 fi
1237 for ac_site_file in $CONFIG_SITE; do
1238   if test -r "$ac_site_file"; then
1239     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241     sed 's/^/| /' "$ac_site_file" >&5
1242     . "$ac_site_file"
1243   fi
1244 done
1245
1246 if test -r "$cache_file"; then
1247   # Some versions of bash will fail to source /dev/null (special
1248   # files actually), so we avoid doing that.
1249   if test -f "$cache_file"; then
1250     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252     case $cache_file in
1253       [\\/]* | ?:[\\/]* ) . $cache_file;;
1254       *)                      . ./$cache_file;;
1255     esac
1256   fi
1257 else
1258   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260   >$cache_file
1261 fi
1262
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269   eval ac_new_set=\$ac_env_${ac_var}_set
1270   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271   eval ac_new_val="\$ac_env_${ac_var}_value"
1272   case $ac_old_set,$ac_new_set in
1273     set,)
1274       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276       ac_cache_corrupted=: ;;
1277     ,set)
1278       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280       ac_cache_corrupted=: ;;
1281     ,);;
1282     *)
1283       if test "x$ac_old_val" != "x$ac_new_val"; then
1284         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1287 echo "$as_me:   former value:  $ac_old_val" >&2;}
1288         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1289 echo "$as_me:   current value: $ac_new_val" >&2;}
1290         ac_cache_corrupted=:
1291       fi;;
1292   esac
1293   # Pass precious variables to config.status.
1294   if test "$ac_new_set" = set; then
1295     case $ac_new_val in
1296     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298     *) ac_arg=$ac_var=$ac_new_val ;;
1299     esac
1300     case " $ac_configure_args " in
1301       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1302       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303     esac
1304   fi
1305 done
1306 if $ac_cache_corrupted; then
1307   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311    { (exit 1); exit 1; }; }
1312 fi
1313
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1340 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1341     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1342 if test "${enable_maintainer_mode+set}" = set; then
1343   enableval="$enable_maintainer_mode"
1344   USE_MAINTAINER_MODE=$enableval
1345 else
1346   USE_MAINTAINER_MODE=no
1347 fi;
1348   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1349 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1350
1351
1352 if test $USE_MAINTAINER_MODE = yes; then
1353   MAINTAINER_MODE_TRUE=
1354   MAINTAINER_MODE_FALSE='#'
1355 else
1356   MAINTAINER_MODE_TRUE='#'
1357   MAINTAINER_MODE_FALSE=
1358 fi
1359
1360   MAINT=$MAINTAINER_MODE_TRUE
1361
1362
1363 am__api_version="1.7"
1364 ac_aux_dir=
1365 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1366   if test -f $ac_dir/install-sh; then
1367     ac_aux_dir=$ac_dir
1368     ac_install_sh="$ac_aux_dir/install-sh -c"
1369     break
1370   elif test -f $ac_dir/install.sh; then
1371     ac_aux_dir=$ac_dir
1372     ac_install_sh="$ac_aux_dir/install.sh -c"
1373     break
1374   elif test -f $ac_dir/shtool; then
1375     ac_aux_dir=$ac_dir
1376     ac_install_sh="$ac_aux_dir/shtool install -c"
1377     break
1378   fi
1379 done
1380 if test -z "$ac_aux_dir"; then
1381   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1382 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1383    { (exit 1); exit 1; }; }
1384 fi
1385 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1386 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1387 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1388
1389 # Find a good install program.  We prefer a C program (faster),
1390 # so one script is as good as another.  But avoid the broken or
1391 # incompatible versions:
1392 # SysV /etc/install, /usr/sbin/install
1393 # SunOS /usr/etc/install
1394 # IRIX /sbin/install
1395 # AIX /bin/install
1396 # AmigaOS /C/install, which installs bootblocks on floppy discs
1397 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1398 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1399 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1400 # OS/2's system install, which has a completely different semantic
1401 # ./install, which can be erroneously created by make from ./install.sh.
1402 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1403 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1404 if test -z "$INSTALL"; then
1405 if test "${ac_cv_path_install+set}" = set; then
1406   echo $ECHO_N "(cached) $ECHO_C" >&6
1407 else
1408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1409 for as_dir in $PATH
1410 do
1411   IFS=$as_save_IFS
1412   test -z "$as_dir" && as_dir=.
1413   # Account for people who put trailing slashes in PATH elements.
1414 case $as_dir/ in
1415   ./ | .// | /cC/* | \
1416   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1417   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1418   /usr/ucb/* ) ;;
1419   *)
1420     # OSF1 and SCO ODT 3.0 have their own names for install.
1421     # Don't use installbsd from OSF since it installs stuff as root
1422     # by default.
1423     for ac_prog in ginstall scoinst install; do
1424       for ac_exec_ext in '' $ac_executable_extensions; do
1425         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1426           if test $ac_prog = install &&
1427             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1428             # AIX install.  It has an incompatible calling convention.
1429             :
1430           elif test $ac_prog = install &&
1431             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1432             # program-specific install script used by HP pwplus--don't use.
1433             :
1434           else
1435             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1436             break 3
1437           fi
1438         fi
1439       done
1440     done
1441     ;;
1442 esac
1443 done
1444
1445
1446 fi
1447   if test "${ac_cv_path_install+set}" = set; then
1448     INSTALL=$ac_cv_path_install
1449   else
1450     # As a last resort, use the slow shell script.  We don't cache a
1451     # path for INSTALL within a source directory, because that will
1452     # break other packages using the cache if that directory is
1453     # removed, or if the path is relative.
1454     INSTALL=$ac_install_sh
1455   fi
1456 fi
1457 echo "$as_me:$LINENO: result: $INSTALL" >&5
1458 echo "${ECHO_T}$INSTALL" >&6
1459
1460 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1461 # It thinks the first close brace ends the variable substitution.
1462 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1463
1464 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1465
1466 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1467
1468 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1469 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1470 # Just in case
1471 sleep 1
1472 echo timestamp > conftest.file
1473 # Do `set' in a subshell so we don't clobber the current shell's
1474 # arguments.  Must try -L first in case configure is actually a
1475 # symlink; some systems play weird games with the mod time of symlinks
1476 # (eg FreeBSD returns the mod time of the symlink's containing
1477 # directory).
1478 if (
1479    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1480    if test "$*" = "X"; then
1481       # -L didn't work.
1482       set X `ls -t $srcdir/configure conftest.file`
1483    fi
1484    rm -f conftest.file
1485    if test "$*" != "X $srcdir/configure conftest.file" \
1486       && test "$*" != "X conftest.file $srcdir/configure"; then
1487
1488       # If neither matched, then we have a broken ls.  This can happen
1489       # if, for instance, CONFIG_SHELL is bash and it inherits a
1490       # broken ls alias from the environment.  This has actually
1491       # happened.  Such a system could not be considered "sane".
1492       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1493 alias in your environment" >&5
1494 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1495 alias in your environment" >&2;}
1496    { (exit 1); exit 1; }; }
1497    fi
1498
1499    test "$2" = conftest.file
1500    )
1501 then
1502    # Ok.
1503    :
1504 else
1505    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1506 Check your system clock" >&5
1507 echo "$as_me: error: newly created file is older than distributed files!
1508 Check your system clock" >&2;}
1509    { (exit 1); exit 1; }; }
1510 fi
1511 echo "$as_me:$LINENO: result: yes" >&5
1512 echo "${ECHO_T}yes" >&6
1513 test "$program_prefix" != NONE &&
1514   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1515 # Use a double $ so make ignores it.
1516 test "$program_suffix" != NONE &&
1517   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1518 # Double any \ or $.  echo might interpret backslashes.
1519 # By default was `s,x,x', remove it if useless.
1520 cat <<\_ACEOF >conftest.sed
1521 s/[\\$]/&&/g;s/;s,x,x,$//
1522 _ACEOF
1523 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1524 rm conftest.sed
1525
1526
1527 # expand $ac_aux_dir to an absolute path
1528 am_aux_dir=`cd $ac_aux_dir && pwd`
1529
1530 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1531 # Use eval to expand $SHELL
1532 if eval "$MISSING --run true"; then
1533   am_missing_run="$MISSING --run "
1534 else
1535   am_missing_run=
1536   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1537 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1538 fi
1539
1540 for ac_prog in gawk mawk nawk awk
1541 do
1542   # Extract the first word of "$ac_prog", so it can be a program name with args.
1543 set dummy $ac_prog; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_AWK+set}" = set; then
1547   echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549   if test -n "$AWK"; then
1550   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1551 else
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 for as_dir in $PATH
1554 do
1555   IFS=$as_save_IFS
1556   test -z "$as_dir" && as_dir=.
1557   for ac_exec_ext in '' $ac_executable_extensions; do
1558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559     ac_cv_prog_AWK="$ac_prog"
1560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561     break 2
1562   fi
1563 done
1564 done
1565
1566 fi
1567 fi
1568 AWK=$ac_cv_prog_AWK
1569 if test -n "$AWK"; then
1570   echo "$as_me:$LINENO: result: $AWK" >&5
1571 echo "${ECHO_T}$AWK" >&6
1572 else
1573   echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1575 fi
1576
1577   test -n "$AWK" && break
1578 done
1579
1580 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1581 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1582 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1583 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1584   echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586   cat >conftest.make <<\_ACEOF
1587 all:
1588         @echo 'ac_maketemp="$(MAKE)"'
1589 _ACEOF
1590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1591 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1592 if test -n "$ac_maketemp"; then
1593   eval ac_cv_prog_make_${ac_make}_set=yes
1594 else
1595   eval ac_cv_prog_make_${ac_make}_set=no
1596 fi
1597 rm -f conftest.make
1598 fi
1599 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1600   echo "$as_me:$LINENO: result: yes" >&5
1601 echo "${ECHO_T}yes" >&6
1602   SET_MAKE=
1603 else
1604   echo "$as_me:$LINENO: result: no" >&5
1605 echo "${ECHO_T}no" >&6
1606   SET_MAKE="MAKE=${MAKE-make}"
1607 fi
1608
1609 rm -rf .tst 2>/dev/null
1610 mkdir .tst 2>/dev/null
1611 if test -d .tst; then
1612   am__leading_dot=.
1613 else
1614   am__leading_dot=_
1615 fi
1616 rmdir .tst 2>/dev/null
1617
1618  # test to see if srcdir already configured
1619 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1620    test -f $srcdir/config.status; then
1621   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1622 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1623    { (exit 1); exit 1; }; }
1624 fi
1625
1626 # test whether we have cygpath
1627 if test -z "$CYGPATH_W"; then
1628   if (cygpath --version) >/dev/null 2>/dev/null; then
1629     CYGPATH_W='cygpath -w'
1630   else
1631     CYGPATH_W=echo
1632   fi
1633 fi
1634
1635
1636 # Define the identity of the package.
1637  PACKAGE=ctsim
1638  VERSION=4.3.4
1639
1640
1641 cat >>confdefs.h <<_ACEOF
1642 #define PACKAGE "$PACKAGE"
1643 _ACEOF
1644
1645
1646 cat >>confdefs.h <<_ACEOF
1647 #define VERSION "$VERSION"
1648 _ACEOF
1649
1650 # Some tools Automake needs.
1651
1652 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1653
1654
1655 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1656
1657
1658 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1659
1660
1661 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1662
1663
1664 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1665
1666
1667 AMTAR=${AMTAR-"${am_missing_run}tar"}
1668
1669 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1670
1671 # Installed binaries are usually stripped using `strip' when the user
1672 # run `make install-strip'.  However `strip' might not be the right
1673 # tool to use in cross-compilation environments, therefore Automake
1674 # will honor the `STRIP' environment variable to overrule this program.
1675 if test "$cross_compiling" != no; then
1676   if test -n "$ac_tool_prefix"; then
1677   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1678 set dummy ${ac_tool_prefix}strip; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_STRIP+set}" = set; then
1682   echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684   if test -n "$STRIP"; then
1685   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1686 else
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1689 do
1690   IFS=$as_save_IFS
1691   test -z "$as_dir" && as_dir=.
1692   for ac_exec_ext in '' $ac_executable_extensions; do
1693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696     break 2
1697   fi
1698 done
1699 done
1700
1701 fi
1702 fi
1703 STRIP=$ac_cv_prog_STRIP
1704 if test -n "$STRIP"; then
1705   echo "$as_me:$LINENO: result: $STRIP" >&5
1706 echo "${ECHO_T}$STRIP" >&6
1707 else
1708   echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1710 fi
1711
1712 fi
1713 if test -z "$ac_cv_prog_STRIP"; then
1714   ac_ct_STRIP=$STRIP
1715   # Extract the first word of "strip", so it can be a program name with args.
1716 set dummy strip; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1720   echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722   if test -n "$ac_ct_STRIP"; then
1723   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1727 do
1728   IFS=$as_save_IFS
1729   test -z "$as_dir" && as_dir=.
1730   for ac_exec_ext in '' $ac_executable_extensions; do
1731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732     ac_cv_prog_ac_ct_STRIP="strip"
1733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734     break 2
1735   fi
1736 done
1737 done
1738
1739   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1740 fi
1741 fi
1742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1743 if test -n "$ac_ct_STRIP"; then
1744   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1745 echo "${ECHO_T}$ac_ct_STRIP" >&6
1746 else
1747   echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1749 fi
1750
1751   STRIP=$ac_ct_STRIP
1752 else
1753   STRIP="$ac_cv_prog_STRIP"
1754 fi
1755
1756 fi
1757 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1758
1759 # We need awk for the "check" target.  The system "awk" is bad on
1760 # some platforms.
1761
1762
1763
1764           ac_config_headers="$ac_config_headers config.h"
1765
1766
1767 for ac_prog in gawk mawk nawk awk
1768 do
1769   # Extract the first word of "$ac_prog", so it can be a program name with args.
1770 set dummy $ac_prog; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_AWK+set}" = set; then
1774   echo $ECHO_N "(cached) $ECHO_C" >&6
1775 else
1776   if test -n "$AWK"; then
1777   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1778 else
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1781 do
1782   IFS=$as_save_IFS
1783   test -z "$as_dir" && as_dir=.
1784   for ac_exec_ext in '' $ac_executable_extensions; do
1785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786     ac_cv_prog_AWK="$ac_prog"
1787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788     break 2
1789   fi
1790 done
1791 done
1792
1793 fi
1794 fi
1795 AWK=$ac_cv_prog_AWK
1796 if test -n "$AWK"; then
1797   echo "$as_me:$LINENO: result: $AWK" >&5
1798 echo "${ECHO_T}$AWK" >&6
1799 else
1800   echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1802 fi
1803
1804   test -n "$AWK" && break
1805 done
1806
1807 # Find a good install program.  We prefer a C program (faster),
1808 # so one script is as good as another.  But avoid the broken or
1809 # incompatible versions:
1810 # SysV /etc/install, /usr/sbin/install
1811 # SunOS /usr/etc/install
1812 # IRIX /sbin/install
1813 # AIX /bin/install
1814 # AmigaOS /C/install, which installs bootblocks on floppy discs
1815 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1816 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1817 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1818 # OS/2's system install, which has a completely different semantic
1819 # ./install, which can be erroneously created by make from ./install.sh.
1820 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1821 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1822 if test -z "$INSTALL"; then
1823 if test "${ac_cv_path_install+set}" = set; then
1824   echo $ECHO_N "(cached) $ECHO_C" >&6
1825 else
1826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829   IFS=$as_save_IFS
1830   test -z "$as_dir" && as_dir=.
1831   # Account for people who put trailing slashes in PATH elements.
1832 case $as_dir/ in
1833   ./ | .// | /cC/* | \
1834   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1835   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1836   /usr/ucb/* ) ;;
1837   *)
1838     # OSF1 and SCO ODT 3.0 have their own names for install.
1839     # Don't use installbsd from OSF since it installs stuff as root
1840     # by default.
1841     for ac_prog in ginstall scoinst install; do
1842       for ac_exec_ext in '' $ac_executable_extensions; do
1843         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1844           if test $ac_prog = install &&
1845             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1846             # AIX install.  It has an incompatible calling convention.
1847             :
1848           elif test $ac_prog = install &&
1849             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1850             # program-specific install script used by HP pwplus--don't use.
1851             :
1852           else
1853             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1854             break 3
1855           fi
1856         fi
1857       done
1858     done
1859     ;;
1860 esac
1861 done
1862
1863
1864 fi
1865   if test "${ac_cv_path_install+set}" = set; then
1866     INSTALL=$ac_cv_path_install
1867   else
1868     # As a last resort, use the slow shell script.  We don't cache a
1869     # path for INSTALL within a source directory, because that will
1870     # break other packages using the cache if that directory is
1871     # removed, or if the path is relative.
1872     INSTALL=$ac_install_sh
1873   fi
1874 fi
1875 echo "$as_me:$LINENO: result: $INSTALL" >&5
1876 echo "${ECHO_T}$INSTALL" >&6
1877
1878 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1879 # It thinks the first close brace ends the variable substitution.
1880 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1881
1882 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1883
1884 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1885
1886 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1887 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1888 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1889 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1890   echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892   cat >conftest.make <<\_ACEOF
1893 all:
1894         @echo 'ac_maketemp="$(MAKE)"'
1895 _ACEOF
1896 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1897 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1898 if test -n "$ac_maketemp"; then
1899   eval ac_cv_prog_make_${ac_make}_set=yes
1900 else
1901   eval ac_cv_prog_make_${ac_make}_set=no
1902 fi
1903 rm -f conftest.make
1904 fi
1905 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1906   echo "$as_me:$LINENO: result: yes" >&5
1907 echo "${ECHO_T}yes" >&6
1908   SET_MAKE=
1909 else
1910   echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1912   SET_MAKE="MAKE=${MAKE-make}"
1913 fi
1914
1915 if test -n "$ac_tool_prefix"; then
1916   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1917 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_RANLIB+set}" = set; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   if test -n "$RANLIB"; then
1924   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931   for ac_exec_ext in '' $ac_executable_extensions; do
1932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935     break 2
1936   fi
1937 done
1938 done
1939
1940 fi
1941 fi
1942 RANLIB=$ac_cv_prog_RANLIB
1943 if test -n "$RANLIB"; then
1944   echo "$as_me:$LINENO: result: $RANLIB" >&5
1945 echo "${ECHO_T}$RANLIB" >&6
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 fi
1950
1951 fi
1952 if test -z "$ac_cv_prog_RANLIB"; then
1953   ac_ct_RANLIB=$RANLIB
1954   # Extract the first word of "ranlib", so it can be a program name with args.
1955 set dummy ranlib; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$ac_ct_RANLIB"; then
1962   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971     ac_cv_prog_ac_ct_RANLIB="ranlib"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977
1978   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1979 fi
1980 fi
1981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1982 if test -n "$ac_ct_RANLIB"; then
1983   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1984 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1985 else
1986   echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6
1988 fi
1989
1990   RANLIB=$ac_ct_RANLIB
1991 else
1992   RANLIB="$ac_cv_prog_RANLIB"
1993 fi
1994
1995
1996 ac_ext=c
1997 ac_cpp='$CPP $CPPFLAGS'
1998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001 if test -n "$ac_tool_prefix"; then
2002   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   if test -n "$CC"; then
2010   ac_cv_prog_CC="$CC" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017   for ac_exec_ext in '' $ac_executable_extensions; do
2018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021     break 2
2022   fi
2023 done
2024 done
2025
2026 fi
2027 fi
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030   echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6
2032 else
2033   echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2035 fi
2036
2037 fi
2038 if test -z "$ac_cv_prog_CC"; then
2039   ac_ct_CC=$CC
2040   # Extract the first word of "gcc", so it can be a program name with args.
2041 set dummy gcc; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2045   echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047   if test -n "$ac_ct_CC"; then
2048   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053   IFS=$as_save_IFS
2054   test -z "$as_dir" && as_dir=.
2055   for ac_exec_ext in '' $ac_executable_extensions; do
2056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057     ac_cv_prog_ac_ct_CC="gcc"
2058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059     break 2
2060   fi
2061 done
2062 done
2063
2064 fi
2065 fi
2066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2067 if test -n "$ac_ct_CC"; then
2068   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2069 echo "${ECHO_T}$ac_ct_CC" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075   CC=$ac_ct_CC
2076 else
2077   CC="$ac_cv_prog_CC"
2078 fi
2079
2080 if test -z "$CC"; then
2081   if test -n "$ac_tool_prefix"; then
2082   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2083 set dummy ${ac_tool_prefix}cc; ac_word=$2
2084 echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2086 if test "${ac_cv_prog_CC+set}" = set; then
2087   echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089   if test -n "$CC"; then
2090   ac_cv_prog_CC="$CC" # Let the user override the test.
2091 else
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 for as_dir in $PATH
2094 do
2095   IFS=$as_save_IFS
2096   test -z "$as_dir" && as_dir=.
2097   for ac_exec_ext in '' $ac_executable_extensions; do
2098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2099     ac_cv_prog_CC="${ac_tool_prefix}cc"
2100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101     break 2
2102   fi
2103 done
2104 done
2105
2106 fi
2107 fi
2108 CC=$ac_cv_prog_CC
2109 if test -n "$CC"; then
2110   echo "$as_me:$LINENO: result: $CC" >&5
2111 echo "${ECHO_T}$CC" >&6
2112 else
2113   echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2115 fi
2116
2117 fi
2118 if test -z "$ac_cv_prog_CC"; then
2119   ac_ct_CC=$CC
2120   # Extract the first word of "cc", so it can be a program name with args.
2121 set dummy cc; ac_word=$2
2122 echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2125   echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127   if test -n "$ac_ct_CC"; then
2128   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2129 else
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2132 do
2133   IFS=$as_save_IFS
2134   test -z "$as_dir" && as_dir=.
2135   for ac_exec_ext in '' $ac_executable_extensions; do
2136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2137     ac_cv_prog_ac_ct_CC="cc"
2138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139     break 2
2140   fi
2141 done
2142 done
2143
2144 fi
2145 fi
2146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2147 if test -n "$ac_ct_CC"; then
2148   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2149 echo "${ECHO_T}$ac_ct_CC" >&6
2150 else
2151   echo "$as_me:$LINENO: result: no" >&5
2152 echo "${ECHO_T}no" >&6
2153 fi
2154
2155   CC=$ac_ct_CC
2156 else
2157   CC="$ac_cv_prog_CC"
2158 fi
2159
2160 fi
2161 if test -z "$CC"; then
2162   # Extract the first word of "cc", so it can be a program name with args.
2163 set dummy cc; ac_word=$2
2164 echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2166 if test "${ac_cv_prog_CC+set}" = set; then
2167   echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169   if test -n "$CC"; then
2170   ac_cv_prog_CC="$CC" # Let the user override the test.
2171 else
2172   ac_prog_rejected=no
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 for as_dir in $PATH
2175 do
2176   IFS=$as_save_IFS
2177   test -z "$as_dir" && as_dir=.
2178   for ac_exec_ext in '' $ac_executable_extensions; do
2179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2180     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2181        ac_prog_rejected=yes
2182        continue
2183      fi
2184     ac_cv_prog_CC="cc"
2185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186     break 2
2187   fi
2188 done
2189 done
2190
2191 if test $ac_prog_rejected = yes; then
2192   # We found a bogon in the path, so make sure we never use it.
2193   set dummy $ac_cv_prog_CC
2194   shift
2195   if test $# != 0; then
2196     # We chose a different compiler from the bogus one.
2197     # However, it has the same basename, so the bogon will be chosen
2198     # first if we set CC to just the basename; use the full file name.
2199     shift
2200     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2201   fi
2202 fi
2203 fi
2204 fi
2205 CC=$ac_cv_prog_CC
2206 if test -n "$CC"; then
2207   echo "$as_me:$LINENO: result: $CC" >&5
2208 echo "${ECHO_T}$CC" >&6
2209 else
2210   echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2212 fi
2213
2214 fi
2215 if test -z "$CC"; then
2216   if test -n "$ac_tool_prefix"; then
2217   for ac_prog in cl
2218   do
2219     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2221 echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223 if test "${ac_cv_prog_CC+set}" = set; then
2224   echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226   if test -n "$CC"; then
2227   ac_cv_prog_CC="$CC" # Let the user override the test.
2228 else
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232   IFS=$as_save_IFS
2233   test -z "$as_dir" && as_dir=.
2234   for ac_exec_ext in '' $ac_executable_extensions; do
2235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238     break 2
2239   fi
2240 done
2241 done
2242
2243 fi
2244 fi
2245 CC=$ac_cv_prog_CC
2246 if test -n "$CC"; then
2247   echo "$as_me:$LINENO: result: $CC" >&5
2248 echo "${ECHO_T}$CC" >&6
2249 else
2250   echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6
2252 fi
2253
2254     test -n "$CC" && break
2255   done
2256 fi
2257 if test -z "$CC"; then
2258   ac_ct_CC=$CC
2259   for ac_prog in cl
2260 do
2261   # Extract the first word of "$ac_prog", so it can be a program name with args.
2262 set dummy $ac_prog; ac_word=$2
2263 echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2265 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2266   echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268   if test -n "$ac_ct_CC"; then
2269   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274   IFS=$as_save_IFS
2275   test -z "$as_dir" && as_dir=.
2276   for ac_exec_ext in '' $ac_executable_extensions; do
2277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2278     ac_cv_prog_ac_ct_CC="$ac_prog"
2279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280     break 2
2281   fi
2282 done
2283 done
2284
2285 fi
2286 fi
2287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2288 if test -n "$ac_ct_CC"; then
2289   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2290 echo "${ECHO_T}$ac_ct_CC" >&6
2291 else
2292   echo "$as_me:$LINENO: result: no" >&5
2293 echo "${ECHO_T}no" >&6
2294 fi
2295
2296   test -n "$ac_ct_CC" && break
2297 done
2298
2299   CC=$ac_ct_CC
2300 fi
2301
2302 fi
2303
2304
2305 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: no acceptable C compiler found in \$PATH
2308 See \`config.log' for more details." >&2;}
2309    { (exit 1); exit 1; }; }
2310
2311 # Provide some information about the compiler.
2312 echo "$as_me:$LINENO:" \
2313      "checking for C compiler version" >&5
2314 ac_compiler=`set X $ac_compile; echo $2`
2315 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2316   (eval $ac_compiler --version </dev/null >&5) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }
2320 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2321   (eval $ac_compiler -v </dev/null >&5) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }
2325 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2326   (eval $ac_compiler -V </dev/null >&5) 2>&5
2327   ac_status=$?
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); }
2330
2331 cat >conftest.$ac_ext <<_ACEOF
2332 /* confdefs.h.  */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h.  */
2337
2338 int
2339 main ()
2340 {
2341
2342   ;
2343   return 0;
2344 }
2345 _ACEOF
2346 ac_clean_files_save=$ac_clean_files
2347 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2348 # Try to create an executable without -o first, disregard a.out.
2349 # It will help us diagnose broken compilers, and finding out an intuition
2350 # of exeext.
2351 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2352 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2353 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2354 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2355   (eval $ac_link_default) 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }; then
2359   # Find the output, starting from the most likely.  This scheme is
2360 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2361 # resort.
2362
2363 # Be careful to initialize this variable, since it used to be cached.
2364 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2365 ac_cv_exeext=
2366 # b.out is created by i960 compilers.
2367 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2368 do
2369   test -f "$ac_file" || continue
2370   case $ac_file in
2371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2372         ;;
2373     conftest.$ac_ext )
2374         # This is the source file.
2375         ;;
2376     [ab].out )
2377         # We found the default executable, but exeext='' is most
2378         # certainly right.
2379         break;;
2380     *.* )
2381         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2382         # FIXME: I believe we export ac_cv_exeext for Libtool,
2383         # but it would be cool to find out if it's true.  Does anybody
2384         # maintain Libtool? --akim.
2385         export ac_cv_exeext
2386         break;;
2387     * )
2388         break;;
2389   esac
2390 done
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2394
2395 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2396 See \`config.log' for more details." >&5
2397 echo "$as_me: error: C compiler cannot create executables
2398 See \`config.log' for more details." >&2;}
2399    { (exit 77); exit 77; }; }
2400 fi
2401
2402 ac_exeext=$ac_cv_exeext
2403 echo "$as_me:$LINENO: result: $ac_file" >&5
2404 echo "${ECHO_T}$ac_file" >&6
2405
2406 # Check the compiler produces executables we can run.  If not, either
2407 # the compiler is broken, or we cross compile.
2408 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2409 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2410 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2411 # If not cross compiling, check that we can run a simple program.
2412 if test "$cross_compiling" != yes; then
2413   if { ac_try='./$ac_file'
2414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415   (eval $ac_try) 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; }; then
2419     cross_compiling=no
2420   else
2421     if test "$cross_compiling" = maybe; then
2422         cross_compiling=yes
2423     else
2424         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2425 If you meant to cross compile, use \`--host'.
2426 See \`config.log' for more details." >&5
2427 echo "$as_me: error: cannot run C compiled programs.
2428 If you meant to cross compile, use \`--host'.
2429 See \`config.log' for more details." >&2;}
2430    { (exit 1); exit 1; }; }
2431     fi
2432   fi
2433 fi
2434 echo "$as_me:$LINENO: result: yes" >&5
2435 echo "${ECHO_T}yes" >&6
2436
2437 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2438 ac_clean_files=$ac_clean_files_save
2439 # Check the compiler produces executables we can run.  If not, either
2440 # the compiler is broken, or we cross compile.
2441 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2442 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2443 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2444 echo "${ECHO_T}$cross_compiling" >&6
2445
2446 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2447 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2449   (eval $ac_link) 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }; then
2453   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2454 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2455 # work properly (i.e., refer to `conftest.exe'), while it won't with
2456 # `rm'.
2457 for ac_file in conftest.exe conftest conftest.*; do
2458   test -f "$ac_file" || continue
2459   case $ac_file in
2460     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2461     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2462           export ac_cv_exeext
2463           break;;
2464     * ) break;;
2465   esac
2466 done
2467 else
2468   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2471 See \`config.log' for more details." >&2;}
2472    { (exit 1); exit 1; }; }
2473 fi
2474
2475 rm -f conftest$ac_cv_exeext
2476 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2477 echo "${ECHO_T}$ac_cv_exeext" >&6
2478
2479 rm -f conftest.$ac_ext
2480 EXEEXT=$ac_cv_exeext
2481 ac_exeext=$EXEEXT
2482 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2483 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2484 if test "${ac_cv_objext+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493
2494 int
2495 main ()
2496 {
2497
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 rm -f conftest.o conftest.obj
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504   (eval $ac_compile) 2>&5
2505   ac_status=$?
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); }; then
2508   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2509   case $ac_file in
2510     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2511     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2512        break;;
2513   esac
2514 done
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2522 See \`config.log' for more details." >&2;}
2523    { (exit 1); exit 1; }; }
2524 fi
2525
2526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2527 fi
2528 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2529 echo "${ECHO_T}$ac_cv_objext" >&6
2530 OBJEXT=$ac_cv_objext
2531 ac_objext=$OBJEXT
2532 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2533 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2534 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2535   echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537   cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h.  */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h.  */
2543
2544 int
2545 main ()
2546 {
2547 #ifndef __GNUC__
2548        choke me
2549 #endif
2550
2551   ;
2552   return 0;
2553 }
2554 _ACEOF
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557   (eval $ac_compile) 2>conftest.er1
2558   ac_status=$?
2559   grep -v '^ *+' conftest.er1 >conftest.err
2560   rm -f conftest.er1
2561   cat conftest.err >&5
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); } &&
2564          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566   (eval $ac_try) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; } &&
2570          { ac_try='test -s conftest.$ac_objext'
2571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572   (eval $ac_try) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; }; then
2576   ac_compiler_gnu=yes
2577 else
2578   echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581 ac_compiler_gnu=no
2582 fi
2583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2585
2586 fi
2587 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2588 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2589 GCC=`test $ac_compiler_gnu = yes && echo yes`
2590 ac_test_CFLAGS=${CFLAGS+set}
2591 ac_save_CFLAGS=$CFLAGS
2592 CFLAGS="-g"
2593 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2594 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2595 if test "${ac_cv_prog_cc_g+set}" = set; then
2596   echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598   cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h.  */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h.  */
2604
2605 int
2606 main ()
2607 {
2608
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615   (eval $ac_compile) 2>conftest.er1
2616   ac_status=$?
2617   grep -v '^ *+' conftest.er1 >conftest.err
2618   rm -f conftest.er1
2619   cat conftest.err >&5
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); } &&
2622          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; } &&
2628          { ac_try='test -s conftest.$ac_objext'
2629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630   (eval $ac_try) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; }; then
2634   ac_cv_prog_cc_g=yes
2635 else
2636   echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639 ac_cv_prog_cc_g=no
2640 fi
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642 fi
2643 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2645 if test "$ac_test_CFLAGS" = set; then
2646   CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648   if test "$GCC" = yes; then
2649     CFLAGS="-g -O2"
2650   else
2651     CFLAGS="-g"
2652   fi
2653 else
2654   if test "$GCC" = yes; then
2655     CFLAGS="-O2"
2656   else
2657     CFLAGS=
2658   fi
2659 fi
2660 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2661 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2662 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665   ac_cv_prog_cc_stdc=no
2666 ac_save_CC=$CC
2667 cat >conftest.$ac_ext <<_ACEOF
2668 /* confdefs.h.  */
2669 _ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h.  */
2673 #include <stdarg.h>
2674 #include <stdio.h>
2675 #include <sys/types.h>
2676 #include <sys/stat.h>
2677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2678 struct buf { int x; };
2679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680 static char *e (p, i)
2681      char **p;
2682      int i;
2683 {
2684   return p[i];
2685 }
2686 static char *f (char * (*g) (char **, int), char **p, ...)
2687 {
2688   char *s;
2689   va_list v;
2690   va_start (v,p);
2691   s = g (p, va_arg (v,int));
2692   va_end (v);
2693   return s;
2694 }
2695
2696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2697    function prototypes and stuff, but not '\xHH' hex character constants.
2698    These don't provoke an error unfortunately, instead are silently treated
2699    as 'x'.  The following induces an error, until -std1 is added to get
2700    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2701    array size at least.  It's necessary to write '\x00'==0 to get something
2702    that's true only with -std1.  */
2703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2704
2705 int test (int i, double x);
2706 struct s1 {int (*f) (int a);};
2707 struct s2 {int (*f) (double a);};
2708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2709 int argc;
2710 char **argv;
2711 int
2712 main ()
2713 {
2714 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2715   ;
2716   return 0;
2717 }
2718 _ACEOF
2719 # Don't try gcc -ansi; that turns off useful extensions and
2720 # breaks some systems' header files.
2721 # AIX                   -qlanglvl=ansi
2722 # Ultrix and OSF/1      -std1
2723 # HP-UX 10.20 and later -Ae
2724 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2725 # SVR4                  -Xc -D__EXTENSIONS__
2726 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2727 do
2728   CC="$ac_save_CC $ac_arg"
2729   rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731   (eval $ac_compile) 2>conftest.er1
2732   ac_status=$?
2733   grep -v '^ *+' conftest.er1 >conftest.err
2734   rm -f conftest.er1
2735   cat conftest.err >&5
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); } &&
2738          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740   (eval $ac_try) 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }; } &&
2744          { ac_try='test -s conftest.$ac_objext'
2745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746   (eval $ac_try) 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); }; }; then
2750   ac_cv_prog_cc_stdc=$ac_arg
2751 break
2752 else
2753   echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 fi
2757 rm -f conftest.err conftest.$ac_objext
2758 done
2759 rm -f conftest.$ac_ext conftest.$ac_objext
2760 CC=$ac_save_CC
2761
2762 fi
2763
2764 case "x$ac_cv_prog_cc_stdc" in
2765   x|xno)
2766     echo "$as_me:$LINENO: result: none needed" >&5
2767 echo "${ECHO_T}none needed" >&6 ;;
2768   *)
2769     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2771     CC="$CC $ac_cv_prog_cc_stdc" ;;
2772 esac
2773
2774 # Some people use a C++ compiler to compile C.  Since we use `exit',
2775 # in C++ we need to declare it.  In case someone uses the same compiler
2776 # for both compiling C and C++ we need to have the C++ compiler decide
2777 # the declaration of exit, since it's the most demanding environment.
2778 cat >conftest.$ac_ext <<_ACEOF
2779 #ifndef __cplusplus
2780   choke me
2781 #endif
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785   (eval $ac_compile) 2>conftest.er1
2786   ac_status=$?
2787   grep -v '^ *+' conftest.er1 >conftest.err
2788   rm -f conftest.er1
2789   cat conftest.err >&5
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; } &&
2798          { ac_try='test -s conftest.$ac_objext'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; }; then
2804   for ac_declaration in \
2805    '' \
2806    'extern "C" void std::exit (int) throw (); using std::exit;' \
2807    'extern "C" void std::exit (int); using std::exit;' \
2808    'extern "C" void exit (int) throw ();' \
2809    'extern "C" void exit (int);' \
2810    'void exit (int);'
2811 do
2812   cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h.  */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h.  */
2818 $ac_declaration
2819 #include <stdlib.h>
2820 int
2821 main ()
2822 {
2823 exit (42);
2824   ;
2825   return 0;
2826 }
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830   (eval $ac_compile) 2>conftest.er1
2831   ac_status=$?
2832   grep -v '^ *+' conftest.er1 >conftest.err
2833   rm -f conftest.er1
2834   cat conftest.err >&5
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); } &&
2837          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839   (eval $ac_try) 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); }; } &&
2843          { ac_try='test -s conftest.$ac_objext'
2844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; }; then
2849   :
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854 continue
2855 fi
2856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2857   cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h.  */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h.  */
2863 $ac_declaration
2864 int
2865 main ()
2866 {
2867 exit (42);
2868   ;
2869   return 0;
2870 }
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874   (eval $ac_compile) 2>conftest.er1
2875   ac_status=$?
2876   grep -v '^ *+' conftest.er1 >conftest.err
2877   rm -f conftest.er1
2878   cat conftest.err >&5
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); } &&
2881          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883   (eval $ac_try) 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; } &&
2887          { ac_try='test -s conftest.$ac_objext'
2888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889   (eval $ac_try) 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }; }; then
2893   break
2894 else
2895   echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 fi
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900 done
2901 rm -f conftest*
2902 if test -n "$ac_declaration"; then
2903   echo '#ifdef __cplusplus' >>confdefs.h
2904   echo $ac_declaration      >>confdefs.h
2905   echo '#endif'             >>confdefs.h
2906 fi
2907
2908 else
2909   echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 fi
2913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914 ac_ext=c
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 DEPDIR="${am__leading_dot}deps"
2920
2921           ac_config_commands="$ac_config_commands depfiles"
2922
2923
2924 am_make=${MAKE-make}
2925 cat > confinc << 'END'
2926 am__doit:
2927         @echo done
2928 .PHONY: am__doit
2929 END
2930 # If we don't find an include directive, just comment out the code.
2931 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2932 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2933 am__include="#"
2934 am__quote=
2935 _am_result=none
2936 # First try GNU make style include.
2937 echo "include confinc" > confmf
2938 # We grep out `Entering directory' and `Leaving directory'
2939 # messages which can occur if `w' ends up in MAKEFLAGS.
2940 # In particular we don't look at `^make:' because GNU make might
2941 # be invoked under some other name (usually "gmake"), in which
2942 # case it prints its new name instead of `make'.
2943 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2944    am__include=include
2945    am__quote=
2946    _am_result=GNU
2947 fi
2948 # Now try BSD make style include.
2949 if test "$am__include" = "#"; then
2950    echo '.include "confinc"' > confmf
2951    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2952       am__include=.include
2953       am__quote="\""
2954       _am_result=BSD
2955    fi
2956 fi
2957
2958
2959 echo "$as_me:$LINENO: result: $_am_result" >&5
2960 echo "${ECHO_T}$_am_result" >&6
2961 rm -f confinc confmf
2962
2963 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2964 if test "${enable_dependency_tracking+set}" = set; then
2965   enableval="$enable_dependency_tracking"
2966
2967 fi;
2968 if test "x$enable_dependency_tracking" != xno; then
2969   am_depcomp="$ac_aux_dir/depcomp"
2970   AMDEPBACKSLASH='\'
2971 fi
2972
2973
2974 if test "x$enable_dependency_tracking" != xno; then
2975   AMDEP_TRUE=
2976   AMDEP_FALSE='#'
2977 else
2978   AMDEP_TRUE='#'
2979   AMDEP_FALSE=
2980 fi
2981
2982
2983
2984
2985 depcc="$CC"   am_compiler_list=
2986
2987 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2988 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2989 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2990   echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2993   # We make a subdir and do the tests there.  Otherwise we can end up
2994   # making bogus files that we don't know about and never remove.  For
2995   # instance it was reported that on HP-UX the gcc test will end up
2996   # making a dummy file named `D' -- because `-MD' means `put the output
2997   # in D'.
2998   mkdir conftest.dir
2999   # Copy depcomp to subdir because otherwise we won't find it if we're
3000   # using a relative directory.
3001   cp "$am_depcomp" conftest.dir
3002   cd conftest.dir
3003   # We will build objects and dependencies in a subdirectory because
3004   # it helps to detect inapplicable dependency modes.  For instance
3005   # both Tru64's cc and ICC support -MD to output dependencies as a
3006   # side effect of compilation, but ICC will put the dependencies in
3007   # the current directory while Tru64 will put them in the object
3008   # directory.
3009   mkdir sub
3010
3011   am_cv_CC_dependencies_compiler_type=none
3012   if test "$am_compiler_list" = ""; then
3013      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3014   fi
3015   for depmode in $am_compiler_list; do
3016     # Setup a source with many dependencies, because some compilers
3017     # like to wrap large dependency lists on column 80 (with \), and
3018     # we should not choose a depcomp mode which is confused by this.
3019     #
3020     # We need to recreate these files for each test, as the compiler may
3021     # overwrite some of them when testing with obscure command lines.
3022     # This happens at least with the AIX C compiler.
3023     : > sub/conftest.c
3024     for i in 1 2 3 4 5 6; do
3025       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3026       : > sub/conftst$i.h
3027     done
3028     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3029
3030     case $depmode in
3031     nosideeffect)
3032       # after this tag, mechanisms are not by side-effect, so they'll
3033       # only be used when explicitly requested
3034       if test "x$enable_dependency_tracking" = xyes; then
3035         continue
3036       else
3037         break
3038       fi
3039       ;;
3040     none) break ;;
3041     esac
3042     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3043     # mode.  It turns out that the SunPro C++ compiler does not properly
3044     # handle `-M -o', and we need to detect this.
3045     if depmode=$depmode \
3046        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3047        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3048        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3049          >/dev/null 2>conftest.err &&
3050        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3051        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3052        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3053       # icc doesn't choke on unknown options, it will just issue warnings
3054       # (even with -Werror).  So we grep stderr for any message
3055       # that says an option was ignored.
3056       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3057         am_cv_CC_dependencies_compiler_type=$depmode
3058         break
3059       fi
3060     fi
3061   done
3062
3063   cd ..
3064   rm -rf conftest.dir
3065 else
3066   am_cv_CC_dependencies_compiler_type=none
3067 fi
3068
3069 fi
3070 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3071 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3072 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3073
3074
3075
3076 if
3077   test "x$enable_dependency_tracking" != xno \
3078   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3079   am__fastdepCC_TRUE=
3080   am__fastdepCC_FALSE='#'
3081 else
3082   am__fastdepCC_TRUE='#'
3083   am__fastdepCC_FALSE=
3084 fi
3085
3086
3087 ac_ext=cc
3088 ac_cpp='$CXXCPP $CPPFLAGS'
3089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3092 if test -n "$ac_tool_prefix"; then
3093   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3094   do
3095     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3097 echo "$as_me:$LINENO: checking for $ac_word" >&5
3098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099 if test "${ac_cv_prog_CXX+set}" = set; then
3100   echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102   if test -n "$CXX"; then
3103   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110   for ac_exec_ext in '' $ac_executable_extensions; do
3111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114     break 2
3115   fi
3116 done
3117 done
3118
3119 fi
3120 fi
3121 CXX=$ac_cv_prog_CXX
3122 if test -n "$CXX"; then
3123   echo "$as_me:$LINENO: result: $CXX" >&5
3124 echo "${ECHO_T}$CXX" >&6
3125 else
3126   echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6
3128 fi
3129
3130     test -n "$CXX" && break
3131   done
3132 fi
3133 if test -z "$CXX"; then
3134   ac_ct_CXX=$CXX
3135   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3136 do
3137   # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3141 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3142   echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144   if test -n "$ac_ct_CXX"; then
3145   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150   IFS=$as_save_IFS
3151   test -z "$as_dir" && as_dir=.
3152   for ac_exec_ext in '' $ac_executable_extensions; do
3153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154     ac_cv_prog_ac_ct_CXX="$ac_prog"
3155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156     break 2
3157   fi
3158 done
3159 done
3160
3161 fi
3162 fi
3163 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3164 if test -n "$ac_ct_CXX"; then
3165   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3166 echo "${ECHO_T}$ac_ct_CXX" >&6
3167 else
3168   echo "$as_me:$LINENO: result: no" >&5
3169 echo "${ECHO_T}no" >&6
3170 fi
3171
3172   test -n "$ac_ct_CXX" && break
3173 done
3174 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3175
3176   CXX=$ac_ct_CXX
3177 fi
3178
3179
3180 # Provide some information about the compiler.
3181 echo "$as_me:$LINENO:" \
3182      "checking for C++ compiler version" >&5
3183 ac_compiler=`set X $ac_compile; echo $2`
3184 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3185   (eval $ac_compiler --version </dev/null >&5) 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }
3189 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3190   (eval $ac_compiler -v </dev/null >&5) 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }
3194 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3195   (eval $ac_compiler -V </dev/null >&5) 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }
3199
3200 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3201 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3202 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   cat >conftest.$ac_ext <<_ACEOF
3206 /* confdefs.h.  */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h.  */
3211
3212 int
3213 main ()
3214 {
3215 #ifndef __GNUC__
3216        choke me
3217 #endif
3218
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225   (eval $ac_compile) 2>conftest.er1
3226   ac_status=$?
3227   grep -v '^ *+' conftest.er1 >conftest.err
3228   rm -f conftest.er1
3229   cat conftest.err >&5
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); } &&
3232          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234   (eval $ac_try) 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); }; } &&
3238          { ac_try='test -s conftest.$ac_objext'
3239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240   (eval $ac_try) 2>&5
3241   ac_status=$?
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); }; }; then
3244   ac_compiler_gnu=yes
3245 else
3246   echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3248
3249 ac_compiler_gnu=no
3250 fi
3251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3252 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3253
3254 fi
3255 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3256 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3257 GXX=`test $ac_compiler_gnu = yes && echo yes`
3258 ac_test_CXXFLAGS=${CXXFLAGS+set}
3259 ac_save_CXXFLAGS=$CXXFLAGS
3260 CXXFLAGS="-g"
3261 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3262 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3263 if test "${ac_cv_prog_cxx_g+set}" = set; then
3264   echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266   cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272
3273 int
3274 main ()
3275 {
3276
3277   ;
3278   return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283   (eval $ac_compile) 2>conftest.er1
3284   ac_status=$?
3285   grep -v '^ *+' conftest.er1 >conftest.err
3286   rm -f conftest.er1
3287   cat conftest.err >&5
3288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289   (exit $ac_status); } &&
3290          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292   (eval $ac_try) 2>&5
3293   ac_status=$?
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); }; } &&
3296          { ac_try='test -s conftest.$ac_objext'
3297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298   (eval $ac_try) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); }; }; then
3302   ac_cv_prog_cxx_g=yes
3303 else
3304   echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307 ac_cv_prog_cxx_g=no
3308 fi
3309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3310 fi
3311 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3312 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3313 if test "$ac_test_CXXFLAGS" = set; then
3314   CXXFLAGS=$ac_save_CXXFLAGS
3315 elif test $ac_cv_prog_cxx_g = yes; then
3316   if test "$GXX" = yes; then
3317     CXXFLAGS="-g -O2"
3318   else
3319     CXXFLAGS="-g"
3320   fi
3321 else
3322   if test "$GXX" = yes; then
3323     CXXFLAGS="-O2"
3324   else
3325     CXXFLAGS=
3326   fi
3327 fi
3328 for ac_declaration in \
3329    '' \
3330    'extern "C" void std::exit (int) throw (); using std::exit;' \
3331    'extern "C" void std::exit (int); using std::exit;' \
3332    'extern "C" void exit (int) throw ();' \
3333    'extern "C" void exit (int);' \
3334    'void exit (int);'
3335 do
3336   cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h.  */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h.  */
3342 $ac_declaration
3343 #include <stdlib.h>
3344 int
3345 main ()
3346 {
3347 exit (42);
3348   ;
3349   return 0;
3350 }
3351 _ACEOF
3352 rm -f conftest.$ac_objext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354   (eval $ac_compile) 2>conftest.er1
3355   ac_status=$?
3356   grep -v '^ *+' conftest.er1 >conftest.err
3357   rm -f conftest.er1
3358   cat conftest.err >&5
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); } &&
3361          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363   (eval $ac_try) 2>&5
3364   ac_status=$?
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); }; } &&
3367          { ac_try='test -s conftest.$ac_objext'
3368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369   (eval $ac_try) 2>&5
3370   ac_status=$?
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); }; }; then
3373   :
3374 else
3375   echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3377
3378 continue
3379 fi
3380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3381   cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h.  */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h.  */
3387 $ac_declaration
3388 int
3389 main ()
3390 {
3391 exit (42);
3392   ;
3393   return 0;
3394 }
3395 _ACEOF
3396 rm -f conftest.$ac_objext
3397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398   (eval $ac_compile) 2>conftest.er1
3399   ac_status=$?
3400   grep -v '^ *+' conftest.er1 >conftest.err
3401   rm -f conftest.er1
3402   cat conftest.err >&5
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); } &&
3405          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407   (eval $ac_try) 2>&5
3408   ac_status=$?
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); }; } &&
3411          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3417   break
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422 fi
3423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3424 done
3425 rm -f conftest*
3426 if test -n "$ac_declaration"; then
3427   echo '#ifdef __cplusplus' >>confdefs.h
3428   echo $ac_declaration      >>confdefs.h
3429   echo '#endif'             >>confdefs.h
3430 fi
3431
3432 ac_ext=c
3433 ac_cpp='$CPP $CPPFLAGS'
3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437
3438 depcc="$CXX"  am_compiler_list=
3439
3440 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3442 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3443   echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3446   # We make a subdir and do the tests there.  Otherwise we can end up
3447   # making bogus files that we don't know about and never remove.  For
3448   # instance it was reported that on HP-UX the gcc test will end up
3449   # making a dummy file named `D' -- because `-MD' means `put the output
3450   # in D'.
3451   mkdir conftest.dir
3452   # Copy depcomp to subdir because otherwise we won't find it if we're
3453   # using a relative directory.
3454   cp "$am_depcomp" conftest.dir
3455   cd conftest.dir
3456   # We will build objects and dependencies in a subdirectory because
3457   # it helps to detect inapplicable dependency modes.  For instance
3458   # both Tru64's cc and ICC support -MD to output dependencies as a
3459   # side effect of compilation, but ICC will put the dependencies in
3460   # the current directory while Tru64 will put them in the object
3461   # directory.
3462   mkdir sub
3463
3464   am_cv_CXX_dependencies_compiler_type=none
3465   if test "$am_compiler_list" = ""; then
3466      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3467   fi
3468   for depmode in $am_compiler_list; do
3469     # Setup a source with many dependencies, because some compilers
3470     # like to wrap large dependency lists on column 80 (with \), and
3471     # we should not choose a depcomp mode which is confused by this.
3472     #
3473     # We need to recreate these files for each test, as the compiler may
3474     # overwrite some of them when testing with obscure command lines.
3475     # This happens at least with the AIX C compiler.
3476     : > sub/conftest.c
3477     for i in 1 2 3 4 5 6; do
3478       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3479       : > sub/conftst$i.h
3480     done
3481     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3482
3483     case $depmode in
3484     nosideeffect)
3485       # after this tag, mechanisms are not by side-effect, so they'll
3486       # only be used when explicitly requested
3487       if test "x$enable_dependency_tracking" = xyes; then
3488         continue
3489       else
3490         break
3491       fi
3492       ;;
3493     none) break ;;
3494     esac
3495     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3496     # mode.  It turns out that the SunPro C++ compiler does not properly
3497     # handle `-M -o', and we need to detect this.
3498     if depmode=$depmode \
3499        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3500        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3501        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3502          >/dev/null 2>conftest.err &&
3503        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3504        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3505        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3506       # icc doesn't choke on unknown options, it will just issue warnings
3507       # (even with -Werror).  So we grep stderr for any message
3508       # that says an option was ignored.
3509       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3510         am_cv_CXX_dependencies_compiler_type=$depmode
3511         break
3512       fi
3513     fi
3514   done
3515
3516   cd ..
3517   rm -rf conftest.dir
3518 else
3519   am_cv_CXX_dependencies_compiler_type=none
3520 fi
3521
3522 fi
3523 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3524 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3525 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3526
3527
3528
3529 if
3530   test "x$enable_dependency_tracking" != xno \
3531   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3532   am__fastdepCXX_TRUE=
3533   am__fastdepCXX_FALSE='#'
3534 else
3535   am__fastdepCXX_TRUE='#'
3536   am__fastdepCXX_FALSE=
3537 fi
3538
3539
3540
3541 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3542 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3543 if test "${ac_cv_c_bigendian+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   # See if sys/param.h defines the BYTE_ORDER macro.
3547 cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h.  */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h.  */
3553 #include <sys/types.h>
3554 #include <sys/param.h>
3555
3556 int
3557 main ()
3558 {
3559 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3560  bogus endian macros
3561 #endif
3562
3563   ;
3564   return 0;
3565 }
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569   (eval $ac_compile) 2>conftest.er1
3570   ac_status=$?
3571   grep -v '^ *+' conftest.er1 >conftest.err
3572   rm -f conftest.er1
3573   cat conftest.err >&5
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } &&
3576          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578   (eval $ac_try) 2>&5
3579   ac_status=$?
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); }; } &&
3582          { ac_try='test -s conftest.$ac_objext'
3583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584   (eval $ac_try) 2>&5
3585   ac_status=$?
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); }; }; then
3588   # It does; now see whether it defined to BIG_ENDIAN or not.
3589 cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h.  */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h.  */
3595 #include <sys/types.h>
3596 #include <sys/param.h>
3597
3598 int
3599 main ()
3600 {
3601 #if BYTE_ORDER != BIG_ENDIAN
3602  not big endian
3603 #endif
3604
3605   ;
3606   return 0;
3607 }
3608 _ACEOF
3609 rm -f conftest.$ac_objext
3610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3611   (eval $ac_compile) 2>conftest.er1
3612   ac_status=$?
3613   grep -v '^ *+' conftest.er1 >conftest.err
3614   rm -f conftest.er1
3615   cat conftest.err >&5
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); } &&
3618          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620   (eval $ac_try) 2>&5
3621   ac_status=$?
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); }; } &&
3624          { ac_try='test -s conftest.$ac_objext'
3625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626   (eval $ac_try) 2>&5
3627   ac_status=$?
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); }; }; then
3630   ac_cv_c_bigendian=yes
3631 else
3632   echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 ac_cv_c_bigendian=no
3636 fi
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 else
3639   echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 # It does not; compile a test program.
3643 if test "$cross_compiling" = yes; then
3644   # try to guess the endianness by grepping values into an object file
3645   ac_cv_c_bigendian=unknown
3646   cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h.  */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h.  */
3652 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3653 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3654 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3655 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3656 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3657 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3658 int
3659 main ()
3660 {
3661  _ascii (); _ebcdic ();
3662   ;
3663   return 0;
3664 }
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668   (eval $ac_compile) 2>conftest.er1
3669   ac_status=$?
3670   grep -v '^ *+' conftest.er1 >conftest.err
3671   rm -f conftest.er1
3672   cat conftest.err >&5
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); } &&
3675          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677   (eval $ac_try) 2>&5
3678   ac_status=$?
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); }; } &&
3681          { ac_try='test -s conftest.$ac_objext'
3682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683   (eval $ac_try) 2>&5
3684   ac_status=$?
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); }; }; then
3687   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3688   ac_cv_c_bigendian=yes
3689 fi
3690 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3691   if test "$ac_cv_c_bigendian" = unknown; then
3692     ac_cv_c_bigendian=no
3693   else
3694     # finding both strings is unlikely to happen, but who knows?
3695     ac_cv_c_bigendian=unknown
3696   fi
3697 fi
3698 else
3699   echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702 fi
3703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3704 else
3705   cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h.  */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h.  */
3711 int
3712 main ()
3713 {
3714   /* Are we little or big endian?  From Harbison&Steele.  */
3715   union
3716   {
3717     long l;
3718     char c[sizeof (long)];
3719   } u;
3720   u.l = 1;
3721   exit (u.c[sizeof (long) - 1] == 1);
3722 }
3723 _ACEOF
3724 rm -f conftest$ac_exeext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3726   (eval $ac_link) 2>&5
3727   ac_status=$?
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731   (eval $ac_try) 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); }; }; then
3735   ac_cv_c_bigendian=no
3736 else
3737   echo "$as_me: program exited with status $ac_status" >&5
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 ( exit $ac_status )
3742 ac_cv_c_bigendian=yes
3743 fi
3744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3745 fi
3746 fi
3747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3748 fi
3749 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3750 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3751 case $ac_cv_c_bigendian in
3752   yes)
3753
3754 cat >>confdefs.h <<\_ACEOF
3755 #define WORDS_BIGENDIAN 1
3756 _ACEOF
3757  ;;
3758   no)
3759      ;;
3760   *)
3761     { { echo "$as_me:$LINENO: error: unknown endianness
3762 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3763 echo "$as_me: error: unknown endianness
3764 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3765    { (exit 1); exit 1; }; } ;;
3766 esac
3767
3768
3769 # Extract the first word of "wx-config", so it can be a program name with args.
3770 set dummy wx-config; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_path_wxconfig+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   case $wxconfig in
3777   [\\/]* | ?:[\\/]*)
3778   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3779   ;;
3780   *)
3781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784   IFS=$as_save_IFS
3785   test -z "$as_dir" && as_dir=.
3786   for ac_exec_ext in '' $ac_executable_extensions; do
3787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790     break 2
3791   fi
3792 done
3793 done
3794
3795   ;;
3796 esac
3797 fi
3798 wxconfig=$ac_cv_path_wxconfig
3799
3800 if test -n "$wxconfig"; then
3801   echo "$as_me:$LINENO: result: $wxconfig" >&5
3802 echo "${ECHO_T}$wxconfig" >&6
3803 else
3804   echo "$as_me:$LINENO: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3806 fi
3807
3808
3809 # Make sure we can run config.sub.
3810 $ac_config_sub sun4 >/dev/null 2>&1 ||
3811   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3812 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3813    { (exit 1); exit 1; }; }
3814
3815 echo "$as_me:$LINENO: checking build system type" >&5
3816 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3817 if test "${ac_cv_build+set}" = set; then
3818   echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820   ac_cv_build_alias=$build_alias
3821 test -z "$ac_cv_build_alias" &&
3822   ac_cv_build_alias=`$ac_config_guess`
3823 test -z "$ac_cv_build_alias" &&
3824   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3825 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3826    { (exit 1); exit 1; }; }
3827 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3828   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3829 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3830    { (exit 1); exit 1; }; }
3831
3832 fi
3833 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3834 echo "${ECHO_T}$ac_cv_build" >&6
3835 build=$ac_cv_build
3836 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3837 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3838 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3839
3840
3841 echo "$as_me:$LINENO: checking host system type" >&5
3842 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3843 if test "${ac_cv_host+set}" = set; then
3844   echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846   ac_cv_host_alias=$host_alias
3847 test -z "$ac_cv_host_alias" &&
3848   ac_cv_host_alias=$ac_cv_build_alias
3849 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3850   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3851 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3852    { (exit 1); exit 1; }; }
3853
3854 fi
3855 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3856 echo "${ECHO_T}$ac_cv_host" >&6
3857 host=$ac_cv_host
3858 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3859 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3860 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3861
3862
3863 echo "$as_me:$LINENO: checking for inline" >&5
3864 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3865 if test "${ac_cv_c_inline+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   ac_cv_c_inline=no
3869 for ac_kw in inline __inline__ __inline; do
3870   cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h.  */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h.  */
3876 #ifndef __cplusplus
3877 typedef int foo_t;
3878 static $ac_kw foo_t static_foo () {return 0; }
3879 $ac_kw foo_t foo () {return 0; }
3880 #endif
3881
3882 _ACEOF
3883 rm -f conftest.$ac_objext
3884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3885   (eval $ac_compile) 2>conftest.er1
3886   ac_status=$?
3887   grep -v '^ *+' conftest.er1 >conftest.err
3888   rm -f conftest.er1
3889   cat conftest.err >&5
3890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891   (exit $ac_status); } &&
3892          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894   (eval $ac_try) 2>&5
3895   ac_status=$?
3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897   (exit $ac_status); }; } &&
3898          { ac_try='test -s conftest.$ac_objext'
3899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900   (eval $ac_try) 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); }; }; then
3904   ac_cv_c_inline=$ac_kw; break
3905 else
3906   echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3908
3909 fi
3910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3911 done
3912
3913 fi
3914 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3915 echo "${ECHO_T}$ac_cv_c_inline" >&6
3916
3917
3918 case $ac_cv_c_inline in
3919   inline | yes) ;;
3920   *)
3921     case $ac_cv_c_inline in
3922       no) ac_val=;;
3923       *) ac_val=$ac_cv_c_inline;;
3924     esac
3925     cat >>confdefs.h <<_ACEOF
3926 #ifndef __cplusplus
3927 #define inline $ac_val
3928 #endif
3929 _ACEOF
3930     ;;
3931 esac
3932
3933 ac_ext=c
3934 ac_cpp='$CPP $CPPFLAGS'
3935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3940 # On Suns, sometimes $CPP names a directory.
3941 if test -n "$CPP" && test -d "$CPP"; then
3942   CPP=
3943 fi
3944 if test -z "$CPP"; then
3945   if test "${ac_cv_prog_CPP+set}" = set; then
3946   echo $ECHO_N "(cached) $ECHO_C" >&6
3947 else
3948       # Double quotes because CPP needs to be expanded
3949     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3950     do
3951       ac_preproc_ok=false
3952 for ac_c_preproc_warn_flag in '' yes
3953 do
3954   # Use a header file that comes with gcc, so configuring glibc
3955   # with a fresh cross-compiler works.
3956   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3957   # <limits.h> exists even on freestanding compilers.
3958   # On the NeXT, cc -E runs the code through the compiler's parser,
3959   # not just through cpp. "Syntax error" is here to catch this case.
3960   cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h.  */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h.  */
3966 #ifdef __STDC__
3967 # include <limits.h>
3968 #else
3969 # include <assert.h>
3970 #endif
3971                      Syntax error
3972 _ACEOF
3973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3975   ac_status=$?
3976   grep -v '^ *+' conftest.er1 >conftest.err
3977   rm -f conftest.er1
3978   cat conftest.err >&5
3979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); } >/dev/null; then
3981   if test -s conftest.err; then
3982     ac_cpp_err=$ac_c_preproc_warn_flag
3983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3984   else
3985     ac_cpp_err=
3986   fi
3987 else
3988   ac_cpp_err=yes
3989 fi
3990 if test -z "$ac_cpp_err"; then
3991   :
3992 else
3993   echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3995
3996   # Broken: fails on valid input.
3997 continue
3998 fi
3999 rm -f conftest.err conftest.$ac_ext
4000
4001   # OK, works on sane cases.  Now check whether non-existent headers
4002   # can be detected and how.
4003   cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h.  */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h.  */
4009 #include <ac_nonexistent.h>
4010 _ACEOF
4011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4012   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4013   ac_status=$?
4014   grep -v '^ *+' conftest.er1 >conftest.err
4015   rm -f conftest.er1
4016   cat conftest.err >&5
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); } >/dev/null; then
4019   if test -s conftest.err; then
4020     ac_cpp_err=$ac_c_preproc_warn_flag
4021     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4022   else
4023     ac_cpp_err=
4024   fi
4025 else
4026   ac_cpp_err=yes
4027 fi
4028 if test -z "$ac_cpp_err"; then
4029   # Broken: success on invalid input.
4030 continue
4031 else
4032   echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4034
4035   # Passes both tests.
4036 ac_preproc_ok=:
4037 break
4038 fi
4039 rm -f conftest.err conftest.$ac_ext
4040
4041 done
4042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4043 rm -f conftest.err conftest.$ac_ext
4044 if $ac_preproc_ok; then
4045   break
4046 fi
4047
4048     done
4049     ac_cv_prog_CPP=$CPP
4050
4051 fi
4052   CPP=$ac_cv_prog_CPP
4053 else
4054   ac_cv_prog_CPP=$CPP
4055 fi
4056 echo "$as_me:$LINENO: result: $CPP" >&5
4057 echo "${ECHO_T}$CPP" >&6
4058 ac_preproc_ok=false
4059 for ac_c_preproc_warn_flag in '' yes
4060 do
4061   # Use a header file that comes with gcc, so configuring glibc
4062   # with a fresh cross-compiler works.
4063   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4064   # <limits.h> exists even on freestanding compilers.
4065   # On the NeXT, cc -E runs the code through the compiler's parser,
4066   # not just through cpp. "Syntax error" is here to catch this case.
4067   cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h.  */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h.  */
4073 #ifdef __STDC__
4074 # include <limits.h>
4075 #else
4076 # include <assert.h>
4077 #endif
4078                      Syntax error
4079 _ACEOF
4080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4081   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4082   ac_status=$?
4083   grep -v '^ *+' conftest.er1 >conftest.err
4084   rm -f conftest.er1
4085   cat conftest.err >&5
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); } >/dev/null; then
4088   if test -s conftest.err; then
4089     ac_cpp_err=$ac_c_preproc_warn_flag
4090     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4091   else
4092     ac_cpp_err=
4093   fi
4094 else
4095   ac_cpp_err=yes
4096 fi
4097 if test -z "$ac_cpp_err"; then
4098   :
4099 else
4100   echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4102
4103   # Broken: fails on valid input.
4104 continue
4105 fi
4106 rm -f conftest.err conftest.$ac_ext
4107
4108   # OK, works on sane cases.  Now check whether non-existent headers
4109   # can be detected and how.
4110   cat >conftest.$ac_ext <<_ACEOF
4111 /* confdefs.h.  */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h.  */
4116 #include <ac_nonexistent.h>
4117 _ACEOF
4118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4119   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4120   ac_status=$?
4121   grep -v '^ *+' conftest.er1 >conftest.err
4122   rm -f conftest.er1
4123   cat conftest.err >&5
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); } >/dev/null; then
4126   if test -s conftest.err; then
4127     ac_cpp_err=$ac_c_preproc_warn_flag
4128     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4129   else
4130     ac_cpp_err=
4131   fi
4132 else
4133   ac_cpp_err=yes
4134 fi
4135 if test -z "$ac_cpp_err"; then
4136   # Broken: success on invalid input.
4137 continue
4138 else
4139   echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4141
4142   # Passes both tests.
4143 ac_preproc_ok=:
4144 break
4145 fi
4146 rm -f conftest.err conftest.$ac_ext
4147
4148 done
4149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4150 rm -f conftest.err conftest.$ac_ext
4151 if $ac_preproc_ok; then
4152   :
4153 else
4154   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4155 See \`config.log' for more details." >&5
4156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4157 See \`config.log' for more details." >&2;}
4158    { (exit 1); exit 1; }; }
4159 fi
4160
4161 ac_ext=c
4162 ac_cpp='$CPP $CPPFLAGS'
4163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4166
4167
4168 echo "$as_me:$LINENO: checking for egrep" >&5
4169 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4170 if test "${ac_cv_prog_egrep+set}" = set; then
4171   echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4174     then ac_cv_prog_egrep='grep -E'
4175     else ac_cv_prog_egrep='egrep'
4176     fi
4177 fi
4178 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4179 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4180  EGREP=$ac_cv_prog_egrep
4181
4182
4183 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4184 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4185 if test "${ac_cv_header_stdc+set}" = set; then
4186   echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188   cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h.  */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h.  */
4194 #include <stdlib.h>
4195 #include <stdarg.h>
4196 #include <string.h>
4197 #include <float.h>
4198
4199 int
4200 main ()
4201 {
4202
4203   ;
4204   return 0;
4205 }
4206 _ACEOF
4207 rm -f conftest.$ac_objext
4208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4209   (eval $ac_compile) 2>conftest.er1
4210   ac_status=$?
4211   grep -v '^ *+' conftest.er1 >conftest.err
4212   rm -f conftest.er1
4213   cat conftest.err >&5
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); } &&
4216          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
4222          { ac_try='test -s conftest.$ac_objext'
4223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224   (eval $ac_try) 2>&5
4225   ac_status=$?
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); }; }; then
4228   ac_cv_header_stdc=yes
4229 else
4230   echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4232
4233 ac_cv_header_stdc=no
4234 fi
4235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4236
4237 if test $ac_cv_header_stdc = yes; then
4238   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4239   cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h.  */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h.  */
4245 #include <string.h>
4246
4247 _ACEOF
4248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4249   $EGREP "memchr" >/dev/null 2>&1; then
4250   :
4251 else
4252   ac_cv_header_stdc=no
4253 fi
4254 rm -f conftest*
4255
4256 fi
4257
4258 if test $ac_cv_header_stdc = yes; then
4259   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4260   cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h.  */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h.  */
4266 #include <stdlib.h>
4267
4268 _ACEOF
4269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4270   $EGREP "free" >/dev/null 2>&1; then
4271   :
4272 else
4273   ac_cv_header_stdc=no
4274 fi
4275 rm -f conftest*
4276
4277 fi
4278
4279 if test $ac_cv_header_stdc = yes; then
4280   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4281   if test "$cross_compiling" = yes; then
4282   :
4283 else
4284   cat >conftest.$ac_ext <<_ACEOF
4285 /* confdefs.h.  */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h.  */
4290 #include <ctype.h>
4291 #if ((' ' & 0x0FF) == 0x020)
4292 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4293 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4294 #else
4295 # define ISLOWER(c) \
4296                    (('a' <= (c) && (c) <= 'i') \
4297                      || ('j' <= (c) && (c) <= 'r') \
4298                      || ('s' <= (c) && (c) <= 'z'))
4299 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4300 #endif
4301
4302 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4303 int
4304 main ()
4305 {
4306   int i;
4307   for (i = 0; i < 256; i++)
4308     if (XOR (islower (i), ISLOWER (i))
4309         || toupper (i) != TOUPPER (i))
4310       exit(2);
4311   exit (0);
4312 }
4313 _ACEOF
4314 rm -f conftest$ac_exeext
4315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4316   (eval $ac_link) 2>&5
4317   ac_status=$?
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321   (eval $ac_try) 2>&5
4322   ac_status=$?
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); }; }; then
4325   :
4326 else
4327   echo "$as_me: program exited with status $ac_status" >&5
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 ( exit $ac_status )
4332 ac_cv_header_stdc=no
4333 fi
4334 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4335 fi
4336 fi
4337 fi
4338 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4339 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4340 if test $ac_cv_header_stdc = yes; then
4341
4342 cat >>confdefs.h <<\_ACEOF
4343 #define STDC_HEADERS 1
4344 _ACEOF
4345
4346 fi
4347
4348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4359                   inttypes.h stdint.h unistd.h
4360 do
4361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4362 echo "$as_me:$LINENO: checking for $ac_header" >&5
4363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4365   echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367   cat >conftest.$ac_ext <<_ACEOF
4368 /* confdefs.h.  */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h.  */
4373 $ac_includes_default
4374
4375 #include <$ac_header>
4376 _ACEOF
4377 rm -f conftest.$ac_objext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379   (eval $ac_compile) 2>conftest.er1
4380   ac_status=$?
4381   grep -v '^ *+' conftest.er1 >conftest.err
4382   rm -f conftest.er1
4383   cat conftest.err >&5
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); } &&
4386          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388   (eval $ac_try) 2>&5
4389   ac_status=$?
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); }; } &&
4392          { ac_try='test -s conftest.$ac_objext'
4393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394   (eval $ac_try) 2>&5
4395   ac_status=$?
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); }; }; then
4398   eval "$as_ac_Header=yes"
4399 else
4400   echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403 eval "$as_ac_Header=no"
4404 fi
4405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4406 fi
4407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4410   cat >>confdefs.h <<_ACEOF
4411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4412 _ACEOF
4413
4414 fi
4415
4416 done
4417
4418
4419 echo "$as_me:$LINENO: checking for short" >&5
4420 echo $ECHO_N "checking for short... $ECHO_C" >&6
4421 if test "${ac_cv_type_short+set}" = set; then
4422   echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424   cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h.  */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h.  */
4430 $ac_includes_default
4431 int
4432 main ()
4433 {
4434 if ((short *) 0)
4435   return 0;
4436 if (sizeof (short))
4437   return 0;
4438   ;
4439   return 0;
4440 }
4441 _ACEOF
4442 rm -f conftest.$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444   (eval $ac_compile) 2>conftest.er1
4445   ac_status=$?
4446   grep -v '^ *+' conftest.er1 >conftest.err
4447   rm -f conftest.er1
4448   cat conftest.err >&5
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); } &&
4451          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453   (eval $ac_try) 2>&5
4454   ac_status=$?
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); }; } &&
4457          { ac_try='test -s conftest.$ac_objext'
4458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459   (eval $ac_try) 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); }; }; then
4463   ac_cv_type_short=yes
4464 else
4465   echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4467
4468 ac_cv_type_short=no
4469 fi
4470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4471 fi
4472 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4473 echo "${ECHO_T}$ac_cv_type_short" >&6
4474
4475 echo "$as_me:$LINENO: checking size of short" >&5
4476 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4477 if test "${ac_cv_sizeof_short+set}" = set; then
4478   echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480   if test "$ac_cv_type_short" = yes; then
4481   # The cast to unsigned long works around a bug in the HP C Compiler
4482   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4483   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4484   # This bug is HP SR number 8606223364.
4485   if test "$cross_compiling" = yes; then
4486   # Depending upon the size, compute the lo and hi bounds.
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h.  */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h.  */
4493 $ac_includes_default
4494 int
4495 main ()
4496 {
4497 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4498 test_array [0] = 0
4499
4500   ;
4501   return 0;
4502 }
4503 _ACEOF
4504 rm -f conftest.$ac_objext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506   (eval $ac_compile) 2>conftest.er1
4507   ac_status=$?
4508   grep -v '^ *+' conftest.er1 >conftest.err
4509   rm -f conftest.er1
4510   cat conftest.err >&5
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); } &&
4513          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515   (eval $ac_try) 2>&5
4516   ac_status=$?
4517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518   (exit $ac_status); }; } &&
4519          { ac_try='test -s conftest.$ac_objext'
4520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521   (eval $ac_try) 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }; }; then
4525   ac_lo=0 ac_mid=0
4526   while :; do
4527     cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h.  */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h.  */
4533 $ac_includes_default
4534 int
4535 main ()
4536 {
4537 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4538 test_array [0] = 0
4539
4540   ;
4541   return 0;
4542 }
4543 _ACEOF
4544 rm -f conftest.$ac_objext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546   (eval $ac_compile) 2>conftest.er1
4547   ac_status=$?
4548   grep -v '^ *+' conftest.er1 >conftest.err
4549   rm -f conftest.er1
4550   cat conftest.err >&5
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); } &&
4553          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555   (eval $ac_try) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }; } &&
4559          { ac_try='test -s conftest.$ac_objext'
4560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561   (eval $ac_try) 2>&5
4562   ac_status=$?
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); }; }; then
4565   ac_hi=$ac_mid; break
4566 else
4567   echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4569
4570 ac_lo=`expr $ac_mid + 1`
4571                     if test $ac_lo -le $ac_mid; then
4572                       ac_lo= ac_hi=
4573                       break
4574                     fi
4575                     ac_mid=`expr 2 '*' $ac_mid + 1`
4576 fi
4577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4578   done
4579 else
4580   echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4582
4583 cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589 $ac_includes_default
4590 int
4591 main ()
4592 {
4593 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4594 test_array [0] = 0
4595
4596   ;
4597   return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest.$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602   (eval $ac_compile) 2>conftest.er1
4603   ac_status=$?
4604   grep -v '^ *+' conftest.er1 >conftest.err
4605   rm -f conftest.er1
4606   cat conftest.err >&5
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } &&
4609          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611   (eval $ac_try) 2>&5
4612   ac_status=$?
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); }; } &&
4615          { ac_try='test -s conftest.$ac_objext'
4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617   (eval $ac_try) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; }; then
4621   ac_hi=-1 ac_mid=-1
4622   while :; do
4623     cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h.  */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h.  */
4629 $ac_includes_default
4630 int
4631 main ()
4632 {
4633 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4634 test_array [0] = 0
4635
4636   ;
4637   return 0;
4638 }
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4642   (eval $ac_compile) 2>conftest.er1
4643   ac_status=$?
4644   grep -v '^ *+' conftest.er1 >conftest.err
4645   rm -f conftest.er1
4646   cat conftest.err >&5
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); } &&
4649          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651   (eval $ac_try) 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); }; } &&
4655          { ac_try='test -s conftest.$ac_objext'
4656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657   (eval $ac_try) 2>&5
4658   ac_status=$?
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); }; }; then
4661   ac_lo=$ac_mid; break
4662 else
4663   echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 ac_hi=`expr '(' $ac_mid ')' - 1`
4667                        if test $ac_mid -le $ac_hi; then
4668                          ac_lo= ac_hi=
4669                          break
4670                        fi
4671                        ac_mid=`expr 2 '*' $ac_mid`
4672 fi
4673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4674   done
4675 else
4676   echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679 ac_lo= ac_hi=
4680 fi
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 fi
4683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 # Binary search between lo and hi bounds.
4685 while test "x$ac_lo" != "x$ac_hi"; do
4686   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4687   cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h.  */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h.  */
4693 $ac_includes_default
4694 int
4695 main ()
4696 {
4697 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4698 test_array [0] = 0
4699
4700   ;
4701   return 0;
4702 }
4703 _ACEOF
4704 rm -f conftest.$ac_objext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4706   (eval $ac_compile) 2>conftest.er1
4707   ac_status=$?
4708   grep -v '^ *+' conftest.er1 >conftest.err
4709   rm -f conftest.er1
4710   cat conftest.err >&5
4711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712   (exit $ac_status); } &&
4713          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715   (eval $ac_try) 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); }; } &&
4719          { ac_try='test -s conftest.$ac_objext'
4720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721   (eval $ac_try) 2>&5
4722   ac_status=$?
4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); }; }; then
4725   ac_hi=$ac_mid
4726 else
4727   echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 ac_lo=`expr '(' $ac_mid ')' + 1`
4731 fi
4732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4733 done
4734 case $ac_lo in
4735 ?*) ac_cv_sizeof_short=$ac_lo;;
4736 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4737 See \`config.log' for more details." >&5
4738 echo "$as_me: error: cannot compute sizeof (short), 77
4739 See \`config.log' for more details." >&2;}
4740    { (exit 1); exit 1; }; } ;;
4741 esac
4742 else
4743   if test "$cross_compiling" = yes; then
4744   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4745 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4746    { (exit 1); exit 1; }; }
4747 else
4748   cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h.  */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h.  */
4754 $ac_includes_default
4755 long longval () { return (long) (sizeof (short)); }
4756 unsigned long ulongval () { return (long) (sizeof (short)); }
4757 #include <stdio.h>
4758 #include <stdlib.h>
4759 int
4760 main ()
4761 {
4762
4763   FILE *f = fopen ("conftest.val", "w");
4764   if (! f)
4765     exit (1);
4766   if (((long) (sizeof (short))) < 0)
4767     {
4768       long i = longval ();
4769       if (i != ((long) (sizeof (short))))
4770         exit (1);
4771       fprintf (f, "%ld\n", i);
4772     }
4773   else
4774     {
4775       unsigned long i = ulongval ();
4776       if (i != ((long) (sizeof (short))))
4777         exit (1);
4778       fprintf (f, "%lu\n", i);
4779     }
4780   exit (ferror (f) || fclose (f) != 0);
4781
4782   ;
4783   return 0;
4784 }
4785 _ACEOF
4786 rm -f conftest$ac_exeext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4788   (eval $ac_link) 2>&5
4789   ac_status=$?
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793   (eval $ac_try) 2>&5
4794   ac_status=$?
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); }; }; then
4797   ac_cv_sizeof_short=`cat conftest.val`
4798 else
4799   echo "$as_me: program exited with status $ac_status" >&5
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4802
4803 ( exit $ac_status )
4804 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4805 See \`config.log' for more details." >&5
4806 echo "$as_me: error: cannot compute sizeof (short), 77
4807 See \`config.log' for more details." >&2;}
4808    { (exit 1); exit 1; }; }
4809 fi
4810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4811 fi
4812 fi
4813 rm -f conftest.val
4814 else
4815   ac_cv_sizeof_short=0
4816 fi
4817 fi
4818 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4819 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4820 cat >>confdefs.h <<_ACEOF
4821 #define SIZEOF_SHORT $ac_cv_sizeof_short
4822 _ACEOF
4823
4824
4825 echo "$as_me:$LINENO: checking for int" >&5
4826 echo $ECHO_N "checking for int... $ECHO_C" >&6
4827 if test "${ac_cv_type_int+set}" = set; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   cat >conftest.$ac_ext <<_ACEOF
4831 /* confdefs.h.  */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h.  */
4836 $ac_includes_default
4837 int
4838 main ()
4839 {
4840 if ((int *) 0)
4841   return 0;
4842 if (sizeof (int))
4843   return 0;
4844   ;
4845   return 0;
4846 }
4847 _ACEOF
4848 rm -f conftest.$ac_objext
4849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850   (eval $ac_compile) 2>conftest.er1
4851   ac_status=$?
4852   grep -v '^ *+' conftest.er1 >conftest.err
4853   rm -f conftest.er1
4854   cat conftest.err >&5
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); } &&
4857          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859   (eval $ac_try) 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); }; } &&
4863          { ac_try='test -s conftest.$ac_objext'
4864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865   (eval $ac_try) 2>&5
4866   ac_status=$?
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); }; }; then
4869   ac_cv_type_int=yes
4870 else
4871   echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 ac_cv_type_int=no
4875 fi
4876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4877 fi
4878 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4879 echo "${ECHO_T}$ac_cv_type_int" >&6
4880
4881 echo "$as_me:$LINENO: checking size of int" >&5
4882 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4883 if test "${ac_cv_sizeof_int+set}" = set; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886   if test "$ac_cv_type_int" = yes; then
4887   # The cast to unsigned long works around a bug in the HP C Compiler
4888   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4889   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4890   # This bug is HP SR number 8606223364.
4891   if test "$cross_compiling" = yes; then
4892   # Depending upon the size, compute the lo and hi bounds.
4893 cat >conftest.$ac_ext <<_ACEOF
4894 /* confdefs.h.  */
4895 _ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h.  */
4899 $ac_includes_default
4900 int
4901 main ()
4902 {
4903 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4904 test_array [0] = 0
4905
4906   ;
4907   return 0;
4908 }
4909 _ACEOF
4910 rm -f conftest.$ac_objext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912   (eval $ac_compile) 2>conftest.er1
4913   ac_status=$?
4914   grep -v '^ *+' conftest.er1 >conftest.err
4915   rm -f conftest.er1
4916   cat conftest.err >&5
4917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); } &&
4919          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921   (eval $ac_try) 2>&5
4922   ac_status=$?
4923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924   (exit $ac_status); }; } &&
4925          { ac_try='test -s conftest.$ac_objext'
4926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927   (eval $ac_try) 2>&5
4928   ac_status=$?
4929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930   (exit $ac_status); }; }; then
4931   ac_lo=0 ac_mid=0
4932   while :; do
4933     cat >conftest.$ac_ext <<_ACEOF
4934 /* confdefs.h.  */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h.  */
4939 $ac_includes_default
4940 int
4941 main ()
4942 {
4943 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4944 test_array [0] = 0
4945
4946   ;
4947   return 0;
4948 }
4949 _ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952   (eval $ac_compile) 2>conftest.er1
4953   ac_status=$?
4954   grep -v '^ *+' conftest.er1 >conftest.err
4955   rm -f conftest.er1
4956   cat conftest.err >&5
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); } &&
4959          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961   (eval $ac_try) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); }; } &&
4965          { ac_try='test -s conftest.$ac_objext'
4966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967   (eval $ac_try) 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); }; }; then
4971   ac_hi=$ac_mid; break
4972 else
4973   echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 ac_lo=`expr $ac_mid + 1`
4977                     if test $ac_lo -le $ac_mid; then
4978                       ac_lo= ac_hi=
4979                       break
4980                     fi
4981                     ac_mid=`expr 2 '*' $ac_mid + 1`
4982 fi
4983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4984   done
4985 else
4986   echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4988
4989 cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h.  */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h.  */
4995 $ac_includes_default
4996 int
4997 main ()
4998 {
4999 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5000 test_array [0] = 0
5001
5002   ;
5003   return 0;
5004 }
5005 _ACEOF
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008   (eval $ac_compile) 2>conftest.er1
5009   ac_status=$?
5010   grep -v '^ *+' conftest.er1 >conftest.err
5011   rm -f conftest.er1
5012   cat conftest.err >&5
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } &&
5015          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017   (eval $ac_try) 2>&5
5018   ac_status=$?
5019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020   (exit $ac_status); }; } &&
5021          { ac_try='test -s conftest.$ac_objext'
5022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023   (eval $ac_try) 2>&5
5024   ac_status=$?
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); }; }; then
5027   ac_hi=-1 ac_mid=-1
5028   while :; do
5029     cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h.  */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h.  */
5035 $ac_includes_default
5036 int
5037 main ()
5038 {
5039 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5040 test_array [0] = 0
5041
5042   ;
5043   return 0;
5044 }
5045 _ACEOF
5046 rm -f conftest.$ac_objext
5047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5048   (eval $ac_compile) 2>conftest.er1
5049   ac_status=$?
5050   grep -v '^ *+' conftest.er1 >conftest.err
5051   rm -f conftest.er1
5052   cat conftest.err >&5
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); } &&
5055          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057   (eval $ac_try) 2>&5
5058   ac_status=$?
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); }; } &&
5061          { ac_try='test -s conftest.$ac_objext'
5062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063   (eval $ac_try) 2>&5
5064   ac_status=$?
5065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066   (exit $ac_status); }; }; then
5067   ac_lo=$ac_mid; break
5068 else
5069   echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072 ac_hi=`expr '(' $ac_mid ')' - 1`
5073                        if test $ac_mid -le $ac_hi; then
5074                          ac_lo= ac_hi=
5075                          break
5076                        fi
5077                        ac_mid=`expr 2 '*' $ac_mid`
5078 fi
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5080   done
5081 else
5082   echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5084
5085 ac_lo= ac_hi=
5086 fi
5087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5088 fi
5089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5090 # Binary search between lo and hi bounds.
5091 while test "x$ac_lo" != "x$ac_hi"; do
5092   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5093   cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h.  */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h.  */
5099 $ac_includes_default
5100 int
5101 main ()
5102 {
5103 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5104 test_array [0] = 0
5105
5106   ;
5107   return 0;
5108 }
5109 _ACEOF
5110 rm -f conftest.$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112   (eval $ac_compile) 2>conftest.er1
5113   ac_status=$?
5114   grep -v '^ *+' conftest.er1 >conftest.err
5115   rm -f conftest.er1
5116   cat conftest.err >&5
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); } &&
5119          { ac_try='test -z "$ac_c_werror_flag"                   || 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   ac_hi=$ac_mid
5132 else
5133   echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5135
5136 ac_lo=`expr '(' $ac_mid ')' + 1`
5137 fi
5138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5139 done
5140 case $ac_lo in
5141 ?*) ac_cv_sizeof_int=$ac_lo;;
5142 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5143 See \`config.log' for more details." >&5
5144 echo "$as_me: error: cannot compute sizeof (int), 77
5145 See \`config.log' for more details." >&2;}
5146    { (exit 1); exit 1; }; } ;;
5147 esac
5148 else
5149   if test "$cross_compiling" = yes; then
5150   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5151 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5152    { (exit 1); exit 1; }; }
5153 else
5154   cat >conftest.$ac_ext <<_ACEOF
5155 /* confdefs.h.  */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h.  */
5160 $ac_includes_default
5161 long longval () { return (long) (sizeof (int)); }
5162 unsigned long ulongval () { return (long) (sizeof (int)); }
5163 #include <stdio.h>
5164 #include <stdlib.h>
5165 int
5166 main ()
5167 {
5168
5169   FILE *f = fopen ("conftest.val", "w");
5170   if (! f)
5171     exit (1);
5172   if (((long) (sizeof (int))) < 0)
5173     {
5174       long i = longval ();
5175       if (i != ((long) (sizeof (int))))
5176         exit (1);
5177       fprintf (f, "%ld\n", i);
5178     }
5179   else
5180     {
5181       unsigned long i = ulongval ();
5182       if (i != ((long) (sizeof (int))))
5183         exit (1);
5184       fprintf (f, "%lu\n", i);
5185     }
5186   exit (ferror (f) || fclose (f) != 0);
5187
5188   ;
5189   return 0;
5190 }
5191 _ACEOF
5192 rm -f conftest$ac_exeext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5194   (eval $ac_link) 2>&5
5195   ac_status=$?
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199   (eval $ac_try) 2>&5
5200   ac_status=$?
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); }; }; then
5203   ac_cv_sizeof_int=`cat conftest.val`
5204 else
5205   echo "$as_me: program exited with status $ac_status" >&5
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209 ( exit $ac_status )
5210 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5211 See \`config.log' for more details." >&5
5212 echo "$as_me: error: cannot compute sizeof (int), 77
5213 See \`config.log' for more details." >&2;}
5214    { (exit 1); exit 1; }; }
5215 fi
5216 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5217 fi
5218 fi
5219 rm -f conftest.val
5220 else
5221   ac_cv_sizeof_int=0
5222 fi
5223 fi
5224 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5225 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5226 cat >>confdefs.h <<_ACEOF
5227 #define SIZEOF_INT $ac_cv_sizeof_int
5228 _ACEOF
5229
5230
5231 echo "$as_me:$LINENO: checking for long" >&5
5232 echo $ECHO_N "checking for long... $ECHO_C" >&6
5233 if test "${ac_cv_type_long+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236   cat >conftest.$ac_ext <<_ACEOF
5237 /* confdefs.h.  */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h.  */
5242 $ac_includes_default
5243 int
5244 main ()
5245 {
5246 if ((long *) 0)
5247   return 0;
5248 if (sizeof (long))
5249   return 0;
5250   ;
5251   return 0;
5252 }
5253 _ACEOF
5254 rm -f conftest.$ac_objext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5256   (eval $ac_compile) 2>conftest.er1
5257   ac_status=$?
5258   grep -v '^ *+' conftest.er1 >conftest.err
5259   rm -f conftest.er1
5260   cat conftest.err >&5
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); } &&
5263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265   (eval $ac_try) 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); }; } &&
5269          { ac_try='test -s conftest.$ac_objext'
5270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271   (eval $ac_try) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); }; }; then
5275   ac_cv_type_long=yes
5276 else
5277   echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280 ac_cv_type_long=no
5281 fi
5282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5283 fi
5284 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5285 echo "${ECHO_T}$ac_cv_type_long" >&6
5286
5287 echo "$as_me:$LINENO: checking size of long" >&5
5288 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5289 if test "${ac_cv_sizeof_long+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   if test "$ac_cv_type_long" = yes; then
5293   # The cast to unsigned long works around a bug in the HP C Compiler
5294   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5295   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5296   # This bug is HP SR number 8606223364.
5297   if test "$cross_compiling" = yes; then
5298   # Depending upon the size, compute the lo and hi bounds.
5299 cat >conftest.$ac_ext <<_ACEOF
5300 /* confdefs.h.  */
5301 _ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h.  */
5305 $ac_includes_default
5306 int
5307 main ()
5308 {
5309 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5310 test_array [0] = 0
5311
5312   ;
5313   return 0;
5314 }
5315 _ACEOF
5316 rm -f conftest.$ac_objext
5317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5318   (eval $ac_compile) 2>conftest.er1
5319   ac_status=$?
5320   grep -v '^ *+' conftest.er1 >conftest.err
5321   rm -f conftest.er1
5322   cat conftest.err >&5
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); } &&
5325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327   (eval $ac_try) 2>&5
5328   ac_status=$?
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); }; } &&
5331          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5337   ac_lo=0 ac_mid=0
5338   while :; do
5339     cat >conftest.$ac_ext <<_ACEOF
5340 /* confdefs.h.  */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h.  */
5345 $ac_includes_default
5346 int
5347 main ()
5348 {
5349 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5350 test_array [0] = 0
5351
5352   ;
5353   return 0;
5354 }
5355 _ACEOF
5356 rm -f conftest.$ac_objext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358   (eval $ac_compile) 2>conftest.er1
5359   ac_status=$?
5360   grep -v '^ *+' conftest.er1 >conftest.err
5361   rm -f conftest.er1
5362   cat conftest.err >&5
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); } &&
5365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367   (eval $ac_try) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); }; } &&
5371          { ac_try='test -s conftest.$ac_objext'
5372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373   (eval $ac_try) 2>&5
5374   ac_status=$?
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); }; }; then
5377   ac_hi=$ac_mid; break
5378 else
5379   echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5381
5382 ac_lo=`expr $ac_mid + 1`
5383                     if test $ac_lo -le $ac_mid; then
5384                       ac_lo= ac_hi=
5385                       break
5386                     fi
5387                     ac_mid=`expr 2 '*' $ac_mid + 1`
5388 fi
5389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5390   done
5391 else
5392   echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 cat >conftest.$ac_ext <<_ACEOF
5396 /* confdefs.h.  */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h.  */
5401 $ac_includes_default
5402 int
5403 main ()
5404 {
5405 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5406 test_array [0] = 0
5407
5408   ;
5409   return 0;
5410 }
5411 _ACEOF
5412 rm -f conftest.$ac_objext
5413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5414   (eval $ac_compile) 2>conftest.er1
5415   ac_status=$?
5416   grep -v '^ *+' conftest.er1 >conftest.err
5417   rm -f conftest.er1
5418   cat conftest.err >&5
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); } &&
5421          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423   (eval $ac_try) 2>&5
5424   ac_status=$?
5425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426   (exit $ac_status); }; } &&
5427          { ac_try='test -s conftest.$ac_objext'
5428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429   (eval $ac_try) 2>&5
5430   ac_status=$?
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); }; }; then
5433   ac_hi=-1 ac_mid=-1
5434   while :; do
5435     cat >conftest.$ac_ext <<_ACEOF
5436 /* confdefs.h.  */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h.  */
5441 $ac_includes_default
5442 int
5443 main ()
5444 {
5445 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5446 test_array [0] = 0
5447
5448   ;
5449   return 0;
5450 }
5451 _ACEOF
5452 rm -f conftest.$ac_objext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454   (eval $ac_compile) 2>conftest.er1
5455   ac_status=$?
5456   grep -v '^ *+' conftest.er1 >conftest.err
5457   rm -f conftest.er1
5458   cat conftest.err >&5
5459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460   (exit $ac_status); } &&
5461          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463   (eval $ac_try) 2>&5
5464   ac_status=$?
5465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466   (exit $ac_status); }; } &&
5467          { ac_try='test -s conftest.$ac_objext'
5468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469   (eval $ac_try) 2>&5
5470   ac_status=$?
5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472   (exit $ac_status); }; }; then
5473   ac_lo=$ac_mid; break
5474 else
5475   echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5477
5478 ac_hi=`expr '(' $ac_mid ')' - 1`
5479                        if test $ac_mid -le $ac_hi; then
5480                          ac_lo= ac_hi=
5481                          break
5482                        fi
5483                        ac_mid=`expr 2 '*' $ac_mid`
5484 fi
5485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5486   done
5487 else
5488   echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5490
5491 ac_lo= ac_hi=
5492 fi
5493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5494 fi
5495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5496 # Binary search between lo and hi bounds.
5497 while test "x$ac_lo" != "x$ac_hi"; do
5498   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5499   cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h.  */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h.  */
5505 $ac_includes_default
5506 int
5507 main ()
5508 {
5509 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5510 test_array [0] = 0
5511
5512   ;
5513   return 0;
5514 }
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518   (eval $ac_compile) 2>conftest.er1
5519   ac_status=$?
5520   grep -v '^ *+' conftest.er1 >conftest.err
5521   rm -f conftest.er1
5522   cat conftest.err >&5
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); } &&
5525          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527   (eval $ac_try) 2>&5
5528   ac_status=$?
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); }; } &&
5531          { ac_try='test -s conftest.$ac_objext'
5532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533   (eval $ac_try) 2>&5
5534   ac_status=$?
5535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536   (exit $ac_status); }; }; then
5537   ac_hi=$ac_mid
5538 else
5539   echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5541
5542 ac_lo=`expr '(' $ac_mid ')' + 1`
5543 fi
5544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5545 done
5546 case $ac_lo in
5547 ?*) ac_cv_sizeof_long=$ac_lo;;
5548 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5549 See \`config.log' for more details." >&5
5550 echo "$as_me: error: cannot compute sizeof (long), 77
5551 See \`config.log' for more details." >&2;}
5552    { (exit 1); exit 1; }; } ;;
5553 esac
5554 else
5555   if test "$cross_compiling" = yes; then
5556   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5557 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5558    { (exit 1); exit 1; }; }
5559 else
5560   cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h.  */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h.  */
5566 $ac_includes_default
5567 long longval () { return (long) (sizeof (long)); }
5568 unsigned long ulongval () { return (long) (sizeof (long)); }
5569 #include <stdio.h>
5570 #include <stdlib.h>
5571 int
5572 main ()
5573 {
5574
5575   FILE *f = fopen ("conftest.val", "w");
5576   if (! f)
5577     exit (1);
5578   if (((long) (sizeof (long))) < 0)
5579     {
5580       long i = longval ();
5581       if (i != ((long) (sizeof (long))))
5582         exit (1);
5583       fprintf (f, "%ld\n", i);
5584     }
5585   else
5586     {
5587       unsigned long i = ulongval ();
5588       if (i != ((long) (sizeof (long))))
5589         exit (1);
5590       fprintf (f, "%lu\n", i);
5591     }
5592   exit (ferror (f) || fclose (f) != 0);
5593
5594   ;
5595   return 0;
5596 }
5597 _ACEOF
5598 rm -f conftest$ac_exeext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600   (eval $ac_link) 2>&5
5601   ac_status=$?
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605   (eval $ac_try) 2>&5
5606   ac_status=$?
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); }; }; then
5609   ac_cv_sizeof_long=`cat conftest.val`
5610 else
5611   echo "$as_me: program exited with status $ac_status" >&5
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5614
5615 ( exit $ac_status )
5616 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5617 See \`config.log' for more details." >&5
5618 echo "$as_me: error: cannot compute sizeof (long), 77
5619 See \`config.log' for more details." >&2;}
5620    { (exit 1); exit 1; }; }
5621 fi
5622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5623 fi
5624 fi
5625 rm -f conftest.val
5626 else
5627   ac_cv_sizeof_long=0
5628 fi
5629 fi
5630 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5631 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5632 cat >>confdefs.h <<_ACEOF
5633 #define SIZEOF_LONG $ac_cv_sizeof_long
5634 _ACEOF
5635
5636
5637 echo "$as_me:$LINENO: checking for float" >&5
5638 echo $ECHO_N "checking for float... $ECHO_C" >&6
5639 if test "${ac_cv_type_float+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h.  */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h.  */
5648 $ac_includes_default
5649 int
5650 main ()
5651 {
5652 if ((float *) 0)
5653   return 0;
5654 if (sizeof (float))
5655   return 0;
5656   ;
5657   return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662   (eval $ac_compile) 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } &&
5669          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671   (eval $ac_try) 2>&5
5672   ac_status=$?
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); }; } &&
5675          { ac_try='test -s conftest.$ac_objext'
5676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677   (eval $ac_try) 2>&5
5678   ac_status=$?
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); }; }; then
5681   ac_cv_type_float=yes
5682 else
5683   echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5685
5686 ac_cv_type_float=no
5687 fi
5688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5689 fi
5690 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5691 echo "${ECHO_T}$ac_cv_type_float" >&6
5692
5693 echo "$as_me:$LINENO: checking size of float" >&5
5694 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5695 if test "${ac_cv_sizeof_float+set}" = set; then
5696   echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698   if test "$ac_cv_type_float" = yes; then
5699   # The cast to unsigned long works around a bug in the HP C Compiler
5700   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5701   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5702   # This bug is HP SR number 8606223364.
5703   if test "$cross_compiling" = yes; then
5704   # Depending upon the size, compute the lo and hi bounds.
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h.  */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h.  */
5711 $ac_includes_default
5712 int
5713 main ()
5714 {
5715 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5716 test_array [0] = 0
5717
5718   ;
5719   return 0;
5720 }
5721 _ACEOF
5722 rm -f conftest.$ac_objext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724   (eval $ac_compile) 2>conftest.er1
5725   ac_status=$?
5726   grep -v '^ *+' conftest.er1 >conftest.err
5727   rm -f conftest.er1
5728   cat conftest.err >&5
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); } &&
5731          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733   (eval $ac_try) 2>&5
5734   ac_status=$?
5735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); }; } &&
5737          { ac_try='test -s conftest.$ac_objext'
5738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739   (eval $ac_try) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }; }; then
5743   ac_lo=0 ac_mid=0
5744   while :; do
5745     cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h.  */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h.  */
5751 $ac_includes_default
5752 int
5753 main ()
5754 {
5755 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5756 test_array [0] = 0
5757
5758   ;
5759   return 0;
5760 }
5761 _ACEOF
5762 rm -f conftest.$ac_objext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764   (eval $ac_compile) 2>conftest.er1
5765   ac_status=$?
5766   grep -v '^ *+' conftest.er1 >conftest.err
5767   rm -f conftest.er1
5768   cat conftest.err >&5
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); } &&
5771          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773   (eval $ac_try) 2>&5
5774   ac_status=$?
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); }; } &&
5777          { ac_try='test -s conftest.$ac_objext'
5778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779   (eval $ac_try) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; }; then
5783   ac_hi=$ac_mid; break
5784 else
5785   echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5787
5788 ac_lo=`expr $ac_mid + 1`
5789                     if test $ac_lo -le $ac_mid; then
5790                       ac_lo= ac_hi=
5791                       break
5792                     fi
5793                     ac_mid=`expr 2 '*' $ac_mid + 1`
5794 fi
5795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5796   done
5797 else
5798   echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5800
5801 cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h.  */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h.  */
5807 $ac_includes_default
5808 int
5809 main ()
5810 {
5811 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5812 test_array [0] = 0
5813
5814   ;
5815   return 0;
5816 }
5817 _ACEOF
5818 rm -f conftest.$ac_objext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820   (eval $ac_compile) 2>conftest.er1
5821   ac_status=$?
5822   grep -v '^ *+' conftest.er1 >conftest.err
5823   rm -f conftest.er1
5824   cat conftest.err >&5
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); } &&
5827          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829   (eval $ac_try) 2>&5
5830   ac_status=$?
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); }; } &&
5833          { ac_try='test -s conftest.$ac_objext'
5834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835   (eval $ac_try) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); }; }; then
5839   ac_hi=-1 ac_mid=-1
5840   while :; do
5841     cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h.  */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h.  */
5847 $ac_includes_default
5848 int
5849 main ()
5850 {
5851 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5852 test_array [0] = 0
5853
5854   ;
5855   return 0;
5856 }
5857 _ACEOF
5858 rm -f conftest.$ac_objext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860   (eval $ac_compile) 2>conftest.er1
5861   ac_status=$?
5862   grep -v '^ *+' conftest.er1 >conftest.err
5863   rm -f conftest.er1
5864   cat conftest.err >&5
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } &&
5867          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869   (eval $ac_try) 2>&5
5870   ac_status=$?
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); }; } &&
5873          { ac_try='test -s conftest.$ac_objext'
5874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875   (eval $ac_try) 2>&5
5876   ac_status=$?
5877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878   (exit $ac_status); }; }; then
5879   ac_lo=$ac_mid; break
5880 else
5881   echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5883
5884 ac_hi=`expr '(' $ac_mid ')' - 1`
5885                        if test $ac_mid -le $ac_hi; then
5886                          ac_lo= ac_hi=
5887                          break
5888                        fi
5889                        ac_mid=`expr 2 '*' $ac_mid`
5890 fi
5891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5892   done
5893 else
5894   echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 ac_lo= ac_hi=
5898 fi
5899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5900 fi
5901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5902 # Binary search between lo and hi bounds.
5903 while test "x$ac_lo" != "x$ac_hi"; do
5904   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5905   cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h.  */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h.  */
5911 $ac_includes_default
5912 int
5913 main ()
5914 {
5915 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5916 test_array [0] = 0
5917
5918   ;
5919   return 0;
5920 }
5921 _ACEOF
5922 rm -f conftest.$ac_objext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5924   (eval $ac_compile) 2>conftest.er1
5925   ac_status=$?
5926   grep -v '^ *+' conftest.er1 >conftest.err
5927   rm -f conftest.er1
5928   cat conftest.err >&5
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); } &&
5931          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933   (eval $ac_try) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; } &&
5937          { ac_try='test -s conftest.$ac_objext'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; }; then
5943   ac_hi=$ac_mid
5944 else
5945   echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 ac_lo=`expr '(' $ac_mid ')' + 1`
5949 fi
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5951 done
5952 case $ac_lo in
5953 ?*) ac_cv_sizeof_float=$ac_lo;;
5954 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5955 See \`config.log' for more details." >&5
5956 echo "$as_me: error: cannot compute sizeof (float), 77
5957 See \`config.log' for more details." >&2;}
5958    { (exit 1); exit 1; }; } ;;
5959 esac
5960 else
5961   if test "$cross_compiling" = yes; then
5962   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5963 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5964    { (exit 1); exit 1; }; }
5965 else
5966   cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h.  */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h.  */
5972 $ac_includes_default
5973 long longval () { return (long) (sizeof (float)); }
5974 unsigned long ulongval () { return (long) (sizeof (float)); }
5975 #include <stdio.h>
5976 #include <stdlib.h>
5977 int
5978 main ()
5979 {
5980
5981   FILE *f = fopen ("conftest.val", "w");
5982   if (! f)
5983     exit (1);
5984   if (((long) (sizeof (float))) < 0)
5985     {
5986       long i = longval ();
5987       if (i != ((long) (sizeof (float))))
5988         exit (1);
5989       fprintf (f, "%ld\n", i);
5990     }
5991   else
5992     {
5993       unsigned long i = ulongval ();
5994       if (i != ((long) (sizeof (float))))
5995         exit (1);
5996       fprintf (f, "%lu\n", i);
5997     }
5998   exit (ferror (f) || fclose (f) != 0);
5999
6000   ;
6001   return 0;
6002 }
6003 _ACEOF
6004 rm -f conftest$ac_exeext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006   (eval $ac_link) 2>&5
6007   ac_status=$?
6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011   (eval $ac_try) 2>&5
6012   ac_status=$?
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); }; }; then
6015   ac_cv_sizeof_float=`cat conftest.val`
6016 else
6017   echo "$as_me: program exited with status $ac_status" >&5
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6020
6021 ( exit $ac_status )
6022 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
6023 See \`config.log' for more details." >&5
6024 echo "$as_me: error: cannot compute sizeof (float), 77
6025 See \`config.log' for more details." >&2;}
6026    { (exit 1); exit 1; }; }
6027 fi
6028 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6029 fi
6030 fi
6031 rm -f conftest.val
6032 else
6033   ac_cv_sizeof_float=0
6034 fi
6035 fi
6036 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
6037 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
6038 cat >>confdefs.h <<_ACEOF
6039 #define SIZEOF_FLOAT $ac_cv_sizeof_float
6040 _ACEOF
6041
6042
6043 echo "$as_me:$LINENO: checking for double" >&5
6044 echo $ECHO_N "checking for double... $ECHO_C" >&6
6045 if test "${ac_cv_type_double+set}" = set; then
6046   echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048   cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h.  */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h.  */
6054 $ac_includes_default
6055 int
6056 main ()
6057 {
6058 if ((double *) 0)
6059   return 0;
6060 if (sizeof (double))
6061   return 0;
6062   ;
6063   return 0;
6064 }
6065 _ACEOF
6066 rm -f conftest.$ac_objext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068   (eval $ac_compile) 2>conftest.er1
6069   ac_status=$?
6070   grep -v '^ *+' conftest.er1 >conftest.err
6071   rm -f conftest.er1
6072   cat conftest.err >&5
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); } &&
6075          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077   (eval $ac_try) 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); }; } &&
6081          { ac_try='test -s conftest.$ac_objext'
6082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083   (eval $ac_try) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; }; then
6087   ac_cv_type_double=yes
6088 else
6089   echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6091
6092 ac_cv_type_double=no
6093 fi
6094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6095 fi
6096 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
6097 echo "${ECHO_T}$ac_cv_type_double" >&6
6098
6099 echo "$as_me:$LINENO: checking size of double" >&5
6100 echo $ECHO_N "checking size of double... $ECHO_C" >&6
6101 if test "${ac_cv_sizeof_double+set}" = set; then
6102   echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104   if test "$ac_cv_type_double" = yes; then
6105   # The cast to unsigned long works around a bug in the HP C Compiler
6106   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6107   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6108   # This bug is HP SR number 8606223364.
6109   if test "$cross_compiling" = yes; then
6110   # Depending upon the size, compute the lo and hi bounds.
6111 cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h.  */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h.  */
6117 $ac_includes_default
6118 int
6119 main ()
6120 {
6121 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
6122 test_array [0] = 0
6123
6124   ;
6125   return 0;
6126 }
6127 _ACEOF
6128 rm -f conftest.$ac_objext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6130   (eval $ac_compile) 2>conftest.er1
6131   ac_status=$?
6132   grep -v '^ *+' conftest.er1 >conftest.err
6133   rm -f conftest.er1
6134   cat conftest.err >&5
6135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136   (exit $ac_status); } &&
6137          { ac_try='test -z "$ac_c_werror_flag"                   || 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   ac_lo=0 ac_mid=0
6150   while :; do
6151     cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h.  */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h.  */
6157 $ac_includes_default
6158 int
6159 main ()
6160 {
6161 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6162 test_array [0] = 0
6163
6164   ;
6165   return 0;
6166 }
6167 _ACEOF
6168 rm -f conftest.$ac_objext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6170   (eval $ac_compile) 2>conftest.er1
6171   ac_status=$?
6172   grep -v '^ *+' conftest.er1 >conftest.err
6173   rm -f conftest.er1
6174   cat conftest.err >&5
6175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176   (exit $ac_status); } &&
6177          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179   (eval $ac_try) 2>&5
6180   ac_status=$?
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); }; } &&
6183          { ac_try='test -s conftest.$ac_objext'
6184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185   (eval $ac_try) 2>&5
6186   ac_status=$?
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); }; }; then
6189   ac_hi=$ac_mid; break
6190 else
6191   echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194 ac_lo=`expr $ac_mid + 1`
6195                     if test $ac_lo -le $ac_mid; then
6196                       ac_lo= ac_hi=
6197                       break
6198                     fi
6199                     ac_mid=`expr 2 '*' $ac_mid + 1`
6200 fi
6201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6202   done
6203 else
6204   echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6206
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h.  */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h.  */
6213 $ac_includes_default
6214 int
6215 main ()
6216 {
6217 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
6218 test_array [0] = 0
6219
6220   ;
6221   return 0;
6222 }
6223 _ACEOF
6224 rm -f conftest.$ac_objext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226   (eval $ac_compile) 2>conftest.er1
6227   ac_status=$?
6228   grep -v '^ *+' conftest.er1 >conftest.err
6229   rm -f conftest.er1
6230   cat conftest.err >&5
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); } &&
6233          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235   (eval $ac_try) 2>&5
6236   ac_status=$?
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); }; } &&
6239          { ac_try='test -s conftest.$ac_objext'
6240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241   (eval $ac_try) 2>&5
6242   ac_status=$?
6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244   (exit $ac_status); }; }; then
6245   ac_hi=-1 ac_mid=-1
6246   while :; do
6247     cat >conftest.$ac_ext <<_ACEOF
6248 /* confdefs.h.  */
6249 _ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h.  */
6253 $ac_includes_default
6254 int
6255 main ()
6256 {
6257 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
6258 test_array [0] = 0
6259
6260   ;
6261   return 0;
6262 }
6263 _ACEOF
6264 rm -f conftest.$ac_objext
6265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6266   (eval $ac_compile) 2>conftest.er1
6267   ac_status=$?
6268   grep -v '^ *+' conftest.er1 >conftest.err
6269   rm -f conftest.er1
6270   cat conftest.err >&5
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); } &&
6273          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275   (eval $ac_try) 2>&5
6276   ac_status=$?
6277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278   (exit $ac_status); }; } &&
6279          { ac_try='test -s conftest.$ac_objext'
6280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281   (eval $ac_try) 2>&5
6282   ac_status=$?
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); }; }; then
6285   ac_lo=$ac_mid; break
6286 else
6287   echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6289
6290 ac_hi=`expr '(' $ac_mid ')' - 1`
6291                        if test $ac_mid -le $ac_hi; then
6292                          ac_lo= ac_hi=
6293                          break
6294                        fi
6295                        ac_mid=`expr 2 '*' $ac_mid`
6296 fi
6297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6298   done
6299 else
6300   echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303 ac_lo= ac_hi=
6304 fi
6305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6306 fi
6307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6308 # Binary search between lo and hi bounds.
6309 while test "x$ac_lo" != "x$ac_hi"; do
6310   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6311   cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h.  */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h.  */
6317 $ac_includes_default
6318 int
6319 main ()
6320 {
6321 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6322 test_array [0] = 0
6323
6324   ;
6325   return 0;
6326 }
6327 _ACEOF
6328 rm -f conftest.$ac_objext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6330   (eval $ac_compile) 2>conftest.er1
6331   ac_status=$?
6332   grep -v '^ *+' conftest.er1 >conftest.err
6333   rm -f conftest.er1
6334   cat conftest.err >&5
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); } &&
6337          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339   (eval $ac_try) 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); }; } &&
6343          { ac_try='test -s conftest.$ac_objext'
6344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345   (eval $ac_try) 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); }; }; then
6349   ac_hi=$ac_mid
6350 else
6351   echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6353
6354 ac_lo=`expr '(' $ac_mid ')' + 1`
6355 fi
6356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6357 done
6358 case $ac_lo in
6359 ?*) ac_cv_sizeof_double=$ac_lo;;
6360 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6361 See \`config.log' for more details." >&5
6362 echo "$as_me: error: cannot compute sizeof (double), 77
6363 See \`config.log' for more details." >&2;}
6364    { (exit 1); exit 1; }; } ;;
6365 esac
6366 else
6367   if test "$cross_compiling" = yes; then
6368   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6369 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6370    { (exit 1); exit 1; }; }
6371 else
6372   cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h.  */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h.  */
6378 $ac_includes_default
6379 long longval () { return (long) (sizeof (double)); }
6380 unsigned long ulongval () { return (long) (sizeof (double)); }
6381 #include <stdio.h>
6382 #include <stdlib.h>
6383 int
6384 main ()
6385 {
6386
6387   FILE *f = fopen ("conftest.val", "w");
6388   if (! f)
6389     exit (1);
6390   if (((long) (sizeof (double))) < 0)
6391     {
6392       long i = longval ();
6393       if (i != ((long) (sizeof (double))))
6394         exit (1);
6395       fprintf (f, "%ld\n", i);
6396     }
6397   else
6398     {
6399       unsigned long i = ulongval ();
6400       if (i != ((long) (sizeof (double))))
6401         exit (1);
6402       fprintf (f, "%lu\n", i);
6403     }
6404   exit (ferror (f) || fclose (f) != 0);
6405
6406   ;
6407   return 0;
6408 }
6409 _ACEOF
6410 rm -f conftest$ac_exeext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6412   (eval $ac_link) 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417   (eval $ac_try) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; }; then
6421   ac_cv_sizeof_double=`cat conftest.val`
6422 else
6423   echo "$as_me: program exited with status $ac_status" >&5
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6426
6427 ( exit $ac_status )
6428 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6429 See \`config.log' for more details." >&5
6430 echo "$as_me: error: cannot compute sizeof (double), 77
6431 See \`config.log' for more details." >&2;}
6432    { (exit 1); exit 1; }; }
6433 fi
6434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6435 fi
6436 fi
6437 rm -f conftest.val
6438 else
6439   ac_cv_sizeof_double=0
6440 fi
6441 fi
6442 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6443 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6444 cat >>confdefs.h <<_ACEOF
6445 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6446 _ACEOF
6447
6448
6449
6450
6451 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
6452 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
6453 if test "${ac_cv_lib_z_deflate+set}" = set; then
6454   echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456   ac_check_lib_save_LIBS=$LIBS
6457 LIBS="-lz  $LIBS"
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h.  */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h.  */
6464
6465 /* Override any gcc2 internal prototype to avoid an error.  */
6466 #ifdef __cplusplus
6467 extern "C"
6468 #endif
6469 /* We use char because int might match the return type of a gcc2
6470    builtin and then its argument prototype would still apply.  */
6471 char deflate ();
6472 int
6473 main ()
6474 {
6475 deflate ();
6476   ;
6477   return 0;
6478 }
6479 _ACEOF
6480 rm -f conftest.$ac_objext conftest$ac_exeext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6482   (eval $ac_link) 2>conftest.er1
6483   ac_status=$?
6484   grep -v '^ *+' conftest.er1 >conftest.err
6485   rm -f conftest.er1
6486   cat conftest.err >&5
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); } &&
6489          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491   (eval $ac_try) 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); }; } &&
6495          { ac_try='test -s conftest$ac_exeext'
6496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497   (eval $ac_try) 2>&5
6498   ac_status=$?
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); }; }; then
6501   ac_cv_lib_z_deflate=yes
6502 else
6503   echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6505
6506 ac_cv_lib_z_deflate=no
6507 fi
6508 rm -f conftest.err conftest.$ac_objext \
6509       conftest$ac_exeext conftest.$ac_ext
6510 LIBS=$ac_check_lib_save_LIBS
6511 fi
6512 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
6513 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
6514 if test $ac_cv_lib_z_deflate = yes; then
6515    zlib="true"
6516 else
6517    zlib="false" ;  { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
6518 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
6519 fi
6520
6521
6522 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6523 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6524 if test "${ac_cv_lib_m_sin+set}" = set; then
6525   echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527   ac_check_lib_save_LIBS=$LIBS
6528 LIBS="-lm  $LIBS"
6529 cat >conftest.$ac_ext <<_ACEOF
6530 /* confdefs.h.  */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h.  */
6535
6536 /* Override any gcc2 internal prototype to avoid an error.  */
6537 #ifdef __cplusplus
6538 extern "C"
6539 #endif
6540 /* We use char because int might match the return type of a gcc2
6541    builtin and then its argument prototype would still apply.  */
6542 char sin ();
6543 int
6544 main ()
6545 {
6546 sin ();
6547   ;
6548   return 0;
6549 }
6550 _ACEOF
6551 rm -f conftest.$ac_objext conftest$ac_exeext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553   (eval $ac_link) 2>conftest.er1
6554   ac_status=$?
6555   grep -v '^ *+' conftest.er1 >conftest.err
6556   rm -f conftest.er1
6557   cat conftest.err >&5
6558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); } &&
6560          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562   (eval $ac_try) 2>&5
6563   ac_status=$?
6564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565   (exit $ac_status); }; } &&
6566          { ac_try='test -s conftest$ac_exeext'
6567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568   (eval $ac_try) 2>&5
6569   ac_status=$?
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); }; }; then
6572   ac_cv_lib_m_sin=yes
6573 else
6574   echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6576
6577 ac_cv_lib_m_sin=no
6578 fi
6579 rm -f conftest.err conftest.$ac_objext \
6580       conftest$ac_exeext conftest.$ac_ext
6581 LIBS=$ac_check_lib_save_LIBS
6582 fi
6583 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6584 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6585 if test $ac_cv_lib_m_sin = yes; then
6586   cat >>confdefs.h <<_ACEOF
6587 #define HAVE_LIBM 1
6588 _ACEOF
6589
6590   LIBS="-lm $LIBS"
6591
6592 fi
6593
6594 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
6595 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
6596 if test "${ac_cv_lib_curses_main+set}" = set; then
6597   echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599   ac_check_lib_save_LIBS=$LIBS
6600 LIBS="-lcurses  $LIBS"
6601 cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h.  */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h.  */
6607
6608
6609 int
6610 main ()
6611 {
6612 main ();
6613   ;
6614   return 0;
6615 }
6616 _ACEOF
6617 rm -f conftest.$ac_objext conftest$ac_exeext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6619   (eval $ac_link) 2>conftest.er1
6620   ac_status=$?
6621   grep -v '^ *+' conftest.er1 >conftest.err
6622   rm -f conftest.er1
6623   cat conftest.err >&5
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); } &&
6626          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628   (eval $ac_try) 2>&5
6629   ac_status=$?
6630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631   (exit $ac_status); }; } &&
6632          { ac_try='test -s conftest$ac_exeext'
6633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634   (eval $ac_try) 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); }; }; then
6638   ac_cv_lib_curses_main=yes
6639 else
6640   echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6642
6643 ac_cv_lib_curses_main=no
6644 fi
6645 rm -f conftest.err conftest.$ac_objext \
6646       conftest$ac_exeext conftest.$ac_ext
6647 LIBS=$ac_check_lib_save_LIBS
6648 fi
6649 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
6650 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
6651 if test $ac_cv_lib_curses_main = yes; then
6652   curses=true
6653 else
6654   curses=false
6655 fi
6656
6657 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6658 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
6659 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6660   echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662   ac_check_lib_save_LIBS=$LIBS
6663 LIBS="-lncurses  $LIBS"
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h.  */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h.  */
6670
6671
6672 int
6673 main ()
6674 {
6675 main ();
6676   ;
6677   return 0;
6678 }
6679 _ACEOF
6680 rm -f conftest.$ac_objext conftest$ac_exeext
6681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6682   (eval $ac_link) 2>conftest.er1
6683   ac_status=$?
6684   grep -v '^ *+' conftest.er1 >conftest.err
6685   rm -f conftest.er1
6686   cat conftest.err >&5
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); } &&
6689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691   (eval $ac_try) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }; } &&
6695          { ac_try='test -s conftest$ac_exeext'
6696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697   (eval $ac_try) 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; }; then
6701   ac_cv_lib_ncurses_main=yes
6702 else
6703   echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 ac_cv_lib_ncurses_main=no
6707 fi
6708 rm -f conftest.err conftest.$ac_objext \
6709       conftest$ac_exeext conftest.$ac_ext
6710 LIBS=$ac_check_lib_save_LIBS
6711 fi
6712 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6713 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
6714 if test $ac_cv_lib_ncurses_main = yes; then
6715   ncurses=true
6716 else
6717   ncurses=false
6718 fi
6719
6720 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
6721 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
6722 if test "${ac_cv_lib_readline_main+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725   ac_check_lib_save_LIBS=$LIBS
6726 LIBS="-lreadline -lcurses $LIBS"
6727 cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h.  */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h.  */
6733
6734
6735 int
6736 main ()
6737 {
6738 main ();
6739   ;
6740   return 0;
6741 }
6742 _ACEOF
6743 rm -f conftest.$ac_objext conftest$ac_exeext
6744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6745   (eval $ac_link) 2>conftest.er1
6746   ac_status=$?
6747   grep -v '^ *+' conftest.er1 >conftest.err
6748   rm -f conftest.er1
6749   cat conftest.err >&5
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); } &&
6752          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754   (eval $ac_try) 2>&5
6755   ac_status=$?
6756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757   (exit $ac_status); }; } &&
6758          { ac_try='test -s conftest$ac_exeext'
6759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760   (eval $ac_try) 2>&5
6761   ac_status=$?
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); }; }; then
6764   ac_cv_lib_readline_main=yes
6765 else
6766   echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6768
6769 ac_cv_lib_readline_main=no
6770 fi
6771 rm -f conftest.err conftest.$ac_objext \
6772       conftest$ac_exeext conftest.$ac_ext
6773 LIBS=$ac_check_lib_save_LIBS
6774 fi
6775 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
6776 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
6777 if test $ac_cv_lib_readline_main = yes; then
6778   readline=true;
6779
6780 cat >>confdefs.h <<\_ACEOF
6781 #define HAVE_READLINE 1
6782 _ACEOF
6783
6784 else
6785   readline=false
6786 fi
6787
6788 wxwin=false
6789 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
6790 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
6791 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794   ac_check_lib_save_LIBS=$LIBS
6795 LIBS="-lwx_gtk-2.4 -L/usr/lib64 -L/usr/lib `gtk-config --libs` `glib-config --libs glib gmodule gthread`  $LIBS"
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h.  */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h.  */
6802
6803
6804 int
6805 main ()
6806 {
6807 main ();
6808   ;
6809   return 0;
6810 }
6811 _ACEOF
6812 rm -f conftest.$ac_objext conftest$ac_exeext
6813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6814   (eval $ac_link) 2>conftest.er1
6815   ac_status=$?
6816   grep -v '^ *+' conftest.er1 >conftest.err
6817   rm -f conftest.er1
6818   cat conftest.err >&5
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); } &&
6821          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823   (eval $ac_try) 2>&5
6824   ac_status=$?
6825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826   (exit $ac_status); }; } &&
6827          { ac_try='test -s conftest$ac_exeext'
6828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829   (eval $ac_try) 2>&5
6830   ac_status=$?
6831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832   (exit $ac_status); }; }; then
6833   ac_cv_lib_wx_gtk_2_4_main=yes
6834 else
6835   echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6837
6838 ac_cv_lib_wx_gtk_2_4_main=no
6839 fi
6840 rm -f conftest.err conftest.$ac_objext \
6841       conftest$ac_exeext conftest.$ac_ext
6842 LIBS=$ac_check_lib_save_LIBS
6843 fi
6844 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
6845 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
6846 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
6847   wxwin=true; wx_gtk=true;
6848 cat >>confdefs.h <<\_ACEOF
6849 #define HAVE_WXWINDOWS 1
6850 _ACEOF
6851
6852 fi
6853
6854 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6855 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6856 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   ac_check_lib_save_LIBS=$LIBS
6860 LIBS="-lwx_mac-2.4  $LIBS"
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h.  */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h.  */
6867
6868
6869 int
6870 main ()
6871 {
6872 main ();
6873   ;
6874   return 0;
6875 }
6876 _ACEOF
6877 rm -f conftest.$ac_objext conftest$ac_exeext
6878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6879   (eval $ac_link) 2>conftest.er1
6880   ac_status=$?
6881   grep -v '^ *+' conftest.er1 >conftest.err
6882   rm -f conftest.er1
6883   cat conftest.err >&5
6884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885   (exit $ac_status); } &&
6886          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888   (eval $ac_try) 2>&5
6889   ac_status=$?
6890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891   (exit $ac_status); }; } &&
6892          { ac_try='test -s conftest$ac_exeext'
6893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894   (eval $ac_try) 2>&5
6895   ac_status=$?
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); }; }; then
6898   ac_cv_lib_wx_mac_2_4_main=yes
6899 else
6900   echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6902
6903 ac_cv_lib_wx_mac_2_4_main=no
6904 fi
6905 rm -f conftest.err conftest.$ac_objext \
6906       conftest$ac_exeext conftest.$ac_ext
6907 LIBS=$ac_check_lib_save_LIBS
6908 fi
6909 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6910 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6911 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6912   wxwin=true; wx_mac=true;
6913 cat >>confdefs.h <<\_ACEOF
6914 #define HAVE_WXWINDOWS 1
6915 _ACEOF
6916
6917 fi
6918
6919 echo "$as_me:$LINENO: checking for fftw_malloc in -lfftw3" >&5
6920 echo $ECHO_N "checking for fftw_malloc in -lfftw3... $ECHO_C" >&6
6921 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then
6922   echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924   ac_check_lib_save_LIBS=$LIBS
6925 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
6926 cat >conftest.$ac_ext <<_ACEOF
6927 /* confdefs.h.  */
6928 _ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h.  */
6932
6933 /* Override any gcc2 internal prototype to avoid an error.  */
6934 #ifdef __cplusplus
6935 extern "C"
6936 #endif
6937 /* We use char because int might match the return type of a gcc2
6938    builtin and then its argument prototype would still apply.  */
6939 char fftw_malloc ();
6940 int
6941 main ()
6942 {
6943 fftw_malloc ();
6944   ;
6945   return 0;
6946 }
6947 _ACEOF
6948 rm -f conftest.$ac_objext conftest$ac_exeext
6949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6950   (eval $ac_link) 2>conftest.er1
6951   ac_status=$?
6952   grep -v '^ *+' conftest.er1 >conftest.err
6953   rm -f conftest.er1
6954   cat conftest.err >&5
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); } &&
6957          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
6963          { ac_try='test -s conftest$ac_exeext'
6964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965   (eval $ac_try) 2>&5
6966   ac_status=$?
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); }; }; then
6969   ac_cv_lib_fftw3_fftw_malloc=yes
6970 else
6971   echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6973
6974 ac_cv_lib_fftw3_fftw_malloc=no
6975 fi
6976 rm -f conftest.err conftest.$ac_objext \
6977       conftest$ac_exeext conftest.$ac_ext
6978 LIBS=$ac_check_lib_save_LIBS
6979 fi
6980 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
6981 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_malloc" >&6
6982 if test $ac_cv_lib_fftw3_fftw_malloc = yes; then
6983   fftw=true;
6984 cat >>confdefs.h <<\_ACEOF
6985 #define HAVE_FFTW 1
6986 _ACEOF
6987
6988 else
6989   fftw=false
6990 fi
6991
6992 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6993 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6994 if test "${ac_cv_lib_GL_main+set}" = set; then
6995   echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997   ac_check_lib_save_LIBS=$LIBS
6998 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
6999 cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h.  */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h.  */
7005
7006
7007 int
7008 main ()
7009 {
7010 main ();
7011   ;
7012   return 0;
7013 }
7014 _ACEOF
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7017   (eval $ac_link) 2>conftest.er1
7018   ac_status=$?
7019   grep -v '^ *+' conftest.er1 >conftest.err
7020   rm -f conftest.er1
7021   cat conftest.err >&5
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); } &&
7024          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026   (eval $ac_try) 2>&5
7027   ac_status=$?
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); }; } &&
7030          { ac_try='test -s conftest$ac_exeext'
7031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032   (eval $ac_try) 2>&5
7033   ac_status=$?
7034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035   (exit $ac_status); }; }; then
7036   ac_cv_lib_GL_main=yes
7037 else
7038   echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7040
7041 ac_cv_lib_GL_main=no
7042 fi
7043 rm -f conftest.err conftest.$ac_objext \
7044       conftest$ac_exeext conftest.$ac_ext
7045 LIBS=$ac_check_lib_save_LIBS
7046 fi
7047 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
7048 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
7049 if test $ac_cv_lib_GL_main = yes; then
7050   libgl=true
7051 else
7052   libgl=false
7053 fi
7054
7055 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
7056 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
7057 if test "${ac_cv_lib_pthread_main+set}" = set; then
7058   echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060   ac_check_lib_save_LIBS=$LIBS
7061 LIBS="-lpthread  $LIBS"
7062 cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h.  */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h.  */
7068
7069
7070 int
7071 main ()
7072 {
7073 main ();
7074   ;
7075   return 0;
7076 }
7077 _ACEOF
7078 rm -f conftest.$ac_objext conftest$ac_exeext
7079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7080   (eval $ac_link) 2>conftest.er1
7081   ac_status=$?
7082   grep -v '^ *+' conftest.er1 >conftest.err
7083   rm -f conftest.er1
7084   cat conftest.err >&5
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); } &&
7087          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089   (eval $ac_try) 2>&5
7090   ac_status=$?
7091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092   (exit $ac_status); }; } &&
7093          { ac_try='test -s conftest$ac_exeext'
7094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095   (eval $ac_try) 2>&5
7096   ac_status=$?
7097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098   (exit $ac_status); }; }; then
7099   ac_cv_lib_pthread_main=yes
7100 else
7101   echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7103
7104 ac_cv_lib_pthread_main=no
7105 fi
7106 rm -f conftest.err conftest.$ac_objext \
7107       conftest$ac_exeext conftest.$ac_ext
7108 LIBS=$ac_check_lib_save_LIBS
7109 fi
7110 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
7111 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
7112 if test $ac_cv_lib_pthread_main = yes; then
7113   pthread=true
7114 else
7115   pthread=false
7116 fi
7117
7118
7119 if test "$zlib" = "true" ; then
7120   echo "$as_me:$LINENO: checking for main in -lpng" >&5
7121 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
7122 if test "${ac_cv_lib_png_main+set}" = set; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125   ac_check_lib_save_LIBS=$LIBS
7126 LIBS="-lpng -lz -lm $LIBS"
7127 cat >conftest.$ac_ext <<_ACEOF
7128 /* confdefs.h.  */
7129 _ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h.  */
7133
7134
7135 int
7136 main ()
7137 {
7138 main ();
7139   ;
7140   return 0;
7141 }
7142 _ACEOF
7143 rm -f conftest.$ac_objext conftest$ac_exeext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7145   (eval $ac_link) 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_c_werror_flag"                   || test ! -s conftest.err'
7153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154   (eval $ac_try) 2>&5
7155   ac_status=$?
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); }; } &&
7158          { ac_try='test -s conftest$ac_exeext'
7159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160   (eval $ac_try) 2>&5
7161   ac_status=$?
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); }; }; then
7164   ac_cv_lib_png_main=yes
7165 else
7166   echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7168
7169 ac_cv_lib_png_main=no
7170 fi
7171 rm -f conftest.err conftest.$ac_objext \
7172       conftest$ac_exeext conftest.$ac_ext
7173 LIBS=$ac_check_lib_save_LIBS
7174 fi
7175 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
7176 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
7177 if test $ac_cv_lib_png_main = yes; then
7178   png=true ;
7179 cat >>confdefs.h <<\_ACEOF
7180 #define HAVE_PNG 1
7181 _ACEOF
7182
7183 else
7184   png=false
7185 fi
7186
7187 fi
7188
7189 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7190 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7191 if test "${ac_cv_header_stdc+set}" = set; then
7192   echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194   cat >conftest.$ac_ext <<_ACEOF
7195 /* confdefs.h.  */
7196 _ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h.  */
7200 #include <stdlib.h>
7201 #include <stdarg.h>
7202 #include <string.h>
7203 #include <float.h>
7204
7205 int
7206 main ()
7207 {
7208
7209   ;
7210   return 0;
7211 }
7212 _ACEOF
7213 rm -f conftest.$ac_objext
7214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215   (eval $ac_compile) 2>conftest.er1
7216   ac_status=$?
7217   grep -v '^ *+' conftest.er1 >conftest.err
7218   rm -f conftest.er1
7219   cat conftest.err >&5
7220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221   (exit $ac_status); } &&
7222          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224   (eval $ac_try) 2>&5
7225   ac_status=$?
7226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); }; } &&
7228          { ac_try='test -s conftest.$ac_objext'
7229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230   (eval $ac_try) 2>&5
7231   ac_status=$?
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); }; }; then
7234   ac_cv_header_stdc=yes
7235 else
7236   echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7238
7239 ac_cv_header_stdc=no
7240 fi
7241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7242
7243 if test $ac_cv_header_stdc = yes; then
7244   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7245   cat >conftest.$ac_ext <<_ACEOF
7246 /* confdefs.h.  */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h.  */
7251 #include <string.h>
7252
7253 _ACEOF
7254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7255   $EGREP "memchr" >/dev/null 2>&1; then
7256   :
7257 else
7258   ac_cv_header_stdc=no
7259 fi
7260 rm -f conftest*
7261
7262 fi
7263
7264 if test $ac_cv_header_stdc = yes; then
7265   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7266   cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h.  */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h.  */
7272 #include <stdlib.h>
7273
7274 _ACEOF
7275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7276   $EGREP "free" >/dev/null 2>&1; then
7277   :
7278 else
7279   ac_cv_header_stdc=no
7280 fi
7281 rm -f conftest*
7282
7283 fi
7284
7285 if test $ac_cv_header_stdc = yes; then
7286   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7287   if test "$cross_compiling" = yes; then
7288   :
7289 else
7290   cat >conftest.$ac_ext <<_ACEOF
7291 /* confdefs.h.  */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h.  */
7296 #include <ctype.h>
7297 #if ((' ' & 0x0FF) == 0x020)
7298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7300 #else
7301 # define ISLOWER(c) \
7302                    (('a' <= (c) && (c) <= 'i') \
7303                      || ('j' <= (c) && (c) <= 'r') \
7304                      || ('s' <= (c) && (c) <= 'z'))
7305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7306 #endif
7307
7308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7309 int
7310 main ()
7311 {
7312   int i;
7313   for (i = 0; i < 256; i++)
7314     if (XOR (islower (i), ISLOWER (i))
7315         || toupper (i) != TOUPPER (i))
7316       exit(2);
7317   exit (0);
7318 }
7319 _ACEOF
7320 rm -f conftest$ac_exeext
7321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7322   (eval $ac_link) 2>&5
7323   ac_status=$?
7324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327   (eval $ac_try) 2>&5
7328   ac_status=$?
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); }; }; then
7331   :
7332 else
7333   echo "$as_me: program exited with status $ac_status" >&5
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7336
7337 ( exit $ac_status )
7338 ac_cv_header_stdc=no
7339 fi
7340 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7341 fi
7342 fi
7343 fi
7344 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7345 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7346 if test $ac_cv_header_stdc = yes; then
7347
7348 cat >>confdefs.h <<\_ACEOF
7349 #define STDC_HEADERS 1
7350 _ACEOF
7351
7352 fi
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378 for ac_header in fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h assert.h sys/time.h sys/resource.h sys/time.h readline.h readline/readline.h
7379 do
7380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7382   echo "$as_me:$LINENO: checking for $ac_header" >&5
7383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 fi
7387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7389 else
7390   # Is the header compilable?
7391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7393 cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h.  */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h.  */
7399 $ac_includes_default
7400 #include <$ac_header>
7401 _ACEOF
7402 rm -f conftest.$ac_objext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7404   (eval $ac_compile) 2>conftest.er1
7405   ac_status=$?
7406   grep -v '^ *+' conftest.er1 >conftest.err
7407   rm -f conftest.er1
7408   cat conftest.err >&5
7409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410   (exit $ac_status); } &&
7411          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413   (eval $ac_try) 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); }; } &&
7417          { ac_try='test -s conftest.$ac_objext'
7418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419   (eval $ac_try) 2>&5
7420   ac_status=$?
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); }; }; then
7423   ac_header_compiler=yes
7424 else
7425   echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7427
7428 ac_header_compiler=no
7429 fi
7430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7432 echo "${ECHO_T}$ac_header_compiler" >&6
7433
7434 # Is the header present?
7435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h.  */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h.  */
7443 #include <$ac_header>
7444 _ACEOF
7445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7447   ac_status=$?
7448   grep -v '^ *+' conftest.er1 >conftest.err
7449   rm -f conftest.er1
7450   cat conftest.err >&5
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); } >/dev/null; then
7453   if test -s conftest.err; then
7454     ac_cpp_err=$ac_c_preproc_warn_flag
7455     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7456   else
7457     ac_cpp_err=
7458   fi
7459 else
7460   ac_cpp_err=yes
7461 fi
7462 if test -z "$ac_cpp_err"; then
7463   ac_header_preproc=yes
7464 else
7465   echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468   ac_header_preproc=no
7469 fi
7470 rm -f conftest.err conftest.$ac_ext
7471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7472 echo "${ECHO_T}$ac_header_preproc" >&6
7473
7474 # So?  What about this header?
7475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7476   yes:no: )
7477     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7481     ac_header_preproc=yes
7482     ;;
7483   no:yes:* )
7484     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7486     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7487 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7488     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7490     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7491 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7494     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7496     (
7497       cat <<\_ASBOX
7498 ## ------------------------------------------ ##
7499 ## Report this to the AC_PACKAGE_NAME lists.  ##
7500 ## ------------------------------------------ ##
7501 _ASBOX
7502     ) |
7503       sed "s/^/$as_me: WARNING:     /" >&2
7504     ;;
7505 esac
7506 echo "$as_me:$LINENO: checking for $ac_header" >&5
7507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509   echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511   eval "$as_ac_Header=\$ac_header_preproc"
7512 fi
7513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7515
7516 fi
7517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7518   cat >>confdefs.h <<_ACEOF
7519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7520 _ACEOF
7521
7522 fi
7523
7524 done
7525
7526
7527 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7528 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7529 if test "${ac_cv_c_const+set}" = set; then
7530   echo $ECHO_N "(cached) $ECHO_C" >&6
7531 else
7532   cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h.  */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h.  */
7538
7539 int
7540 main ()
7541 {
7542 /* FIXME: Include the comments suggested by Paul. */
7543 #ifndef __cplusplus
7544   /* Ultrix mips cc rejects this.  */
7545   typedef int charset[2];
7546   const charset x;
7547   /* SunOS 4.1.1 cc rejects this.  */
7548   char const *const *ccp;
7549   char **p;
7550   /* NEC SVR4.0.2 mips cc rejects this.  */
7551   struct point {int x, y;};
7552   static struct point const zero = {0,0};
7553   /* AIX XL C 1.02.0.0 rejects this.
7554      It does not let you subtract one const X* pointer from another in
7555      an arm of an if-expression whose if-part is not a constant
7556      expression */
7557   const char *g = "string";
7558   ccp = &g + (g ? g-g : 0);
7559   /* HPUX 7.0 cc rejects these. */
7560   ++ccp;
7561   p = (char**) ccp;
7562   ccp = (char const *const *) p;
7563   { /* SCO 3.2v4 cc rejects this.  */
7564     char *t;
7565     char const *s = 0 ? (char *) 0 : (char const *) 0;
7566
7567     *t++ = 0;
7568   }
7569   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7570     int x[] = {25, 17};
7571     const int *foo = &x[0];
7572     ++foo;
7573   }
7574   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7575     typedef const int *iptr;
7576     iptr p = 0;
7577     ++p;
7578   }
7579   { /* AIX XL C 1.02.0.0 rejects this saying
7580        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7581     struct s { int j; const int *ap[3]; };
7582     struct s *b; b->j = 5;
7583   }
7584   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7585     const int foo = 10;
7586   }
7587 #endif
7588
7589   ;
7590   return 0;
7591 }
7592 _ACEOF
7593 rm -f conftest.$ac_objext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595   (eval $ac_compile) 2>conftest.er1
7596   ac_status=$?
7597   grep -v '^ *+' conftest.er1 >conftest.err
7598   rm -f conftest.er1
7599   cat conftest.err >&5
7600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601   (exit $ac_status); } &&
7602          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604   (eval $ac_try) 2>&5
7605   ac_status=$?
7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); }; } &&
7608          { ac_try='test -s conftest.$ac_objext'
7609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610   (eval $ac_try) 2>&5
7611   ac_status=$?
7612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613   (exit $ac_status); }; }; then
7614   ac_cv_c_const=yes
7615 else
7616   echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7618
7619 ac_cv_c_const=no
7620 fi
7621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7622 fi
7623 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7624 echo "${ECHO_T}$ac_cv_c_const" >&6
7625 if test $ac_cv_c_const = no; then
7626
7627 cat >>confdefs.h <<\_ACEOF
7628 #define const
7629 _ACEOF
7630
7631 fi
7632
7633 echo "$as_me:$LINENO: checking for off_t" >&5
7634 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7635 if test "${ac_cv_type_off_t+set}" = set; then
7636   echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638   cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h.  */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h.  */
7644 $ac_includes_default
7645 int
7646 main ()
7647 {
7648 if ((off_t *) 0)
7649   return 0;
7650 if (sizeof (off_t))
7651   return 0;
7652   ;
7653   return 0;
7654 }
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7658   (eval $ac_compile) 2>conftest.er1
7659   ac_status=$?
7660   grep -v '^ *+' conftest.er1 >conftest.err
7661   rm -f conftest.er1
7662   cat conftest.err >&5
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); } &&
7665          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667   (eval $ac_try) 2>&5
7668   ac_status=$?
7669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670   (exit $ac_status); }; } &&
7671          { ac_try='test -s conftest.$ac_objext'
7672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673   (eval $ac_try) 2>&5
7674   ac_status=$?
7675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676   (exit $ac_status); }; }; then
7677   ac_cv_type_off_t=yes
7678 else
7679   echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7681
7682 ac_cv_type_off_t=no
7683 fi
7684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7685 fi
7686 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7687 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7688 if test $ac_cv_type_off_t = yes; then
7689   :
7690 else
7691
7692 cat >>confdefs.h <<_ACEOF
7693 #define off_t long
7694 _ACEOF
7695
7696 fi
7697
7698 echo "$as_me:$LINENO: checking for size_t" >&5
7699 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7700 if test "${ac_cv_type_size_t+set}" = set; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703   cat >conftest.$ac_ext <<_ACEOF
7704 /* confdefs.h.  */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h.  */
7709 $ac_includes_default
7710 int
7711 main ()
7712 {
7713 if ((size_t *) 0)
7714   return 0;
7715 if (sizeof (size_t))
7716   return 0;
7717   ;
7718   return 0;
7719 }
7720 _ACEOF
7721 rm -f conftest.$ac_objext
7722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7723   (eval $ac_compile) 2>conftest.er1
7724   ac_status=$?
7725   grep -v '^ *+' conftest.er1 >conftest.err
7726   rm -f conftest.er1
7727   cat conftest.err >&5
7728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729   (exit $ac_status); } &&
7730          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732   (eval $ac_try) 2>&5
7733   ac_status=$?
7734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735   (exit $ac_status); }; } &&
7736          { ac_try='test -s conftest.$ac_objext'
7737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738   (eval $ac_try) 2>&5
7739   ac_status=$?
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); }; }; then
7742   ac_cv_type_size_t=yes
7743 else
7744   echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7746
7747 ac_cv_type_size_t=no
7748 fi
7749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7750 fi
7751 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7752 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7753 if test $ac_cv_type_size_t = yes; then
7754   :
7755 else
7756
7757 cat >>confdefs.h <<_ACEOF
7758 #define size_t unsigned
7759 _ACEOF
7760
7761 fi
7762
7763 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7764 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7765 if test "${ac_cv_struct_tm+set}" = set; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768   cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h.  */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h.  */
7774 #include <sys/types.h>
7775 #include <time.h>
7776
7777 int
7778 main ()
7779 {
7780 struct tm *tp; tp->tm_sec;
7781   ;
7782   return 0;
7783 }
7784 _ACEOF
7785 rm -f conftest.$ac_objext
7786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7787   (eval $ac_compile) 2>conftest.er1
7788   ac_status=$?
7789   grep -v '^ *+' conftest.er1 >conftest.err
7790   rm -f conftest.er1
7791   cat conftest.err >&5
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); } &&
7794          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796   (eval $ac_try) 2>&5
7797   ac_status=$?
7798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799   (exit $ac_status); }; } &&
7800          { ac_try='test -s conftest.$ac_objext'
7801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802   (eval $ac_try) 2>&5
7803   ac_status=$?
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); }; }; then
7806   ac_cv_struct_tm=time.h
7807 else
7808   echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7810
7811 ac_cv_struct_tm=sys/time.h
7812 fi
7813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7814 fi
7815 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7816 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7817 if test $ac_cv_struct_tm = sys/time.h; then
7818
7819 cat >>confdefs.h <<\_ACEOF
7820 #define TM_IN_SYS_TIME 1
7821 _ACEOF
7822
7823 fi
7824
7825
7826
7827 for ac_func in vprintf
7828 do
7829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7830 echo "$as_me:$LINENO: checking for $ac_func" >&5
7831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7832 if eval "test \"\${$as_ac_var+set}\" = set"; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835   cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h.  */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h.  */
7841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7843 #define $ac_func innocuous_$ac_func
7844
7845 /* System header to define __stub macros and hopefully few prototypes,
7846     which can conflict with char $ac_func (); below.
7847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7848     <limits.h> exists even on freestanding compilers.  */
7849
7850 #ifdef __STDC__
7851 # include <limits.h>
7852 #else
7853 # include <assert.h>
7854 #endif
7855
7856 #undef $ac_func
7857
7858 /* Override any gcc2 internal prototype to avoid an error.  */
7859 #ifdef __cplusplus
7860 extern "C"
7861 {
7862 #endif
7863 /* We use char because int might match the return type of a gcc2
7864    builtin and then its argument prototype would still apply.  */
7865 char $ac_func ();
7866 /* The GNU C library defines this for functions which it implements
7867     to always fail with ENOSYS.  Some functions are actually named
7868     something starting with __ and the normal name is an alias.  */
7869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7870 choke me
7871 #else
7872 char (*f) () = $ac_func;
7873 #endif
7874 #ifdef __cplusplus
7875 }
7876 #endif
7877
7878 int
7879 main ()
7880 {
7881 return f != $ac_func;
7882   ;
7883   return 0;
7884 }
7885 _ACEOF
7886 rm -f conftest.$ac_objext conftest$ac_exeext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7888   (eval $ac_link) 2>conftest.er1
7889   ac_status=$?
7890   grep -v '^ *+' conftest.er1 >conftest.err
7891   rm -f conftest.er1
7892   cat conftest.err >&5
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); } &&
7895          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897   (eval $ac_try) 2>&5
7898   ac_status=$?
7899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); }; } &&
7901          { ac_try='test -s conftest$ac_exeext'
7902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903   (eval $ac_try) 2>&5
7904   ac_status=$?
7905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906   (exit $ac_status); }; }; then
7907   eval "$as_ac_var=yes"
7908 else
7909   echo "$as_me: failed program was:" >&5
7910 sed 's/^/| /' conftest.$ac_ext >&5
7911
7912 eval "$as_ac_var=no"
7913 fi
7914 rm -f conftest.err conftest.$ac_objext \
7915       conftest$ac_exeext conftest.$ac_ext
7916 fi
7917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7918 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7919 if test `eval echo '${'$as_ac_var'}'` = yes; then
7920   cat >>confdefs.h <<_ACEOF
7921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7922 _ACEOF
7923
7924 echo "$as_me:$LINENO: checking for _doprnt" >&5
7925 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7926 if test "${ac_cv_func__doprnt+set}" = set; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929   cat >conftest.$ac_ext <<_ACEOF
7930 /* confdefs.h.  */
7931 _ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h.  */
7935 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7937 #define _doprnt innocuous__doprnt
7938
7939 /* System header to define __stub macros and hopefully few prototypes,
7940     which can conflict with char _doprnt (); below.
7941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7942     <limits.h> exists even on freestanding compilers.  */
7943
7944 #ifdef __STDC__
7945 # include <limits.h>
7946 #else
7947 # include <assert.h>
7948 #endif
7949
7950 #undef _doprnt
7951
7952 /* Override any gcc2 internal prototype to avoid an error.  */
7953 #ifdef __cplusplus
7954 extern "C"
7955 {
7956 #endif
7957 /* We use char because int might match the return type of a gcc2
7958    builtin and then its argument prototype would still apply.  */
7959 char _doprnt ();
7960 /* The GNU C library defines this for functions which it implements
7961     to always fail with ENOSYS.  Some functions are actually named
7962     something starting with __ and the normal name is an alias.  */
7963 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7964 choke me
7965 #else
7966 char (*f) () = _doprnt;
7967 #endif
7968 #ifdef __cplusplus
7969 }
7970 #endif
7971
7972 int
7973 main ()
7974 {
7975 return f != _doprnt;
7976   ;
7977   return 0;
7978 }
7979 _ACEOF
7980 rm -f conftest.$ac_objext conftest$ac_exeext
7981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7982   (eval $ac_link) 2>conftest.er1
7983   ac_status=$?
7984   grep -v '^ *+' conftest.er1 >conftest.err
7985   rm -f conftest.er1
7986   cat conftest.err >&5
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); } &&
7989          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991   (eval $ac_try) 2>&5
7992   ac_status=$?
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); }; } &&
7995          { ac_try='test -s conftest$ac_exeext'
7996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997   (eval $ac_try) 2>&5
7998   ac_status=$?
7999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000   (exit $ac_status); }; }; then
8001   ac_cv_func__doprnt=yes
8002 else
8003   echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8005
8006 ac_cv_func__doprnt=no
8007 fi
8008 rm -f conftest.err conftest.$ac_objext \
8009       conftest$ac_exeext conftest.$ac_ext
8010 fi
8011 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8012 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
8013 if test $ac_cv_func__doprnt = yes; then
8014
8015 cat >>confdefs.h <<\_ACEOF
8016 #define HAVE_DOPRNT 1
8017 _ACEOF
8018
8019 fi
8020
8021 fi
8022 done
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
8039 do
8040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8041 echo "$as_me:$LINENO: checking for $ac_func" >&5
8042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8043 if eval "test \"\${$as_ac_var+set}\" = set"; then
8044   echo $ECHO_N "(cached) $ECHO_C" >&6
8045 else
8046   cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h.  */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h.  */
8052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8054 #define $ac_func innocuous_$ac_func
8055
8056 /* System header to define __stub macros and hopefully few prototypes,
8057     which can conflict with char $ac_func (); below.
8058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8059     <limits.h> exists even on freestanding compilers.  */
8060
8061 #ifdef __STDC__
8062 # include <limits.h>
8063 #else
8064 # include <assert.h>
8065 #endif
8066
8067 #undef $ac_func
8068
8069 /* Override any gcc2 internal prototype to avoid an error.  */
8070 #ifdef __cplusplus
8071 extern "C"
8072 {
8073 #endif
8074 /* We use char because int might match the return type of a gcc2
8075    builtin and then its argument prototype would still apply.  */
8076 char $ac_func ();
8077 /* The GNU C library defines this for functions which it implements
8078     to always fail with ENOSYS.  Some functions are actually named
8079     something starting with __ and the normal name is an alias.  */
8080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8081 choke me
8082 #else
8083 char (*f) () = $ac_func;
8084 #endif
8085 #ifdef __cplusplus
8086 }
8087 #endif
8088
8089 int
8090 main ()
8091 {
8092 return f != $ac_func;
8093   ;
8094   return 0;
8095 }
8096 _ACEOF
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8099   (eval $ac_link) 2>conftest.er1
8100   ac_status=$?
8101   grep -v '^ *+' conftest.er1 >conftest.err
8102   rm -f conftest.er1
8103   cat conftest.err >&5
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); } &&
8106          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108   (eval $ac_try) 2>&5
8109   ac_status=$?
8110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111   (exit $ac_status); }; } &&
8112          { ac_try='test -s conftest$ac_exeext'
8113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114   (eval $ac_try) 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); }; }; then
8118   eval "$as_ac_var=yes"
8119 else
8120   echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8122
8123 eval "$as_ac_var=no"
8124 fi
8125 rm -f conftest.err conftest.$ac_objext \
8126       conftest$ac_exeext conftest.$ac_ext
8127 fi
8128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8130 if test `eval echo '${'$as_ac_var'}'` = yes; then
8131   cat >>confdefs.h <<_ACEOF
8132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8133 _ACEOF
8134
8135 fi
8136 done
8137
8138 echo "$as_me:$LINENO: checking for basename" >&5
8139 echo $ECHO_N "checking for basename... $ECHO_C" >&6
8140 if test "${ac_cv_func_basename+set}" = set; then
8141   echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143   cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149 /* Define basename to an innocuous variant, in case <limits.h> declares basename.
8150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8151 #define basename innocuous_basename
8152
8153 /* System header to define __stub macros and hopefully few prototypes,
8154     which can conflict with char basename (); below.
8155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8156     <limits.h> exists even on freestanding compilers.  */
8157
8158 #ifdef __STDC__
8159 # include <limits.h>
8160 #else
8161 # include <assert.h>
8162 #endif
8163
8164 #undef basename
8165
8166 /* Override any gcc2 internal prototype to avoid an error.  */
8167 #ifdef __cplusplus
8168 extern "C"
8169 {
8170 #endif
8171 /* We use char because int might match the return type of a gcc2
8172    builtin and then its argument prototype would still apply.  */
8173 char basename ();
8174 /* The GNU C library defines this for functions which it implements
8175     to always fail with ENOSYS.  Some functions are actually named
8176     something starting with __ and the normal name is an alias.  */
8177 #if defined (__stub_basename) || defined (__stub___basename)
8178 choke me
8179 #else
8180 char (*f) () = basename;
8181 #endif
8182 #ifdef __cplusplus
8183 }
8184 #endif
8185
8186 int
8187 main ()
8188 {
8189 return f != basename;
8190   ;
8191   return 0;
8192 }
8193 _ACEOF
8194 rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8196   (eval $ac_link) 2>conftest.er1
8197   ac_status=$?
8198   grep -v '^ *+' conftest.er1 >conftest.err
8199   rm -f conftest.er1
8200   cat conftest.err >&5
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); } &&
8203          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205   (eval $ac_try) 2>&5
8206   ac_status=$?
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); }; } &&
8209          { ac_try='test -s conftest$ac_exeext'
8210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211   (eval $ac_try) 2>&5
8212   ac_status=$?
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); }; }; then
8215   ac_cv_func_basename=yes
8216 else
8217   echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8219
8220 ac_cv_func_basename=no
8221 fi
8222 rm -f conftest.err conftest.$ac_objext \
8223       conftest$ac_exeext conftest.$ac_ext
8224 fi
8225 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
8226 echo "${ECHO_T}$ac_cv_func_basename" >&6
8227
8228 echo "$as_me:$LINENO: checking for setjmp" >&5
8229 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
8230 if test "${ac_cv_func_setjmp+set}" = set; then
8231   echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233   cat >conftest.$ac_ext <<_ACEOF
8234 /* confdefs.h.  */
8235 _ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h.  */
8239 /* Define setjmp to an innocuous variant, in case <limits.h> declares setjmp.
8240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8241 #define setjmp innocuous_setjmp
8242
8243 /* System header to define __stub macros and hopefully few prototypes,
8244     which can conflict with char setjmp (); below.
8245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8246     <limits.h> exists even on freestanding compilers.  */
8247
8248 #ifdef __STDC__
8249 # include <limits.h>
8250 #else
8251 # include <assert.h>
8252 #endif
8253
8254 #undef setjmp
8255
8256 /* Override any gcc2 internal prototype to avoid an error.  */
8257 #ifdef __cplusplus
8258 extern "C"
8259 {
8260 #endif
8261 /* We use char because int might match the return type of a gcc2
8262    builtin and then its argument prototype would still apply.  */
8263 char setjmp ();
8264 /* The GNU C library defines this for functions which it implements
8265     to always fail with ENOSYS.  Some functions are actually named
8266     something starting with __ and the normal name is an alias.  */
8267 #if defined (__stub_setjmp) || defined (__stub___setjmp)
8268 choke me
8269 #else
8270 char (*f) () = setjmp;
8271 #endif
8272 #ifdef __cplusplus
8273 }
8274 #endif
8275
8276 int
8277 main ()
8278 {
8279 return f != setjmp;
8280   ;
8281   return 0;
8282 }
8283 _ACEOF
8284 rm -f conftest.$ac_objext conftest$ac_exeext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8286   (eval $ac_link) 2>conftest.er1
8287   ac_status=$?
8288   grep -v '^ *+' conftest.er1 >conftest.err
8289   rm -f conftest.er1
8290   cat conftest.err >&5
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); } &&
8293          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295   (eval $ac_try) 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; } &&
8299          { ac_try='test -s conftest$ac_exeext'
8300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301   (eval $ac_try) 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); }; }; then
8305   ac_cv_func_setjmp=yes
8306 else
8307   echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 ac_cv_func_setjmp=no
8311 fi
8312 rm -f conftest.err conftest.$ac_objext \
8313       conftest$ac_exeext conftest.$ac_ext
8314 fi
8315 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
8316 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
8317
8318 echo "$as_me:$LINENO: checking for setpriority" >&5
8319 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
8320 if test "${ac_cv_func_setpriority+set}" = set; then
8321   echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323   cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h.  */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h.  */
8329 /* Define setpriority to an innocuous variant, in case <limits.h> declares setpriority.
8330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8331 #define setpriority innocuous_setpriority
8332
8333 /* System header to define __stub macros and hopefully few prototypes,
8334     which can conflict with char setpriority (); below.
8335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8336     <limits.h> exists even on freestanding compilers.  */
8337
8338 #ifdef __STDC__
8339 # include <limits.h>
8340 #else
8341 # include <assert.h>
8342 #endif
8343
8344 #undef setpriority
8345
8346 /* Override any gcc2 internal prototype to avoid an error.  */
8347 #ifdef __cplusplus
8348 extern "C"
8349 {
8350 #endif
8351 /* We use char because int might match the return type of a gcc2
8352    builtin and then its argument prototype would still apply.  */
8353 char setpriority ();
8354 /* The GNU C library defines this for functions which it implements
8355     to always fail with ENOSYS.  Some functions are actually named
8356     something starting with __ and the normal name is an alias.  */
8357 #if defined (__stub_setpriority) || defined (__stub___setpriority)
8358 choke me
8359 #else
8360 char (*f) () = setpriority;
8361 #endif
8362 #ifdef __cplusplus
8363 }
8364 #endif
8365
8366 int
8367 main ()
8368 {
8369 return f != setpriority;
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376   (eval $ac_link) 2>conftest.er1
8377   ac_status=$?
8378   grep -v '^ *+' conftest.er1 >conftest.err
8379   rm -f conftest.er1
8380   cat conftest.err >&5
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } &&
8383          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385   (eval $ac_try) 2>&5
8386   ac_status=$?
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); }; } &&
8389          { ac_try='test -s conftest$ac_exeext'
8390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391   (eval $ac_try) 2>&5
8392   ac_status=$?
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); }; }; then
8395   ac_cv_func_setpriority=yes
8396 else
8397   echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8399
8400 ac_cv_func_setpriority=no
8401 fi
8402 rm -f conftest.err conftest.$ac_objext \
8403       conftest$ac_exeext conftest.$ac_ext
8404 fi
8405 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
8406 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
8407
8408 echo "$as_me:$LINENO: checking for time" >&5
8409 echo $ECHO_N "checking for time... $ECHO_C" >&6
8410 if test "${ac_cv_func_time+set}" = set; then
8411   echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413   cat >conftest.$ac_ext <<_ACEOF
8414 /* confdefs.h.  */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h.  */
8419 /* Define time to an innocuous variant, in case <limits.h> declares time.
8420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8421 #define time innocuous_time
8422
8423 /* System header to define __stub macros and hopefully few prototypes,
8424     which can conflict with char time (); below.
8425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8426     <limits.h> exists even on freestanding compilers.  */
8427
8428 #ifdef __STDC__
8429 # include <limits.h>
8430 #else
8431 # include <assert.h>
8432 #endif
8433
8434 #undef time
8435
8436 /* Override any gcc2 internal prototype to avoid an error.  */
8437 #ifdef __cplusplus
8438 extern "C"
8439 {
8440 #endif
8441 /* We use char because int might match the return type of a gcc2
8442    builtin and then its argument prototype would still apply.  */
8443 char time ();
8444 /* The GNU C library defines this for functions which it implements
8445     to always fail with ENOSYS.  Some functions are actually named
8446     something starting with __ and the normal name is an alias.  */
8447 #if defined (__stub_time) || defined (__stub___time)
8448 choke me
8449 #else
8450 char (*f) () = time;
8451 #endif
8452 #ifdef __cplusplus
8453 }
8454 #endif
8455
8456 int
8457 main ()
8458 {
8459 return f != time;
8460   ;
8461   return 0;
8462 }
8463 _ACEOF
8464 rm -f conftest.$ac_objext conftest$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466   (eval $ac_link) 2>conftest.er1
8467   ac_status=$?
8468   grep -v '^ *+' conftest.er1 >conftest.err
8469   rm -f conftest.er1
8470   cat conftest.err >&5
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); } &&
8473          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475   (eval $ac_try) 2>&5
8476   ac_status=$?
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); }; } &&
8479          { ac_try='test -s conftest$ac_exeext'
8480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481   (eval $ac_try) 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); }; }; then
8485   ac_cv_func_time=yes
8486 else
8487   echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8489
8490 ac_cv_func_time=no
8491 fi
8492 rm -f conftest.err conftest.$ac_objext \
8493       conftest$ac_exeext conftest.$ac_ext
8494 fi
8495 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
8496 echo "${ECHO_T}$ac_cv_func_time" >&6
8497
8498 echo "$as_me:$LINENO: checking for gettimeofday" >&5
8499 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
8500 if test "${ac_cv_func_gettimeofday+set}" = set; then
8501   echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503   cat >conftest.$ac_ext <<_ACEOF
8504 /* confdefs.h.  */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h.  */
8509 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
8510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8511 #define gettimeofday innocuous_gettimeofday
8512
8513 /* System header to define __stub macros and hopefully few prototypes,
8514     which can conflict with char gettimeofday (); below.
8515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8516     <limits.h> exists even on freestanding compilers.  */
8517
8518 #ifdef __STDC__
8519 # include <limits.h>
8520 #else
8521 # include <assert.h>
8522 #endif
8523
8524 #undef gettimeofday
8525
8526 /* Override any gcc2 internal prototype to avoid an error.  */
8527 #ifdef __cplusplus
8528 extern "C"
8529 {
8530 #endif
8531 /* We use char because int might match the return type of a gcc2
8532    builtin and then its argument prototype would still apply.  */
8533 char gettimeofday ();
8534 /* The GNU C library defines this for functions which it implements
8535     to always fail with ENOSYS.  Some functions are actually named
8536     something starting with __ and the normal name is an alias.  */
8537 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
8538 choke me
8539 #else
8540 char (*f) () = gettimeofday;
8541 #endif
8542 #ifdef __cplusplus
8543 }
8544 #endif
8545
8546 int
8547 main ()
8548 {
8549 return f != gettimeofday;
8550   ;
8551   return 0;
8552 }
8553 _ACEOF
8554 rm -f conftest.$ac_objext conftest$ac_exeext
8555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8556   (eval $ac_link) 2>conftest.er1
8557   ac_status=$?
8558   grep -v '^ *+' conftest.er1 >conftest.err
8559   rm -f conftest.er1
8560   cat conftest.err >&5
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); } &&
8563          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565   (eval $ac_try) 2>&5
8566   ac_status=$?
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); }; } &&
8569          { ac_try='test -s conftest$ac_exeext'
8570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571   (eval $ac_try) 2>&5
8572   ac_status=$?
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); }; }; then
8575   ac_cv_func_gettimeofday=yes
8576 else
8577   echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8579
8580 ac_cv_func_gettimeofday=no
8581 fi
8582 rm -f conftest.err conftest.$ac_objext \
8583       conftest$ac_exeext conftest.$ac_ext
8584 fi
8585 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
8586 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
8587
8588 echo "$as_me:$LINENO: checking for getopt" >&5
8589 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8590 if test "${ac_cv_func_getopt+set}" = set; then
8591   echo $ECHO_N "(cached) $ECHO_C" >&6
8592 else
8593   cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h.  */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h.  */
8599 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
8600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8601 #define getopt innocuous_getopt
8602
8603 /* System header to define __stub macros and hopefully few prototypes,
8604     which can conflict with char getopt (); below.
8605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8606     <limits.h> exists even on freestanding compilers.  */
8607
8608 #ifdef __STDC__
8609 # include <limits.h>
8610 #else
8611 # include <assert.h>
8612 #endif
8613
8614 #undef getopt
8615
8616 /* Override any gcc2 internal prototype to avoid an error.  */
8617 #ifdef __cplusplus
8618 extern "C"
8619 {
8620 #endif
8621 /* We use char because int might match the return type of a gcc2
8622    builtin and then its argument prototype would still apply.  */
8623 char getopt ();
8624 /* The GNU C library defines this for functions which it implements
8625     to always fail with ENOSYS.  Some functions are actually named
8626     something starting with __ and the normal name is an alias.  */
8627 #if defined (__stub_getopt) || defined (__stub___getopt)
8628 choke me
8629 #else
8630 char (*f) () = getopt;
8631 #endif
8632 #ifdef __cplusplus
8633 }
8634 #endif
8635
8636 int
8637 main ()
8638 {
8639 return f != getopt;
8640   ;
8641   return 0;
8642 }
8643 _ACEOF
8644 rm -f conftest.$ac_objext conftest$ac_exeext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646   (eval $ac_link) 2>conftest.er1
8647   ac_status=$?
8648   grep -v '^ *+' conftest.er1 >conftest.err
8649   rm -f conftest.er1
8650   cat conftest.err >&5
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); } &&
8653          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655   (eval $ac_try) 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); }; } &&
8659          { ac_try='test -s conftest$ac_exeext'
8660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661   (eval $ac_try) 2>&5
8662   ac_status=$?
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); }; }; then
8665   ac_cv_func_getopt=yes
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8669
8670 ac_cv_func_getopt=no
8671 fi
8672 rm -f conftest.err conftest.$ac_objext \
8673       conftest$ac_exeext conftest.$ac_ext
8674 fi
8675 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8676 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8677 if test $ac_cv_func_getopt = yes; then
8678    getopt=true
8679 else
8680    getopt=false
8681 fi
8682
8683
8684 if test "${OSTYPE}" = "cygwin" ; then
8685   getopt_long=false
8686 else
8687   echo "$as_me:$LINENO: checking for getopt_long" >&5
8688 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
8689 if test "${ac_cv_func_getopt_long+set}" = set; then
8690   echo $ECHO_N "(cached) $ECHO_C" >&6
8691 else
8692   cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h.  */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h.  */
8698 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
8699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8700 #define getopt_long innocuous_getopt_long
8701
8702 /* System header to define __stub macros and hopefully few prototypes,
8703     which can conflict with char getopt_long (); below.
8704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8705     <limits.h> exists even on freestanding compilers.  */
8706
8707 #ifdef __STDC__
8708 # include <limits.h>
8709 #else
8710 # include <assert.h>
8711 #endif
8712
8713 #undef getopt_long
8714
8715 /* Override any gcc2 internal prototype to avoid an error.  */
8716 #ifdef __cplusplus
8717 extern "C"
8718 {
8719 #endif
8720 /* We use char because int might match the return type of a gcc2
8721    builtin and then its argument prototype would still apply.  */
8722 char getopt_long ();
8723 /* The GNU C library defines this for functions which it implements
8724     to always fail with ENOSYS.  Some functions are actually named
8725     something starting with __ and the normal name is an alias.  */
8726 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
8727 choke me
8728 #else
8729 char (*f) () = getopt_long;
8730 #endif
8731 #ifdef __cplusplus
8732 }
8733 #endif
8734
8735 int
8736 main ()
8737 {
8738 return f != getopt_long;
8739   ;
8740   return 0;
8741 }
8742 _ACEOF
8743 rm -f conftest.$ac_objext conftest$ac_exeext
8744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8745   (eval $ac_link) 2>conftest.er1
8746   ac_status=$?
8747   grep -v '^ *+' conftest.er1 >conftest.err
8748   rm -f conftest.er1
8749   cat conftest.err >&5
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); } &&
8752          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754   (eval $ac_try) 2>&5
8755   ac_status=$?
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); }; } &&
8758          { ac_try='test -s conftest$ac_exeext'
8759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760   (eval $ac_try) 2>&5
8761   ac_status=$?
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); }; }; then
8764   ac_cv_func_getopt_long=yes
8765 else
8766   echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8768
8769 ac_cv_func_getopt_long=no
8770 fi
8771 rm -f conftest.err conftest.$ac_objext \
8772       conftest$ac_exeext conftest.$ac_ext
8773 fi
8774 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
8775 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
8776 if test $ac_cv_func_getopt_long = yes; then
8777    getopt_long=true
8778 else
8779    getopt_long=false
8780 fi
8781
8782 fi
8783
8784 if test "${getopt_long}" = "false" ; then
8785   my_includes="$my_includes -I../getopt"
8786
8787 cat >>confdefs.h <<\_ACEOF
8788 #define HAVE_GETOPT_LONG 1
8789 _ACEOF
8790
8791   ctlibs_base="$ctlibs_base -lgetopt"
8792   LDFLAGS="$LDFLAGS -L../getopt"
8793   GETOPTLONG=1
8794 fi
8795
8796
8797 if test "$GETOPTLONG"="1"; then
8798   INCLUDED_GETOPT_LONG_TRUE=
8799   INCLUDED_GETOPT_LONG_FALSE='#'
8800 else
8801   INCLUDED_GETOPT_LONG_TRUE='#'
8802   INCLUDED_GETOPT_LONG_FALSE=
8803 fi
8804
8805
8806 if test "${readline}" = "true" ; then
8807   ctlibs_base="$ctlibs_base -lreadline"
8808   if test "${ncurses}" = "true"; then
8809     ctlibs_base="$ctlibs_base -lncurses"
8810   elif test "${curses}" = "true"; then
8811     ctlibs_base="$ctlibs_base -lcurses"
8812   fi
8813 fi
8814
8815 echo "$as_me:$LINENO: checking debug" >&5
8816 echo $ECHO_N "checking debug... $ECHO_C" >&6
8817 # Check whether --enable-debug or --disable-debug was given.
8818 if test "${enable_debug+set}" = set; then
8819   enableval="$enable_debug"
8820   case "${enableval}" in
8821   yes) debug=true
8822        echo "$as_me:$LINENO: result: yes" >&5
8823 echo "${ECHO_T}yes" >&6
8824        ;;
8825   no)  debug=false
8826        echo "$as_me:$LINENO: result: no" >&5
8827 echo "${ECHO_T}no" >&6
8828        ;;
8829   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
8830 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
8831        ;;
8832 esac
8833 else
8834   debug=false; echo "$as_me:$LINENO: result: no" >&5
8835 echo "${ECHO_T}no" >&6
8836 fi;
8837
8838
8839 if test "$debug" = "true"; then
8840   DEBUG_TRUE=
8841   DEBUG_FALSE='#'
8842 else
8843   DEBUG_TRUE='#'
8844   DEBUG_FALSE=
8845 fi
8846
8847
8848 if test "$datadir" != "" ; then
8849   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
8850 fi
8851
8852 if test "$debug" = "true" ; then
8853   CFLAGS="$CFLAGS -g -DDEBUG"
8854
8855 cat >>confdefs.h <<\_ACEOF
8856 #define DEBUG 1
8857 _ACEOF
8858
8859 else
8860   CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
8861
8862 cat >>confdefs.h <<\_ACEOF
8863 #define NDEBUG 1
8864 _ACEOF
8865
8866 fi
8867
8868 if test "${pthread}" = "true" ; then
8869
8870 cat >>confdefs.h <<\_ACEOF
8871 #define HAVE_WXTHREADS 1
8872 _ACEOF
8873
8874 fi
8875
8876 echo "$as_me:$LINENO: checking sstream" >&5
8877 echo $ECHO_N "checking sstream... $ECHO_C" >&6
8878  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
8879      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
8880      test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
8881
8882 cat >>confdefs.h <<\_ACEOF
8883 #define HAVE_SSTREAM 1
8884 _ACEOF
8885
8886    echo "$as_me:$LINENO: result: yes" >&5
8887 echo "${ECHO_T}yes" >&6
8888   else
8889    echo "$as_me:$LINENO: result: no" >&5
8890 echo "${ECHO_T}no" >&6
8891  fi
8892
8893
8894 CFLAGS="$CFLAGS -Wall"
8895 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
8896 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
8897 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
8898 if test "${enable_verbose_warnings+set}" = set; then
8899   enableval="$enable_verbose_warnings"
8900    case "$enableval" in
8901   yes)
8902     echo "$as_me:$LINENO: result: yes" >&5
8903 echo "${ECHO_T}yes" >&6
8904     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
8905     ;;
8906   *)
8907     echo "$as_me:$LINENO: result: no" >&5
8908 echo "${ECHO_T}no" >&6
8909     ;;
8910   esac
8911 else
8912   echo "$as_me:$LINENO: result: no" >&5
8913 echo "${ECHO_T}no" >&6
8914
8915 fi;
8916
8917 echo "$as_me:$LINENO: checking static executables" >&5
8918 echo $ECHO_N "checking static executables... $ECHO_C" >&6
8919 # Check whether --enable-static or --disable-static was given.
8920 if test "${enable_static+set}" = set; then
8921   enableval="$enable_static"
8922    case "$enableval" in
8923   yes)
8924     echo "$as_me:$LINENO: result: yes" >&5
8925 echo "${ECHO_T}yes" >&6
8926     CFLAGS="$CFLAGS --static"
8927     ;;
8928   *)
8929     echo "$as_me:$LINENO: result: no" >&5
8930 echo "${ECHO_T}no" >&6
8931     ;;
8932   esac
8933 else
8934   echo "$as_me:$LINENO: result: no" >&5
8935 echo "${ECHO_T}no" >&6
8936
8937 fi;
8938
8939
8940 # Check whether --with-lam or --without-lam was given.
8941 if test "${with_lam+set}" = set; then
8942   withval="$with_lam"
8943       if test "$withval" != "no" ; then
8944          trylamdir=$withval
8945      fi
8946
8947 fi;
8948
8949 if test "$withval" != "no" ; then
8950   if test "$prefix" != "NONE" ; then
8951      trylamdir="$trylamdir $prefix"
8952   fi
8953
8954   echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
8955 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
8956   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
8957     if test -x "$testlamdir/bin/hcp" ; then
8958       if test "$testlamdir" != "/usr"; then
8959         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
8960         CFLAGS="$CFLAGS -I$testlamdir/include"
8961       fi
8962       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
8963       lamdir="$testlamdir"
8964
8965       mpienable="true"
8966
8967       break
8968     fi
8969   done
8970   echo "$as_me:$LINENO: result: $lamdir" >&5
8971 echo "${ECHO_T}$lamdir" >&6
8972 else
8973   echo "$as_me:$LINENO: result: no" >&5
8974 echo "${ECHO_T}no" >&6
8975 fi
8976
8977
8978
8979 # Check whether --with-ctn or --without-ctn was given.
8980 if test "${with_ctn+set}" = set; then
8981   withval="$with_ctn"
8982       if test "$withval" != "no" ; then
8983          tryctndir=$withval
8984      fi
8985
8986 fi;
8987
8988 if test "$withval" == "no" -o "$withval" == "NONE" ; then
8989   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8990 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8991   echo "$as_me:$LINENO: result: disabled" >&5
8992 echo "${ECHO_T}disabled" >&6
8993 else
8994   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8995 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8996   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
8997     if test -f "$testctndir/libctn.a" ; then
8998       LDFLAGS="$LDFLAGS -L$testctndir"
8999       ctnlib="true"
9000       break
9001     fi
9002   done
9003   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
9004     if test -f "$testctndir/ctn_os.h" ; then
9005       CFLAGS="$CFLAGS -I$testctndir"
9006       ctninclude="true"
9007       break
9008     fi
9009   done
9010   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
9011       ctn="true"
9012
9013 cat >>confdefs.h <<\_ACEOF
9014 #define HAVE_CTN_DICOM 1
9015 _ACEOF
9016
9017       echo "$as_me:$LINENO: result: yes" >&5
9018 echo "${ECHO_T}yes" >&6
9019   else
9020     echo "$as_me:$LINENO: result: no" >&5
9021 echo "${ECHO_T}no" >&6
9022   fi
9023 fi
9024
9025 echo "$as_me:$LINENO: checking for CPU specification" >&5
9026 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
9027
9028 # Check whether --with-mcpu or --without-mcpu was given.
9029 if test "${with_mcpu+set}" = set; then
9030   withval="$with_mcpu"
9031
9032 fi;
9033
9034 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
9035   echo "$as_me:$LINENO: result: no" >&5
9036 echo "${ECHO_T}no" >&6
9037 else
9038   echo "$as_me:$LINENO: result: $withval" >&5
9039 echo "${ECHO_T}$withval" >&6
9040   CFLAGS="$CFLAGS -mcpu=$withval"
9041 fi
9042
9043 echo "$as_me:$LINENO: checking for web access" >&5
9044 echo $ECHO_N "checking for web access... $ECHO_C" >&6
9045
9046 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
9047 if test "${with_cgibin_dir+set}" = set; then
9048   withval="$with_cgibin_dir"
9049    cgibindir=$withval ;
9050 fi;
9051
9052
9053 # Check whether --with-cgibin-url or --without-cgibin-url was given.
9054 if test "${with_cgibin_url+set}" = set; then
9055   withval="$with_cgibin_url"
9056    cgibinurl=$withval ;
9057 fi;
9058
9059
9060 # Check whether --with-webdata-dir or --without-webdata-dir was given.
9061 if test "${with_webdata_dir+set}" = set; then
9062   withval="$with_webdata_dir"
9063    webdatadir=$withval ;
9064 fi;
9065
9066
9067 # Check whether --with-webdata-url or --without-webdata-url was given.
9068 if test "${with_webdata_url+set}" = set; then
9069   withval="$with_webdata_url"
9070    webdataurl=$withval ;
9071 fi;
9072
9073
9074 # Check whether --with-html-dir or --without-html-dir was given.
9075 if test "${with_html_dir+set}" = set; then
9076   withval="$with_html_dir"
9077    htmldir=$withval ;
9078 fi;
9079
9080 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
9081   cgiprograms="ctsim.cgi ctsim.conf"
9082
9083 fi
9084
9085 if test -n "$htmldir" ; then
9086   htmldata=simulate.html
9087
9088 fi
9089
9090
9091 if test -n "$htmldir"; then
9092   USE_HTML_TRUE=
9093   USE_HTML_FALSE='#'
9094 else
9095   USE_HTML_TRUE='#'
9096   USE_HTML_FALSE=
9097 fi
9098
9099
9100 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
9101   webenabled=true
9102
9103   echo "$as_me:$LINENO: result: yes" >&5
9104 echo "${ECHO_T}yes" >&6
9105   if test -z "$cgibindir" ; then
9106     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
9107 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
9108    { (exit 1); exit 1; }; }
9109   elif test -z "$cgibinurl" ; then
9110     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
9111 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
9112    { (exit 1); exit 1; }; }
9113   elif test -z "$webdatadir" ; then
9114     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
9115 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
9116    { (exit 1); exit 1; }; }
9117   elif test -z "$webdataurl" ; then
9118     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
9119 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
9120    { (exit 1); exit 1; }; }
9121   elif test -z "$htmldir" ; then
9122     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
9123 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
9124    { (exit 1); exit 1; }; }
9125   fi
9126 else
9127   echo "$as_me:$LINENO: result: no" >&5
9128 echo "${ECHO_T}no" >&6
9129 fi
9130
9131
9132
9133 if test -n "$lamdir"; then
9134   USE_LAM_TRUE=
9135   USE_LAM_FALSE='#'
9136 else
9137   USE_LAM_TRUE='#'
9138   USE_LAM_FALSE=
9139 fi
9140
9141
9142
9143 if test "x$ac_path_x_has_been_run" != xyes; then
9144   echo "$as_me:$LINENO: checking for X" >&5
9145 echo $ECHO_N "checking for X... $ECHO_C" >&6
9146
9147 ac_path_x_has_been_run=yes
9148
9149 # Check whether --with-x or --without-x was given.
9150 if test "${with_x+set}" = set; then
9151   withval="$with_x"
9152
9153 fi;
9154 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9155 if test "x$with_x" = xno; then
9156   # The user explicitly disabled X.
9157   have_x=disabled
9158 else
9159   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9160     # Both variables are already set.
9161     have_x=yes
9162   else
9163     if test "${ac_cv_have_x+set}" = set; then
9164   echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166   # One or both of the vars are not set, and there is no cached value.
9167 ac_x_includes=no ac_x_libraries=no
9168 rm -fr conftest.dir
9169 if mkdir conftest.dir; then
9170   cd conftest.dir
9171   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9172   cat >Imakefile <<'_ACEOF'
9173 acfindx:
9174         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9175 _ACEOF
9176   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9177     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9178     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9179     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9180     for ac_extension in a so sl; do
9181       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9182          test -f $ac_im_libdir/libX11.$ac_extension; then
9183         ac_im_usrlibdir=$ac_im_libdir; break
9184       fi
9185     done
9186     # Screen out bogus values from the imake configuration.  They are
9187     # bogus both because they are the default anyway, and because
9188     # using them would break gcc on systems where it needs fixed includes.
9189     case $ac_im_incroot in
9190         /usr/include) ;;
9191         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9192     esac
9193     case $ac_im_usrlibdir in
9194         /usr/lib | /lib) ;;
9195         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9196     esac
9197   fi
9198   cd ..
9199   rm -fr conftest.dir
9200 fi
9201
9202 # Standard set of common directories for X headers.
9203 # Check X11 before X11Rn because it is often a symlink to the current release.
9204 ac_x_header_dirs='
9205 /usr/X11/include
9206 /usr/X11R6/include
9207 /usr/X11R5/include
9208 /usr/X11R4/include
9209
9210 /usr/include/X11
9211 /usr/include/X11R6
9212 /usr/include/X11R5
9213 /usr/include/X11R4
9214
9215 /usr/local/X11/include
9216 /usr/local/X11R6/include
9217 /usr/local/X11R5/include
9218 /usr/local/X11R4/include
9219
9220 /usr/local/include/X11
9221 /usr/local/include/X11R6
9222 /usr/local/include/X11R5
9223 /usr/local/include/X11R4
9224
9225 /usr/X386/include
9226 /usr/x386/include
9227 /usr/XFree86/include/X11
9228
9229 /usr/include
9230 /usr/local/include
9231 /usr/unsupported/include
9232 /usr/athena/include
9233 /usr/local/x11r5/include
9234 /usr/lpp/Xamples/include
9235
9236 /usr/openwin/include
9237 /usr/openwin/share/include'
9238
9239 if test "$ac_x_includes" = no; then
9240   # Guess where to find include files, by looking for a specified header file.
9241   # First, try using that file with no special directory specified.
9242   cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h.  */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h.  */
9248 #include <X11/Intrinsic.h>
9249 _ACEOF
9250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9251   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9252   ac_status=$?
9253   grep -v '^ *+' conftest.er1 >conftest.err
9254   rm -f conftest.er1
9255   cat conftest.err >&5
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } >/dev/null; then
9258   if test -s conftest.err; then
9259     ac_cpp_err=$ac_c_preproc_warn_flag
9260     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9261   else
9262     ac_cpp_err=
9263   fi
9264 else
9265   ac_cpp_err=yes
9266 fi
9267 if test -z "$ac_cpp_err"; then
9268   # We can compile using X headers with no special include directory.
9269 ac_x_includes=
9270 else
9271   echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9273
9274   for ac_dir in $ac_x_header_dirs; do
9275   if test -r "$ac_dir/X11/Intrinsic.h"; then
9276     ac_x_includes=$ac_dir
9277     break
9278   fi
9279 done
9280 fi
9281 rm -f conftest.err conftest.$ac_ext
9282 fi # $ac_x_includes = no
9283
9284 if test "$ac_x_libraries" = no; then
9285   # Check for the libraries.
9286   # See if we find them without any special options.
9287   # Don't add to $LIBS permanently.
9288   ac_save_LIBS=$LIBS
9289   LIBS="-lXt $LIBS"
9290   cat >conftest.$ac_ext <<_ACEOF
9291 /* confdefs.h.  */
9292 _ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h.  */
9296 #include <X11/Intrinsic.h>
9297 int
9298 main ()
9299 {
9300 XtMalloc (0)
9301   ;
9302   return 0;
9303 }
9304 _ACEOF
9305 rm -f conftest.$ac_objext conftest$ac_exeext
9306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9307   (eval $ac_link) 2>conftest.er1
9308   ac_status=$?
9309   grep -v '^ *+' conftest.er1 >conftest.err
9310   rm -f conftest.er1
9311   cat conftest.err >&5
9312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); } &&
9314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316   (eval $ac_try) 2>&5
9317   ac_status=$?
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); }; } &&
9320          { ac_try='test -s conftest$ac_exeext'
9321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322   (eval $ac_try) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); }; }; then
9326   LIBS=$ac_save_LIBS
9327 # We can link X programs with no special library path.
9328 ac_x_libraries=
9329 else
9330   echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9332
9333 LIBS=$ac_save_LIBS
9334 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9335 do
9336   # Don't even attempt the hair of trying to link an X program!
9337   for ac_extension in a so sl; do
9338     if test -r $ac_dir/libXt.$ac_extension; then
9339       ac_x_libraries=$ac_dir
9340       break 2
9341     fi
9342   done
9343 done
9344 fi
9345 rm -f conftest.err conftest.$ac_objext \
9346       conftest$ac_exeext conftest.$ac_ext
9347 fi # $ac_x_libraries = no
9348
9349 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9350   # Didn't find X anywhere.  Cache the known absence of X.
9351   ac_cv_have_x="have_x=no"
9352 else
9353   # Record where we found X for the cache.
9354   ac_cv_have_x="have_x=yes \
9355                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9356 fi
9357 fi
9358
9359   fi
9360   eval "$ac_cv_have_x"
9361 fi # $with_x != no
9362
9363 if test "$have_x" != yes; then
9364   echo "$as_me:$LINENO: result: $have_x" >&5
9365 echo "${ECHO_T}$have_x" >&6
9366   no_x=yes
9367 else
9368   # If each of the values was on the command line, it overrides each guess.
9369   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9370   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9371   # Update the cache value to reflect the command line values.
9372   ac_cv_have_x="have_x=yes \
9373                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9374   # It might be that x_includes is empty (headers are found in the
9375   # standard search path. Then output the corresponding message
9376   ac_out_x_includes=$x_includes
9377   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
9378   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
9379 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
9380 fi
9381
9382 fi
9383 if test "$no_x" = yes; then
9384   # Not all programs may use this symbol, but it does not hurt to define it.
9385
9386 cat >>confdefs.h <<\_ACEOF
9387 #define X_DISPLAY_MISSING 1
9388 _ACEOF
9389
9390   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9391 else
9392   if test -n "$x_includes"; then
9393     X_CFLAGS="$X_CFLAGS -I$x_includes"
9394   fi
9395
9396   # It would also be nice to do this for all -L options, not just this one.
9397   if test -n "$x_libraries"; then
9398     X_LIBS="$X_LIBS -L$x_libraries"
9399     # For Solaris; some versions of Sun CC require a space after -R and
9400     # others require no space.  Words are not sufficient . . . .
9401     case `(uname -sr) 2>/dev/null` in
9402     "SunOS 5"*)
9403       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9404 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9405       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9406       cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h.  */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h.  */
9412
9413 int
9414 main ()
9415 {
9416
9417   ;
9418   return 0;
9419 }
9420 _ACEOF
9421 rm -f conftest.$ac_objext conftest$ac_exeext
9422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9423   (eval $ac_link) 2>conftest.er1
9424   ac_status=$?
9425   grep -v '^ *+' conftest.er1 >conftest.err
9426   rm -f conftest.er1
9427   cat conftest.err >&5
9428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429   (exit $ac_status); } &&
9430          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432   (eval $ac_try) 2>&5
9433   ac_status=$?
9434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); }; } &&
9436          { ac_try='test -s conftest$ac_exeext'
9437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438   (eval $ac_try) 2>&5
9439   ac_status=$?
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); }; }; then
9442   ac_R_nospace=yes
9443 else
9444   echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9446
9447 ac_R_nospace=no
9448 fi
9449 rm -f conftest.err conftest.$ac_objext \
9450       conftest$ac_exeext conftest.$ac_ext
9451       if test $ac_R_nospace = yes; then
9452         echo "$as_me:$LINENO: result: no" >&5
9453 echo "${ECHO_T}no" >&6
9454         X_LIBS="$X_LIBS -R$x_libraries"
9455       else
9456         LIBS="$ac_xsave_LIBS -R $x_libraries"
9457         cat >conftest.$ac_ext <<_ACEOF
9458 /* confdefs.h.  */
9459 _ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h.  */
9463
9464 int
9465 main ()
9466 {
9467
9468   ;
9469   return 0;
9470 }
9471 _ACEOF
9472 rm -f conftest.$ac_objext conftest$ac_exeext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474   (eval $ac_link) 2>conftest.er1
9475   ac_status=$?
9476   grep -v '^ *+' conftest.er1 >conftest.err
9477   rm -f conftest.er1
9478   cat conftest.err >&5
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); } &&
9481          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483   (eval $ac_try) 2>&5
9484   ac_status=$?
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); }; } &&
9487          { ac_try='test -s conftest$ac_exeext'
9488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489   (eval $ac_try) 2>&5
9490   ac_status=$?
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); }; }; then
9493   ac_R_space=yes
9494 else
9495   echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.$ac_ext >&5
9497
9498 ac_R_space=no
9499 fi
9500 rm -f conftest.err conftest.$ac_objext \
9501       conftest$ac_exeext conftest.$ac_ext
9502         if test $ac_R_space = yes; then
9503           echo "$as_me:$LINENO: result: yes" >&5
9504 echo "${ECHO_T}yes" >&6
9505           X_LIBS="$X_LIBS -R $x_libraries"
9506         else
9507           echo "$as_me:$LINENO: result: neither works" >&5
9508 echo "${ECHO_T}neither works" >&6
9509         fi
9510       fi
9511       LIBS=$ac_xsave_LIBS
9512     esac
9513   fi
9514
9515   # Check for system-dependent libraries X programs must link with.
9516   # Do this before checking for the system-independent R6 libraries
9517   # (-lICE), since we may need -lsocket or whatever for X linking.
9518
9519   if test "$ISC" = yes; then
9520     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9521   else
9522     # Martyn Johnson says this is needed for Ultrix, if the X
9523     # libraries were built with DECnet support.  And Karl Berry says
9524     # the Alpha needs dnet_stub (dnet does not exist).
9525     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9526     cat >conftest.$ac_ext <<_ACEOF
9527 /* confdefs.h.  */
9528 _ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h.  */
9532
9533 /* Override any gcc2 internal prototype to avoid an error.  */
9534 #ifdef __cplusplus
9535 extern "C"
9536 #endif
9537 /* We use char because int might match the return type of a gcc2
9538    builtin and then its argument prototype would still apply.  */
9539 char XOpenDisplay ();
9540 int
9541 main ()
9542 {
9543 XOpenDisplay ();
9544   ;
9545   return 0;
9546 }
9547 _ACEOF
9548 rm -f conftest.$ac_objext conftest$ac_exeext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9550   (eval $ac_link) 2>conftest.er1
9551   ac_status=$?
9552   grep -v '^ *+' conftest.er1 >conftest.err
9553   rm -f conftest.er1
9554   cat conftest.err >&5
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); } &&
9557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559   (eval $ac_try) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; } &&
9563          { ac_try='test -s conftest$ac_exeext'
9564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565   (eval $ac_try) 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); }; }; then
9569   :
9570 else
9571   echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9573
9574 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9575 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9576 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9577   echo $ECHO_N "(cached) $ECHO_C" >&6
9578 else
9579   ac_check_lib_save_LIBS=$LIBS
9580 LIBS="-ldnet  $LIBS"
9581 cat >conftest.$ac_ext <<_ACEOF
9582 /* confdefs.h.  */
9583 _ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h.  */
9587
9588 /* Override any gcc2 internal prototype to avoid an error.  */
9589 #ifdef __cplusplus
9590 extern "C"
9591 #endif
9592 /* We use char because int might match the return type of a gcc2
9593    builtin and then its argument prototype would still apply.  */
9594 char dnet_ntoa ();
9595 int
9596 main ()
9597 {
9598 dnet_ntoa ();
9599   ;
9600   return 0;
9601 }
9602 _ACEOF
9603 rm -f conftest.$ac_objext conftest$ac_exeext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9605   (eval $ac_link) 2>conftest.er1
9606   ac_status=$?
9607   grep -v '^ *+' conftest.er1 >conftest.err
9608   rm -f conftest.er1
9609   cat conftest.err >&5
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); } &&
9612          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614   (eval $ac_try) 2>&5
9615   ac_status=$?
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); }; } &&
9618          { ac_try='test -s conftest$ac_exeext'
9619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620   (eval $ac_try) 2>&5
9621   ac_status=$?
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); }; }; then
9624   ac_cv_lib_dnet_dnet_ntoa=yes
9625 else
9626   echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 ac_cv_lib_dnet_dnet_ntoa=no
9630 fi
9631 rm -f conftest.err conftest.$ac_objext \
9632       conftest$ac_exeext conftest.$ac_ext
9633 LIBS=$ac_check_lib_save_LIBS
9634 fi
9635 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9636 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9637 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9638   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9639 fi
9640
9641     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9642       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9643 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9644 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9645   echo $ECHO_N "(cached) $ECHO_C" >&6
9646 else
9647   ac_check_lib_save_LIBS=$LIBS
9648 LIBS="-ldnet_stub  $LIBS"
9649 cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h.  */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h.  */
9655
9656 /* Override any gcc2 internal prototype to avoid an error.  */
9657 #ifdef __cplusplus
9658 extern "C"
9659 #endif
9660 /* We use char because int might match the return type of a gcc2
9661    builtin and then its argument prototype would still apply.  */
9662 char dnet_ntoa ();
9663 int
9664 main ()
9665 {
9666 dnet_ntoa ();
9667   ;
9668   return 0;
9669 }
9670 _ACEOF
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673   (eval $ac_link) 2>conftest.er1
9674   ac_status=$?
9675   grep -v '^ *+' conftest.er1 >conftest.err
9676   rm -f conftest.er1
9677   cat conftest.err >&5
9678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); } &&
9680          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682   (eval $ac_try) 2>&5
9683   ac_status=$?
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); }; } &&
9686          { ac_try='test -s conftest$ac_exeext'
9687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688   (eval $ac_try) 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); }; }; then
9692   ac_cv_lib_dnet_stub_dnet_ntoa=yes
9693 else
9694   echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9696
9697 ac_cv_lib_dnet_stub_dnet_ntoa=no
9698 fi
9699 rm -f conftest.err conftest.$ac_objext \
9700       conftest$ac_exeext conftest.$ac_ext
9701 LIBS=$ac_check_lib_save_LIBS
9702 fi
9703 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9704 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9705 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9706   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9707 fi
9708
9709     fi
9710 fi
9711 rm -f conftest.err conftest.$ac_objext \
9712       conftest$ac_exeext conftest.$ac_ext
9713     LIBS="$ac_xsave_LIBS"
9714
9715     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9716     # to get the SysV transport functions.
9717     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9718     # needs -lnsl.
9719     # The nsl library prevents programs from opening the X display
9720     # on Irix 5.2, according to T.E. Dickey.
9721     # The functions gethostbyname, getservbyname, and inet_addr are
9722     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9723     echo "$as_me:$LINENO: checking for gethostbyname" >&5
9724 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9725 if test "${ac_cv_func_gethostbyname+set}" = set; then
9726   echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728   cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h.  */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h.  */
9734 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9736 #define gethostbyname innocuous_gethostbyname
9737
9738 /* System header to define __stub macros and hopefully few prototypes,
9739     which can conflict with char gethostbyname (); below.
9740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9741     <limits.h> exists even on freestanding compilers.  */
9742
9743 #ifdef __STDC__
9744 # include <limits.h>
9745 #else
9746 # include <assert.h>
9747 #endif
9748
9749 #undef gethostbyname
9750
9751 /* Override any gcc2 internal prototype to avoid an error.  */
9752 #ifdef __cplusplus
9753 extern "C"
9754 {
9755 #endif
9756 /* We use char because int might match the return type of a gcc2
9757    builtin and then its argument prototype would still apply.  */
9758 char gethostbyname ();
9759 /* The GNU C library defines this for functions which it implements
9760     to always fail with ENOSYS.  Some functions are actually named
9761     something starting with __ and the normal name is an alias.  */
9762 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9763 choke me
9764 #else
9765 char (*f) () = gethostbyname;
9766 #endif
9767 #ifdef __cplusplus
9768 }
9769 #endif
9770
9771 int
9772 main ()
9773 {
9774 return f != gethostbyname;
9775   ;
9776   return 0;
9777 }
9778 _ACEOF
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781   (eval $ac_link) 2>conftest.er1
9782   ac_status=$?
9783   grep -v '^ *+' conftest.er1 >conftest.err
9784   rm -f conftest.er1
9785   cat conftest.err >&5
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); } &&
9788          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790   (eval $ac_try) 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); }; } &&
9794          { ac_try='test -s conftest$ac_exeext'
9795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796   (eval $ac_try) 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); }; }; then
9800   ac_cv_func_gethostbyname=yes
9801 else
9802   echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9804
9805 ac_cv_func_gethostbyname=no
9806 fi
9807 rm -f conftest.err conftest.$ac_objext \
9808       conftest$ac_exeext conftest.$ac_ext
9809 fi
9810 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9811 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9812
9813     if test $ac_cv_func_gethostbyname = no; then
9814       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9815 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9816 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9817   echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819   ac_check_lib_save_LIBS=$LIBS
9820 LIBS="-lnsl  $LIBS"
9821 cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h.  */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h.  */
9827
9828 /* Override any gcc2 internal prototype to avoid an error.  */
9829 #ifdef __cplusplus
9830 extern "C"
9831 #endif
9832 /* We use char because int might match the return type of a gcc2
9833    builtin and then its argument prototype would still apply.  */
9834 char gethostbyname ();
9835 int
9836 main ()
9837 {
9838 gethostbyname ();
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845   (eval $ac_link) 2>conftest.er1
9846   ac_status=$?
9847   grep -v '^ *+' conftest.er1 >conftest.err
9848   rm -f conftest.er1
9849   cat conftest.err >&5
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); } &&
9852          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854   (eval $ac_try) 2>&5
9855   ac_status=$?
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); }; } &&
9858          { ac_try='test -s conftest$ac_exeext'
9859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864   ac_cv_lib_nsl_gethostbyname=yes
9865 else
9866   echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9868
9869 ac_cv_lib_nsl_gethostbyname=no
9870 fi
9871 rm -f conftest.err conftest.$ac_objext \
9872       conftest$ac_exeext conftest.$ac_ext
9873 LIBS=$ac_check_lib_save_LIBS
9874 fi
9875 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9876 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9877 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9878   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9879 fi
9880
9881       if test $ac_cv_lib_nsl_gethostbyname = no; then
9882         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9883 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9884 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9885   echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887   ac_check_lib_save_LIBS=$LIBS
9888 LIBS="-lbsd  $LIBS"
9889 cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h.  */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h.  */
9895
9896 /* Override any gcc2 internal prototype to avoid an error.  */
9897 #ifdef __cplusplus
9898 extern "C"
9899 #endif
9900 /* We use char because int might match the return type of a gcc2
9901    builtin and then its argument prototype would still apply.  */
9902 char gethostbyname ();
9903 int
9904 main ()
9905 {
9906 gethostbyname ();
9907   ;
9908   return 0;
9909 }
9910 _ACEOF
9911 rm -f conftest.$ac_objext conftest$ac_exeext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913   (eval $ac_link) 2>conftest.er1
9914   ac_status=$?
9915   grep -v '^ *+' conftest.er1 >conftest.err
9916   rm -f conftest.er1
9917   cat conftest.err >&5
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); } &&
9920          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922   (eval $ac_try) 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; } &&
9926          { ac_try='test -s conftest$ac_exeext'
9927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928   (eval $ac_try) 2>&5
9929   ac_status=$?
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); }; }; then
9932   ac_cv_lib_bsd_gethostbyname=yes
9933 else
9934   echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9936
9937 ac_cv_lib_bsd_gethostbyname=no
9938 fi
9939 rm -f conftest.err conftest.$ac_objext \
9940       conftest$ac_exeext conftest.$ac_ext
9941 LIBS=$ac_check_lib_save_LIBS
9942 fi
9943 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9944 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9945 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9946   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9947 fi
9948
9949       fi
9950     fi
9951
9952     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9953     # socket/setsockopt and other routines are undefined under SCO ODT
9954     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9955     # on later versions), says Simon Leinen: it contains gethostby*
9956     # variants that don't use the name server (or something).  -lsocket
9957     # must be given before -lnsl if both are needed.  We assume that
9958     # if connect needs -lnsl, so does gethostbyname.
9959     echo "$as_me:$LINENO: checking for connect" >&5
9960 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9961 if test "${ac_cv_func_connect+set}" = set; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964   cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h.  */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h.  */
9970 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9972 #define connect innocuous_connect
9973
9974 /* System header to define __stub macros and hopefully few prototypes,
9975     which can conflict with char connect (); below.
9976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977     <limits.h> exists even on freestanding compilers.  */
9978
9979 #ifdef __STDC__
9980 # include <limits.h>
9981 #else
9982 # include <assert.h>
9983 #endif
9984
9985 #undef connect
9986
9987 /* Override any gcc2 internal prototype to avoid an error.  */
9988 #ifdef __cplusplus
9989 extern "C"
9990 {
9991 #endif
9992 /* We use char because int might match the return type of a gcc2
9993    builtin and then its argument prototype would still apply.  */
9994 char connect ();
9995 /* The GNU C library defines this for functions which it implements
9996     to always fail with ENOSYS.  Some functions are actually named
9997     something starting with __ and the normal name is an alias.  */
9998 #if defined (__stub_connect) || defined (__stub___connect)
9999 choke me
10000 #else
10001 char (*f) () = connect;
10002 #endif
10003 #ifdef __cplusplus
10004 }
10005 #endif
10006
10007 int
10008 main ()
10009 {
10010 return f != connect;
10011   ;
10012   return 0;
10013 }
10014 _ACEOF
10015 rm -f conftest.$ac_objext conftest$ac_exeext
10016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10017   (eval $ac_link) 2>conftest.er1
10018   ac_status=$?
10019   grep -v '^ *+' conftest.er1 >conftest.err
10020   rm -f conftest.er1
10021   cat conftest.err >&5
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); } &&
10024          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026   (eval $ac_try) 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); }; } &&
10030          { ac_try='test -s conftest$ac_exeext'
10031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032   (eval $ac_try) 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; }; then
10036   ac_cv_func_connect=yes
10037 else
10038   echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10040
10041 ac_cv_func_connect=no
10042 fi
10043 rm -f conftest.err conftest.$ac_objext \
10044       conftest$ac_exeext conftest.$ac_ext
10045 fi
10046 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10047 echo "${ECHO_T}$ac_cv_func_connect" >&6
10048
10049     if test $ac_cv_func_connect = no; then
10050       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10051 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10052 if test "${ac_cv_lib_socket_connect+set}" = set; then
10053   echo $ECHO_N "(cached) $ECHO_C" >&6
10054 else
10055   ac_check_lib_save_LIBS=$LIBS
10056 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10057 cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h.  */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h.  */
10063
10064 /* Override any gcc2 internal prototype to avoid an error.  */
10065 #ifdef __cplusplus
10066 extern "C"
10067 #endif
10068 /* We use char because int might match the return type of a gcc2
10069    builtin and then its argument prototype would still apply.  */
10070 char connect ();
10071 int
10072 main ()
10073 {
10074 connect ();
10075   ;
10076   return 0;
10077 }
10078 _ACEOF
10079 rm -f conftest.$ac_objext conftest$ac_exeext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081   (eval $ac_link) 2>conftest.er1
10082   ac_status=$?
10083   grep -v '^ *+' conftest.er1 >conftest.err
10084   rm -f conftest.er1
10085   cat conftest.err >&5
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); } &&
10088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090   (eval $ac_try) 2>&5
10091   ac_status=$?
10092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); }; } &&
10094          { ac_try='test -s conftest$ac_exeext'
10095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096   (eval $ac_try) 2>&5
10097   ac_status=$?
10098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099   (exit $ac_status); }; }; then
10100   ac_cv_lib_socket_connect=yes
10101 else
10102   echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10104
10105 ac_cv_lib_socket_connect=no
10106 fi
10107 rm -f conftest.err conftest.$ac_objext \
10108       conftest$ac_exeext conftest.$ac_ext
10109 LIBS=$ac_check_lib_save_LIBS
10110 fi
10111 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10112 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10113 if test $ac_cv_lib_socket_connect = yes; then
10114   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10115 fi
10116
10117     fi
10118
10119     # Guillermo Gomez says -lposix is necessary on A/UX.
10120     echo "$as_me:$LINENO: checking for remove" >&5
10121 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10122 if test "${ac_cv_func_remove+set}" = set; then
10123   echo $ECHO_N "(cached) $ECHO_C" >&6
10124 else
10125   cat >conftest.$ac_ext <<_ACEOF
10126 /* confdefs.h.  */
10127 _ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h.  */
10131 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10133 #define remove innocuous_remove
10134
10135 /* System header to define __stub macros and hopefully few prototypes,
10136     which can conflict with char remove (); below.
10137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10138     <limits.h> exists even on freestanding compilers.  */
10139
10140 #ifdef __STDC__
10141 # include <limits.h>
10142 #else
10143 # include <assert.h>
10144 #endif
10145
10146 #undef remove
10147
10148 /* Override any gcc2 internal prototype to avoid an error.  */
10149 #ifdef __cplusplus
10150 extern "C"
10151 {
10152 #endif
10153 /* We use char because int might match the return type of a gcc2
10154    builtin and then its argument prototype would still apply.  */
10155 char remove ();
10156 /* The GNU C library defines this for functions which it implements
10157     to always fail with ENOSYS.  Some functions are actually named
10158     something starting with __ and the normal name is an alias.  */
10159 #if defined (__stub_remove) || defined (__stub___remove)
10160 choke me
10161 #else
10162 char (*f) () = remove;
10163 #endif
10164 #ifdef __cplusplus
10165 }
10166 #endif
10167
10168 int
10169 main ()
10170 {
10171 return f != remove;
10172   ;
10173   return 0;
10174 }
10175 _ACEOF
10176 rm -f conftest.$ac_objext conftest$ac_exeext
10177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10178   (eval $ac_link) 2>conftest.er1
10179   ac_status=$?
10180   grep -v '^ *+' conftest.er1 >conftest.err
10181   rm -f conftest.er1
10182   cat conftest.err >&5
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } &&
10185          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187   (eval $ac_try) 2>&5
10188   ac_status=$?
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); }; } &&
10191          { ac_try='test -s conftest$ac_exeext'
10192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193   (eval $ac_try) 2>&5
10194   ac_status=$?
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); }; }; then
10197   ac_cv_func_remove=yes
10198 else
10199   echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10201
10202 ac_cv_func_remove=no
10203 fi
10204 rm -f conftest.err conftest.$ac_objext \
10205       conftest$ac_exeext conftest.$ac_ext
10206 fi
10207 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10208 echo "${ECHO_T}$ac_cv_func_remove" >&6
10209
10210     if test $ac_cv_func_remove = no; then
10211       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10212 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10213 if test "${ac_cv_lib_posix_remove+set}" = set; then
10214   echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216   ac_check_lib_save_LIBS=$LIBS
10217 LIBS="-lposix  $LIBS"
10218 cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h.  */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h.  */
10224
10225 /* Override any gcc2 internal prototype to avoid an error.  */
10226 #ifdef __cplusplus
10227 extern "C"
10228 #endif
10229 /* We use char because int might match the return type of a gcc2
10230    builtin and then its argument prototype would still apply.  */
10231 char remove ();
10232 int
10233 main ()
10234 {
10235 remove ();
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242   (eval $ac_link) 2>conftest.er1
10243   ac_status=$?
10244   grep -v '^ *+' conftest.er1 >conftest.err
10245   rm -f conftest.er1
10246   cat conftest.err >&5
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); } &&
10249          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251   (eval $ac_try) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; } &&
10255          { ac_try='test -s conftest$ac_exeext'
10256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257   (eval $ac_try) 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); }; }; then
10261   ac_cv_lib_posix_remove=yes
10262 else
10263   echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ac_cv_lib_posix_remove=no
10267 fi
10268 rm -f conftest.err conftest.$ac_objext \
10269       conftest$ac_exeext conftest.$ac_ext
10270 LIBS=$ac_check_lib_save_LIBS
10271 fi
10272 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10273 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10274 if test $ac_cv_lib_posix_remove = yes; then
10275   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10276 fi
10277
10278     fi
10279
10280     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10281     echo "$as_me:$LINENO: checking for shmat" >&5
10282 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10283 if test "${ac_cv_func_shmat+set}" = set; then
10284   echo $ECHO_N "(cached) $ECHO_C" >&6
10285 else
10286   cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h.  */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h.  */
10292 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10294 #define shmat innocuous_shmat
10295
10296 /* System header to define __stub macros and hopefully few prototypes,
10297     which can conflict with char shmat (); below.
10298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10299     <limits.h> exists even on freestanding compilers.  */
10300
10301 #ifdef __STDC__
10302 # include <limits.h>
10303 #else
10304 # include <assert.h>
10305 #endif
10306
10307 #undef shmat
10308
10309 /* Override any gcc2 internal prototype to avoid an error.  */
10310 #ifdef __cplusplus
10311 extern "C"
10312 {
10313 #endif
10314 /* We use char because int might match the return type of a gcc2
10315    builtin and then its argument prototype would still apply.  */
10316 char shmat ();
10317 /* The GNU C library defines this for functions which it implements
10318     to always fail with ENOSYS.  Some functions are actually named
10319     something starting with __ and the normal name is an alias.  */
10320 #if defined (__stub_shmat) || defined (__stub___shmat)
10321 choke me
10322 #else
10323 char (*f) () = shmat;
10324 #endif
10325 #ifdef __cplusplus
10326 }
10327 #endif
10328
10329 int
10330 main ()
10331 {
10332 return f != shmat;
10333   ;
10334   return 0;
10335 }
10336 _ACEOF
10337 rm -f conftest.$ac_objext conftest$ac_exeext
10338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10339   (eval $ac_link) 2>conftest.er1
10340   ac_status=$?
10341   grep -v '^ *+' conftest.er1 >conftest.err
10342   rm -f conftest.er1
10343   cat conftest.err >&5
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); } &&
10346          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348   (eval $ac_try) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); }; } &&
10352          { ac_try='test -s conftest$ac_exeext'
10353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354   (eval $ac_try) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; }; then
10358   ac_cv_func_shmat=yes
10359 else
10360   echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363 ac_cv_func_shmat=no
10364 fi
10365 rm -f conftest.err conftest.$ac_objext \
10366       conftest$ac_exeext conftest.$ac_ext
10367 fi
10368 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10369 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10370
10371     if test $ac_cv_func_shmat = no; then
10372       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10373 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10374 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10375   echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377   ac_check_lib_save_LIBS=$LIBS
10378 LIBS="-lipc  $LIBS"
10379 cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h.  */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h.  */
10385
10386 /* Override any gcc2 internal prototype to avoid an error.  */
10387 #ifdef __cplusplus
10388 extern "C"
10389 #endif
10390 /* We use char because int might match the return type of a gcc2
10391    builtin and then its argument prototype would still apply.  */
10392 char shmat ();
10393 int
10394 main ()
10395 {
10396 shmat ();
10397   ;
10398   return 0;
10399 }
10400 _ACEOF
10401 rm -f conftest.$ac_objext conftest$ac_exeext
10402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10403   (eval $ac_link) 2>conftest.er1
10404   ac_status=$?
10405   grep -v '^ *+' conftest.er1 >conftest.err
10406   rm -f conftest.er1
10407   cat conftest.err >&5
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); } &&
10410          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412   (eval $ac_try) 2>&5
10413   ac_status=$?
10414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); }; } &&
10416          { ac_try='test -s conftest$ac_exeext'
10417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418   (eval $ac_try) 2>&5
10419   ac_status=$?
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); }; }; then
10422   ac_cv_lib_ipc_shmat=yes
10423 else
10424   echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10426
10427 ac_cv_lib_ipc_shmat=no
10428 fi
10429 rm -f conftest.err conftest.$ac_objext \
10430       conftest$ac_exeext conftest.$ac_ext
10431 LIBS=$ac_check_lib_save_LIBS
10432 fi
10433 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10434 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10435 if test $ac_cv_lib_ipc_shmat = yes; then
10436   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10437 fi
10438
10439     fi
10440   fi
10441
10442   # Check for libraries that X11R6 Xt/Xaw programs need.
10443   ac_save_LDFLAGS=$LDFLAGS
10444   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10445   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10446   # check for ICE first), but we must link in the order -lSM -lICE or
10447   # we get undefined symbols.  So assume we have SM if we have ICE.
10448   # These have to be linked with before -lX11, unlike the other
10449   # libraries we check for below, so use a different variable.
10450   # John Interrante, Karl Berry
10451   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10452 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10453 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10454   echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456   ac_check_lib_save_LIBS=$LIBS
10457 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10458 cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h.  */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h.  */
10464
10465 /* Override any gcc2 internal prototype to avoid an error.  */
10466 #ifdef __cplusplus
10467 extern "C"
10468 #endif
10469 /* We use char because int might match the return type of a gcc2
10470    builtin and then its argument prototype would still apply.  */
10471 char IceConnectionNumber ();
10472 int
10473 main ()
10474 {
10475 IceConnectionNumber ();
10476   ;
10477   return 0;
10478 }
10479 _ACEOF
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482   (eval $ac_link) 2>conftest.er1
10483   ac_status=$?
10484   grep -v '^ *+' conftest.er1 >conftest.err
10485   rm -f conftest.er1
10486   cat conftest.err >&5
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); } &&
10489          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491   (eval $ac_try) 2>&5
10492   ac_status=$?
10493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   (exit $ac_status); }; } &&
10495          { ac_try='test -s conftest$ac_exeext'
10496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497   (eval $ac_try) 2>&5
10498   ac_status=$?
10499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500   (exit $ac_status); }; }; then
10501   ac_cv_lib_ICE_IceConnectionNumber=yes
10502 else
10503   echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10505
10506 ac_cv_lib_ICE_IceConnectionNumber=no
10507 fi
10508 rm -f conftest.err conftest.$ac_objext \
10509       conftest$ac_exeext conftest.$ac_ext
10510 LIBS=$ac_check_lib_save_LIBS
10511 fi
10512 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10513 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10514 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10515   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10516 fi
10517
10518   LDFLAGS=$ac_save_LDFLAGS
10519
10520 fi
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531 if test "x$with_x" = "xno"; then
10532   NO_X_TRUE=
10533   NO_X_FALSE='#'
10534 else
10535   NO_X_TRUE='#'
10536   NO_X_FALSE=
10537 fi
10538
10539
10540 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
10541
10542
10543 LDFLAGS="$LDFLAGS -L/usr/local/lib"
10544
10545 echo "$as_me:$LINENO: checking for X" >&5
10546 echo $ECHO_N "checking for X... $ECHO_C" >&6
10547 if test "$with_x" != "no" && test "$wxwin" = "true"; then
10548
10549 cat >>confdefs.h <<\_ACEOF
10550 #define HAVE_X11 1
10551 _ACEOF
10552
10553   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
10554   my_includes="$my_includes -I/usr/X11R6/include"
10555   ctlib_graphics="$ctlibs_base -lctgraphics"
10556   echo "$as_me:$LINENO: result: yes" >&5
10557 echo "${ECHO_T}yes" >&6
10558   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
10559   if test "$libgl" = "true" ; then
10560     # Removed "-lglut" for Mac OS X compilation
10561     ctlib_graphics="$ctlib_graphics -lGL -lGLU"
10562     if test "$wxwin" = "true" ; then
10563       if  "$wx_gtk" ; then
10564         ctlib_graphics="$ctlib_graphics `wx-config --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`"
10565       elif  "$wx_mac" ; then
10566         ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
10567       fi
10568     fi
10569   fi
10570   if test "$wxwin" = "true" ; then
10571
10572 cat >>confdefs.h <<\_ACEOF
10573 #define HAVE_SGP 1
10574 _ACEOF
10575
10576   fi
10577 else
10578   echo "$as_me:$LINENO: result: no" >&5
10579 echo "${ECHO_T}no" >&6
10580 fi
10581
10582
10583
10584 if test "$wxwin" = "true"; then
10585   HAVE_SGP_TRUE=
10586   HAVE_SGP_FALSE='#'
10587 else
10588   HAVE_SGP_TRUE='#'
10589   HAVE_SGP_FALSE=
10590 fi
10591
10592
10593 if test "$png" = "true" ; then
10594   ctlibs_tools="$ctlibs_tools -lpng"
10595 fi
10596 if test "$zlib" = "true" ; then
10597   ctlibs_tools="$ctlibs_tools -lz"
10598 fi
10599 if test "$fftw" = "true" ; then
10600   ctlibs_tools="$ctlibs_tools -lfftw3"
10601 fi
10602 if test "$ctn" = "true"; then
10603   ctlibs_tools="$ctlibs_tools -lctn"
10604 fi
10605
10606 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
10607 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
10608 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
10609   echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611   ac_check_lib_save_LIBS=$LIBS
10612 LIBS="-ldmallocxx  $LIBS"
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h.  */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h.  */
10619
10620
10621 int
10622 main ()
10623 {
10624 main ();
10625   ;
10626   return 0;
10627 }
10628 _ACEOF
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631   (eval $ac_link) 2>conftest.er1
10632   ac_status=$?
10633   grep -v '^ *+' conftest.er1 >conftest.err
10634   rm -f conftest.er1
10635   cat conftest.err >&5
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); } &&
10638          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640   (eval $ac_try) 2>&5
10641   ac_status=$?
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); }; } &&
10644          { ac_try='test -s conftest$ac_exeext'
10645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646   (eval $ac_try) 2>&5
10647   ac_status=$?
10648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649   (exit $ac_status); }; }; then
10650   ac_cv_lib_dmallocxx_main=yes
10651 else
10652   echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10654
10655 ac_cv_lib_dmallocxx_main=no
10656 fi
10657 rm -f conftest.err conftest.$ac_objext \
10658       conftest$ac_exeext conftest.$ac_ext
10659 LIBS=$ac_check_lib_save_LIBS
10660 fi
10661 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
10662 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
10663 if test $ac_cv_lib_dmallocxx_main = yes; then
10664   dmallocxx=true
10665 else
10666   dmallocxx=false
10667 fi
10668
10669 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
10670 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
10671 # Check whether --enable-dmalloc or --disable-dmalloc was given.
10672 if test "${enable_dmalloc+set}" = set; then
10673   enableval="$enable_dmalloc"
10674   case "${enableval}" in
10675   yes) usedmalloc=true
10676        echo "$as_me:$LINENO: result: yes" >&5
10677 echo "${ECHO_T}yes" >&6
10678        ;;
10679   no)  usedmalloc=false
10680        echo "$as_me:$LINENO: result: no" >&5
10681 echo "${ECHO_T}no" >&6
10682        ;;
10683   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
10684 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
10685        ;;
10686 esac
10687 else
10688   usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
10689 echo "${ECHO_T}no" >&6
10690 fi;
10691
10692 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
10693   ctlibs_tools="$ctlibs_tools -ldmallocxx"
10694
10695 cat >>confdefs.h <<\_ACEOF
10696 #define HAVE_DMALLOC 1
10697 _ACEOF
10698
10699   echo "$as_me:$LINENO: result: Using dmalloc" >&5
10700 echo "${ECHO_T}Using dmalloc" >&6
10701 fi
10702
10703 echo "$as_me:$LINENO: checking for main in -lefence" >&5
10704 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
10705 if test "${ac_cv_lib_efence_main+set}" = set; then
10706   echo $ECHO_N "(cached) $ECHO_C" >&6
10707 else
10708   ac_check_lib_save_LIBS=$LIBS
10709 LIBS="-lefence  $LIBS"
10710 cat >conftest.$ac_ext <<_ACEOF
10711 /* confdefs.h.  */
10712 _ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h.  */
10716
10717
10718 int
10719 main ()
10720 {
10721 main ();
10722   ;
10723   return 0;
10724 }
10725 _ACEOF
10726 rm -f conftest.$ac_objext conftest$ac_exeext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728   (eval $ac_link) 2>conftest.er1
10729   ac_status=$?
10730   grep -v '^ *+' conftest.er1 >conftest.err
10731   rm -f conftest.er1
10732   cat conftest.err >&5
10733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); } &&
10735          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737   (eval $ac_try) 2>&5
10738   ac_status=$?
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); }; } &&
10741          { ac_try='test -s conftest$ac_exeext'
10742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743   (eval $ac_try) 2>&5
10744   ac_status=$?
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); }; }; then
10747   ac_cv_lib_efence_main=yes
10748 else
10749   echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10751
10752 ac_cv_lib_efence_main=no
10753 fi
10754 rm -f conftest.err conftest.$ac_objext \
10755       conftest$ac_exeext conftest.$ac_ext
10756 LIBS=$ac_check_lib_save_LIBS
10757 fi
10758 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
10759 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
10760 if test $ac_cv_lib_efence_main = yes; then
10761   efence=true
10762 else
10763   efence=false
10764 fi
10765
10766 echo "$as_me:$LINENO: checking for enable-efence" >&5
10767 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
10768 # Check whether --enable-efence or --disable-efence was given.
10769 if test "${enable_efence+set}" = set; then
10770   enableval="$enable_efence"
10771   case "${enableval}" in
10772   yes) useefence=true
10773        echo "$as_me:$LINENO: result: yes" >&5
10774 echo "${ECHO_T}yes" >&6
10775        ;;
10776   no)  useefence=false
10777        echo "$as_me:$LINENO: result: no" >&5
10778 echo "${ECHO_T}no" >&6
10779        ;;
10780   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
10781 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
10782        ;;
10783 esac
10784 else
10785   useefence=false; echo "$as_me:$LINENO: result: no" >&5
10786 echo "${ECHO_T}no" >&6
10787 fi;
10788
10789 if test "$efence" = "true" -a "$useefence" = "true" ; then
10790   ctlibs_tools="$ctlibs_tools -lefence"
10791
10792 cat >>confdefs.h <<\_ACEOF
10793 #define HAVE_EFENCE 1
10794 _ACEOF
10795
10796   echo "$as_me:$LINENO: result: Using efence" >&5
10797 echo "${ECHO_T}Using efence" >&6
10798 fi
10799
10800 if test "$wxwin" = "true" ; then
10801   if  "$wx_gtk" = "true"  ||  "$wx_mac" == "true"  ; then
10802     wxcflags=`$wxconfig --cflags`
10803     wxlibs=`$wxconfig --libs`
10804   else
10805         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
10806         wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
10807   fi
10808   CFLAGS="$CFLAGS -I../include $wxcflags"
10809   ctlib_graphics="$ctlib_graphics $wxlibs"
10810 fi
10811
10812
10813
10814
10815 if test "$wxwin"="true"; then
10816   HAVE_WXWINDOWS_TRUE=
10817   HAVE_WXWINDOWS_FALSE='#'
10818 else
10819   HAVE_WXWINDOWS_TRUE='#'
10820   HAVE_WXWINDOWS_FALSE=
10821 fi
10822
10823
10824 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
10825 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
10826
10827
10828 if test -n "$lamdir" ; then
10829   lamprograms="ctsimtext-lam"
10830
10831   lamdefs="$CFLAGS"
10832
10833 fi
10834
10835 CXXFLAGS="$CFLAGS"
10836
10837                                                                                                                                                                           ac_config_files="$ac_config_files Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile man/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile tools/sample-ctsim.sh cgi-bin/ctsim.conf tools/Makefile src/Makefile helical/Makefile helical/sample-helical.sh"
10838
10839
10840 cat >confcache <<\_ACEOF
10841 # This file is a shell script that caches the results of configure
10842 # tests run on this system so they can be shared between configure
10843 # scripts and configure runs, see configure's option --config-cache.
10844 # It is not useful on other systems.  If it contains results you don't
10845 # want to keep, you may remove or edit it.
10846 #
10847 # config.status only pays attention to the cache file if you give it
10848 # the --recheck option to rerun configure.
10849 #
10850 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10851 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10852 # following values.
10853
10854 _ACEOF
10855
10856 # The following way of writing the cache mishandles newlines in values,
10857 # but we know of no workaround that is simple, portable, and efficient.
10858 # So, don't put newlines in cache variables' values.
10859 # Ultrix sh set writes to stderr and can't be redirected directly,
10860 # and sets the high bit in the cache file unless we assign to the vars.
10861 {
10862   (set) 2>&1 |
10863     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10864     *ac_space=\ *)
10865       # `set' does not quote correctly, so add quotes (double-quote
10866       # substitution turns \\\\ into \\, and sed turns \\ into \).
10867       sed -n \
10868         "s/'/'\\\\''/g;
10869           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10870       ;;
10871     *)
10872       # `set' quotes correctly as required by POSIX, so do not add quotes.
10873       sed -n \
10874         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10875       ;;
10876     esac;
10877 } |
10878   sed '
10879      t clear
10880      : clear
10881      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10882      t end
10883      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10884      : end' >>confcache
10885 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10886   if test -w $cache_file; then
10887     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10888     cat confcache >$cache_file
10889   else
10890     echo "not updating unwritable cache $cache_file"
10891   fi
10892 fi
10893 rm -f confcache
10894
10895 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10896 # Let make expand exec_prefix.
10897 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10898
10899 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10900 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10901 # trailing colons and then remove the whole line if VPATH becomes empty
10902 # (actually we leave an empty line to preserve line numbers).
10903 if test "x$srcdir" = x.; then
10904   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10905 s/:*\$(srcdir):*/:/;
10906 s/:*\${srcdir}:*/:/;
10907 s/:*@srcdir@:*/:/;
10908 s/^\([^=]*=[     ]*\):*/\1/;
10909 s/:*$//;
10910 s/^[^=]*=[       ]*$//;
10911 }'
10912 fi
10913
10914 DEFS=-DHAVE_CONFIG_H
10915
10916 ac_libobjs=
10917 ac_ltlibobjs=
10918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10919   # 1. Remove the extension, and $U if already installed.
10920   ac_i=`echo "$ac_i" |
10921          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10922   # 2. Add them.
10923   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10924   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10925 done
10926 LIBOBJS=$ac_libobjs
10927
10928 LTLIBOBJS=$ac_ltlibobjs
10929
10930
10931 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10932   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10933 Usually this means the macro was only invoked conditionally." >&5
10934 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10935 Usually this means the macro was only invoked conditionally." >&2;}
10936    { (exit 1); exit 1; }; }
10937 fi
10938 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10939   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10940 Usually this means the macro was only invoked conditionally." >&5
10941 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10942 Usually this means the macro was only invoked conditionally." >&2;}
10943    { (exit 1); exit 1; }; }
10944 fi
10945 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10946   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10947 Usually this means the macro was only invoked conditionally." >&5
10948 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10949 Usually this means the macro was only invoked conditionally." >&2;}
10950    { (exit 1); exit 1; }; }
10951 fi
10952 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10953   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10954 Usually this means the macro was only invoked conditionally." >&5
10955 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10956 Usually this means the macro was only invoked conditionally." >&2;}
10957    { (exit 1); exit 1; }; }
10958 fi
10959 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
10960   { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10961 Usually this means the macro was only invoked conditionally." >&5
10962 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10963 Usually this means the macro was only invoked conditionally." >&2;}
10964    { (exit 1); exit 1; }; }
10965 fi
10966 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
10967   { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
10968 Usually this means the macro was only invoked conditionally." >&5
10969 echo "$as_me: error: conditional \"DEBUG\" was never defined.
10970 Usually this means the macro was only invoked conditionally." >&2;}
10971    { (exit 1); exit 1; }; }
10972 fi
10973 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
10974   { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
10975 Usually this means the macro was only invoked conditionally." >&5
10976 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
10977 Usually this means the macro was only invoked conditionally." >&2;}
10978    { (exit 1); exit 1; }; }
10979 fi
10980 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
10981   { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
10982 Usually this means the macro was only invoked conditionally." >&5
10983 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
10984 Usually this means the macro was only invoked conditionally." >&2;}
10985    { (exit 1); exit 1; }; }
10986 fi
10987 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
10988   { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
10989 Usually this means the macro was only invoked conditionally." >&5
10990 echo "$as_me: error: conditional \"NO_X\" was never defined.
10991 Usually this means the macro was only invoked conditionally." >&2;}
10992    { (exit 1); exit 1; }; }
10993 fi
10994 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
10995   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
10996 Usually this means the macro was only invoked conditionally." >&5
10997 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
10998 Usually this means the macro was only invoked conditionally." >&2;}
10999    { (exit 1); exit 1; }; }
11000 fi
11001 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
11002   { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
11003 Usually this means the macro was only invoked conditionally." >&5
11004 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
11005 Usually this means the macro was only invoked conditionally." >&2;}
11006    { (exit 1); exit 1; }; }
11007 fi
11008
11009 : ${CONFIG_STATUS=./config.status}
11010 ac_clean_files_save=$ac_clean_files
11011 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11012 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11013 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11014 cat >$CONFIG_STATUS <<_ACEOF
11015 #! $SHELL
11016 # Generated by $as_me.
11017 # Run this file to recreate the current configuration.
11018 # Compiler output produced by configure, useful for debugging
11019 # configure, is in config.log if it exists.
11020
11021 debug=false
11022 ac_cs_recheck=false
11023 ac_cs_silent=false
11024 SHELL=\${CONFIG_SHELL-$SHELL}
11025 _ACEOF
11026
11027 cat >>$CONFIG_STATUS <<\_ACEOF
11028 ## --------------------- ##
11029 ## M4sh Initialization.  ##
11030 ## --------------------- ##
11031
11032 # Be Bourne compatible
11033 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11034   emulate sh
11035   NULLCMD=:
11036   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11037   # is contrary to our usage.  Disable this feature.
11038   alias -g '${1+"$@"}'='"$@"'
11039 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11040   set -o posix
11041 fi
11042 DUALCASE=1; export DUALCASE # for MKS sh
11043
11044 # Support unset when possible.
11045 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11046   as_unset=unset
11047 else
11048   as_unset=false
11049 fi
11050
11051
11052 # Work around bugs in pre-3.0 UWIN ksh.
11053 $as_unset ENV MAIL MAILPATH
11054 PS1='$ '
11055 PS2='> '
11056 PS4='+ '
11057
11058 # NLS nuisances.
11059 for as_var in \
11060   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11061   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11062   LC_TELEPHONE LC_TIME
11063 do
11064   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11065     eval $as_var=C; export $as_var
11066   else
11067     $as_unset $as_var
11068   fi
11069 done
11070
11071 # Required to use basename.
11072 if expr a : '\(a\)' >/dev/null 2>&1; then
11073   as_expr=expr
11074 else
11075   as_expr=false
11076 fi
11077
11078 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11079   as_basename=basename
11080 else
11081   as_basename=false
11082 fi
11083
11084
11085 # Name of the executable.
11086 as_me=`$as_basename "$0" ||
11087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11088          X"$0" : 'X\(//\)$' \| \
11089          X"$0" : 'X\(/\)$' \| \
11090          .     : '\(.\)' 2>/dev/null ||
11091 echo X/"$0" |
11092     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11093           /^X\/\(\/\/\)$/{ s//\1/; q; }
11094           /^X\/\(\/\).*/{ s//\1/; q; }
11095           s/.*/./; q'`
11096
11097
11098 # PATH needs CR, and LINENO needs CR and PATH.
11099 # Avoid depending upon Character Ranges.
11100 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11101 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11102 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11103 as_cr_digits='0123456789'
11104 as_cr_alnum=$as_cr_Letters$as_cr_digits
11105
11106 # The user is always right.
11107 if test "${PATH_SEPARATOR+set}" != set; then
11108   echo "#! /bin/sh" >conf$$.sh
11109   echo  "exit 0"   >>conf$$.sh
11110   chmod +x conf$$.sh
11111   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11112     PATH_SEPARATOR=';'
11113   else
11114     PATH_SEPARATOR=:
11115   fi
11116   rm -f conf$$.sh
11117 fi
11118
11119
11120   as_lineno_1=$LINENO
11121   as_lineno_2=$LINENO
11122   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11123   test "x$as_lineno_1" != "x$as_lineno_2" &&
11124   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11125   # Find who we are.  Look in the path if we contain no path at all
11126   # relative or not.
11127   case $0 in
11128     *[\\/]* ) as_myself=$0 ;;
11129     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130 for as_dir in $PATH
11131 do
11132   IFS=$as_save_IFS
11133   test -z "$as_dir" && as_dir=.
11134   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11135 done
11136
11137        ;;
11138   esac
11139   # We did not find ourselves, most probably we were run as `sh COMMAND'
11140   # in which case we are not to be found in the path.
11141   if test "x$as_myself" = x; then
11142     as_myself=$0
11143   fi
11144   if test ! -f "$as_myself"; then
11145     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11146 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11147    { (exit 1); exit 1; }; }
11148   fi
11149   case $CONFIG_SHELL in
11150   '')
11151     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11153 do
11154   IFS=$as_save_IFS
11155   test -z "$as_dir" && as_dir=.
11156   for as_base in sh bash ksh sh5; do
11157          case $as_dir in
11158          /*)
11159            if ("$as_dir/$as_base" -c '
11160   as_lineno_1=$LINENO
11161   as_lineno_2=$LINENO
11162   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11163   test "x$as_lineno_1" != "x$as_lineno_2" &&
11164   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11165              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11166              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11167              CONFIG_SHELL=$as_dir/$as_base
11168              export CONFIG_SHELL
11169              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11170            fi;;
11171          esac
11172        done
11173 done
11174 ;;
11175   esac
11176
11177   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11178   # uniformly replaced by the line number.  The first 'sed' inserts a
11179   # line-number line before each line; the second 'sed' does the real
11180   # work.  The second script uses 'N' to pair each line-number line
11181   # with the numbered line, and appends trailing '-' during
11182   # substitution so that $LINENO is not a special case at line end.
11183   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11184   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11185   sed '=' <$as_myself |
11186     sed '
11187       N
11188       s,$,-,
11189       : loop
11190       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11191       t loop
11192       s,-$,,
11193       s,^['$as_cr_digits']*\n,,
11194     ' >$as_me.lineno &&
11195   chmod +x $as_me.lineno ||
11196     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11197 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11198    { (exit 1); exit 1; }; }
11199
11200   # Don't try to exec as it changes $[0], causing all sort of problems
11201   # (the dirname of $[0] is not the place where we might find the
11202   # original and so on.  Autoconf is especially sensible to this).
11203   . ./$as_me.lineno
11204   # Exit status is that of the last command.
11205   exit
11206 }
11207
11208
11209 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11210   *c*,-n*) ECHO_N= ECHO_C='
11211 ' ECHO_T='      ' ;;
11212   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11213   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11214 esac
11215
11216 if expr a : '\(a\)' >/dev/null 2>&1; then
11217   as_expr=expr
11218 else
11219   as_expr=false
11220 fi
11221
11222 rm -f conf$$ conf$$.exe conf$$.file
11223 echo >conf$$.file
11224 if ln -s conf$$.file conf$$ 2>/dev/null; then
11225   # We could just check for DJGPP; but this test a) works b) is more generic
11226   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11227   if test -f conf$$.exe; then
11228     # Don't use ln at all; we don't have any links
11229     as_ln_s='cp -p'
11230   else
11231     as_ln_s='ln -s'
11232   fi
11233 elif ln conf$$.file conf$$ 2>/dev/null; then
11234   as_ln_s=ln
11235 else
11236   as_ln_s='cp -p'
11237 fi
11238 rm -f conf$$ conf$$.exe conf$$.file
11239
11240 if mkdir -p . 2>/dev/null; then
11241   as_mkdir_p=:
11242 else
11243   test -d ./-p && rmdir ./-p
11244   as_mkdir_p=false
11245 fi
11246
11247 as_executable_p="test -f"
11248
11249 # Sed expression to map a string onto a valid CPP name.
11250 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11251
11252 # Sed expression to map a string onto a valid variable name.
11253 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11254
11255
11256 # IFS
11257 # We need space, tab and new line, in precisely that order.
11258 as_nl='
11259 '
11260 IFS="   $as_nl"
11261
11262 # CDPATH.
11263 $as_unset CDPATH
11264
11265 exec 6>&1
11266
11267 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11268 # report actual input values of CONFIG_FILES etc. instead of their
11269 # values after options handling.  Logging --version etc. is OK.
11270 exec 5>>config.log
11271 {
11272   echo
11273   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11274 ## Running $as_me. ##
11275 _ASBOX
11276 } >&5
11277 cat >&5 <<_CSEOF
11278
11279 This file was extended by $as_me, which was
11280 generated by GNU Autoconf 2.59.  Invocation command line was
11281
11282   CONFIG_FILES    = $CONFIG_FILES
11283   CONFIG_HEADERS  = $CONFIG_HEADERS
11284   CONFIG_LINKS    = $CONFIG_LINKS
11285   CONFIG_COMMANDS = $CONFIG_COMMANDS
11286   $ $0 $@
11287
11288 _CSEOF
11289 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11290 echo >&5
11291 _ACEOF
11292
11293 # Files that config.status was made for.
11294 if test -n "$ac_config_files"; then
11295   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11296 fi
11297
11298 if test -n "$ac_config_headers"; then
11299   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11300 fi
11301
11302 if test -n "$ac_config_links"; then
11303   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11304 fi
11305
11306 if test -n "$ac_config_commands"; then
11307   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11308 fi
11309
11310 cat >>$CONFIG_STATUS <<\_ACEOF
11311
11312 ac_cs_usage="\
11313 \`$as_me' instantiates files from templates according to the
11314 current configuration.
11315
11316 Usage: $0 [OPTIONS] [FILE]...
11317
11318   -h, --help       print this help, then exit
11319   -V, --version    print version number, then exit
11320   -q, --quiet      do not print progress messages
11321   -d, --debug      don't remove temporary files
11322       --recheck    update $as_me by reconfiguring in the same conditions
11323   --file=FILE[:TEMPLATE]
11324                    instantiate the configuration file FILE
11325   --header=FILE[:TEMPLATE]
11326                    instantiate the configuration header FILE
11327
11328 Configuration files:
11329 $config_files
11330
11331 Configuration headers:
11332 $config_headers
11333
11334 Configuration commands:
11335 $config_commands
11336
11337 Report bugs to <bug-autoconf@gnu.org>."
11338 _ACEOF
11339
11340 cat >>$CONFIG_STATUS <<_ACEOF
11341 ac_cs_version="\\
11342 config.status
11343 configured by $0, generated by GNU Autoconf 2.59,
11344   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11345
11346 Copyright (C) 2003 Free Software Foundation, Inc.
11347 This config.status script is free software; the Free Software Foundation
11348 gives unlimited permission to copy, distribute and modify it."
11349 srcdir=$srcdir
11350 INSTALL="$INSTALL"
11351 _ACEOF
11352
11353 cat >>$CONFIG_STATUS <<\_ACEOF
11354 # If no file are specified by the user, then we need to provide default
11355 # value.  By we need to know if files were specified by the user.
11356 ac_need_defaults=:
11357 while test $# != 0
11358 do
11359   case $1 in
11360   --*=*)
11361     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11362     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11363     ac_shift=:
11364     ;;
11365   -*)
11366     ac_option=$1
11367     ac_optarg=$2
11368     ac_shift=shift
11369     ;;
11370   *) # This is not an option, so the user has probably given explicit
11371      # arguments.
11372      ac_option=$1
11373      ac_need_defaults=false;;
11374   esac
11375
11376   case $ac_option in
11377   # Handling of the options.
11378 _ACEOF
11379 cat >>$CONFIG_STATUS <<\_ACEOF
11380   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11381     ac_cs_recheck=: ;;
11382   --version | --vers* | -V )
11383     echo "$ac_cs_version"; exit 0 ;;
11384   --he | --h)
11385     # Conflict between --help and --header
11386     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11387 Try \`$0 --help' for more information." >&5
11388 echo "$as_me: error: ambiguous option: $1
11389 Try \`$0 --help' for more information." >&2;}
11390    { (exit 1); exit 1; }; };;
11391   --help | --hel | -h )
11392     echo "$ac_cs_usage"; exit 0 ;;
11393   --debug | --d* | -d )
11394     debug=: ;;
11395   --file | --fil | --fi | --f )
11396     $ac_shift
11397     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11398     ac_need_defaults=false;;
11399   --header | --heade | --head | --hea )
11400     $ac_shift
11401     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11402     ac_need_defaults=false;;
11403   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11404   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11405     ac_cs_silent=: ;;
11406
11407   # This is an error.
11408   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11409 Try \`$0 --help' for more information." >&5
11410 echo "$as_me: error: unrecognized option: $1
11411 Try \`$0 --help' for more information." >&2;}
11412    { (exit 1); exit 1; }; } ;;
11413
11414   *) ac_config_targets="$ac_config_targets $1" ;;
11415
11416   esac
11417   shift
11418 done
11419
11420 ac_configure_extra_args=
11421
11422 if $ac_cs_silent; then
11423   exec 6>/dev/null
11424   ac_configure_extra_args="$ac_configure_extra_args --silent"
11425 fi
11426
11427 _ACEOF
11428 cat >>$CONFIG_STATUS <<_ACEOF
11429 if \$ac_cs_recheck; then
11430   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11431   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11432 fi
11433
11434 _ACEOF
11435
11436 cat >>$CONFIG_STATUS <<_ACEOF
11437 #
11438 # INIT-COMMANDS section.
11439 #
11440
11441 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11442
11443 _ACEOF
11444
11445
11446
11447 cat >>$CONFIG_STATUS <<\_ACEOF
11448 for ac_config_target in $ac_config_targets
11449 do
11450   case "$ac_config_target" in
11451   # Handling of arguments.
11452   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11453   "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
11454   "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
11455   "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
11456   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11457   "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
11458   "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
11459   "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
11460   "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
11461   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11462   "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
11463   "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
11464   "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
11465   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11466   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11467   "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
11468   "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
11469   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11470   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11471   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11472 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11473    { (exit 1); exit 1; }; };;
11474   esac
11475 done
11476
11477 # If the user did not use the arguments to specify the items to instantiate,
11478 # then the envvar interface is used.  Set only those that are not.
11479 # We use the long form for the default assignment because of an extremely
11480 # bizarre bug on SunOS 4.1.3.
11481 if $ac_need_defaults; then
11482   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11483   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11484   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11485 fi
11486
11487 # Have a temporary directory for convenience.  Make it in the build tree
11488 # simply because there is no reason to put it here, and in addition,
11489 # creating and moving files from /tmp can sometimes cause problems.
11490 # Create a temporary directory, and hook for its removal unless debugging.
11491 $debug ||
11492 {
11493   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11494   trap '{ (exit 1); exit 1; }' 1 2 13 15
11495 }
11496
11497 # Create a (secure) tmp directory for tmp files.
11498
11499 {
11500   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11501   test -n "$tmp" && test -d "$tmp"
11502 }  ||
11503 {
11504   tmp=./confstat$$-$RANDOM
11505   (umask 077 && mkdir $tmp)
11506 } ||
11507 {
11508    echo "$me: cannot create a temporary directory in ." >&2
11509    { (exit 1); exit 1; }
11510 }
11511
11512 _ACEOF
11513
11514 cat >>$CONFIG_STATUS <<_ACEOF
11515
11516 #
11517 # CONFIG_FILES section.
11518 #
11519
11520 # No need to generate the scripts if there are no CONFIG_FILES.
11521 # This happens for instance when ./config.status config.h
11522 if test -n "\$CONFIG_FILES"; then
11523   # Protect against being on the right side of a sed subst in config.status.
11524   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11525    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11526 s,@SHELL@,$SHELL,;t t
11527 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11528 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11529 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11530 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11531 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11532 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11533 s,@exec_prefix@,$exec_prefix,;t t
11534 s,@prefix@,$prefix,;t t
11535 s,@program_transform_name@,$program_transform_name,;t t
11536 s,@bindir@,$bindir,;t t
11537 s,@sbindir@,$sbindir,;t t
11538 s,@libexecdir@,$libexecdir,;t t
11539 s,@datadir@,$datadir,;t t
11540 s,@sysconfdir@,$sysconfdir,;t t
11541 s,@sharedstatedir@,$sharedstatedir,;t t
11542 s,@localstatedir@,$localstatedir,;t t
11543 s,@libdir@,$libdir,;t t
11544 s,@includedir@,$includedir,;t t
11545 s,@oldincludedir@,$oldincludedir,;t t
11546 s,@infodir@,$infodir,;t t
11547 s,@mandir@,$mandir,;t t
11548 s,@build_alias@,$build_alias,;t t
11549 s,@host_alias@,$host_alias,;t t
11550 s,@target_alias@,$target_alias,;t t
11551 s,@DEFS@,$DEFS,;t t
11552 s,@ECHO_C@,$ECHO_C,;t t
11553 s,@ECHO_N@,$ECHO_N,;t t
11554 s,@ECHO_T@,$ECHO_T,;t t
11555 s,@LIBS@,$LIBS,;t t
11556 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11557 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11558 s,@MAINT@,$MAINT,;t t
11559 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11560 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11561 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11562 s,@CYGPATH_W@,$CYGPATH_W,;t t
11563 s,@PACKAGE@,$PACKAGE,;t t
11564 s,@VERSION@,$VERSION,;t t
11565 s,@ACLOCAL@,$ACLOCAL,;t t
11566 s,@AUTOCONF@,$AUTOCONF,;t t
11567 s,@AUTOMAKE@,$AUTOMAKE,;t t
11568 s,@AUTOHEADER@,$AUTOHEADER,;t t
11569 s,@MAKEINFO@,$MAKEINFO,;t t
11570 s,@AMTAR@,$AMTAR,;t t
11571 s,@install_sh@,$install_sh,;t t
11572 s,@STRIP@,$STRIP,;t t
11573 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11574 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11575 s,@AWK@,$AWK,;t t
11576 s,@SET_MAKE@,$SET_MAKE,;t t
11577 s,@am__leading_dot@,$am__leading_dot,;t t
11578 s,@RANLIB@,$RANLIB,;t t
11579 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11580 s,@CC@,$CC,;t t
11581 s,@CFLAGS@,$CFLAGS,;t t
11582 s,@LDFLAGS@,$LDFLAGS,;t t
11583 s,@CPPFLAGS@,$CPPFLAGS,;t t
11584 s,@ac_ct_CC@,$ac_ct_CC,;t t
11585 s,@EXEEXT@,$EXEEXT,;t t
11586 s,@OBJEXT@,$OBJEXT,;t t
11587 s,@DEPDIR@,$DEPDIR,;t t
11588 s,@am__include@,$am__include,;t t
11589 s,@am__quote@,$am__quote,;t t
11590 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11591 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11592 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11593 s,@CCDEPMODE@,$CCDEPMODE,;t t
11594 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11595 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11596 s,@CXX@,$CXX,;t t
11597 s,@CXXFLAGS@,$CXXFLAGS,;t t
11598 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11599 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
11600 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
11601 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
11602 s,@wxconfig@,$wxconfig,;t t
11603 s,@build@,$build,;t t
11604 s,@build_cpu@,$build_cpu,;t t
11605 s,@build_vendor@,$build_vendor,;t t
11606 s,@build_os@,$build_os,;t t
11607 s,@host@,$host,;t t
11608 s,@host_cpu@,$host_cpu,;t t
11609 s,@host_vendor@,$host_vendor,;t t
11610 s,@host_os@,$host_os,;t t
11611 s,@CPP@,$CPP,;t t
11612 s,@EGREP@,$EGREP,;t t
11613 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
11614 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
11615 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
11616 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
11617 s,@lamdir@,$lamdir,;t t
11618 s,@mpienable@,$mpienable,;t t
11619 s,@cgibindir@,$cgibindir,;t t
11620 s,@cgibinurl@,$cgibinurl,;t t
11621 s,@webdatadir@,$webdatadir,;t t
11622 s,@webdataurl@,$webdataurl,;t t
11623 s,@htmldir@,$htmldir,;t t
11624 s,@cgiprograms@,$cgiprograms,;t t
11625 s,@htmldata@,$htmldata,;t t
11626 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
11627 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
11628 s,@webenabled@,$webenabled,;t t
11629 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
11630 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
11631 s,@X_CFLAGS@,$X_CFLAGS,;t t
11632 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
11633 s,@X_LIBS@,$X_LIBS,;t t
11634 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
11635 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
11636 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
11637 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
11638 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
11639 s,@my_includes@,$my_includes,;t t
11640 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
11641 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
11642 s,@wxcflags@,$wxcflags,;t t
11643 s,@wxlibs@,$wxlibs,;t t
11644 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
11645 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
11646 s,@ctlibs@,$ctlibs,;t t
11647 s,@lamprograms@,$lamprograms,;t t
11648 s,@lamdefs@,$lamdefs,;t t
11649 s,@LIBOBJS@,$LIBOBJS,;t t
11650 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11651 CEOF
11652
11653 _ACEOF
11654
11655   cat >>$CONFIG_STATUS <<\_ACEOF
11656   # Split the substitutions into bite-sized pieces for seds with
11657   # small command number limits, like on Digital OSF/1 and HP-UX.
11658   ac_max_sed_lines=48
11659   ac_sed_frag=1 # Number of current file.
11660   ac_beg=1 # First line for current file.
11661   ac_end=$ac_max_sed_lines # Line after last line for current file.
11662   ac_more_lines=:
11663   ac_sed_cmds=
11664   while $ac_more_lines; do
11665     if test $ac_beg -gt 1; then
11666       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11667     else
11668       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11669     fi
11670     if test ! -s $tmp/subs.frag; then
11671       ac_more_lines=false
11672     else
11673       # The purpose of the label and of the branching condition is to
11674       # speed up the sed processing (if there are no `@' at all, there
11675       # is no need to browse any of the substitutions).
11676       # These are the two extra sed commands mentioned above.
11677       (echo ':t
11678   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11679       if test -z "$ac_sed_cmds"; then
11680         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11681       else
11682         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11683       fi
11684       ac_sed_frag=`expr $ac_sed_frag + 1`
11685       ac_beg=$ac_end
11686       ac_end=`expr $ac_end + $ac_max_sed_lines`
11687     fi
11688   done
11689   if test -z "$ac_sed_cmds"; then
11690     ac_sed_cmds=cat
11691   fi
11692 fi # test -n "$CONFIG_FILES"
11693
11694 _ACEOF
11695 cat >>$CONFIG_STATUS <<\_ACEOF
11696 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11697   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11698   case $ac_file in
11699   - | *:- | *:-:* ) # input from stdin
11700         cat >$tmp/stdin
11701         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11702         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11703   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11704         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11705   * )   ac_file_in=$ac_file.in ;;
11706   esac
11707
11708   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11709   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11710 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11711          X"$ac_file" : 'X\(//\)[^/]' \| \
11712          X"$ac_file" : 'X\(//\)$' \| \
11713          X"$ac_file" : 'X\(/\)' \| \
11714          .     : '\(.\)' 2>/dev/null ||
11715 echo X"$ac_file" |
11716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11718           /^X\(\/\/\)$/{ s//\1/; q; }
11719           /^X\(\/\).*/{ s//\1/; q; }
11720           s/.*/./; q'`
11721   { if $as_mkdir_p; then
11722     mkdir -p "$ac_dir"
11723   else
11724     as_dir="$ac_dir"
11725     as_dirs=
11726     while test ! -d "$as_dir"; do
11727       as_dirs="$as_dir $as_dirs"
11728       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11729 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11730          X"$as_dir" : 'X\(//\)[^/]' \| \
11731          X"$as_dir" : 'X\(//\)$' \| \
11732          X"$as_dir" : 'X\(/\)' \| \
11733          .     : '\(.\)' 2>/dev/null ||
11734 echo X"$as_dir" |
11735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11736           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11737           /^X\(\/\/\)$/{ s//\1/; q; }
11738           /^X\(\/\).*/{ s//\1/; q; }
11739           s/.*/./; q'`
11740     done
11741     test ! -n "$as_dirs" || mkdir $as_dirs
11742   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11743 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11744    { (exit 1); exit 1; }; }; }
11745
11746   ac_builddir=.
11747
11748 if test "$ac_dir" != .; then
11749   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11750   # A "../" for each directory in $ac_dir_suffix.
11751   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11752 else
11753   ac_dir_suffix= ac_top_builddir=
11754 fi
11755
11756 case $srcdir in
11757   .)  # No --srcdir option.  We are building in place.
11758     ac_srcdir=.
11759     if test -z "$ac_top_builddir"; then
11760        ac_top_srcdir=.
11761     else
11762        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11763     fi ;;
11764   [\\/]* | ?:[\\/]* )  # Absolute path.
11765     ac_srcdir=$srcdir$ac_dir_suffix;
11766     ac_top_srcdir=$srcdir ;;
11767   *) # Relative path.
11768     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11769     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11770 esac
11771
11772 # Do not use `cd foo && pwd` to compute absolute paths, because
11773 # the directories may not exist.
11774 case `pwd` in
11775 .) ac_abs_builddir="$ac_dir";;
11776 *)
11777   case "$ac_dir" in
11778   .) ac_abs_builddir=`pwd`;;
11779   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11780   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11781   esac;;
11782 esac
11783 case $ac_abs_builddir in
11784 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11785 *)
11786   case ${ac_top_builddir}. in
11787   .) ac_abs_top_builddir=$ac_abs_builddir;;
11788   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11789   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11790   esac;;
11791 esac
11792 case $ac_abs_builddir in
11793 .) ac_abs_srcdir=$ac_srcdir;;
11794 *)
11795   case $ac_srcdir in
11796   .) ac_abs_srcdir=$ac_abs_builddir;;
11797   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11798   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11799   esac;;
11800 esac
11801 case $ac_abs_builddir in
11802 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11803 *)
11804   case $ac_top_srcdir in
11805   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11806   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11807   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11808   esac;;
11809 esac
11810
11811
11812   case $INSTALL in
11813   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11814   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11815   esac
11816
11817   # Let's still pretend it is `configure' which instantiates (i.e., don't
11818   # use $as_me), people would be surprised to read:
11819   #    /* config.h.  Generated by config.status.  */
11820   if test x"$ac_file" = x-; then
11821     configure_input=
11822   else
11823     configure_input="$ac_file.  "
11824   fi
11825   configure_input=$configure_input"Generated from `echo $ac_file_in |
11826                                      sed 's,.*/,,'` by configure."
11827
11828   # First look for the input files in the build tree, otherwise in the
11829   # src tree.
11830   ac_file_inputs=`IFS=:
11831     for f in $ac_file_in; do
11832       case $f in
11833       -) echo $tmp/stdin ;;
11834       [\\/$]*)
11835          # Absolute (can't be DOS-style, as IFS=:)
11836          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11837 echo "$as_me: error: cannot find input file: $f" >&2;}
11838    { (exit 1); exit 1; }; }
11839          echo "$f";;
11840       *) # Relative
11841          if test -f "$f"; then
11842            # Build tree
11843            echo "$f"
11844          elif test -f "$srcdir/$f"; then
11845            # Source tree
11846            echo "$srcdir/$f"
11847          else
11848            # /dev/null tree
11849            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11850 echo "$as_me: error: cannot find input file: $f" >&2;}
11851    { (exit 1); exit 1; }; }
11852          fi;;
11853       esac
11854     done` || { (exit 1); exit 1; }
11855
11856   if test x"$ac_file" != x-; then
11857     { echo "$as_me:$LINENO: creating $ac_file" >&5
11858 echo "$as_me: creating $ac_file" >&6;}
11859     rm -f "$ac_file"
11860   fi
11861 _ACEOF
11862 cat >>$CONFIG_STATUS <<_ACEOF
11863   sed "$ac_vpsub
11864 $extrasub
11865 _ACEOF
11866 cat >>$CONFIG_STATUS <<\_ACEOF
11867 :t
11868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11869 s,@configure_input@,$configure_input,;t t
11870 s,@srcdir@,$ac_srcdir,;t t
11871 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11872 s,@top_srcdir@,$ac_top_srcdir,;t t
11873 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11874 s,@builddir@,$ac_builddir,;t t
11875 s,@abs_builddir@,$ac_abs_builddir,;t t
11876 s,@top_builddir@,$ac_top_builddir,;t t
11877 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11878 s,@INSTALL@,$ac_INSTALL,;t t
11879 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11880   rm -f $tmp/stdin
11881   if test x"$ac_file" != x-; then
11882     mv $tmp/out $ac_file
11883   else
11884     cat $tmp/out
11885     rm -f $tmp/out
11886   fi
11887
11888 done
11889 _ACEOF
11890 cat >>$CONFIG_STATUS <<\_ACEOF
11891
11892 #
11893 # CONFIG_HEADER section.
11894 #
11895
11896 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11897 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11898 #
11899 # ac_d sets the value in "#define NAME VALUE" lines.
11900 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11901 ac_dB='[         ].*$,\1#\2'
11902 ac_dC=' '
11903 ac_dD=',;t'
11904 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11905 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11906 ac_uB='$,\1#\2define\3'
11907 ac_uC=' '
11908 ac_uD=',;t'
11909
11910 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11911   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11912   case $ac_file in
11913   - | *:- | *:-:* ) # input from stdin
11914         cat >$tmp/stdin
11915         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11916         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11917   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11918         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11919   * )   ac_file_in=$ac_file.in ;;
11920   esac
11921
11922   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11923 echo "$as_me: creating $ac_file" >&6;}
11924
11925   # First look for the input files in the build tree, otherwise in the
11926   # src tree.
11927   ac_file_inputs=`IFS=:
11928     for f in $ac_file_in; do
11929       case $f in
11930       -) echo $tmp/stdin ;;
11931       [\\/$]*)
11932          # Absolute (can't be DOS-style, as IFS=:)
11933          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11934 echo "$as_me: error: cannot find input file: $f" >&2;}
11935    { (exit 1); exit 1; }; }
11936          # Do quote $f, to prevent DOS paths from being IFS'd.
11937          echo "$f";;
11938       *) # Relative
11939          if test -f "$f"; then
11940            # Build tree
11941            echo "$f"
11942          elif test -f "$srcdir/$f"; then
11943            # Source tree
11944            echo "$srcdir/$f"
11945          else
11946            # /dev/null tree
11947            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11948 echo "$as_me: error: cannot find input file: $f" >&2;}
11949    { (exit 1); exit 1; }; }
11950          fi;;
11951       esac
11952     done` || { (exit 1); exit 1; }
11953   # Remove the trailing spaces.
11954   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11955
11956 _ACEOF
11957
11958 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11959 # `conftest.undefs', that substitutes the proper values into
11960 # config.h.in to produce config.h.  The first handles `#define'
11961 # templates, and the second `#undef' templates.
11962 # And first: Protect against being on the right side of a sed subst in
11963 # config.status.  Protect against being in an unquoted here document
11964 # in config.status.
11965 rm -f conftest.defines conftest.undefs
11966 # Using a here document instead of a string reduces the quoting nightmare.
11967 # Putting comments in sed scripts is not portable.
11968 #
11969 # `end' is used to avoid that the second main sed command (meant for
11970 # 0-ary CPP macros) applies to n-ary macro definitions.
11971 # See the Autoconf documentation for `clear'.
11972 cat >confdef2sed.sed <<\_ACEOF
11973 s/[\\&,]/\\&/g
11974 s,[\\$`],\\&,g
11975 t clear
11976 : clear
11977 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11978 t end
11979 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11980 : end
11981 _ACEOF
11982 # If some macros were called several times there might be several times
11983 # the same #defines, which is useless.  Nevertheless, we may not want to
11984 # sort them, since we want the *last* AC-DEFINE to be honored.
11985 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11986 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11987 rm -f confdef2sed.sed
11988
11989 # This sed command replaces #undef with comments.  This is necessary, for
11990 # example, in the case of _POSIX_SOURCE, which is predefined and required
11991 # on some systems where configure will not decide to define it.
11992 cat >>conftest.undefs <<\_ACEOF
11993 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11994 _ACEOF
11995
11996 # Break up conftest.defines because some shells have a limit on the size
11997 # of here documents, and old seds have small limits too (100 cmds).
11998 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11999 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12000 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12001 echo '  :' >>$CONFIG_STATUS
12002 rm -f conftest.tail
12003 while grep . conftest.defines >/dev/null
12004 do
12005   # Write a limited-size here document to $tmp/defines.sed.
12006   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12007   # Speed up: don't consider the non `#define' lines.
12008   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12009   # Work around the forget-to-reset-the-flag bug.
12010   echo 't clr' >>$CONFIG_STATUS
12011   echo ': clr' >>$CONFIG_STATUS
12012   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12013   echo 'CEOF
12014   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12015   rm -f $tmp/in
12016   mv $tmp/out $tmp/in
12017 ' >>$CONFIG_STATUS
12018   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12019   rm -f conftest.defines
12020   mv conftest.tail conftest.defines
12021 done
12022 rm -f conftest.defines
12023 echo '  fi # grep' >>$CONFIG_STATUS
12024 echo >>$CONFIG_STATUS
12025
12026 # Break up conftest.undefs because some shells have a limit on the size
12027 # of here documents, and old seds have small limits too (100 cmds).
12028 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12029 rm -f conftest.tail
12030 while grep . conftest.undefs >/dev/null
12031 do
12032   # Write a limited-size here document to $tmp/undefs.sed.
12033   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12034   # Speed up: don't consider the non `#undef'
12035   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12036   # Work around the forget-to-reset-the-flag bug.
12037   echo 't clr' >>$CONFIG_STATUS
12038   echo ': clr' >>$CONFIG_STATUS
12039   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12040   echo 'CEOF
12041   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12042   rm -f $tmp/in
12043   mv $tmp/out $tmp/in
12044 ' >>$CONFIG_STATUS
12045   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12046   rm -f conftest.undefs
12047   mv conftest.tail conftest.undefs
12048 done
12049 rm -f conftest.undefs
12050
12051 cat >>$CONFIG_STATUS <<\_ACEOF
12052   # Let's still pretend it is `configure' which instantiates (i.e., don't
12053   # use $as_me), people would be surprised to read:
12054   #    /* config.h.  Generated by config.status.  */
12055   if test x"$ac_file" = x-; then
12056     echo "/* Generated by configure.  */" >$tmp/config.h
12057   else
12058     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12059   fi
12060   cat $tmp/in >>$tmp/config.h
12061   rm -f $tmp/in
12062   if test x"$ac_file" != x-; then
12063     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12064       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12065 echo "$as_me: $ac_file is unchanged" >&6;}
12066     else
12067       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12069          X"$ac_file" : 'X\(//\)[^/]' \| \
12070          X"$ac_file" : 'X\(//\)$' \| \
12071          X"$ac_file" : 'X\(/\)' \| \
12072          .     : '\(.\)' 2>/dev/null ||
12073 echo X"$ac_file" |
12074     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12075           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12076           /^X\(\/\/\)$/{ s//\1/; q; }
12077           /^X\(\/\).*/{ s//\1/; q; }
12078           s/.*/./; q'`
12079       { if $as_mkdir_p; then
12080     mkdir -p "$ac_dir"
12081   else
12082     as_dir="$ac_dir"
12083     as_dirs=
12084     while test ! -d "$as_dir"; do
12085       as_dirs="$as_dir $as_dirs"
12086       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12088          X"$as_dir" : 'X\(//\)[^/]' \| \
12089          X"$as_dir" : 'X\(//\)$' \| \
12090          X"$as_dir" : 'X\(/\)' \| \
12091          .     : '\(.\)' 2>/dev/null ||
12092 echo X"$as_dir" |
12093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12094           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12095           /^X\(\/\/\)$/{ s//\1/; q; }
12096           /^X\(\/\).*/{ s//\1/; q; }
12097           s/.*/./; q'`
12098     done
12099     test ! -n "$as_dirs" || mkdir $as_dirs
12100   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12101 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12102    { (exit 1); exit 1; }; }; }
12103
12104       rm -f $ac_file
12105       mv $tmp/config.h $ac_file
12106     fi
12107   else
12108     cat $tmp/config.h
12109     rm -f $tmp/config.h
12110   fi
12111 # Compute $ac_file's index in $config_headers.
12112 _am_stamp_count=1
12113 for _am_header in $config_headers :; do
12114   case $_am_header in
12115     $ac_file | $ac_file:* )
12116       break ;;
12117     * )
12118       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12119   esac
12120 done
12121 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12122 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12123          X$ac_file : 'X\(//\)[^/]' \| \
12124          X$ac_file : 'X\(//\)$' \| \
12125          X$ac_file : 'X\(/\)' \| \
12126          .     : '\(.\)' 2>/dev/null ||
12127 echo X$ac_file |
12128     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12129           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12130           /^X\(\/\/\)$/{ s//\1/; q; }
12131           /^X\(\/\).*/{ s//\1/; q; }
12132           s/.*/./; q'`/stamp-h$_am_stamp_count
12133 done
12134 _ACEOF
12135 cat >>$CONFIG_STATUS <<\_ACEOF
12136
12137 #
12138 # CONFIG_COMMANDS section.
12139 #
12140 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12141   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12142   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12143   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12144 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12145          X"$ac_dest" : 'X\(//\)[^/]' \| \
12146          X"$ac_dest" : 'X\(//\)$' \| \
12147          X"$ac_dest" : 'X\(/\)' \| \
12148          .     : '\(.\)' 2>/dev/null ||
12149 echo X"$ac_dest" |
12150     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12151           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12152           /^X\(\/\/\)$/{ s//\1/; q; }
12153           /^X\(\/\).*/{ s//\1/; q; }
12154           s/.*/./; q'`
12155   { if $as_mkdir_p; then
12156     mkdir -p "$ac_dir"
12157   else
12158     as_dir="$ac_dir"
12159     as_dirs=
12160     while test ! -d "$as_dir"; do
12161       as_dirs="$as_dir $as_dirs"
12162       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12164          X"$as_dir" : 'X\(//\)[^/]' \| \
12165          X"$as_dir" : 'X\(//\)$' \| \
12166          X"$as_dir" : 'X\(/\)' \| \
12167          .     : '\(.\)' 2>/dev/null ||
12168 echo X"$as_dir" |
12169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12170           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12171           /^X\(\/\/\)$/{ s//\1/; q; }
12172           /^X\(\/\).*/{ s//\1/; q; }
12173           s/.*/./; q'`
12174     done
12175     test ! -n "$as_dirs" || mkdir $as_dirs
12176   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12177 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12178    { (exit 1); exit 1; }; }; }
12179
12180   ac_builddir=.
12181
12182 if test "$ac_dir" != .; then
12183   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12184   # A "../" for each directory in $ac_dir_suffix.
12185   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12186 else
12187   ac_dir_suffix= ac_top_builddir=
12188 fi
12189
12190 case $srcdir in
12191   .)  # No --srcdir option.  We are building in place.
12192     ac_srcdir=.
12193     if test -z "$ac_top_builddir"; then
12194        ac_top_srcdir=.
12195     else
12196        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12197     fi ;;
12198   [\\/]* | ?:[\\/]* )  # Absolute path.
12199     ac_srcdir=$srcdir$ac_dir_suffix;
12200     ac_top_srcdir=$srcdir ;;
12201   *) # Relative path.
12202     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12203     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12204 esac
12205
12206 # Do not use `cd foo && pwd` to compute absolute paths, because
12207 # the directories may not exist.
12208 case `pwd` in
12209 .) ac_abs_builddir="$ac_dir";;
12210 *)
12211   case "$ac_dir" in
12212   .) ac_abs_builddir=`pwd`;;
12213   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12214   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12215   esac;;
12216 esac
12217 case $ac_abs_builddir in
12218 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12219 *)
12220   case ${ac_top_builddir}. in
12221   .) ac_abs_top_builddir=$ac_abs_builddir;;
12222   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12223   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12224   esac;;
12225 esac
12226 case $ac_abs_builddir in
12227 .) ac_abs_srcdir=$ac_srcdir;;
12228 *)
12229   case $ac_srcdir in
12230   .) ac_abs_srcdir=$ac_abs_builddir;;
12231   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12232   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12233   esac;;
12234 esac
12235 case $ac_abs_builddir in
12236 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12237 *)
12238   case $ac_top_srcdir in
12239   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12240   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12241   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12242   esac;;
12243 esac
12244
12245
12246   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12247 echo "$as_me: executing $ac_dest commands" >&6;}
12248   case $ac_dest in
12249     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12250   # Strip MF so we end up with the name of the file.
12251   mf=`echo "$mf" | sed -e 's/:.*$//'`
12252   # Check whether this is an Automake generated Makefile or not.
12253   # We used to match only the files named `Makefile.in', but
12254   # some people rename them; so instead we look at the file content.
12255   # Grep'ing the first line is not enough: some people post-process
12256   # each Makefile.in and add a new line on top of each file to say so.
12257   # So let's grep whole file.
12258   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12259     dirpart=`(dirname "$mf") 2>/dev/null ||
12260 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12261          X"$mf" : 'X\(//\)[^/]' \| \
12262          X"$mf" : 'X\(//\)$' \| \
12263          X"$mf" : 'X\(/\)' \| \
12264          .     : '\(.\)' 2>/dev/null ||
12265 echo X"$mf" |
12266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12267           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12268           /^X\(\/\/\)$/{ s//\1/; q; }
12269           /^X\(\/\).*/{ s//\1/; q; }
12270           s/.*/./; q'`
12271   else
12272     continue
12273   fi
12274   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12275   # Extract the definition of DEP_FILES from the Makefile without
12276   # running `make'.
12277   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12278   test -z "$DEPDIR" && continue
12279   # When using ansi2knr, U may be empty or an underscore; expand it
12280   U=`sed -n -e '/^U = / s///p' < "$mf"`
12281   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12282   # We invoke sed twice because it is the simplest approach to
12283   # changing $(DEPDIR) to its actual value in the expansion.
12284   for file in `sed -n -e '
12285     /^DEP_FILES = .*\\\\$/ {
12286       s/^DEP_FILES = //
12287       :loop
12288         s/\\\\$//
12289         p
12290         n
12291         /\\\\$/ b loop
12292       p
12293     }
12294     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12295        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12296     # Make sure the directory exists.
12297     test -f "$dirpart/$file" && continue
12298     fdir=`(dirname "$file") 2>/dev/null ||
12299 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12300          X"$file" : 'X\(//\)[^/]' \| \
12301          X"$file" : 'X\(//\)$' \| \
12302          X"$file" : 'X\(/\)' \| \
12303          .     : '\(.\)' 2>/dev/null ||
12304 echo X"$file" |
12305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12306           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12307           /^X\(\/\/\)$/{ s//\1/; q; }
12308           /^X\(\/\).*/{ s//\1/; q; }
12309           s/.*/./; q'`
12310     { if $as_mkdir_p; then
12311     mkdir -p $dirpart/$fdir
12312   else
12313     as_dir=$dirpart/$fdir
12314     as_dirs=
12315     while test ! -d "$as_dir"; do
12316       as_dirs="$as_dir $as_dirs"
12317       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12318 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12319          X"$as_dir" : 'X\(//\)[^/]' \| \
12320          X"$as_dir" : 'X\(//\)$' \| \
12321          X"$as_dir" : 'X\(/\)' \| \
12322          .     : '\(.\)' 2>/dev/null ||
12323 echo X"$as_dir" |
12324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12325           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12326           /^X\(\/\/\)$/{ s//\1/; q; }
12327           /^X\(\/\).*/{ s//\1/; q; }
12328           s/.*/./; q'`
12329     done
12330     test ! -n "$as_dirs" || mkdir $as_dirs
12331   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12332 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12333    { (exit 1); exit 1; }; }; }
12334
12335     # echo "creating $dirpart/$file"
12336     echo '# dummy' > "$dirpart/$file"
12337   done
12338 done
12339  ;;
12340   esac
12341 done
12342 _ACEOF
12343
12344 cat >>$CONFIG_STATUS <<\_ACEOF
12345
12346 { (exit 0); exit 0; }
12347 _ACEOF
12348 chmod +x $CONFIG_STATUS
12349 ac_clean_files=$ac_clean_files_save
12350
12351
12352 # configure is writing to config.log, and then calls config.status.
12353 # config.status does its own redirection, appending to config.log.
12354 # Unfortunately, on DOS this fails, as config.log is still kept open
12355 # by configure, so config.status won't be able to write to it; its
12356 # output is simply discarded.  So we exec the FD to /dev/null,
12357 # effectively closing config.log, so it can be properly (re)opened and
12358 # appended to by config.status.  When coming back to configure, we
12359 # need to make the FD available again.
12360 if test "$no_create" != yes; then
12361   ac_cs_success=:
12362   ac_config_status_args=
12363   test "$silent" = yes &&
12364     ac_config_status_args="$ac_config_status_args --quiet"
12365   exec 5>/dev/null
12366   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12367   exec 5>>config.log
12368   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12369   # would make configure fail if this is the last instruction.
12370   $ac_cs_success || { (exit 1); exit 1; }
12371 fi
12372