r7942: add test for getenv
[ctsim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
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   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/ctsim.cpp"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 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'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 Program names:
842   --program-prefix=PREFIX            prepend PREFIX to installed program names
843   --program-suffix=SUFFIX            append SUFFIX to installed program names
844   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
845
846 X features:
847   --x-includes=DIR    X include files are in DIR
848   --x-libraries=DIR   X library files are in DIR
849
850 System types:
851   --build=BUILD     configure for building on BUILD [guessed]
852   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858   cat <<\_ACEOF
859
860 Optional Features:
861   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
862   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
863   --enable-maintainer-mode enable make rules and dependencies not useful
864                           (and sometimes confusing) to the casual installer
865   --disable-dependency-tracking Speeds up one-time builds
866   --enable-dependency-tracking  Do not reject slow dependency extractors
867   --enable-debug          Turn on debugging
868   --enable-verbose-warnings
869                           Enable verbose compiler warnings.
870   --enable-static
871                             Enable static executables.
872   --enable-dmalloc        Use dmalloc memory allocation
873   --enable-efence        Use ElectricFence memory allocation
874
875 Optional Packages:
876   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878   --with-lam=PATH         Set path of LAM MPI
879   --with-ctn=PATH         Set path of CTN DICOM library
880   --with-mcpu=CPU         Set name of CPU for gcc -mcpu
881   --with-cgibin-dir=PATH  Set path of CGI binaries directory
882   --with-cgibin-url=PATH  Set URL path of CGI binaries
883   --with-webdata-dir=PATH Set path of webdata
884   --with-webdata-url=PATH Set URL path of webdata
885   --with-html-dir=PATH    Set directory of html files
886   --with-x                use the X Window System
887
888 Some influential environment variables:
889   CC          C compiler command
890   CFLAGS      C compiler flags
891   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
892               nonstandard directory <lib dir>
893   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
894               headers in a nonstandard directory <include dir>
895   CXX         C++ compiler command
896   CXXFLAGS    C++ compiler flags
897   CPP         C preprocessor
898
899 Use these variables to override the choices made by `configure' or to help
900 it to find libraries and programs with nonstandard names/locations.
901
902 _ACEOF
903 fi
904
905 if test "$ac_init_help" = "recursive"; then
906   # If there are subdirs, report their specific --help.
907   ac_popdir=`pwd`
908   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
909     test -d $ac_dir || continue
910     ac_builddir=.
911
912 if test "$ac_dir" != .; then
913   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
914   # A "../" for each directory in $ac_dir_suffix.
915   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
916 else
917   ac_dir_suffix= ac_top_builddir=
918 fi
919
920 case $srcdir in
921   .)  # No --srcdir option.  We are building in place.
922     ac_srcdir=.
923     if test -z "$ac_top_builddir"; then
924        ac_top_srcdir=.
925     else
926        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
927     fi ;;
928   [\\/]* | ?:[\\/]* )  # Absolute path.
929     ac_srcdir=$srcdir$ac_dir_suffix;
930     ac_top_srcdir=$srcdir ;;
931   *) # Relative path.
932     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
933     ac_top_srcdir=$ac_top_builddir$srcdir ;;
934 esac
935 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
936 # absolute.
937 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
938 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
939 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
940 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
941
942     cd $ac_dir
943     # Check for guested configure; otherwise get Cygnus style configure.
944     if test -f $ac_srcdir/configure.gnu; then
945       echo
946       $SHELL $ac_srcdir/configure.gnu  --help=recursive
947     elif test -f $ac_srcdir/configure; then
948       echo
949       $SHELL $ac_srcdir/configure  --help=recursive
950     elif test -f $ac_srcdir/configure.ac ||
951            test -f $ac_srcdir/configure.in; then
952       echo
953       $ac_configure --help
954     else
955       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
956     fi
957     cd "$ac_popdir"
958   done
959 fi
960
961 test -n "$ac_init_help" && exit 0
962 if $ac_init_version; then
963   cat <<\_ACEOF
964
965 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
966 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
969 _ACEOF
970   exit 0
971 fi
972 exec 5>config.log
973 cat >&5 <<_ACEOF
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
976
977 It was created by $as_me, which was
978 generated by GNU Autoconf 2.57.  Invocation command line was
979
980   $ $0 $@
981
982 _ACEOF
983 {
984 cat <<_ASUNAME
985 ## --------- ##
986 ## Platform. ##
987 ## --------- ##
988
989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
994
995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
997
998 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
999 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1002 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1003 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1004 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1005
1006 _ASUNAME
1007
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009 for as_dir in $PATH
1010 do
1011   IFS=$as_save_IFS
1012   test -z "$as_dir" && as_dir=.
1013   echo "PATH: $as_dir"
1014 done
1015
1016 } >&5
1017
1018 cat >&5 <<_ACEOF
1019
1020
1021 ## ----------- ##
1022 ## Core tests. ##
1023 ## ----------- ##
1024
1025 _ACEOF
1026
1027
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_configure_args=
1034 ac_configure_args0=
1035 ac_configure_args1=
1036 ac_sep=
1037 ac_must_keep_next=false
1038 for ac_pass in 1 2
1039 do
1040   for ac_arg
1041   do
1042     case $ac_arg in
1043     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045     | -silent | --silent | --silen | --sile | --sil)
1046       continue ;;
1047     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049     esac
1050     case $ac_pass in
1051     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1052     2)
1053       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054       if test $ac_must_keep_next = true; then
1055         ac_must_keep_next=false # Got value, back to normal.
1056       else
1057         case $ac_arg in
1058           *=* | --config-cache | -C | -disable-* | --disable-* \
1059           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061           | -with-* | --with-* | -without-* | --without-* | --x)
1062             case "$ac_configure_args0 " in
1063               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064             esac
1065             ;;
1066           -* ) ac_must_keep_next=true ;;
1067         esac
1068       fi
1069       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070       # Get rid of the leading space.
1071       ac_sep=" "
1072       ;;
1073     esac
1074   done
1075 done
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1078
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log.  We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close' the trap.
1084 trap 'exit_status=$?
1085   # Save into config.log some information that might help in debugging.
1086   {
1087     echo
1088
1089     cat <<\_ASBOX
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1093 _ASBOX
1094     echo
1095     # The following way of writing the cache mishandles newlines in values,
1096 {
1097   (set) 2>&1 |
1098     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099     *ac_space=\ *)
1100       sed -n \
1101         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103       ;;
1104     *)
1105       sed -n \
1106         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107       ;;
1108     esac;
1109 }
1110     echo
1111
1112     cat <<\_ASBOX
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1116 _ASBOX
1117     echo
1118     for ac_var in $ac_subst_vars
1119     do
1120       eval ac_val=$`echo $ac_var`
1121       echo "$ac_var='"'"'$ac_val'"'"'"
1122     done | sort
1123     echo
1124
1125     if test -n "$ac_subst_files"; then
1126       cat <<\_ASBOX
1127 ## ------------- ##
1128 ## Output files. ##
1129 ## ------------- ##
1130 _ASBOX
1131       echo
1132       for ac_var in $ac_subst_files
1133       do
1134         eval ac_val=$`echo $ac_var`
1135         echo "$ac_var='"'"'$ac_val'"'"'"
1136       done | sort
1137       echo
1138     fi
1139
1140     if test -s confdefs.h; then
1141       cat <<\_ASBOX
1142 ## ----------- ##
1143 ## confdefs.h. ##
1144 ## ----------- ##
1145 _ASBOX
1146       echo
1147       sed "/^$/d" confdefs.h | sort
1148       echo
1149     fi
1150     test "$ac_signal" != 0 &&
1151       echo "$as_me: caught signal $ac_signal"
1152     echo "$as_me: exit $exit_status"
1153   } >&5
1154   rm -f core *.core &&
1155   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1156     exit $exit_status
1157      ' 0
1158 for ac_signal in 1 2 13 15; do
1159   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1160 done
1161 ac_signal=0
1162
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166 echo >confdefs.h
1167
1168 # Predefined preprocessor variables.
1169
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1172 _ACEOF
1173
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1192 _ACEOF
1193
1194
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198   if test "x$prefix" != xNONE; then
1199     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200   else
1201     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202   fi
1203 fi
1204 for ac_site_file in $CONFIG_SITE; do
1205   if test -r "$ac_site_file"; then
1206     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208     sed 's/^/| /' "$ac_site_file" >&5
1209     . "$ac_site_file"
1210   fi
1211 done
1212
1213 if test -r "$cache_file"; then
1214   # Some versions of bash will fail to source /dev/null (special
1215   # files actually), so we avoid doing that.
1216   if test -f "$cache_file"; then
1217     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1219     case $cache_file in
1220       [\\/]* | ?:[\\/]* ) . $cache_file;;
1221       *)                      . ./$cache_file;;
1222     esac
1223   fi
1224 else
1225   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1227   >$cache_file
1228 fi
1229
1230 # Check that the precious variables saved in the cache have kept the same
1231 # value.
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236   eval ac_new_set=\$ac_env_${ac_var}_set
1237   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238   eval ac_new_val="\$ac_env_${ac_var}_value"
1239   case $ac_old_set,$ac_new_set in
1240     set,)
1241       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243       ac_cache_corrupted=: ;;
1244     ,set)
1245       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247       ac_cache_corrupted=: ;;
1248     ,);;
1249     *)
1250       if test "x$ac_old_val" != "x$ac_new_val"; then
1251         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1254 echo "$as_me:   former value:  $ac_old_val" >&2;}
1255         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1256 echo "$as_me:   current value: $ac_new_val" >&2;}
1257         ac_cache_corrupted=:
1258       fi;;
1259   esac
1260   # Pass precious variables to config.status.
1261   if test "$ac_new_set" = set; then
1262     case $ac_new_val in
1263     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265     *) ac_arg=$ac_var=$ac_new_val ;;
1266     esac
1267     case " $ac_configure_args " in
1268       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1269       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1270     esac
1271   fi
1272 done
1273 if $ac_cache_corrupted; then
1274   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278    { (exit 1); exit 1; }; }
1279 fi
1280
1281 ac_ext=c
1282 ac_cpp='$CPP $CPPFLAGS'
1283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1307 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1308     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1309 if test "${enable_maintainer_mode+set}" = set; then
1310   enableval="$enable_maintainer_mode"
1311   USE_MAINTAINER_MODE=$enableval
1312 else
1313   USE_MAINTAINER_MODE=no
1314 fi;
1315   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1316 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1317
1318
1319 if test $USE_MAINTAINER_MODE = yes; then
1320   MAINTAINER_MODE_TRUE=
1321   MAINTAINER_MODE_FALSE='#'
1322 else
1323   MAINTAINER_MODE_TRUE='#'
1324   MAINTAINER_MODE_FALSE=
1325 fi
1326
1327   MAINT=$MAINTAINER_MODE_TRUE
1328
1329
1330 am__api_version="1.7"
1331 ac_aux_dir=
1332 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1333   if test -f $ac_dir/install-sh; then
1334     ac_aux_dir=$ac_dir
1335     ac_install_sh="$ac_aux_dir/install-sh -c"
1336     break
1337   elif test -f $ac_dir/install.sh; then
1338     ac_aux_dir=$ac_dir
1339     ac_install_sh="$ac_aux_dir/install.sh -c"
1340     break
1341   elif test -f $ac_dir/shtool; then
1342     ac_aux_dir=$ac_dir
1343     ac_install_sh="$ac_aux_dir/shtool install -c"
1344     break
1345   fi
1346 done
1347 if test -z "$ac_aux_dir"; then
1348   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1350    { (exit 1); exit 1; }; }
1351 fi
1352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1355
1356 # Find a good install program.  We prefer a C program (faster),
1357 # so one script is as good as another.  But avoid the broken or
1358 # incompatible versions:
1359 # SysV /etc/install, /usr/sbin/install
1360 # SunOS /usr/etc/install
1361 # IRIX /sbin/install
1362 # AIX /bin/install
1363 # AmigaOS /C/install, which installs bootblocks on floppy discs
1364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1367 # ./install, which can be erroneously created by make from ./install.sh.
1368 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1369 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1370 if test -z "$INSTALL"; then
1371 if test "${ac_cv_path_install+set}" = set; then
1372   echo $ECHO_N "(cached) $ECHO_C" >&6
1373 else
1374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375 for as_dir in $PATH
1376 do
1377   IFS=$as_save_IFS
1378   test -z "$as_dir" && as_dir=.
1379   # Account for people who put trailing slashes in PATH elements.
1380 case $as_dir/ in
1381   ./ | .// | /cC/* | \
1382   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1383   /usr/ucb/* ) ;;
1384   *)
1385     # OSF1 and SCO ODT 3.0 have their own names for install.
1386     # Don't use installbsd from OSF since it installs stuff as root
1387     # by default.
1388     for ac_prog in ginstall scoinst install; do
1389       for ac_exec_ext in '' $ac_executable_extensions; do
1390         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1391           if test $ac_prog = install &&
1392             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1393             # AIX install.  It has an incompatible calling convention.
1394             :
1395           elif test $ac_prog = install &&
1396             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1397             # program-specific install script used by HP pwplus--don't use.
1398             :
1399           else
1400             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1401             break 3
1402           fi
1403         fi
1404       done
1405     done
1406     ;;
1407 esac
1408 done
1409
1410
1411 fi
1412   if test "${ac_cv_path_install+set}" = set; then
1413     INSTALL=$ac_cv_path_install
1414   else
1415     # As a last resort, use the slow shell script.  We don't cache a
1416     # path for INSTALL within a source directory, because that will
1417     # break other packages using the cache if that directory is
1418     # removed, or if the path is relative.
1419     INSTALL=$ac_install_sh
1420   fi
1421 fi
1422 echo "$as_me:$LINENO: result: $INSTALL" >&5
1423 echo "${ECHO_T}$INSTALL" >&6
1424
1425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1426 # It thinks the first close brace ends the variable substitution.
1427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1428
1429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1430
1431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1432
1433 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1434 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1435 # Just in case
1436 sleep 1
1437 echo timestamp > conftest.file
1438 # Do `set' in a subshell so we don't clobber the current shell's
1439 # arguments.  Must try -L first in case configure is actually a
1440 # symlink; some systems play weird games with the mod time of symlinks
1441 # (eg FreeBSD returns the mod time of the symlink's containing
1442 # directory).
1443 if (
1444    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1445    if test "$*" = "X"; then
1446       # -L didn't work.
1447       set X `ls -t $srcdir/configure conftest.file`
1448    fi
1449    rm -f conftest.file
1450    if test "$*" != "X $srcdir/configure conftest.file" \
1451       && test "$*" != "X conftest.file $srcdir/configure"; then
1452
1453       # If neither matched, then we have a broken ls.  This can happen
1454       # if, for instance, CONFIG_SHELL is bash and it inherits a
1455       # broken ls alias from the environment.  This has actually
1456       # happened.  Such a system could not be considered "sane".
1457       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1458 alias in your environment" >&5
1459 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1460 alias in your environment" >&2;}
1461    { (exit 1); exit 1; }; }
1462    fi
1463
1464    test "$2" = conftest.file
1465    )
1466 then
1467    # Ok.
1468    :
1469 else
1470    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1471 Check your system clock" >&5
1472 echo "$as_me: error: newly created file is older than distributed files!
1473 Check your system clock" >&2;}
1474    { (exit 1); exit 1; }; }
1475 fi
1476 echo "$as_me:$LINENO: result: yes" >&5
1477 echo "${ECHO_T}yes" >&6
1478 test "$program_prefix" != NONE &&
1479   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1480 # Use a double $ so make ignores it.
1481 test "$program_suffix" != NONE &&
1482   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1483 # Double any \ or $.  echo might interpret backslashes.
1484 # By default was `s,x,x', remove it if useless.
1485 cat <<\_ACEOF >conftest.sed
1486 s/[\\$]/&&/g;s/;s,x,x,$//
1487 _ACEOF
1488 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1489 rm conftest.sed
1490
1491
1492 # expand $ac_aux_dir to an absolute path
1493 am_aux_dir=`cd $ac_aux_dir && pwd`
1494
1495 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1496 # Use eval to expand $SHELL
1497 if eval "$MISSING --run true"; then
1498   am_missing_run="$MISSING --run "
1499 else
1500   am_missing_run=
1501   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1502 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1503 fi
1504
1505 for ac_prog in gawk mawk nawk awk
1506 do
1507   # Extract the first word of "$ac_prog", so it can be a program name with args.
1508 set dummy $ac_prog; ac_word=$2
1509 echo "$as_me:$LINENO: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_prog_AWK+set}" = set; then
1512   echo $ECHO_N "(cached) $ECHO_C" >&6
1513 else
1514   if test -n "$AWK"; then
1515   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1516 else
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518 for as_dir in $PATH
1519 do
1520   IFS=$as_save_IFS
1521   test -z "$as_dir" && as_dir=.
1522   for ac_exec_ext in '' $ac_executable_extensions; do
1523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524     ac_cv_prog_AWK="$ac_prog"
1525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526     break 2
1527   fi
1528 done
1529 done
1530
1531 fi
1532 fi
1533 AWK=$ac_cv_prog_AWK
1534 if test -n "$AWK"; then
1535   echo "$as_me:$LINENO: result: $AWK" >&5
1536 echo "${ECHO_T}$AWK" >&6
1537 else
1538   echo "$as_me:$LINENO: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1540 fi
1541
1542   test -n "$AWK" && break
1543 done
1544
1545 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1546 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1547 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1548 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1549   echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551   cat >conftest.make <<\_ACEOF
1552 all:
1553         @echo 'ac_maketemp="$(MAKE)"'
1554 _ACEOF
1555 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1556 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1557 if test -n "$ac_maketemp"; then
1558   eval ac_cv_prog_make_${ac_make}_set=yes
1559 else
1560   eval ac_cv_prog_make_${ac_make}_set=no
1561 fi
1562 rm -f conftest.make
1563 fi
1564 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1565   echo "$as_me:$LINENO: result: yes" >&5
1566 echo "${ECHO_T}yes" >&6
1567   SET_MAKE=
1568 else
1569   echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571   SET_MAKE="MAKE=${MAKE-make}"
1572 fi
1573
1574 rm -rf .tst 2>/dev/null
1575 mkdir .tst 2>/dev/null
1576 if test -d .tst; then
1577   am__leading_dot=.
1578 else
1579   am__leading_dot=_
1580 fi
1581 rmdir .tst 2>/dev/null
1582
1583  # test to see if srcdir already configured
1584 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1585    test -f $srcdir/config.status; then
1586   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1587 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1588    { (exit 1); exit 1; }; }
1589 fi
1590
1591 # test whether we have cygpath
1592 if test -z "$CYGPATH_W"; then
1593   if (cygpath --version) >/dev/null 2>/dev/null; then
1594     CYGPATH_W='cygpath -w'
1595   else
1596     CYGPATH_W=echo
1597   fi
1598 fi
1599
1600
1601 # Define the identity of the package.
1602  PACKAGE=ctsim
1603  VERSION=4.3.0
1604
1605
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE "$PACKAGE"
1608 _ACEOF
1609
1610
1611 cat >>confdefs.h <<_ACEOF
1612 #define VERSION "$VERSION"
1613 _ACEOF
1614
1615 # Some tools Automake needs.
1616
1617 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1618
1619
1620 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1621
1622
1623 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1624
1625
1626 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1627
1628
1629 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1630
1631
1632 AMTAR=${AMTAR-"${am_missing_run}tar"}
1633
1634 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1635
1636 # Installed binaries are usually stripped using `strip' when the user
1637 # run `make install-strip'.  However `strip' might not be the right
1638 # tool to use in cross-compilation environments, therefore Automake
1639 # will honor the `STRIP' environment variable to overrule this program.
1640 if test "$cross_compiling" != no; then
1641   if test -n "$ac_tool_prefix"; then
1642   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1643 set dummy ${ac_tool_prefix}strip; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_STRIP+set}" = set; then
1647   echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649   if test -n "$STRIP"; then
1650   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1654 do
1655   IFS=$as_save_IFS
1656   test -z "$as_dir" && as_dir=.
1657   for ac_exec_ext in '' $ac_executable_extensions; do
1658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661     break 2
1662   fi
1663 done
1664 done
1665
1666 fi
1667 fi
1668 STRIP=$ac_cv_prog_STRIP
1669 if test -n "$STRIP"; then
1670   echo "$as_me:$LINENO: result: $STRIP" >&5
1671 echo "${ECHO_T}$STRIP" >&6
1672 else
1673   echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1675 fi
1676
1677 fi
1678 if test -z "$ac_cv_prog_STRIP"; then
1679   ac_ct_STRIP=$STRIP
1680   # Extract the first word of "strip", so it can be a program name with args.
1681 set dummy strip; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1685   echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687   if test -n "$ac_ct_STRIP"; then
1688   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1692 do
1693   IFS=$as_save_IFS
1694   test -z "$as_dir" && as_dir=.
1695   for ac_exec_ext in '' $ac_executable_extensions; do
1696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697     ac_cv_prog_ac_ct_STRIP="strip"
1698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699     break 2
1700   fi
1701 done
1702 done
1703
1704   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1705 fi
1706 fi
1707 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1708 if test -n "$ac_ct_STRIP"; then
1709   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1710 echo "${ECHO_T}$ac_ct_STRIP" >&6
1711 else
1712   echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1714 fi
1715
1716   STRIP=$ac_ct_STRIP
1717 else
1718   STRIP="$ac_cv_prog_STRIP"
1719 fi
1720
1721 fi
1722 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1723
1724 # We need awk for the "check" target.  The system "awk" is bad on
1725 # some platforms.
1726
1727
1728
1729           ac_config_headers="$ac_config_headers config.h"
1730
1731
1732 for ac_prog in gawk mawk nawk awk
1733 do
1734   # Extract the first word of "$ac_prog", so it can be a program name with args.
1735 set dummy $ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_AWK+set}" = set; then
1739   echo $ECHO_N "(cached) $ECHO_C" >&6
1740 else
1741   if test -n "$AWK"; then
1742   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1743 else
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745 for as_dir in $PATH
1746 do
1747   IFS=$as_save_IFS
1748   test -z "$as_dir" && as_dir=.
1749   for ac_exec_ext in '' $ac_executable_extensions; do
1750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751     ac_cv_prog_AWK="$ac_prog"
1752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753     break 2
1754   fi
1755 done
1756 done
1757
1758 fi
1759 fi
1760 AWK=$ac_cv_prog_AWK
1761 if test -n "$AWK"; then
1762   echo "$as_me:$LINENO: result: $AWK" >&5
1763 echo "${ECHO_T}$AWK" >&6
1764 else
1765   echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1767 fi
1768
1769   test -n "$AWK" && break
1770 done
1771
1772 # Find a good install program.  We prefer a C program (faster),
1773 # so one script is as good as another.  But avoid the broken or
1774 # incompatible versions:
1775 # SysV /etc/install, /usr/sbin/install
1776 # SunOS /usr/etc/install
1777 # IRIX /sbin/install
1778 # AIX /bin/install
1779 # AmigaOS /C/install, which installs bootblocks on floppy discs
1780 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1781 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1782 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1783 # ./install, which can be erroneously created by make from ./install.sh.
1784 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1785 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1786 if test -z "$INSTALL"; then
1787 if test "${ac_cv_path_install+set}" = set; then
1788   echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 for as_dir in $PATH
1792 do
1793   IFS=$as_save_IFS
1794   test -z "$as_dir" && as_dir=.
1795   # Account for people who put trailing slashes in PATH elements.
1796 case $as_dir/ in
1797   ./ | .// | /cC/* | \
1798   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1799   /usr/ucb/* ) ;;
1800   *)
1801     # OSF1 and SCO ODT 3.0 have their own names for install.
1802     # Don't use installbsd from OSF since it installs stuff as root
1803     # by default.
1804     for ac_prog in ginstall scoinst install; do
1805       for ac_exec_ext in '' $ac_executable_extensions; do
1806         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1807           if test $ac_prog = install &&
1808             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1809             # AIX install.  It has an incompatible calling convention.
1810             :
1811           elif test $ac_prog = install &&
1812             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1813             # program-specific install script used by HP pwplus--don't use.
1814             :
1815           else
1816             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1817             break 3
1818           fi
1819         fi
1820       done
1821     done
1822     ;;
1823 esac
1824 done
1825
1826
1827 fi
1828   if test "${ac_cv_path_install+set}" = set; then
1829     INSTALL=$ac_cv_path_install
1830   else
1831     # As a last resort, use the slow shell script.  We don't cache a
1832     # path for INSTALL within a source directory, because that will
1833     # break other packages using the cache if that directory is
1834     # removed, or if the path is relative.
1835     INSTALL=$ac_install_sh
1836   fi
1837 fi
1838 echo "$as_me:$LINENO: result: $INSTALL" >&5
1839 echo "${ECHO_T}$INSTALL" >&6
1840
1841 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1842 # It thinks the first close brace ends the variable substitution.
1843 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1844
1845 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1846
1847 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1848
1849 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1850 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1851 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1852 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1853   echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855   cat >conftest.make <<\_ACEOF
1856 all:
1857         @echo 'ac_maketemp="$(MAKE)"'
1858 _ACEOF
1859 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1860 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1861 if test -n "$ac_maketemp"; then
1862   eval ac_cv_prog_make_${ac_make}_set=yes
1863 else
1864   eval ac_cv_prog_make_${ac_make}_set=no
1865 fi
1866 rm -f conftest.make
1867 fi
1868 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1869   echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1871   SET_MAKE=
1872 else
1873   echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1875   SET_MAKE="MAKE=${MAKE-make}"
1876 fi
1877
1878 if test -n "$ac_tool_prefix"; then
1879   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1880 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_RANLIB+set}" = set; then
1884   echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886   if test -n "$RANLIB"; then
1887   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892   IFS=$as_save_IFS
1893   test -z "$as_dir" && as_dir=.
1894   for ac_exec_ext in '' $ac_executable_extensions; do
1895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898     break 2
1899   fi
1900 done
1901 done
1902
1903 fi
1904 fi
1905 RANLIB=$ac_cv_prog_RANLIB
1906 if test -n "$RANLIB"; then
1907   echo "$as_me:$LINENO: result: $RANLIB" >&5
1908 echo "${ECHO_T}$RANLIB" >&6
1909 else
1910   echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1912 fi
1913
1914 fi
1915 if test -z "$ac_cv_prog_RANLIB"; then
1916   ac_ct_RANLIB=$RANLIB
1917   # Extract the first word of "ranlib", so it can be a program name with args.
1918 set dummy ranlib; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1922   echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924   if test -n "$ac_ct_RANLIB"; then
1925   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1926 else
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1929 do
1930   IFS=$as_save_IFS
1931   test -z "$as_dir" && as_dir=.
1932   for ac_exec_ext in '' $ac_executable_extensions; do
1933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934     ac_cv_prog_ac_ct_RANLIB="ranlib"
1935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936     break 2
1937   fi
1938 done
1939 done
1940
1941   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1942 fi
1943 fi
1944 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1945 if test -n "$ac_ct_RANLIB"; then
1946   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1947 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1948 else
1949   echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1951 fi
1952
1953   RANLIB=$ac_ct_RANLIB
1954 else
1955   RANLIB="$ac_cv_prog_RANLIB"
1956 fi
1957
1958
1959 ac_ext=c
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 if test -n "$ac_tool_prefix"; then
1965   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970   echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972   if test -n "$CC"; then
1973   ac_cv_prog_CC="$CC" # Let the user override the test.
1974 else
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978   IFS=$as_save_IFS
1979   test -z "$as_dir" && as_dir=.
1980   for ac_exec_ext in '' $ac_executable_extensions; do
1981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984     break 2
1985   fi
1986 done
1987 done
1988
1989 fi
1990 fi
1991 CC=$ac_cv_prog_CC
1992 if test -n "$CC"; then
1993   echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6
1995 else
1996   echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
1998 fi
1999
2000 fi
2001 if test -z "$ac_cv_prog_CC"; then
2002   ac_ct_CC=$CC
2003   # Extract the first word of "gcc", so it can be a program name with args.
2004 set dummy gcc; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$ac_ct_CC"; then
2011   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020     ac_cv_prog_ac_ct_CC="gcc"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026
2027 fi
2028 fi
2029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030 if test -n "$ac_ct_CC"; then
2031   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032 echo "${ECHO_T}$ac_ct_CC" >&6
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038   CC=$ac_ct_CC
2039 else
2040   CC="$ac_cv_prog_CC"
2041 fi
2042
2043 if test -z "$CC"; then
2044   if test -n "$ac_tool_prefix"; then
2045   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2046 set dummy ${ac_tool_prefix}cc; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   if test -n "$CC"; then
2053   ac_cv_prog_CC="$CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062     ac_cv_prog_CC="${ac_tool_prefix}cc"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068
2069 fi
2070 fi
2071 CC=$ac_cv_prog_CC
2072 if test -n "$CC"; then
2073   echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6
2075 else
2076   echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2078 fi
2079
2080 fi
2081 if test -z "$ac_cv_prog_CC"; then
2082   ac_ct_CC=$CC
2083   # Extract the first word of "cc", so it can be a program name with args.
2084 set dummy cc; ac_word=$2
2085 echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2088   echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090   if test -n "$ac_ct_CC"; then
2091   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2092 else
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096   IFS=$as_save_IFS
2097   test -z "$as_dir" && as_dir=.
2098   for ac_exec_ext in '' $ac_executable_extensions; do
2099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100     ac_cv_prog_ac_ct_CC="cc"
2101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102     break 2
2103   fi
2104 done
2105 done
2106
2107 fi
2108 fi
2109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2110 if test -n "$ac_ct_CC"; then
2111   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2112 echo "${ECHO_T}$ac_ct_CC" >&6
2113 else
2114   echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2116 fi
2117
2118   CC=$ac_ct_CC
2119 else
2120   CC="$ac_cv_prog_CC"
2121 fi
2122
2123 fi
2124 if test -z "$CC"; then
2125   # Extract the first word of "cc", so it can be a program name with args.
2126 set dummy cc; ac_word=$2
2127 echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130   echo $ECHO_N "(cached) $ECHO_C" >&6
2131 else
2132   if test -n "$CC"; then
2133   ac_cv_prog_CC="$CC" # Let the user override the test.
2134 else
2135   ac_prog_rejected=no
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   for ac_exec_ext in '' $ac_executable_extensions; do
2142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2144        ac_prog_rejected=yes
2145        continue
2146      fi
2147     ac_cv_prog_CC="cc"
2148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149     break 2
2150   fi
2151 done
2152 done
2153
2154 if test $ac_prog_rejected = yes; then
2155   # We found a bogon in the path, so make sure we never use it.
2156   set dummy $ac_cv_prog_CC
2157   shift
2158   if test $# != 0; then
2159     # We chose a different compiler from the bogus one.
2160     # However, it has the same basename, so the bogon will be chosen
2161     # first if we set CC to just the basename; use the full file name.
2162     shift
2163     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2164   fi
2165 fi
2166 fi
2167 fi
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170   echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6
2172 else
2173   echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2175 fi
2176
2177 fi
2178 if test -z "$CC"; then
2179   if test -n "$ac_tool_prefix"; then
2180   for ac_prog in cl
2181   do
2182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_CC+set}" = set; then
2187   echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189   if test -n "$CC"; then
2190   ac_cv_prog_CC="$CC" # Let the user override the test.
2191 else
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195   IFS=$as_save_IFS
2196   test -z "$as_dir" && as_dir=.
2197   for ac_exec_ext in '' $ac_executable_extensions; do
2198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201     break 2
2202   fi
2203 done
2204 done
2205
2206 fi
2207 fi
2208 CC=$ac_cv_prog_CC
2209 if test -n "$CC"; then
2210   echo "$as_me:$LINENO: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6
2212 else
2213   echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2215 fi
2216
2217     test -n "$CC" && break
2218   done
2219 fi
2220 if test -z "$CC"; then
2221   ac_ct_CC=$CC
2222   for ac_prog in cl
2223 do
2224   # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy $ac_prog; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   if test -n "$ac_ct_CC"; then
2232   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
2237   IFS=$as_save_IFS
2238   test -z "$as_dir" && as_dir=.
2239   for ac_exec_ext in '' $ac_executable_extensions; do
2240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241     ac_cv_prog_ac_ct_CC="$ac_prog"
2242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243     break 2
2244   fi
2245 done
2246 done
2247
2248 fi
2249 fi
2250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6
2254 else
2255   echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2257 fi
2258
2259   test -n "$ac_ct_CC" && break
2260 done
2261
2262   CC=$ac_ct_CC
2263 fi
2264
2265 fi
2266
2267
2268 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&2;}
2272    { (exit 1); exit 1; }; }
2273
2274 # Provide some information about the compiler.
2275 echo "$as_me:$LINENO:" \
2276      "checking for C compiler version" >&5
2277 ac_compiler=`set X $ac_compile; echo $2`
2278 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2279   (eval $ac_compiler --version </dev/null >&5) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }
2283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2284   (eval $ac_compiler -v </dev/null >&5) 2>&5
2285   ac_status=$?
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); }
2288 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2289   (eval $ac_compiler -V </dev/null >&5) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }
2293
2294 cat >conftest.$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301
2302 int
2303 main ()
2304 {
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2314 # of exeext.
2315 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2316 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2319   (eval $ac_link_default) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; then
2323   # Find the output, starting from the most likely.  This scheme is
2324 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2325 # resort.
2326
2327 # Be careful to initialize this variable, since it used to be cached.
2328 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2329 ac_cv_exeext=
2330 # b.out is created by i960 compilers.
2331 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2332 do
2333   test -f "$ac_file" || continue
2334   case $ac_file in
2335     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2336         ;;
2337     conftest.$ac_ext )
2338         # This is the source file.
2339         ;;
2340     [ab].out )
2341         # We found the default executable, but exeext='' is most
2342         # certainly right.
2343         break;;
2344     *.* )
2345         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346         # FIXME: I believe we export ac_cv_exeext for Libtool,
2347         # but it would be cool to find out if it's true.  Does anybody
2348         # maintain Libtool? --akim.
2349         export ac_cv_exeext
2350         break;;
2351     * )
2352         break;;
2353   esac
2354 done
2355 else
2356   echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2358
2359 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: C compiler cannot create executables
2362 See \`config.log' for more details." >&2;}
2363    { (exit 77); exit 77; }; }
2364 fi
2365
2366 ac_exeext=$ac_cv_exeext
2367 echo "$as_me:$LINENO: result: $ac_file" >&5
2368 echo "${ECHO_T}$ac_file" >&6
2369
2370 # Check the compiler produces executables we can run.  If not, either
2371 # the compiler is broken, or we cross compile.
2372 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2373 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2374 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2375 # If not cross compiling, check that we can run a simple program.
2376 if test "$cross_compiling" != yes; then
2377   if { ac_try='./$ac_file'
2378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379   (eval $ac_try) 2>&5
2380   ac_status=$?
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); }; }; then
2383     cross_compiling=no
2384   else
2385     if test "$cross_compiling" = maybe; then
2386         cross_compiling=yes
2387     else
2388         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2389 If you meant to cross compile, use \`--host'.
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot run C compiled programs.
2392 If you meant to cross compile, use \`--host'.
2393 See \`config.log' for more details." >&2;}
2394    { (exit 1); exit 1; }; }
2395     fi
2396   fi
2397 fi
2398 echo "$as_me:$LINENO: result: yes" >&5
2399 echo "${ECHO_T}yes" >&6
2400
2401 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2402 ac_clean_files=$ac_clean_files_save
2403 # Check the compiler produces executables we can run.  If not, either
2404 # the compiler is broken, or we cross compile.
2405 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2406 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2407 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2408 echo "${ECHO_T}$cross_compiling" >&6
2409
2410 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2411 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2413   (eval $ac_link) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; then
2417   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2418 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2419 # work properly (i.e., refer to `conftest.exe'), while it won't with
2420 # `rm'.
2421 for ac_file in conftest.exe conftest conftest.*; do
2422   test -f "$ac_file" || continue
2423   case $ac_file in
2424     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2425     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426           export ac_cv_exeext
2427           break;;
2428     * ) break;;
2429   esac
2430 done
2431 else
2432   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2435 See \`config.log' for more details." >&2;}
2436    { (exit 1); exit 1; }; }
2437 fi
2438
2439 rm -f conftest$ac_cv_exeext
2440 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2441 echo "${ECHO_T}$ac_cv_exeext" >&6
2442
2443 rm -f conftest.$ac_ext
2444 EXEEXT=$ac_cv_exeext
2445 ac_exeext=$EXEEXT
2446 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2447 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2448 if test "${ac_cv_objext+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   cat >conftest.$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2453 /* confdefs.h.  */
2454 _ACEOF
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h.  */
2458
2459 int
2460 main ()
2461 {
2462
2463   ;
2464   return 0;
2465 }
2466 _ACEOF
2467 rm -f conftest.o conftest.obj
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469   (eval $ac_compile) 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; then
2473   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2474   case $ac_file in
2475     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2476     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2477        break;;
2478   esac
2479 done
2480 else
2481   echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details." >&2;}
2488    { (exit 1); exit 1; }; }
2489 fi
2490
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2492 fi
2493 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6
2495 OBJEXT=$ac_cv_objext
2496 ac_objext=$OBJEXT
2497 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   cat >conftest.$ac_ext <<_ACEOF
2503 #line $LINENO "configure"
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509
2510 int
2511 main ()
2512 {
2513 #ifndef __GNUC__
2514        choke me
2515 #endif
2516
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523   (eval $ac_compile) 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); } &&
2527          { ac_try='test -s conftest.$ac_objext'
2528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529   (eval $ac_try) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }; }; then
2533   ac_compiler_gnu=yes
2534 else
2535   echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538 ac_compiler_gnu=no
2539 fi
2540 rm -f conftest.$ac_objext conftest.$ac_ext
2541 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2542
2543 fi
2544 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2545 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2546 GCC=`test $ac_compiler_gnu = yes && echo yes`
2547 ac_test_CFLAGS=${CFLAGS+set}
2548 ac_save_CFLAGS=$CFLAGS
2549 CFLAGS="-g"
2550 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2551 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2552 if test "${ac_cv_prog_cc_g+set}" = set; then
2553   echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555   cat >conftest.$ac_ext <<_ACEOF
2556 #line $LINENO "configure"
2557 /* confdefs.h.  */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h.  */
2562
2563 int
2564 main ()
2565 {
2566
2567   ;
2568   return 0;
2569 }
2570 _ACEOF
2571 rm -f conftest.$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573   (eval $ac_compile) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); } &&
2577          { ac_try='test -s conftest.$ac_objext'
2578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579   (eval $ac_try) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; }; then
2583   ac_cv_prog_cc_g=yes
2584 else
2585   echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 ac_cv_prog_cc_g=no
2589 fi
2590 rm -f conftest.$ac_objext conftest.$ac_ext
2591 fi
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2594 if test "$ac_test_CFLAGS" = set; then
2595   CFLAGS=$ac_save_CFLAGS
2596 elif test $ac_cv_prog_cc_g = yes; then
2597   if test "$GCC" = yes; then
2598     CFLAGS="-g -O2"
2599   else
2600     CFLAGS="-g"
2601   fi
2602 else
2603   if test "$GCC" = yes; then
2604     CFLAGS="-O2"
2605   else
2606     CFLAGS=
2607   fi
2608 fi
2609 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2610 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2611 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2612   echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614   ac_cv_prog_cc_stdc=no
2615 ac_save_CC=$CC
2616 cat >conftest.$ac_ext <<_ACEOF
2617 #line $LINENO "configure"
2618 /* confdefs.h.  */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h.  */
2623 #include <stdarg.h>
2624 #include <stdio.h>
2625 #include <sys/types.h>
2626 #include <sys/stat.h>
2627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2628 struct buf { int x; };
2629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2630 static char *e (p, i)
2631      char **p;
2632      int i;
2633 {
2634   return p[i];
2635 }
2636 static char *f (char * (*g) (char **, int), char **p, ...)
2637 {
2638   char *s;
2639   va_list v;
2640   va_start (v,p);
2641   s = g (p, va_arg (v,int));
2642   va_end (v);
2643   return s;
2644 }
2645 int test (int i, double x);
2646 struct s1 {int (*f) (int a);};
2647 struct s2 {int (*f) (double a);};
2648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2649 int argc;
2650 char **argv;
2651 int
2652 main ()
2653 {
2654 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2655   ;
2656   return 0;
2657 }
2658 _ACEOF
2659 # Don't try gcc -ansi; that turns off useful extensions and
2660 # breaks some systems' header files.
2661 # AIX                   -qlanglvl=ansi
2662 # Ultrix and OSF/1      -std1
2663 # HP-UX 10.20 and later -Ae
2664 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2665 # SVR4                  -Xc -D__EXTENSIONS__
2666 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2667 do
2668   CC="$ac_save_CC $ac_arg"
2669   rm -f conftest.$ac_objext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671   (eval $ac_compile) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -s conftest.$ac_objext'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; }; then
2681   ac_cv_prog_cc_stdc=$ac_arg
2682 break
2683 else
2684   echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2686
2687 fi
2688 rm -f conftest.$ac_objext
2689 done
2690 rm -f conftest.$ac_ext conftest.$ac_objext
2691 CC=$ac_save_CC
2692
2693 fi
2694
2695 case "x$ac_cv_prog_cc_stdc" in
2696   x|xno)
2697     echo "$as_me:$LINENO: result: none needed" >&5
2698 echo "${ECHO_T}none needed" >&6 ;;
2699   *)
2700     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2701 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2702     CC="$CC $ac_cv_prog_cc_stdc" ;;
2703 esac
2704
2705 # Some people use a C++ compiler to compile C.  Since we use `exit',
2706 # in C++ we need to declare it.  In case someone uses the same compiler
2707 # for both compiling C and C++ we need to have the C++ compiler decide
2708 # the declaration of exit, since it's the most demanding environment.
2709 cat >conftest.$ac_ext <<_ACEOF
2710 #ifndef __cplusplus
2711   choke me
2712 #endif
2713 _ACEOF
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716   (eval $ac_compile) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } &&
2720          { ac_try='test -s conftest.$ac_objext'
2721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722   (eval $ac_try) 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }; }; then
2726   for ac_declaration in \
2727    '' \
2728    'extern "C" void std::exit (int) throw (); using std::exit;' \
2729    'extern "C" void std::exit (int); using std::exit;' \
2730    'extern "C" void exit (int) throw ();' \
2731    'extern "C" void exit (int);' \
2732    'void exit (int);'
2733 do
2734   cat >conftest.$ac_ext <<_ACEOF
2735 #line $LINENO "configure"
2736 /* confdefs.h.  */
2737 _ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h.  */
2741 $ac_declaration
2742 #include <stdlib.h>
2743 int
2744 main ()
2745 {
2746 exit (42);
2747   ;
2748   return 0;
2749 }
2750 _ACEOF
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753   (eval $ac_compile) 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); } &&
2757          { ac_try='test -s conftest.$ac_objext'
2758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759   (eval $ac_try) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; }; then
2763   :
2764 else
2765   echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2767
2768 continue
2769 fi
2770 rm -f conftest.$ac_objext conftest.$ac_ext
2771   cat >conftest.$ac_ext <<_ACEOF
2772 #line $LINENO "configure"
2773 /* confdefs.h.  */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h.  */
2778 $ac_declaration
2779 int
2780 main ()
2781 {
2782 exit (42);
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789   (eval $ac_compile) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); } &&
2793          { ac_try='test -s conftest.$ac_objext'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; }; then
2799   break
2800 else
2801   echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2803
2804 fi
2805 rm -f conftest.$ac_objext conftest.$ac_ext
2806 done
2807 rm -f conftest*
2808 if test -n "$ac_declaration"; then
2809   echo '#ifdef __cplusplus' >>confdefs.h
2810   echo $ac_declaration      >>confdefs.h
2811   echo '#endif'             >>confdefs.h
2812 fi
2813
2814 else
2815   echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2817
2818 fi
2819 rm -f conftest.$ac_objext conftest.$ac_ext
2820 ac_ext=c
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 DEPDIR="${am__leading_dot}deps"
2826
2827           ac_config_commands="$ac_config_commands depfiles"
2828
2829
2830 am_make=${MAKE-make}
2831 cat > confinc << 'END'
2832 am__doit:
2833         @echo done
2834 .PHONY: am__doit
2835 END
2836 # If we don't find an include directive, just comment out the code.
2837 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2838 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2839 am__include="#"
2840 am__quote=
2841 _am_result=none
2842 # First try GNU make style include.
2843 echo "include confinc" > confmf
2844 # We grep out `Entering directory' and `Leaving directory'
2845 # messages which can occur if `w' ends up in MAKEFLAGS.
2846 # In particular we don't look at `^make:' because GNU make might
2847 # be invoked under some other name (usually "gmake"), in which
2848 # case it prints its new name instead of `make'.
2849 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2850    am__include=include
2851    am__quote=
2852    _am_result=GNU
2853 fi
2854 # Now try BSD make style include.
2855 if test "$am__include" = "#"; then
2856    echo '.include "confinc"' > confmf
2857    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2858       am__include=.include
2859       am__quote="\""
2860       _am_result=BSD
2861    fi
2862 fi
2863
2864
2865 echo "$as_me:$LINENO: result: $_am_result" >&5
2866 echo "${ECHO_T}$_am_result" >&6
2867 rm -f confinc confmf
2868
2869 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2870 if test "${enable_dependency_tracking+set}" = set; then
2871   enableval="$enable_dependency_tracking"
2872
2873 fi;
2874 if test "x$enable_dependency_tracking" != xno; then
2875   am_depcomp="$ac_aux_dir/depcomp"
2876   AMDEPBACKSLASH='\'
2877 fi
2878
2879
2880 if test "x$enable_dependency_tracking" != xno; then
2881   AMDEP_TRUE=
2882   AMDEP_FALSE='#'
2883 else
2884   AMDEP_TRUE='#'
2885   AMDEP_FALSE=
2886 fi
2887
2888
2889
2890
2891 depcc="$CC"   am_compiler_list=
2892
2893 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2894 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2895 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2896   echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2899   # We make a subdir and do the tests there.  Otherwise we can end up
2900   # making bogus files that we don't know about and never remove.  For
2901   # instance it was reported that on HP-UX the gcc test will end up
2902   # making a dummy file named `D' -- because `-MD' means `put the output
2903   # in D'.
2904   mkdir conftest.dir
2905   # Copy depcomp to subdir because otherwise we won't find it if we're
2906   # using a relative directory.
2907   cp "$am_depcomp" conftest.dir
2908   cd conftest.dir
2909   # We will build objects and dependencies in a subdirectory because
2910   # it helps to detect inapplicable dependency modes.  For instance
2911   # both Tru64's cc and ICC support -MD to output dependencies as a
2912   # side effect of compilation, but ICC will put the dependencies in
2913   # the current directory while Tru64 will put them in the object
2914   # directory.
2915   mkdir sub
2916
2917   am_cv_CC_dependencies_compiler_type=none
2918   if test "$am_compiler_list" = ""; then
2919      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2920   fi
2921   for depmode in $am_compiler_list; do
2922     # Setup a source with many dependencies, because some compilers
2923     # like to wrap large dependency lists on column 80 (with \), and
2924     # we should not choose a depcomp mode which is confused by this.
2925     #
2926     # We need to recreate these files for each test, as the compiler may
2927     # overwrite some of them when testing with obscure command lines.
2928     # This happens at least with the AIX C compiler.
2929     : > sub/conftest.c
2930     for i in 1 2 3 4 5 6; do
2931       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2932       : > sub/conftst$i.h
2933     done
2934     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2935
2936     case $depmode in
2937     nosideeffect)
2938       # after this tag, mechanisms are not by side-effect, so they'll
2939       # only be used when explicitly requested
2940       if test "x$enable_dependency_tracking" = xyes; then
2941         continue
2942       else
2943         break
2944       fi
2945       ;;
2946     none) break ;;
2947     esac
2948     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2949     # mode.  It turns out that the SunPro C++ compiler does not properly
2950     # handle `-M -o', and we need to detect this.
2951     if depmode=$depmode \
2952        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2953        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2954        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2955          >/dev/null 2>conftest.err &&
2956        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2957        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2958        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2959       # icc doesn't choke on unknown options, it will just issue warnings
2960       # (even with -Werror).  So we grep stderr for any message
2961       # that says an option was ignored.
2962       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2963         am_cv_CC_dependencies_compiler_type=$depmode
2964         break
2965       fi
2966     fi
2967   done
2968
2969   cd ..
2970   rm -rf conftest.dir
2971 else
2972   am_cv_CC_dependencies_compiler_type=none
2973 fi
2974
2975 fi
2976 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2977 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2978 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2979
2980
2981
2982 if
2983   test "x$enable_dependency_tracking" != xno \
2984   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2985   am__fastdepCC_TRUE=
2986   am__fastdepCC_FALSE='#'
2987 else
2988   am__fastdepCC_TRUE='#'
2989   am__fastdepCC_FALSE=
2990 fi
2991
2992
2993 ac_ext=cc
2994 ac_cpp='$CXXCPP $CPPFLAGS'
2995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2998 if test -n "$ac_tool_prefix"; then
2999   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3000   do
3001     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3003 echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_prog_CXX+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   if test -n "$CXX"; then
3009   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014   IFS=$as_save_IFS
3015   test -z "$as_dir" && as_dir=.
3016   for ac_exec_ext in '' $ac_executable_extensions; do
3017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020     break 2
3021   fi
3022 done
3023 done
3024
3025 fi
3026 fi
3027 CXX=$ac_cv_prog_CXX
3028 if test -n "$CXX"; then
3029   echo "$as_me:$LINENO: result: $CXX" >&5
3030 echo "${ECHO_T}$CXX" >&6
3031 else
3032   echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6
3034 fi
3035
3036     test -n "$CXX" && break
3037   done
3038 fi
3039 if test -z "$CXX"; then
3040   ac_ct_CXX=$CXX
3041   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3042 do
3043   # Extract the first word of "$ac_prog", so it can be a program name with args.
3044 set dummy $ac_prog; ac_word=$2
3045 echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3048   echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050   if test -n "$ac_ct_CXX"; then
3051   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056   IFS=$as_save_IFS
3057   test -z "$as_dir" && as_dir=.
3058   for ac_exec_ext in '' $ac_executable_extensions; do
3059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060     ac_cv_prog_ac_ct_CXX="$ac_prog"
3061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062     break 2
3063   fi
3064 done
3065 done
3066
3067 fi
3068 fi
3069 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3070 if test -n "$ac_ct_CXX"; then
3071   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3072 echo "${ECHO_T}$ac_ct_CXX" >&6
3073 else
3074   echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6
3076 fi
3077
3078   test -n "$ac_ct_CXX" && break
3079 done
3080 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3081
3082   CXX=$ac_ct_CXX
3083 fi
3084
3085
3086 # Provide some information about the compiler.
3087 echo "$as_me:$LINENO:" \
3088      "checking for C++ compiler version" >&5
3089 ac_compiler=`set X $ac_compile; echo $2`
3090 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3091   (eval $ac_compiler --version </dev/null >&5) 2>&5
3092   ac_status=$?
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); }
3095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3096   (eval $ac_compiler -v </dev/null >&5) 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }
3100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3101   (eval $ac_compiler -V </dev/null >&5) 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }
3105
3106 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3107 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3108 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   cat >conftest.$ac_ext <<_ACEOF
3112 #line $LINENO "configure"
3113 /* confdefs.h.  */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h.  */
3118
3119 int
3120 main ()
3121 {
3122 #ifndef __GNUC__
3123        choke me
3124 #endif
3125
3126   ;
3127   return 0;
3128 }
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3132   (eval $ac_compile) 2>&5
3133   ac_status=$?
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); } &&
3136          { ac_try='test -s conftest.$ac_objext'
3137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138   (eval $ac_try) 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }; }; then
3142   ac_compiler_gnu=yes
3143 else
3144   echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 ac_compiler_gnu=no
3148 fi
3149 rm -f conftest.$ac_objext conftest.$ac_ext
3150 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3151
3152 fi
3153 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3154 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3155 GXX=`test $ac_compiler_gnu = yes && echo yes`
3156 ac_test_CXXFLAGS=${CXXFLAGS+set}
3157 ac_save_CXXFLAGS=$CXXFLAGS
3158 CXXFLAGS="-g"
3159 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3160 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3161 if test "${ac_cv_prog_cxx_g+set}" = set; then
3162   echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164   cat >conftest.$ac_ext <<_ACEOF
3165 #line $LINENO "configure"
3166 /* confdefs.h.  */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h.  */
3171
3172 int
3173 main ()
3174 {
3175
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3182   (eval $ac_compile) 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } &&
3186          { ac_try='test -s conftest.$ac_objext'
3187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188   (eval $ac_try) 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; }; then
3192   ac_cv_prog_cxx_g=yes
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 ac_cv_prog_cxx_g=no
3198 fi
3199 rm -f conftest.$ac_objext conftest.$ac_ext
3200 fi
3201 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3202 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3203 if test "$ac_test_CXXFLAGS" = set; then
3204   CXXFLAGS=$ac_save_CXXFLAGS
3205 elif test $ac_cv_prog_cxx_g = yes; then
3206   if test "$GXX" = yes; then
3207     CXXFLAGS="-g -O2"
3208   else
3209     CXXFLAGS="-g"
3210   fi
3211 else
3212   if test "$GXX" = yes; then
3213     CXXFLAGS="-O2"
3214   else
3215     CXXFLAGS=
3216   fi
3217 fi
3218 for ac_declaration in \
3219    '' \
3220    'extern "C" void std::exit (int) throw (); using std::exit;' \
3221    'extern "C" void std::exit (int); using std::exit;' \
3222    'extern "C" void exit (int) throw ();' \
3223    'extern "C" void exit (int);' \
3224    'void exit (int);'
3225 do
3226   cat >conftest.$ac_ext <<_ACEOF
3227 #line $LINENO "configure"
3228 /* confdefs.h.  */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h.  */
3233 $ac_declaration
3234 #include <stdlib.h>
3235 int
3236 main ()
3237 {
3238 exit (42);
3239   ;
3240   return 0;
3241 }
3242 _ACEOF
3243 rm -f conftest.$ac_objext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245   (eval $ac_compile) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); } &&
3249          { ac_try='test -s conftest.$ac_objext'
3250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251   (eval $ac_try) 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255   :
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 continue
3261 fi
3262 rm -f conftest.$ac_objext conftest.$ac_ext
3263   cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
3265 /* confdefs.h.  */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h.  */
3270 $ac_declaration
3271 int
3272 main ()
3273 {
3274 exit (42);
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 rm -f conftest.$ac_objext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281   (eval $ac_compile) 2>&5
3282   ac_status=$?
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); } &&
3285          { ac_try='test -s conftest.$ac_objext'
3286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287   (eval $ac_try) 2>&5
3288   ac_status=$?
3289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290   (exit $ac_status); }; }; then
3291   break
3292 else
3293   echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296 fi
3297 rm -f conftest.$ac_objext conftest.$ac_ext
3298 done
3299 rm -f conftest*
3300 if test -n "$ac_declaration"; then
3301   echo '#ifdef __cplusplus' >>confdefs.h
3302   echo $ac_declaration      >>confdefs.h
3303   echo '#endif'             >>confdefs.h
3304 fi
3305
3306 ac_ext=c
3307 ac_cpp='$CPP $CPPFLAGS'
3308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311
3312 depcc="$CXX"  am_compiler_list=
3313
3314 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3315 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3316 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3317   echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3320   # We make a subdir and do the tests there.  Otherwise we can end up
3321   # making bogus files that we don't know about and never remove.  For
3322   # instance it was reported that on HP-UX the gcc test will end up
3323   # making a dummy file named `D' -- because `-MD' means `put the output
3324   # in D'.
3325   mkdir conftest.dir
3326   # Copy depcomp to subdir because otherwise we won't find it if we're
3327   # using a relative directory.
3328   cp "$am_depcomp" conftest.dir
3329   cd conftest.dir
3330   # We will build objects and dependencies in a subdirectory because
3331   # it helps to detect inapplicable dependency modes.  For instance
3332   # both Tru64's cc and ICC support -MD to output dependencies as a
3333   # side effect of compilation, but ICC will put the dependencies in
3334   # the current directory while Tru64 will put them in the object
3335   # directory.
3336   mkdir sub
3337
3338   am_cv_CXX_dependencies_compiler_type=none
3339   if test "$am_compiler_list" = ""; then
3340      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3341   fi
3342   for depmode in $am_compiler_list; do
3343     # Setup a source with many dependencies, because some compilers
3344     # like to wrap large dependency lists on column 80 (with \), and
3345     # we should not choose a depcomp mode which is confused by this.
3346     #
3347     # We need to recreate these files for each test, as the compiler may
3348     # overwrite some of them when testing with obscure command lines.
3349     # This happens at least with the AIX C compiler.
3350     : > sub/conftest.c
3351     for i in 1 2 3 4 5 6; do
3352       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3353       : > sub/conftst$i.h
3354     done
3355     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3356
3357     case $depmode in
3358     nosideeffect)
3359       # after this tag, mechanisms are not by side-effect, so they'll
3360       # only be used when explicitly requested
3361       if test "x$enable_dependency_tracking" = xyes; then
3362         continue
3363       else
3364         break
3365       fi
3366       ;;
3367     none) break ;;
3368     esac
3369     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3370     # mode.  It turns out that the SunPro C++ compiler does not properly
3371     # handle `-M -o', and we need to detect this.
3372     if depmode=$depmode \
3373        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3374        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3375        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3376          >/dev/null 2>conftest.err &&
3377        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3378        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3379        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3380       # icc doesn't choke on unknown options, it will just issue warnings
3381       # (even with -Werror).  So we grep stderr for any message
3382       # that says an option was ignored.
3383       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3384         am_cv_CXX_dependencies_compiler_type=$depmode
3385         break
3386       fi
3387     fi
3388   done
3389
3390   cd ..
3391   rm -rf conftest.dir
3392 else
3393   am_cv_CXX_dependencies_compiler_type=none
3394 fi
3395
3396 fi
3397 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3398 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3399 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3400
3401
3402
3403 if
3404   test "x$enable_dependency_tracking" != xno \
3405   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3406   am__fastdepCXX_TRUE=
3407   am__fastdepCXX_FALSE='#'
3408 else
3409   am__fastdepCXX_TRUE='#'
3410   am__fastdepCXX_FALSE=
3411 fi
3412
3413
3414
3415 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3416 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3417 if test "${ac_cv_c_bigendian+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   # See if sys/param.h defines the BYTE_ORDER macro.
3421 cat >conftest.$ac_ext <<_ACEOF
3422 #line $LINENO "configure"
3423 /* confdefs.h.  */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h.  */
3428 #include <sys/types.h>
3429 #include <sys/param.h>
3430
3431 int
3432 main ()
3433 {
3434 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3435  bogus endian macros
3436 #endif
3437
3438   ;
3439   return 0;
3440 }
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444   (eval $ac_compile) 2>&5
3445   ac_status=$?
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); } &&
3448          { ac_try='test -s conftest.$ac_objext'
3449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450   (eval $ac_try) 2>&5
3451   ac_status=$?
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); }; }; then
3454   # It does; now see whether it defined to BIG_ENDIAN or not.
3455 cat >conftest.$ac_ext <<_ACEOF
3456 #line $LINENO "configure"
3457 /* confdefs.h.  */
3458 _ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h.  */
3462 #include <sys/types.h>
3463 #include <sys/param.h>
3464
3465 int
3466 main ()
3467 {
3468 #if BYTE_ORDER != BIG_ENDIAN
3469  not big endian
3470 #endif
3471
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 rm -f conftest.$ac_objext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478   (eval $ac_compile) 2>&5
3479   ac_status=$?
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); } &&
3482          { ac_try='test -s conftest.$ac_objext'
3483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484   (eval $ac_try) 2>&5
3485   ac_status=$?
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); }; }; then
3488   ac_cv_c_bigendian=yes
3489 else
3490   echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493 ac_cv_c_bigendian=no
3494 fi
3495 rm -f conftest.$ac_objext conftest.$ac_ext
3496 else
3497   echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 # It does not; compile a test program.
3501 if test "$cross_compiling" = yes; then
3502   # try to guess the endianness by grepping values into an object file
3503   ac_cv_c_bigendian=unknown
3504   cat >conftest.$ac_ext <<_ACEOF
3505 #line $LINENO "configure"
3506 /* confdefs.h.  */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h.  */
3511 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3512 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3513 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3514 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3515 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3516 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3517 int
3518 main ()
3519 {
3520  _ascii (); _ebcdic ();
3521   ;
3522   return 0;
3523 }
3524 _ACEOF
3525 rm -f conftest.$ac_objext
3526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3527   (eval $ac_compile) 2>&5
3528   ac_status=$?
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); } &&
3531          { ac_try='test -s conftest.$ac_objext'
3532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533   (eval $ac_try) 2>&5
3534   ac_status=$?
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); }; }; then
3537   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3538   ac_cv_c_bigendian=yes
3539 fi
3540 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3541   if test "$ac_cv_c_bigendian" = unknown; then
3542     ac_cv_c_bigendian=no
3543   else
3544     # finding both strings is unlikely to happen, but who knows?
3545     ac_cv_c_bigendian=unknown
3546   fi
3547 fi
3548 else
3549   echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552 fi
3553 rm -f conftest.$ac_objext conftest.$ac_ext
3554 else
3555   cat >conftest.$ac_ext <<_ACEOF
3556 #line $LINENO "configure"
3557 /* confdefs.h.  */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h.  */
3562 int
3563 main ()
3564 {
3565   /* Are we little or big endian?  From Harbison&Steele.  */
3566   union
3567   {
3568     long l;
3569     char c[sizeof (long)];
3570   } u;
3571   u.l = 1;
3572   exit (u.c[sizeof (long) - 1] == 1);
3573 }
3574 _ACEOF
3575 rm -f conftest$ac_exeext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3577   (eval $ac_link) 2>&5
3578   ac_status=$?
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582   (eval $ac_try) 2>&5
3583   ac_status=$?
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); }; }; then
3586   ac_cv_c_bigendian=no
3587 else
3588   echo "$as_me: program exited with status $ac_status" >&5
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 ( exit $ac_status )
3593 ac_cv_c_bigendian=yes
3594 fi
3595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3596 fi
3597 fi
3598 rm -f conftest.$ac_objext conftest.$ac_ext
3599 fi
3600 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3601 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3602 case $ac_cv_c_bigendian in
3603   yes)
3604
3605 cat >>confdefs.h <<\_ACEOF
3606 #define WORDS_BIGENDIAN 1
3607 _ACEOF
3608  ;;
3609   no)
3610      ;;
3611   *)
3612     { { echo "$as_me:$LINENO: error: unknown endianness
3613 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3614 echo "$as_me: error: unknown endianness
3615 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3616    { (exit 1); exit 1; }; } ;;
3617 esac
3618
3619
3620 # Extract the first word of "wx-config", so it can be a program name with args.
3621 set dummy wx-config; ac_word=$2
3622 echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624 if test "${ac_cv_path_wxconfig+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   case $wxconfig in
3628   [\\/]* | ?:[\\/]*)
3629   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3630   ;;
3631   *)
3632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635   IFS=$as_save_IFS
3636   test -z "$as_dir" && as_dir=.
3637   for ac_exec_ext in '' $ac_executable_extensions; do
3638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641     break 2
3642   fi
3643 done
3644 done
3645
3646   ;;
3647 esac
3648 fi
3649 wxconfig=$ac_cv_path_wxconfig
3650
3651 if test -n "$wxconfig"; then
3652   echo "$as_me:$LINENO: result: $wxconfig" >&5
3653 echo "${ECHO_T}$wxconfig" >&6
3654 else
3655   echo "$as_me:$LINENO: result: no" >&5
3656 echo "${ECHO_T}no" >&6
3657 fi
3658
3659
3660 # Make sure we can run config.sub.
3661 $ac_config_sub sun4 >/dev/null 2>&1 ||
3662   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3663 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3664    { (exit 1); exit 1; }; }
3665
3666 echo "$as_me:$LINENO: checking build system type" >&5
3667 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3668 if test "${ac_cv_build+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   ac_cv_build_alias=$build_alias
3672 test -z "$ac_cv_build_alias" &&
3673   ac_cv_build_alias=`$ac_config_guess`
3674 test -z "$ac_cv_build_alias" &&
3675   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3676 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3677    { (exit 1); exit 1; }; }
3678 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3679   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3680 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3681    { (exit 1); exit 1; }; }
3682
3683 fi
3684 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3685 echo "${ECHO_T}$ac_cv_build" >&6
3686 build=$ac_cv_build
3687 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3688 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3689 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3690
3691
3692 echo "$as_me:$LINENO: checking host system type" >&5
3693 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3694 if test "${ac_cv_host+set}" = set; then
3695   echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697   ac_cv_host_alias=$host_alias
3698 test -z "$ac_cv_host_alias" &&
3699   ac_cv_host_alias=$ac_cv_build_alias
3700 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3701   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3702 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3703    { (exit 1); exit 1; }; }
3704
3705 fi
3706 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3707 echo "${ECHO_T}$ac_cv_host" >&6
3708 host=$ac_cv_host
3709 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3710 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3711 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3712
3713
3714 echo "$as_me:$LINENO: checking for inline" >&5
3715 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3716 if test "${ac_cv_c_inline+set}" = set; then
3717   echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719   ac_cv_c_inline=no
3720 for ac_kw in inline __inline__ __inline; do
3721   cat >conftest.$ac_ext <<_ACEOF
3722 #line $LINENO "configure"
3723 /* confdefs.h.  */
3724 _ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h.  */
3728 #ifndef __cplusplus
3729 typedef int foo_t;
3730 static $ac_kw foo_t static_foo () {return 0; }
3731 $ac_kw foo_t foo () {return 0; }
3732 #endif
3733
3734 _ACEOF
3735 rm -f conftest.$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737   (eval $ac_compile) 2>&5
3738   ac_status=$?
3739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740   (exit $ac_status); } &&
3741          { ac_try='test -s conftest.$ac_objext'
3742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743   (eval $ac_try) 2>&5
3744   ac_status=$?
3745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746   (exit $ac_status); }; }; then
3747   ac_cv_c_inline=$ac_kw; break
3748 else
3749   echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752 fi
3753 rm -f conftest.$ac_objext conftest.$ac_ext
3754 done
3755
3756 fi
3757 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3758 echo "${ECHO_T}$ac_cv_c_inline" >&6
3759 case $ac_cv_c_inline in
3760   inline | yes) ;;
3761   no)
3762 cat >>confdefs.h <<\_ACEOF
3763 #define inline
3764 _ACEOF
3765  ;;
3766   *)  cat >>confdefs.h <<_ACEOF
3767 #define inline $ac_cv_c_inline
3768 _ACEOF
3769  ;;
3770 esac
3771
3772 ac_ext=c
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3778 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3779 # On Suns, sometimes $CPP names a directory.
3780 if test -n "$CPP" && test -d "$CPP"; then
3781   CPP=
3782 fi
3783 if test -z "$CPP"; then
3784   if test "${ac_cv_prog_CPP+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787       # Double quotes because CPP needs to be expanded
3788     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3789     do
3790       ac_preproc_ok=false
3791 for ac_c_preproc_warn_flag in '' yes
3792 do
3793   # Use a header file that comes with gcc, so configuring glibc
3794   # with a fresh cross-compiler works.
3795   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796   # <limits.h> exists even on freestanding compilers.
3797   # On the NeXT, cc -E runs the code through the compiler's parser,
3798   # not just through cpp. "Syntax error" is here to catch this case.
3799   cat >conftest.$ac_ext <<_ACEOF
3800 #line $LINENO "configure"
3801 /* confdefs.h.  */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h.  */
3806 #ifdef __STDC__
3807 # include <limits.h>
3808 #else
3809 # include <assert.h>
3810 #endif
3811                      Syntax error
3812 _ACEOF
3813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3814   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3815   ac_status=$?
3816   grep -v '^ *+' conftest.er1 >conftest.err
3817   rm -f conftest.er1
3818   cat conftest.err >&5
3819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820   (exit $ac_status); } >/dev/null; then
3821   if test -s conftest.err; then
3822     ac_cpp_err=$ac_c_preproc_warn_flag
3823   else
3824     ac_cpp_err=
3825   fi
3826 else
3827   ac_cpp_err=yes
3828 fi
3829 if test -z "$ac_cpp_err"; then
3830   :
3831 else
3832   echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835   # Broken: fails on valid input.
3836 continue
3837 fi
3838 rm -f conftest.err conftest.$ac_ext
3839
3840   # OK, works on sane cases.  Now check whether non-existent headers
3841   # can be detected and how.
3842   cat >conftest.$ac_ext <<_ACEOF
3843 #line $LINENO "configure"
3844 /* confdefs.h.  */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h.  */
3849 #include <ac_nonexistent.h>
3850 _ACEOF
3851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3852   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3853   ac_status=$?
3854   grep -v '^ *+' conftest.er1 >conftest.err
3855   rm -f conftest.er1
3856   cat conftest.err >&5
3857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858   (exit $ac_status); } >/dev/null; then
3859   if test -s conftest.err; then
3860     ac_cpp_err=$ac_c_preproc_warn_flag
3861   else
3862     ac_cpp_err=
3863   fi
3864 else
3865   ac_cpp_err=yes
3866 fi
3867 if test -z "$ac_cpp_err"; then
3868   # Broken: success on invalid input.
3869 continue
3870 else
3871   echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3873
3874   # Passes both tests.
3875 ac_preproc_ok=:
3876 break
3877 fi
3878 rm -f conftest.err conftest.$ac_ext
3879
3880 done
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.err conftest.$ac_ext
3883 if $ac_preproc_ok; then
3884   break
3885 fi
3886
3887     done
3888     ac_cv_prog_CPP=$CPP
3889
3890 fi
3891   CPP=$ac_cv_prog_CPP
3892 else
3893   ac_cv_prog_CPP=$CPP
3894 fi
3895 echo "$as_me:$LINENO: result: $CPP" >&5
3896 echo "${ECHO_T}$CPP" >&6
3897 ac_preproc_ok=false
3898 for ac_c_preproc_warn_flag in '' yes
3899 do
3900   # Use a header file that comes with gcc, so configuring glibc
3901   # with a fresh cross-compiler works.
3902   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3903   # <limits.h> exists even on freestanding compilers.
3904   # On the NeXT, cc -E runs the code through the compiler's parser,
3905   # not just through cpp. "Syntax error" is here to catch this case.
3906   cat >conftest.$ac_ext <<_ACEOF
3907 #line $LINENO "configure"
3908 /* confdefs.h.  */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h.  */
3913 #ifdef __STDC__
3914 # include <limits.h>
3915 #else
3916 # include <assert.h>
3917 #endif
3918                      Syntax error
3919 _ACEOF
3920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3922   ac_status=$?
3923   grep -v '^ *+' conftest.er1 >conftest.err
3924   rm -f conftest.er1
3925   cat conftest.err >&5
3926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927   (exit $ac_status); } >/dev/null; then
3928   if test -s conftest.err; then
3929     ac_cpp_err=$ac_c_preproc_warn_flag
3930   else
3931     ac_cpp_err=
3932   fi
3933 else
3934   ac_cpp_err=yes
3935 fi
3936 if test -z "$ac_cpp_err"; then
3937   :
3938 else
3939   echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942   # Broken: fails on valid input.
3943 continue
3944 fi
3945 rm -f conftest.err conftest.$ac_ext
3946
3947   # OK, works on sane cases.  Now check whether non-existent headers
3948   # can be detected and how.
3949   cat >conftest.$ac_ext <<_ACEOF
3950 #line $LINENO "configure"
3951 /* confdefs.h.  */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h.  */
3956 #include <ac_nonexistent.h>
3957 _ACEOF
3958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3959   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3960   ac_status=$?
3961   grep -v '^ *+' conftest.er1 >conftest.err
3962   rm -f conftest.er1
3963   cat conftest.err >&5
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); } >/dev/null; then
3966   if test -s conftest.err; then
3967     ac_cpp_err=$ac_c_preproc_warn_flag
3968   else
3969     ac_cpp_err=
3970   fi
3971 else
3972   ac_cpp_err=yes
3973 fi
3974 if test -z "$ac_cpp_err"; then
3975   # Broken: success on invalid input.
3976 continue
3977 else
3978   echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981   # Passes both tests.
3982 ac_preproc_ok=:
3983 break
3984 fi
3985 rm -f conftest.err conftest.$ac_ext
3986
3987 done
3988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3989 rm -f conftest.err conftest.$ac_ext
3990 if $ac_preproc_ok; then
3991   :
3992 else
3993   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3994 See \`config.log' for more details." >&5
3995 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3996 See \`config.log' for more details." >&2;}
3997    { (exit 1); exit 1; }; }
3998 fi
3999
4000 ac_ext=c
4001 ac_cpp='$CPP $CPPFLAGS'
4002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005
4006
4007 echo "$as_me:$LINENO: checking for egrep" >&5
4008 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4009 if test "${ac_cv_prog_egrep+set}" = set; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4013     then ac_cv_prog_egrep='grep -E'
4014     else ac_cv_prog_egrep='egrep'
4015     fi
4016 fi
4017 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4018 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4019  EGREP=$ac_cv_prog_egrep
4020
4021
4022 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4023 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4024 if test "${ac_cv_header_stdc+set}" = set; then
4025   echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027   cat >conftest.$ac_ext <<_ACEOF
4028 #line $LINENO "configure"
4029 /* confdefs.h.  */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h.  */
4034 #include <stdlib.h>
4035 #include <stdarg.h>
4036 #include <string.h>
4037 #include <float.h>
4038
4039 int
4040 main ()
4041 {
4042
4043   ;
4044   return 0;
4045 }
4046 _ACEOF
4047 rm -f conftest.$ac_objext
4048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4049   (eval $ac_compile) 2>&5
4050   ac_status=$?
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); } &&
4053          { ac_try='test -s conftest.$ac_objext'
4054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055   (eval $ac_try) 2>&5
4056   ac_status=$?
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); }; }; then
4059   ac_cv_header_stdc=yes
4060 else
4061   echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4063
4064 ac_cv_header_stdc=no
4065 fi
4066 rm -f conftest.$ac_objext conftest.$ac_ext
4067
4068 if test $ac_cv_header_stdc = yes; then
4069   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4070   cat >conftest.$ac_ext <<_ACEOF
4071 #line $LINENO "configure"
4072 /* confdefs.h.  */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h.  */
4077 #include <string.h>
4078
4079 _ACEOF
4080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4081   $EGREP "memchr" >/dev/null 2>&1; then
4082   :
4083 else
4084   ac_cv_header_stdc=no
4085 fi
4086 rm -f conftest*
4087
4088 fi
4089
4090 if test $ac_cv_header_stdc = yes; then
4091   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4092   cat >conftest.$ac_ext <<_ACEOF
4093 #line $LINENO "configure"
4094 /* confdefs.h.  */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h.  */
4099 #include <stdlib.h>
4100
4101 _ACEOF
4102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4103   $EGREP "free" >/dev/null 2>&1; then
4104   :
4105 else
4106   ac_cv_header_stdc=no
4107 fi
4108 rm -f conftest*
4109
4110 fi
4111
4112 if test $ac_cv_header_stdc = yes; then
4113   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4114   if test "$cross_compiling" = yes; then
4115   :
4116 else
4117   cat >conftest.$ac_ext <<_ACEOF
4118 #line $LINENO "configure"
4119 /* confdefs.h.  */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h.  */
4124 #include <ctype.h>
4125 #if ((' ' & 0x0FF) == 0x020)
4126 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4127 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4128 #else
4129 # define ISLOWER(c) \
4130                    (('a' <= (c) && (c) <= 'i') \
4131                      || ('j' <= (c) && (c) <= 'r') \
4132                      || ('s' <= (c) && (c) <= 'z'))
4133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4134 #endif
4135
4136 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4137 int
4138 main ()
4139 {
4140   int i;
4141   for (i = 0; i < 256; i++)
4142     if (XOR (islower (i), ISLOWER (i))
4143         || toupper (i) != TOUPPER (i))
4144       exit(2);
4145   exit (0);
4146 }
4147 _ACEOF
4148 rm -f conftest$ac_exeext
4149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4150   (eval $ac_link) 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155   (eval $ac_try) 2>&5
4156   ac_status=$?
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); }; }; then
4159   :
4160 else
4161   echo "$as_me: program exited with status $ac_status" >&5
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165 ( exit $ac_status )
4166 ac_cv_header_stdc=no
4167 fi
4168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4169 fi
4170 fi
4171 fi
4172 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4173 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4174 if test $ac_cv_header_stdc = yes; then
4175
4176 cat >>confdefs.h <<\_ACEOF
4177 #define STDC_HEADERS 1
4178 _ACEOF
4179
4180 fi
4181
4182 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4193                   inttypes.h stdint.h unistd.h
4194 do
4195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4196 echo "$as_me:$LINENO: checking for $ac_header" >&5
4197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   cat >conftest.$ac_ext <<_ACEOF
4202 #line $LINENO "configure"
4203 /* confdefs.h.  */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h.  */
4208 $ac_includes_default
4209
4210 #include <$ac_header>
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214   (eval $ac_compile) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); } &&
4218          { ac_try='test -s conftest.$ac_objext'
4219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220   (eval $ac_try) 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); }; }; then
4224   eval "$as_ac_Header=yes"
4225 else
4226   echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229 eval "$as_ac_Header=no"
4230 fi
4231 rm -f conftest.$ac_objext conftest.$ac_ext
4232 fi
4233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4236   cat >>confdefs.h <<_ACEOF
4237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4238 _ACEOF
4239
4240 fi
4241
4242 done
4243
4244
4245 echo "$as_me:$LINENO: checking for short" >&5
4246 echo $ECHO_N "checking for short... $ECHO_C" >&6
4247 if test "${ac_cv_type_short+set}" = set; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250   cat >conftest.$ac_ext <<_ACEOF
4251 #line $LINENO "configure"
4252 /* confdefs.h.  */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h.  */
4257 $ac_includes_default
4258 int
4259 main ()
4260 {
4261 if ((short *) 0)
4262   return 0;
4263 if (sizeof (short))
4264   return 0;
4265   ;
4266   return 0;
4267 }
4268 _ACEOF
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271   (eval $ac_compile) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); } &&
4275          { ac_try='test -s conftest.$ac_objext'
4276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277   (eval $ac_try) 2>&5
4278   ac_status=$?
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); }; }; then
4281   ac_cv_type_short=yes
4282 else
4283   echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 ac_cv_type_short=no
4287 fi
4288 rm -f conftest.$ac_objext conftest.$ac_ext
4289 fi
4290 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4291 echo "${ECHO_T}$ac_cv_type_short" >&6
4292
4293 echo "$as_me:$LINENO: checking size of short" >&5
4294 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4295 if test "${ac_cv_sizeof_short+set}" = set; then
4296   echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298   if test "$ac_cv_type_short" = yes; then
4299   # The cast to unsigned long works around a bug in the HP C Compiler
4300   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4301   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4302   # This bug is HP SR number 8606223364.
4303   if test "$cross_compiling" = yes; then
4304   # Depending upon the size, compute the lo and hi bounds.
4305 cat >conftest.$ac_ext <<_ACEOF
4306 #line $LINENO "configure"
4307 /* confdefs.h.  */
4308 _ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h.  */
4312 $ac_includes_default
4313 int
4314 main ()
4315 {
4316 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4317 test_array [0] = 0
4318
4319   ;
4320   return 0;
4321 }
4322 _ACEOF
4323 rm -f conftest.$ac_objext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325   (eval $ac_compile) 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); } &&
4329          { ac_try='test -s conftest.$ac_objext'
4330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331   (eval $ac_try) 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }; }; then
4335   ac_lo=0 ac_mid=0
4336   while :; do
4337     cat >conftest.$ac_ext <<_ACEOF
4338 #line $LINENO "configure"
4339 /* confdefs.h.  */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h.  */
4344 $ac_includes_default
4345 int
4346 main ()
4347 {
4348 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4349 test_array [0] = 0
4350
4351   ;
4352   return 0;
4353 }
4354 _ACEOF
4355 rm -f conftest.$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357   (eval $ac_compile) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); } &&
4361          { ac_try='test -s conftest.$ac_objext'
4362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363   (eval $ac_try) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; }; then
4367   ac_hi=$ac_mid; break
4368 else
4369   echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372 ac_lo=`expr $ac_mid + 1`
4373                     if test $ac_lo -le $ac_mid; then
4374                       ac_lo= ac_hi=
4375                       break
4376                     fi
4377                     ac_mid=`expr 2 '*' $ac_mid + 1`
4378 fi
4379 rm -f conftest.$ac_objext conftest.$ac_ext
4380   done
4381 else
4382   echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4384
4385 cat >conftest.$ac_ext <<_ACEOF
4386 #line $LINENO "configure"
4387 /* confdefs.h.  */
4388 _ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h.  */
4392 $ac_includes_default
4393 int
4394 main ()
4395 {
4396 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4397 test_array [0] = 0
4398
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403 rm -f conftest.$ac_objext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405   (eval $ac_compile) 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } &&
4409          { ac_try='test -s conftest.$ac_objext'
4410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411   (eval $ac_try) 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); }; }; then
4415   ac_hi=-1 ac_mid=-1
4416   while :; do
4417     cat >conftest.$ac_ext <<_ACEOF
4418 #line $LINENO "configure"
4419 /* confdefs.h.  */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h.  */
4424 $ac_includes_default
4425 int
4426 main ()
4427 {
4428 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4429 test_array [0] = 0
4430
4431   ;
4432   return 0;
4433 }
4434 _ACEOF
4435 rm -f conftest.$ac_objext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4437   (eval $ac_compile) 2>&5
4438   ac_status=$?
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); } &&
4441          { ac_try='test -s conftest.$ac_objext'
4442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443   (eval $ac_try) 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); }; }; then
4447   ac_lo=$ac_mid; break
4448 else
4449   echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452 ac_hi=`expr '(' $ac_mid ')' - 1`
4453                        if test $ac_mid -le $ac_hi; then
4454                          ac_lo= ac_hi=
4455                          break
4456                        fi
4457                        ac_mid=`expr 2 '*' $ac_mid`
4458 fi
4459 rm -f conftest.$ac_objext conftest.$ac_ext
4460   done
4461 else
4462   echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4464
4465 ac_lo= ac_hi=
4466 fi
4467 rm -f conftest.$ac_objext conftest.$ac_ext
4468 fi
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4470 # Binary search between lo and hi bounds.
4471 while test "x$ac_lo" != "x$ac_hi"; do
4472   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4473   cat >conftest.$ac_ext <<_ACEOF
4474 #line $LINENO "configure"
4475 /* confdefs.h.  */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h.  */
4480 $ac_includes_default
4481 int
4482 main ()
4483 {
4484 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4485 test_array [0] = 0
4486
4487   ;
4488   return 0;
4489 }
4490 _ACEOF
4491 rm -f conftest.$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493   (eval $ac_compile) 2>&5
4494   ac_status=$?
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); } &&
4497          { ac_try='test -s conftest.$ac_objext'
4498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499   (eval $ac_try) 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }; }; then
4503   ac_hi=$ac_mid
4504 else
4505   echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 ac_lo=`expr '(' $ac_mid ')' + 1`
4509 fi
4510 rm -f conftest.$ac_objext conftest.$ac_ext
4511 done
4512 case $ac_lo in
4513 ?*) ac_cv_sizeof_short=$ac_lo;;
4514 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4515 See \`config.log' for more details." >&5
4516 echo "$as_me: error: cannot compute sizeof (short), 77
4517 See \`config.log' for more details." >&2;}
4518    { (exit 1); exit 1; }; } ;;
4519 esac
4520 else
4521   if test "$cross_compiling" = yes; then
4522   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4523 See \`config.log' for more details." >&5
4524 echo "$as_me: error: cannot run test program while cross compiling
4525 See \`config.log' for more details." >&2;}
4526    { (exit 1); exit 1; }; }
4527 else
4528   cat >conftest.$ac_ext <<_ACEOF
4529 #line $LINENO "configure"
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535 $ac_includes_default
4536 long longval () { return (long) (sizeof (short)); }
4537 unsigned long ulongval () { return (long) (sizeof (short)); }
4538 #include <stdio.h>
4539 #include <stdlib.h>
4540 int
4541 main ()
4542 {
4543
4544   FILE *f = fopen ("conftest.val", "w");
4545   if (! f)
4546     exit (1);
4547   if (((long) (sizeof (short))) < 0)
4548     {
4549       long i = longval ();
4550       if (i != ((long) (sizeof (short))))
4551         exit (1);
4552       fprintf (f, "%ld\n", i);
4553     }
4554   else
4555     {
4556       unsigned long i = ulongval ();
4557       if (i != ((long) (sizeof (short))))
4558         exit (1);
4559       fprintf (f, "%lu\n", i);
4560     }
4561   exit (ferror (f) || fclose (f) != 0);
4562
4563   ;
4564   return 0;
4565 }
4566 _ACEOF
4567 rm -f conftest$ac_exeext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4569   (eval $ac_link) 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574   (eval $ac_try) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); }; }; then
4578   ac_cv_sizeof_short=`cat conftest.val`
4579 else
4580   echo "$as_me: program exited with status $ac_status" >&5
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584 ( exit $ac_status )
4585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4586 See \`config.log' for more details." >&5
4587 echo "$as_me: error: cannot compute sizeof (short), 77
4588 See \`config.log' for more details." >&2;}
4589    { (exit 1); exit 1; }; }
4590 fi
4591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4592 fi
4593 fi
4594 rm -f conftest.val
4595 else
4596   ac_cv_sizeof_short=0
4597 fi
4598 fi
4599 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4600 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4601 cat >>confdefs.h <<_ACEOF
4602 #define SIZEOF_SHORT $ac_cv_sizeof_short
4603 _ACEOF
4604
4605
4606 echo "$as_me:$LINENO: checking for int" >&5
4607 echo $ECHO_N "checking for int... $ECHO_C" >&6
4608 if test "${ac_cv_type_int+set}" = set; then
4609   echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611   cat >conftest.$ac_ext <<_ACEOF
4612 #line $LINENO "configure"
4613 /* confdefs.h.  */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h.  */
4618 $ac_includes_default
4619 int
4620 main ()
4621 {
4622 if ((int *) 0)
4623   return 0;
4624 if (sizeof (int))
4625   return 0;
4626   ;
4627   return 0;
4628 }
4629 _ACEOF
4630 rm -f conftest.$ac_objext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632   (eval $ac_compile) 2>&5
4633   ac_status=$?
4634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); } &&
4636          { ac_try='test -s conftest.$ac_objext'
4637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638   (eval $ac_try) 2>&5
4639   ac_status=$?
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); }; }; then
4642   ac_cv_type_int=yes
4643 else
4644   echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4646
4647 ac_cv_type_int=no
4648 fi
4649 rm -f conftest.$ac_objext conftest.$ac_ext
4650 fi
4651 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4652 echo "${ECHO_T}$ac_cv_type_int" >&6
4653
4654 echo "$as_me:$LINENO: checking size of int" >&5
4655 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4656 if test "${ac_cv_sizeof_int+set}" = set; then
4657   echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659   if test "$ac_cv_type_int" = yes; then
4660   # The cast to unsigned long works around a bug in the HP C Compiler
4661   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4662   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4663   # This bug is HP SR number 8606223364.
4664   if test "$cross_compiling" = yes; then
4665   # Depending upon the size, compute the lo and hi bounds.
4666 cat >conftest.$ac_ext <<_ACEOF
4667 #line $LINENO "configure"
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673 $ac_includes_default
4674 int
4675 main ()
4676 {
4677 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4678 test_array [0] = 0
4679
4680   ;
4681   return 0;
4682 }
4683 _ACEOF
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686   (eval $ac_compile) 2>&5
4687   ac_status=$?
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); } &&
4690          { ac_try='test -s conftest.$ac_objext'
4691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692   (eval $ac_try) 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); }; }; then
4696   ac_lo=0 ac_mid=0
4697   while :; do
4698     cat >conftest.$ac_ext <<_ACEOF
4699 #line $LINENO "configure"
4700 /* confdefs.h.  */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h.  */
4705 $ac_includes_default
4706 int
4707 main ()
4708 {
4709 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4710 test_array [0] = 0
4711
4712   ;
4713   return 0;
4714 }
4715 _ACEOF
4716 rm -f conftest.$ac_objext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718   (eval $ac_compile) 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); } &&
4722          { ac_try='test -s conftest.$ac_objext'
4723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724   (eval $ac_try) 2>&5
4725   ac_status=$?
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); }; }; then
4728   ac_hi=$ac_mid; break
4729 else
4730   echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733 ac_lo=`expr $ac_mid + 1`
4734                     if test $ac_lo -le $ac_mid; then
4735                       ac_lo= ac_hi=
4736                       break
4737                     fi
4738                     ac_mid=`expr 2 '*' $ac_mid + 1`
4739 fi
4740 rm -f conftest.$ac_objext conftest.$ac_ext
4741   done
4742 else
4743   echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4745
4746 cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4748 /* confdefs.h.  */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h.  */
4753 $ac_includes_default
4754 int
4755 main ()
4756 {
4757 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4758 test_array [0] = 0
4759
4760   ;
4761   return 0;
4762 }
4763 _ACEOF
4764 rm -f conftest.$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766   (eval $ac_compile) 2>&5
4767   ac_status=$?
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); } &&
4770          { ac_try='test -s conftest.$ac_objext'
4771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772   (eval $ac_try) 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); }; }; then
4776   ac_hi=-1 ac_mid=-1
4777   while :; do
4778     cat >conftest.$ac_ext <<_ACEOF
4779 #line $LINENO "configure"
4780 /* confdefs.h.  */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h.  */
4785 $ac_includes_default
4786 int
4787 main ()
4788 {
4789 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4790 test_array [0] = 0
4791
4792   ;
4793   return 0;
4794 }
4795 _ACEOF
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798   (eval $ac_compile) 2>&5
4799   ac_status=$?
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); } &&
4802          { ac_try='test -s conftest.$ac_objext'
4803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804   (eval $ac_try) 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); }; }; then
4808   ac_lo=$ac_mid; break
4809 else
4810   echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4812
4813 ac_hi=`expr '(' $ac_mid ')' - 1`
4814                        if test $ac_mid -le $ac_hi; then
4815                          ac_lo= ac_hi=
4816                          break
4817                        fi
4818                        ac_mid=`expr 2 '*' $ac_mid`
4819 fi
4820 rm -f conftest.$ac_objext conftest.$ac_ext
4821   done
4822 else
4823   echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4825
4826 ac_lo= ac_hi=
4827 fi
4828 rm -f conftest.$ac_objext conftest.$ac_ext
4829 fi
4830 rm -f conftest.$ac_objext conftest.$ac_ext
4831 # Binary search between lo and hi bounds.
4832 while test "x$ac_lo" != "x$ac_hi"; do
4833   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4834   cat >conftest.$ac_ext <<_ACEOF
4835 #line $LINENO "configure"
4836 /* confdefs.h.  */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h.  */
4841 $ac_includes_default
4842 int
4843 main ()
4844 {
4845 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4846 test_array [0] = 0
4847
4848   ;
4849   return 0;
4850 }
4851 _ACEOF
4852 rm -f conftest.$ac_objext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854   (eval $ac_compile) 2>&5
4855   ac_status=$?
4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857   (exit $ac_status); } &&
4858          { ac_try='test -s conftest.$ac_objext'
4859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860   (eval $ac_try) 2>&5
4861   ac_status=$?
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); }; }; then
4864   ac_hi=$ac_mid
4865 else
4866   echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868
4869 ac_lo=`expr '(' $ac_mid ')' + 1`
4870 fi
4871 rm -f conftest.$ac_objext conftest.$ac_ext
4872 done
4873 case $ac_lo in
4874 ?*) ac_cv_sizeof_int=$ac_lo;;
4875 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4876 See \`config.log' for more details." >&5
4877 echo "$as_me: error: cannot compute sizeof (int), 77
4878 See \`config.log' for more details." >&2;}
4879    { (exit 1); exit 1; }; } ;;
4880 esac
4881 else
4882   if test "$cross_compiling" = yes; then
4883   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4884 See \`config.log' for more details." >&5
4885 echo "$as_me: error: cannot run test program while cross compiling
4886 See \`config.log' for more details." >&2;}
4887    { (exit 1); exit 1; }; }
4888 else
4889   cat >conftest.$ac_ext <<_ACEOF
4890 #line $LINENO "configure"
4891 /* confdefs.h.  */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h.  */
4896 $ac_includes_default
4897 long longval () { return (long) (sizeof (int)); }
4898 unsigned long ulongval () { return (long) (sizeof (int)); }
4899 #include <stdio.h>
4900 #include <stdlib.h>
4901 int
4902 main ()
4903 {
4904
4905   FILE *f = fopen ("conftest.val", "w");
4906   if (! f)
4907     exit (1);
4908   if (((long) (sizeof (int))) < 0)
4909     {
4910       long i = longval ();
4911       if (i != ((long) (sizeof (int))))
4912         exit (1);
4913       fprintf (f, "%ld\n", i);
4914     }
4915   else
4916     {
4917       unsigned long i = ulongval ();
4918       if (i != ((long) (sizeof (int))))
4919         exit (1);
4920       fprintf (f, "%lu\n", i);
4921     }
4922   exit (ferror (f) || fclose (f) != 0);
4923
4924   ;
4925   return 0;
4926 }
4927 _ACEOF
4928 rm -f conftest$ac_exeext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4930   (eval $ac_link) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935   (eval $ac_try) 2>&5
4936   ac_status=$?
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); }; }; then
4939   ac_cv_sizeof_int=`cat conftest.val`
4940 else
4941   echo "$as_me: program exited with status $ac_status" >&5
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 ( exit $ac_status )
4946 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4947 See \`config.log' for more details." >&5
4948 echo "$as_me: error: cannot compute sizeof (int), 77
4949 See \`config.log' for more details." >&2;}
4950    { (exit 1); exit 1; }; }
4951 fi
4952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4953 fi
4954 fi
4955 rm -f conftest.val
4956 else
4957   ac_cv_sizeof_int=0
4958 fi
4959 fi
4960 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4961 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4962 cat >>confdefs.h <<_ACEOF
4963 #define SIZEOF_INT $ac_cv_sizeof_int
4964 _ACEOF
4965
4966
4967 echo "$as_me:$LINENO: checking for long" >&5
4968 echo $ECHO_N "checking for long... $ECHO_C" >&6
4969 if test "${ac_cv_type_long+set}" = set; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972   cat >conftest.$ac_ext <<_ACEOF
4973 #line $LINENO "configure"
4974 /* confdefs.h.  */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h.  */
4979 $ac_includes_default
4980 int
4981 main ()
4982 {
4983 if ((long *) 0)
4984   return 0;
4985 if (sizeof (long))
4986   return 0;
4987   ;
4988   return 0;
4989 }
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993   (eval $ac_compile) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } &&
4997          { ac_try='test -s conftest.$ac_objext'
4998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999   (eval $ac_try) 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); }; }; then
5003   ac_cv_type_long=yes
5004 else
5005   echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5007
5008 ac_cv_type_long=no
5009 fi
5010 rm -f conftest.$ac_objext conftest.$ac_ext
5011 fi
5012 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5013 echo "${ECHO_T}$ac_cv_type_long" >&6
5014
5015 echo "$as_me:$LINENO: checking size of long" >&5
5016 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5017 if test "${ac_cv_sizeof_long+set}" = set; then
5018   echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020   if test "$ac_cv_type_long" = yes; then
5021   # The cast to unsigned long works around a bug in the HP C Compiler
5022   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5023   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5024   # This bug is HP SR number 8606223364.
5025   if test "$cross_compiling" = yes; then
5026   # Depending upon the size, compute the lo and hi bounds.
5027 cat >conftest.$ac_ext <<_ACEOF
5028 #line $LINENO "configure"
5029 /* confdefs.h.  */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h.  */
5034 $ac_includes_default
5035 int
5036 main ()
5037 {
5038 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5039 test_array [0] = 0
5040
5041   ;
5042   return 0;
5043 }
5044 _ACEOF
5045 rm -f conftest.$ac_objext
5046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5047   (eval $ac_compile) 2>&5
5048   ac_status=$?
5049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050   (exit $ac_status); } &&
5051          { ac_try='test -s conftest.$ac_objext'
5052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053   (eval $ac_try) 2>&5
5054   ac_status=$?
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); }; }; then
5057   ac_lo=0 ac_mid=0
5058   while :; do
5059     cat >conftest.$ac_ext <<_ACEOF
5060 #line $LINENO "configure"
5061 /* confdefs.h.  */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h.  */
5066 $ac_includes_default
5067 int
5068 main ()
5069 {
5070 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5071 test_array [0] = 0
5072
5073   ;
5074   return 0;
5075 }
5076 _ACEOF
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079   (eval $ac_compile) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); } &&
5083          { ac_try='test -s conftest.$ac_objext'
5084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085   (eval $ac_try) 2>&5
5086   ac_status=$?
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); }; }; then
5089   ac_hi=$ac_mid; break
5090 else
5091   echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5093
5094 ac_lo=`expr $ac_mid + 1`
5095                     if test $ac_lo -le $ac_mid; then
5096                       ac_lo= ac_hi=
5097                       break
5098                     fi
5099                     ac_mid=`expr 2 '*' $ac_mid + 1`
5100 fi
5101 rm -f conftest.$ac_objext conftest.$ac_ext
5102   done
5103 else
5104   echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5106
5107 cat >conftest.$ac_ext <<_ACEOF
5108 #line $LINENO "configure"
5109 /* confdefs.h.  */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h.  */
5114 $ac_includes_default
5115 int
5116 main ()
5117 {
5118 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5119 test_array [0] = 0
5120
5121   ;
5122   return 0;
5123 }
5124 _ACEOF
5125 rm -f conftest.$ac_objext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5127   (eval $ac_compile) 2>&5
5128   ac_status=$?
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); } &&
5131          { ac_try='test -s conftest.$ac_objext'
5132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133   (eval $ac_try) 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); }; }; then
5137   ac_hi=-1 ac_mid=-1
5138   while :; do
5139     cat >conftest.$ac_ext <<_ACEOF
5140 #line $LINENO "configure"
5141 /* confdefs.h.  */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h.  */
5146 $ac_includes_default
5147 int
5148 main ()
5149 {
5150 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5151 test_array [0] = 0
5152
5153   ;
5154   return 0;
5155 }
5156 _ACEOF
5157 rm -f conftest.$ac_objext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5159   (eval $ac_compile) 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); } &&
5163          { ac_try='test -s conftest.$ac_objext'
5164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165   (eval $ac_try) 2>&5
5166   ac_status=$?
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); }; }; then
5169   ac_lo=$ac_mid; break
5170 else
5171   echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174 ac_hi=`expr '(' $ac_mid ')' - 1`
5175                        if test $ac_mid -le $ac_hi; then
5176                          ac_lo= ac_hi=
5177                          break
5178                        fi
5179                        ac_mid=`expr 2 '*' $ac_mid`
5180 fi
5181 rm -f conftest.$ac_objext conftest.$ac_ext
5182   done
5183 else
5184   echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5186
5187 ac_lo= ac_hi=
5188 fi
5189 rm -f conftest.$ac_objext conftest.$ac_ext
5190 fi
5191 rm -f conftest.$ac_objext conftest.$ac_ext
5192 # Binary search between lo and hi bounds.
5193 while test "x$ac_lo" != "x$ac_hi"; do
5194   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5195   cat >conftest.$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5197 /* confdefs.h.  */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h.  */
5202 $ac_includes_default
5203 int
5204 main ()
5205 {
5206 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5207 test_array [0] = 0
5208
5209   ;
5210   return 0;
5211 }
5212 _ACEOF
5213 rm -f conftest.$ac_objext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215   (eval $ac_compile) 2>&5
5216   ac_status=$?
5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218   (exit $ac_status); } &&
5219          { ac_try='test -s conftest.$ac_objext'
5220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221   (eval $ac_try) 2>&5
5222   ac_status=$?
5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224   (exit $ac_status); }; }; then
5225   ac_hi=$ac_mid
5226 else
5227   echo "$as_me: failed program was:" >&5
5228 sed 's/^/| /' conftest.$ac_ext >&5
5229
5230 ac_lo=`expr '(' $ac_mid ')' + 1`
5231 fi
5232 rm -f conftest.$ac_objext conftest.$ac_ext
5233 done
5234 case $ac_lo in
5235 ?*) ac_cv_sizeof_long=$ac_lo;;
5236 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5237 See \`config.log' for more details." >&5
5238 echo "$as_me: error: cannot compute sizeof (long), 77
5239 See \`config.log' for more details." >&2;}
5240    { (exit 1); exit 1; }; } ;;
5241 esac
5242 else
5243   if test "$cross_compiling" = yes; then
5244   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5245 See \`config.log' for more details." >&5
5246 echo "$as_me: error: cannot run test program while cross compiling
5247 See \`config.log' for more details." >&2;}
5248    { (exit 1); exit 1; }; }
5249 else
5250   cat >conftest.$ac_ext <<_ACEOF
5251 #line $LINENO "configure"
5252 /* confdefs.h.  */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h.  */
5257 $ac_includes_default
5258 long longval () { return (long) (sizeof (long)); }
5259 unsigned long ulongval () { return (long) (sizeof (long)); }
5260 #include <stdio.h>
5261 #include <stdlib.h>
5262 int
5263 main ()
5264 {
5265
5266   FILE *f = fopen ("conftest.val", "w");
5267   if (! f)
5268     exit (1);
5269   if (((long) (sizeof (long))) < 0)
5270     {
5271       long i = longval ();
5272       if (i != ((long) (sizeof (long))))
5273         exit (1);
5274       fprintf (f, "%ld\n", i);
5275     }
5276   else
5277     {
5278       unsigned long i = ulongval ();
5279       if (i != ((long) (sizeof (long))))
5280         exit (1);
5281       fprintf (f, "%lu\n", i);
5282     }
5283   exit (ferror (f) || fclose (f) != 0);
5284
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 rm -f conftest$ac_exeext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291   (eval $ac_link) 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296   (eval $ac_try) 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); }; }; then
5300   ac_cv_sizeof_long=`cat conftest.val`
5301 else
5302   echo "$as_me: program exited with status $ac_status" >&5
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306 ( exit $ac_status )
5307 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5308 See \`config.log' for more details." >&5
5309 echo "$as_me: error: cannot compute sizeof (long), 77
5310 See \`config.log' for more details." >&2;}
5311    { (exit 1); exit 1; }; }
5312 fi
5313 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5314 fi
5315 fi
5316 rm -f conftest.val
5317 else
5318   ac_cv_sizeof_long=0
5319 fi
5320 fi
5321 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5322 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5323 cat >>confdefs.h <<_ACEOF
5324 #define SIZEOF_LONG $ac_cv_sizeof_long
5325 _ACEOF
5326
5327
5328 echo "$as_me:$LINENO: checking for float" >&5
5329 echo $ECHO_N "checking for float... $ECHO_C" >&6
5330 if test "${ac_cv_type_float+set}" = set; then
5331   echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333   cat >conftest.$ac_ext <<_ACEOF
5334 #line $LINENO "configure"
5335 /* confdefs.h.  */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h.  */
5340 $ac_includes_default
5341 int
5342 main ()
5343 {
5344 if ((float *) 0)
5345   return 0;
5346 if (sizeof (float))
5347   return 0;
5348   ;
5349   return 0;
5350 }
5351 _ACEOF
5352 rm -f conftest.$ac_objext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5354   (eval $ac_compile) 2>&5
5355   ac_status=$?
5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); } &&
5358          { ac_try='test -s conftest.$ac_objext'
5359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360   (eval $ac_try) 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); }; }; then
5364   ac_cv_type_float=yes
5365 else
5366   echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5368
5369 ac_cv_type_float=no
5370 fi
5371 rm -f conftest.$ac_objext conftest.$ac_ext
5372 fi
5373 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5374 echo "${ECHO_T}$ac_cv_type_float" >&6
5375
5376 echo "$as_me:$LINENO: checking size of float" >&5
5377 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5378 if test "${ac_cv_sizeof_float+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   if test "$ac_cv_type_float" = yes; then
5382   # The cast to unsigned long works around a bug in the HP C Compiler
5383   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5384   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5385   # This bug is HP SR number 8606223364.
5386   if test "$cross_compiling" = yes; then
5387   # Depending upon the size, compute the lo and hi bounds.
5388 cat >conftest.$ac_ext <<_ACEOF
5389 #line $LINENO "configure"
5390 /* confdefs.h.  */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h.  */
5395 $ac_includes_default
5396 int
5397 main ()
5398 {
5399 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5400 test_array [0] = 0
5401
5402   ;
5403   return 0;
5404 }
5405 _ACEOF
5406 rm -f conftest.$ac_objext
5407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5408   (eval $ac_compile) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); } &&
5412          { ac_try='test -s conftest.$ac_objext'
5413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414   (eval $ac_try) 2>&5
5415   ac_status=$?
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); }; }; then
5418   ac_lo=0 ac_mid=0
5419   while :; do
5420     cat >conftest.$ac_ext <<_ACEOF
5421 #line $LINENO "configure"
5422 /* confdefs.h.  */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h.  */
5427 $ac_includes_default
5428 int
5429 main ()
5430 {
5431 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5432 test_array [0] = 0
5433
5434   ;
5435   return 0;
5436 }
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440   (eval $ac_compile) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); } &&
5444          { ac_try='test -s conftest.$ac_objext'
5445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446   (eval $ac_try) 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); }; }; then
5450   ac_hi=$ac_mid; break
5451 else
5452   echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455 ac_lo=`expr $ac_mid + 1`
5456                     if test $ac_lo -le $ac_mid; then
5457                       ac_lo= ac_hi=
5458                       break
5459                     fi
5460                     ac_mid=`expr 2 '*' $ac_mid + 1`
5461 fi
5462 rm -f conftest.$ac_objext conftest.$ac_ext
5463   done
5464 else
5465   echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 cat >conftest.$ac_ext <<_ACEOF
5469 #line $LINENO "configure"
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475 $ac_includes_default
5476 int
5477 main ()
5478 {
5479 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5480 test_array [0] = 0
5481
5482   ;
5483   return 0;
5484 }
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488   (eval $ac_compile) 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } &&
5492          { ac_try='test -s conftest.$ac_objext'
5493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494   (eval $ac_try) 2>&5
5495   ac_status=$?
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); }; }; then
5498   ac_hi=-1 ac_mid=-1
5499   while :; do
5500     cat >conftest.$ac_ext <<_ACEOF
5501 #line $LINENO "configure"
5502 /* confdefs.h.  */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h.  */
5507 $ac_includes_default
5508 int
5509 main ()
5510 {
5511 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5512 test_array [0] = 0
5513
5514   ;
5515   return 0;
5516 }
5517 _ACEOF
5518 rm -f conftest.$ac_objext
5519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5520   (eval $ac_compile) 2>&5
5521   ac_status=$?
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } &&
5524          { ac_try='test -s conftest.$ac_objext'
5525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526   (eval $ac_try) 2>&5
5527   ac_status=$?
5528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529   (exit $ac_status); }; }; then
5530   ac_lo=$ac_mid; break
5531 else
5532   echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535 ac_hi=`expr '(' $ac_mid ')' - 1`
5536                        if test $ac_mid -le $ac_hi; then
5537                          ac_lo= ac_hi=
5538                          break
5539                        fi
5540                        ac_mid=`expr 2 '*' $ac_mid`
5541 fi
5542 rm -f conftest.$ac_objext conftest.$ac_ext
5543   done
5544 else
5545   echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5547
5548 ac_lo= ac_hi=
5549 fi
5550 rm -f conftest.$ac_objext conftest.$ac_ext
5551 fi
5552 rm -f conftest.$ac_objext conftest.$ac_ext
5553 # Binary search between lo and hi bounds.
5554 while test "x$ac_lo" != "x$ac_hi"; do
5555   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5556   cat >conftest.$ac_ext <<_ACEOF
5557 #line $LINENO "configure"
5558 /* confdefs.h.  */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h.  */
5563 $ac_includes_default
5564 int
5565 main ()
5566 {
5567 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5568 test_array [0] = 0
5569
5570   ;
5571   return 0;
5572 }
5573 _ACEOF
5574 rm -f conftest.$ac_objext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576   (eval $ac_compile) 2>&5
5577   ac_status=$?
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); } &&
5580          { ac_try='test -s conftest.$ac_objext'
5581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582   (eval $ac_try) 2>&5
5583   ac_status=$?
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); }; }; then
5586   ac_hi=$ac_mid
5587 else
5588   echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5590
5591 ac_lo=`expr '(' $ac_mid ')' + 1`
5592 fi
5593 rm -f conftest.$ac_objext conftest.$ac_ext
5594 done
5595 case $ac_lo in
5596 ?*) ac_cv_sizeof_float=$ac_lo;;
5597 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5598 See \`config.log' for more details." >&5
5599 echo "$as_me: error: cannot compute sizeof (float), 77
5600 See \`config.log' for more details." >&2;}
5601    { (exit 1); exit 1; }; } ;;
5602 esac
5603 else
5604   if test "$cross_compiling" = yes; then
5605   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5606 See \`config.log' for more details." >&5
5607 echo "$as_me: error: cannot run test program while cross compiling
5608 See \`config.log' for more details." >&2;}
5609    { (exit 1); exit 1; }; }
5610 else
5611   cat >conftest.$ac_ext <<_ACEOF
5612 #line $LINENO "configure"
5613 /* confdefs.h.  */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h.  */
5618 $ac_includes_default
5619 long longval () { return (long) (sizeof (float)); }
5620 unsigned long ulongval () { return (long) (sizeof (float)); }
5621 #include <stdio.h>
5622 #include <stdlib.h>
5623 int
5624 main ()
5625 {
5626
5627   FILE *f = fopen ("conftest.val", "w");
5628   if (! f)
5629     exit (1);
5630   if (((long) (sizeof (float))) < 0)
5631     {
5632       long i = longval ();
5633       if (i != ((long) (sizeof (float))))
5634         exit (1);
5635       fprintf (f, "%ld\n", i);
5636     }
5637   else
5638     {
5639       unsigned long i = ulongval ();
5640       if (i != ((long) (sizeof (float))))
5641         exit (1);
5642       fprintf (f, "%lu\n", i);
5643     }
5644   exit (ferror (f) || fclose (f) != 0);
5645
5646   ;
5647   return 0;
5648 }
5649 _ACEOF
5650 rm -f conftest$ac_exeext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5652   (eval $ac_link) 2>&5
5653   ac_status=$?
5654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657   (eval $ac_try) 2>&5
5658   ac_status=$?
5659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660   (exit $ac_status); }; }; then
5661   ac_cv_sizeof_float=`cat conftest.val`
5662 else
5663   echo "$as_me: program exited with status $ac_status" >&5
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5666
5667 ( exit $ac_status )
5668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5669 See \`config.log' for more details." >&5
5670 echo "$as_me: error: cannot compute sizeof (float), 77
5671 See \`config.log' for more details." >&2;}
5672    { (exit 1); exit 1; }; }
5673 fi
5674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5675 fi
5676 fi
5677 rm -f conftest.val
5678 else
5679   ac_cv_sizeof_float=0
5680 fi
5681 fi
5682 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5683 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5684 cat >>confdefs.h <<_ACEOF
5685 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5686 _ACEOF
5687
5688
5689 echo "$as_me:$LINENO: checking for double" >&5
5690 echo $ECHO_N "checking for double... $ECHO_C" >&6
5691 if test "${ac_cv_type_double+set}" = set; then
5692   echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694   cat >conftest.$ac_ext <<_ACEOF
5695 #line $LINENO "configure"
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701 $ac_includes_default
5702 int
5703 main ()
5704 {
5705 if ((double *) 0)
5706   return 0;
5707 if (sizeof (double))
5708   return 0;
5709   ;
5710   return 0;
5711 }
5712 _ACEOF
5713 rm -f conftest.$ac_objext
5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715   (eval $ac_compile) 2>&5
5716   ac_status=$?
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); } &&
5719          { ac_try='test -s conftest.$ac_objext'
5720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721   (eval $ac_try) 2>&5
5722   ac_status=$?
5723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724   (exit $ac_status); }; }; then
5725   ac_cv_type_double=yes
5726 else
5727   echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5729
5730 ac_cv_type_double=no
5731 fi
5732 rm -f conftest.$ac_objext conftest.$ac_ext
5733 fi
5734 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5735 echo "${ECHO_T}$ac_cv_type_double" >&6
5736
5737 echo "$as_me:$LINENO: checking size of double" >&5
5738 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5739 if test "${ac_cv_sizeof_double+set}" = set; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742   if test "$ac_cv_type_double" = yes; then
5743   # The cast to unsigned long works around a bug in the HP C Compiler
5744   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5745   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5746   # This bug is HP SR number 8606223364.
5747   if test "$cross_compiling" = yes; then
5748   # Depending upon the size, compute the lo and hi bounds.
5749 cat >conftest.$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5751 /* confdefs.h.  */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h.  */
5756 $ac_includes_default
5757 int
5758 main ()
5759 {
5760 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5761 test_array [0] = 0
5762
5763   ;
5764   return 0;
5765 }
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769   (eval $ac_compile) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } &&
5773          { ac_try='test -s conftest.$ac_objext'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; }; then
5779   ac_lo=0 ac_mid=0
5780   while :; do
5781     cat >conftest.$ac_ext <<_ACEOF
5782 #line $LINENO "configure"
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788 $ac_includes_default
5789 int
5790 main ()
5791 {
5792 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5793 test_array [0] = 0
5794
5795   ;
5796   return 0;
5797 }
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801   (eval $ac_compile) 2>&5
5802   ac_status=$?
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); } &&
5805          { ac_try='test -s conftest.$ac_objext'
5806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807   (eval $ac_try) 2>&5
5808   ac_status=$?
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); }; }; then
5811   ac_hi=$ac_mid; break
5812 else
5813   echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816 ac_lo=`expr $ac_mid + 1`
5817                     if test $ac_lo -le $ac_mid; then
5818                       ac_lo= ac_hi=
5819                       break
5820                     fi
5821                     ac_mid=`expr 2 '*' $ac_mid + 1`
5822 fi
5823 rm -f conftest.$ac_objext conftest.$ac_ext
5824   done
5825 else
5826   echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 cat >conftest.$ac_ext <<_ACEOF
5830 #line $LINENO "configure"
5831 /* confdefs.h.  */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h.  */
5836 $ac_includes_default
5837 int
5838 main ()
5839 {
5840 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5841 test_array [0] = 0
5842
5843   ;
5844   return 0;
5845 }
5846 _ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5849   (eval $ac_compile) 2>&5
5850   ac_status=$?
5851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852   (exit $ac_status); } &&
5853          { ac_try='test -s conftest.$ac_objext'
5854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855   (eval $ac_try) 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); }; }; then
5859   ac_hi=-1 ac_mid=-1
5860   while :; do
5861     cat >conftest.$ac_ext <<_ACEOF
5862 #line $LINENO "configure"
5863 /* confdefs.h.  */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h.  */
5868 $ac_includes_default
5869 int
5870 main ()
5871 {
5872 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5873 test_array [0] = 0
5874
5875   ;
5876   return 0;
5877 }
5878 _ACEOF
5879 rm -f conftest.$ac_objext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881   (eval $ac_compile) 2>&5
5882   ac_status=$?
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); } &&
5885          { ac_try='test -s conftest.$ac_objext'
5886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887   (eval $ac_try) 2>&5
5888   ac_status=$?
5889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890   (exit $ac_status); }; }; then
5891   ac_lo=$ac_mid; break
5892 else
5893   echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5895
5896 ac_hi=`expr '(' $ac_mid ')' - 1`
5897                        if test $ac_mid -le $ac_hi; then
5898                          ac_lo= ac_hi=
5899                          break
5900                        fi
5901                        ac_mid=`expr 2 '*' $ac_mid`
5902 fi
5903 rm -f conftest.$ac_objext conftest.$ac_ext
5904   done
5905 else
5906   echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5908
5909 ac_lo= ac_hi=
5910 fi
5911 rm -f conftest.$ac_objext conftest.$ac_ext
5912 fi
5913 rm -f conftest.$ac_objext conftest.$ac_ext
5914 # Binary search between lo and hi bounds.
5915 while test "x$ac_lo" != "x$ac_hi"; do
5916   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5917   cat >conftest.$ac_ext <<_ACEOF
5918 #line $LINENO "configure"
5919 /* confdefs.h.  */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h.  */
5924 $ac_includes_default
5925 int
5926 main ()
5927 {
5928 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5929 test_array [0] = 0
5930
5931   ;
5932   return 0;
5933 }
5934 _ACEOF
5935 rm -f conftest.$ac_objext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937   (eval $ac_compile) 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); } &&
5941          { ac_try='test -s conftest.$ac_objext'
5942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943   (eval $ac_try) 2>&5
5944   ac_status=$?
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); }; }; then
5947   ac_hi=$ac_mid
5948 else
5949   echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5951
5952 ac_lo=`expr '(' $ac_mid ')' + 1`
5953 fi
5954 rm -f conftest.$ac_objext conftest.$ac_ext
5955 done
5956 case $ac_lo in
5957 ?*) ac_cv_sizeof_double=$ac_lo;;
5958 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5959 See \`config.log' for more details." >&5
5960 echo "$as_me: error: cannot compute sizeof (double), 77
5961 See \`config.log' for more details." >&2;}
5962    { (exit 1); exit 1; }; } ;;
5963 esac
5964 else
5965   if test "$cross_compiling" = yes; then
5966   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5967 See \`config.log' for more details." >&5
5968 echo "$as_me: error: cannot run test program while cross compiling
5969 See \`config.log' for more details." >&2;}
5970    { (exit 1); exit 1; }; }
5971 else
5972   cat >conftest.$ac_ext <<_ACEOF
5973 #line $LINENO "configure"
5974 /* confdefs.h.  */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h.  */
5979 $ac_includes_default
5980 long longval () { return (long) (sizeof (double)); }
5981 unsigned long ulongval () { return (long) (sizeof (double)); }
5982 #include <stdio.h>
5983 #include <stdlib.h>
5984 int
5985 main ()
5986 {
5987
5988   FILE *f = fopen ("conftest.val", "w");
5989   if (! f)
5990     exit (1);
5991   if (((long) (sizeof (double))) < 0)
5992     {
5993       long i = longval ();
5994       if (i != ((long) (sizeof (double))))
5995         exit (1);
5996       fprintf (f, "%ld\n", i);
5997     }
5998   else
5999     {
6000       unsigned long i = ulongval ();
6001       if (i != ((long) (sizeof (double))))
6002         exit (1);
6003       fprintf (f, "%lu\n", i);
6004     }
6005   exit (ferror (f) || fclose (f) != 0);
6006
6007   ;
6008   return 0;
6009 }
6010 _ACEOF
6011 rm -f conftest$ac_exeext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013   (eval $ac_link) 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; }; then
6022   ac_cv_sizeof_double=`cat conftest.val`
6023 else
6024   echo "$as_me: program exited with status $ac_status" >&5
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028 ( exit $ac_status )
6029 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6030 See \`config.log' for more details." >&5
6031 echo "$as_me: error: cannot compute sizeof (double), 77
6032 See \`config.log' for more details." >&2;}
6033    { (exit 1); exit 1; }; }
6034 fi
6035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6036 fi
6037 fi
6038 rm -f conftest.val
6039 else
6040   ac_cv_sizeof_double=0
6041 fi
6042 fi
6043 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6044 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6045 cat >>confdefs.h <<_ACEOF
6046 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6047 _ACEOF
6048
6049
6050
6051
6052 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
6053 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
6054 if test "${ac_cv_lib_z_deflate+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   ac_check_lib_save_LIBS=$LIBS
6058 LIBS="-lz  $LIBS"
6059 cat >conftest.$ac_ext <<_ACEOF
6060 #line $LINENO "configure"
6061 /* confdefs.h.  */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h.  */
6066
6067 /* Override any gcc2 internal prototype to avoid an error.  */
6068 #ifdef __cplusplus
6069 extern "C"
6070 #endif
6071 /* We use char because int might match the return type of a gcc2
6072    builtin and then its argument prototype would still apply.  */
6073 char deflate ();
6074 int
6075 main ()
6076 {
6077 deflate ();
6078   ;
6079   return 0;
6080 }
6081 _ACEOF
6082 rm -f conftest.$ac_objext conftest$ac_exeext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6084   (eval $ac_link) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); } &&
6088          { ac_try='test -s conftest$ac_exeext'
6089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090   (eval $ac_try) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); }; }; then
6094   ac_cv_lib_z_deflate=yes
6095 else
6096   echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6098
6099 ac_cv_lib_z_deflate=no
6100 fi
6101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6102 LIBS=$ac_check_lib_save_LIBS
6103 fi
6104 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
6105 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
6106 if test $ac_cv_lib_z_deflate = yes; then
6107    zlib="true"
6108 else
6109    zlib="false" ;  { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
6110 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
6111 fi
6112
6113
6114 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6115 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6116 if test "${ac_cv_lib_m_sin+set}" = set; then
6117   echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119   ac_check_lib_save_LIBS=$LIBS
6120 LIBS="-lm  $LIBS"
6121 cat >conftest.$ac_ext <<_ACEOF
6122 #line $LINENO "configure"
6123 /* confdefs.h.  */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h.  */
6128
6129 /* Override any gcc2 internal prototype to avoid an error.  */
6130 #ifdef __cplusplus
6131 extern "C"
6132 #endif
6133 /* We use char because int might match the return type of a gcc2
6134    builtin and then its argument prototype would still apply.  */
6135 char sin ();
6136 int
6137 main ()
6138 {
6139 sin ();
6140   ;
6141   return 0;
6142 }
6143 _ACEOF
6144 rm -f conftest.$ac_objext conftest$ac_exeext
6145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6146   (eval $ac_link) 2>&5
6147   ac_status=$?
6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149   (exit $ac_status); } &&
6150          { ac_try='test -s conftest$ac_exeext'
6151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152   (eval $ac_try) 2>&5
6153   ac_status=$?
6154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); }; }; then
6156   ac_cv_lib_m_sin=yes
6157 else
6158   echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6160
6161 ac_cv_lib_m_sin=no
6162 fi
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 LIBS=$ac_check_lib_save_LIBS
6165 fi
6166 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6167 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6168 if test $ac_cv_lib_m_sin = yes; then
6169   cat >>confdefs.h <<_ACEOF
6170 #define HAVE_LIBM 1
6171 _ACEOF
6172
6173   LIBS="-lm $LIBS"
6174
6175 fi
6176
6177 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
6178 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
6179 if test "${ac_cv_lib_curses_main+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   ac_check_lib_save_LIBS=$LIBS
6183 LIBS="-lcurses  $LIBS"
6184 cat >conftest.$ac_ext <<_ACEOF
6185 #line $LINENO "configure"
6186 /* confdefs.h.  */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h.  */
6191
6192
6193 int
6194 main ()
6195 {
6196 main ();
6197   ;
6198   return 0;
6199 }
6200 _ACEOF
6201 rm -f conftest.$ac_objext conftest$ac_exeext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6203   (eval $ac_link) 2>&5
6204   ac_status=$?
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); } &&
6207          { ac_try='test -s conftest$ac_exeext'
6208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209   (eval $ac_try) 2>&5
6210   ac_status=$?
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); }; }; then
6213   ac_cv_lib_curses_main=yes
6214 else
6215   echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6217
6218 ac_cv_lib_curses_main=no
6219 fi
6220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6221 LIBS=$ac_check_lib_save_LIBS
6222 fi
6223 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
6224 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
6225 if test $ac_cv_lib_curses_main = yes; then
6226   curses=true
6227 else
6228   curses=false
6229 fi
6230
6231 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6232 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
6233 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   ac_check_lib_save_LIBS=$LIBS
6237 LIBS="-lncurses  $LIBS"
6238 cat >conftest.$ac_ext <<_ACEOF
6239 #line $LINENO "configure"
6240 /* confdefs.h.  */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h.  */
6245
6246
6247 int
6248 main ()
6249 {
6250 main ();
6251   ;
6252   return 0;
6253 }
6254 _ACEOF
6255 rm -f conftest.$ac_objext conftest$ac_exeext
6256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6257   (eval $ac_link) 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); } &&
6261          { ac_try='test -s conftest$ac_exeext'
6262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263   (eval $ac_try) 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); }; }; then
6267   ac_cv_lib_ncurses_main=yes
6268 else
6269   echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272 ac_cv_lib_ncurses_main=no
6273 fi
6274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6275 LIBS=$ac_check_lib_save_LIBS
6276 fi
6277 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6278 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
6279 if test $ac_cv_lib_ncurses_main = yes; then
6280   ncurses=true
6281 else
6282   ncurses=false
6283 fi
6284
6285 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
6286 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
6287 if test "${ac_cv_lib_readline_main+set}" = set; then
6288   echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290   ac_check_lib_save_LIBS=$LIBS
6291 LIBS="-lreadline -lcurses $LIBS"
6292 cat >conftest.$ac_ext <<_ACEOF
6293 #line $LINENO "configure"
6294 /* confdefs.h.  */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h.  */
6299
6300
6301 int
6302 main ()
6303 {
6304 main ();
6305   ;
6306   return 0;
6307 }
6308 _ACEOF
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311   (eval $ac_link) 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); } &&
6315          { ac_try='test -s conftest$ac_exeext'
6316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317   (eval $ac_try) 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; }; then
6321   ac_cv_lib_readline_main=yes
6322 else
6323   echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326 ac_cv_lib_readline_main=no
6327 fi
6328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6329 LIBS=$ac_check_lib_save_LIBS
6330 fi
6331 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
6332 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
6333 if test $ac_cv_lib_readline_main = yes; then
6334   readline=true;
6335
6336 cat >>confdefs.h <<\_ACEOF
6337 #define HAVE_READLINE 1
6338 _ACEOF
6339
6340 else
6341   readline=false
6342 fi
6343
6344 wxwin=false
6345 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
6346 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
6347 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
6348   echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350   ac_check_lib_save_LIBS=$LIBS
6351 LIBS="-lwx_gtk-2.4  $LIBS"
6352 cat >conftest.$ac_ext <<_ACEOF
6353 #line $LINENO "configure"
6354 /* confdefs.h.  */
6355 _ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h.  */
6359
6360
6361 int
6362 main ()
6363 {
6364 main ();
6365   ;
6366   return 0;
6367 }
6368 _ACEOF
6369 rm -f conftest.$ac_objext conftest$ac_exeext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6371   (eval $ac_link) 2>&5
6372   ac_status=$?
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); } &&
6375          { ac_try='test -s conftest$ac_exeext'
6376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377   (eval $ac_try) 2>&5
6378   ac_status=$?
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); }; }; then
6381   ac_cv_lib_wx_gtk_2_4_main=yes
6382 else
6383   echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386 ac_cv_lib_wx_gtk_2_4_main=no
6387 fi
6388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6389 LIBS=$ac_check_lib_save_LIBS
6390 fi
6391 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
6392 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
6393 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
6394   wxwin=true; wx_gtk=true;
6395 cat >>confdefs.h <<\_ACEOF
6396 #define HAVE_WXWINDOWS 1
6397 _ACEOF
6398
6399 fi
6400
6401 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6402 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6403 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   ac_check_lib_save_LIBS=$LIBS
6407 LIBS="-lwx_mac-2.4  $LIBS"
6408 cat >conftest.$ac_ext <<_ACEOF
6409 #line $LINENO "configure"
6410 /* confdefs.h.  */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h.  */
6415
6416
6417 int
6418 main ()
6419 {
6420 main ();
6421   ;
6422   return 0;
6423 }
6424 _ACEOF
6425 rm -f conftest.$ac_objext conftest$ac_exeext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6427   (eval $ac_link) 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); } &&
6431          { ac_try='test -s conftest$ac_exeext'
6432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433   (eval $ac_try) 2>&5
6434   ac_status=$?
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); }; }; then
6437   ac_cv_lib_wx_mac_2_4_main=yes
6438 else
6439   echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ac_cv_lib_wx_mac_2_4_main=no
6443 fi
6444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6445 LIBS=$ac_check_lib_save_LIBS
6446 fi
6447 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6448 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6449 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6450   wxwin=true; wx_mac=true;
6451 cat >>confdefs.h <<\_ACEOF
6452 #define HAVE_WXWINDOWS 1
6453 _ACEOF
6454
6455 fi
6456
6457 echo "$as_me:$LINENO: checking for fftw_malloc in -lfftw3" >&5
6458 echo $ECHO_N "checking for fftw_malloc in -lfftw3... $ECHO_C" >&6
6459 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then
6460   echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462   ac_check_lib_save_LIBS=$LIBS
6463 LIBS="-lfftw3  $LIBS"
6464 cat >conftest.$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6466 /* confdefs.h.  */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h.  */
6471
6472 /* Override any gcc2 internal prototype to avoid an error.  */
6473 #ifdef __cplusplus
6474 extern "C"
6475 #endif
6476 /* We use char because int might match the return type of a gcc2
6477    builtin and then its argument prototype would still apply.  */
6478 char fftw_malloc ();
6479 int
6480 main ()
6481 {
6482 fftw_malloc ();
6483   ;
6484   return 0;
6485 }
6486 _ACEOF
6487 rm -f conftest.$ac_objext conftest$ac_exeext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6489   (eval $ac_link) 2>&5
6490   ac_status=$?
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); } &&
6493          { ac_try='test -s conftest$ac_exeext'
6494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495   (eval $ac_try) 2>&5
6496   ac_status=$?
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); }; }; then
6499   ac_cv_lib_fftw3_fftw_malloc=yes
6500 else
6501   echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6503
6504 ac_cv_lib_fftw3_fftw_malloc=no
6505 fi
6506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6507 LIBS=$ac_check_lib_save_LIBS
6508 fi
6509 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
6510 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_malloc" >&6
6511 if test $ac_cv_lib_fftw3_fftw_malloc = yes; then
6512   fftw=true;
6513 cat >>confdefs.h <<\_ACEOF
6514 #define HAVE_FFTW 1
6515 _ACEOF
6516
6517 else
6518   fftw=false
6519 fi
6520
6521 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6522 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6523 if test "${ac_cv_lib_GL_main+set}" = set; then
6524   echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526   ac_check_lib_save_LIBS=$LIBS
6527 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 -lXt -lXext $LIBS"
6528 cat >conftest.$ac_ext <<_ACEOF
6529 #line $LINENO "configure"
6530 /* confdefs.h.  */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h.  */
6535
6536
6537 int
6538 main ()
6539 {
6540 main ();
6541   ;
6542   return 0;
6543 }
6544 _ACEOF
6545 rm -f conftest.$ac_objext conftest$ac_exeext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547   (eval $ac_link) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); } &&
6551          { ac_try='test -s conftest$ac_exeext'
6552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553   (eval $ac_try) 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); }; }; then
6557   ac_cv_lib_GL_main=yes
6558 else
6559   echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6561
6562 ac_cv_lib_GL_main=no
6563 fi
6564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6565 LIBS=$ac_check_lib_save_LIBS
6566 fi
6567 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6568 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6569 if test $ac_cv_lib_GL_main = yes; then
6570   libgl=true
6571 else
6572   libgl=false
6573 fi
6574
6575 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6576 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6577 if test "${ac_cv_lib_pthread_main+set}" = set; then
6578   echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580   ac_check_lib_save_LIBS=$LIBS
6581 LIBS="-lpthread  $LIBS"
6582 cat >conftest.$ac_ext <<_ACEOF
6583 #line $LINENO "configure"
6584 /* confdefs.h.  */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h.  */
6589
6590
6591 int
6592 main ()
6593 {
6594 main ();
6595   ;
6596   return 0;
6597 }
6598 _ACEOF
6599 rm -f conftest.$ac_objext conftest$ac_exeext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6601   (eval $ac_link) 2>&5
6602   ac_status=$?
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); } &&
6605          { ac_try='test -s conftest$ac_exeext'
6606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607   (eval $ac_try) 2>&5
6608   ac_status=$?
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); }; }; then
6611   ac_cv_lib_pthread_main=yes
6612 else
6613   echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6615
6616 ac_cv_lib_pthread_main=no
6617 fi
6618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6619 LIBS=$ac_check_lib_save_LIBS
6620 fi
6621 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6622 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6623 if test $ac_cv_lib_pthread_main = yes; then
6624   pthread=true
6625 else
6626   pthread=false
6627 fi
6628
6629
6630 if test "$zlib" = "true" ; then
6631   echo "$as_me:$LINENO: checking for main in -lpng" >&5
6632 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6633 if test "${ac_cv_lib_png_main+set}" = set; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   ac_check_lib_save_LIBS=$LIBS
6637 LIBS="-lpng -lz -lm $LIBS"
6638 cat >conftest.$ac_ext <<_ACEOF
6639 #line $LINENO "configure"
6640 /* confdefs.h.  */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h.  */
6645
6646
6647 int
6648 main ()
6649 {
6650 main ();
6651   ;
6652   return 0;
6653 }
6654 _ACEOF
6655 rm -f conftest.$ac_objext conftest$ac_exeext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6657   (eval $ac_link) 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); } &&
6661          { ac_try='test -s conftest$ac_exeext'
6662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663   (eval $ac_try) 2>&5
6664   ac_status=$?
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); }; }; then
6667   ac_cv_lib_png_main=yes
6668 else
6669   echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6671
6672 ac_cv_lib_png_main=no
6673 fi
6674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6675 LIBS=$ac_check_lib_save_LIBS
6676 fi
6677 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6678 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6679 if test $ac_cv_lib_png_main = yes; then
6680   png=true ;
6681 cat >>confdefs.h <<\_ACEOF
6682 #define HAVE_PNG 1
6683 _ACEOF
6684
6685 else
6686   png=false
6687 fi
6688
6689 fi
6690
6691 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6692 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6693 if test "${ac_cv_header_stdc+set}" = set; then
6694   echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696   cat >conftest.$ac_ext <<_ACEOF
6697 #line $LINENO "configure"
6698 /* confdefs.h.  */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h.  */
6703 #include <stdlib.h>
6704 #include <stdarg.h>
6705 #include <string.h>
6706 #include <float.h>
6707
6708 int
6709 main ()
6710 {
6711
6712   ;
6713   return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718   (eval $ac_compile) 2>&5
6719   ac_status=$?
6720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721   (exit $ac_status); } &&
6722          { ac_try='test -s conftest.$ac_objext'
6723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724   (eval $ac_try) 2>&5
6725   ac_status=$?
6726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727   (exit $ac_status); }; }; then
6728   ac_cv_header_stdc=yes
6729 else
6730   echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6732
6733 ac_cv_header_stdc=no
6734 fi
6735 rm -f conftest.$ac_objext conftest.$ac_ext
6736
6737 if test $ac_cv_header_stdc = yes; then
6738   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6739   cat >conftest.$ac_ext <<_ACEOF
6740 #line $LINENO "configure"
6741 /* confdefs.h.  */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h.  */
6746 #include <string.h>
6747
6748 _ACEOF
6749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6750   $EGREP "memchr" >/dev/null 2>&1; then
6751   :
6752 else
6753   ac_cv_header_stdc=no
6754 fi
6755 rm -f conftest*
6756
6757 fi
6758
6759 if test $ac_cv_header_stdc = yes; then
6760   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6761   cat >conftest.$ac_ext <<_ACEOF
6762 #line $LINENO "configure"
6763 /* confdefs.h.  */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h.  */
6768 #include <stdlib.h>
6769
6770 _ACEOF
6771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6772   $EGREP "free" >/dev/null 2>&1; then
6773   :
6774 else
6775   ac_cv_header_stdc=no
6776 fi
6777 rm -f conftest*
6778
6779 fi
6780
6781 if test $ac_cv_header_stdc = yes; then
6782   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6783   if test "$cross_compiling" = yes; then
6784   :
6785 else
6786   cat >conftest.$ac_ext <<_ACEOF
6787 #line $LINENO "configure"
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793 #include <ctype.h>
6794 #if ((' ' & 0x0FF) == 0x020)
6795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6797 #else
6798 # define ISLOWER(c) \
6799                    (('a' <= (c) && (c) <= 'i') \
6800                      || ('j' <= (c) && (c) <= 'r') \
6801                      || ('s' <= (c) && (c) <= 'z'))
6802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6803 #endif
6804
6805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6806 int
6807 main ()
6808 {
6809   int i;
6810   for (i = 0; i < 256; i++)
6811     if (XOR (islower (i), ISLOWER (i))
6812         || toupper (i) != TOUPPER (i))
6813       exit(2);
6814   exit (0);
6815 }
6816 _ACEOF
6817 rm -f conftest$ac_exeext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6819   (eval $ac_link) 2>&5
6820   ac_status=$?
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824   (eval $ac_try) 2>&5
6825   ac_status=$?
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); }; }; then
6828   :
6829 else
6830   echo "$as_me: program exited with status $ac_status" >&5
6831 echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6833
6834 ( exit $ac_status )
6835 ac_cv_header_stdc=no
6836 fi
6837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6838 fi
6839 fi
6840 fi
6841 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6842 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6843 if test $ac_cv_header_stdc = yes; then
6844
6845 cat >>confdefs.h <<\_ACEOF
6846 #define STDC_HEADERS 1
6847 _ACEOF
6848
6849 fi
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875 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
6876 do
6877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6879   echo "$as_me:$LINENO: checking for $ac_header" >&5
6880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6882   echo $ECHO_N "(cached) $ECHO_C" >&6
6883 fi
6884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6886 else
6887   # Is the header compilable?
6888 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6890 cat >conftest.$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897 $ac_includes_default
6898 #include <$ac_header>
6899 _ACEOF
6900 rm -f conftest.$ac_objext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902   (eval $ac_compile) 2>&5
6903   ac_status=$?
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); } &&
6906          { ac_try='test -s conftest.$ac_objext'
6907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908   (eval $ac_try) 2>&5
6909   ac_status=$?
6910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911   (exit $ac_status); }; }; then
6912   ac_header_compiler=yes
6913 else
6914   echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917 ac_header_compiler=no
6918 fi
6919 rm -f conftest.$ac_objext conftest.$ac_ext
6920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6921 echo "${ECHO_T}$ac_header_compiler" >&6
6922
6923 # Is the header present?
6924 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6926 cat >conftest.$ac_ext <<_ACEOF
6927 #line $LINENO "configure"
6928 /* confdefs.h.  */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h.  */
6933 #include <$ac_header>
6934 _ACEOF
6935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6937   ac_status=$?
6938   grep -v '^ *+' conftest.er1 >conftest.err
6939   rm -f conftest.er1
6940   cat conftest.err >&5
6941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942   (exit $ac_status); } >/dev/null; then
6943   if test -s conftest.err; then
6944     ac_cpp_err=$ac_c_preproc_warn_flag
6945   else
6946     ac_cpp_err=
6947   fi
6948 else
6949   ac_cpp_err=yes
6950 fi
6951 if test -z "$ac_cpp_err"; then
6952   ac_header_preproc=yes
6953 else
6954   echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6956
6957   ac_header_preproc=no
6958 fi
6959 rm -f conftest.err conftest.$ac_ext
6960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6961 echo "${ECHO_T}$ac_header_preproc" >&6
6962
6963 # So?  What about this header?
6964 case $ac_header_compiler:$ac_header_preproc in
6965   yes:no )
6966     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6970     (
6971       cat <<\_ASBOX
6972 ## ------------------------------------ ##
6973 ## Report this to bug-autoconf@gnu.org. ##
6974 ## ------------------------------------ ##
6975 _ASBOX
6976     ) |
6977       sed "s/^/$as_me: WARNING:     /" >&2
6978     ;;
6979   no:yes )
6980     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6982     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6986     (
6987       cat <<\_ASBOX
6988 ## ------------------------------------ ##
6989 ## Report this to bug-autoconf@gnu.org. ##
6990 ## ------------------------------------ ##
6991 _ASBOX
6992     ) |
6993       sed "s/^/$as_me: WARNING:     /" >&2
6994     ;;
6995 esac
6996 echo "$as_me:$LINENO: checking for $ac_header" >&5
6997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6999   echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001   eval "$as_ac_Header=$ac_header_preproc"
7002 fi
7003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7005
7006 fi
7007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7008   cat >>confdefs.h <<_ACEOF
7009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7010 _ACEOF
7011
7012 fi
7013
7014 done
7015
7016
7017 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7018 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7019 if test "${ac_cv_c_const+set}" = set; then
7020   echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022   cat >conftest.$ac_ext <<_ACEOF
7023 #line $LINENO "configure"
7024 /* confdefs.h.  */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h.  */
7029
7030 int
7031 main ()
7032 {
7033 /* FIXME: Include the comments suggested by Paul. */
7034 #ifndef __cplusplus
7035   /* Ultrix mips cc rejects this.  */
7036   typedef int charset[2];
7037   const charset x;
7038   /* SunOS 4.1.1 cc rejects this.  */
7039   char const *const *ccp;
7040   char **p;
7041   /* NEC SVR4.0.2 mips cc rejects this.  */
7042   struct point {int x, y;};
7043   static struct point const zero = {0,0};
7044   /* AIX XL C 1.02.0.0 rejects this.
7045      It does not let you subtract one const X* pointer from another in
7046      an arm of an if-expression whose if-part is not a constant
7047      expression */
7048   const char *g = "string";
7049   ccp = &g + (g ? g-g : 0);
7050   /* HPUX 7.0 cc rejects these. */
7051   ++ccp;
7052   p = (char**) ccp;
7053   ccp = (char const *const *) p;
7054   { /* SCO 3.2v4 cc rejects this.  */
7055     char *t;
7056     char const *s = 0 ? (char *) 0 : (char const *) 0;
7057
7058     *t++ = 0;
7059   }
7060   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7061     int x[] = {25, 17};
7062     const int *foo = &x[0];
7063     ++foo;
7064   }
7065   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7066     typedef const int *iptr;
7067     iptr p = 0;
7068     ++p;
7069   }
7070   { /* AIX XL C 1.02.0.0 rejects this saying
7071        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7072     struct s { int j; const int *ap[3]; };
7073     struct s *b; b->j = 5;
7074   }
7075   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7076     const int foo = 10;
7077   }
7078 #endif
7079
7080   ;
7081   return 0;
7082 }
7083 _ACEOF
7084 rm -f conftest.$ac_objext
7085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7086   (eval $ac_compile) 2>&5
7087   ac_status=$?
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); } &&
7090          { ac_try='test -s conftest.$ac_objext'
7091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092   (eval $ac_try) 2>&5
7093   ac_status=$?
7094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095   (exit $ac_status); }; }; then
7096   ac_cv_c_const=yes
7097 else
7098   echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7100
7101 ac_cv_c_const=no
7102 fi
7103 rm -f conftest.$ac_objext conftest.$ac_ext
7104 fi
7105 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7106 echo "${ECHO_T}$ac_cv_c_const" >&6
7107 if test $ac_cv_c_const = no; then
7108
7109 cat >>confdefs.h <<\_ACEOF
7110 #define const
7111 _ACEOF
7112
7113 fi
7114
7115 echo "$as_me:$LINENO: checking for off_t" >&5
7116 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7117 if test "${ac_cv_type_off_t+set}" = set; then
7118   echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120   cat >conftest.$ac_ext <<_ACEOF
7121 #line $LINENO "configure"
7122 /* confdefs.h.  */
7123 _ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h.  */
7127 $ac_includes_default
7128 int
7129 main ()
7130 {
7131 if ((off_t *) 0)
7132   return 0;
7133 if (sizeof (off_t))
7134   return 0;
7135   ;
7136   return 0;
7137 }
7138 _ACEOF
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141   (eval $ac_compile) 2>&5
7142   ac_status=$?
7143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); } &&
7145          { ac_try='test -s conftest.$ac_objext'
7146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147   (eval $ac_try) 2>&5
7148   ac_status=$?
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); }; }; then
7151   ac_cv_type_off_t=yes
7152 else
7153   echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7155
7156 ac_cv_type_off_t=no
7157 fi
7158 rm -f conftest.$ac_objext conftest.$ac_ext
7159 fi
7160 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7161 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7162 if test $ac_cv_type_off_t = yes; then
7163   :
7164 else
7165
7166 cat >>confdefs.h <<_ACEOF
7167 #define off_t long
7168 _ACEOF
7169
7170 fi
7171
7172 echo "$as_me:$LINENO: checking for size_t" >&5
7173 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7174 if test "${ac_cv_type_size_t+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   cat >conftest.$ac_ext <<_ACEOF
7178 #line $LINENO "configure"
7179 /* confdefs.h.  */
7180 _ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h.  */
7184 $ac_includes_default
7185 int
7186 main ()
7187 {
7188 if ((size_t *) 0)
7189   return 0;
7190 if (sizeof (size_t))
7191   return 0;
7192   ;
7193   return 0;
7194 }
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198   (eval $ac_compile) 2>&5
7199   ac_status=$?
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); } &&
7202          { ac_try='test -s conftest.$ac_objext'
7203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204   (eval $ac_try) 2>&5
7205   ac_status=$?
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; }; then
7208   ac_cv_type_size_t=yes
7209 else
7210   echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7212
7213 ac_cv_type_size_t=no
7214 fi
7215 rm -f conftest.$ac_objext conftest.$ac_ext
7216 fi
7217 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7218 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7219 if test $ac_cv_type_size_t = yes; then
7220   :
7221 else
7222
7223 cat >>confdefs.h <<_ACEOF
7224 #define size_t unsigned
7225 _ACEOF
7226
7227 fi
7228
7229 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7230 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7231 if test "${ac_cv_struct_tm+set}" = set; then
7232   echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234   cat >conftest.$ac_ext <<_ACEOF
7235 #line $LINENO "configure"
7236 /* confdefs.h.  */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h.  */
7241 #include <sys/types.h>
7242 #include <time.h>
7243
7244 int
7245 main ()
7246 {
7247 struct tm *tp; tp->tm_sec;
7248   ;
7249   return 0;
7250 }
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254   (eval $ac_compile) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); } &&
7258          { ac_try='test -s conftest.$ac_objext'
7259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260   (eval $ac_try) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); }; }; then
7264   ac_cv_struct_tm=time.h
7265 else
7266   echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 ac_cv_struct_tm=sys/time.h
7270 fi
7271 rm -f conftest.$ac_objext conftest.$ac_ext
7272 fi
7273 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7274 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7275 if test $ac_cv_struct_tm = sys/time.h; then
7276
7277 cat >>confdefs.h <<\_ACEOF
7278 #define TM_IN_SYS_TIME 1
7279 _ACEOF
7280
7281 fi
7282
7283
7284
7285 for ac_func in vprintf
7286 do
7287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7288 echo "$as_me:$LINENO: checking for $ac_func" >&5
7289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7290 if eval "test \"\${$as_ac_var+set}\" = set"; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293   cat >conftest.$ac_ext <<_ACEOF
7294 #line $LINENO "configure"
7295 /* confdefs.h.  */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h.  */
7300 /* System header to define __stub macros and hopefully few prototypes,
7301     which can conflict with char $ac_func (); below.
7302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7303     <limits.h> exists even on freestanding compilers.  */
7304 #ifdef __STDC__
7305 # include <limits.h>
7306 #else
7307 # include <assert.h>
7308 #endif
7309 /* Override any gcc2 internal prototype to avoid an error.  */
7310 #ifdef __cplusplus
7311 extern "C"
7312 {
7313 #endif
7314 /* We use char because int might match the return type of a gcc2
7315    builtin and then its argument prototype would still apply.  */
7316 char $ac_func ();
7317 /* The GNU C library defines this for functions which it implements
7318     to always fail with ENOSYS.  Some functions are actually named
7319     something starting with __ and the normal name is an alias.  */
7320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7321 choke me
7322 #else
7323 char (*f) () = $ac_func;
7324 #endif
7325 #ifdef __cplusplus
7326 }
7327 #endif
7328
7329 int
7330 main ()
7331 {
7332 return f != $ac_func;
7333   ;
7334   return 0;
7335 }
7336 _ACEOF
7337 rm -f conftest.$ac_objext conftest$ac_exeext
7338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7339   (eval $ac_link) 2>&5
7340   ac_status=$?
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); } &&
7343          { ac_try='test -s conftest$ac_exeext'
7344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345   (eval $ac_try) 2>&5
7346   ac_status=$?
7347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); }; }; then
7349   eval "$as_ac_var=yes"
7350 else
7351   echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7353
7354 eval "$as_ac_var=no"
7355 fi
7356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7357 fi
7358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7360 if test `eval echo '${'$as_ac_var'}'` = yes; then
7361   cat >>confdefs.h <<_ACEOF
7362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7363 _ACEOF
7364
7365 echo "$as_me:$LINENO: checking for _doprnt" >&5
7366 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7367 if test "${ac_cv_func__doprnt+set}" = set; then
7368   echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370   cat >conftest.$ac_ext <<_ACEOF
7371 #line $LINENO "configure"
7372 /* confdefs.h.  */
7373 _ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h.  */
7377 /* System header to define __stub macros and hopefully few prototypes,
7378     which can conflict with char _doprnt (); below.
7379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7380     <limits.h> exists even on freestanding compilers.  */
7381 #ifdef __STDC__
7382 # include <limits.h>
7383 #else
7384 # include <assert.h>
7385 #endif
7386 /* Override any gcc2 internal prototype to avoid an error.  */
7387 #ifdef __cplusplus
7388 extern "C"
7389 {
7390 #endif
7391 /* We use char because int might match the return type of a gcc2
7392    builtin and then its argument prototype would still apply.  */
7393 char _doprnt ();
7394 /* The GNU C library defines this for functions which it implements
7395     to always fail with ENOSYS.  Some functions are actually named
7396     something starting with __ and the normal name is an alias.  */
7397 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7398 choke me
7399 #else
7400 char (*f) () = _doprnt;
7401 #endif
7402 #ifdef __cplusplus
7403 }
7404 #endif
7405
7406 int
7407 main ()
7408 {
7409 return f != _doprnt;
7410   ;
7411   return 0;
7412 }
7413 _ACEOF
7414 rm -f conftest.$ac_objext conftest$ac_exeext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7416   (eval $ac_link) 2>&5
7417   ac_status=$?
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); } &&
7420          { ac_try='test -s conftest$ac_exeext'
7421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422   (eval $ac_try) 2>&5
7423   ac_status=$?
7424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425   (exit $ac_status); }; }; then
7426   ac_cv_func__doprnt=yes
7427 else
7428   echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7430
7431 ac_cv_func__doprnt=no
7432 fi
7433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7434 fi
7435 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7436 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7437 if test $ac_cv_func__doprnt = yes; then
7438
7439 cat >>confdefs.h <<\_ACEOF
7440 #define HAVE_DOPRNT 1
7441 _ACEOF
7442
7443 fi
7444
7445 fi
7446 done
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
7463 do
7464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7465 echo "$as_me:$LINENO: checking for $ac_func" >&5
7466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7467 if eval "test \"\${$as_ac_var+set}\" = set"; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470   cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7472 /* confdefs.h.  */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h.  */
7477 /* System header to define __stub macros and hopefully few prototypes,
7478     which can conflict with char $ac_func (); below.
7479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7480     <limits.h> exists even on freestanding compilers.  */
7481 #ifdef __STDC__
7482 # include <limits.h>
7483 #else
7484 # include <assert.h>
7485 #endif
7486 /* Override any gcc2 internal prototype to avoid an error.  */
7487 #ifdef __cplusplus
7488 extern "C"
7489 {
7490 #endif
7491 /* We use char because int might match the return type of a gcc2
7492    builtin and then its argument prototype would still apply.  */
7493 char $ac_func ();
7494 /* The GNU C library defines this for functions which it implements
7495     to always fail with ENOSYS.  Some functions are actually named
7496     something starting with __ and the normal name is an alias.  */
7497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7498 choke me
7499 #else
7500 char (*f) () = $ac_func;
7501 #endif
7502 #ifdef __cplusplus
7503 }
7504 #endif
7505
7506 int
7507 main ()
7508 {
7509 return f != $ac_func;
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516   (eval $ac_link) 2>&5
7517   ac_status=$?
7518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519   (exit $ac_status); } &&
7520          { ac_try='test -s conftest$ac_exeext'
7521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522   (eval $ac_try) 2>&5
7523   ac_status=$?
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); }; }; then
7526   eval "$as_ac_var=yes"
7527 else
7528   echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7530
7531 eval "$as_ac_var=no"
7532 fi
7533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7534 fi
7535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7537 if test `eval echo '${'$as_ac_var'}'` = yes; then
7538   cat >>confdefs.h <<_ACEOF
7539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7540 _ACEOF
7541
7542 fi
7543 done
7544
7545 echo "$as_me:$LINENO: checking for basename" >&5
7546 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7547 if test "${ac_cv_func_basename+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   cat >conftest.$ac_ext <<_ACEOF
7551 #line $LINENO "configure"
7552 /* confdefs.h.  */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h.  */
7557 /* System header to define __stub macros and hopefully few prototypes,
7558     which can conflict with char basename (); below.
7559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7560     <limits.h> exists even on freestanding compilers.  */
7561 #ifdef __STDC__
7562 # include <limits.h>
7563 #else
7564 # include <assert.h>
7565 #endif
7566 /* Override any gcc2 internal prototype to avoid an error.  */
7567 #ifdef __cplusplus
7568 extern "C"
7569 {
7570 #endif
7571 /* We use char because int might match the return type of a gcc2
7572    builtin and then its argument prototype would still apply.  */
7573 char basename ();
7574 /* The GNU C library defines this for functions which it implements
7575     to always fail with ENOSYS.  Some functions are actually named
7576     something starting with __ and the normal name is an alias.  */
7577 #if defined (__stub_basename) || defined (__stub___basename)
7578 choke me
7579 #else
7580 char (*f) () = basename;
7581 #endif
7582 #ifdef __cplusplus
7583 }
7584 #endif
7585
7586 int
7587 main ()
7588 {
7589 return f != basename;
7590   ;
7591   return 0;
7592 }
7593 _ACEOF
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7596   (eval $ac_link) 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); } &&
7600          { ac_try='test -s conftest$ac_exeext'
7601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602   (eval $ac_try) 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }; }; then
7606   ac_cv_func_basename=yes
7607 else
7608   echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7610
7611 ac_cv_func_basename=no
7612 fi
7613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7614 fi
7615 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7616 echo "${ECHO_T}$ac_cv_func_basename" >&6
7617
7618 echo "$as_me:$LINENO: checking for setjmp" >&5
7619 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7620 if test "${ac_cv_func_setjmp+set}" = set; then
7621   echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623   cat >conftest.$ac_ext <<_ACEOF
7624 #line $LINENO "configure"
7625 /* confdefs.h.  */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h.  */
7630 /* System header to define __stub macros and hopefully few prototypes,
7631     which can conflict with char setjmp (); below.
7632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7633     <limits.h> exists even on freestanding compilers.  */
7634 #ifdef __STDC__
7635 # include <limits.h>
7636 #else
7637 # include <assert.h>
7638 #endif
7639 /* Override any gcc2 internal prototype to avoid an error.  */
7640 #ifdef __cplusplus
7641 extern "C"
7642 {
7643 #endif
7644 /* We use char because int might match the return type of a gcc2
7645    builtin and then its argument prototype would still apply.  */
7646 char setjmp ();
7647 /* The GNU C library defines this for functions which it implements
7648     to always fail with ENOSYS.  Some functions are actually named
7649     something starting with __ and the normal name is an alias.  */
7650 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7651 choke me
7652 #else
7653 char (*f) () = setjmp;
7654 #endif
7655 #ifdef __cplusplus
7656 }
7657 #endif
7658
7659 int
7660 main ()
7661 {
7662 return f != setjmp;
7663   ;
7664   return 0;
7665 }
7666 _ACEOF
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7669   (eval $ac_link) 2>&5
7670   ac_status=$?
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); } &&
7673          { ac_try='test -s conftest$ac_exeext'
7674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675   (eval $ac_try) 2>&5
7676   ac_status=$?
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); }; }; then
7679   ac_cv_func_setjmp=yes
7680 else
7681   echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7683
7684 ac_cv_func_setjmp=no
7685 fi
7686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7687 fi
7688 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7689 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7690
7691 echo "$as_me:$LINENO: checking for setpriority" >&5
7692 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7693 if test "${ac_cv_func_setpriority+set}" = set; then
7694   echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696   cat >conftest.$ac_ext <<_ACEOF
7697 #line $LINENO "configure"
7698 /* confdefs.h.  */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h.  */
7703 /* System header to define __stub macros and hopefully few prototypes,
7704     which can conflict with char setpriority (); below.
7705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7706     <limits.h> exists even on freestanding compilers.  */
7707 #ifdef __STDC__
7708 # include <limits.h>
7709 #else
7710 # include <assert.h>
7711 #endif
7712 /* Override any gcc2 internal prototype to avoid an error.  */
7713 #ifdef __cplusplus
7714 extern "C"
7715 {
7716 #endif
7717 /* We use char because int might match the return type of a gcc2
7718    builtin and then its argument prototype would still apply.  */
7719 char setpriority ();
7720 /* The GNU C library defines this for functions which it implements
7721     to always fail with ENOSYS.  Some functions are actually named
7722     something starting with __ and the normal name is an alias.  */
7723 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7724 choke me
7725 #else
7726 char (*f) () = setpriority;
7727 #endif
7728 #ifdef __cplusplus
7729 }
7730 #endif
7731
7732 int
7733 main ()
7734 {
7735 return f != setpriority;
7736   ;
7737   return 0;
7738 }
7739 _ACEOF
7740 rm -f conftest.$ac_objext conftest$ac_exeext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7742   (eval $ac_link) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); } &&
7746          { ac_try='test -s conftest$ac_exeext'
7747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748   (eval $ac_try) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); }; }; then
7752   ac_cv_func_setpriority=yes
7753 else
7754   echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7756
7757 ac_cv_func_setpriority=no
7758 fi
7759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7760 fi
7761 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7762 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7763
7764 echo "$as_me:$LINENO: checking for time" >&5
7765 echo $ECHO_N "checking for time... $ECHO_C" >&6
7766 if test "${ac_cv_func_time+set}" = set; then
7767   echo $ECHO_N "(cached) $ECHO_C" >&6
7768 else
7769   cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7771 /* confdefs.h.  */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h.  */
7776 /* System header to define __stub macros and hopefully few prototypes,
7777     which can conflict with char time (); below.
7778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7779     <limits.h> exists even on freestanding compilers.  */
7780 #ifdef __STDC__
7781 # include <limits.h>
7782 #else
7783 # include <assert.h>
7784 #endif
7785 /* Override any gcc2 internal prototype to avoid an error.  */
7786 #ifdef __cplusplus
7787 extern "C"
7788 {
7789 #endif
7790 /* We use char because int might match the return type of a gcc2
7791    builtin and then its argument prototype would still apply.  */
7792 char time ();
7793 /* The GNU C library defines this for functions which it implements
7794     to always fail with ENOSYS.  Some functions are actually named
7795     something starting with __ and the normal name is an alias.  */
7796 #if defined (__stub_time) || defined (__stub___time)
7797 choke me
7798 #else
7799 char (*f) () = time;
7800 #endif
7801 #ifdef __cplusplus
7802 }
7803 #endif
7804
7805 int
7806 main ()
7807 {
7808 return f != time;
7809   ;
7810   return 0;
7811 }
7812 _ACEOF
7813 rm -f conftest.$ac_objext conftest$ac_exeext
7814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7815   (eval $ac_link) 2>&5
7816   ac_status=$?
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); } &&
7819          { ac_try='test -s conftest$ac_exeext'
7820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821   (eval $ac_try) 2>&5
7822   ac_status=$?
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); }; }; then
7825   ac_cv_func_time=yes
7826 else
7827   echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7829
7830 ac_cv_func_time=no
7831 fi
7832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7833 fi
7834 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7835 echo "${ECHO_T}$ac_cv_func_time" >&6
7836
7837 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7838 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7839 if test "${ac_cv_func_gettimeofday+set}" = set; then
7840   echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842   cat >conftest.$ac_ext <<_ACEOF
7843 #line $LINENO "configure"
7844 /* confdefs.h.  */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h.  */
7849 /* System header to define __stub macros and hopefully few prototypes,
7850     which can conflict with char gettimeofday (); below.
7851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7852     <limits.h> exists even on freestanding compilers.  */
7853 #ifdef __STDC__
7854 # include <limits.h>
7855 #else
7856 # include <assert.h>
7857 #endif
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 gettimeofday ();
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_gettimeofday) || defined (__stub___gettimeofday)
7870 choke me
7871 #else
7872 char (*f) () = gettimeofday;
7873 #endif
7874 #ifdef __cplusplus
7875 }
7876 #endif
7877
7878 int
7879 main ()
7880 {
7881 return f != gettimeofday;
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>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); } &&
7892          { ac_try='test -s conftest$ac_exeext'
7893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894   (eval $ac_try) 2>&5
7895   ac_status=$?
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); }; }; then
7898   ac_cv_func_gettimeofday=yes
7899 else
7900   echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7902
7903 ac_cv_func_gettimeofday=no
7904 fi
7905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7906 fi
7907 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7908 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7909
7910 echo "$as_me:$LINENO: checking for getopt" >&5
7911 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
7912 if test "${ac_cv_func_getopt+set}" = set; then
7913   echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915   cat >conftest.$ac_ext <<_ACEOF
7916 #line $LINENO "configure"
7917 /* confdefs.h.  */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h.  */
7922 /* System header to define __stub macros and hopefully few prototypes,
7923     which can conflict with char getopt (); below.
7924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7925     <limits.h> exists even on freestanding compilers.  */
7926 #ifdef __STDC__
7927 # include <limits.h>
7928 #else
7929 # include <assert.h>
7930 #endif
7931 /* Override any gcc2 internal prototype to avoid an error.  */
7932 #ifdef __cplusplus
7933 extern "C"
7934 {
7935 #endif
7936 /* We use char because int might match the return type of a gcc2
7937    builtin and then its argument prototype would still apply.  */
7938 char getopt ();
7939 /* The GNU C library defines this for functions which it implements
7940     to always fail with ENOSYS.  Some functions are actually named
7941     something starting with __ and the normal name is an alias.  */
7942 #if defined (__stub_getopt) || defined (__stub___getopt)
7943 choke me
7944 #else
7945 char (*f) () = getopt;
7946 #endif
7947 #ifdef __cplusplus
7948 }
7949 #endif
7950
7951 int
7952 main ()
7953 {
7954 return f != getopt;
7955   ;
7956   return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest.$ac_objext conftest$ac_exeext
7960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7961   (eval $ac_link) 2>&5
7962   ac_status=$?
7963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964   (exit $ac_status); } &&
7965          { ac_try='test -s conftest$ac_exeext'
7966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967   (eval $ac_try) 2>&5
7968   ac_status=$?
7969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); }; }; then
7971   ac_cv_func_getopt=yes
7972 else
7973   echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.$ac_ext >&5
7975
7976 ac_cv_func_getopt=no
7977 fi
7978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7979 fi
7980 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
7981 echo "${ECHO_T}$ac_cv_func_getopt" >&6
7982 if test $ac_cv_func_getopt = yes; then
7983    getopt=true
7984 else
7985    getopt=false
7986 fi
7987
7988
7989 if test "${OSTYPE}" = "cygwin" ; then
7990   getopt_long=false
7991 else
7992   echo "$as_me:$LINENO: checking for getopt_long" >&5
7993 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7994 if test "${ac_cv_func_getopt_long+set}" = set; then
7995   echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997   cat >conftest.$ac_ext <<_ACEOF
7998 #line $LINENO "configure"
7999 /* confdefs.h.  */
8000 _ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h.  */
8004 /* System header to define __stub macros and hopefully few prototypes,
8005     which can conflict with char getopt_long (); below.
8006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8007     <limits.h> exists even on freestanding compilers.  */
8008 #ifdef __STDC__
8009 # include <limits.h>
8010 #else
8011 # include <assert.h>
8012 #endif
8013 /* Override any gcc2 internal prototype to avoid an error.  */
8014 #ifdef __cplusplus
8015 extern "C"
8016 {
8017 #endif
8018 /* We use char because int might match the return type of a gcc2
8019    builtin and then its argument prototype would still apply.  */
8020 char getopt_long ();
8021 /* The GNU C library defines this for functions which it implements
8022     to always fail with ENOSYS.  Some functions are actually named
8023     something starting with __ and the normal name is an alias.  */
8024 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
8025 choke me
8026 #else
8027 char (*f) () = getopt_long;
8028 #endif
8029 #ifdef __cplusplus
8030 }
8031 #endif
8032
8033 int
8034 main ()
8035 {
8036 return f != getopt_long;
8037   ;
8038   return 0;
8039 }
8040 _ACEOF
8041 rm -f conftest.$ac_objext conftest$ac_exeext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8043   (eval $ac_link) 2>&5
8044   ac_status=$?
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); } &&
8047          { ac_try='test -s conftest$ac_exeext'
8048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049   (eval $ac_try) 2>&5
8050   ac_status=$?
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); }; }; then
8053   ac_cv_func_getopt_long=yes
8054 else
8055   echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8057
8058 ac_cv_func_getopt_long=no
8059 fi
8060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8061 fi
8062 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
8063 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
8064 if test $ac_cv_func_getopt_long = yes; then
8065    getopt_long=true
8066 else
8067    getopt_long=false
8068 fi
8069
8070 fi
8071
8072 if test "${getopt_long}" = "false" ; then
8073   my_includes="$my_includes -I../getopt"
8074
8075 cat >>confdefs.h <<\_ACEOF
8076 #define HAVE_GETOPT_LONG 1
8077 _ACEOF
8078
8079   ctlibs_base="$ctlibs_base -lgetopt"
8080   LDFLAGS="$LDFLAGS -L../getopt"
8081   GETOPTLONG=1
8082 fi
8083
8084
8085 if test "$GETOPTLONG"="1"; then
8086   INCLUDED_GETOPT_LONG_TRUE=
8087   INCLUDED_GETOPT_LONG_FALSE='#'
8088 else
8089   INCLUDED_GETOPT_LONG_TRUE='#'
8090   INCLUDED_GETOPT_LONG_FALSE=
8091 fi
8092
8093
8094 if test "${readline}" = "true" ; then
8095   ctlibs_base="$ctlibs_base -lreadline"
8096   if test "${ncurses}" = "true"; then
8097     ctlibs_base="$ctlibs_base -lncurses"
8098   elif test "${curses}" = "true"; then
8099     ctlibs_base="$ctlibs_base -lcurses"
8100   fi
8101 fi
8102
8103 echo "$as_me:$LINENO: checking debug" >&5
8104 echo $ECHO_N "checking debug... $ECHO_C" >&6
8105 # Check whether --enable-debug or --disable-debug was given.
8106 if test "${enable_debug+set}" = set; then
8107   enableval="$enable_debug"
8108   case "${enableval}" in
8109   yes) debug=true
8110        echo "$as_me:$LINENO: result: yes" >&5
8111 echo "${ECHO_T}yes" >&6
8112        ;;
8113   no)  debug=false
8114        echo "$as_me:$LINENO: result: no" >&5
8115 echo "${ECHO_T}no" >&6
8116        ;;
8117   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
8118 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
8119        ;;
8120 esac
8121 else
8122   debug=false; echo "$as_me:$LINENO: result: no" >&5
8123 echo "${ECHO_T}no" >&6
8124 fi;
8125
8126
8127 if test "$debug" = "true"; then
8128   DEBUG_TRUE=
8129   DEBUG_FALSE='#'
8130 else
8131   DEBUG_TRUE='#'
8132   DEBUG_FALSE=
8133 fi
8134
8135
8136 if test "$datadir" != "" ; then
8137   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
8138 fi
8139
8140 if test "$debug" = "true" ; then
8141   CFLAGS="$CFLAGS -g -DDEBUG"
8142
8143 cat >>confdefs.h <<\_ACEOF
8144 #define DEBUG 1
8145 _ACEOF
8146
8147 else
8148   CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
8149
8150 cat >>confdefs.h <<\_ACEOF
8151 #define NDEBUG 1
8152 _ACEOF
8153
8154 fi
8155
8156 if test "${pthread}" = "true" ; then
8157
8158 cat >>confdefs.h <<\_ACEOF
8159 #define HAVE_WXTHREADS 1
8160 _ACEOF
8161
8162 fi
8163
8164 echo "$as_me:$LINENO: checking sstream" >&5
8165 echo $ECHO_N "checking sstream... $ECHO_C" >&6
8166  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
8167      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
8168      test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
8169
8170 cat >>confdefs.h <<\_ACEOF
8171 #define HAVE_SSTREAM 1
8172 _ACEOF
8173
8174    echo "$as_me:$LINENO: result: yes" >&5
8175 echo "${ECHO_T}yes" >&6
8176   else
8177    echo "$as_me:$LINENO: result: no" >&5
8178 echo "${ECHO_T}no" >&6
8179  fi
8180
8181
8182 CFLAGS="$CFLAGS -Wall"
8183 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
8184 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
8185 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
8186 if test "${enable_verbose_warnings+set}" = set; then
8187   enableval="$enable_verbose_warnings"
8188    case "$enableval" in
8189   yes)
8190     echo "$as_me:$LINENO: result: yes" >&5
8191 echo "${ECHO_T}yes" >&6
8192     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
8193     ;;
8194   *)
8195     echo "$as_me:$LINENO: result: no" >&5
8196 echo "${ECHO_T}no" >&6
8197     ;;
8198   esac
8199 else
8200   echo "$as_me:$LINENO: result: no" >&5
8201 echo "${ECHO_T}no" >&6
8202
8203 fi;
8204
8205 echo "$as_me:$LINENO: checking static executables" >&5
8206 echo $ECHO_N "checking static executables... $ECHO_C" >&6
8207 # Check whether --enable-static or --disable-static was given.
8208 if test "${enable_static+set}" = set; then
8209   enableval="$enable_static"
8210    case "$enableval" in
8211   yes)
8212     echo "$as_me:$LINENO: result: yes" >&5
8213 echo "${ECHO_T}yes" >&6
8214     CFLAGS="$CFLAGS --static"
8215     ;;
8216   *)
8217     echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6
8219     ;;
8220   esac
8221 else
8222   echo "$as_me:$LINENO: result: no" >&5
8223 echo "${ECHO_T}no" >&6
8224
8225 fi;
8226
8227
8228 # Check whether --with-lam or --without-lam was given.
8229 if test "${with_lam+set}" = set; then
8230   withval="$with_lam"
8231       if test "$withval" != "no" ; then
8232          trylamdir=$withval
8233      fi
8234
8235 fi;
8236
8237 if test "$withval" != "no" ; then
8238   if test "$prefix" != "NONE" ; then
8239      trylamdir="$trylamdir $prefix"
8240   fi
8241
8242   echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
8243 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
8244   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
8245     if test -x "$testlamdir/bin/hcp" ; then
8246       if test "$testlamdir" != "/usr"; then
8247         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
8248         CFLAGS="$CFLAGS -I$testlamdir/include"
8249       fi
8250       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
8251       lamdir="$testlamdir"
8252
8253       mpienable="true"
8254
8255       break
8256     fi
8257   done
8258   echo "$as_me:$LINENO: result: $lamdir" >&5
8259 echo "${ECHO_T}$lamdir" >&6
8260 else
8261   echo "$as_me:$LINENO: result: no" >&5
8262 echo "${ECHO_T}no" >&6
8263 fi
8264
8265
8266
8267 # Check whether --with-ctn or --without-ctn was given.
8268 if test "${with_ctn+set}" = set; then
8269   withval="$with_ctn"
8270       if test "$withval" != "no" ; then
8271          tryctndir=$withval
8272      fi
8273
8274 fi;
8275
8276 if test "$withval" == "no" -o "$withval" == "NONE" ; then
8277   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8278 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8279   echo "$as_me:$LINENO: result: disabled" >&5
8280 echo "${ECHO_T}disabled" >&6
8281 else
8282   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8283 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8284   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
8285     if test -f "$testctndir/libctn.a" ; then
8286       LDFLAGS="$LDFLAGS -L$testctndir"
8287       ctnlib="true"
8288       break
8289     fi
8290   done
8291   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
8292     if test -f "$testctndir/ctn_os.h" ; then
8293       CFLAGS="$CFLAGS -I$testctndir"
8294       ctninclude="true"
8295       break
8296     fi
8297   done
8298   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
8299       ctn="true"
8300
8301 cat >>confdefs.h <<\_ACEOF
8302 #define HAVE_CTN_DICOM 1
8303 _ACEOF
8304
8305       echo "$as_me:$LINENO: result: yes" >&5
8306 echo "${ECHO_T}yes" >&6
8307   else
8308     echo "$as_me:$LINENO: result: no" >&5
8309 echo "${ECHO_T}no" >&6
8310   fi
8311 fi
8312
8313 echo "$as_me:$LINENO: checking for CPU specification" >&5
8314 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
8315
8316 # Check whether --with-mcpu or --without-mcpu was given.
8317 if test "${with_mcpu+set}" = set; then
8318   withval="$with_mcpu"
8319
8320 fi;
8321
8322 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
8323   echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6
8325 else
8326   echo "$as_me:$LINENO: result: $withval" >&5
8327 echo "${ECHO_T}$withval" >&6
8328   CFLAGS="$CFLAGS -mcpu=$withval"
8329 fi
8330
8331 echo "$as_me:$LINENO: checking for web access" >&5
8332 echo $ECHO_N "checking for web access... $ECHO_C" >&6
8333
8334 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
8335 if test "${with_cgibin_dir+set}" = set; then
8336   withval="$with_cgibin_dir"
8337    cgibindir=$withval ;
8338 fi;
8339
8340
8341 # Check whether --with-cgibin-url or --without-cgibin-url was given.
8342 if test "${with_cgibin_url+set}" = set; then
8343   withval="$with_cgibin_url"
8344    cgibinurl=$withval ;
8345 fi;
8346
8347
8348 # Check whether --with-webdata-dir or --without-webdata-dir was given.
8349 if test "${with_webdata_dir+set}" = set; then
8350   withval="$with_webdata_dir"
8351    webdatadir=$withval ;
8352 fi;
8353
8354
8355 # Check whether --with-webdata-url or --without-webdata-url was given.
8356 if test "${with_webdata_url+set}" = set; then
8357   withval="$with_webdata_url"
8358    webdataurl=$withval ;
8359 fi;
8360
8361
8362 # Check whether --with-html-dir or --without-html-dir was given.
8363 if test "${with_html_dir+set}" = set; then
8364   withval="$with_html_dir"
8365    htmldir=$withval ;
8366 fi;
8367
8368 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
8369   cgiprograms="ctsim.cgi ctsim.conf"
8370
8371 fi
8372
8373 if test -n "$htmldir" ; then
8374   htmldata=simulate.html
8375
8376 fi
8377
8378
8379 if test -n "$htmldir"; then
8380   USE_HTML_TRUE=
8381   USE_HTML_FALSE='#'
8382 else
8383   USE_HTML_TRUE='#'
8384   USE_HTML_FALSE=
8385 fi
8386
8387
8388 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
8389   webenabled=true
8390
8391   echo "$as_me:$LINENO: result: yes" >&5
8392 echo "${ECHO_T}yes" >&6
8393   if test -z "$cgibindir" ; then
8394     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
8395 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
8396    { (exit 1); exit 1; }; }
8397   elif test -z "$cgibinurl" ; then
8398     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
8399 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
8400    { (exit 1); exit 1; }; }
8401   elif test -z "$webdatadir" ; then
8402     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
8403 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
8404    { (exit 1); exit 1; }; }
8405   elif test -z "$webdataurl" ; then
8406     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
8407 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
8408    { (exit 1); exit 1; }; }
8409   elif test -z "$htmldir" ; then
8410     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
8411 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
8412    { (exit 1); exit 1; }; }
8413   fi
8414 else
8415   echo "$as_me:$LINENO: result: no" >&5
8416 echo "${ECHO_T}no" >&6
8417 fi
8418
8419
8420
8421 if test -n "$lamdir"; then
8422   USE_LAM_TRUE=
8423   USE_LAM_FALSE='#'
8424 else
8425   USE_LAM_TRUE='#'
8426   USE_LAM_FALSE=
8427 fi
8428
8429
8430
8431 echo "$as_me:$LINENO: checking for X" >&5
8432 echo $ECHO_N "checking for X... $ECHO_C" >&6
8433
8434
8435 # Check whether --with-x or --without-x was given.
8436 if test "${with_x+set}" = set; then
8437   withval="$with_x"
8438
8439 fi;
8440 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8441 if test "x$with_x" = xno; then
8442   # The user explicitly disabled X.
8443   have_x=disabled
8444 else
8445   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8446     # Both variables are already set.
8447     have_x=yes
8448   else
8449     if test "${ac_cv_have_x+set}" = set; then
8450   echo $ECHO_N "(cached) $ECHO_C" >&6
8451 else
8452   # One or both of the vars are not set, and there is no cached value.
8453 ac_x_includes=no ac_x_libraries=no
8454 rm -fr conftest.dir
8455 if mkdir conftest.dir; then
8456   cd conftest.dir
8457   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8458   cat >Imakefile <<'_ACEOF'
8459 acfindx:
8460         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8461 _ACEOF
8462   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8463     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8464     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8465     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8466     for ac_extension in a so sl; do
8467       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8468          test -f $ac_im_libdir/libX11.$ac_extension; then
8469         ac_im_usrlibdir=$ac_im_libdir; break
8470       fi
8471     done
8472     # Screen out bogus values from the imake configuration.  They are
8473     # bogus both because they are the default anyway, and because
8474     # using them would break gcc on systems where it needs fixed includes.
8475     case $ac_im_incroot in
8476         /usr/include) ;;
8477         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8478     esac
8479     case $ac_im_usrlibdir in
8480         /usr/lib | /lib) ;;
8481         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8482     esac
8483   fi
8484   cd ..
8485   rm -fr conftest.dir
8486 fi
8487
8488 # Standard set of common directories for X headers.
8489 # Check X11 before X11Rn because it is often a symlink to the current release.
8490 ac_x_header_dirs='
8491 /usr/X11/include
8492 /usr/X11R6/include
8493 /usr/X11R5/include
8494 /usr/X11R4/include
8495
8496 /usr/include/X11
8497 /usr/include/X11R6
8498 /usr/include/X11R5
8499 /usr/include/X11R4
8500
8501 /usr/local/X11/include
8502 /usr/local/X11R6/include
8503 /usr/local/X11R5/include
8504 /usr/local/X11R4/include
8505
8506 /usr/local/include/X11
8507 /usr/local/include/X11R6
8508 /usr/local/include/X11R5
8509 /usr/local/include/X11R4
8510
8511 /usr/X386/include
8512 /usr/x386/include
8513 /usr/XFree86/include/X11
8514
8515 /usr/include
8516 /usr/local/include
8517 /usr/unsupported/include
8518 /usr/athena/include
8519 /usr/local/x11r5/include
8520 /usr/lpp/Xamples/include
8521
8522 /usr/openwin/include
8523 /usr/openwin/share/include'
8524
8525 if test "$ac_x_includes" = no; then
8526   # Guess where to find include files, by looking for Intrinsic.h.
8527   # First, try using that file with no special directory specified.
8528   cat >conftest.$ac_ext <<_ACEOF
8529 #line $LINENO "configure"
8530 /* confdefs.h.  */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h.  */
8535 #include <X11/Intrinsic.h>
8536 _ACEOF
8537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8538   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8539   ac_status=$?
8540   grep -v '^ *+' conftest.er1 >conftest.err
8541   rm -f conftest.er1
8542   cat conftest.err >&5
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); } >/dev/null; then
8545   if test -s conftest.err; then
8546     ac_cpp_err=$ac_c_preproc_warn_flag
8547   else
8548     ac_cpp_err=
8549   fi
8550 else
8551   ac_cpp_err=yes
8552 fi
8553 if test -z "$ac_cpp_err"; then
8554   # We can compile using X headers with no special include directory.
8555 ac_x_includes=
8556 else
8557   echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8559
8560   for ac_dir in $ac_x_header_dirs; do
8561   if test -r "$ac_dir/X11/Intrinsic.h"; then
8562     ac_x_includes=$ac_dir
8563     break
8564   fi
8565 done
8566 fi
8567 rm -f conftest.err conftest.$ac_ext
8568 fi # $ac_x_includes = no
8569
8570 if test "$ac_x_libraries" = no; then
8571   # Check for the libraries.
8572   # See if we find them without any special options.
8573   # Don't add to $LIBS permanently.
8574   ac_save_LIBS=$LIBS
8575   LIBS="-lXt $LIBS"
8576   cat >conftest.$ac_ext <<_ACEOF
8577 #line $LINENO "configure"
8578 /* confdefs.h.  */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h.  */
8583 #include <X11/Intrinsic.h>
8584 int
8585 main ()
8586 {
8587 XtMalloc (0)
8588   ;
8589   return 0;
8590 }
8591 _ACEOF
8592 rm -f conftest.$ac_objext conftest$ac_exeext
8593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8594   (eval $ac_link) 2>&5
8595   ac_status=$?
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); } &&
8598          { ac_try='test -s conftest$ac_exeext'
8599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600   (eval $ac_try) 2>&5
8601   ac_status=$?
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); }; }; then
8604   LIBS=$ac_save_LIBS
8605 # We can link X programs with no special library path.
8606 ac_x_libraries=
8607 else
8608   echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8610
8611 LIBS=$ac_save_LIBS
8612 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8613 do
8614   # Don't even attempt the hair of trying to link an X program!
8615   for ac_extension in a so sl; do
8616     if test -r $ac_dir/libXt.$ac_extension; then
8617       ac_x_libraries=$ac_dir
8618       break 2
8619     fi
8620   done
8621 done
8622 fi
8623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8624 fi # $ac_x_libraries = no
8625
8626 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8627   # Didn't find X anywhere.  Cache the known absence of X.
8628   ac_cv_have_x="have_x=no"
8629 else
8630   # Record where we found X for the cache.
8631   ac_cv_have_x="have_x=yes \
8632                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8633 fi
8634 fi
8635
8636   fi
8637   eval "$ac_cv_have_x"
8638 fi # $with_x != no
8639
8640 if test "$have_x" != yes; then
8641   echo "$as_me:$LINENO: result: $have_x" >&5
8642 echo "${ECHO_T}$have_x" >&6
8643   no_x=yes
8644 else
8645   # If each of the values was on the command line, it overrides each guess.
8646   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8647   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8648   # Update the cache value to reflect the command line values.
8649   ac_cv_have_x="have_x=yes \
8650                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8651   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8652 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8653 fi
8654
8655 if test "$no_x" = yes; then
8656   # Not all programs may use this symbol, but it does not hurt to define it.
8657
8658 cat >>confdefs.h <<\_ACEOF
8659 #define X_DISPLAY_MISSING 1
8660 _ACEOF
8661
8662   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8663 else
8664   if test -n "$x_includes"; then
8665     X_CFLAGS="$X_CFLAGS -I$x_includes"
8666   fi
8667
8668   # It would also be nice to do this for all -L options, not just this one.
8669   if test -n "$x_libraries"; then
8670     X_LIBS="$X_LIBS -L$x_libraries"
8671     # For Solaris; some versions of Sun CC require a space after -R and
8672     # others require no space.  Words are not sufficient . . . .
8673     case `(uname -sr) 2>/dev/null` in
8674     "SunOS 5"*)
8675       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8676 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8677       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8678       cat >conftest.$ac_ext <<_ACEOF
8679 #line $LINENO "configure"
8680 /* confdefs.h.  */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h.  */
8685
8686 int
8687 main ()
8688 {
8689
8690   ;
8691   return 0;
8692 }
8693 _ACEOF
8694 rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696   (eval $ac_link) 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); } &&
8700          { ac_try='test -s conftest$ac_exeext'
8701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702   (eval $ac_try) 2>&5
8703   ac_status=$?
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); }; }; then
8706   ac_R_nospace=yes
8707 else
8708   echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711 ac_R_nospace=no
8712 fi
8713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8714       if test $ac_R_nospace = yes; then
8715         echo "$as_me:$LINENO: result: no" >&5
8716 echo "${ECHO_T}no" >&6
8717         X_LIBS="$X_LIBS -R$x_libraries"
8718       else
8719         LIBS="$ac_xsave_LIBS -R $x_libraries"
8720         cat >conftest.$ac_ext <<_ACEOF
8721 #line $LINENO "configure"
8722 /* confdefs.h.  */
8723 _ACEOF
8724 cat confdefs.h >>conftest.$ac_ext
8725 cat >>conftest.$ac_ext <<_ACEOF
8726 /* end confdefs.h.  */
8727
8728 int
8729 main ()
8730 {
8731
8732   ;
8733   return 0;
8734 }
8735 _ACEOF
8736 rm -f conftest.$ac_objext conftest$ac_exeext
8737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8738   (eval $ac_link) 2>&5
8739   ac_status=$?
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); } &&
8742          { ac_try='test -s conftest$ac_exeext'
8743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744   (eval $ac_try) 2>&5
8745   ac_status=$?
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); }; }; then
8748   ac_R_space=yes
8749 else
8750   echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8752
8753 ac_R_space=no
8754 fi
8755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8756         if test $ac_R_space = yes; then
8757           echo "$as_me:$LINENO: result: yes" >&5
8758 echo "${ECHO_T}yes" >&6
8759           X_LIBS="$X_LIBS -R $x_libraries"
8760         else
8761           echo "$as_me:$LINENO: result: neither works" >&5
8762 echo "${ECHO_T}neither works" >&6
8763         fi
8764       fi
8765       LIBS=$ac_xsave_LIBS
8766     esac
8767   fi
8768
8769   # Check for system-dependent libraries X programs must link with.
8770   # Do this before checking for the system-independent R6 libraries
8771   # (-lICE), since we may need -lsocket or whatever for X linking.
8772
8773   if test "$ISC" = yes; then
8774     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8775   else
8776     # Martyn Johnson says this is needed for Ultrix, if the X
8777     # libraries were built with DECnet support.  And Karl Berry says
8778     # the Alpha needs dnet_stub (dnet does not exist).
8779     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8780     cat >conftest.$ac_ext <<_ACEOF
8781 #line $LINENO "configure"
8782 /* confdefs.h.  */
8783 _ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h.  */
8787
8788 /* Override any gcc2 internal prototype to avoid an error.  */
8789 #ifdef __cplusplus
8790 extern "C"
8791 #endif
8792 /* We use char because int might match the return type of a gcc2
8793    builtin and then its argument prototype would still apply.  */
8794 char XOpenDisplay ();
8795 int
8796 main ()
8797 {
8798 XOpenDisplay ();
8799   ;
8800   return 0;
8801 }
8802 _ACEOF
8803 rm -f conftest.$ac_objext conftest$ac_exeext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805   (eval $ac_link) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); } &&
8809          { ac_try='test -s conftest$ac_exeext'
8810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811   (eval $ac_try) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; }; then
8815   :
8816 else
8817   echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8821 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8822 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8823   echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825   ac_check_lib_save_LIBS=$LIBS
8826 LIBS="-ldnet  $LIBS"
8827 cat >conftest.$ac_ext <<_ACEOF
8828 #line $LINENO "configure"
8829 /* confdefs.h.  */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h.  */
8834
8835 /* Override any gcc2 internal prototype to avoid an error.  */
8836 #ifdef __cplusplus
8837 extern "C"
8838 #endif
8839 /* We use char because int might match the return type of a gcc2
8840    builtin and then its argument prototype would still apply.  */
8841 char dnet_ntoa ();
8842 int
8843 main ()
8844 {
8845 dnet_ntoa ();
8846   ;
8847   return 0;
8848 }
8849 _ACEOF
8850 rm -f conftest.$ac_objext conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852   (eval $ac_link) 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); } &&
8856          { ac_try='test -s conftest$ac_exeext'
8857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858   (eval $ac_try) 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); }; }; then
8862   ac_cv_lib_dnet_dnet_ntoa=yes
8863 else
8864   echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867 ac_cv_lib_dnet_dnet_ntoa=no
8868 fi
8869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8870 LIBS=$ac_check_lib_save_LIBS
8871 fi
8872 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8873 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8874 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8875   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8876 fi
8877
8878     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8879       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8880 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8881 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8882   echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884   ac_check_lib_save_LIBS=$LIBS
8885 LIBS="-ldnet_stub  $LIBS"
8886 cat >conftest.$ac_ext <<_ACEOF
8887 #line $LINENO "configure"
8888 /* confdefs.h.  */
8889 _ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h.  */
8893
8894 /* Override any gcc2 internal prototype to avoid an error.  */
8895 #ifdef __cplusplus
8896 extern "C"
8897 #endif
8898 /* We use char because int might match the return type of a gcc2
8899    builtin and then its argument prototype would still apply.  */
8900 char dnet_ntoa ();
8901 int
8902 main ()
8903 {
8904 dnet_ntoa ();
8905   ;
8906   return 0;
8907 }
8908 _ACEOF
8909 rm -f conftest.$ac_objext conftest$ac_exeext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8911   (eval $ac_link) 2>&5
8912   ac_status=$?
8913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); } &&
8915          { ac_try='test -s conftest$ac_exeext'
8916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917   (eval $ac_try) 2>&5
8918   ac_status=$?
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); }; }; then
8921   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8922 else
8923   echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8925
8926 ac_cv_lib_dnet_stub_dnet_ntoa=no
8927 fi
8928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8929 LIBS=$ac_check_lib_save_LIBS
8930 fi
8931 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8932 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8933 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8934   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8935 fi
8936
8937     fi
8938 fi
8939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8940     LIBS="$ac_xsave_LIBS"
8941
8942     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8943     # to get the SysV transport functions.
8944     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8945     # needs -lnsl.
8946     # The nsl library prevents programs from opening the X display
8947     # on Irix 5.2, according to T.E. Dickey.
8948     # The functions gethostbyname, getservbyname, and inet_addr are
8949     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8950     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8951 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8952 if test "${ac_cv_func_gethostbyname+set}" = set; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955   cat >conftest.$ac_ext <<_ACEOF
8956 #line $LINENO "configure"
8957 /* confdefs.h.  */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h.  */
8962 /* System header to define __stub macros and hopefully few prototypes,
8963     which can conflict with char gethostbyname (); below.
8964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8965     <limits.h> exists even on freestanding compilers.  */
8966 #ifdef __STDC__
8967 # include <limits.h>
8968 #else
8969 # include <assert.h>
8970 #endif
8971 /* Override any gcc2 internal prototype to avoid an error.  */
8972 #ifdef __cplusplus
8973 extern "C"
8974 {
8975 #endif
8976 /* We use char because int might match the return type of a gcc2
8977    builtin and then its argument prototype would still apply.  */
8978 char gethostbyname ();
8979 /* The GNU C library defines this for functions which it implements
8980     to always fail with ENOSYS.  Some functions are actually named
8981     something starting with __ and the normal name is an alias.  */
8982 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8983 choke me
8984 #else
8985 char (*f) () = gethostbyname;
8986 #endif
8987 #ifdef __cplusplus
8988 }
8989 #endif
8990
8991 int
8992 main ()
8993 {
8994 return f != gethostbyname;
8995   ;
8996   return 0;
8997 }
8998 _ACEOF
8999 rm -f conftest.$ac_objext conftest$ac_exeext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9001   (eval $ac_link) 2>&5
9002   ac_status=$?
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); } &&
9005          { ac_try='test -s conftest$ac_exeext'
9006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007   (eval $ac_try) 2>&5
9008   ac_status=$?
9009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); }; }; then
9011   ac_cv_func_gethostbyname=yes
9012 else
9013   echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9015
9016 ac_cv_func_gethostbyname=no
9017 fi
9018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9019 fi
9020 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9021 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9022
9023     if test $ac_cv_func_gethostbyname = no; then
9024       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9025 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9026 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9027   echo $ECHO_N "(cached) $ECHO_C" >&6
9028 else
9029   ac_check_lib_save_LIBS=$LIBS
9030 LIBS="-lnsl  $LIBS"
9031 cat >conftest.$ac_ext <<_ACEOF
9032 #line $LINENO "configure"
9033 /* confdefs.h.  */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h.  */
9038
9039 /* Override any gcc2 internal prototype to avoid an error.  */
9040 #ifdef __cplusplus
9041 extern "C"
9042 #endif
9043 /* We use char because int might match the return type of a gcc2
9044    builtin and then its argument prototype would still apply.  */
9045 char gethostbyname ();
9046 int
9047 main ()
9048 {
9049 gethostbyname ();
9050   ;
9051   return 0;
9052 }
9053 _ACEOF
9054 rm -f conftest.$ac_objext conftest$ac_exeext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9056   (eval $ac_link) 2>&5
9057   ac_status=$?
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); } &&
9060          { ac_try='test -s conftest$ac_exeext'
9061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062   (eval $ac_try) 2>&5
9063   ac_status=$?
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); }; }; then
9066   ac_cv_lib_nsl_gethostbyname=yes
9067 else
9068   echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9070
9071 ac_cv_lib_nsl_gethostbyname=no
9072 fi
9073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9074 LIBS=$ac_check_lib_save_LIBS
9075 fi
9076 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9077 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9078 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9079   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9080 fi
9081
9082       if test $ac_cv_lib_nsl_gethostbyname = no; then
9083         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9084 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9085 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9086   echo $ECHO_N "(cached) $ECHO_C" >&6
9087 else
9088   ac_check_lib_save_LIBS=$LIBS
9089 LIBS="-lbsd  $LIBS"
9090 cat >conftest.$ac_ext <<_ACEOF
9091 #line $LINENO "configure"
9092 /* confdefs.h.  */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h.  */
9097
9098 /* Override any gcc2 internal prototype to avoid an error.  */
9099 #ifdef __cplusplus
9100 extern "C"
9101 #endif
9102 /* We use char because int might match the return type of a gcc2
9103    builtin and then its argument prototype would still apply.  */
9104 char gethostbyname ();
9105 int
9106 main ()
9107 {
9108 gethostbyname ();
9109   ;
9110   return 0;
9111 }
9112 _ACEOF
9113 rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9115   (eval $ac_link) 2>&5
9116   ac_status=$?
9117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118   (exit $ac_status); } &&
9119          { ac_try='test -s conftest$ac_exeext'
9120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121   (eval $ac_try) 2>&5
9122   ac_status=$?
9123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124   (exit $ac_status); }; }; then
9125   ac_cv_lib_bsd_gethostbyname=yes
9126 else
9127   echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9129
9130 ac_cv_lib_bsd_gethostbyname=no
9131 fi
9132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9133 LIBS=$ac_check_lib_save_LIBS
9134 fi
9135 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9136 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9137 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9138   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9139 fi
9140
9141       fi
9142     fi
9143
9144     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9145     # socket/setsockopt and other routines are undefined under SCO ODT
9146     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9147     # on later versions), says Simon Leinen: it contains gethostby*
9148     # variants that don't use the name server (or something).  -lsocket
9149     # must be given before -lnsl if both are needed.  We assume that
9150     # if connect needs -lnsl, so does gethostbyname.
9151     echo "$as_me:$LINENO: checking for connect" >&5
9152 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9153 if test "${ac_cv_func_connect+set}" = set; then
9154   echo $ECHO_N "(cached) $ECHO_C" >&6
9155 else
9156   cat >conftest.$ac_ext <<_ACEOF
9157 #line $LINENO "configure"
9158 /* confdefs.h.  */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h.  */
9163 /* System header to define __stub macros and hopefully few prototypes,
9164     which can conflict with char connect (); below.
9165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9166     <limits.h> exists even on freestanding compilers.  */
9167 #ifdef __STDC__
9168 # include <limits.h>
9169 #else
9170 # include <assert.h>
9171 #endif
9172 /* Override any gcc2 internal prototype to avoid an error.  */
9173 #ifdef __cplusplus
9174 extern "C"
9175 {
9176 #endif
9177 /* We use char because int might match the return type of a gcc2
9178    builtin and then its argument prototype would still apply.  */
9179 char connect ();
9180 /* The GNU C library defines this for functions which it implements
9181     to always fail with ENOSYS.  Some functions are actually named
9182     something starting with __ and the normal name is an alias.  */
9183 #if defined (__stub_connect) || defined (__stub___connect)
9184 choke me
9185 #else
9186 char (*f) () = connect;
9187 #endif
9188 #ifdef __cplusplus
9189 }
9190 #endif
9191
9192 int
9193 main ()
9194 {
9195 return f != connect;
9196   ;
9197   return 0;
9198 }
9199 _ACEOF
9200 rm -f conftest.$ac_objext conftest$ac_exeext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9202   (eval $ac_link) 2>&5
9203   ac_status=$?
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); } &&
9206          { ac_try='test -s conftest$ac_exeext'
9207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208   (eval $ac_try) 2>&5
9209   ac_status=$?
9210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); }; }; then
9212   ac_cv_func_connect=yes
9213 else
9214   echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9216
9217 ac_cv_func_connect=no
9218 fi
9219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9220 fi
9221 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9222 echo "${ECHO_T}$ac_cv_func_connect" >&6
9223
9224     if test $ac_cv_func_connect = no; then
9225       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9226 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9227 if test "${ac_cv_lib_socket_connect+set}" = set; then
9228   echo $ECHO_N "(cached) $ECHO_C" >&6
9229 else
9230   ac_check_lib_save_LIBS=$LIBS
9231 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9232 cat >conftest.$ac_ext <<_ACEOF
9233 #line $LINENO "configure"
9234 /* confdefs.h.  */
9235 _ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h.  */
9239
9240 /* Override any gcc2 internal prototype to avoid an error.  */
9241 #ifdef __cplusplus
9242 extern "C"
9243 #endif
9244 /* We use char because int might match the return type of a gcc2
9245    builtin and then its argument prototype would still apply.  */
9246 char connect ();
9247 int
9248 main ()
9249 {
9250 connect ();
9251   ;
9252   return 0;
9253 }
9254 _ACEOF
9255 rm -f conftest.$ac_objext conftest$ac_exeext
9256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9257   (eval $ac_link) 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); } &&
9261          { ac_try='test -s conftest$ac_exeext'
9262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263   (eval $ac_try) 2>&5
9264   ac_status=$?
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   (exit $ac_status); }; }; then
9267   ac_cv_lib_socket_connect=yes
9268 else
9269   echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9271
9272 ac_cv_lib_socket_connect=no
9273 fi
9274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9275 LIBS=$ac_check_lib_save_LIBS
9276 fi
9277 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9278 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9279 if test $ac_cv_lib_socket_connect = yes; then
9280   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9281 fi
9282
9283     fi
9284
9285     # Guillermo Gomez says -lposix is necessary on A/UX.
9286     echo "$as_me:$LINENO: checking for remove" >&5
9287 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9288 if test "${ac_cv_func_remove+set}" = set; then
9289   echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291   cat >conftest.$ac_ext <<_ACEOF
9292 #line $LINENO "configure"
9293 /* confdefs.h.  */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h.  */
9298 /* System header to define __stub macros and hopefully few prototypes,
9299     which can conflict with char remove (); below.
9300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9301     <limits.h> exists even on freestanding compilers.  */
9302 #ifdef __STDC__
9303 # include <limits.h>
9304 #else
9305 # include <assert.h>
9306 #endif
9307 /* Override any gcc2 internal prototype to avoid an error.  */
9308 #ifdef __cplusplus
9309 extern "C"
9310 {
9311 #endif
9312 /* We use char because int might match the return type of a gcc2
9313    builtin and then its argument prototype would still apply.  */
9314 char remove ();
9315 /* The GNU C library defines this for functions which it implements
9316     to always fail with ENOSYS.  Some functions are actually named
9317     something starting with __ and the normal name is an alias.  */
9318 #if defined (__stub_remove) || defined (__stub___remove)
9319 choke me
9320 #else
9321 char (*f) () = remove;
9322 #endif
9323 #ifdef __cplusplus
9324 }
9325 #endif
9326
9327 int
9328 main ()
9329 {
9330 return f != remove;
9331   ;
9332   return 0;
9333 }
9334 _ACEOF
9335 rm -f conftest.$ac_objext conftest$ac_exeext
9336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9337   (eval $ac_link) 2>&5
9338   ac_status=$?
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); } &&
9341          { ac_try='test -s conftest$ac_exeext'
9342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343   (eval $ac_try) 2>&5
9344   ac_status=$?
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); }; }; then
9347   ac_cv_func_remove=yes
9348 else
9349   echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9351
9352 ac_cv_func_remove=no
9353 fi
9354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9355 fi
9356 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9357 echo "${ECHO_T}$ac_cv_func_remove" >&6
9358
9359     if test $ac_cv_func_remove = no; then
9360       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9361 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9362 if test "${ac_cv_lib_posix_remove+set}" = set; then
9363   echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365   ac_check_lib_save_LIBS=$LIBS
9366 LIBS="-lposix  $LIBS"
9367 cat >conftest.$ac_ext <<_ACEOF
9368 #line $LINENO "configure"
9369 /* confdefs.h.  */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h.  */
9374
9375 /* Override any gcc2 internal prototype to avoid an error.  */
9376 #ifdef __cplusplus
9377 extern "C"
9378 #endif
9379 /* We use char because int might match the return type of a gcc2
9380    builtin and then its argument prototype would still apply.  */
9381 char remove ();
9382 int
9383 main ()
9384 {
9385 remove ();
9386   ;
9387   return 0;
9388 }
9389 _ACEOF
9390 rm -f conftest.$ac_objext conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392   (eval $ac_link) 2>&5
9393   ac_status=$?
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); } &&
9396          { ac_try='test -s conftest$ac_exeext'
9397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398   (eval $ac_try) 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); }; }; then
9402   ac_cv_lib_posix_remove=yes
9403 else
9404   echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9406
9407 ac_cv_lib_posix_remove=no
9408 fi
9409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9410 LIBS=$ac_check_lib_save_LIBS
9411 fi
9412 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9413 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9414 if test $ac_cv_lib_posix_remove = yes; then
9415   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9416 fi
9417
9418     fi
9419
9420     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9421     echo "$as_me:$LINENO: checking for shmat" >&5
9422 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9423 if test "${ac_cv_func_shmat+set}" = set; then
9424   echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426   cat >conftest.$ac_ext <<_ACEOF
9427 #line $LINENO "configure"
9428 /* confdefs.h.  */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h.  */
9433 /* System header to define __stub macros and hopefully few prototypes,
9434     which can conflict with char shmat (); below.
9435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9436     <limits.h> exists even on freestanding compilers.  */
9437 #ifdef __STDC__
9438 # include <limits.h>
9439 #else
9440 # include <assert.h>
9441 #endif
9442 /* Override any gcc2 internal prototype to avoid an error.  */
9443 #ifdef __cplusplus
9444 extern "C"
9445 {
9446 #endif
9447 /* We use char because int might match the return type of a gcc2
9448    builtin and then its argument prototype would still apply.  */
9449 char shmat ();
9450 /* The GNU C library defines this for functions which it implements
9451     to always fail with ENOSYS.  Some functions are actually named
9452     something starting with __ and the normal name is an alias.  */
9453 #if defined (__stub_shmat) || defined (__stub___shmat)
9454 choke me
9455 #else
9456 char (*f) () = shmat;
9457 #endif
9458 #ifdef __cplusplus
9459 }
9460 #endif
9461
9462 int
9463 main ()
9464 {
9465 return f != shmat;
9466   ;
9467   return 0;
9468 }
9469 _ACEOF
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9472   (eval $ac_link) 2>&5
9473   ac_status=$?
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); } &&
9476          { ac_try='test -s conftest$ac_exeext'
9477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478   (eval $ac_try) 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); }; }; then
9482   ac_cv_func_shmat=yes
9483 else
9484   echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9486
9487 ac_cv_func_shmat=no
9488 fi
9489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9490 fi
9491 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9492 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9493
9494     if test $ac_cv_func_shmat = no; then
9495       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9496 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9497 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9498   echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500   ac_check_lib_save_LIBS=$LIBS
9501 LIBS="-lipc  $LIBS"
9502 cat >conftest.$ac_ext <<_ACEOF
9503 #line $LINENO "configure"
9504 /* confdefs.h.  */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h.  */
9509
9510 /* Override any gcc2 internal prototype to avoid an error.  */
9511 #ifdef __cplusplus
9512 extern "C"
9513 #endif
9514 /* We use char because int might match the return type of a gcc2
9515    builtin and then its argument prototype would still apply.  */
9516 char shmat ();
9517 int
9518 main ()
9519 {
9520 shmat ();
9521   ;
9522   return 0;
9523 }
9524 _ACEOF
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9527   (eval $ac_link) 2>&5
9528   ac_status=$?
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); } &&
9531          { ac_try='test -s conftest$ac_exeext'
9532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533   (eval $ac_try) 2>&5
9534   ac_status=$?
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); }; }; then
9537   ac_cv_lib_ipc_shmat=yes
9538 else
9539   echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9541
9542 ac_cv_lib_ipc_shmat=no
9543 fi
9544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9545 LIBS=$ac_check_lib_save_LIBS
9546 fi
9547 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9548 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9549 if test $ac_cv_lib_ipc_shmat = yes; then
9550   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9551 fi
9552
9553     fi
9554   fi
9555
9556   # Check for libraries that X11R6 Xt/Xaw programs need.
9557   ac_save_LDFLAGS=$LDFLAGS
9558   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9559   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9560   # check for ICE first), but we must link in the order -lSM -lICE or
9561   # we get undefined symbols.  So assume we have SM if we have ICE.
9562   # These have to be linked with before -lX11, unlike the other
9563   # libraries we check for below, so use a different variable.
9564   # John Interrante, Karl Berry
9565   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9566 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9567 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9568   echo $ECHO_N "(cached) $ECHO_C" >&6
9569 else
9570   ac_check_lib_save_LIBS=$LIBS
9571 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9572 cat >conftest.$ac_ext <<_ACEOF
9573 #line $LINENO "configure"
9574 /* confdefs.h.  */
9575 _ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h.  */
9579
9580 /* Override any gcc2 internal prototype to avoid an error.  */
9581 #ifdef __cplusplus
9582 extern "C"
9583 #endif
9584 /* We use char because int might match the return type of a gcc2
9585    builtin and then its argument prototype would still apply.  */
9586 char IceConnectionNumber ();
9587 int
9588 main ()
9589 {
9590 IceConnectionNumber ();
9591   ;
9592   return 0;
9593 }
9594 _ACEOF
9595 rm -f conftest.$ac_objext conftest$ac_exeext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9597   (eval $ac_link) 2>&5
9598   ac_status=$?
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); } &&
9601          { ac_try='test -s conftest$ac_exeext'
9602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603   (eval $ac_try) 2>&5
9604   ac_status=$?
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); }; }; then
9607   ac_cv_lib_ICE_IceConnectionNumber=yes
9608 else
9609   echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9611
9612 ac_cv_lib_ICE_IceConnectionNumber=no
9613 fi
9614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9615 LIBS=$ac_check_lib_save_LIBS
9616 fi
9617 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9618 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9619 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9620   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9621 fi
9622
9623   LDFLAGS=$ac_save_LDFLAGS
9624
9625 fi
9626
9627
9628
9629
9630
9631
9632
9633
9634 X_TOOLKIT_LIBS="-lXt"
9635 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9636
9637 our_saved_LDFLAGS="$LDFLAGS"
9638 LDFLAGS="$X_LIBS $LDFLAGS"
9639 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9640 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9641 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9642   echo $ECHO_N "(cached) $ECHO_C" >&6
9643 else
9644   ac_check_lib_save_LIBS=$LIBS
9645 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9646 cat >conftest.$ac_ext <<_ACEOF
9647 #line $LINENO "configure"
9648 /* confdefs.h.  */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h.  */
9653
9654 /* Override any gcc2 internal prototype to avoid an error.  */
9655 #ifdef __cplusplus
9656 extern "C"
9657 #endif
9658 /* We use char because int might match the return type of a gcc2
9659    builtin and then its argument prototype would still apply.  */
9660 char XtToolkitThreadInitialize ();
9661 int
9662 main ()
9663 {
9664 XtToolkitThreadInitialize ();
9665   ;
9666   return 0;
9667 }
9668 _ACEOF
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9671   (eval $ac_link) 2>&5
9672   ac_status=$?
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); } &&
9675          { ac_try='test -s conftest$ac_exeext'
9676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677   (eval $ac_try) 2>&5
9678   ac_status=$?
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); }; }; then
9681   ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9682 else
9683   echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9685
9686 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9687 fi
9688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9689 LIBS=$ac_check_lib_save_LIBS
9690 fi
9691 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9692 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9693 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9694
9695 cat >>confdefs.h <<\_ACEOF
9696 #define X_THREAD_SUPPORT 1
9697 _ACEOF
9698
9699 fi
9700
9701 LDFLAGS="$our_saved_LDFLAGS"
9702
9703
9704
9705 if test "x$no_x" = "xyes"; then
9706   NO_X_TRUE=
9707   NO_X_FALSE='#'
9708 else
9709   NO_X_TRUE='#'
9710   NO_X_FALSE=
9711 fi
9712
9713
9714 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9715
9716
9717 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9718
9719 echo "$as_me:$LINENO: checking for X" >&5
9720 echo $ECHO_N "checking for X... $ECHO_C" >&6
9721 if test "$no_x" != "yes" ; then
9722
9723 cat >>confdefs.h <<\_ACEOF
9724 #define HAVE_X11 1
9725 _ACEOF
9726
9727   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
9728   my_includes="$my_includes -I/usr/X11R6/include"
9729   ctlib_graphics="$ctlibs_base -lctgraphics"
9730   echo "$as_me:$LINENO: result: yes" >&5
9731 echo "${ECHO_T}yes" >&6
9732   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9733   if test "$libgl" = "true" ; then
9734     # Removed "-lglut" for Mac OS X compilation
9735     ctlib_graphics="$ctlib_graphics -lGL -lGLU"
9736     if test "$wxwin" = "true" ; then
9737       if  "$wx_gtk" ; then
9738         ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
9739       elif  "$wx_mac" ; then
9740         ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
9741       fi
9742     fi
9743   fi
9744   if test "$wxwin" = "true" ; then
9745
9746 cat >>confdefs.h <<\_ACEOF
9747 #define HAVE_SGP 1
9748 _ACEOF
9749
9750   fi
9751 else
9752   echo "$as_me:$LINENO: result: no" >&5
9753 echo "${ECHO_T}no" >&6
9754 fi
9755
9756
9757
9758 if test "$wxwin" = "true"; then
9759   HAVE_SGP_TRUE=
9760   HAVE_SGP_FALSE='#'
9761 else
9762   HAVE_SGP_TRUE='#'
9763   HAVE_SGP_FALSE=
9764 fi
9765
9766
9767 if test "$png" = "true" ; then
9768   ctlibs_tools="$ctlibs_tools -lpng"
9769 fi
9770 if test "$zlib" = "true" ; then
9771   ctlibs_tools="$ctlibs_tools -lz"
9772 fi
9773 if test "$fftw" = "true" ; then
9774   ctlibs_tools="$ctlibs_tools -lfftw3"
9775 fi
9776 if test "$ctn" = "true"; then
9777   ctlibs_tools="$ctlibs_tools -lctn"
9778 fi
9779
9780 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9781 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9782 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9783   echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785   ac_check_lib_save_LIBS=$LIBS
9786 LIBS="-ldmallocxx  $LIBS"
9787 cat >conftest.$ac_ext <<_ACEOF
9788 #line $LINENO "configure"
9789 /* confdefs.h.  */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h.  */
9794
9795
9796 int
9797 main ()
9798 {
9799 main ();
9800   ;
9801   return 0;
9802 }
9803 _ACEOF
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9806   (eval $ac_link) 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); } &&
9810          { ac_try='test -s conftest$ac_exeext'
9811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812   (eval $ac_try) 2>&5
9813   ac_status=$?
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); }; }; then
9816   ac_cv_lib_dmallocxx_main=yes
9817 else
9818   echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9820
9821 ac_cv_lib_dmallocxx_main=no
9822 fi
9823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9824 LIBS=$ac_check_lib_save_LIBS
9825 fi
9826 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9827 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9828 if test $ac_cv_lib_dmallocxx_main = yes; then
9829   dmallocxx=true
9830 else
9831   dmallocxx=false
9832 fi
9833
9834 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9835 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9836 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9837 if test "${enable_dmalloc+set}" = set; then
9838   enableval="$enable_dmalloc"
9839   case "${enableval}" in
9840   yes) usedmalloc=true
9841        echo "$as_me:$LINENO: result: yes" >&5
9842 echo "${ECHO_T}yes" >&6
9843        ;;
9844   no)  usedmalloc=false
9845        echo "$as_me:$LINENO: result: no" >&5
9846 echo "${ECHO_T}no" >&6
9847        ;;
9848   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9849 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9850        ;;
9851 esac
9852 else
9853   usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9854 echo "${ECHO_T}no" >&6
9855 fi;
9856
9857 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9858   ctlibs_tools="$ctlibs_tools -ldmallocxx"
9859
9860 cat >>confdefs.h <<\_ACEOF
9861 #define HAVE_DMALLOC 1
9862 _ACEOF
9863
9864   echo "$as_me:$LINENO: result: Using dmalloc" >&5
9865 echo "${ECHO_T}Using dmalloc" >&6
9866 fi
9867
9868 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9869 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9870 if test "${ac_cv_lib_efence_main+set}" = set; then
9871   echo $ECHO_N "(cached) $ECHO_C" >&6
9872 else
9873   ac_check_lib_save_LIBS=$LIBS
9874 LIBS="-lefence  $LIBS"
9875 cat >conftest.$ac_ext <<_ACEOF
9876 #line $LINENO "configure"
9877 /* confdefs.h.  */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h.  */
9882
9883
9884 int
9885 main ()
9886 {
9887 main ();
9888   ;
9889   return 0;
9890 }
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9894   (eval $ac_link) 2>&5
9895   ac_status=$?
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); } &&
9898          { ac_try='test -s conftest$ac_exeext'
9899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900   (eval $ac_try) 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); }; }; then
9904   ac_cv_lib_efence_main=yes
9905 else
9906   echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9908
9909 ac_cv_lib_efence_main=no
9910 fi
9911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9912 LIBS=$ac_check_lib_save_LIBS
9913 fi
9914 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9915 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9916 if test $ac_cv_lib_efence_main = yes; then
9917   efence=true
9918 else
9919   efence=false
9920 fi
9921
9922 echo "$as_me:$LINENO: checking for enable-efence" >&5
9923 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9924 # Check whether --enable-efence or --disable-efence was given.
9925 if test "${enable_efence+set}" = set; then
9926   enableval="$enable_efence"
9927   case "${enableval}" in
9928   yes) useefence=true
9929        echo "$as_me:$LINENO: result: yes" >&5
9930 echo "${ECHO_T}yes" >&6
9931        ;;
9932   no)  useefence=false
9933        echo "$as_me:$LINENO: result: no" >&5
9934 echo "${ECHO_T}no" >&6
9935        ;;
9936   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9937 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9938        ;;
9939 esac
9940 else
9941   useefence=false; echo "$as_me:$LINENO: result: no" >&5
9942 echo "${ECHO_T}no" >&6
9943 fi;
9944
9945 if test "$efence" = "true" -a "$useefence" = "true" ; then
9946   ctlibs_tools="$ctlibs_tools -lefence"
9947
9948 cat >>confdefs.h <<\_ACEOF
9949 #define HAVE_EFENCE 1
9950 _ACEOF
9951
9952   echo "$as_me:$LINENO: result: Using efence" >&5
9953 echo "${ECHO_T}Using efence" >&6
9954 fi
9955
9956 if test "$wxwin" = "true" ; then
9957   if  "$wx_gtk" = "true"  ||  "$wx_mac" == "true"  ; then
9958     wxcflags=`$wxconfig --cflags`
9959     wxlibs=`$wxconfig --libs`
9960   else
9961         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9962         wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9963   fi
9964   CFLAGS="$CFLAGS -I../include $wxcflags"
9965   ctlib_graphics="$ctlib_graphics $wxlibs"
9966 fi
9967
9968
9969
9970
9971 if test "$wxwin"="true"; then
9972   HAVE_WXWINDOWS_TRUE=
9973   HAVE_WXWINDOWS_FALSE='#'
9974 else
9975   HAVE_WXWINDOWS_TRUE='#'
9976   HAVE_WXWINDOWS_FALSE=
9977 fi
9978
9979
9980 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9981 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9982
9983
9984 if test -n "$lamdir" ; then
9985   lamprograms="ctsimtext-lam"
9986
9987   lamdefs="$CFLAGS"
9988
9989 fi
9990
9991 CXXFLAGS="$CFLAGS"
9992
9993                                                                                                                                                                           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"
9994
9995
9996 cat >confcache <<\_ACEOF
9997 # This file is a shell script that caches the results of configure
9998 # tests run on this system so they can be shared between configure
9999 # scripts and configure runs, see configure's option --config-cache.
10000 # It is not useful on other systems.  If it contains results you don't
10001 # want to keep, you may remove or edit it.
10002 #
10003 # config.status only pays attention to the cache file if you give it
10004 # the --recheck option to rerun configure.
10005 #
10006 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10007 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10008 # following values.
10009
10010 _ACEOF
10011
10012 # The following way of writing the cache mishandles newlines in values,
10013 # but we know of no workaround that is simple, portable, and efficient.
10014 # So, don't put newlines in cache variables' values.
10015 # Ultrix sh set writes to stderr and can't be redirected directly,
10016 # and sets the high bit in the cache file unless we assign to the vars.
10017 {
10018   (set) 2>&1 |
10019     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10020     *ac_space=\ *)
10021       # `set' does not quote correctly, so add quotes (double-quote
10022       # substitution turns \\\\ into \\, and sed turns \\ into \).
10023       sed -n \
10024         "s/'/'\\\\''/g;
10025           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10026       ;;
10027     *)
10028       # `set' quotes correctly as required by POSIX, so do not add quotes.
10029       sed -n \
10030         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10031       ;;
10032     esac;
10033 } |
10034   sed '
10035      t clear
10036      : clear
10037      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10038      t end
10039      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10040      : end' >>confcache
10041 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10042   if test -w $cache_file; then
10043     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10044     cat confcache >$cache_file
10045   else
10046     echo "not updating unwritable cache $cache_file"
10047   fi
10048 fi
10049 rm -f confcache
10050
10051 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10052 # Let make expand exec_prefix.
10053 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10054
10055 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10056 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10057 # trailing colons and then remove the whole line if VPATH becomes empty
10058 # (actually we leave an empty line to preserve line numbers).
10059 if test "x$srcdir" = x.; then
10060   ac_vpsub='/^[         ]*VPATH[        ]*=/{
10061 s/:*\$(srcdir):*/:/;
10062 s/:*\${srcdir}:*/:/;
10063 s/:*@srcdir@:*/:/;
10064 s/^\([^=]*=[    ]*\):*/\1/;
10065 s/:*$//;
10066 s/^[^=]*=[      ]*$//;
10067 }'
10068 fi
10069
10070 DEFS=-DHAVE_CONFIG_H
10071
10072 ac_libobjs=
10073 ac_ltlibobjs=
10074 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10075   # 1. Remove the extension, and $U if already installed.
10076   ac_i=`echo "$ac_i" |
10077          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10078   # 2. Add them.
10079   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10080   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10081 done
10082 LIBOBJS=$ac_libobjs
10083
10084 LTLIBOBJS=$ac_ltlibobjs
10085
10086
10087 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10088   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10089 Usually this means the macro was only invoked conditionally." >&5
10090 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10091 Usually this means the macro was only invoked conditionally." >&2;}
10092    { (exit 1); exit 1; }; }
10093 fi
10094 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10095   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10096 Usually this means the macro was only invoked conditionally." >&5
10097 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10098 Usually this means the macro was only invoked conditionally." >&2;}
10099    { (exit 1); exit 1; }; }
10100 fi
10101 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10102   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10103 Usually this means the macro was only invoked conditionally." >&5
10104 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10105 Usually this means the macro was only invoked conditionally." >&2;}
10106    { (exit 1); exit 1; }; }
10107 fi
10108 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10109   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10110 Usually this means the macro was only invoked conditionally." >&5
10111 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10112 Usually this means the macro was only invoked conditionally." >&2;}
10113    { (exit 1); exit 1; }; }
10114 fi
10115 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
10116   { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10117 Usually this means the macro was only invoked conditionally." >&5
10118 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10119 Usually this means the macro was only invoked conditionally." >&2;}
10120    { (exit 1); exit 1; }; }
10121 fi
10122 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
10123   { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
10124 Usually this means the macro was only invoked conditionally." >&5
10125 echo "$as_me: error: conditional \"DEBUG\" was never defined.
10126 Usually this means the macro was only invoked conditionally." >&2;}
10127    { (exit 1); exit 1; }; }
10128 fi
10129 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
10130   { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
10131 Usually this means the macro was only invoked conditionally." >&5
10132 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
10133 Usually this means the macro was only invoked conditionally." >&2;}
10134    { (exit 1); exit 1; }; }
10135 fi
10136 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
10137   { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
10138 Usually this means the macro was only invoked conditionally." >&5
10139 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
10140 Usually this means the macro was only invoked conditionally." >&2;}
10141    { (exit 1); exit 1; }; }
10142 fi
10143 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
10144   { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
10145 Usually this means the macro was only invoked conditionally." >&5
10146 echo "$as_me: error: conditional \"NO_X\" was never defined.
10147 Usually this means the macro was only invoked conditionally." >&2;}
10148    { (exit 1); exit 1; }; }
10149 fi
10150 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
10151   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
10152 Usually this means the macro was only invoked conditionally." >&5
10153 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
10154 Usually this means the macro was only invoked conditionally." >&2;}
10155    { (exit 1); exit 1; }; }
10156 fi
10157 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
10158   { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10159 Usually this means the macro was only invoked conditionally." >&5
10160 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10161 Usually this means the macro was only invoked conditionally." >&2;}
10162    { (exit 1); exit 1; }; }
10163 fi
10164
10165 : ${CONFIG_STATUS=./config.status}
10166 ac_clean_files_save=$ac_clean_files
10167 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10168 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10169 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10170 cat >$CONFIG_STATUS <<_ACEOF
10171 #! $SHELL
10172 # Generated by $as_me.
10173 # Run this file to recreate the current configuration.
10174 # Compiler output produced by configure, useful for debugging
10175 # configure, is in config.log if it exists.
10176
10177 debug=false
10178 ac_cs_recheck=false
10179 ac_cs_silent=false
10180 SHELL=\${CONFIG_SHELL-$SHELL}
10181 _ACEOF
10182
10183 cat >>$CONFIG_STATUS <<\_ACEOF
10184 ## --------------------- ##
10185 ## M4sh Initialization.  ##
10186 ## --------------------- ##
10187
10188 # Be Bourne compatible
10189 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10190   emulate sh
10191   NULLCMD=:
10192   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10193   # is contrary to our usage.  Disable this feature.
10194   alias -g '${1+"$@"}'='"$@"'
10195 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10196   set -o posix
10197 fi
10198
10199 # Support unset when possible.
10200 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10201   as_unset=unset
10202 else
10203   as_unset=false
10204 fi
10205
10206
10207 # Work around bugs in pre-3.0 UWIN ksh.
10208 $as_unset ENV MAIL MAILPATH
10209 PS1='$ '
10210 PS2='> '
10211 PS4='+ '
10212
10213 # NLS nuisances.
10214 for as_var in \
10215   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10216   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10217   LC_TELEPHONE LC_TIME
10218 do
10219   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10220     eval $as_var=C; export $as_var
10221   else
10222     $as_unset $as_var
10223   fi
10224 done
10225
10226 # Required to use basename.
10227 if expr a : '\(a\)' >/dev/null 2>&1; then
10228   as_expr=expr
10229 else
10230   as_expr=false
10231 fi
10232
10233 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10234   as_basename=basename
10235 else
10236   as_basename=false
10237 fi
10238
10239
10240 # Name of the executable.
10241 as_me=`$as_basename "$0" ||
10242 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10243          X"$0" : 'X\(//\)$' \| \
10244          X"$0" : 'X\(/\)$' \| \
10245          .     : '\(.\)' 2>/dev/null ||
10246 echo X/"$0" |
10247     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10248           /^X\/\(\/\/\)$/{ s//\1/; q; }
10249           /^X\/\(\/\).*/{ s//\1/; q; }
10250           s/.*/./; q'`
10251
10252
10253 # PATH needs CR, and LINENO needs CR and PATH.
10254 # Avoid depending upon Character Ranges.
10255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10258 as_cr_digits='0123456789'
10259 as_cr_alnum=$as_cr_Letters$as_cr_digits
10260
10261 # The user is always right.
10262 if test "${PATH_SEPARATOR+set}" != set; then
10263   echo "#! /bin/sh" >conf$$.sh
10264   echo  "exit 0"   >>conf$$.sh
10265   chmod +x conf$$.sh
10266   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10267     PATH_SEPARATOR=';'
10268   else
10269     PATH_SEPARATOR=:
10270   fi
10271   rm -f conf$$.sh
10272 fi
10273
10274
10275   as_lineno_1=$LINENO
10276   as_lineno_2=$LINENO
10277   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10278   test "x$as_lineno_1" != "x$as_lineno_2" &&
10279   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10280   # Find who we are.  Look in the path if we contain no path at all
10281   # relative or not.
10282   case $0 in
10283     *[\\/]* ) as_myself=$0 ;;
10284     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285 for as_dir in $PATH
10286 do
10287   IFS=$as_save_IFS
10288   test -z "$as_dir" && as_dir=.
10289   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10290 done
10291
10292        ;;
10293   esac
10294   # We did not find ourselves, most probably we were run as `sh COMMAND'
10295   # in which case we are not to be found in the path.
10296   if test "x$as_myself" = x; then
10297     as_myself=$0
10298   fi
10299   if test ! -f "$as_myself"; then
10300     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10301 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10302    { (exit 1); exit 1; }; }
10303   fi
10304   case $CONFIG_SHELL in
10305   '')
10306     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10308 do
10309   IFS=$as_save_IFS
10310   test -z "$as_dir" && as_dir=.
10311   for as_base in sh bash ksh sh5; do
10312          case $as_dir in
10313          /*)
10314            if ("$as_dir/$as_base" -c '
10315   as_lineno_1=$LINENO
10316   as_lineno_2=$LINENO
10317   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10318   test "x$as_lineno_1" != "x$as_lineno_2" &&
10319   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10320              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10321              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10322              CONFIG_SHELL=$as_dir/$as_base
10323              export CONFIG_SHELL
10324              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10325            fi;;
10326          esac
10327        done
10328 done
10329 ;;
10330   esac
10331
10332   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10333   # uniformly replaced by the line number.  The first 'sed' inserts a
10334   # line-number line before each line; the second 'sed' does the real
10335   # work.  The second script uses 'N' to pair each line-number line
10336   # with the numbered line, and appends trailing '-' during
10337   # substitution so that $LINENO is not a special case at line end.
10338   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10339   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10340   sed '=' <$as_myself |
10341     sed '
10342       N
10343       s,$,-,
10344       : loop
10345       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10346       t loop
10347       s,-$,,
10348       s,^['$as_cr_digits']*\n,,
10349     ' >$as_me.lineno &&
10350   chmod +x $as_me.lineno ||
10351     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10352 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10353    { (exit 1); exit 1; }; }
10354
10355   # Don't try to exec as it changes $[0], causing all sort of problems
10356   # (the dirname of $[0] is not the place where we might find the
10357   # original and so on.  Autoconf is especially sensible to this).
10358   . ./$as_me.lineno
10359   # Exit status is that of the last command.
10360   exit
10361 }
10362
10363
10364 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10365   *c*,-n*) ECHO_N= ECHO_C='
10366 ' ECHO_T='      ' ;;
10367   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10368   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10369 esac
10370
10371 if expr a : '\(a\)' >/dev/null 2>&1; then
10372   as_expr=expr
10373 else
10374   as_expr=false
10375 fi
10376
10377 rm -f conf$$ conf$$.exe conf$$.file
10378 echo >conf$$.file
10379 if ln -s conf$$.file conf$$ 2>/dev/null; then
10380   # We could just check for DJGPP; but this test a) works b) is more generic
10381   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10382   if test -f conf$$.exe; then
10383     # Don't use ln at all; we don't have any links
10384     as_ln_s='cp -p'
10385   else
10386     as_ln_s='ln -s'
10387   fi
10388 elif ln conf$$.file conf$$ 2>/dev/null; then
10389   as_ln_s=ln
10390 else
10391   as_ln_s='cp -p'
10392 fi
10393 rm -f conf$$ conf$$.exe conf$$.file
10394
10395 if mkdir -p . 2>/dev/null; then
10396   as_mkdir_p=:
10397 else
10398   as_mkdir_p=false
10399 fi
10400
10401 as_executable_p="test -f"
10402
10403 # Sed expression to map a string onto a valid CPP name.
10404 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10405
10406 # Sed expression to map a string onto a valid variable name.
10407 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10408
10409
10410 # IFS
10411 # We need space, tab and new line, in precisely that order.
10412 as_nl='
10413 '
10414 IFS="   $as_nl"
10415
10416 # CDPATH.
10417 $as_unset CDPATH
10418
10419 exec 6>&1
10420
10421 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10422 # report actual input values of CONFIG_FILES etc. instead of their
10423 # values after options handling.  Logging --version etc. is OK.
10424 exec 5>>config.log
10425 {
10426   echo
10427   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10428 ## Running $as_me. ##
10429 _ASBOX
10430 } >&5
10431 cat >&5 <<_CSEOF
10432
10433 This file was extended by $as_me, which was
10434 generated by GNU Autoconf 2.57.  Invocation command line was
10435
10436   CONFIG_FILES    = $CONFIG_FILES
10437   CONFIG_HEADERS  = $CONFIG_HEADERS
10438   CONFIG_LINKS    = $CONFIG_LINKS
10439   CONFIG_COMMANDS = $CONFIG_COMMANDS
10440   $ $0 $@
10441
10442 _CSEOF
10443 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10444 echo >&5
10445 _ACEOF
10446
10447 # Files that config.status was made for.
10448 if test -n "$ac_config_files"; then
10449   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10450 fi
10451
10452 if test -n "$ac_config_headers"; then
10453   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10454 fi
10455
10456 if test -n "$ac_config_links"; then
10457   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10458 fi
10459
10460 if test -n "$ac_config_commands"; then
10461   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10462 fi
10463
10464 cat >>$CONFIG_STATUS <<\_ACEOF
10465
10466 ac_cs_usage="\
10467 \`$as_me' instantiates files from templates according to the
10468 current configuration.
10469
10470 Usage: $0 [OPTIONS] [FILE]...
10471
10472   -h, --help       print this help, then exit
10473   -V, --version    print version number, then exit
10474   -q, --quiet      do not print progress messages
10475   -d, --debug      don't remove temporary files
10476       --recheck    update $as_me by reconfiguring in the same conditions
10477   --file=FILE[:TEMPLATE]
10478                    instantiate the configuration file FILE
10479   --header=FILE[:TEMPLATE]
10480                    instantiate the configuration header FILE
10481
10482 Configuration files:
10483 $config_files
10484
10485 Configuration headers:
10486 $config_headers
10487
10488 Configuration commands:
10489 $config_commands
10490
10491 Report bugs to <bug-autoconf@gnu.org>."
10492 _ACEOF
10493
10494 cat >>$CONFIG_STATUS <<_ACEOF
10495 ac_cs_version="\\
10496 config.status
10497 configured by $0, generated by GNU Autoconf 2.57,
10498   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10499
10500 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10501 Free Software Foundation, Inc.
10502 This config.status script is free software; the Free Software Foundation
10503 gives unlimited permission to copy, distribute and modify it."
10504 srcdir=$srcdir
10505 INSTALL="$INSTALL"
10506 _ACEOF
10507
10508 cat >>$CONFIG_STATUS <<\_ACEOF
10509 # If no file are specified by the user, then we need to provide default
10510 # value.  By we need to know if files were specified by the user.
10511 ac_need_defaults=:
10512 while test $# != 0
10513 do
10514   case $1 in
10515   --*=*)
10516     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10517     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10518     ac_shift=:
10519     ;;
10520   -*)
10521     ac_option=$1
10522     ac_optarg=$2
10523     ac_shift=shift
10524     ;;
10525   *) # This is not an option, so the user has probably given explicit
10526      # arguments.
10527      ac_option=$1
10528      ac_need_defaults=false;;
10529   esac
10530
10531   case $ac_option in
10532   # Handling of the options.
10533 _ACEOF
10534 cat >>$CONFIG_STATUS <<\_ACEOF
10535   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10536     ac_cs_recheck=: ;;
10537   --version | --vers* | -V )
10538     echo "$ac_cs_version"; exit 0 ;;
10539   --he | --h)
10540     # Conflict between --help and --header
10541     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10542 Try \`$0 --help' for more information." >&5
10543 echo "$as_me: error: ambiguous option: $1
10544 Try \`$0 --help' for more information." >&2;}
10545    { (exit 1); exit 1; }; };;
10546   --help | --hel | -h )
10547     echo "$ac_cs_usage"; exit 0 ;;
10548   --debug | --d* | -d )
10549     debug=: ;;
10550   --file | --fil | --fi | --f )
10551     $ac_shift
10552     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10553     ac_need_defaults=false;;
10554   --header | --heade | --head | --hea )
10555     $ac_shift
10556     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10557     ac_need_defaults=false;;
10558   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10559   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10560     ac_cs_silent=: ;;
10561
10562   # This is an error.
10563   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10564 Try \`$0 --help' for more information." >&5
10565 echo "$as_me: error: unrecognized option: $1
10566 Try \`$0 --help' for more information." >&2;}
10567    { (exit 1); exit 1; }; } ;;
10568
10569   *) ac_config_targets="$ac_config_targets $1" ;;
10570
10571   esac
10572   shift
10573 done
10574
10575 ac_configure_extra_args=
10576
10577 if $ac_cs_silent; then
10578   exec 6>/dev/null
10579   ac_configure_extra_args="$ac_configure_extra_args --silent"
10580 fi
10581
10582 _ACEOF
10583 cat >>$CONFIG_STATUS <<_ACEOF
10584 if \$ac_cs_recheck; then
10585   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10586   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10587 fi
10588
10589 _ACEOF
10590
10591 cat >>$CONFIG_STATUS <<_ACEOF
10592 #
10593 # INIT-COMMANDS section.
10594 #
10595
10596 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10597
10598 _ACEOF
10599
10600
10601
10602 cat >>$CONFIG_STATUS <<\_ACEOF
10603 for ac_config_target in $ac_config_targets
10604 do
10605   case "$ac_config_target" in
10606   # Handling of arguments.
10607   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10608   "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10609   "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10610   "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10611   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10612   "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10613   "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10614   "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10615   "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10616   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10617   "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10618   "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10619   "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10620   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10621   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10622   "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10623   "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10624   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10625   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10626   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10627 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10628    { (exit 1); exit 1; }; };;
10629   esac
10630 done
10631
10632 # If the user did not use the arguments to specify the items to instantiate,
10633 # then the envvar interface is used.  Set only those that are not.
10634 # We use the long form for the default assignment because of an extremely
10635 # bizarre bug on SunOS 4.1.3.
10636 if $ac_need_defaults; then
10637   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10638   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10639   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10640 fi
10641
10642 # Have a temporary directory for convenience.  Make it in the build tree
10643 # simply because there is no reason to put it here, and in addition,
10644 # creating and moving files from /tmp can sometimes cause problems.
10645 # Create a temporary directory, and hook for its removal unless debugging.
10646 $debug ||
10647 {
10648   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10649   trap '{ (exit 1); exit 1; }' 1 2 13 15
10650 }
10651
10652 # Create a (secure) tmp directory for tmp files.
10653
10654 {
10655   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10656   test -n "$tmp" && test -d "$tmp"
10657 }  ||
10658 {
10659   tmp=./confstat$$-$RANDOM
10660   (umask 077 && mkdir $tmp)
10661 } ||
10662 {
10663    echo "$me: cannot create a temporary directory in ." >&2
10664    { (exit 1); exit 1; }
10665 }
10666
10667 _ACEOF
10668
10669 cat >>$CONFIG_STATUS <<_ACEOF
10670
10671 #
10672 # CONFIG_FILES section.
10673 #
10674
10675 # No need to generate the scripts if there are no CONFIG_FILES.
10676 # This happens for instance when ./config.status config.h
10677 if test -n "\$CONFIG_FILES"; then
10678   # Protect against being on the right side of a sed subst in config.status.
10679   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10680    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10681 s,@SHELL@,$SHELL,;t t
10682 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10683 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10684 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10685 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10686 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10687 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10688 s,@exec_prefix@,$exec_prefix,;t t
10689 s,@prefix@,$prefix,;t t
10690 s,@program_transform_name@,$program_transform_name,;t t
10691 s,@bindir@,$bindir,;t t
10692 s,@sbindir@,$sbindir,;t t
10693 s,@libexecdir@,$libexecdir,;t t
10694 s,@datadir@,$datadir,;t t
10695 s,@sysconfdir@,$sysconfdir,;t t
10696 s,@sharedstatedir@,$sharedstatedir,;t t
10697 s,@localstatedir@,$localstatedir,;t t
10698 s,@libdir@,$libdir,;t t
10699 s,@includedir@,$includedir,;t t
10700 s,@oldincludedir@,$oldincludedir,;t t
10701 s,@infodir@,$infodir,;t t
10702 s,@mandir@,$mandir,;t t
10703 s,@build_alias@,$build_alias,;t t
10704 s,@host_alias@,$host_alias,;t t
10705 s,@target_alias@,$target_alias,;t t
10706 s,@DEFS@,$DEFS,;t t
10707 s,@ECHO_C@,$ECHO_C,;t t
10708 s,@ECHO_N@,$ECHO_N,;t t
10709 s,@ECHO_T@,$ECHO_T,;t t
10710 s,@LIBS@,$LIBS,;t t
10711 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10712 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10713 s,@MAINT@,$MAINT,;t t
10714 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10715 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10716 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10717 s,@CYGPATH_W@,$CYGPATH_W,;t t
10718 s,@PACKAGE@,$PACKAGE,;t t
10719 s,@VERSION@,$VERSION,;t t
10720 s,@ACLOCAL@,$ACLOCAL,;t t
10721 s,@AUTOCONF@,$AUTOCONF,;t t
10722 s,@AUTOMAKE@,$AUTOMAKE,;t t
10723 s,@AUTOHEADER@,$AUTOHEADER,;t t
10724 s,@MAKEINFO@,$MAKEINFO,;t t
10725 s,@AMTAR@,$AMTAR,;t t
10726 s,@install_sh@,$install_sh,;t t
10727 s,@STRIP@,$STRIP,;t t
10728 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10729 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10730 s,@AWK@,$AWK,;t t
10731 s,@SET_MAKE@,$SET_MAKE,;t t
10732 s,@am__leading_dot@,$am__leading_dot,;t t
10733 s,@RANLIB@,$RANLIB,;t t
10734 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10735 s,@CC@,$CC,;t t
10736 s,@CFLAGS@,$CFLAGS,;t t
10737 s,@LDFLAGS@,$LDFLAGS,;t t
10738 s,@CPPFLAGS@,$CPPFLAGS,;t t
10739 s,@ac_ct_CC@,$ac_ct_CC,;t t
10740 s,@EXEEXT@,$EXEEXT,;t t
10741 s,@OBJEXT@,$OBJEXT,;t t
10742 s,@DEPDIR@,$DEPDIR,;t t
10743 s,@am__include@,$am__include,;t t
10744 s,@am__quote@,$am__quote,;t t
10745 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10746 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10747 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10748 s,@CCDEPMODE@,$CCDEPMODE,;t t
10749 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10750 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10751 s,@CXX@,$CXX,;t t
10752 s,@CXXFLAGS@,$CXXFLAGS,;t t
10753 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10754 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10755 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10756 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10757 s,@wxconfig@,$wxconfig,;t t
10758 s,@build@,$build,;t t
10759 s,@build_cpu@,$build_cpu,;t t
10760 s,@build_vendor@,$build_vendor,;t t
10761 s,@build_os@,$build_os,;t t
10762 s,@host@,$host,;t t
10763 s,@host_cpu@,$host_cpu,;t t
10764 s,@host_vendor@,$host_vendor,;t t
10765 s,@host_os@,$host_os,;t t
10766 s,@CPP@,$CPP,;t t
10767 s,@EGREP@,$EGREP,;t t
10768 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10769 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10770 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10771 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10772 s,@lamdir@,$lamdir,;t t
10773 s,@mpienable@,$mpienable,;t t
10774 s,@cgibindir@,$cgibindir,;t t
10775 s,@cgibinurl@,$cgibinurl,;t t
10776 s,@webdatadir@,$webdatadir,;t t
10777 s,@webdataurl@,$webdataurl,;t t
10778 s,@htmldir@,$htmldir,;t t
10779 s,@cgiprograms@,$cgiprograms,;t t
10780 s,@htmldata@,$htmldata,;t t
10781 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10782 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10783 s,@webenabled@,$webenabled,;t t
10784 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10785 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10786 s,@X_CFLAGS@,$X_CFLAGS,;t t
10787 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10788 s,@X_LIBS@,$X_LIBS,;t t
10789 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10790 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10791 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10792 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10793 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10794 s,@my_includes@,$my_includes,;t t
10795 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10796 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10797 s,@wxcflags@,$wxcflags,;t t
10798 s,@wxlibs@,$wxlibs,;t t
10799 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10800 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10801 s,@ctlibs@,$ctlibs,;t t
10802 s,@lamprograms@,$lamprograms,;t t
10803 s,@lamdefs@,$lamdefs,;t t
10804 s,@LIBOBJS@,$LIBOBJS,;t t
10805 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10806 CEOF
10807
10808 _ACEOF
10809
10810   cat >>$CONFIG_STATUS <<\_ACEOF
10811   # Split the substitutions into bite-sized pieces for seds with
10812   # small command number limits, like on Digital OSF/1 and HP-UX.
10813   ac_max_sed_lines=48
10814   ac_sed_frag=1 # Number of current file.
10815   ac_beg=1 # First line for current file.
10816   ac_end=$ac_max_sed_lines # Line after last line for current file.
10817   ac_more_lines=:
10818   ac_sed_cmds=
10819   while $ac_more_lines; do
10820     if test $ac_beg -gt 1; then
10821       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10822     else
10823       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10824     fi
10825     if test ! -s $tmp/subs.frag; then
10826       ac_more_lines=false
10827     else
10828       # The purpose of the label and of the branching condition is to
10829       # speed up the sed processing (if there are no `@' at all, there
10830       # is no need to browse any of the substitutions).
10831       # These are the two extra sed commands mentioned above.
10832       (echo ':t
10833   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10834       if test -z "$ac_sed_cmds"; then
10835         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10836       else
10837         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10838       fi
10839       ac_sed_frag=`expr $ac_sed_frag + 1`
10840       ac_beg=$ac_end
10841       ac_end=`expr $ac_end + $ac_max_sed_lines`
10842     fi
10843   done
10844   if test -z "$ac_sed_cmds"; then
10845     ac_sed_cmds=cat
10846   fi
10847 fi # test -n "$CONFIG_FILES"
10848
10849 _ACEOF
10850 cat >>$CONFIG_STATUS <<\_ACEOF
10851 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10852   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10853   case $ac_file in
10854   - | *:- | *:-:* ) # input from stdin
10855         cat >$tmp/stdin
10856         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10857         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10858   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10859         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10860   * )   ac_file_in=$ac_file.in ;;
10861   esac
10862
10863   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10864   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10865 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10866          X"$ac_file" : 'X\(//\)[^/]' \| \
10867          X"$ac_file" : 'X\(//\)$' \| \
10868          X"$ac_file" : 'X\(/\)' \| \
10869          .     : '\(.\)' 2>/dev/null ||
10870 echo X"$ac_file" |
10871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10873           /^X\(\/\/\)$/{ s//\1/; q; }
10874           /^X\(\/\).*/{ s//\1/; q; }
10875           s/.*/./; q'`
10876   { if $as_mkdir_p; then
10877     mkdir -p "$ac_dir"
10878   else
10879     as_dir="$ac_dir"
10880     as_dirs=
10881     while test ! -d "$as_dir"; do
10882       as_dirs="$as_dir $as_dirs"
10883       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10884 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10885          X"$as_dir" : 'X\(//\)[^/]' \| \
10886          X"$as_dir" : 'X\(//\)$' \| \
10887          X"$as_dir" : 'X\(/\)' \| \
10888          .     : '\(.\)' 2>/dev/null ||
10889 echo X"$as_dir" |
10890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10891           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10892           /^X\(\/\/\)$/{ s//\1/; q; }
10893           /^X\(\/\).*/{ s//\1/; q; }
10894           s/.*/./; q'`
10895     done
10896     test ! -n "$as_dirs" || mkdir $as_dirs
10897   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10898 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10899    { (exit 1); exit 1; }; }; }
10900
10901   ac_builddir=.
10902
10903 if test "$ac_dir" != .; then
10904   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10905   # A "../" for each directory in $ac_dir_suffix.
10906   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10907 else
10908   ac_dir_suffix= ac_top_builddir=
10909 fi
10910
10911 case $srcdir in
10912   .)  # No --srcdir option.  We are building in place.
10913     ac_srcdir=.
10914     if test -z "$ac_top_builddir"; then
10915        ac_top_srcdir=.
10916     else
10917        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10918     fi ;;
10919   [\\/]* | ?:[\\/]* )  # Absolute path.
10920     ac_srcdir=$srcdir$ac_dir_suffix;
10921     ac_top_srcdir=$srcdir ;;
10922   *) # Relative path.
10923     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10924     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10925 esac
10926 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10927 # absolute.
10928 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10929 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10930 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10931 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10932
10933
10934   case $INSTALL in
10935   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10936   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10937   esac
10938
10939   if test x"$ac_file" != x-; then
10940     { echo "$as_me:$LINENO: creating $ac_file" >&5
10941 echo "$as_me: creating $ac_file" >&6;}
10942     rm -f "$ac_file"
10943   fi
10944   # Let's still pretend it is `configure' which instantiates (i.e., don't
10945   # use $as_me), people would be surprised to read:
10946   #    /* config.h.  Generated by config.status.  */
10947   if test x"$ac_file" = x-; then
10948     configure_input=
10949   else
10950     configure_input="$ac_file.  "
10951   fi
10952   configure_input=$configure_input"Generated from `echo $ac_file_in |
10953                                      sed 's,.*/,,'` by configure."
10954
10955   # First look for the input files in the build tree, otherwise in the
10956   # src tree.
10957   ac_file_inputs=`IFS=:
10958     for f in $ac_file_in; do
10959       case $f in
10960       -) echo $tmp/stdin ;;
10961       [\\/$]*)
10962          # Absolute (can't be DOS-style, as IFS=:)
10963          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10964 echo "$as_me: error: cannot find input file: $f" >&2;}
10965    { (exit 1); exit 1; }; }
10966          echo $f;;
10967       *) # Relative
10968          if test -f "$f"; then
10969            # Build tree
10970            echo $f
10971          elif test -f "$srcdir/$f"; then
10972            # Source tree
10973            echo $srcdir/$f
10974          else
10975            # /dev/null tree
10976            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10977 echo "$as_me: error: cannot find input file: $f" >&2;}
10978    { (exit 1); exit 1; }; }
10979          fi;;
10980       esac
10981     done` || { (exit 1); exit 1; }
10982 _ACEOF
10983 cat >>$CONFIG_STATUS <<_ACEOF
10984   sed "$ac_vpsub
10985 $extrasub
10986 _ACEOF
10987 cat >>$CONFIG_STATUS <<\_ACEOF
10988 :t
10989 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10990 s,@configure_input@,$configure_input,;t t
10991 s,@srcdir@,$ac_srcdir,;t t
10992 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10993 s,@top_srcdir@,$ac_top_srcdir,;t t
10994 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10995 s,@builddir@,$ac_builddir,;t t
10996 s,@abs_builddir@,$ac_abs_builddir,;t t
10997 s,@top_builddir@,$ac_top_builddir,;t t
10998 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10999 s,@INSTALL@,$ac_INSTALL,;t t
11000 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11001   rm -f $tmp/stdin
11002   if test x"$ac_file" != x-; then
11003     mv $tmp/out $ac_file
11004   else
11005     cat $tmp/out
11006     rm -f $tmp/out
11007   fi
11008
11009 done
11010 _ACEOF
11011 cat >>$CONFIG_STATUS <<\_ACEOF
11012
11013 #
11014 # CONFIG_HEADER section.
11015 #
11016
11017 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11018 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11019 #
11020 # ac_d sets the value in "#define NAME VALUE" lines.
11021 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
11022 ac_dB='[        ].*$,\1#\2'
11023 ac_dC=' '
11024 ac_dD=',;t'
11025 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11026 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11027 ac_uB='$,\1#\2define\3'
11028 ac_uC=' '
11029 ac_uD=',;t'
11030
11031 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11032   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11033   case $ac_file in
11034   - | *:- | *:-:* ) # input from stdin
11035         cat >$tmp/stdin
11036         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11037         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11038   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11039         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11040   * )   ac_file_in=$ac_file.in ;;
11041   esac
11042
11043   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11044 echo "$as_me: creating $ac_file" >&6;}
11045
11046   # First look for the input files in the build tree, otherwise in the
11047   # src tree.
11048   ac_file_inputs=`IFS=:
11049     for f in $ac_file_in; do
11050       case $f in
11051       -) echo $tmp/stdin ;;
11052       [\\/$]*)
11053          # Absolute (can't be DOS-style, as IFS=:)
11054          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11055 echo "$as_me: error: cannot find input file: $f" >&2;}
11056    { (exit 1); exit 1; }; }
11057          echo $f;;
11058       *) # Relative
11059          if test -f "$f"; then
11060            # Build tree
11061            echo $f
11062          elif test -f "$srcdir/$f"; then
11063            # Source tree
11064            echo $srcdir/$f
11065          else
11066            # /dev/null tree
11067            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11068 echo "$as_me: error: cannot find input file: $f" >&2;}
11069    { (exit 1); exit 1; }; }
11070          fi;;
11071       esac
11072     done` || { (exit 1); exit 1; }
11073   # Remove the trailing spaces.
11074   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
11075
11076 _ACEOF
11077
11078 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11079 # `conftest.undefs', that substitutes the proper values into
11080 # config.h.in to produce config.h.  The first handles `#define'
11081 # templates, and the second `#undef' templates.
11082 # And first: Protect against being on the right side of a sed subst in
11083 # config.status.  Protect against being in an unquoted here document
11084 # in config.status.
11085 rm -f conftest.defines conftest.undefs
11086 # Using a here document instead of a string reduces the quoting nightmare.
11087 # Putting comments in sed scripts is not portable.
11088 #
11089 # `end' is used to avoid that the second main sed command (meant for
11090 # 0-ary CPP macros) applies to n-ary macro definitions.
11091 # See the Autoconf documentation for `clear'.
11092 cat >confdef2sed.sed <<\_ACEOF
11093 s/[\\&,]/\\&/g
11094 s,[\\$`],\\&,g
11095 t clear
11096 : clear
11097 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11098 t end
11099 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11100 : end
11101 _ACEOF
11102 # If some macros were called several times there might be several times
11103 # the same #defines, which is useless.  Nevertheless, we may not want to
11104 # sort them, since we want the *last* AC-DEFINE to be honored.
11105 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11106 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11107 rm -f confdef2sed.sed
11108
11109 # This sed command replaces #undef with comments.  This is necessary, for
11110 # example, in the case of _POSIX_SOURCE, which is predefined and required
11111 # on some systems where configure will not decide to define it.
11112 cat >>conftest.undefs <<\_ACEOF
11113 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11114 _ACEOF
11115
11116 # Break up conftest.defines because some shells have a limit on the size
11117 # of here documents, and old seds have small limits too (100 cmds).
11118 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11119 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11120 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11121 echo '  :' >>$CONFIG_STATUS
11122 rm -f conftest.tail
11123 while grep . conftest.defines >/dev/null
11124 do
11125   # Write a limited-size here document to $tmp/defines.sed.
11126   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11127   # Speed up: don't consider the non `#define' lines.
11128   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
11129   # Work around the forget-to-reset-the-flag bug.
11130   echo 't clr' >>$CONFIG_STATUS
11131   echo ': clr' >>$CONFIG_STATUS
11132   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11133   echo 'CEOF
11134   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11135   rm -f $tmp/in
11136   mv $tmp/out $tmp/in
11137 ' >>$CONFIG_STATUS
11138   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11139   rm -f conftest.defines
11140   mv conftest.tail conftest.defines
11141 done
11142 rm -f conftest.defines
11143 echo '  fi # grep' >>$CONFIG_STATUS
11144 echo >>$CONFIG_STATUS
11145
11146 # Break up conftest.undefs because some shells have a limit on the size
11147 # of here documents, and old seds have small limits too (100 cmds).
11148 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11149 rm -f conftest.tail
11150 while grep . conftest.undefs >/dev/null
11151 do
11152   # Write a limited-size here document to $tmp/undefs.sed.
11153   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11154   # Speed up: don't consider the non `#undef'
11155   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11156   # Work around the forget-to-reset-the-flag bug.
11157   echo 't clr' >>$CONFIG_STATUS
11158   echo ': clr' >>$CONFIG_STATUS
11159   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11160   echo 'CEOF
11161   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11162   rm -f $tmp/in
11163   mv $tmp/out $tmp/in
11164 ' >>$CONFIG_STATUS
11165   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11166   rm -f conftest.undefs
11167   mv conftest.tail conftest.undefs
11168 done
11169 rm -f conftest.undefs
11170
11171 cat >>$CONFIG_STATUS <<\_ACEOF
11172   # Let's still pretend it is `configure' which instantiates (i.e., don't
11173   # use $as_me), people would be surprised to read:
11174   #    /* config.h.  Generated by config.status.  */
11175   if test x"$ac_file" = x-; then
11176     echo "/* Generated by configure.  */" >$tmp/config.h
11177   else
11178     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11179   fi
11180   cat $tmp/in >>$tmp/config.h
11181   rm -f $tmp/in
11182   if test x"$ac_file" != x-; then
11183     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11184       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11185 echo "$as_me: $ac_file is unchanged" >&6;}
11186     else
11187       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11189          X"$ac_file" : 'X\(//\)[^/]' \| \
11190          X"$ac_file" : 'X\(//\)$' \| \
11191          X"$ac_file" : 'X\(/\)' \| \
11192          .     : '\(.\)' 2>/dev/null ||
11193 echo X"$ac_file" |
11194     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11195           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11196           /^X\(\/\/\)$/{ s//\1/; q; }
11197           /^X\(\/\).*/{ s//\1/; q; }
11198           s/.*/./; q'`
11199       { if $as_mkdir_p; then
11200     mkdir -p "$ac_dir"
11201   else
11202     as_dir="$ac_dir"
11203     as_dirs=
11204     while test ! -d "$as_dir"; do
11205       as_dirs="$as_dir $as_dirs"
11206       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11208          X"$as_dir" : 'X\(//\)[^/]' \| \
11209          X"$as_dir" : 'X\(//\)$' \| \
11210          X"$as_dir" : 'X\(/\)' \| \
11211          .     : '\(.\)' 2>/dev/null ||
11212 echo X"$as_dir" |
11213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11214           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11215           /^X\(\/\/\)$/{ s//\1/; q; }
11216           /^X\(\/\).*/{ s//\1/; q; }
11217           s/.*/./; q'`
11218     done
11219     test ! -n "$as_dirs" || mkdir $as_dirs
11220   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11221 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11222    { (exit 1); exit 1; }; }; }
11223
11224       rm -f $ac_file
11225       mv $tmp/config.h $ac_file
11226     fi
11227   else
11228     cat $tmp/config.h
11229     rm -f $tmp/config.h
11230   fi
11231 # Compute $ac_file's index in $config_headers.
11232 _am_stamp_count=1
11233 for _am_header in $config_headers :; do
11234   case $_am_header in
11235     $ac_file | $ac_file:* )
11236       break ;;
11237     * )
11238       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11239   esac
11240 done
11241 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11242 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11243          X$ac_file : 'X\(//\)[^/]' \| \
11244          X$ac_file : 'X\(//\)$' \| \
11245          X$ac_file : 'X\(/\)' \| \
11246          .     : '\(.\)' 2>/dev/null ||
11247 echo X$ac_file |
11248     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11249           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11250           /^X\(\/\/\)$/{ s//\1/; q; }
11251           /^X\(\/\).*/{ s//\1/; q; }
11252           s/.*/./; q'`/stamp-h$_am_stamp_count
11253 done
11254 _ACEOF
11255 cat >>$CONFIG_STATUS <<\_ACEOF
11256
11257 #
11258 # CONFIG_COMMANDS section.
11259 #
11260 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11261   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11262   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11263   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11264 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11265          X"$ac_dest" : 'X\(//\)[^/]' \| \
11266          X"$ac_dest" : 'X\(//\)$' \| \
11267          X"$ac_dest" : 'X\(/\)' \| \
11268          .     : '\(.\)' 2>/dev/null ||
11269 echo X"$ac_dest" |
11270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11271           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11272           /^X\(\/\/\)$/{ s//\1/; q; }
11273           /^X\(\/\).*/{ s//\1/; q; }
11274           s/.*/./; q'`
11275   ac_builddir=.
11276
11277 if test "$ac_dir" != .; then
11278   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11279   # A "../" for each directory in $ac_dir_suffix.
11280   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11281 else
11282   ac_dir_suffix= ac_top_builddir=
11283 fi
11284
11285 case $srcdir in
11286   .)  # No --srcdir option.  We are building in place.
11287     ac_srcdir=.
11288     if test -z "$ac_top_builddir"; then
11289        ac_top_srcdir=.
11290     else
11291        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11292     fi ;;
11293   [\\/]* | ?:[\\/]* )  # Absolute path.
11294     ac_srcdir=$srcdir$ac_dir_suffix;
11295     ac_top_srcdir=$srcdir ;;
11296   *) # Relative path.
11297     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11298     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11299 esac
11300 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11301 # absolute.
11302 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11303 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11304 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11305 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11306
11307
11308   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11309 echo "$as_me: executing $ac_dest commands" >&6;}
11310   case $ac_dest in
11311     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11312   # Strip MF so we end up with the name of the file.
11313   mf=`echo "$mf" | sed -e 's/:.*$//'`
11314   # Check whether this is an Automake generated Makefile or not.
11315   # We used to match only the files named `Makefile.in', but
11316   # some people rename them; so instead we look at the file content.
11317   # Grep'ing the first line is not enough: some people post-process
11318   # each Makefile.in and add a new line on top of each file to say so.
11319   # So let's grep whole file.
11320   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11321     dirpart=`(dirname "$mf") 2>/dev/null ||
11322 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11323          X"$mf" : 'X\(//\)[^/]' \| \
11324          X"$mf" : 'X\(//\)$' \| \
11325          X"$mf" : 'X\(/\)' \| \
11326          .     : '\(.\)' 2>/dev/null ||
11327 echo X"$mf" |
11328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11329           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11330           /^X\(\/\/\)$/{ s//\1/; q; }
11331           /^X\(\/\).*/{ s//\1/; q; }
11332           s/.*/./; q'`
11333   else
11334     continue
11335   fi
11336   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11337   # Extract the definition of DEP_FILES from the Makefile without
11338   # running `make'.
11339   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11340   test -z "$DEPDIR" && continue
11341   # When using ansi2knr, U may be empty or an underscore; expand it
11342   U=`sed -n -e '/^U = / s///p' < "$mf"`
11343   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11344   # We invoke sed twice because it is the simplest approach to
11345   # changing $(DEPDIR) to its actual value in the expansion.
11346   for file in `sed -n -e '
11347     /^DEP_FILES = .*\\\\$/ {
11348       s/^DEP_FILES = //
11349       :loop
11350         s/\\\\$//
11351         p
11352         n
11353         /\\\\$/ b loop
11354       p
11355     }
11356     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11357        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11358     # Make sure the directory exists.
11359     test -f "$dirpart/$file" && continue
11360     fdir=`(dirname "$file") 2>/dev/null ||
11361 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11362          X"$file" : 'X\(//\)[^/]' \| \
11363          X"$file" : 'X\(//\)$' \| \
11364          X"$file" : 'X\(/\)' \| \
11365          .     : '\(.\)' 2>/dev/null ||
11366 echo X"$file" |
11367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11368           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11369           /^X\(\/\/\)$/{ s//\1/; q; }
11370           /^X\(\/\).*/{ s//\1/; q; }
11371           s/.*/./; q'`
11372     { if $as_mkdir_p; then
11373     mkdir -p $dirpart/$fdir
11374   else
11375     as_dir=$dirpart/$fdir
11376     as_dirs=
11377     while test ! -d "$as_dir"; do
11378       as_dirs="$as_dir $as_dirs"
11379       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11381          X"$as_dir" : 'X\(//\)[^/]' \| \
11382          X"$as_dir" : 'X\(//\)$' \| \
11383          X"$as_dir" : 'X\(/\)' \| \
11384          .     : '\(.\)' 2>/dev/null ||
11385 echo X"$as_dir" |
11386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11387           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11388           /^X\(\/\/\)$/{ s//\1/; q; }
11389           /^X\(\/\).*/{ s//\1/; q; }
11390           s/.*/./; q'`
11391     done
11392     test ! -n "$as_dirs" || mkdir $as_dirs
11393   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11394 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11395    { (exit 1); exit 1; }; }; }
11396
11397     # echo "creating $dirpart/$file"
11398     echo '# dummy' > "$dirpart/$file"
11399   done
11400 done
11401  ;;
11402   esac
11403 done
11404 _ACEOF
11405
11406 cat >>$CONFIG_STATUS <<\_ACEOF
11407
11408 { (exit 0); exit 0; }
11409 _ACEOF
11410 chmod +x $CONFIG_STATUS
11411 ac_clean_files=$ac_clean_files_save
11412
11413
11414 # configure is writing to config.log, and then calls config.status.
11415 # config.status does its own redirection, appending to config.log.
11416 # Unfortunately, on DOS this fails, as config.log is still kept open
11417 # by configure, so config.status won't be able to write to it; its
11418 # output is simply discarded.  So we exec the FD to /dev/null,
11419 # effectively closing config.log, so it can be properly (re)opened and
11420 # appended to by config.status.  When coming back to configure, we
11421 # need to make the FD available again.
11422 if test "$no_create" != yes; then
11423   ac_cs_success=:
11424   ac_config_status_args=
11425   test "$silent" = yes &&
11426     ac_config_status_args="$ac_config_status_args --quiet"
11427   exec 5>/dev/null
11428   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11429   exec 5>>config.log
11430   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11431   # would make configure fail if this is the last instruction.
11432   $ac_cs_success || { (exit 1); exit 1; }
11433 fi
11434