r3847: mac changes
[ctsim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
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 LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
41   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42     eval $as_var=C; export $as_var
43   else
44     $as_unset $as_var
45   fi
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50   as_expr=expr
51 else
52   as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56   as_basename=basename
57 else
58   as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65          X"$0" : 'X\(//\)$' \| \
66          X"$0" : 'X\(/\)$' \| \
67          .     : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70           /^X\/\(\/\/\)$/{ s//\1/; q; }
71           /^X\/\(\/\).*/{ s//\1/; q; }
72           s/.*/./; q'`
73
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143              CONFIG_SHELL=$as_dir/$as_base
144              export CONFIG_SHELL
145              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146            fi;;
147          esac
148        done
149 done
150 ;;
151   esac
152
153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154   # uniformly replaced by the line number.  The first 'sed' inserts a
155   # line-number line before each line; the second 'sed' does the real
156   # work.  The second script uses 'N' to pair each line-number line
157   # with the numbered line, and appends trailing '-' during
158   # substitution so that $LINENO is not a special case at line end.
159   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161   sed '=' <$as_myself |
162     sed '
163       N
164       s,$,-,
165       : loop
166       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167       t loop
168       s,-$,,
169       s,^['$as_cr_digits']*\n,,
170     ' >$as_me.lineno &&
171   chmod +x $as_me.lineno ||
172     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173    { (exit 1); exit 1; }; }
174
175   # Don't try to exec as it changes $[0], causing all sort of problems
176   # (the dirname of $[0] is not the place where we might find the
177   # original and so on.  Autoconf is especially sensible to this).
178   . ./$as_me.lineno
179   # Exit status is that of the last command.
180   exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185   *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T='      ' ;;
187   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192   as_expr=expr
193 else
194   as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200   # We could just check for DJGPP; but this test a) works b) is more generic
201   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202   if test -f conf$$.exe; then
203     # Don't use ln at all; we don't have any links
204     as_ln_s='cp -p'
205   else
206     as_ln_s='ln -s'
207   fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209   as_ln_s=ln
210 else
211   as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216   as_mkdir_p=:
217 else
218   as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
233 '
234 IFS="   $as_nl"
235
236 # CDPATH.
237 $as_unset CDPATH
238
239
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245 exec 6>&1
246
247 #
248 # Initializations.
249 #
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete.  It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
262
263 # Identity of this package.
264 PACKAGE_NAME=
265 PACKAGE_TARNAME=
266 PACKAGE_VERSION=
267 PACKAGE_STRING=
268 PACKAGE_BUGREPORT=
269
270 ac_unique_file="src/ctsim.cpp"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
273 #include <stdio.h>
274 #if HAVE_SYS_TYPES_H
275 # include <sys/types.h>
276 #endif
277 #if HAVE_SYS_STAT_H
278 # include <sys/stat.h>
279 #endif
280 #if STDC_HEADERS
281 # include <stdlib.h>
282 # include <stddef.h>
283 #else
284 # if HAVE_STDLIB_H
285 #  include <stdlib.h>
286 # endif
287 #endif
288 #if HAVE_STRING_H
289 # if !STDC_HEADERS && HAVE_MEMORY_H
290 #  include <memory.h>
291 # endif
292 # include <string.h>
293 #endif
294 #if HAVE_STRINGS_H
295 # include <strings.h>
296 #endif
297 #if HAVE_INTTYPES_H
298 # include <inttypes.h>
299 #else
300 # if HAVE_STDINT_H
301 #  include <stdint.h>
302 # endif
303 #endif
304 #if HAVE_UNISTD_H
305 # include <unistd.h>
306 #endif"
307
308 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE 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 HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE wxcflags wxlibs ctlibs lamprograms lamdefs LIBOBJS LTLIBOBJS'
309 ac_subst_files=''
310
311 # Initialize some variables set by options.
312 ac_init_help=
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
316 cache_file=/dev/null
317 exec_prefix=NONE
318 no_create=
319 no_recursion=
320 prefix=NONE
321 program_prefix=NONE
322 program_suffix=NONE
323 program_transform_name=s,x,x,
324 silent=
325 site=
326 srcdir=
327 verbose=
328 x_includes=NONE
329 x_libraries=NONE
330
331 # Installation directory options.
332 # These are left unexpanded so users can "make install exec_prefix=/foo"
333 # and all the variables that are supposed to be based on exec_prefix
334 # by default will actually change.
335 # Use braces instead of parens because sh, perl, etc. also accept them.
336 bindir='${exec_prefix}/bin'
337 sbindir='${exec_prefix}/sbin'
338 libexecdir='${exec_prefix}/libexec'
339 datadir='${prefix}/share'
340 sysconfdir='${prefix}/etc'
341 sharedstatedir='${prefix}/com'
342 localstatedir='${prefix}/var'
343 libdir='${exec_prefix}/lib'
344 includedir='${prefix}/include'
345 oldincludedir='/usr/include'
346 infodir='${prefix}/info'
347 mandir='${prefix}/man'
348
349 ac_prev=
350 for ac_option
351 do
352   # If the previous option needs an argument, assign it.
353   if test -n "$ac_prev"; then
354     eval "$ac_prev=\$ac_option"
355     ac_prev=
356     continue
357   fi
358
359   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
360
361   # Accept the important Cygnus configure options, so we can diagnose typos.
362
363   case $ac_option in
364
365   -bindir | --bindir | --bindi | --bind | --bin | --bi)
366     ac_prev=bindir ;;
367   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
368     bindir=$ac_optarg ;;
369
370   -build | --build | --buil | --bui | --bu)
371     ac_prev=build_alias ;;
372   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373     build_alias=$ac_optarg ;;
374
375   -cache-file | --cache-file | --cache-fil | --cache-fi \
376   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377     ac_prev=cache_file ;;
378   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380     cache_file=$ac_optarg ;;
381
382   --config-cache | -C)
383     cache_file=config.cache ;;
384
385   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
386     ac_prev=datadir ;;
387   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
388   | --da=*)
389     datadir=$ac_optarg ;;
390
391   -disable-* | --disable-*)
392     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
393     # Reject names that are not valid shell variable names.
394     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396    { (exit 1); exit 1; }; }
397     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398     eval "enable_$ac_feature=no" ;;
399
400   -enable-* | --enable-*)
401     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
402     # Reject names that are not valid shell variable names.
403     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405    { (exit 1); exit 1; }; }
406     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407     case $ac_option in
408       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
409       *) ac_optarg=yes ;;
410     esac
411     eval "enable_$ac_feature='$ac_optarg'" ;;
412
413   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415   | --exec | --exe | --ex)
416     ac_prev=exec_prefix ;;
417   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419   | --exec=* | --exe=* | --ex=*)
420     exec_prefix=$ac_optarg ;;
421
422   -gas | --gas | --ga | --g)
423     # Obsolete; use --with-gas.
424     with_gas=yes ;;
425
426   -help | --help | --hel | --he | -h)
427     ac_init_help=long ;;
428   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429     ac_init_help=recursive ;;
430   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431     ac_init_help=short ;;
432
433   -host | --host | --hos | --ho)
434     ac_prev=host_alias ;;
435   -host=* | --host=* | --hos=* | --ho=*)
436     host_alias=$ac_optarg ;;
437
438   -includedir | --includedir | --includedi | --included | --include \
439   | --includ | --inclu | --incl | --inc)
440     ac_prev=includedir ;;
441   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442   | --includ=* | --inclu=* | --incl=* | --inc=*)
443     includedir=$ac_optarg ;;
444
445   -infodir | --infodir | --infodi | --infod | --info | --inf)
446     ac_prev=infodir ;;
447   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448     infodir=$ac_optarg ;;
449
450   -libdir | --libdir | --libdi | --libd)
451     ac_prev=libdir ;;
452   -libdir=* | --libdir=* | --libdi=* | --libd=*)
453     libdir=$ac_optarg ;;
454
455   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456   | --libexe | --libex | --libe)
457     ac_prev=libexecdir ;;
458   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459   | --libexe=* | --libex=* | --libe=*)
460     libexecdir=$ac_optarg ;;
461
462   -localstatedir | --localstatedir | --localstatedi | --localstated \
463   | --localstate | --localstat | --localsta | --localst \
464   | --locals | --local | --loca | --loc | --lo)
465     ac_prev=localstatedir ;;
466   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
469     localstatedir=$ac_optarg ;;
470
471   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
472     ac_prev=mandir ;;
473   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
474     mandir=$ac_optarg ;;
475
476   -nfp | --nfp | --nf)
477     # Obsolete; use --without-fp.
478     with_fp=no ;;
479
480   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481   | --no-cr | --no-c | -n)
482     no_create=yes ;;
483
484   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
486     no_recursion=yes ;;
487
488   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490   | --oldin | --oldi | --old | --ol | --o)
491     ac_prev=oldincludedir ;;
492   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
495     oldincludedir=$ac_optarg ;;
496
497   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
498     ac_prev=prefix ;;
499   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
500     prefix=$ac_optarg ;;
501
502   -program-prefix | --program-prefix | --program-prefi | --program-pref \
503   | --program-pre | --program-pr | --program-p)
504     ac_prev=program_prefix ;;
505   -program-prefix=* | --program-prefix=* | --program-prefi=* \
506   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
507     program_prefix=$ac_optarg ;;
508
509   -program-suffix | --program-suffix | --program-suffi | --program-suff \
510   | --program-suf | --program-su | --program-s)
511     ac_prev=program_suffix ;;
512   -program-suffix=* | --program-suffix=* | --program-suffi=* \
513   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
514     program_suffix=$ac_optarg ;;
515
516   -program-transform-name | --program-transform-name \
517   | --program-transform-nam | --program-transform-na \
518   | --program-transform-n | --program-transform- \
519   | --program-transform | --program-transfor \
520   | --program-transfo | --program-transf \
521   | --program-trans | --program-tran \
522   | --progr-tra | --program-tr | --program-t)
523     ac_prev=program_transform_name ;;
524   -program-transform-name=* | --program-transform-name=* \
525   | --program-transform-nam=* | --program-transform-na=* \
526   | --program-transform-n=* | --program-transform-=* \
527   | --program-transform=* | --program-transfor=* \
528   | --program-transfo=* | --program-transf=* \
529   | --program-trans=* | --program-tran=* \
530   | --progr-tra=* | --program-tr=* | --program-t=*)
531     program_transform_name=$ac_optarg ;;
532
533   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534   | -silent | --silent | --silen | --sile | --sil)
535     silent=yes ;;
536
537   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
538     ac_prev=sbindir ;;
539   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
540   | --sbi=* | --sb=*)
541     sbindir=$ac_optarg ;;
542
543   -sharedstatedir | --sharedstatedir | --sharedstatedi \
544   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545   | --sharedst | --shareds | --shared | --share | --shar \
546   | --sha | --sh)
547     ac_prev=sharedstatedir ;;
548   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
551   | --sha=* | --sh=*)
552     sharedstatedir=$ac_optarg ;;
553
554   -site | --site | --sit)
555     ac_prev=site ;;
556   -site=* | --site=* | --sit=*)
557     site=$ac_optarg ;;
558
559   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
560     ac_prev=srcdir ;;
561   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
562     srcdir=$ac_optarg ;;
563
564   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565   | --syscon | --sysco | --sysc | --sys | --sy)
566     ac_prev=sysconfdir ;;
567   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
569     sysconfdir=$ac_optarg ;;
570
571   -target | --target | --targe | --targ | --tar | --ta | --t)
572     ac_prev=target_alias ;;
573   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
574     target_alias=$ac_optarg ;;
575
576   -v | -verbose | --verbose | --verbos | --verbo | --verb)
577     verbose=yes ;;
578
579   -version | --version | --versio | --versi | --vers | -V)
580     ac_init_version=: ;;
581
582   -with-* | --with-*)
583     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
584     # Reject names that are not valid shell variable names.
585     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586       { echo "$as_me: error: invalid package name: $ac_package" >&2
587    { (exit 1); exit 1; }; }
588     ac_package=`echo $ac_package| sed 's/-/_/g'`
589     case $ac_option in
590       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591       *) ac_optarg=yes ;;
592     esac
593     eval "with_$ac_package='$ac_optarg'" ;;
594
595   -without-* | --without-*)
596     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
597     # Reject names that are not valid shell variable names.
598     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599       { echo "$as_me: error: invalid package name: $ac_package" >&2
600    { (exit 1); exit 1; }; }
601     ac_package=`echo $ac_package | sed 's/-/_/g'`
602     eval "with_$ac_package=no" ;;
603
604   --x)
605     # Obsolete; use --with-x.
606     with_x=yes ;;
607
608   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609   | --x-incl | --x-inc | --x-in | --x-i)
610     ac_prev=x_includes ;;
611   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
613     x_includes=$ac_optarg ;;
614
615   -x-libraries | --x-libraries | --x-librarie | --x-librari \
616   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617     ac_prev=x_libraries ;;
618   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
620     x_libraries=$ac_optarg ;;
621
622   -*) { echo "$as_me: error: unrecognized option: $ac_option
623 Try \`$0 --help' for more information." >&2
624    { (exit 1); exit 1; }; }
625     ;;
626
627   *=*)
628     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629     # Reject names that are not valid shell variable names.
630     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632    { (exit 1); exit 1; }; }
633     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634     eval "$ac_envvar='$ac_optarg'"
635     export $ac_envvar ;;
636
637   *)
638     # FIXME: should be removed in autoconf 3.0.
639     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
643     ;;
644
645   esac
646 done
647
648 if test -n "$ac_prev"; then
649   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650   { echo "$as_me: error: missing argument to $ac_option" >&2
651    { (exit 1); exit 1; }; }
652 fi
653
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
656 do
657   eval ac_val=$`echo $ac_var`
658   case $ac_val in
659     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661    { (exit 1); exit 1; }; };;
662   esac
663 done
664
665 # Be sure to have absolute paths.
666 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667               localstatedir libdir includedir oldincludedir infodir mandir
668 do
669   eval ac_val=$`echo $ac_var`
670   case $ac_val in
671     [\\/$]* | ?:[\\/]* ) ;;
672     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673    { (exit 1); exit 1; }; };;
674   esac
675 done
676
677 # There might be people who depend on the old broken behavior: `$host'
678 # used to hold the argument of --host etc.
679 # FIXME: To remove some day.
680 build=$build_alias
681 host=$host_alias
682 target=$target_alias
683
684 # FIXME: To remove some day.
685 if test "x$host_alias" != x; then
686   if test "x$build_alias" = x; then
687     cross_compiling=maybe
688     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689     If a cross compiler is detected then cross compile mode will be used." >&2
690   elif test "x$build_alias" != "x$host_alias"; then
691     cross_compiling=yes
692   fi
693 fi
694
695 ac_tool_prefix=
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
697
698 test "$silent" = yes && exec 6>/dev/null
699
700
701 # Find the source files, if location was not specified.
702 if test -z "$srcdir"; then
703   ac_srcdir_defaulted=yes
704   # Try the directory containing this script, then its parent.
705   ac_confdir=`(dirname "$0") 2>/dev/null ||
706 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707          X"$0" : 'X\(//\)[^/]' \| \
708          X"$0" : 'X\(//\)$' \| \
709          X"$0" : 'X\(/\)' \| \
710          .     : '\(.\)' 2>/dev/null ||
711 echo X"$0" |
712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714           /^X\(\/\/\)$/{ s//\1/; q; }
715           /^X\(\/\).*/{ s//\1/; q; }
716           s/.*/./; q'`
717   srcdir=$ac_confdir
718   if test ! -r $srcdir/$ac_unique_file; then
719     srcdir=..
720   fi
721 else
722   ac_srcdir_defaulted=no
723 fi
724 if test ! -r $srcdir/$ac_unique_file; then
725   if test "$ac_srcdir_defaulted" = yes; then
726     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
727    { (exit 1); exit 1; }; }
728   else
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730    { (exit 1); exit 1; }; }
731   fi
732 fi
733 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735    { (exit 1); exit 1; }; }
736 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737 ac_env_build_alias_set=${build_alias+set}
738 ac_env_build_alias_value=$build_alias
739 ac_cv_env_build_alias_set=${build_alias+set}
740 ac_cv_env_build_alias_value=$build_alias
741 ac_env_host_alias_set=${host_alias+set}
742 ac_env_host_alias_value=$host_alias
743 ac_cv_env_host_alias_set=${host_alias+set}
744 ac_cv_env_host_alias_value=$host_alias
745 ac_env_target_alias_set=${target_alias+set}
746 ac_env_target_alias_value=$target_alias
747 ac_cv_env_target_alias_set=${target_alias+set}
748 ac_cv_env_target_alias_value=$target_alias
749 ac_env_CC_set=${CC+set}
750 ac_env_CC_value=$CC
751 ac_cv_env_CC_set=${CC+set}
752 ac_cv_env_CC_value=$CC
753 ac_env_CFLAGS_set=${CFLAGS+set}
754 ac_env_CFLAGS_value=$CFLAGS
755 ac_cv_env_CFLAGS_set=${CFLAGS+set}
756 ac_cv_env_CFLAGS_value=$CFLAGS
757 ac_env_LDFLAGS_set=${LDFLAGS+set}
758 ac_env_LDFLAGS_value=$LDFLAGS
759 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_cv_env_LDFLAGS_value=$LDFLAGS
761 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762 ac_env_CPPFLAGS_value=$CPPFLAGS
763 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765 ac_env_CXX_set=${CXX+set}
766 ac_env_CXX_value=$CXX
767 ac_cv_env_CXX_set=${CXX+set}
768 ac_cv_env_CXX_value=$CXX
769 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
770 ac_env_CXXFLAGS_value=$CXXFLAGS
771 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
772 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777
778 #
779 # Report the --help message.
780 #
781 if test "$ac_init_help" = "long"; then
782   # Omit some internal or obsolete options to make the list less imposing.
783   # This message is too long to be a string in the A/UX 3.1 sh.
784   cat <<_ACEOF
785 \`configure' configures this package to adapt to many kinds of systems.
786
787 Usage: $0 [OPTION]... [VAR=VALUE]...
788
789 To assign environment variables (e.g., CC, CFLAGS...), specify them as
790 VAR=VALUE.  See below for descriptions of some of the useful variables.
791
792 Defaults for the options are specified in brackets.
793
794 Configuration:
795   -h, --help              display this help and exit
796       --help=short        display options specific to this package
797       --help=recursive    display the short help of all the included packages
798   -V, --version           display version information and exit
799   -q, --quiet, --silent   do not print \`checking...' messages
800       --cache-file=FILE   cache test results in FILE [disabled]
801   -C, --config-cache      alias for \`--cache-file=config.cache'
802   -n, --no-create         do not create output files
803       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
804
805 _ACEOF
806
807   cat <<_ACEOF
808 Installation directories:
809   --prefix=PREFIX         install architecture-independent files in PREFIX
810                           [$ac_default_prefix]
811   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
812                           [PREFIX]
813
814 By default, \`make install' will install all the files in
815 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
816 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817 for instance \`--prefix=\$HOME'.
818
819 For better control, use the options below.
820
821 Fine tuning of the installation directories:
822   --bindir=DIR           user executables [EPREFIX/bin]
823   --sbindir=DIR          system admin executables [EPREFIX/sbin]
824   --libexecdir=DIR       program executables [EPREFIX/libexec]
825   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
826   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
827   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
828   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
829   --libdir=DIR           object code libraries [EPREFIX/lib]
830   --includedir=DIR       C header files [PREFIX/include]
831   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
832   --infodir=DIR          info documentation [PREFIX/info]
833   --mandir=DIR           man documentation [PREFIX/man]
834 _ACEOF
835
836   cat <<\_ACEOF
837
838 Program names:
839   --program-prefix=PREFIX            prepend PREFIX to installed program names
840   --program-suffix=SUFFIX            append SUFFIX to installed program names
841   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
842
843 X features:
844   --x-includes=DIR    X include files are in DIR
845   --x-libraries=DIR   X library files are in DIR
846
847 System types:
848   --build=BUILD     configure for building on BUILD [guessed]
849   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850 _ACEOF
851 fi
852
853 if test -n "$ac_init_help"; then
854
855   cat <<\_ACEOF
856
857 Optional Features:
858   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
859   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
860   --disable-dependency-tracking Speeds up one-time builds
861   --enable-dependency-tracking  Do not reject slow dependency extractors
862   --enable-debug          Turn on debugging
863   --enable-verbose-warnings
864                           Enable verbose compiler warnings.
865   --enable-static
866                           Enable static executables.
867   --enable-dmalloc        Use dmalloc memory allocation
868   --enable-efence        Use ElectricFence memory allocation
869
870 Optional Packages:
871   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
872   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
873   --with-lam=PATH       Set path of LAM MPI
874   --with-ctn=PATH       Set path of CTN DICOM library
875   --with-cgibin-dir=PATH  Set path of CGI binaries directory
876   --with-cgibin-url=PATH  Set URL path of CGI binaries
877   --with-webdata-dir=PATH Set path of webdata
878   --with-webdata-url=PATH Set URL path of webdata
879   --with-html-dir=PATH    Set directory of html files
880   --with-x                use the X Window System
881
882 Some influential environment variables:
883   CC          C compiler command
884   CFLAGS      C compiler flags
885   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
886               nonstandard directory <lib dir>
887   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
888               headers in a nonstandard directory <include dir>
889   CXX         C++ compiler command
890   CXXFLAGS    C++ compiler flags
891   CPP         C preprocessor
892
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
895
896 _ACEOF
897 fi
898
899 if test "$ac_init_help" = "recursive"; then
900   # If there are subdirs, report their specific --help.
901   ac_popdir=`pwd`
902   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903     test -d $ac_dir || continue
904     ac_builddir=.
905
906 if test "$ac_dir" != .; then
907   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908   # A "../" for each directory in $ac_dir_suffix.
909   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911   ac_dir_suffix= ac_top_builddir=
912 fi
913
914 case $srcdir in
915   .)  # No --srcdir option.  We are building in place.
916     ac_srcdir=.
917     if test -z "$ac_top_builddir"; then
918        ac_top_srcdir=.
919     else
920        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921     fi ;;
922   [\\/]* | ?:[\\/]* )  # Absolute path.
923     ac_srcdir=$srcdir$ac_dir_suffix;
924     ac_top_srcdir=$srcdir ;;
925   *) # Relative path.
926     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927     ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
930 # absolute.
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
935
936     cd $ac_dir
937     # Check for guested configure; otherwise get Cygnus style configure.
938     if test -f $ac_srcdir/configure.gnu; then
939       echo
940       $SHELL $ac_srcdir/configure.gnu  --help=recursive
941     elif test -f $ac_srcdir/configure; then
942       echo
943       $SHELL $ac_srcdir/configure  --help=recursive
944     elif test -f $ac_srcdir/configure.ac ||
945            test -f $ac_srcdir/configure.in; then
946       echo
947       $ac_configure --help
948     else
949       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950     fi
951     cd $ac_popdir
952   done
953 fi
954
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
957   cat <<\_ACEOF
958
959 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
963 _ACEOF
964   exit 0
965 fi
966 exec 5>config.log
967 cat >&5 <<_ACEOF
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
970
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.54.  Invocation command line was
973
974   $ $0 $@
975
976 _ACEOF
977 {
978 cat <<_ASUNAME
979 ## --------- ##
980 ## Platform. ##
981 ## --------- ##
982
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
991
992 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
993 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
996 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
997 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
998 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
999
1000 _ASUNAME
1001
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 for as_dir in $PATH
1004 do
1005   IFS=$as_save_IFS
1006   test -z "$as_dir" && as_dir=.
1007   echo "PATH: $as_dir"
1008 done
1009
1010 } >&5
1011
1012 cat >&5 <<_ACEOF
1013
1014
1015 ## ----------- ##
1016 ## Core tests. ##
1017 ## ----------- ##
1018
1019 _ACEOF
1020
1021
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Also quote any args containing shell meta-characters.
1025 ac_configure_args=
1026 ac_sep=
1027 for ac_arg
1028 do
1029   case $ac_arg in
1030   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031   | --no-cr | --no-c | -n ) continue ;;
1032   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034     continue ;;
1035   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037   esac
1038   ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039   # Get rid of the leading space.
1040   ac_sep=" "
1041 done
1042
1043 # When interrupted or exit'd, cleanup temporary files, and complete
1044 # config.log.  We remove comments because anyway the quotes in there
1045 # would cause problems or look ugly.
1046 # WARNING: Be sure not to use single quotes in there, as some shells,
1047 # such as our DU 5.0 friend, will then `close' the trap.
1048 trap 'exit_status=$?
1049   # Save into config.log some information that might help in debugging.
1050   {
1051     echo
1052
1053     cat <<\_ASBOX
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1057 _ASBOX
1058     echo
1059     # The following way of writing the cache mishandles newlines in values,
1060 {
1061   (set) 2>&1 |
1062     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063     *ac_space=\ *)
1064       sed -n \
1065         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1067       ;;
1068     *)
1069       sed -n \
1070         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1071       ;;
1072     esac;
1073 }
1074     echo
1075
1076     cat <<\_ASBOX
1077 ## ----------------- ##
1078 ## Output variables. ##
1079 ## ----------------- ##
1080 _ASBOX
1081     echo
1082     for ac_var in $ac_subst_vars
1083     do
1084       eval ac_val=$`echo $ac_var`
1085       echo "$ac_var='"'"'$ac_val'"'"'"
1086     done | sort
1087     echo
1088
1089     if test -n "$ac_subst_files"; then
1090       cat <<\_ASBOX
1091 ## ------------- ##
1092 ## Output files. ##
1093 ## ------------- ##
1094 _ASBOX
1095       echo
1096       for ac_var in $ac_subst_files
1097       do
1098         eval ac_val=$`echo $ac_var`
1099         echo "$ac_var='"'"'$ac_val'"'"'"
1100       done | sort
1101       echo
1102     fi
1103
1104     if test -s confdefs.h; then
1105       cat <<\_ASBOX
1106 ## ----------- ##
1107 ## confdefs.h. ##
1108 ## ----------- ##
1109 _ASBOX
1110       echo
1111       sed "/^$/d" confdefs.h | sort
1112       echo
1113     fi
1114     test "$ac_signal" != 0 &&
1115       echo "$as_me: caught signal $ac_signal"
1116     echo "$as_me: exit $exit_status"
1117   } >&5
1118   rm -f core core.* *.core &&
1119   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1120     exit $exit_status
1121      ' 0
1122 for ac_signal in 1 2 13 15; do
1123   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1124 done
1125 ac_signal=0
1126
1127 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1128 rm -rf conftest* confdefs.h
1129 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1130 echo >confdefs.h
1131
1132 # Predefined preprocessor variables.
1133
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_NAME "$PACKAGE_NAME"
1136 _ACEOF
1137
1138
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1141 _ACEOF
1142
1143
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1146 _ACEOF
1147
1148
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_STRING "$PACKAGE_STRING"
1151 _ACEOF
1152
1153
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1156 _ACEOF
1157
1158
1159 # Let the site file select an alternate cache file if it wants to.
1160 # Prefer explicitly selected file to automatically selected ones.
1161 if test -z "$CONFIG_SITE"; then
1162   if test "x$prefix" != xNONE; then
1163     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1164   else
1165     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1166   fi
1167 fi
1168 for ac_site_file in $CONFIG_SITE; do
1169   if test -r "$ac_site_file"; then
1170     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1171 echo "$as_me: loading site script $ac_site_file" >&6;}
1172     sed 's/^/| /' "$ac_site_file" >&5
1173     . "$ac_site_file"
1174   fi
1175 done
1176
1177 if test -r "$cache_file"; then
1178   # Some versions of bash will fail to source /dev/null (special
1179   # files actually), so we avoid doing that.
1180   if test -f "$cache_file"; then
1181     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1182 echo "$as_me: loading cache $cache_file" >&6;}
1183     case $cache_file in
1184       [\\/]* | ?:[\\/]* ) . $cache_file;;
1185       *)                      . ./$cache_file;;
1186     esac
1187   fi
1188 else
1189   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1190 echo "$as_me: creating cache $cache_file" >&6;}
1191   >$cache_file
1192 fi
1193
1194 # Check that the precious variables saved in the cache have kept the same
1195 # value.
1196 ac_cache_corrupted=false
1197 for ac_var in `(set) 2>&1 |
1198                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1199   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1200   eval ac_new_set=\$ac_env_${ac_var}_set
1201   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1202   eval ac_new_val="\$ac_env_${ac_var}_value"
1203   case $ac_old_set,$ac_new_set in
1204     set,)
1205       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1206 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1207       ac_cache_corrupted=: ;;
1208     ,set)
1209       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1210 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1211       ac_cache_corrupted=: ;;
1212     ,);;
1213     *)
1214       if test "x$ac_old_val" != "x$ac_new_val"; then
1215         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1216 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1217         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1218 echo "$as_me:   former value:  $ac_old_val" >&2;}
1219         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1220 echo "$as_me:   current value: $ac_new_val" >&2;}
1221         ac_cache_corrupted=:
1222       fi;;
1223   esac
1224   # Pass precious variables to config.status.
1225   if test "$ac_new_set" = set; then
1226     case $ac_new_val in
1227     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1229     *) ac_arg=$ac_var=$ac_new_val ;;
1230     esac
1231     case " $ac_configure_args " in
1232       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1233       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1234     esac
1235   fi
1236 done
1237 if $ac_cache_corrupted; then
1238   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1239 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1240   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1241 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1242    { (exit 1); exit 1; }; }
1243 fi
1244
1245 ac_ext=c
1246 ac_cpp='$CPP $CPPFLAGS'
1247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270 am__api_version="1.6"
1271 ac_aux_dir=
1272 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1273   if test -f $ac_dir/install-sh; then
1274     ac_aux_dir=$ac_dir
1275     ac_install_sh="$ac_aux_dir/install-sh -c"
1276     break
1277   elif test -f $ac_dir/install.sh; then
1278     ac_aux_dir=$ac_dir
1279     ac_install_sh="$ac_aux_dir/install.sh -c"
1280     break
1281   elif test -f $ac_dir/shtool; then
1282     ac_aux_dir=$ac_dir
1283     ac_install_sh="$ac_aux_dir/shtool install -c"
1284     break
1285   fi
1286 done
1287 if test -z "$ac_aux_dir"; then
1288   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1289 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1290    { (exit 1); exit 1; }; }
1291 fi
1292 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1293 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1294 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1295
1296 # Find a good install program.  We prefer a C program (faster),
1297 # so one script is as good as another.  But avoid the broken or
1298 # incompatible versions:
1299 # SysV /etc/install, /usr/sbin/install
1300 # SunOS /usr/etc/install
1301 # IRIX /sbin/install
1302 # AIX /bin/install
1303 # AmigaOS /C/install, which installs bootblocks on floppy discs
1304 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1305 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1306 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1307 # ./install, which can be erroneously created by make from ./install.sh.
1308 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1309 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1310 if test -z "$INSTALL"; then
1311 if test "${ac_cv_path_install+set}" = set; then
1312   echo $ECHO_N "(cached) $ECHO_C" >&6
1313 else
1314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1315 for as_dir in $PATH
1316 do
1317   IFS=$as_save_IFS
1318   test -z "$as_dir" && as_dir=.
1319   # Account for people who put trailing slashes in PATH elements.
1320 case $as_dir/ in
1321   ./ | .// | /cC/* | \
1322   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1323   /usr/ucb/* ) ;;
1324   *)
1325     # OSF1 and SCO ODT 3.0 have their own names for install.
1326     # Don't use installbsd from OSF since it installs stuff as root
1327     # by default.
1328     for ac_prog in ginstall scoinst install; do
1329       for ac_exec_ext in '' $ac_executable_extensions; do
1330         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1331           if test $ac_prog = install &&
1332             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1333             # AIX install.  It has an incompatible calling convention.
1334             :
1335           elif test $ac_prog = install &&
1336             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1337             # program-specific install script used by HP pwplus--don't use.
1338             :
1339           else
1340             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1341             break 3
1342           fi
1343         fi
1344       done
1345     done
1346     ;;
1347 esac
1348 done
1349
1350
1351 fi
1352   if test "${ac_cv_path_install+set}" = set; then
1353     INSTALL=$ac_cv_path_install
1354   else
1355     # As a last resort, use the slow shell script.  We don't cache a
1356     # path for INSTALL within a source directory, because that will
1357     # break other packages using the cache if that directory is
1358     # removed, or if the path is relative.
1359     INSTALL=$ac_install_sh
1360   fi
1361 fi
1362 echo "$as_me:$LINENO: result: $INSTALL" >&5
1363 echo "${ECHO_T}$INSTALL" >&6
1364
1365 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1366 # It thinks the first close brace ends the variable substitution.
1367 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1368
1369 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1370
1371 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1372
1373 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1374 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1375 # Just in case
1376 sleep 1
1377 echo timestamp > conftest.file
1378 # Do `set' in a subshell so we don't clobber the current shell's
1379 # arguments.  Must try -L first in case configure is actually a
1380 # symlink; some systems play weird games with the mod time of symlinks
1381 # (eg FreeBSD returns the mod time of the symlink's containing
1382 # directory).
1383 if (
1384    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1385    if test "$*" = "X"; then
1386       # -L didn't work.
1387       set X `ls -t $srcdir/configure conftest.file`
1388    fi
1389    rm -f conftest.file
1390    if test "$*" != "X $srcdir/configure conftest.file" \
1391       && test "$*" != "X conftest.file $srcdir/configure"; then
1392
1393       # If neither matched, then we have a broken ls.  This can happen
1394       # if, for instance, CONFIG_SHELL is bash and it inherits a
1395       # broken ls alias from the environment.  This has actually
1396       # happened.  Such a system could not be considered "sane".
1397       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1398 alias in your environment" >&5
1399 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1400 alias in your environment" >&2;}
1401    { (exit 1); exit 1; }; }
1402    fi
1403
1404    test "$2" = conftest.file
1405    )
1406 then
1407    # Ok.
1408    :
1409 else
1410    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1411 Check your system clock" >&5
1412 echo "$as_me: error: newly created file is older than distributed files!
1413 Check your system clock" >&2;}
1414    { (exit 1); exit 1; }; }
1415 fi
1416 echo "$as_me:$LINENO: result: yes" >&5
1417 echo "${ECHO_T}yes" >&6
1418 test "$program_prefix" != NONE &&
1419   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1420 # Use a double $ so make ignores it.
1421 test "$program_suffix" != NONE &&
1422   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1423 # Double any \ or $.  echo might interpret backslashes.
1424 # By default was `s,x,x', remove it if useless.
1425 cat <<\_ACEOF >conftest.sed
1426 s/[\\$]/&&/g;s/;s,x,x,$//
1427 _ACEOF
1428 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1429 rm conftest.sed
1430
1431
1432 # expand $ac_aux_dir to an absolute path
1433 am_aux_dir=`cd $ac_aux_dir && pwd`
1434
1435 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1436 # Use eval to expand $SHELL
1437 if eval "$MISSING --run true"; then
1438   am_missing_run="$MISSING --run "
1439 else
1440   am_missing_run=
1441   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1442 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1443 fi
1444
1445 for ac_prog in gawk mawk nawk awk
1446 do
1447   # Extract the first word of "$ac_prog", so it can be a program name with args.
1448 set dummy $ac_prog; ac_word=$2
1449 echo "$as_me:$LINENO: checking for $ac_word" >&5
1450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451 if test "${ac_cv_prog_AWK+set}" = set; then
1452   echo $ECHO_N "(cached) $ECHO_C" >&6
1453 else
1454   if test -n "$AWK"; then
1455   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1456 else
1457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458 for as_dir in $PATH
1459 do
1460   IFS=$as_save_IFS
1461   test -z "$as_dir" && as_dir=.
1462   for ac_exec_ext in '' $ac_executable_extensions; do
1463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1464     ac_cv_prog_AWK="$ac_prog"
1465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1466     break 2
1467   fi
1468 done
1469 done
1470
1471 fi
1472 fi
1473 AWK=$ac_cv_prog_AWK
1474 if test -n "$AWK"; then
1475   echo "$as_me:$LINENO: result: $AWK" >&5
1476 echo "${ECHO_T}$AWK" >&6
1477 else
1478   echo "$as_me:$LINENO: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1480 fi
1481
1482   test -n "$AWK" && break
1483 done
1484
1485 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1486 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1487 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1488 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1489   echo $ECHO_N "(cached) $ECHO_C" >&6
1490 else
1491   cat >conftest.make <<\_ACEOF
1492 all:
1493         @echo 'ac_maketemp="${MAKE}"'
1494 _ACEOF
1495 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1496 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1497 if test -n "$ac_maketemp"; then
1498   eval ac_cv_prog_make_${ac_make}_set=yes
1499 else
1500   eval ac_cv_prog_make_${ac_make}_set=no
1501 fi
1502 rm -f conftest.make
1503 fi
1504 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1505   echo "$as_me:$LINENO: result: yes" >&5
1506 echo "${ECHO_T}yes" >&6
1507   SET_MAKE=
1508 else
1509   echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1511   SET_MAKE="MAKE=${MAKE-make}"
1512 fi
1513
1514  # test to see if srcdir already configured
1515 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1516    test -f $srcdir/config.status; then
1517   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1518 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1519    { (exit 1); exit 1; }; }
1520 fi
1521
1522 # Define the identity of the package.
1523  PACKAGE=ctsim
1524  VERSION=3.7.0
1525
1526
1527 cat >>confdefs.h <<_ACEOF
1528 #define PACKAGE "$PACKAGE"
1529 _ACEOF
1530
1531
1532 cat >>confdefs.h <<_ACEOF
1533 #define VERSION "$VERSION"
1534 _ACEOF
1535
1536 # Some tools Automake needs.
1537
1538 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1539
1540
1541 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1542
1543
1544 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1545
1546
1547 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1548
1549
1550 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1551
1552
1553 AMTAR=${AMTAR-"${am_missing_run}tar"}
1554
1555 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1556
1557 # Installed binaries are usually stripped using `strip' when the user
1558 # run `make install-strip'.  However `strip' might not be the right
1559 # tool to use in cross-compilation environments, therefore Automake
1560 # will honor the `STRIP' environment variable to overrule this program.
1561 if test "$cross_compiling" != no; then
1562   if test -n "$ac_tool_prefix"; then
1563   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1564 set dummy ${ac_tool_prefix}strip; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_STRIP+set}" = set; then
1568   echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570   if test -n "$STRIP"; then
1571   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1572 else
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1575 do
1576   IFS=$as_save_IFS
1577   test -z "$as_dir" && as_dir=.
1578   for ac_exec_ext in '' $ac_executable_extensions; do
1579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582     break 2
1583   fi
1584 done
1585 done
1586
1587 fi
1588 fi
1589 STRIP=$ac_cv_prog_STRIP
1590 if test -n "$STRIP"; then
1591   echo "$as_me:$LINENO: result: $STRIP" >&5
1592 echo "${ECHO_T}$STRIP" >&6
1593 else
1594   echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1596 fi
1597
1598 fi
1599 if test -z "$ac_cv_prog_STRIP"; then
1600   ac_ct_STRIP=$STRIP
1601   # Extract the first word of "strip", so it can be a program name with args.
1602 set dummy strip; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1606   echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608   if test -n "$ac_ct_STRIP"; then
1609   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1610 else
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1613 do
1614   IFS=$as_save_IFS
1615   test -z "$as_dir" && as_dir=.
1616   for ac_exec_ext in '' $ac_executable_extensions; do
1617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618     ac_cv_prog_ac_ct_STRIP="strip"
1619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620     break 2
1621   fi
1622 done
1623 done
1624
1625   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1626 fi
1627 fi
1628 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1629 if test -n "$ac_ct_STRIP"; then
1630   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1631 echo "${ECHO_T}$ac_ct_STRIP" >&6
1632 else
1633   echo "$as_me:$LINENO: result: no" >&5
1634 echo "${ECHO_T}no" >&6
1635 fi
1636
1637   STRIP=$ac_ct_STRIP
1638 else
1639   STRIP="$ac_cv_prog_STRIP"
1640 fi
1641
1642 fi
1643 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1644
1645 # We need awk for the "check" target.  The system "awk" is bad on
1646 # some platforms.
1647
1648
1649
1650 # Add the stamp file to the list of files AC keeps track of,
1651 # along with our hook.
1652           ac_config_headers="$ac_config_headers config.h"
1653
1654
1655
1656
1657 for ac_prog in gawk mawk nawk awk
1658 do
1659   # Extract the first word of "$ac_prog", so it can be a program name with args.
1660 set dummy $ac_prog; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_AWK+set}" = set; then
1664   echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666   if test -n "$AWK"; then
1667   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1668 else
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1671 do
1672   IFS=$as_save_IFS
1673   test -z "$as_dir" && as_dir=.
1674   for ac_exec_ext in '' $ac_executable_extensions; do
1675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676     ac_cv_prog_AWK="$ac_prog"
1677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678     break 2
1679   fi
1680 done
1681 done
1682
1683 fi
1684 fi
1685 AWK=$ac_cv_prog_AWK
1686 if test -n "$AWK"; then
1687   echo "$as_me:$LINENO: result: $AWK" >&5
1688 echo "${ECHO_T}$AWK" >&6
1689 else
1690   echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1692 fi
1693
1694   test -n "$AWK" && break
1695 done
1696
1697 # Find a good install program.  We prefer a C program (faster),
1698 # so one script is as good as another.  But avoid the broken or
1699 # incompatible versions:
1700 # SysV /etc/install, /usr/sbin/install
1701 # SunOS /usr/etc/install
1702 # IRIX /sbin/install
1703 # AIX /bin/install
1704 # AmigaOS /C/install, which installs bootblocks on floppy discs
1705 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1706 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1707 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1708 # ./install, which can be erroneously created by make from ./install.sh.
1709 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1710 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1711 if test -z "$INSTALL"; then
1712 if test "${ac_cv_path_install+set}" = set; then
1713   echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1717 do
1718   IFS=$as_save_IFS
1719   test -z "$as_dir" && as_dir=.
1720   # Account for people who put trailing slashes in PATH elements.
1721 case $as_dir/ in
1722   ./ | .// | /cC/* | \
1723   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1724   /usr/ucb/* ) ;;
1725   *)
1726     # OSF1 and SCO ODT 3.0 have their own names for install.
1727     # Don't use installbsd from OSF since it installs stuff as root
1728     # by default.
1729     for ac_prog in ginstall scoinst install; do
1730       for ac_exec_ext in '' $ac_executable_extensions; do
1731         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1732           if test $ac_prog = install &&
1733             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1734             # AIX install.  It has an incompatible calling convention.
1735             :
1736           elif test $ac_prog = install &&
1737             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738             # program-specific install script used by HP pwplus--don't use.
1739             :
1740           else
1741             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1742             break 3
1743           fi
1744         fi
1745       done
1746     done
1747     ;;
1748 esac
1749 done
1750
1751
1752 fi
1753   if test "${ac_cv_path_install+set}" = set; then
1754     INSTALL=$ac_cv_path_install
1755   else
1756     # As a last resort, use the slow shell script.  We don't cache a
1757     # path for INSTALL within a source directory, because that will
1758     # break other packages using the cache if that directory is
1759     # removed, or if the path is relative.
1760     INSTALL=$ac_install_sh
1761   fi
1762 fi
1763 echo "$as_me:$LINENO: result: $INSTALL" >&5
1764 echo "${ECHO_T}$INSTALL" >&6
1765
1766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1767 # It thinks the first close brace ends the variable substitution.
1768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1769
1770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1771
1772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1773
1774 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1775 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1776 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1777 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1778   echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780   cat >conftest.make <<\_ACEOF
1781 all:
1782         @echo 'ac_maketemp="${MAKE}"'
1783 _ACEOF
1784 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1785 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1786 if test -n "$ac_maketemp"; then
1787   eval ac_cv_prog_make_${ac_make}_set=yes
1788 else
1789   eval ac_cv_prog_make_${ac_make}_set=no
1790 fi
1791 rm -f conftest.make
1792 fi
1793 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1794   echo "$as_me:$LINENO: result: yes" >&5
1795 echo "${ECHO_T}yes" >&6
1796   SET_MAKE=
1797 else
1798   echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1800   SET_MAKE="MAKE=${MAKE-make}"
1801 fi
1802
1803 if test -n "$ac_tool_prefix"; then
1804   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1805 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_RANLIB+set}" = set; then
1809   echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811   if test -n "$RANLIB"; then
1812   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817   IFS=$as_save_IFS
1818   test -z "$as_dir" && as_dir=.
1819   for ac_exec_ext in '' $ac_executable_extensions; do
1820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823     break 2
1824   fi
1825 done
1826 done
1827
1828 fi
1829 fi
1830 RANLIB=$ac_cv_prog_RANLIB
1831 if test -n "$RANLIB"; then
1832   echo "$as_me:$LINENO: result: $RANLIB" >&5
1833 echo "${ECHO_T}$RANLIB" >&6
1834 else
1835   echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1837 fi
1838
1839 fi
1840 if test -z "$ac_cv_prog_RANLIB"; then
1841   ac_ct_RANLIB=$RANLIB
1842   # Extract the first word of "ranlib", so it can be a program name with args.
1843 set dummy ranlib; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1847   echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849   if test -n "$ac_ct_RANLIB"; then
1850   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1854 do
1855   IFS=$as_save_IFS
1856   test -z "$as_dir" && as_dir=.
1857   for ac_exec_ext in '' $ac_executable_extensions; do
1858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859     ac_cv_prog_ac_ct_RANLIB="ranlib"
1860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861     break 2
1862   fi
1863 done
1864 done
1865
1866   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1867 fi
1868 fi
1869 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1870 if test -n "$ac_ct_RANLIB"; then
1871   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1872 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1873 else
1874   echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1876 fi
1877
1878   RANLIB=$ac_ct_RANLIB
1879 else
1880   RANLIB="$ac_cv_prog_RANLIB"
1881 fi
1882
1883
1884 ac_ext=c
1885 ac_cpp='$CPP $CPPFLAGS'
1886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1889 if test -n "$ac_tool_prefix"; then
1890   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1891 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_CC+set}" = set; then
1895   echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897   if test -n "$CC"; then
1898   ac_cv_prog_CC="$CC" # Let the user override the test.
1899 else
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 for as_dir in $PATH
1902 do
1903   IFS=$as_save_IFS
1904   test -z "$as_dir" && as_dir=.
1905   for ac_exec_ext in '' $ac_executable_extensions; do
1906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909     break 2
1910   fi
1911 done
1912 done
1913
1914 fi
1915 fi
1916 CC=$ac_cv_prog_CC
1917 if test -n "$CC"; then
1918   echo "$as_me:$LINENO: result: $CC" >&5
1919 echo "${ECHO_T}$CC" >&6
1920 else
1921   echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1923 fi
1924
1925 fi
1926 if test -z "$ac_cv_prog_CC"; then
1927   ac_ct_CC=$CC
1928   # Extract the first word of "gcc", so it can be a program name with args.
1929 set dummy gcc; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1933   echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935   if test -n "$ac_ct_CC"; then
1936   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1937 else
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1940 do
1941   IFS=$as_save_IFS
1942   test -z "$as_dir" && as_dir=.
1943   for ac_exec_ext in '' $ac_executable_extensions; do
1944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945     ac_cv_prog_ac_ct_CC="gcc"
1946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947     break 2
1948   fi
1949 done
1950 done
1951
1952 fi
1953 fi
1954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1955 if test -n "$ac_ct_CC"; then
1956   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1957 echo "${ECHO_T}$ac_ct_CC" >&6
1958 else
1959   echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1961 fi
1962
1963   CC=$ac_ct_CC
1964 else
1965   CC="$ac_cv_prog_CC"
1966 fi
1967
1968 if test -z "$CC"; then
1969   if test -n "$ac_tool_prefix"; then
1970   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1971 set dummy ${ac_tool_prefix}cc; ac_word=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975   echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977   if test -n "$CC"; then
1978   ac_cv_prog_CC="$CC" # Let the user override the test.
1979 else
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
1983   IFS=$as_save_IFS
1984   test -z "$as_dir" && as_dir=.
1985   for ac_exec_ext in '' $ac_executable_extensions; do
1986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987     ac_cv_prog_CC="${ac_tool_prefix}cc"
1988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989     break 2
1990   fi
1991 done
1992 done
1993
1994 fi
1995 fi
1996 CC=$ac_cv_prog_CC
1997 if test -n "$CC"; then
1998   echo "$as_me:$LINENO: result: $CC" >&5
1999 echo "${ECHO_T}$CC" >&6
2000 else
2001   echo "$as_me:$LINENO: result: no" >&5
2002 echo "${ECHO_T}no" >&6
2003 fi
2004
2005 fi
2006 if test -z "$ac_cv_prog_CC"; then
2007   ac_ct_CC=$CC
2008   # Extract the first word of "cc", so it can be a program name with args.
2009 set dummy cc; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   if test -n "$ac_ct_CC"; then
2016   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021   IFS=$as_save_IFS
2022   test -z "$as_dir" && as_dir=.
2023   for ac_exec_ext in '' $ac_executable_extensions; do
2024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025     ac_cv_prog_ac_ct_CC="cc"
2026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027     break 2
2028   fi
2029 done
2030 done
2031
2032 fi
2033 fi
2034 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2035 if test -n "$ac_ct_CC"; then
2036   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2037 echo "${ECHO_T}$ac_ct_CC" >&6
2038 else
2039   echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 fi
2042
2043   CC=$ac_ct_CC
2044 else
2045   CC="$ac_cv_prog_CC"
2046 fi
2047
2048 fi
2049 if test -z "$CC"; then
2050   # Extract the first word of "cc", so it can be a program name with args.
2051 set dummy cc; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055   echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057   if test -n "$CC"; then
2058   ac_cv_prog_CC="$CC" # Let the user override the test.
2059 else
2060   ac_prog_rejected=no
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   for ac_exec_ext in '' $ac_executable_extensions; do
2067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2069        ac_prog_rejected=yes
2070        continue
2071      fi
2072     ac_cv_prog_CC="cc"
2073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074     break 2
2075   fi
2076 done
2077 done
2078
2079 if test $ac_prog_rejected = yes; then
2080   # We found a bogon in the path, so make sure we never use it.
2081   set dummy $ac_cv_prog_CC
2082   shift
2083   if test $# != 0; then
2084     # We chose a different compiler from the bogus one.
2085     # However, it has the same basename, so the bogon will be chosen
2086     # first if we set CC to just the basename; use the full file name.
2087     shift
2088     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2089   fi
2090 fi
2091 fi
2092 fi
2093 CC=$ac_cv_prog_CC
2094 if test -n "$CC"; then
2095   echo "$as_me:$LINENO: result: $CC" >&5
2096 echo "${ECHO_T}$CC" >&6
2097 else
2098   echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2100 fi
2101
2102 fi
2103 if test -z "$CC"; then
2104   if test -n "$ac_tool_prefix"; then
2105   for ac_prog in cl
2106   do
2107     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2109 echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112   echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114   if test -n "$CC"; then
2115   ac_cv_prog_CC="$CC" # Let the user override the test.
2116 else
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 for as_dir in $PATH
2119 do
2120   IFS=$as_save_IFS
2121   test -z "$as_dir" && as_dir=.
2122   for ac_exec_ext in '' $ac_executable_extensions; do
2123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2124     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126     break 2
2127   fi
2128 done
2129 done
2130
2131 fi
2132 fi
2133 CC=$ac_cv_prog_CC
2134 if test -n "$CC"; then
2135   echo "$as_me:$LINENO: result: $CC" >&5
2136 echo "${ECHO_T}$CC" >&6
2137 else
2138   echo "$as_me:$LINENO: result: no" >&5
2139 echo "${ECHO_T}no" >&6
2140 fi
2141
2142     test -n "$CC" && break
2143   done
2144 fi
2145 if test -z "$CC"; then
2146   ac_ct_CC=$CC
2147   for ac_prog in cl
2148 do
2149   # Extract the first word of "$ac_prog", so it can be a program name with args.
2150 set dummy $ac_prog; ac_word=$2
2151 echo "$as_me:$LINENO: checking for $ac_word" >&5
2152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2153 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2154   echo $ECHO_N "(cached) $ECHO_C" >&6
2155 else
2156   if test -n "$ac_ct_CC"; then
2157   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2158 else
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 for as_dir in $PATH
2161 do
2162   IFS=$as_save_IFS
2163   test -z "$as_dir" && as_dir=.
2164   for ac_exec_ext in '' $ac_executable_extensions; do
2165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2166     ac_cv_prog_ac_ct_CC="$ac_prog"
2167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168     break 2
2169   fi
2170 done
2171 done
2172
2173 fi
2174 fi
2175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2176 if test -n "$ac_ct_CC"; then
2177   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2178 echo "${ECHO_T}$ac_ct_CC" >&6
2179 else
2180   echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6
2182 fi
2183
2184   test -n "$ac_ct_CC" && break
2185 done
2186
2187   CC=$ac_ct_CC
2188 fi
2189
2190 fi
2191
2192
2193 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2194 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2195    { (exit 1); exit 1; }; }
2196
2197 # Provide some information about the compiler.
2198 echo "$as_me:$LINENO:" \
2199      "checking for C compiler version" >&5
2200 ac_compiler=`set X $ac_compile; echo $2`
2201 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2202   (eval $ac_compiler --version </dev/null >&5) 2>&5
2203   ac_status=$?
2204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205   (exit $ac_status); }
2206 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2207   (eval $ac_compiler -v </dev/null >&5) 2>&5
2208   ac_status=$?
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); }
2211 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2212   (eval $ac_compiler -V </dev/null >&5) 2>&5
2213   ac_status=$?
2214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215   (exit $ac_status); }
2216
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 #include "confdefs.h"
2220
2221 int
2222 main ()
2223 {
2224
2225   ;
2226   return 0;
2227 }
2228 _ACEOF
2229 ac_clean_files_save=$ac_clean_files
2230 ac_clean_files="$ac_clean_files a.out a.exe"
2231 # Try to create an executable without -o first, disregard a.out.
2232 # It will help us diagnose broken compilers, and finding out an intuition
2233 # of exeext.
2234 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2235 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2236 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2237 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2238   (eval $ac_link_default) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; then
2242   # Find the output, starting from the most likely.  This scheme is
2243 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2244 # resort.
2245
2246 # Be careful to initialize this variable, since it used to be cached.
2247 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2248 ac_cv_exeext=
2249 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
2250   test -f "$ac_file" || continue
2251   case $ac_file in
2252     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2253     a.out ) # We found the default executable, but exeext='' is most
2254             # certainly right.
2255             break;;
2256     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2257           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2258           export ac_cv_exeext
2259           break;;
2260     * ) break;;
2261   esac
2262 done
2263 else
2264   echo "$as_me: failed program was:" >&5
2265 cat conftest.$ac_ext >&5
2266 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2267 check \`config.log' for details." >&5
2268 echo "$as_me: error: C compiler cannot create executables
2269 check \`config.log' for details." >&2;}
2270    { (exit 77); exit 77; }; }
2271 fi
2272
2273 ac_exeext=$ac_cv_exeext
2274 echo "$as_me:$LINENO: result: $ac_file" >&5
2275 echo "${ECHO_T}$ac_file" >&6
2276
2277 # Check the compiler produces executables we can run.  If not, either
2278 # the compiler is broken, or we cross compile.
2279 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2280 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2281 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2282 # If not cross compiling, check that we can run a simple program.
2283 if test "$cross_compiling" != yes; then
2284   if { ac_try='./$ac_file'
2285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286   (eval $ac_try) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }; }; then
2290     cross_compiling=no
2291   else
2292     if test "$cross_compiling" = maybe; then
2293         cross_compiling=yes
2294     else
2295         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2296 If you meant to cross compile, use \`--host'." >&5
2297 echo "$as_me: error: cannot run C compiled programs.
2298 If you meant to cross compile, use \`--host'." >&2;}
2299    { (exit 1); exit 1; }; }
2300     fi
2301   fi
2302 fi
2303 echo "$as_me:$LINENO: result: yes" >&5
2304 echo "${ECHO_T}yes" >&6
2305
2306 rm -f a.out a.exe conftest$ac_cv_exeext
2307 ac_clean_files=$ac_clean_files_save
2308 # Check the compiler produces executables we can run.  If not, either
2309 # the compiler is broken, or we cross compile.
2310 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2311 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2312 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2313 echo "${ECHO_T}$cross_compiling" >&6
2314
2315 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2316 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2318   (eval $ac_link) 2>&5
2319   ac_status=$?
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); }; then
2322   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2323 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2324 # work properly (i.e., refer to `conftest.exe'), while it won't with
2325 # `rm'.
2326 for ac_file in conftest.exe conftest conftest.*; do
2327   test -f "$ac_file" || continue
2328   case $ac_file in
2329     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2330     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2331           export ac_cv_exeext
2332           break;;
2333     * ) break;;
2334   esac
2335 done
2336 else
2337   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2338 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2339    { (exit 1); exit 1; }; }
2340 fi
2341
2342 rm -f conftest$ac_cv_exeext
2343 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2344 echo "${ECHO_T}$ac_cv_exeext" >&6
2345
2346 rm -f conftest.$ac_ext
2347 EXEEXT=$ac_cv_exeext
2348 ac_exeext=$EXEEXT
2349 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2350 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2351 if test "${ac_cv_objext+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   cat >conftest.$ac_ext <<_ACEOF
2355 #line $LINENO "configure"
2356 #include "confdefs.h"
2357
2358 int
2359 main ()
2360 {
2361
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 rm -f conftest.o conftest.obj
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368   (eval $ac_compile) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }; then
2372   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2373   case $ac_file in
2374     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2375     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2376        break;;
2377   esac
2378 done
2379 else
2380   echo "$as_me: failed program was:" >&5
2381 cat conftest.$ac_ext >&5
2382 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2383 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2384    { (exit 1); exit 1; }; }
2385 fi
2386
2387 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2388 fi
2389 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2390 echo "${ECHO_T}$ac_cv_objext" >&6
2391 OBJEXT=$ac_cv_objext
2392 ac_objext=$OBJEXT
2393 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2394 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2395 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2396   echo $ECHO_N "(cached) $ECHO_C" >&6
2397 else
2398   cat >conftest.$ac_ext <<_ACEOF
2399 #line $LINENO "configure"
2400 #include "confdefs.h"
2401
2402 int
2403 main ()
2404 {
2405 #ifndef __GNUC__
2406        choke me
2407 #endif
2408
2409   ;
2410   return 0;
2411 }
2412 _ACEOF
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415   (eval $ac_compile) 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); } &&
2419          { ac_try='test -s conftest.$ac_objext'
2420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421   (eval $ac_try) 2>&5
2422   ac_status=$?
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); }; }; then
2425   ac_compiler_gnu=yes
2426 else
2427   echo "$as_me: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2429 ac_compiler_gnu=no
2430 fi
2431 rm -f conftest.$ac_objext conftest.$ac_ext
2432 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2433
2434 fi
2435 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2436 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2437 GCC=`test $ac_compiler_gnu = yes && echo yes`
2438 ac_test_CFLAGS=${CFLAGS+set}
2439 ac_save_CFLAGS=$CFLAGS
2440 CFLAGS="-g"
2441 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2442 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2443 if test "${ac_cv_prog_cc_g+set}" = set; then
2444   echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446   cat >conftest.$ac_ext <<_ACEOF
2447 #line $LINENO "configure"
2448 #include "confdefs.h"
2449
2450 int
2451 main ()
2452 {
2453
2454   ;
2455   return 0;
2456 }
2457 _ACEOF
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460   (eval $ac_compile) 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); } &&
2464          { ac_try='test -s conftest.$ac_objext'
2465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466   (eval $ac_try) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; }; then
2470   ac_cv_prog_cc_g=yes
2471 else
2472   echo "$as_me: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2474 ac_cv_prog_cc_g=no
2475 fi
2476 rm -f conftest.$ac_objext conftest.$ac_ext
2477 fi
2478 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2479 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2480 if test "$ac_test_CFLAGS" = set; then
2481   CFLAGS=$ac_save_CFLAGS
2482 elif test $ac_cv_prog_cc_g = yes; then
2483   if test "$GCC" = yes; then
2484     CFLAGS="-g -O2"
2485   else
2486     CFLAGS="-g"
2487   fi
2488 else
2489   if test "$GCC" = yes; then
2490     CFLAGS="-O2"
2491   else
2492     CFLAGS=
2493   fi
2494 fi
2495 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2496 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2497 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2498   echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500   ac_cv_prog_cc_stdc=no
2501 ac_save_CC=$CC
2502 cat >conftest.$ac_ext <<_ACEOF
2503 #line $LINENO "configure"
2504 #include "confdefs.h"
2505 #include <stdarg.h>
2506 #include <stdio.h>
2507 #include <sys/types.h>
2508 #include <sys/stat.h>
2509 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2510 struct buf { int x; };
2511 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2512 static char *e (p, i)
2513      char **p;
2514      int i;
2515 {
2516   return p[i];
2517 }
2518 static char *f (char * (*g) (char **, int), char **p, ...)
2519 {
2520   char *s;
2521   va_list v;
2522   va_start (v,p);
2523   s = g (p, va_arg (v,int));
2524   va_end (v);
2525   return s;
2526 }
2527 int test (int i, double x);
2528 struct s1 {int (*f) (int a);};
2529 struct s2 {int (*f) (double a);};
2530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2531 int argc;
2532 char **argv;
2533 int
2534 main ()
2535 {
2536 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 # Don't try gcc -ansi; that turns off useful extensions and
2542 # breaks some systems' header files.
2543 # AIX                   -qlanglvl=ansi
2544 # Ultrix and OSF/1      -std1
2545 # HP-UX 10.20 and later -Ae
2546 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2547 # SVR4                  -Xc -D__EXTENSIONS__
2548 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2549 do
2550   CC="$ac_save_CC $ac_arg"
2551   rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553   (eval $ac_compile) 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); } &&
2557          { ac_try='test -s conftest.$ac_objext'
2558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559   (eval $ac_try) 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }; }; then
2563   ac_cv_prog_cc_stdc=$ac_arg
2564 break
2565 else
2566   echo "$as_me: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2568 fi
2569 rm -f conftest.$ac_objext
2570 done
2571 rm -f conftest.$ac_ext conftest.$ac_objext
2572 CC=$ac_save_CC
2573
2574 fi
2575
2576 case "x$ac_cv_prog_cc_stdc" in
2577   x|xno)
2578     echo "$as_me:$LINENO: result: none needed" >&5
2579 echo "${ECHO_T}none needed" >&6 ;;
2580   *)
2581     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2582 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2583     CC="$CC $ac_cv_prog_cc_stdc" ;;
2584 esac
2585
2586 # Some people use a C++ compiler to compile C.  Since we use `exit',
2587 # in C++ we need to declare it.  In case someone uses the same compiler
2588 # for both compiling C and C++ we need to have the C++ compiler decide
2589 # the declaration of exit, since it's the most demanding environment.
2590 cat >conftest.$ac_ext <<_ACEOF
2591 #ifndef __cplusplus
2592   choke me
2593 #endif
2594 _ACEOF
2595 rm -f conftest.$ac_objext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597   (eval $ac_compile) 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); } &&
2601          { ac_try='test -s conftest.$ac_objext'
2602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603   (eval $ac_try) 2>&5
2604   ac_status=$?
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); }; }; then
2607   for ac_declaration in \
2608    ''\
2609    '#include <stdlib.h>' \
2610    'extern "C" void std::exit (int) throw (); using std::exit;' \
2611    'extern "C" void std::exit (int); using std::exit;' \
2612    'extern "C" void exit (int) throw ();' \
2613    'extern "C" void exit (int);' \
2614    'void exit (int);'
2615 do
2616   cat >conftest.$ac_ext <<_ACEOF
2617 #line $LINENO "configure"
2618 #include "confdefs.h"
2619 #include <stdlib.h>
2620 $ac_declaration
2621 int
2622 main ()
2623 {
2624 exit (42);
2625   ;
2626   return 0;
2627 }
2628 _ACEOF
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631   (eval $ac_compile) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); } &&
2635          { ac_try='test -s conftest.$ac_objext'
2636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637   (eval $ac_try) 2>&5
2638   ac_status=$?
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); }; }; then
2641   :
2642 else
2643   echo "$as_me: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2645 continue
2646 fi
2647 rm -f conftest.$ac_objext conftest.$ac_ext
2648   cat >conftest.$ac_ext <<_ACEOF
2649 #line $LINENO "configure"
2650 #include "confdefs.h"
2651 $ac_declaration
2652 int
2653 main ()
2654 {
2655 exit (42);
2656   ;
2657   return 0;
2658 }
2659 _ACEOF
2660 rm -f conftest.$ac_objext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662   (eval $ac_compile) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); } &&
2666          { ac_try='test -s conftest.$ac_objext'
2667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668   (eval $ac_try) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }; }; then
2672   break
2673 else
2674   echo "$as_me: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2676 fi
2677 rm -f conftest.$ac_objext conftest.$ac_ext
2678 done
2679 rm -f conftest*
2680 if test -n "$ac_declaration"; then
2681   echo '#ifdef __cplusplus' >>confdefs.h
2682   echo $ac_declaration      >>confdefs.h
2683   echo '#endif'             >>confdefs.h
2684 fi
2685
2686 else
2687   echo "$as_me: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2689 fi
2690 rm -f conftest.$ac_objext conftest.$ac_ext
2691 ac_ext=c
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696 rm -f .deps 2>/dev/null
2697 mkdir .deps 2>/dev/null
2698 if test -d .deps; then
2699   DEPDIR=.deps
2700 else
2701   # MS-DOS does not allow filenames that begin with a dot.
2702   DEPDIR=_deps
2703 fi
2704 rmdir .deps 2>/dev/null
2705
2706
2707           ac_config_commands="$ac_config_commands depfiles"
2708
2709
2710 am_make=${MAKE-make}
2711 cat > confinc << 'END'
2712 doit:
2713         @echo done
2714 END
2715 # If we don't find an include directive, just comment out the code.
2716 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2717 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2718 am__include="#"
2719 am__quote=
2720 _am_result=none
2721 # First try GNU make style include.
2722 echo "include confinc" > confmf
2723 # We grep out `Entering directory' and `Leaving directory'
2724 # messages which can occur if `w' ends up in MAKEFLAGS.
2725 # In particular we don't look at `^make:' because GNU make might
2726 # be invoked under some other name (usually "gmake"), in which
2727 # case it prints its new name instead of `make'.
2728 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2729    am__include=include
2730    am__quote=
2731    _am_result=GNU
2732 fi
2733 # Now try BSD make style include.
2734 if test "$am__include" = "#"; then
2735    echo '.include "confinc"' > confmf
2736    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2737       am__include=.include
2738       am__quote="\""
2739       _am_result=BSD
2740    fi
2741 fi
2742
2743
2744 echo "$as_me:$LINENO: result: $_am_result" >&5
2745 echo "${ECHO_T}$_am_result" >&6
2746 rm -f confinc confmf
2747
2748 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2749 if test "${enable_dependency_tracking+set}" = set; then
2750   enableval="$enable_dependency_tracking"
2751
2752 fi;
2753 if test "x$enable_dependency_tracking" != xno; then
2754   am_depcomp="$ac_aux_dir/depcomp"
2755   AMDEPBACKSLASH='\'
2756 fi
2757
2758
2759 if test "x$enable_dependency_tracking" != xno; then
2760   AMDEP_TRUE=
2761   AMDEP_FALSE='#'
2762 else
2763   AMDEP_TRUE='#'
2764   AMDEP_FALSE=
2765 fi
2766
2767
2768
2769
2770 depcc="$CC"   am_compiler_list=
2771
2772 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2773 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2774 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2778   # We make a subdir and do the tests there.  Otherwise we can end up
2779   # making bogus files that we don't know about and never remove.  For
2780   # instance it was reported that on HP-UX the gcc test will end up
2781   # making a dummy file named `D' -- because `-MD' means `put the output
2782   # in D'.
2783   mkdir conftest.dir
2784   # Copy depcomp to subdir because otherwise we won't find it if we're
2785   # using a relative directory.
2786   cp "$am_depcomp" conftest.dir
2787   cd conftest.dir
2788
2789   am_cv_CC_dependencies_compiler_type=none
2790   if test "$am_compiler_list" = ""; then
2791      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2792   fi
2793   for depmode in $am_compiler_list; do
2794     # We need to recreate these files for each test, as the compiler may
2795     # overwrite some of them when testing with obscure command lines.
2796     # This happens at least with the AIX C compiler.
2797     echo '#include "conftest.h"' > conftest.c
2798     echo 'int i;' > conftest.h
2799     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2800
2801     case $depmode in
2802     nosideeffect)
2803       # after this tag, mechanisms are not by side-effect, so they'll
2804       # only be used when explicitly requested
2805       if test "x$enable_dependency_tracking" = xyes; then
2806         continue
2807       else
2808         break
2809       fi
2810       ;;
2811     none) break ;;
2812     esac
2813     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2814     # mode.  It turns out that the SunPro C++ compiler does not properly
2815     # handle `-M -o', and we need to detect this.
2816     if depmode=$depmode \
2817        source=conftest.c object=conftest.o \
2818        depfile=conftest.Po tmpdepfile=conftest.TPo \
2819        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2820        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2821        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2822       am_cv_CC_dependencies_compiler_type=$depmode
2823       break
2824     fi
2825   done
2826
2827   cd ..
2828   rm -rf conftest.dir
2829 else
2830   am_cv_CC_dependencies_compiler_type=none
2831 fi
2832
2833 fi
2834 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2835 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2836 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2837
2838
2839 ac_ext=cc
2840 ac_cpp='$CXXCPP $CPPFLAGS'
2841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2844 if test -n "$ac_tool_prefix"; then
2845   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2846   do
2847     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2849 echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2851 if test "${ac_cv_prog_CXX+set}" = set; then
2852   echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854   if test -n "$CXX"; then
2855   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860   IFS=$as_save_IFS
2861   test -z "$as_dir" && as_dir=.
2862   for ac_exec_ext in '' $ac_executable_extensions; do
2863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866     break 2
2867   fi
2868 done
2869 done
2870
2871 fi
2872 fi
2873 CXX=$ac_cv_prog_CXX
2874 if test -n "$CXX"; then
2875   echo "$as_me:$LINENO: result: $CXX" >&5
2876 echo "${ECHO_T}$CXX" >&6
2877 else
2878   echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6
2880 fi
2881
2882     test -n "$CXX" && break
2883   done
2884 fi
2885 if test -z "$CXX"; then
2886   ac_ct_CXX=$CXX
2887   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2888 do
2889   # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 echo "$as_me:$LINENO: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2893 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2894   echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896   if test -n "$ac_ct_CXX"; then
2897   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902   IFS=$as_save_IFS
2903   test -z "$as_dir" && as_dir=.
2904   for ac_exec_ext in '' $ac_executable_extensions; do
2905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906     ac_cv_prog_ac_ct_CXX="$ac_prog"
2907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908     break 2
2909   fi
2910 done
2911 done
2912
2913 fi
2914 fi
2915 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2916 if test -n "$ac_ct_CXX"; then
2917   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2918 echo "${ECHO_T}$ac_ct_CXX" >&6
2919 else
2920   echo "$as_me:$LINENO: result: no" >&5
2921 echo "${ECHO_T}no" >&6
2922 fi
2923
2924   test -n "$ac_ct_CXX" && break
2925 done
2926 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2927
2928   CXX=$ac_ct_CXX
2929 fi
2930
2931
2932 # Provide some information about the compiler.
2933 echo "$as_me:$LINENO:" \
2934      "checking for C++ compiler version" >&5
2935 ac_compiler=`set X $ac_compile; echo $2`
2936 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2937   (eval $ac_compiler --version </dev/null >&5) 2>&5
2938   ac_status=$?
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); }
2941 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2942   (eval $ac_compiler -v </dev/null >&5) 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }
2946 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2947   (eval $ac_compiler -V </dev/null >&5) 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }
2951
2952 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2953 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2954 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2955   echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957   cat >conftest.$ac_ext <<_ACEOF
2958 #line $LINENO "configure"
2959 #include "confdefs.h"
2960
2961 int
2962 main ()
2963 {
2964 #ifndef __GNUC__
2965        choke me
2966 #endif
2967
2968   ;
2969   return 0;
2970 }
2971 _ACEOF
2972 rm -f conftest.$ac_objext
2973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2974   (eval $ac_compile) 2>&5
2975   ac_status=$?
2976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977   (exit $ac_status); } &&
2978          { ac_try='test -s conftest.$ac_objext'
2979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980   (eval $ac_try) 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }; }; then
2984   ac_compiler_gnu=yes
2985 else
2986   echo "$as_me: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2988 ac_compiler_gnu=no
2989 fi
2990 rm -f conftest.$ac_objext conftest.$ac_ext
2991 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2992
2993 fi
2994 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2995 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2996 GXX=`test $ac_compiler_gnu = yes && echo yes`
2997 ac_test_CXXFLAGS=${CXXFLAGS+set}
2998 ac_save_CXXFLAGS=$CXXFLAGS
2999 CXXFLAGS="-g"
3000 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3001 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3002 if test "${ac_cv_prog_cxx_g+set}" = set; then
3003   echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005   cat >conftest.$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3007 #include "confdefs.h"
3008
3009 int
3010 main ()
3011 {
3012
3013   ;
3014   return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.$ac_objext
3018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3019   (eval $ac_compile) 2>&5
3020   ac_status=$?
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); } &&
3023          { ac_try='test -s conftest.$ac_objext'
3024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025   (eval $ac_try) 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); }; }; then
3029   ac_cv_prog_cxx_g=yes
3030 else
3031   echo "$as_me: failed program was:" >&5
3032 cat conftest.$ac_ext >&5
3033 ac_cv_prog_cxx_g=no
3034 fi
3035 rm -f conftest.$ac_objext conftest.$ac_ext
3036 fi
3037 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3038 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3039 if test "$ac_test_CXXFLAGS" = set; then
3040   CXXFLAGS=$ac_save_CXXFLAGS
3041 elif test $ac_cv_prog_cxx_g = yes; then
3042   if test "$GXX" = yes; then
3043     CXXFLAGS="-g -O2"
3044   else
3045     CXXFLAGS="-g"
3046   fi
3047 else
3048   if test "$GXX" = yes; then
3049     CXXFLAGS="-O2"
3050   else
3051     CXXFLAGS=
3052   fi
3053 fi
3054 for ac_declaration in \
3055    ''\
3056    '#include <stdlib.h>' \
3057    'extern "C" void std::exit (int) throw (); using std::exit;' \
3058    'extern "C" void std::exit (int); using std::exit;' \
3059    'extern "C" void exit (int) throw ();' \
3060    'extern "C" void exit (int);' \
3061    'void exit (int);'
3062 do
3063   cat >conftest.$ac_ext <<_ACEOF
3064 #line $LINENO "configure"
3065 #include "confdefs.h"
3066 #include <stdlib.h>
3067 $ac_declaration
3068 int
3069 main ()
3070 {
3071 exit (42);
3072   ;
3073   return 0;
3074 }
3075 _ACEOF
3076 rm -f conftest.$ac_objext
3077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3078   (eval $ac_compile) 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); } &&
3082          { ac_try='test -s conftest.$ac_objext'
3083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084   (eval $ac_try) 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; }; then
3088   :
3089 else
3090   echo "$as_me: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3092 continue
3093 fi
3094 rm -f conftest.$ac_objext conftest.$ac_ext
3095   cat >conftest.$ac_ext <<_ACEOF
3096 #line $LINENO "configure"
3097 #include "confdefs.h"
3098 $ac_declaration
3099 int
3100 main ()
3101 {
3102 exit (42);
3103   ;
3104   return 0;
3105 }
3106 _ACEOF
3107 rm -f conftest.$ac_objext
3108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3109   (eval $ac_compile) 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } &&
3113          { ac_try='test -s conftest.$ac_objext'
3114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115   (eval $ac_try) 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; }; then
3119   break
3120 else
3121   echo "$as_me: failed program was:" >&5
3122 cat conftest.$ac_ext >&5
3123 fi
3124 rm -f conftest.$ac_objext conftest.$ac_ext
3125 done
3126 rm -f conftest*
3127 if test -n "$ac_declaration"; then
3128   echo '#ifdef __cplusplus' >>confdefs.h
3129   echo $ac_declaration      >>confdefs.h
3130   echo '#endif'             >>confdefs.h
3131 fi
3132
3133 ac_ext=c
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138
3139 depcc="$CXX"  am_compiler_list=
3140
3141 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3142 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3143 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3147   # We make a subdir and do the tests there.  Otherwise we can end up
3148   # making bogus files that we don't know about and never remove.  For
3149   # instance it was reported that on HP-UX the gcc test will end up
3150   # making a dummy file named `D' -- because `-MD' means `put the output
3151   # in D'.
3152   mkdir conftest.dir
3153   # Copy depcomp to subdir because otherwise we won't find it if we're
3154   # using a relative directory.
3155   cp "$am_depcomp" conftest.dir
3156   cd conftest.dir
3157
3158   am_cv_CXX_dependencies_compiler_type=none
3159   if test "$am_compiler_list" = ""; then
3160      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3161   fi
3162   for depmode in $am_compiler_list; do
3163     # We need to recreate these files for each test, as the compiler may
3164     # overwrite some of them when testing with obscure command lines.
3165     # This happens at least with the AIX C compiler.
3166     echo '#include "conftest.h"' > conftest.c
3167     echo 'int i;' > conftest.h
3168     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3169
3170     case $depmode in
3171     nosideeffect)
3172       # after this tag, mechanisms are not by side-effect, so they'll
3173       # only be used when explicitly requested
3174       if test "x$enable_dependency_tracking" = xyes; then
3175         continue
3176       else
3177         break
3178       fi
3179       ;;
3180     none) break ;;
3181     esac
3182     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3183     # mode.  It turns out that the SunPro C++ compiler does not properly
3184     # handle `-M -o', and we need to detect this.
3185     if depmode=$depmode \
3186        source=conftest.c object=conftest.o \
3187        depfile=conftest.Po tmpdepfile=conftest.TPo \
3188        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3189        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3190        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3191       am_cv_CXX_dependencies_compiler_type=$depmode
3192       break
3193     fi
3194   done
3195
3196   cd ..
3197   rm -rf conftest.dir
3198 else
3199   am_cv_CXX_dependencies_compiler_type=none
3200 fi
3201
3202 fi
3203 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3204 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3205 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3206
3207
3208
3209 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3210 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3211 if test "${ac_cv_c_bigendian+set}" = set; then
3212   echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214   # See if sys/param.h defines the BYTE_ORDER macro.
3215 cat >conftest.$ac_ext <<_ACEOF
3216 #line $LINENO "configure"
3217 #include "confdefs.h"
3218 #include <sys/types.h>
3219 #include <sys/param.h>
3220
3221 int
3222 main ()
3223 {
3224 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3225  bogus endian macros
3226 #endif
3227
3228   ;
3229   return 0;
3230 }
3231 _ACEOF
3232 rm -f conftest.$ac_objext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234   (eval $ac_compile) 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); } &&
3238          { ac_try='test -s conftest.$ac_objext'
3239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240   (eval $ac_try) 2>&5
3241   ac_status=$?
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); }; }; then
3244   # It does; now see whether it defined to BIG_ENDIAN or not.
3245 cat >conftest.$ac_ext <<_ACEOF
3246 #line $LINENO "configure"
3247 #include "confdefs.h"
3248 #include <sys/types.h>
3249 #include <sys/param.h>
3250
3251 int
3252 main ()
3253 {
3254 #if BYTE_ORDER != BIG_ENDIAN
3255  not big endian
3256 #endif
3257
3258   ;
3259   return 0;
3260 }
3261 _ACEOF
3262 rm -f conftest.$ac_objext
3263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264   (eval $ac_compile) 2>&5
3265   ac_status=$?
3266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); } &&
3268          { ac_try='test -s conftest.$ac_objext'
3269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270   (eval $ac_try) 2>&5
3271   ac_status=$?
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); }; }; then
3274   ac_cv_c_bigendian=yes
3275 else
3276   echo "$as_me: failed program was:" >&5
3277 cat conftest.$ac_ext >&5
3278 ac_cv_c_bigendian=no
3279 fi
3280 rm -f conftest.$ac_objext conftest.$ac_ext
3281 else
3282   echo "$as_me: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3284 # It does not; compile a test program.
3285 if test "$cross_compiling" = yes; then
3286   # try to guess the endianness by grepping values into an object file
3287   ac_cv_c_bigendian=unknown
3288   cat >conftest.$ac_ext <<_ACEOF
3289 #line $LINENO "configure"
3290 #include "confdefs.h"
3291 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3292 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3293 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3294 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3295 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3296 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3297 int
3298 main ()
3299 {
3300  _ascii (); _ebcdic ();
3301   ;
3302   return 0;
3303 }
3304 _ACEOF
3305 rm -f conftest.$ac_objext
3306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3307   (eval $ac_compile) 2>&5
3308   ac_status=$?
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); } &&
3311          { ac_try='test -s conftest.$ac_objext'
3312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313   (eval $ac_try) 2>&5
3314   ac_status=$?
3315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); }; }; then
3317   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3318   ac_cv_c_bigendian=yes
3319 fi
3320 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3321   if test "$ac_cv_c_bigendian" = unknown; then
3322     ac_cv_c_bigendian=no
3323   else
3324     # finding both strings is unlikely to happen, but who knows?
3325     ac_cv_c_bigendian=unknown
3326   fi
3327 fi
3328 else
3329   echo "$as_me: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3331 fi
3332 rm -f conftest.$ac_objext conftest.$ac_ext
3333 else
3334   cat >conftest.$ac_ext <<_ACEOF
3335 #line $LINENO "configure"
3336 #include "confdefs.h"
3337 int
3338 main ()
3339 {
3340   /* Are we little or big endian?  From Harbison&Steele.  */
3341   union
3342   {
3343     long l;
3344     char c[sizeof (long)];
3345   } u;
3346   u.l = 1;
3347   exit (u.c[sizeof (long) - 1] == 1);
3348 }
3349 _ACEOF
3350 rm -f conftest$ac_exeext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3352   (eval $ac_link) 2>&5
3353   ac_status=$?
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357   (eval $ac_try) 2>&5
3358   ac_status=$?
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); }; }; then
3361   ac_cv_c_bigendian=no
3362 else
3363   echo "$as_me: program exited with status $ac_status" >&5
3364 echo "$as_me: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3366 ( exit $ac_status )
3367 ac_cv_c_bigendian=yes
3368 fi
3369 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3370 fi
3371 fi
3372 rm -f conftest.$ac_objext conftest.$ac_ext
3373 fi
3374 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3375 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3376 case $ac_cv_c_bigendian in
3377   yes)
3378
3379 cat >>confdefs.h <<\_ACEOF
3380 #define WORDS_BIGENDIAN 1
3381 _ACEOF
3382  ;;
3383   no)
3384      ;;
3385   *)
3386     { { echo "$as_me:$LINENO: error: unknown endianness
3387 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3388 echo "$as_me: error: unknown endianness
3389 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3390    { (exit 1); exit 1; }; } ;;
3391 esac
3392
3393
3394 # Extract the first word of "wx-config", so it can be a program name with args.
3395 set dummy wx-config; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_path_wxconfig+set}" = set; then
3399   echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401   case $wxconfig in
3402   [\\/]* | ?:[\\/]*)
3403   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3404   ;;
3405   *)
3406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409   IFS=$as_save_IFS
3410   test -z "$as_dir" && as_dir=.
3411   for ac_exec_ext in '' $ac_executable_extensions; do
3412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415     break 2
3416   fi
3417 done
3418 done
3419
3420   ;;
3421 esac
3422 fi
3423 wxconfig=$ac_cv_path_wxconfig
3424
3425 if test -n "$wxconfig"; then
3426   echo "$as_me:$LINENO: result: $wxconfig" >&5
3427 echo "${ECHO_T}$wxconfig" >&6
3428 else
3429   echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6
3431 fi
3432
3433
3434 # Make sure we can run config.sub.
3435 $ac_config_sub sun4 >/dev/null 2>&1 ||
3436   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3437 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3438    { (exit 1); exit 1; }; }
3439
3440 echo "$as_me:$LINENO: checking build system type" >&5
3441 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3442 if test "${ac_cv_build+set}" = set; then
3443   echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445   ac_cv_build_alias=$build_alias
3446 test -z "$ac_cv_build_alias" &&
3447   ac_cv_build_alias=`$ac_config_guess`
3448 test -z "$ac_cv_build_alias" &&
3449   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3450 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3451    { (exit 1); exit 1; }; }
3452 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3453   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3454 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3455    { (exit 1); exit 1; }; }
3456
3457 fi
3458 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3459 echo "${ECHO_T}$ac_cv_build" >&6
3460 build=$ac_cv_build
3461 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3462 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3463 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3464
3465
3466 echo "$as_me:$LINENO: checking host system type" >&5
3467 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3468 if test "${ac_cv_host+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   ac_cv_host_alias=$host_alias
3472 test -z "$ac_cv_host_alias" &&
3473   ac_cv_host_alias=$ac_cv_build_alias
3474 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3475   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3476 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3477    { (exit 1); exit 1; }; }
3478
3479 fi
3480 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3481 echo "${ECHO_T}$ac_cv_host" >&6
3482 host=$ac_cv_host
3483 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3484 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3485 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3486
3487
3488 echo "$as_me:$LINENO: checking for inline" >&5
3489 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3490 if test "${ac_cv_c_inline+set}" = set; then
3491   echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493   ac_cv_c_inline=no
3494 for ac_kw in inline __inline__ __inline; do
3495   cat >conftest.$ac_ext <<_ACEOF
3496 #line $LINENO "configure"
3497 #include "confdefs.h"
3498 #ifndef __cplusplus
3499 typedef int foo_t;
3500 static $ac_kw foo_t static_foo () {return 0; }
3501 $ac_kw foo_t foo () {return 0; }
3502 #endif
3503
3504 _ACEOF
3505 rm -f conftest.$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507   (eval $ac_compile) 2>&5
3508   ac_status=$?
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } &&
3511          { ac_try='test -s conftest.$ac_objext'
3512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513   (eval $ac_try) 2>&5
3514   ac_status=$?
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); }; }; then
3517   ac_cv_c_inline=$ac_kw; break
3518 else
3519   echo "$as_me: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3521 fi
3522 rm -f conftest.$ac_objext conftest.$ac_ext
3523 done
3524
3525 fi
3526 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3527 echo "${ECHO_T}$ac_cv_c_inline" >&6
3528 case $ac_cv_c_inline in
3529   inline | yes) ;;
3530   no)
3531 cat >>confdefs.h <<\_ACEOF
3532 #define inline
3533 _ACEOF
3534  ;;
3535   *)  cat >>confdefs.h <<_ACEOF
3536 #define inline $ac_cv_c_inline
3537 _ACEOF
3538  ;;
3539 esac
3540
3541 ac_ext=c
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3547 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3548 # On Suns, sometimes $CPP names a directory.
3549 if test -n "$CPP" && test -d "$CPP"; then
3550   CPP=
3551 fi
3552 if test -z "$CPP"; then
3553   if test "${ac_cv_prog_CPP+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556       # Double quotes because CPP needs to be expanded
3557     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3558     do
3559       ac_preproc_ok=false
3560 for ac_c_preproc_warn_flag in '' yes
3561 do
3562   # Use a header file that comes with gcc, so configuring glibc
3563   # with a fresh cross-compiler works.
3564   # On the NeXT, cc -E runs the code through the compiler's parser,
3565   # not just through cpp. "Syntax error" is here to catch this case.
3566   cat >conftest.$ac_ext <<_ACEOF
3567 #line $LINENO "configure"
3568 #include "confdefs.h"
3569 #include <assert.h>
3570                      Syntax error
3571 _ACEOF
3572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3573   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3574   ac_status=$?
3575   grep -v '^ *+' conftest.er1 >conftest.err
3576   rm -f conftest.er1
3577   cat conftest.err >&5
3578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); } >/dev/null; then
3580   if test -s conftest.err; then
3581     ac_cpp_err=$ac_c_preproc_warn_flag
3582   else
3583     ac_cpp_err=
3584   fi
3585 else
3586   ac_cpp_err=yes
3587 fi
3588 if test -z "$ac_cpp_err"; then
3589   :
3590 else
3591   echo "$as_me: failed program was:" >&5
3592   cat conftest.$ac_ext >&5
3593   # Broken: fails on valid input.
3594 continue
3595 fi
3596 rm -f conftest.err conftest.$ac_ext
3597
3598   # OK, works on sane cases.  Now check whether non-existent headers
3599   # can be detected and how.
3600   cat >conftest.$ac_ext <<_ACEOF
3601 #line $LINENO "configure"
3602 #include "confdefs.h"
3603 #include <ac_nonexistent.h>
3604 _ACEOF
3605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3606   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3607   ac_status=$?
3608   grep -v '^ *+' conftest.er1 >conftest.err
3609   rm -f conftest.er1
3610   cat conftest.err >&5
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); } >/dev/null; then
3613   if test -s conftest.err; then
3614     ac_cpp_err=$ac_c_preproc_warn_flag
3615   else
3616     ac_cpp_err=
3617   fi
3618 else
3619   ac_cpp_err=yes
3620 fi
3621 if test -z "$ac_cpp_err"; then
3622   # Broken: success on invalid input.
3623 continue
3624 else
3625   echo "$as_me: failed program was:" >&5
3626   cat conftest.$ac_ext >&5
3627   # Passes both tests.
3628 ac_preproc_ok=:
3629 break
3630 fi
3631 rm -f conftest.err conftest.$ac_ext
3632
3633 done
3634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635 rm -f conftest.err conftest.$ac_ext
3636 if $ac_preproc_ok; then
3637   break
3638 fi
3639
3640     done
3641     ac_cv_prog_CPP=$CPP
3642
3643 fi
3644   CPP=$ac_cv_prog_CPP
3645 else
3646   ac_cv_prog_CPP=$CPP
3647 fi
3648 echo "$as_me:$LINENO: result: $CPP" >&5
3649 echo "${ECHO_T}$CPP" >&6
3650 ac_preproc_ok=false
3651 for ac_c_preproc_warn_flag in '' yes
3652 do
3653   # Use a header file that comes with gcc, so configuring glibc
3654   # with a fresh cross-compiler works.
3655   # On the NeXT, cc -E runs the code through the compiler's parser,
3656   # not just through cpp. "Syntax error" is here to catch this case.
3657   cat >conftest.$ac_ext <<_ACEOF
3658 #line $LINENO "configure"
3659 #include "confdefs.h"
3660 #include <assert.h>
3661                      Syntax error
3662 _ACEOF
3663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3664   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3665   ac_status=$?
3666   grep -v '^ *+' conftest.er1 >conftest.err
3667   rm -f conftest.er1
3668   cat conftest.err >&5
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } >/dev/null; then
3671   if test -s conftest.err; then
3672     ac_cpp_err=$ac_c_preproc_warn_flag
3673   else
3674     ac_cpp_err=
3675   fi
3676 else
3677   ac_cpp_err=yes
3678 fi
3679 if test -z "$ac_cpp_err"; then
3680   :
3681 else
3682   echo "$as_me: failed program was:" >&5
3683   cat conftest.$ac_ext >&5
3684   # Broken: fails on valid input.
3685 continue
3686 fi
3687 rm -f conftest.err conftest.$ac_ext
3688
3689   # OK, works on sane cases.  Now check whether non-existent headers
3690   # can be detected and how.
3691   cat >conftest.$ac_ext <<_ACEOF
3692 #line $LINENO "configure"
3693 #include "confdefs.h"
3694 #include <ac_nonexistent.h>
3695 _ACEOF
3696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3698   ac_status=$?
3699   grep -v '^ *+' conftest.er1 >conftest.err
3700   rm -f conftest.er1
3701   cat conftest.err >&5
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); } >/dev/null; then
3704   if test -s conftest.err; then
3705     ac_cpp_err=$ac_c_preproc_warn_flag
3706   else
3707     ac_cpp_err=
3708   fi
3709 else
3710   ac_cpp_err=yes
3711 fi
3712 if test -z "$ac_cpp_err"; then
3713   # Broken: success on invalid input.
3714 continue
3715 else
3716   echo "$as_me: failed program was:" >&5
3717   cat conftest.$ac_ext >&5
3718   # Passes both tests.
3719 ac_preproc_ok=:
3720 break
3721 fi
3722 rm -f conftest.err conftest.$ac_ext
3723
3724 done
3725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3726 rm -f conftest.err conftest.$ac_ext
3727 if $ac_preproc_ok; then
3728   :
3729 else
3730   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3731 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3732    { (exit 1); exit 1; }; }
3733 fi
3734
3735 ac_ext=c
3736 ac_cpp='$CPP $CPPFLAGS'
3737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740
3741
3742 echo "$as_me:$LINENO: checking for egrep" >&5
3743 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3744 if test "${ac_cv_prog_egrep+set}" = set; then
3745   echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3748     then ac_cv_prog_egrep='grep -E'
3749     else ac_cv_prog_egrep='egrep'
3750     fi
3751 fi
3752 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3753 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3754  EGREP=$ac_cv_prog_egrep
3755
3756
3757 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3758 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3759 if test "${ac_cv_header_stdc+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   cat >conftest.$ac_ext <<_ACEOF
3763 #line $LINENO "configure"
3764 #include "confdefs.h"
3765 #include <stdlib.h>
3766 #include <stdarg.h>
3767 #include <string.h>
3768 #include <float.h>
3769
3770 _ACEOF
3771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3772   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3773   ac_status=$?
3774   grep -v '^ *+' conftest.er1 >conftest.err
3775   rm -f conftest.er1
3776   cat conftest.err >&5
3777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778   (exit $ac_status); } >/dev/null; then
3779   if test -s conftest.err; then
3780     ac_cpp_err=$ac_c_preproc_warn_flag
3781   else
3782     ac_cpp_err=
3783   fi
3784 else
3785   ac_cpp_err=yes
3786 fi
3787 if test -z "$ac_cpp_err"; then
3788   ac_cv_header_stdc=yes
3789 else
3790   echo "$as_me: failed program was:" >&5
3791   cat conftest.$ac_ext >&5
3792   ac_cv_header_stdc=no
3793 fi
3794 rm -f conftest.err conftest.$ac_ext
3795
3796 if test $ac_cv_header_stdc = yes; then
3797   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3798   cat >conftest.$ac_ext <<_ACEOF
3799 #line $LINENO "configure"
3800 #include "confdefs.h"
3801 #include <string.h>
3802
3803 _ACEOF
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805   $EGREP "memchr" >/dev/null 2>&1; then
3806   :
3807 else
3808   ac_cv_header_stdc=no
3809 fi
3810 rm -f conftest*
3811
3812 fi
3813
3814 if test $ac_cv_header_stdc = yes; then
3815   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3816   cat >conftest.$ac_ext <<_ACEOF
3817 #line $LINENO "configure"
3818 #include "confdefs.h"
3819 #include <stdlib.h>
3820
3821 _ACEOF
3822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3823   $EGREP "free" >/dev/null 2>&1; then
3824   :
3825 else
3826   ac_cv_header_stdc=no
3827 fi
3828 rm -f conftest*
3829
3830 fi
3831
3832 if test $ac_cv_header_stdc = yes; then
3833   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3834   if test "$cross_compiling" = yes; then
3835   :
3836 else
3837   cat >conftest.$ac_ext <<_ACEOF
3838 #line $LINENO "configure"
3839 #include "confdefs.h"
3840 #include <ctype.h>
3841 #if ((' ' & 0x0FF) == 0x020)
3842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3844 #else
3845 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3846                      || ('j' <= (c) && (c) <= 'r') \
3847                      || ('s' <= (c) && (c) <= 'z'))
3848 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3849 #endif
3850
3851 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3852 int
3853 main ()
3854 {
3855   int i;
3856   for (i = 0; i < 256; i++)
3857     if (XOR (islower (i), ISLOWER (i))
3858         || toupper (i) != TOUPPER (i))
3859       exit(2);
3860   exit (0);
3861 }
3862 _ACEOF
3863 rm -f conftest$ac_exeext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3865   (eval $ac_link) 2>&5
3866   ac_status=$?
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870   (eval $ac_try) 2>&5
3871   ac_status=$?
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); }; }; then
3874   :
3875 else
3876   echo "$as_me: program exited with status $ac_status" >&5
3877 echo "$as_me: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3879 ( exit $ac_status )
3880 ac_cv_header_stdc=no
3881 fi
3882 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3883 fi
3884 fi
3885 fi
3886 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3887 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3888 if test $ac_cv_header_stdc = yes; then
3889
3890 cat >>confdefs.h <<\_ACEOF
3891 #define STDC_HEADERS 1
3892 _ACEOF
3893
3894 fi
3895
3896 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3907                   inttypes.h stdint.h unistd.h
3908 do
3909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3910 echo "$as_me:$LINENO: checking for $ac_header" >&5
3911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   cat >conftest.$ac_ext <<_ACEOF
3916 #line $LINENO "configure"
3917 #include "confdefs.h"
3918 $ac_includes_default
3919
3920 #include <$ac_header>
3921 _ACEOF
3922 rm -f conftest.$ac_objext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924   (eval $ac_compile) 2>&5
3925   ac_status=$?
3926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927   (exit $ac_status); } &&
3928          { ac_try='test -s conftest.$ac_objext'
3929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930   (eval $ac_try) 2>&5
3931   ac_status=$?
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); }; }; then
3934   eval "$as_ac_Header=yes"
3935 else
3936   echo "$as_me: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3938 eval "$as_ac_Header=no"
3939 fi
3940 rm -f conftest.$ac_objext conftest.$ac_ext
3941 fi
3942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3945   cat >>confdefs.h <<_ACEOF
3946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3947 _ACEOF
3948
3949 fi
3950
3951 done
3952
3953
3954 echo "$as_me:$LINENO: checking for short" >&5
3955 echo $ECHO_N "checking for short... $ECHO_C" >&6
3956 if test "${ac_cv_type_short+set}" = set; then
3957   echo $ECHO_N "(cached) $ECHO_C" >&6
3958 else
3959   cat >conftest.$ac_ext <<_ACEOF
3960 #line $LINENO "configure"
3961 #include "confdefs.h"
3962 $ac_includes_default
3963 int
3964 main ()
3965 {
3966 if ((short *) 0)
3967   return 0;
3968 if (sizeof (short))
3969   return 0;
3970   ;
3971   return 0;
3972 }
3973 _ACEOF
3974 rm -f conftest.$ac_objext
3975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976   (eval $ac_compile) 2>&5
3977   ac_status=$?
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); } &&
3980          { ac_try='test -s conftest.$ac_objext'
3981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982   (eval $ac_try) 2>&5
3983   ac_status=$?
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); }; }; then
3986   ac_cv_type_short=yes
3987 else
3988   echo "$as_me: failed program was:" >&5
3989 cat conftest.$ac_ext >&5
3990 ac_cv_type_short=no
3991 fi
3992 rm -f conftest.$ac_objext conftest.$ac_ext
3993 fi
3994 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3995 echo "${ECHO_T}$ac_cv_type_short" >&6
3996
3997 echo "$as_me:$LINENO: checking size of short" >&5
3998 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3999 if test "${ac_cv_sizeof_short+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   if test "$ac_cv_type_short" = yes; then
4003   # The cast to unsigned long works around a bug in the HP C Compiler
4004   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4005   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4006   # This bug is HP SR number 8606223364.
4007   if test "$cross_compiling" = yes; then
4008   # Depending upon the size, compute the lo and hi bounds.
4009 cat >conftest.$ac_ext <<_ACEOF
4010 #line $LINENO "configure"
4011 #include "confdefs.h"
4012 $ac_includes_default
4013 int
4014 main ()
4015 {
4016 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4017 test_array [0] = 0
4018
4019   ;
4020   return 0;
4021 }
4022 _ACEOF
4023 rm -f conftest.$ac_objext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4025   (eval $ac_compile) 2>&5
4026   ac_status=$?
4027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); } &&
4029          { ac_try='test -s conftest.$ac_objext'
4030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031   (eval $ac_try) 2>&5
4032   ac_status=$?
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); }; }; then
4035   ac_lo=0 ac_mid=0
4036   while :; do
4037     cat >conftest.$ac_ext <<_ACEOF
4038 #line $LINENO "configure"
4039 #include "confdefs.h"
4040 $ac_includes_default
4041 int
4042 main ()
4043 {
4044 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4045 test_array [0] = 0
4046
4047   ;
4048   return 0;
4049 }
4050 _ACEOF
4051 rm -f conftest.$ac_objext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053   (eval $ac_compile) 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); } &&
4057          { ac_try='test -s conftest.$ac_objext'
4058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059   (eval $ac_try) 2>&5
4060   ac_status=$?
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); }; }; then
4063   ac_hi=$ac_mid; break
4064 else
4065   echo "$as_me: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 ac_lo=`expr $ac_mid + 1`
4068                     if test $ac_lo -le $ac_mid; then
4069                       ac_lo= ac_hi=
4070                       break
4071                     fi
4072                     ac_mid=`expr 2 '*' $ac_mid + 1`
4073 fi
4074 rm -f conftest.$ac_objext conftest.$ac_ext
4075   done
4076 else
4077   echo "$as_me: failed program was:" >&5
4078 cat conftest.$ac_ext >&5
4079 cat >conftest.$ac_ext <<_ACEOF
4080 #line $LINENO "configure"
4081 #include "confdefs.h"
4082 $ac_includes_default
4083 int
4084 main ()
4085 {
4086 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4087 test_array [0] = 0
4088
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095   (eval $ac_compile) 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); } &&
4099          { ac_try='test -s conftest.$ac_objext'
4100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101   (eval $ac_try) 2>&5
4102   ac_status=$?
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); }; }; then
4105   ac_hi=-1 ac_mid=-1
4106   while :; do
4107     cat >conftest.$ac_ext <<_ACEOF
4108 #line $LINENO "configure"
4109 #include "confdefs.h"
4110 $ac_includes_default
4111 int
4112 main ()
4113 {
4114 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4115 test_array [0] = 0
4116
4117   ;
4118   return 0;
4119 }
4120 _ACEOF
4121 rm -f conftest.$ac_objext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123   (eval $ac_compile) 2>&5
4124   ac_status=$?
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); } &&
4127          { ac_try='test -s conftest.$ac_objext'
4128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129   (eval $ac_try) 2>&5
4130   ac_status=$?
4131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); }; }; then
4133   ac_lo=$ac_mid; break
4134 else
4135   echo "$as_me: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4137 ac_hi=`expr '(' $ac_mid ')' - 1`
4138                        if test $ac_mid -le $ac_hi; then
4139                          ac_lo= ac_hi=
4140                          break
4141                        fi
4142                        ac_mid=`expr 2 '*' $ac_mid`
4143 fi
4144 rm -f conftest.$ac_objext conftest.$ac_ext
4145   done
4146 else
4147   echo "$as_me: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4149 ac_lo= ac_hi=
4150 fi
4151 rm -f conftest.$ac_objext conftest.$ac_ext
4152 fi
4153 rm -f conftest.$ac_objext conftest.$ac_ext
4154 # Binary search between lo and hi bounds.
4155 while test "x$ac_lo" != "x$ac_hi"; do
4156   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4157   cat >conftest.$ac_ext <<_ACEOF
4158 #line $LINENO "configure"
4159 #include "confdefs.h"
4160 $ac_includes_default
4161 int
4162 main ()
4163 {
4164 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4165 test_array [0] = 0
4166
4167   ;
4168   return 0;
4169 }
4170 _ACEOF
4171 rm -f conftest.$ac_objext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173   (eval $ac_compile) 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); } &&
4177          { ac_try='test -s conftest.$ac_objext'
4178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179   (eval $ac_try) 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }; }; then
4183   ac_hi=$ac_mid
4184 else
4185   echo "$as_me: failed program was:" >&5
4186 cat conftest.$ac_ext >&5
4187 ac_lo=`expr '(' $ac_mid ')' + 1`
4188 fi
4189 rm -f conftest.$ac_objext conftest.$ac_ext
4190 done
4191 case $ac_lo in
4192 ?*) ac_cv_sizeof_short=$ac_lo;;
4193 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4194 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4195    { (exit 1); exit 1; }; } ;;
4196 esac
4197 else
4198   if test "$cross_compiling" = yes; then
4199   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4200 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4201    { (exit 1); exit 1; }; }
4202 else
4203   cat >conftest.$ac_ext <<_ACEOF
4204 #line $LINENO "configure"
4205 #include "confdefs.h"
4206 $ac_includes_default
4207 long longval () { return (long) (sizeof (short)); }
4208 unsigned long ulongval () { return (long) (sizeof (short)); }
4209 #include <stdio.h>
4210 #include <stdlib.h>
4211 int
4212 main ()
4213 {
4214
4215   FILE *f = fopen ("conftest.val", "w");
4216   if (! f)
4217     exit (1);
4218   if (((long) (sizeof (short))) < 0)
4219     {
4220       long i = longval ();
4221       if (i != ((long) (sizeof (short))))
4222         exit (1);
4223       fprintf (f, "%ld\n", i);
4224     }
4225   else
4226     {
4227       unsigned long i = ulongval ();
4228       if (i != ((long) (sizeof (short))))
4229         exit (1);
4230       fprintf (f, "%lu\n", i);
4231     }
4232   exit (ferror (f) || fclose (f) != 0);
4233
4234   ;
4235   return 0;
4236 }
4237 _ACEOF
4238 rm -f conftest$ac_exeext
4239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4240   (eval $ac_link) 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245   (eval $ac_try) 2>&5
4246   ac_status=$?
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); }; }; then
4249   ac_cv_sizeof_short=`cat conftest.val`
4250 else
4251   echo "$as_me: program exited with status $ac_status" >&5
4252 echo "$as_me: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4254 ( exit $ac_status )
4255 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4256 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4257    { (exit 1); exit 1; }; }
4258 fi
4259 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4260 fi
4261 fi
4262 rm -f conftest.val
4263 else
4264   ac_cv_sizeof_short=0
4265 fi
4266 fi
4267 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4268 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4269 cat >>confdefs.h <<_ACEOF
4270 #define SIZEOF_SHORT $ac_cv_sizeof_short
4271 _ACEOF
4272
4273
4274 echo "$as_me:$LINENO: checking for int" >&5
4275 echo $ECHO_N "checking for int... $ECHO_C" >&6
4276 if test "${ac_cv_type_int+set}" = set; then
4277   echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279   cat >conftest.$ac_ext <<_ACEOF
4280 #line $LINENO "configure"
4281 #include "confdefs.h"
4282 $ac_includes_default
4283 int
4284 main ()
4285 {
4286 if ((int *) 0)
4287   return 0;
4288 if (sizeof (int))
4289   return 0;
4290   ;
4291   return 0;
4292 }
4293 _ACEOF
4294 rm -f conftest.$ac_objext
4295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4296   (eval $ac_compile) 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); } &&
4300          { ac_try='test -s conftest.$ac_objext'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; }; then
4306   ac_cv_type_int=yes
4307 else
4308   echo "$as_me: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4310 ac_cv_type_int=no
4311 fi
4312 rm -f conftest.$ac_objext conftest.$ac_ext
4313 fi
4314 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4315 echo "${ECHO_T}$ac_cv_type_int" >&6
4316
4317 echo "$as_me:$LINENO: checking size of int" >&5
4318 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4319 if test "${ac_cv_sizeof_int+set}" = set; then
4320   echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322   if test "$ac_cv_type_int" = yes; then
4323   # The cast to unsigned long works around a bug in the HP C Compiler
4324   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4325   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4326   # This bug is HP SR number 8606223364.
4327   if test "$cross_compiling" = yes; then
4328   # Depending upon the size, compute the lo and hi bounds.
4329 cat >conftest.$ac_ext <<_ACEOF
4330 #line $LINENO "configure"
4331 #include "confdefs.h"
4332 $ac_includes_default
4333 int
4334 main ()
4335 {
4336 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4337 test_array [0] = 0
4338
4339   ;
4340   return 0;
4341 }
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345   (eval $ac_compile) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); } &&
4349          { ac_try='test -s conftest.$ac_objext'
4350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351   (eval $ac_try) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; }; then
4355   ac_lo=0 ac_mid=0
4356   while :; do
4357     cat >conftest.$ac_ext <<_ACEOF
4358 #line $LINENO "configure"
4359 #include "confdefs.h"
4360 $ac_includes_default
4361 int
4362 main ()
4363 {
4364 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4365 test_array [0] = 0
4366
4367   ;
4368   return 0;
4369 }
4370 _ACEOF
4371 rm -f conftest.$ac_objext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373   (eval $ac_compile) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); } &&
4377          { ac_try='test -s conftest.$ac_objext'
4378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379   (eval $ac_try) 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; }; then
4383   ac_hi=$ac_mid; break
4384 else
4385   echo "$as_me: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 ac_lo=`expr $ac_mid + 1`
4388                     if test $ac_lo -le $ac_mid; then
4389                       ac_lo= ac_hi=
4390                       break
4391                     fi
4392                     ac_mid=`expr 2 '*' $ac_mid + 1`
4393 fi
4394 rm -f conftest.$ac_objext conftest.$ac_ext
4395   done
4396 else
4397   echo "$as_me: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4399 cat >conftest.$ac_ext <<_ACEOF
4400 #line $LINENO "configure"
4401 #include "confdefs.h"
4402 $ac_includes_default
4403 int
4404 main ()
4405 {
4406 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4407 test_array [0] = 0
4408
4409   ;
4410   return 0;
4411 }
4412 _ACEOF
4413 rm -f conftest.$ac_objext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415   (eval $ac_compile) 2>&5
4416   ac_status=$?
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); } &&
4419          { ac_try='test -s conftest.$ac_objext'
4420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421   (eval $ac_try) 2>&5
4422   ac_status=$?
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); }; }; then
4425   ac_hi=-1 ac_mid=-1
4426   while :; do
4427     cat >conftest.$ac_ext <<_ACEOF
4428 #line $LINENO "configure"
4429 #include "confdefs.h"
4430 $ac_includes_default
4431 int
4432 main ()
4433 {
4434 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4435 test_array [0] = 0
4436
4437   ;
4438   return 0;
4439 }
4440 _ACEOF
4441 rm -f conftest.$ac_objext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443   (eval $ac_compile) 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); } &&
4447          { ac_try='test -s conftest.$ac_objext'
4448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449   (eval $ac_try) 2>&5
4450   ac_status=$?
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); }; }; then
4453   ac_lo=$ac_mid; break
4454 else
4455   echo "$as_me: failed program was:" >&5
4456 cat conftest.$ac_ext >&5
4457 ac_hi=`expr '(' $ac_mid ')' - 1`
4458                        if test $ac_mid -le $ac_hi; then
4459                          ac_lo= ac_hi=
4460                          break
4461                        fi
4462                        ac_mid=`expr 2 '*' $ac_mid`
4463 fi
4464 rm -f conftest.$ac_objext conftest.$ac_ext
4465   done
4466 else
4467   echo "$as_me: failed program was:" >&5
4468 cat conftest.$ac_ext >&5
4469 ac_lo= ac_hi=
4470 fi
4471 rm -f conftest.$ac_objext conftest.$ac_ext
4472 fi
4473 rm -f conftest.$ac_objext conftest.$ac_ext
4474 # Binary search between lo and hi bounds.
4475 while test "x$ac_lo" != "x$ac_hi"; do
4476   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4477   cat >conftest.$ac_ext <<_ACEOF
4478 #line $LINENO "configure"
4479 #include "confdefs.h"
4480 $ac_includes_default
4481 int
4482 main ()
4483 {
4484 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $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 cat conftest.$ac_ext >&5
4507 ac_lo=`expr '(' $ac_mid ')' + 1`
4508 fi
4509 rm -f conftest.$ac_objext conftest.$ac_ext
4510 done
4511 case $ac_lo in
4512 ?*) ac_cv_sizeof_int=$ac_lo;;
4513 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4514 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4515    { (exit 1); exit 1; }; } ;;
4516 esac
4517 else
4518   if test "$cross_compiling" = yes; then
4519   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4520 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4521    { (exit 1); exit 1; }; }
4522 else
4523   cat >conftest.$ac_ext <<_ACEOF
4524 #line $LINENO "configure"
4525 #include "confdefs.h"
4526 $ac_includes_default
4527 long longval () { return (long) (sizeof (int)); }
4528 unsigned long ulongval () { return (long) (sizeof (int)); }
4529 #include <stdio.h>
4530 #include <stdlib.h>
4531 int
4532 main ()
4533 {
4534
4535   FILE *f = fopen ("conftest.val", "w");
4536   if (! f)
4537     exit (1);
4538   if (((long) (sizeof (int))) < 0)
4539     {
4540       long i = longval ();
4541       if (i != ((long) (sizeof (int))))
4542         exit (1);
4543       fprintf (f, "%ld\n", i);
4544     }
4545   else
4546     {
4547       unsigned long i = ulongval ();
4548       if (i != ((long) (sizeof (int))))
4549         exit (1);
4550       fprintf (f, "%lu\n", i);
4551     }
4552   exit (ferror (f) || fclose (f) != 0);
4553
4554   ;
4555   return 0;
4556 }
4557 _ACEOF
4558 rm -f conftest$ac_exeext
4559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4560   (eval $ac_link) 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565   (eval $ac_try) 2>&5
4566   ac_status=$?
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); }; }; then
4569   ac_cv_sizeof_int=`cat conftest.val`
4570 else
4571   echo "$as_me: program exited with status $ac_status" >&5
4572 echo "$as_me: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4574 ( exit $ac_status )
4575 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4576 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4577    { (exit 1); exit 1; }; }
4578 fi
4579 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4580 fi
4581 fi
4582 rm -f conftest.val
4583 else
4584   ac_cv_sizeof_int=0
4585 fi
4586 fi
4587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4588 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4589 cat >>confdefs.h <<_ACEOF
4590 #define SIZEOF_INT $ac_cv_sizeof_int
4591 _ACEOF
4592
4593
4594 echo "$as_me:$LINENO: checking for long" >&5
4595 echo $ECHO_N "checking for long... $ECHO_C" >&6
4596 if test "${ac_cv_type_long+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   cat >conftest.$ac_ext <<_ACEOF
4600 #line $LINENO "configure"
4601 #include "confdefs.h"
4602 $ac_includes_default
4603 int
4604 main ()
4605 {
4606 if ((long *) 0)
4607   return 0;
4608 if (sizeof (long))
4609   return 0;
4610   ;
4611   return 0;
4612 }
4613 _ACEOF
4614 rm -f conftest.$ac_objext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616   (eval $ac_compile) 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); } &&
4620          { ac_try='test -s conftest.$ac_objext'
4621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622   (eval $ac_try) 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }; }; then
4626   ac_cv_type_long=yes
4627 else
4628   echo "$as_me: failed program was:" >&5
4629 cat conftest.$ac_ext >&5
4630 ac_cv_type_long=no
4631 fi
4632 rm -f conftest.$ac_objext conftest.$ac_ext
4633 fi
4634 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4635 echo "${ECHO_T}$ac_cv_type_long" >&6
4636
4637 echo "$as_me:$LINENO: checking size of long" >&5
4638 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4639 if test "${ac_cv_sizeof_long+set}" = set; then
4640   echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642   if test "$ac_cv_type_long" = yes; then
4643   # The cast to unsigned long works around a bug in the HP C Compiler
4644   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4645   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4646   # This bug is HP SR number 8606223364.
4647   if test "$cross_compiling" = yes; then
4648   # Depending upon the size, compute the lo and hi bounds.
4649 cat >conftest.$ac_ext <<_ACEOF
4650 #line $LINENO "configure"
4651 #include "confdefs.h"
4652 $ac_includes_default
4653 int
4654 main ()
4655 {
4656 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4657 test_array [0] = 0
4658
4659   ;
4660   return 0;
4661 }
4662 _ACEOF
4663 rm -f conftest.$ac_objext
4664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4665   (eval $ac_compile) 2>&5
4666   ac_status=$?
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); } &&
4669          { ac_try='test -s conftest.$ac_objext'
4670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671   (eval $ac_try) 2>&5
4672   ac_status=$?
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); }; }; then
4675   ac_lo=0 ac_mid=0
4676   while :; do
4677     cat >conftest.$ac_ext <<_ACEOF
4678 #line $LINENO "configure"
4679 #include "confdefs.h"
4680 $ac_includes_default
4681 int
4682 main ()
4683 {
4684 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4685 test_array [0] = 0
4686
4687   ;
4688   return 0;
4689 }
4690 _ACEOF
4691 rm -f conftest.$ac_objext
4692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4693   (eval $ac_compile) 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); } &&
4697          { ac_try='test -s conftest.$ac_objext'
4698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699   (eval $ac_try) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); }; }; then
4703   ac_hi=$ac_mid; break
4704 else
4705   echo "$as_me: failed program was:" >&5
4706 cat conftest.$ac_ext >&5
4707 ac_lo=`expr $ac_mid + 1`
4708                     if test $ac_lo -le $ac_mid; then
4709                       ac_lo= ac_hi=
4710                       break
4711                     fi
4712                     ac_mid=`expr 2 '*' $ac_mid + 1`
4713 fi
4714 rm -f conftest.$ac_objext conftest.$ac_ext
4715   done
4716 else
4717   echo "$as_me: failed program was:" >&5
4718 cat conftest.$ac_ext >&5
4719 cat >conftest.$ac_ext <<_ACEOF
4720 #line $LINENO "configure"
4721 #include "confdefs.h"
4722 $ac_includes_default
4723 int
4724 main ()
4725 {
4726 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4727 test_array [0] = 0
4728
4729   ;
4730   return 0;
4731 }
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735   (eval $ac_compile) 2>&5
4736   ac_status=$?
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); } &&
4739          { ac_try='test -s conftest.$ac_objext'
4740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741   (eval $ac_try) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; }; then
4745   ac_hi=-1 ac_mid=-1
4746   while :; do
4747     cat >conftest.$ac_ext <<_ACEOF
4748 #line $LINENO "configure"
4749 #include "confdefs.h"
4750 $ac_includes_default
4751 int
4752 main ()
4753 {
4754 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4755 test_array [0] = 0
4756
4757   ;
4758   return 0;
4759 }
4760 _ACEOF
4761 rm -f conftest.$ac_objext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763   (eval $ac_compile) 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); } &&
4767          { ac_try='test -s conftest.$ac_objext'
4768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769   (eval $ac_try) 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); }; }; then
4773   ac_lo=$ac_mid; break
4774 else
4775   echo "$as_me: failed program was:" >&5
4776 cat conftest.$ac_ext >&5
4777 ac_hi=`expr '(' $ac_mid ')' - 1`
4778                        if test $ac_mid -le $ac_hi; then
4779                          ac_lo= ac_hi=
4780                          break
4781                        fi
4782                        ac_mid=`expr 2 '*' $ac_mid`
4783 fi
4784 rm -f conftest.$ac_objext conftest.$ac_ext
4785   done
4786 else
4787   echo "$as_me: failed program was:" >&5
4788 cat conftest.$ac_ext >&5
4789 ac_lo= ac_hi=
4790 fi
4791 rm -f conftest.$ac_objext conftest.$ac_ext
4792 fi
4793 rm -f conftest.$ac_objext conftest.$ac_ext
4794 # Binary search between lo and hi bounds.
4795 while test "x$ac_lo" != "x$ac_hi"; do
4796   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4797   cat >conftest.$ac_ext <<_ACEOF
4798 #line $LINENO "configure"
4799 #include "confdefs.h"
4800 $ac_includes_default
4801 int
4802 main ()
4803 {
4804 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4805 test_array [0] = 0
4806
4807   ;
4808   return 0;
4809 }
4810 _ACEOF
4811 rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813   (eval $ac_compile) 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); } &&
4817          { ac_try='test -s conftest.$ac_objext'
4818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819   (eval $ac_try) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; }; then
4823   ac_hi=$ac_mid
4824 else
4825   echo "$as_me: failed program was:" >&5
4826 cat conftest.$ac_ext >&5
4827 ac_lo=`expr '(' $ac_mid ')' + 1`
4828 fi
4829 rm -f conftest.$ac_objext conftest.$ac_ext
4830 done
4831 case $ac_lo in
4832 ?*) ac_cv_sizeof_long=$ac_lo;;
4833 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4834 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4835    { (exit 1); exit 1; }; } ;;
4836 esac
4837 else
4838   if test "$cross_compiling" = yes; then
4839   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4840 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4841    { (exit 1); exit 1; }; }
4842 else
4843   cat >conftest.$ac_ext <<_ACEOF
4844 #line $LINENO "configure"
4845 #include "confdefs.h"
4846 $ac_includes_default
4847 long longval () { return (long) (sizeof (long)); }
4848 unsigned long ulongval () { return (long) (sizeof (long)); }
4849 #include <stdio.h>
4850 #include <stdlib.h>
4851 int
4852 main ()
4853 {
4854
4855   FILE *f = fopen ("conftest.val", "w");
4856   if (! f)
4857     exit (1);
4858   if (((long) (sizeof (long))) < 0)
4859     {
4860       long i = longval ();
4861       if (i != ((long) (sizeof (long))))
4862         exit (1);
4863       fprintf (f, "%ld\n", i);
4864     }
4865   else
4866     {
4867       unsigned long i = ulongval ();
4868       if (i != ((long) (sizeof (long))))
4869         exit (1);
4870       fprintf (f, "%lu\n", i);
4871     }
4872   exit (ferror (f) || fclose (f) != 0);
4873
4874   ;
4875   return 0;
4876 }
4877 _ACEOF
4878 rm -f conftest$ac_exeext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880   (eval $ac_link) 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885   (eval $ac_try) 2>&5
4886   ac_status=$?
4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888   (exit $ac_status); }; }; then
4889   ac_cv_sizeof_long=`cat conftest.val`
4890 else
4891   echo "$as_me: program exited with status $ac_status" >&5
4892 echo "$as_me: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4894 ( exit $ac_status )
4895 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4896 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4897    { (exit 1); exit 1; }; }
4898 fi
4899 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4900 fi
4901 fi
4902 rm -f conftest.val
4903 else
4904   ac_cv_sizeof_long=0
4905 fi
4906 fi
4907 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4908 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4909 cat >>confdefs.h <<_ACEOF
4910 #define SIZEOF_LONG $ac_cv_sizeof_long
4911 _ACEOF
4912
4913
4914 echo "$as_me:$LINENO: checking for float" >&5
4915 echo $ECHO_N "checking for float... $ECHO_C" >&6
4916 if test "${ac_cv_type_float+set}" = set; then
4917   echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919   cat >conftest.$ac_ext <<_ACEOF
4920 #line $LINENO "configure"
4921 #include "confdefs.h"
4922 $ac_includes_default
4923 int
4924 main ()
4925 {
4926 if ((float *) 0)
4927   return 0;
4928 if (sizeof (float))
4929   return 0;
4930   ;
4931   return 0;
4932 }
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936   (eval $ac_compile) 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); } &&
4940          { ac_try='test -s conftest.$ac_objext'
4941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942   (eval $ac_try) 2>&5
4943   ac_status=$?
4944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945   (exit $ac_status); }; }; then
4946   ac_cv_type_float=yes
4947 else
4948   echo "$as_me: failed program was:" >&5
4949 cat conftest.$ac_ext >&5
4950 ac_cv_type_float=no
4951 fi
4952 rm -f conftest.$ac_objext conftest.$ac_ext
4953 fi
4954 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
4955 echo "${ECHO_T}$ac_cv_type_float" >&6
4956
4957 echo "$as_me:$LINENO: checking size of float" >&5
4958 echo $ECHO_N "checking size of float... $ECHO_C" >&6
4959 if test "${ac_cv_sizeof_float+set}" = set; then
4960   echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962   if test "$ac_cv_type_float" = yes; then
4963   # The cast to unsigned long works around a bug in the HP C Compiler
4964   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4965   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4966   # This bug is HP SR number 8606223364.
4967   if test "$cross_compiling" = yes; then
4968   # Depending upon the size, compute the lo and hi bounds.
4969 cat >conftest.$ac_ext <<_ACEOF
4970 #line $LINENO "configure"
4971 #include "confdefs.h"
4972 $ac_includes_default
4973 int
4974 main ()
4975 {
4976 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
4977 test_array [0] = 0
4978
4979   ;
4980   return 0;
4981 }
4982 _ACEOF
4983 rm -f conftest.$ac_objext
4984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985   (eval $ac_compile) 2>&5
4986   ac_status=$?
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); } &&
4989          { ac_try='test -s conftest.$ac_objext'
4990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991   (eval $ac_try) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); }; }; then
4995   ac_lo=0 ac_mid=0
4996   while :; do
4997     cat >conftest.$ac_ext <<_ACEOF
4998 #line $LINENO "configure"
4999 #include "confdefs.h"
5000 $ac_includes_default
5001 int
5002 main ()
5003 {
5004 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5005 test_array [0] = 0
5006
5007   ;
5008   return 0;
5009 }
5010 _ACEOF
5011 rm -f conftest.$ac_objext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013   (eval $ac_compile) 2>&5
5014   ac_status=$?
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } &&
5017          { ac_try='test -s conftest.$ac_objext'
5018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019   (eval $ac_try) 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); }; }; then
5023   ac_hi=$ac_mid; break
5024 else
5025   echo "$as_me: failed program was:" >&5
5026 cat conftest.$ac_ext >&5
5027 ac_lo=`expr $ac_mid + 1`
5028                     if test $ac_lo -le $ac_mid; then
5029                       ac_lo= ac_hi=
5030                       break
5031                     fi
5032                     ac_mid=`expr 2 '*' $ac_mid + 1`
5033 fi
5034 rm -f conftest.$ac_objext conftest.$ac_ext
5035   done
5036 else
5037   echo "$as_me: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5039 cat >conftest.$ac_ext <<_ACEOF
5040 #line $LINENO "configure"
5041 #include "confdefs.h"
5042 $ac_includes_default
5043 int
5044 main ()
5045 {
5046 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5047 test_array [0] = 0
5048
5049   ;
5050   return 0;
5051 }
5052 _ACEOF
5053 rm -f conftest.$ac_objext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055   (eval $ac_compile) 2>&5
5056   ac_status=$?
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); } &&
5059          { ac_try='test -s conftest.$ac_objext'
5060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061   (eval $ac_try) 2>&5
5062   ac_status=$?
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); }; }; then
5065   ac_hi=-1 ac_mid=-1
5066   while :; do
5067     cat >conftest.$ac_ext <<_ACEOF
5068 #line $LINENO "configure"
5069 #include "confdefs.h"
5070 $ac_includes_default
5071 int
5072 main ()
5073 {
5074 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5075 test_array [0] = 0
5076
5077   ;
5078   return 0;
5079 }
5080 _ACEOF
5081 rm -f conftest.$ac_objext
5082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5083   (eval $ac_compile) 2>&5
5084   ac_status=$?
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } &&
5087          { ac_try='test -s conftest.$ac_objext'
5088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089   (eval $ac_try) 2>&5
5090   ac_status=$?
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); }; }; then
5093   ac_lo=$ac_mid; break
5094 else
5095   echo "$as_me: failed program was:" >&5
5096 cat conftest.$ac_ext >&5
5097 ac_hi=`expr '(' $ac_mid ')' - 1`
5098                        if test $ac_mid -le $ac_hi; then
5099                          ac_lo= ac_hi=
5100                          break
5101                        fi
5102                        ac_mid=`expr 2 '*' $ac_mid`
5103 fi
5104 rm -f conftest.$ac_objext conftest.$ac_ext
5105   done
5106 else
5107   echo "$as_me: failed program was:" >&5
5108 cat conftest.$ac_ext >&5
5109 ac_lo= ac_hi=
5110 fi
5111 rm -f conftest.$ac_objext conftest.$ac_ext
5112 fi
5113 rm -f conftest.$ac_objext conftest.$ac_ext
5114 # Binary search between lo and hi bounds.
5115 while test "x$ac_lo" != "x$ac_hi"; do
5116   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5117   cat >conftest.$ac_ext <<_ACEOF
5118 #line $LINENO "configure"
5119 #include "confdefs.h"
5120 $ac_includes_default
5121 int
5122 main ()
5123 {
5124 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5125 test_array [0] = 0
5126
5127   ;
5128   return 0;
5129 }
5130 _ACEOF
5131 rm -f conftest.$ac_objext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5133   (eval $ac_compile) 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); } &&
5137          { ac_try='test -s conftest.$ac_objext'
5138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139   (eval $ac_try) 2>&5
5140   ac_status=$?
5141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142   (exit $ac_status); }; }; then
5143   ac_hi=$ac_mid
5144 else
5145   echo "$as_me: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5147 ac_lo=`expr '(' $ac_mid ')' + 1`
5148 fi
5149 rm -f conftest.$ac_objext conftest.$ac_ext
5150 done
5151 case $ac_lo in
5152 ?*) ac_cv_sizeof_float=$ac_lo;;
5153 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
5154 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
5155    { (exit 1); exit 1; }; } ;;
5156 esac
5157 else
5158   if test "$cross_compiling" = yes; then
5159   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5160 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5161    { (exit 1); exit 1; }; }
5162 else
5163   cat >conftest.$ac_ext <<_ACEOF
5164 #line $LINENO "configure"
5165 #include "confdefs.h"
5166 $ac_includes_default
5167 long longval () { return (long) (sizeof (float)); }
5168 unsigned long ulongval () { return (long) (sizeof (float)); }
5169 #include <stdio.h>
5170 #include <stdlib.h>
5171 int
5172 main ()
5173 {
5174
5175   FILE *f = fopen ("conftest.val", "w");
5176   if (! f)
5177     exit (1);
5178   if (((long) (sizeof (float))) < 0)
5179     {
5180       long i = longval ();
5181       if (i != ((long) (sizeof (float))))
5182         exit (1);
5183       fprintf (f, "%ld\n", i);
5184     }
5185   else
5186     {
5187       unsigned long i = ulongval ();
5188       if (i != ((long) (sizeof (float))))
5189         exit (1);
5190       fprintf (f, "%lu\n", i);
5191     }
5192   exit (ferror (f) || fclose (f) != 0);
5193
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest$ac_exeext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5200   (eval $ac_link) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205   (eval $ac_try) 2>&5
5206   ac_status=$?
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); }; }; then
5209   ac_cv_sizeof_float=`cat conftest.val`
5210 else
5211   echo "$as_me: program exited with status $ac_status" >&5
5212 echo "$as_me: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5214 ( exit $ac_status )
5215 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
5216 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
5217    { (exit 1); exit 1; }; }
5218 fi
5219 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5220 fi
5221 fi
5222 rm -f conftest.val
5223 else
5224   ac_cv_sizeof_float=0
5225 fi
5226 fi
5227 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5228 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5229 cat >>confdefs.h <<_ACEOF
5230 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5231 _ACEOF
5232
5233
5234 echo "$as_me:$LINENO: checking for double" >&5
5235 echo $ECHO_N "checking for double... $ECHO_C" >&6
5236 if test "${ac_cv_type_double+set}" = set; then
5237   echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239   cat >conftest.$ac_ext <<_ACEOF
5240 #line $LINENO "configure"
5241 #include "confdefs.h"
5242 $ac_includes_default
5243 int
5244 main ()
5245 {
5246 if ((double *) 0)
5247   return 0;
5248 if (sizeof (double))
5249   return 0;
5250   ;
5251   return 0;
5252 }
5253 _ACEOF
5254 rm -f conftest.$ac_objext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5256   (eval $ac_compile) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); } &&
5260          { ac_try='test -s conftest.$ac_objext'
5261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262   (eval $ac_try) 2>&5
5263   ac_status=$?
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); }; }; then
5266   ac_cv_type_double=yes
5267 else
5268   echo "$as_me: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5270 ac_cv_type_double=no
5271 fi
5272 rm -f conftest.$ac_objext conftest.$ac_ext
5273 fi
5274 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5275 echo "${ECHO_T}$ac_cv_type_double" >&6
5276
5277 echo "$as_me:$LINENO: checking size of double" >&5
5278 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5279 if test "${ac_cv_sizeof_double+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   if test "$ac_cv_type_double" = yes; then
5283   # The cast to unsigned long works around a bug in the HP C Compiler
5284   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5285   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5286   # This bug is HP SR number 8606223364.
5287   if test "$cross_compiling" = yes; then
5288   # Depending upon the size, compute the lo and hi bounds.
5289 cat >conftest.$ac_ext <<_ACEOF
5290 #line $LINENO "configure"
5291 #include "confdefs.h"
5292 $ac_includes_default
5293 int
5294 main ()
5295 {
5296 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5297 test_array [0] = 0
5298
5299   ;
5300   return 0;
5301 }
5302 _ACEOF
5303 rm -f conftest.$ac_objext
5304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5305   (eval $ac_compile) 2>&5
5306   ac_status=$?
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); } &&
5309          { ac_try='test -s conftest.$ac_objext'
5310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311   (eval $ac_try) 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }; }; then
5315   ac_lo=0 ac_mid=0
5316   while :; do
5317     cat >conftest.$ac_ext <<_ACEOF
5318 #line $LINENO "configure"
5319 #include "confdefs.h"
5320 $ac_includes_default
5321 int
5322 main ()
5323 {
5324 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5325 test_array [0] = 0
5326
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333   (eval $ac_compile) 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); } &&
5337          { ac_try='test -s conftest.$ac_objext'
5338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339   (eval $ac_try) 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); }; }; then
5343   ac_hi=$ac_mid; break
5344 else
5345   echo "$as_me: failed program was:" >&5
5346 cat conftest.$ac_ext >&5
5347 ac_lo=`expr $ac_mid + 1`
5348                     if test $ac_lo -le $ac_mid; then
5349                       ac_lo= ac_hi=
5350                       break
5351                     fi
5352                     ac_mid=`expr 2 '*' $ac_mid + 1`
5353 fi
5354 rm -f conftest.$ac_objext conftest.$ac_ext
5355   done
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5359 cat >conftest.$ac_ext <<_ACEOF
5360 #line $LINENO "configure"
5361 #include "confdefs.h"
5362 $ac_includes_default
5363 int
5364 main ()
5365 {
5366 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5367 test_array [0] = 0
5368
5369   ;
5370   return 0;
5371 }
5372 _ACEOF
5373 rm -f conftest.$ac_objext
5374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375   (eval $ac_compile) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); } &&
5379          { ac_try='test -s conftest.$ac_objext'
5380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381   (eval $ac_try) 2>&5
5382   ac_status=$?
5383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); }; }; then
5385   ac_hi=-1 ac_mid=-1
5386   while :; do
5387     cat >conftest.$ac_ext <<_ACEOF
5388 #line $LINENO "configure"
5389 #include "confdefs.h"
5390 $ac_includes_default
5391 int
5392 main ()
5393 {
5394 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5395 test_array [0] = 0
5396
5397   ;
5398   return 0;
5399 }
5400 _ACEOF
5401 rm -f conftest.$ac_objext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403   (eval $ac_compile) 2>&5
5404   ac_status=$?
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } &&
5407          { ac_try='test -s conftest.$ac_objext'
5408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409   (eval $ac_try) 2>&5
5410   ac_status=$?
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); }; }; then
5413   ac_lo=$ac_mid; break
5414 else
5415   echo "$as_me: failed program was:" >&5
5416 cat conftest.$ac_ext >&5
5417 ac_hi=`expr '(' $ac_mid ')' - 1`
5418                        if test $ac_mid -le $ac_hi; then
5419                          ac_lo= ac_hi=
5420                          break
5421                        fi
5422                        ac_mid=`expr 2 '*' $ac_mid`
5423 fi
5424 rm -f conftest.$ac_objext conftest.$ac_ext
5425   done
5426 else
5427   echo "$as_me: failed program was:" >&5
5428 cat conftest.$ac_ext >&5
5429 ac_lo= ac_hi=
5430 fi
5431 rm -f conftest.$ac_objext conftest.$ac_ext
5432 fi
5433 rm -f conftest.$ac_objext conftest.$ac_ext
5434 # Binary search between lo and hi bounds.
5435 while test "x$ac_lo" != "x$ac_hi"; do
5436   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5437   cat >conftest.$ac_ext <<_ACEOF
5438 #line $LINENO "configure"
5439 #include "confdefs.h"
5440 $ac_includes_default
5441 int
5442 main ()
5443 {
5444 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5445 test_array [0] = 0
5446
5447   ;
5448   return 0;
5449 }
5450 _ACEOF
5451 rm -f conftest.$ac_objext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453   (eval $ac_compile) 2>&5
5454   ac_status=$?
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); } &&
5457          { ac_try='test -s conftest.$ac_objext'
5458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459   (eval $ac_try) 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); }; }; then
5463   ac_hi=$ac_mid
5464 else
5465   echo "$as_me: failed program was:" >&5
5466 cat conftest.$ac_ext >&5
5467 ac_lo=`expr '(' $ac_mid ')' + 1`
5468 fi
5469 rm -f conftest.$ac_objext conftest.$ac_ext
5470 done
5471 case $ac_lo in
5472 ?*) ac_cv_sizeof_double=$ac_lo;;
5473 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
5474 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
5475    { (exit 1); exit 1; }; } ;;
5476 esac
5477 else
5478   if test "$cross_compiling" = yes; then
5479   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5480 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5481    { (exit 1); exit 1; }; }
5482 else
5483   cat >conftest.$ac_ext <<_ACEOF
5484 #line $LINENO "configure"
5485 #include "confdefs.h"
5486 $ac_includes_default
5487 long longval () { return (long) (sizeof (double)); }
5488 unsigned long ulongval () { return (long) (sizeof (double)); }
5489 #include <stdio.h>
5490 #include <stdlib.h>
5491 int
5492 main ()
5493 {
5494
5495   FILE *f = fopen ("conftest.val", "w");
5496   if (! f)
5497     exit (1);
5498   if (((long) (sizeof (double))) < 0)
5499     {
5500       long i = longval ();
5501       if (i != ((long) (sizeof (double))))
5502         exit (1);
5503       fprintf (f, "%ld\n", i);
5504     }
5505   else
5506     {
5507       unsigned long i = ulongval ();
5508       if (i != ((long) (sizeof (double))))
5509         exit (1);
5510       fprintf (f, "%lu\n", i);
5511     }
5512   exit (ferror (f) || fclose (f) != 0);
5513
5514   ;
5515   return 0;
5516 }
5517 _ACEOF
5518 rm -f conftest$ac_exeext
5519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520   (eval $ac_link) 2>&5
5521   ac_status=$?
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525   (eval $ac_try) 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); }; }; then
5529   ac_cv_sizeof_double=`cat conftest.val`
5530 else
5531   echo "$as_me: program exited with status $ac_status" >&5
5532 echo "$as_me: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5534 ( exit $ac_status )
5535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
5536 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
5537    { (exit 1); exit 1; }; }
5538 fi
5539 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5540 fi
5541 fi
5542 rm -f conftest.val
5543 else
5544   ac_cv_sizeof_double=0
5545 fi
5546 fi
5547 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5548 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5549 cat >>confdefs.h <<_ACEOF
5550 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5551 _ACEOF
5552
5553
5554
5555
5556 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5557 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5558 if test "${ac_cv_lib_z_deflate+set}" = set; then
5559   echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561   ac_check_lib_save_LIBS=$LIBS
5562 LIBS="-lz  $LIBS"
5563 cat >conftest.$ac_ext <<_ACEOF
5564 #line $LINENO "configure"
5565 #include "confdefs.h"
5566
5567 /* Override any gcc2 internal prototype to avoid an error.  */
5568 #ifdef __cplusplus
5569 extern "C"
5570 #endif
5571 /* We use char because int might match the return type of a gcc2
5572    builtin and then its argument prototype would still apply.  */
5573 char deflate ();
5574 int
5575 main ()
5576 {
5577 deflate ();
5578   ;
5579   return 0;
5580 }
5581 _ACEOF
5582 rm -f conftest.$ac_objext conftest$ac_exeext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584   (eval $ac_link) 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); } &&
5588          { ac_try='test -s conftest$ac_exeext'
5589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590   (eval $ac_try) 2>&5
5591   ac_status=$?
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); }; }; then
5594   ac_cv_lib_z_deflate=yes
5595 else
5596   echo "$as_me: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5598 ac_cv_lib_z_deflate=no
5599 fi
5600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5601 LIBS=$ac_check_lib_save_LIBS
5602 fi
5603 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5604 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5605 if test $ac_cv_lib_z_deflate = yes; then
5606    zlib="true"
5607 else
5608    zlib="false" ;  { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
5609 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5610 fi
5611
5612
5613 echo "$as_me:$LINENO: checking for sin in -lm" >&5
5614 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5615 if test "${ac_cv_lib_m_sin+set}" = set; then
5616   echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618   ac_check_lib_save_LIBS=$LIBS
5619 LIBS="-lm  $LIBS"
5620 cat >conftest.$ac_ext <<_ACEOF
5621 #line $LINENO "configure"
5622 #include "confdefs.h"
5623
5624 /* Override any gcc2 internal prototype to avoid an error.  */
5625 #ifdef __cplusplus
5626 extern "C"
5627 #endif
5628 /* We use char because int might match the return type of a gcc2
5629    builtin and then its argument prototype would still apply.  */
5630 char sin ();
5631 int
5632 main ()
5633 {
5634 sin ();
5635   ;
5636   return 0;
5637 }
5638 _ACEOF
5639 rm -f conftest.$ac_objext conftest$ac_exeext
5640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5641   (eval $ac_link) 2>&5
5642   ac_status=$?
5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644   (exit $ac_status); } &&
5645          { ac_try='test -s conftest$ac_exeext'
5646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647   (eval $ac_try) 2>&5
5648   ac_status=$?
5649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650   (exit $ac_status); }; }; then
5651   ac_cv_lib_m_sin=yes
5652 else
5653   echo "$as_me: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
5655 ac_cv_lib_m_sin=no
5656 fi
5657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5658 LIBS=$ac_check_lib_save_LIBS
5659 fi
5660 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
5661 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
5662 if test $ac_cv_lib_m_sin = yes; then
5663   cat >>confdefs.h <<_ACEOF
5664 #define HAVE_LIBM 1
5665 _ACEOF
5666
5667   LIBS="-lm $LIBS"
5668
5669 fi
5670
5671 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
5672 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5673 if test "${ac_cv_lib_curses_main+set}" = set; then
5674   echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676   ac_check_lib_save_LIBS=$LIBS
5677 LIBS="-lcurses  $LIBS"
5678 cat >conftest.$ac_ext <<_ACEOF
5679 #line $LINENO "configure"
5680 #include "confdefs.h"
5681
5682
5683 int
5684 main ()
5685 {
5686 main ();
5687   ;
5688   return 0;
5689 }
5690 _ACEOF
5691 rm -f conftest.$ac_objext conftest$ac_exeext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5693   (eval $ac_link) 2>&5
5694   ac_status=$?
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); } &&
5697          { ac_try='test -s conftest$ac_exeext'
5698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699   (eval $ac_try) 2>&5
5700   ac_status=$?
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); }; }; then
5703   ac_cv_lib_curses_main=yes
5704 else
5705   echo "$as_me: failed program was:" >&5
5706 cat conftest.$ac_ext >&5
5707 ac_cv_lib_curses_main=no
5708 fi
5709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5710 LIBS=$ac_check_lib_save_LIBS
5711 fi
5712 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
5713 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5714 if test $ac_cv_lib_curses_main = yes; then
5715   curses=true
5716 else
5717   curses=false
5718 fi
5719
5720 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
5721 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
5722 if test "${ac_cv_lib_ncurses_main+set}" = set; then
5723   echo $ECHO_N "(cached) $ECHO_C" >&6
5724 else
5725   ac_check_lib_save_LIBS=$LIBS
5726 LIBS="-lncurses  $LIBS"
5727 cat >conftest.$ac_ext <<_ACEOF
5728 #line $LINENO "configure"
5729 #include "confdefs.h"
5730
5731
5732 int
5733 main ()
5734 {
5735 main ();
5736   ;
5737   return 0;
5738 }
5739 _ACEOF
5740 rm -f conftest.$ac_objext conftest$ac_exeext
5741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5742   (eval $ac_link) 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); } &&
5746          { ac_try='test -s conftest$ac_exeext'
5747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748   (eval $ac_try) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }; }; then
5752   ac_cv_lib_ncurses_main=yes
5753 else
5754   echo "$as_me: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5756 ac_cv_lib_ncurses_main=no
5757 fi
5758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5759 LIBS=$ac_check_lib_save_LIBS
5760 fi
5761 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
5762 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
5763 if test $ac_cv_lib_ncurses_main = yes; then
5764   ncurses=true
5765 else
5766   ncurses=false
5767 fi
5768
5769 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
5770 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5771 if test "${ac_cv_lib_readline_main+set}" = set; then
5772   echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774   ac_check_lib_save_LIBS=$LIBS
5775 LIBS="-lreadline -lcurses $LIBS"
5776 cat >conftest.$ac_ext <<_ACEOF
5777 #line $LINENO "configure"
5778 #include "confdefs.h"
5779
5780
5781 int
5782 main ()
5783 {
5784 main ();
5785   ;
5786   return 0;
5787 }
5788 _ACEOF
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791   (eval $ac_link) 2>&5
5792   ac_status=$?
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); } &&
5795          { ac_try='test -s conftest$ac_exeext'
5796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797   (eval $ac_try) 2>&5
5798   ac_status=$?
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); }; }; then
5801   ac_cv_lib_readline_main=yes
5802 else
5803   echo "$as_me: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5805 ac_cv_lib_readline_main=no
5806 fi
5807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5808 LIBS=$ac_check_lib_save_LIBS
5809 fi
5810 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
5811 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5812 if test $ac_cv_lib_readline_main = yes; then
5813   readline=true;
5814
5815 cat >>confdefs.h <<\_ACEOF
5816 #define HAVE_READLINE 1
5817 _ACEOF
5818
5819 else
5820   readline=false
5821 fi
5822
5823 wxwin=false
5824 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
5825 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
5826 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   ac_check_lib_save_LIBS=$LIBS
5830 LIBS="-lwx_gtk-2.4  $LIBS"
5831 cat >conftest.$ac_ext <<_ACEOF
5832 #line $LINENO "configure"
5833 #include "confdefs.h"
5834
5835
5836 int
5837 main ()
5838 {
5839 main ();
5840   ;
5841   return 0;
5842 }
5843 _ACEOF
5844 rm -f conftest.$ac_objext conftest$ac_exeext
5845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5846   (eval $ac_link) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); } &&
5850          { ac_try='test -s conftest$ac_exeext'
5851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852   (eval $ac_try) 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); }; }; then
5856   ac_cv_lib_wx_gtk_2_4_main=yes
5857 else
5858   echo "$as_me: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5860 ac_cv_lib_wx_gtk_2_4_main=no
5861 fi
5862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5863 LIBS=$ac_check_lib_save_LIBS
5864 fi
5865 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
5866 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
5867 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
5868   wxwin=true; wx_gtk=true;
5869 cat >>confdefs.h <<\_ACEOF
5870 #define HAVE_WXWINDOWS 1
5871 _ACEOF
5872
5873 fi
5874
5875 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
5876 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
5877 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   ac_check_lib_save_LIBS=$LIBS
5881 LIBS="-lwx_mac-2.4  $LIBS"
5882 cat >conftest.$ac_ext <<_ACEOF
5883 #line $LINENO "configure"
5884 #include "confdefs.h"
5885
5886
5887 int
5888 main ()
5889 {
5890 main ();
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_objext conftest$ac_exeext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5897   (eval $ac_link) 2>&5
5898   ac_status=$?
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); } &&
5901          { ac_try='test -s conftest$ac_exeext'
5902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903   (eval $ac_try) 2>&5
5904   ac_status=$?
5905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906   (exit $ac_status); }; }; then
5907   ac_cv_lib_wx_mac_2_4_main=yes
5908 else
5909   echo "$as_me: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
5911 ac_cv_lib_wx_mac_2_4_main=no
5912 fi
5913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5914 LIBS=$ac_check_lib_save_LIBS
5915 fi
5916 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
5917 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
5918 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
5919   wxwin=true; wx_gtk=true;
5920 cat >>confdefs.h <<\_ACEOF
5921 #define HAVE_WXWINDOWS 1
5922 _ACEOF
5923
5924 fi
5925
5926 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
5927 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
5928 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931   ac_check_lib_save_LIBS=$LIBS
5932 LIBS="-lfftw  $LIBS"
5933 cat >conftest.$ac_ext <<_ACEOF
5934 #line $LINENO "configure"
5935 #include "confdefs.h"
5936
5937 /* Override any gcc2 internal prototype to avoid an error.  */
5938 #ifdef __cplusplus
5939 extern "C"
5940 #endif
5941 /* We use char because int might match the return type of a gcc2
5942    builtin and then its argument prototype would still apply.  */
5943 char fftw_one ();
5944 int
5945 main ()
5946 {
5947 fftw_one ();
5948   ;
5949   return 0;
5950 }
5951 _ACEOF
5952 rm -f conftest.$ac_objext conftest$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954   (eval $ac_link) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); } &&
5958          { ac_try='test -s conftest$ac_exeext'
5959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960   (eval $ac_try) 2>&5
5961   ac_status=$?
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); }; }; then
5964   ac_cv_lib_fftw_fftw_one=yes
5965 else
5966   echo "$as_me: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5968 ac_cv_lib_fftw_fftw_one=no
5969 fi
5970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5971 LIBS=$ac_check_lib_save_LIBS
5972 fi
5973 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
5974 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
5975 if test $ac_cv_lib_fftw_fftw_one = yes; then
5976   fftw=true;
5977 cat >>confdefs.h <<\_ACEOF
5978 #define HAVE_FFTW 1
5979 _ACEOF
5980
5981 else
5982   fftw=false
5983 fi
5984
5985 echo "$as_me:$LINENO: checking for main in -lGL" >&5
5986 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5987 if test "${ac_cv_lib_GL_main+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   ac_check_lib_save_LIBS=$LIBS
5991 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
5992 cat >conftest.$ac_ext <<_ACEOF
5993 #line $LINENO "configure"
5994 #include "confdefs.h"
5995
5996
5997 int
5998 main ()
5999 {
6000 main ();
6001   ;
6002   return 0;
6003 }
6004 _ACEOF
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007   (eval $ac_link) 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); } &&
6011          { ac_try='test -s conftest$ac_exeext'
6012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013   (eval $ac_try) 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); }; }; then
6017   ac_cv_lib_GL_main=yes
6018 else
6019   echo "$as_me: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6021 ac_cv_lib_GL_main=no
6022 fi
6023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6024 LIBS=$ac_check_lib_save_LIBS
6025 fi
6026 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6027 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6028 if test $ac_cv_lib_GL_main = yes; then
6029   libgl=true
6030 else
6031   libgl=false
6032 fi
6033
6034 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6035 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6036 if test "${ac_cv_lib_pthread_main+set}" = set; then
6037   echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039   ac_check_lib_save_LIBS=$LIBS
6040 LIBS="-lpthread  $LIBS"
6041 cat >conftest.$ac_ext <<_ACEOF
6042 #line $LINENO "configure"
6043 #include "confdefs.h"
6044
6045
6046 int
6047 main ()
6048 {
6049 main ();
6050   ;
6051   return 0;
6052 }
6053 _ACEOF
6054 rm -f conftest.$ac_objext conftest$ac_exeext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056   (eval $ac_link) 2>&5
6057   ac_status=$?
6058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059   (exit $ac_status); } &&
6060          { ac_try='test -s conftest$ac_exeext'
6061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062   (eval $ac_try) 2>&5
6063   ac_status=$?
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); }; }; then
6066   ac_cv_lib_pthread_main=yes
6067 else
6068   echo "$as_me: failed program was:" >&5
6069 cat conftest.$ac_ext >&5
6070 ac_cv_lib_pthread_main=no
6071 fi
6072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6073 LIBS=$ac_check_lib_save_LIBS
6074 fi
6075 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6076 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6077 if test $ac_cv_lib_pthread_main = yes; then
6078   pthread=true
6079 else
6080   pthread=false
6081 fi
6082
6083
6084 if test "$zlib" = "true" ; then
6085   echo "$as_me:$LINENO: checking for main in -lpng" >&5
6086 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6087 if test "${ac_cv_lib_png_main+set}" = set; then
6088   echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090   ac_check_lib_save_LIBS=$LIBS
6091 LIBS="-lpng -lz -lm $LIBS"
6092 cat >conftest.$ac_ext <<_ACEOF
6093 #line $LINENO "configure"
6094 #include "confdefs.h"
6095
6096
6097 int
6098 main ()
6099 {
6100 main ();
6101   ;
6102   return 0;
6103 }
6104 _ACEOF
6105 rm -f conftest.$ac_objext conftest$ac_exeext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107   (eval $ac_link) 2>&5
6108   ac_status=$?
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); } &&
6111          { ac_try='test -s conftest$ac_exeext'
6112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113   (eval $ac_try) 2>&5
6114   ac_status=$?
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); }; }; then
6117   ac_cv_lib_png_main=yes
6118 else
6119   echo "$as_me: failed program was:" >&5
6120 cat conftest.$ac_ext >&5
6121 ac_cv_lib_png_main=no
6122 fi
6123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6124 LIBS=$ac_check_lib_save_LIBS
6125 fi
6126 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6127 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6128 if test $ac_cv_lib_png_main = yes; then
6129   png=true ;
6130 cat >>confdefs.h <<\_ACEOF
6131 #define HAVE_PNG 1
6132 _ACEOF
6133
6134 else
6135   png=false
6136 fi
6137
6138 fi
6139
6140 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6142 if test "${ac_cv_header_stdc+set}" = set; then
6143   echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145   cat >conftest.$ac_ext <<_ACEOF
6146 #line $LINENO "configure"
6147 #include "confdefs.h"
6148 #include <stdlib.h>
6149 #include <stdarg.h>
6150 #include <string.h>
6151 #include <float.h>
6152
6153 _ACEOF
6154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6155   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6156   ac_status=$?
6157   grep -v '^ *+' conftest.er1 >conftest.err
6158   rm -f conftest.er1
6159   cat conftest.err >&5
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); } >/dev/null; then
6162   if test -s conftest.err; then
6163     ac_cpp_err=$ac_c_preproc_warn_flag
6164   else
6165     ac_cpp_err=
6166   fi
6167 else
6168   ac_cpp_err=yes
6169 fi
6170 if test -z "$ac_cpp_err"; then
6171   ac_cv_header_stdc=yes
6172 else
6173   echo "$as_me: failed program was:" >&5
6174   cat conftest.$ac_ext >&5
6175   ac_cv_header_stdc=no
6176 fi
6177 rm -f conftest.err conftest.$ac_ext
6178
6179 if test $ac_cv_header_stdc = yes; then
6180   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6181   cat >conftest.$ac_ext <<_ACEOF
6182 #line $LINENO "configure"
6183 #include "confdefs.h"
6184 #include <string.h>
6185
6186 _ACEOF
6187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6188   $EGREP "memchr" >/dev/null 2>&1; then
6189   :
6190 else
6191   ac_cv_header_stdc=no
6192 fi
6193 rm -f conftest*
6194
6195 fi
6196
6197 if test $ac_cv_header_stdc = yes; then
6198   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6199   cat >conftest.$ac_ext <<_ACEOF
6200 #line $LINENO "configure"
6201 #include "confdefs.h"
6202 #include <stdlib.h>
6203
6204 _ACEOF
6205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6206   $EGREP "free" >/dev/null 2>&1; then
6207   :
6208 else
6209   ac_cv_header_stdc=no
6210 fi
6211 rm -f conftest*
6212
6213 fi
6214
6215 if test $ac_cv_header_stdc = yes; then
6216   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6217   if test "$cross_compiling" = yes; then
6218   :
6219 else
6220   cat >conftest.$ac_ext <<_ACEOF
6221 #line $LINENO "configure"
6222 #include "confdefs.h"
6223 #include <ctype.h>
6224 #if ((' ' & 0x0FF) == 0x020)
6225 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6226 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6227 #else
6228 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6229                      || ('j' <= (c) && (c) <= 'r') \
6230                      || ('s' <= (c) && (c) <= 'z'))
6231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6232 #endif
6233
6234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6235 int
6236 main ()
6237 {
6238   int i;
6239   for (i = 0; i < 256; i++)
6240     if (XOR (islower (i), ISLOWER (i))
6241         || toupper (i) != TOUPPER (i))
6242       exit(2);
6243   exit (0);
6244 }
6245 _ACEOF
6246 rm -f conftest$ac_exeext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6248   (eval $ac_link) 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253   (eval $ac_try) 2>&5
6254   ac_status=$?
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); }; }; then
6257   :
6258 else
6259   echo "$as_me: program exited with status $ac_status" >&5
6260 echo "$as_me: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6262 ( exit $ac_status )
6263 ac_cv_header_stdc=no
6264 fi
6265 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6266 fi
6267 fi
6268 fi
6269 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6270 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6271 if test $ac_cv_header_stdc = yes; then
6272
6273 cat >>confdefs.h <<\_ACEOF
6274 #define STDC_HEADERS 1
6275 _ACEOF
6276
6277 fi
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303 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
6304 do
6305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6307   echo "$as_me:$LINENO: checking for $ac_header" >&5
6308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6310   echo $ECHO_N "(cached) $ECHO_C" >&6
6311 fi
6312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6314 else
6315   # Is the header compilable?
6316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6318 cat >conftest.$ac_ext <<_ACEOF
6319 #line $LINENO "configure"
6320 #include "confdefs.h"
6321 $ac_includes_default
6322 #include <$ac_header>
6323 _ACEOF
6324 rm -f conftest.$ac_objext
6325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6326   (eval $ac_compile) 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); } &&
6330          { ac_try='test -s conftest.$ac_objext'
6331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332   (eval $ac_try) 2>&5
6333   ac_status=$?
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); }; }; then
6336   ac_header_compiler=yes
6337 else
6338   echo "$as_me: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6340 ac_header_compiler=no
6341 fi
6342 rm -f conftest.$ac_objext conftest.$ac_ext
6343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6344 echo "${ECHO_T}$ac_header_compiler" >&6
6345
6346 # Is the header present?
6347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6349 cat >conftest.$ac_ext <<_ACEOF
6350 #line $LINENO "configure"
6351 #include "confdefs.h"
6352 #include <$ac_header>
6353 _ACEOF
6354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6356   ac_status=$?
6357   grep -v '^ *+' conftest.er1 >conftest.err
6358   rm -f conftest.er1
6359   cat conftest.err >&5
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); } >/dev/null; then
6362   if test -s conftest.err; then
6363     ac_cpp_err=$ac_c_preproc_warn_flag
6364   else
6365     ac_cpp_err=
6366   fi
6367 else
6368   ac_cpp_err=yes
6369 fi
6370 if test -z "$ac_cpp_err"; then
6371   ac_header_preproc=yes
6372 else
6373   echo "$as_me: failed program was:" >&5
6374   cat conftest.$ac_ext >&5
6375   ac_header_preproc=no
6376 fi
6377 rm -f conftest.err conftest.$ac_ext
6378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6379 echo "${ECHO_T}$ac_header_preproc" >&6
6380
6381 # So?  What about this header?
6382 case $ac_header_compiler:$ac_header_preproc in
6383   yes:no )
6384     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6388   no:yes )
6389     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6391     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6395 esac
6396 echo "$as_me:$LINENO: checking for $ac_header" >&5
6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6399   echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401   eval "$as_ac_Header=$ac_header_preproc"
6402 fi
6403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6405
6406 fi
6407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6408   cat >>confdefs.h <<_ACEOF
6409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6410 _ACEOF
6411
6412 fi
6413
6414 done
6415
6416
6417 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6418 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6419 if test "${ac_cv_c_const+set}" = set; then
6420   echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422   cat >conftest.$ac_ext <<_ACEOF
6423 #line $LINENO "configure"
6424 #include "confdefs.h"
6425
6426 int
6427 main ()
6428 {
6429 /* FIXME: Include the comments suggested by Paul. */
6430 #ifndef __cplusplus
6431   /* Ultrix mips cc rejects this.  */
6432   typedef int charset[2];
6433   const charset x;
6434   /* SunOS 4.1.1 cc rejects this.  */
6435   char const *const *ccp;
6436   char **p;
6437   /* NEC SVR4.0.2 mips cc rejects this.  */
6438   struct point {int x, y;};
6439   static struct point const zero = {0,0};
6440   /* AIX XL C 1.02.0.0 rejects this.
6441      It does not let you subtract one const X* pointer from another in
6442      an arm of an if-expression whose if-part is not a constant
6443      expression */
6444   const char *g = "string";
6445   ccp = &g + (g ? g-g : 0);
6446   /* HPUX 7.0 cc rejects these. */
6447   ++ccp;
6448   p = (char**) ccp;
6449   ccp = (char const *const *) p;
6450   { /* SCO 3.2v4 cc rejects this.  */
6451     char *t;
6452     char const *s = 0 ? (char *) 0 : (char const *) 0;
6453
6454     *t++ = 0;
6455   }
6456   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6457     int x[] = {25, 17};
6458     const int *foo = &x[0];
6459     ++foo;
6460   }
6461   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6462     typedef const int *iptr;
6463     iptr p = 0;
6464     ++p;
6465   }
6466   { /* AIX XL C 1.02.0.0 rejects this saying
6467        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6468     struct s { int j; const int *ap[3]; };
6469     struct s *b; b->j = 5;
6470   }
6471   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6472     const int foo = 10;
6473   }
6474 #endif
6475
6476   ;
6477   return 0;
6478 }
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482   (eval $ac_compile) 2>&5
6483   ac_status=$?
6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); } &&
6486          { ac_try='test -s conftest.$ac_objext'
6487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488   (eval $ac_try) 2>&5
6489   ac_status=$?
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); }; }; then
6492   ac_cv_c_const=yes
6493 else
6494   echo "$as_me: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6496 ac_cv_c_const=no
6497 fi
6498 rm -f conftest.$ac_objext conftest.$ac_ext
6499 fi
6500 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6501 echo "${ECHO_T}$ac_cv_c_const" >&6
6502 if test $ac_cv_c_const = no; then
6503
6504 cat >>confdefs.h <<\_ACEOF
6505 #define const
6506 _ACEOF
6507
6508 fi
6509
6510 echo "$as_me:$LINENO: checking for off_t" >&5
6511 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6512 if test "${ac_cv_type_off_t+set}" = set; then
6513   echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515   cat >conftest.$ac_ext <<_ACEOF
6516 #line $LINENO "configure"
6517 #include "confdefs.h"
6518 $ac_includes_default
6519 int
6520 main ()
6521 {
6522 if ((off_t *) 0)
6523   return 0;
6524 if (sizeof (off_t))
6525   return 0;
6526   ;
6527   return 0;
6528 }
6529 _ACEOF
6530 rm -f conftest.$ac_objext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6532   (eval $ac_compile) 2>&5
6533   ac_status=$?
6534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535   (exit $ac_status); } &&
6536          { ac_try='test -s conftest.$ac_objext'
6537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538   (eval $ac_try) 2>&5
6539   ac_status=$?
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); }; }; then
6542   ac_cv_type_off_t=yes
6543 else
6544   echo "$as_me: failed program was:" >&5
6545 cat conftest.$ac_ext >&5
6546 ac_cv_type_off_t=no
6547 fi
6548 rm -f conftest.$ac_objext conftest.$ac_ext
6549 fi
6550 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6551 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6552 if test $ac_cv_type_off_t = yes; then
6553   :
6554 else
6555
6556 cat >>confdefs.h <<_ACEOF
6557 #define off_t long
6558 _ACEOF
6559
6560 fi
6561
6562 echo "$as_me:$LINENO: checking for size_t" >&5
6563 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6564 if test "${ac_cv_type_size_t+set}" = set; then
6565   echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567   cat >conftest.$ac_ext <<_ACEOF
6568 #line $LINENO "configure"
6569 #include "confdefs.h"
6570 $ac_includes_default
6571 int
6572 main ()
6573 {
6574 if ((size_t *) 0)
6575   return 0;
6576 if (sizeof (size_t))
6577   return 0;
6578   ;
6579   return 0;
6580 }
6581 _ACEOF
6582 rm -f conftest.$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584   (eval $ac_compile) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); } &&
6588          { ac_try='test -s conftest.$ac_objext'
6589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590   (eval $ac_try) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); }; }; then
6594   ac_cv_type_size_t=yes
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6598 ac_cv_type_size_t=no
6599 fi
6600 rm -f conftest.$ac_objext conftest.$ac_ext
6601 fi
6602 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6603 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6604 if test $ac_cv_type_size_t = yes; then
6605   :
6606 else
6607
6608 cat >>confdefs.h <<_ACEOF
6609 #define size_t unsigned
6610 _ACEOF
6611
6612 fi
6613
6614 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6615 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6616 if test "${ac_cv_struct_tm+set}" = set; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619   cat >conftest.$ac_ext <<_ACEOF
6620 #line $LINENO "configure"
6621 #include "confdefs.h"
6622 #include <sys/types.h>
6623 #include <time.h>
6624
6625 int
6626 main ()
6627 {
6628 struct tm *tp; tp->tm_sec;
6629   ;
6630   return 0;
6631 }
6632 _ACEOF
6633 rm -f conftest.$ac_objext
6634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6635   (eval $ac_compile) 2>&5
6636   ac_status=$?
6637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638   (exit $ac_status); } &&
6639          { ac_try='test -s conftest.$ac_objext'
6640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641   (eval $ac_try) 2>&5
6642   ac_status=$?
6643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644   (exit $ac_status); }; }; then
6645   ac_cv_struct_tm=time.h
6646 else
6647   echo "$as_me: failed program was:" >&5
6648 cat conftest.$ac_ext >&5
6649 ac_cv_struct_tm=sys/time.h
6650 fi
6651 rm -f conftest.$ac_objext conftest.$ac_ext
6652 fi
6653 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6654 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6655 if test $ac_cv_struct_tm = sys/time.h; then
6656
6657 cat >>confdefs.h <<\_ACEOF
6658 #define TM_IN_SYS_TIME 1
6659 _ACEOF
6660
6661 fi
6662
6663
6664
6665 for ac_func in vprintf
6666 do
6667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6668 echo "$as_me:$LINENO: checking for $ac_func" >&5
6669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6670 if eval "test \"\${$as_ac_var+set}\" = set"; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673   cat >conftest.$ac_ext <<_ACEOF
6674 #line $LINENO "configure"
6675 #include "confdefs.h"
6676 /* System header to define __stub macros and hopefully few prototypes,
6677     which can conflict with char $ac_func (); below.  */
6678 #include <assert.h>
6679 /* Override any gcc2 internal prototype to avoid an error.  */
6680 #ifdef __cplusplus
6681 extern "C"
6682 #endif
6683 /* We use char because int might match the return type of a gcc2
6684    builtin and then its argument prototype would still apply.  */
6685 char $ac_func ();
6686 char (*f) ();
6687
6688 int
6689 main ()
6690 {
6691 /* The GNU C library defines this for functions which it implements
6692     to always fail with ENOSYS.  Some functions are actually named
6693     something starting with __ and the normal name is an alias.  */
6694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6695 choke me
6696 #else
6697 f = $ac_func;
6698 #endif
6699
6700   ;
6701   return 0;
6702 }
6703 _ACEOF
6704 rm -f conftest.$ac_objext conftest$ac_exeext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6706   (eval $ac_link) 2>&5
6707   ac_status=$?
6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); } &&
6710          { ac_try='test -s conftest$ac_exeext'
6711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712   (eval $ac_try) 2>&5
6713   ac_status=$?
6714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715   (exit $ac_status); }; }; then
6716   eval "$as_ac_var=yes"
6717 else
6718   echo "$as_me: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6720 eval "$as_ac_var=no"
6721 fi
6722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6723 fi
6724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6726 if test `eval echo '${'$as_ac_var'}'` = yes; then
6727   cat >>confdefs.h <<_ACEOF
6728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6729 _ACEOF
6730
6731 echo "$as_me:$LINENO: checking for _doprnt" >&5
6732 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6733 if test "${ac_cv_func__doprnt+set}" = set; then
6734   echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736   cat >conftest.$ac_ext <<_ACEOF
6737 #line $LINENO "configure"
6738 #include "confdefs.h"
6739 /* System header to define __stub macros and hopefully few prototypes,
6740     which can conflict with char _doprnt (); below.  */
6741 #include <assert.h>
6742 /* Override any gcc2 internal prototype to avoid an error.  */
6743 #ifdef __cplusplus
6744 extern "C"
6745 #endif
6746 /* We use char because int might match the return type of a gcc2
6747    builtin and then its argument prototype would still apply.  */
6748 char _doprnt ();
6749 char (*f) ();
6750
6751 int
6752 main ()
6753 {
6754 /* The GNU C library defines this for functions which it implements
6755     to always fail with ENOSYS.  Some functions are actually named
6756     something starting with __ and the normal name is an alias.  */
6757 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6758 choke me
6759 #else
6760 f = _doprnt;
6761 #endif
6762
6763   ;
6764   return 0;
6765 }
6766 _ACEOF
6767 rm -f conftest.$ac_objext conftest$ac_exeext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6769   (eval $ac_link) 2>&5
6770   ac_status=$?
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); } &&
6773          { ac_try='test -s conftest$ac_exeext'
6774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775   (eval $ac_try) 2>&5
6776   ac_status=$?
6777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778   (exit $ac_status); }; }; then
6779   ac_cv_func__doprnt=yes
6780 else
6781   echo "$as_me: failed program was:" >&5
6782 cat conftest.$ac_ext >&5
6783 ac_cv_func__doprnt=no
6784 fi
6785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6786 fi
6787 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6788 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
6789 if test $ac_cv_func__doprnt = yes; then
6790
6791 cat >>confdefs.h <<\_ACEOF
6792 #define HAVE_DOPRNT 1
6793 _ACEOF
6794
6795 fi
6796
6797 fi
6798 done
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
6809 do
6810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6811 echo "$as_me:$LINENO: checking for $ac_func" >&5
6812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6813 if eval "test \"\${$as_ac_var+set}\" = set"; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   cat >conftest.$ac_ext <<_ACEOF
6817 #line $LINENO "configure"
6818 #include "confdefs.h"
6819 /* System header to define __stub macros and hopefully few prototypes,
6820     which can conflict with char $ac_func (); below.  */
6821 #include <assert.h>
6822 /* Override any gcc2 internal prototype to avoid an error.  */
6823 #ifdef __cplusplus
6824 extern "C"
6825 #endif
6826 /* We use char because int might match the return type of a gcc2
6827    builtin and then its argument prototype would still apply.  */
6828 char $ac_func ();
6829 char (*f) ();
6830
6831 int
6832 main ()
6833 {
6834 /* The GNU C library defines this for functions which it implements
6835     to always fail with ENOSYS.  Some functions are actually named
6836     something starting with __ and the normal name is an alias.  */
6837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6838 choke me
6839 #else
6840 f = $ac_func;
6841 #endif
6842
6843   ;
6844   return 0;
6845 }
6846 _ACEOF
6847 rm -f conftest.$ac_objext conftest$ac_exeext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6849   (eval $ac_link) 2>&5
6850   ac_status=$?
6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); } &&
6853          { ac_try='test -s conftest$ac_exeext'
6854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855   (eval $ac_try) 2>&5
6856   ac_status=$?
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); }; }; then
6859   eval "$as_ac_var=yes"
6860 else
6861   echo "$as_me: failed program was:" >&5
6862 cat conftest.$ac_ext >&5
6863 eval "$as_ac_var=no"
6864 fi
6865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6866 fi
6867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6869 if test `eval echo '${'$as_ac_var'}'` = yes; then
6870   cat >>confdefs.h <<_ACEOF
6871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6872 _ACEOF
6873
6874 fi
6875 done
6876
6877 echo "$as_me:$LINENO: checking for basename" >&5
6878 echo $ECHO_N "checking for basename... $ECHO_C" >&6
6879 if test "${ac_cv_func_basename+set}" = set; then
6880   echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882   cat >conftest.$ac_ext <<_ACEOF
6883 #line $LINENO "configure"
6884 #include "confdefs.h"
6885 /* System header to define __stub macros and hopefully few prototypes,
6886     which can conflict with char basename (); below.  */
6887 #include <assert.h>
6888 /* Override any gcc2 internal prototype to avoid an error.  */
6889 #ifdef __cplusplus
6890 extern "C"
6891 #endif
6892 /* We use char because int might match the return type of a gcc2
6893    builtin and then its argument prototype would still apply.  */
6894 char basename ();
6895 char (*f) ();
6896
6897 int
6898 main ()
6899 {
6900 /* The GNU C library defines this for functions which it implements
6901     to always fail with ENOSYS.  Some functions are actually named
6902     something starting with __ and the normal name is an alias.  */
6903 #if defined (__stub_basename) || defined (__stub___basename)
6904 choke me
6905 #else
6906 f = basename;
6907 #endif
6908
6909   ;
6910   return 0;
6911 }
6912 _ACEOF
6913 rm -f conftest.$ac_objext conftest$ac_exeext
6914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6915   (eval $ac_link) 2>&5
6916   ac_status=$?
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); } &&
6919          { ac_try='test -s conftest$ac_exeext'
6920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921   (eval $ac_try) 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); }; }; then
6925   ac_cv_func_basename=yes
6926 else
6927   echo "$as_me: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6929 ac_cv_func_basename=no
6930 fi
6931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6932 fi
6933 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
6934 echo "${ECHO_T}$ac_cv_func_basename" >&6
6935
6936 echo "$as_me:$LINENO: checking for setjmp" >&5
6937 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
6938 if test "${ac_cv_func_setjmp+set}" = set; then
6939   echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941   cat >conftest.$ac_ext <<_ACEOF
6942 #line $LINENO "configure"
6943 #include "confdefs.h"
6944 /* System header to define __stub macros and hopefully few prototypes,
6945     which can conflict with char setjmp (); below.  */
6946 #include <assert.h>
6947 /* Override any gcc2 internal prototype to avoid an error.  */
6948 #ifdef __cplusplus
6949 extern "C"
6950 #endif
6951 /* We use char because int might match the return type of a gcc2
6952    builtin and then its argument prototype would still apply.  */
6953 char setjmp ();
6954 char (*f) ();
6955
6956 int
6957 main ()
6958 {
6959 /* The GNU C library defines this for functions which it implements
6960     to always fail with ENOSYS.  Some functions are actually named
6961     something starting with __ and the normal name is an alias.  */
6962 #if defined (__stub_setjmp) || defined (__stub___setjmp)
6963 choke me
6964 #else
6965 f = setjmp;
6966 #endif
6967
6968   ;
6969   return 0;
6970 }
6971 _ACEOF
6972 rm -f conftest.$ac_objext conftest$ac_exeext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6974   (eval $ac_link) 2>&5
6975   ac_status=$?
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); } &&
6978          { ac_try='test -s conftest$ac_exeext'
6979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980   (eval $ac_try) 2>&5
6981   ac_status=$?
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); }; }; then
6984   ac_cv_func_setjmp=yes
6985 else
6986   echo "$as_me: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6988 ac_cv_func_setjmp=no
6989 fi
6990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6991 fi
6992 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
6993 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
6994
6995 echo "$as_me:$LINENO: checking for setpriority" >&5
6996 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
6997 if test "${ac_cv_func_setpriority+set}" = set; then
6998   echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000   cat >conftest.$ac_ext <<_ACEOF
7001 #line $LINENO "configure"
7002 #include "confdefs.h"
7003 /* System header to define __stub macros and hopefully few prototypes,
7004     which can conflict with char setpriority (); below.  */
7005 #include <assert.h>
7006 /* Override any gcc2 internal prototype to avoid an error.  */
7007 #ifdef __cplusplus
7008 extern "C"
7009 #endif
7010 /* We use char because int might match the return type of a gcc2
7011    builtin and then its argument prototype would still apply.  */
7012 char setpriority ();
7013 char (*f) ();
7014
7015 int
7016 main ()
7017 {
7018 /* The GNU C library defines this for functions which it implements
7019     to always fail with ENOSYS.  Some functions are actually named
7020     something starting with __ and the normal name is an alias.  */
7021 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7022 choke me
7023 #else
7024 f = setpriority;
7025 #endif
7026
7027   ;
7028   return 0;
7029 }
7030 _ACEOF
7031 rm -f conftest.$ac_objext conftest$ac_exeext
7032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7033   (eval $ac_link) 2>&5
7034   ac_status=$?
7035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036   (exit $ac_status); } &&
7037          { ac_try='test -s conftest$ac_exeext'
7038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039   (eval $ac_try) 2>&5
7040   ac_status=$?
7041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042   (exit $ac_status); }; }; then
7043   ac_cv_func_setpriority=yes
7044 else
7045   echo "$as_me: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7047 ac_cv_func_setpriority=no
7048 fi
7049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7050 fi
7051 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7052 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7053
7054 echo "$as_me:$LINENO: checking for time" >&5
7055 echo $ECHO_N "checking for time... $ECHO_C" >&6
7056 if test "${ac_cv_func_time+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   cat >conftest.$ac_ext <<_ACEOF
7060 #line $LINENO "configure"
7061 #include "confdefs.h"
7062 /* System header to define __stub macros and hopefully few prototypes,
7063     which can conflict with char time (); below.  */
7064 #include <assert.h>
7065 /* Override any gcc2 internal prototype to avoid an error.  */
7066 #ifdef __cplusplus
7067 extern "C"
7068 #endif
7069 /* We use char because int might match the return type of a gcc2
7070    builtin and then its argument prototype would still apply.  */
7071 char time ();
7072 char (*f) ();
7073
7074 int
7075 main ()
7076 {
7077 /* The GNU C library defines this for functions which it implements
7078     to always fail with ENOSYS.  Some functions are actually named
7079     something starting with __ and the normal name is an alias.  */
7080 #if defined (__stub_time) || defined (__stub___time)
7081 choke me
7082 #else
7083 f = time;
7084 #endif
7085
7086   ;
7087   return 0;
7088 }
7089 _ACEOF
7090 rm -f conftest.$ac_objext conftest$ac_exeext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7092   (eval $ac_link) 2>&5
7093   ac_status=$?
7094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095   (exit $ac_status); } &&
7096          { ac_try='test -s conftest$ac_exeext'
7097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098   (eval $ac_try) 2>&5
7099   ac_status=$?
7100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); }; }; then
7102   ac_cv_func_time=yes
7103 else
7104   echo "$as_me: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7106 ac_cv_func_time=no
7107 fi
7108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7109 fi
7110 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7111 echo "${ECHO_T}$ac_cv_func_time" >&6
7112
7113 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7114 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7115 if test "${ac_cv_func_gettimeofday+set}" = set; then
7116   echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118   cat >conftest.$ac_ext <<_ACEOF
7119 #line $LINENO "configure"
7120 #include "confdefs.h"
7121 /* System header to define __stub macros and hopefully few prototypes,
7122     which can conflict with char gettimeofday (); below.  */
7123 #include <assert.h>
7124 /* Override any gcc2 internal prototype to avoid an error.  */
7125 #ifdef __cplusplus
7126 extern "C"
7127 #endif
7128 /* We use char because int might match the return type of a gcc2
7129    builtin and then its argument prototype would still apply.  */
7130 char gettimeofday ();
7131 char (*f) ();
7132
7133 int
7134 main ()
7135 {
7136 /* The GNU C library defines this for functions which it implements
7137     to always fail with ENOSYS.  Some functions are actually named
7138     something starting with __ and the normal name is an alias.  */
7139 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7140 choke me
7141 #else
7142 f = gettimeofday;
7143 #endif
7144
7145   ;
7146   return 0;
7147 }
7148 _ACEOF
7149 rm -f conftest.$ac_objext conftest$ac_exeext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151   (eval $ac_link) 2>&5
7152   ac_status=$?
7153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154   (exit $ac_status); } &&
7155          { ac_try='test -s conftest$ac_exeext'
7156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157   (eval $ac_try) 2>&5
7158   ac_status=$?
7159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160   (exit $ac_status); }; }; then
7161   ac_cv_func_gettimeofday=yes
7162 else
7163   echo "$as_me: failed program was:" >&5
7164 cat conftest.$ac_ext >&5
7165 ac_cv_func_gettimeofday=no
7166 fi
7167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7168 fi
7169 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7170 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7171
7172
7173 if test "${OSTYPE}" = "cygwin" ; then
7174   getopt_long=false
7175 else
7176   echo "$as_me:$LINENO: checking for getopt_long" >&5
7177 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7178 if test "${ac_cv_func_getopt_long+set}" = set; then
7179   echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181   cat >conftest.$ac_ext <<_ACEOF
7182 #line $LINENO "configure"
7183 #include "confdefs.h"
7184 /* System header to define __stub macros and hopefully few prototypes,
7185     which can conflict with char getopt_long (); below.  */
7186 #include <assert.h>
7187 /* Override any gcc2 internal prototype to avoid an error.  */
7188 #ifdef __cplusplus
7189 extern "C"
7190 #endif
7191 /* We use char because int might match the return type of a gcc2
7192    builtin and then its argument prototype would still apply.  */
7193 char getopt_long ();
7194 char (*f) ();
7195
7196 int
7197 main ()
7198 {
7199 /* The GNU C library defines this for functions which it implements
7200     to always fail with ENOSYS.  Some functions are actually named
7201     something starting with __ and the normal name is an alias.  */
7202 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7203 choke me
7204 #else
7205 f = getopt_long;
7206 #endif
7207
7208   ;
7209   return 0;
7210 }
7211 _ACEOF
7212 rm -f conftest.$ac_objext conftest$ac_exeext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7214   (eval $ac_link) 2>&5
7215   ac_status=$?
7216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217   (exit $ac_status); } &&
7218          { ac_try='test -s conftest$ac_exeext'
7219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220   (eval $ac_try) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); }; }; then
7224   ac_cv_func_getopt_long=yes
7225 else
7226   echo "$as_me: failed program was:" >&5
7227 cat conftest.$ac_ext >&5
7228 ac_cv_func_getopt_long=no
7229 fi
7230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7231 fi
7232 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
7233 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
7234 if test $ac_cv_func_getopt_long = yes; then
7235    getopt_long=true
7236 else
7237    getopt_long=false
7238 fi
7239
7240 fi
7241
7242 if test "${getopt_long}" = "false" ; then
7243   my_includes="$my_includes -I../getopt"
7244
7245 cat >>confdefs.h <<\_ACEOF
7246 #define HAVE_GETOPT_LONG 1
7247 _ACEOF
7248
7249   ctlibs_base="$ctlibs_base -lgetopt"
7250   LDFLAGS="$LDFLAGS -L../getopt"
7251
7252
7253 if test 1==1; then
7254   INCLUDED_GETOPT_LONG_TRUE=
7255   INCLUDED_GETOPT_LONG_FALSE='#'
7256 else
7257   INCLUDED_GETOPT_LONG_TRUE='#'
7258   INCLUDED_GETOPT_LONG_FALSE=
7259 fi
7260
7261 fi
7262
7263 if test "${readline}" = "true" ; then
7264   ctlibs_base="$ctlibs_base -lreadline"
7265   if test "${ncurses}" = "true"; then
7266     ctlibs_base="$ctlibs_base -lncurses"
7267   elif test "${curses}" = "true"; then
7268     ctlibs_base="$ctlibs_base -lcurses"
7269   fi
7270 fi
7271
7272 echo "$as_me:$LINENO: checking debug" >&5
7273 echo $ECHO_N "checking debug... $ECHO_C" >&6
7274 # Check whether --enable-debug or --disable-debug was given.
7275 if test "${enable_debug+set}" = set; then
7276   enableval="$enable_debug"
7277   case "${enableval}" in
7278   yes) debug=true
7279        echo "$as_me:$LINENO: result: yes" >&5
7280 echo "${ECHO_T}yes" >&6
7281        ;;
7282   no)  debug=false
7283        echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6
7285        ;;
7286   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
7287 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
7288        ;;
7289 esac
7290 else
7291   debug=false; echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6
7293 fi;
7294
7295
7296 if test "$debug" = "true"; then
7297   DEBUG_TRUE=
7298   DEBUG_FALSE='#'
7299 else
7300   DEBUG_TRUE='#'
7301   DEBUG_FALSE=
7302 fi
7303
7304
7305 if test "$datadir" != "" ; then
7306   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
7307 fi
7308
7309 if test "$debug" = "true" ; then
7310   CFLAGS="$CFLAGS -g -DDEBUG"
7311
7312 cat >>confdefs.h <<\_ACEOF
7313 #define DEBUG 1
7314 _ACEOF
7315
7316 else
7317   CFLAGS="$CFLAGS -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops"
7318
7319 cat >>confdefs.h <<\_ACEOF
7320 #define NDEBUG 1
7321 _ACEOF
7322
7323 fi
7324
7325 if test "${pthread}" = "true" ; then
7326
7327 cat >>confdefs.h <<\_ACEOF
7328 #define HAVE_WXTHREADS 1
7329 _ACEOF
7330
7331 fi
7332
7333 echo "$as_me:$LINENO: checking sstream" >&5
7334 echo $ECHO_N "checking sstream... $ECHO_C" >&6
7335  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7336      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
7337      test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
7338
7339 cat >>confdefs.h <<\_ACEOF
7340 #define HAVE_SSTREAM 1
7341 _ACEOF
7342
7343   echo "$as_me:$LINENO: result: yes" >&5
7344 echo "${ECHO_T}yes" >&6
7345 fi
7346 echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6
7348
7349
7350 CFLAGS="$CFLAGS -Wall"
7351 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7352 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7353 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7354 if test "${enable_verbose_warnings+set}" = set; then
7355   enableval="$enable_verbose_warnings"
7356    case "$enableval" in
7357   yes)
7358     echo "$as_me:$LINENO: result: yes" >&5
7359 echo "${ECHO_T}yes" >&6
7360     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7361     ;;
7362   *)
7363     echo "$as_me:$LINENO: result: no" >&5
7364 echo "${ECHO_T}no" >&6
7365     ;;
7366   esac
7367 else
7368   echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6
7370
7371 fi;
7372
7373 echo "$as_me:$LINENO: checking static executables" >&5
7374 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7375 # Check whether --enable-static or --disable-static was given.
7376 if test "${enable_static+set}" = set; then
7377   enableval="$enable_static"
7378    case "$enableval" in
7379   yes)
7380     echo "$as_me:$LINENO: result: yes" >&5
7381 echo "${ECHO_T}yes" >&6
7382     CFLAGS="$CFLAGS --static"
7383     ;;
7384   *)
7385     echo "$as_me:$LINENO: result: no" >&5
7386 echo "${ECHO_T}no" >&6
7387     ;;
7388   esac
7389 else
7390   echo "$as_me:$LINENO: result: no" >&5
7391 echo "${ECHO_T}no" >&6
7392
7393 fi;
7394
7395
7396 # Check whether --with-lam or --without-lam was given.
7397 if test "${with_lam+set}" = set; then
7398   withval="$with_lam"
7399       if test "$withval" != "no" ; then
7400          trylamdir=$withval
7401      fi
7402
7403 fi;
7404
7405 if test "$withval" != "no" ; then
7406   if test "$prefix" != "NONE" ; then
7407      trylamdir="$trylamdir $prefix"
7408   fi
7409
7410   echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7411 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7412   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7413     if test -x "$testlamdir/bin/hcp" ; then
7414       if test "$testlamdir" != "/usr"; then
7415         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7416         CFLAGS="$CFLAGS -I$testlamdir/include"
7417       fi
7418       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7419       lamdir="$testlamdir"
7420
7421       mpienable="true"
7422
7423       break
7424     fi
7425   done
7426   echo "$as_me:$LINENO: result: $lamdir" >&5
7427 echo "${ECHO_T}$lamdir" >&6
7428 else
7429   echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7431 fi
7432
7433
7434
7435 # Check whether --with-ctn or --without-ctn was given.
7436 if test "${with_ctn+set}" = set; then
7437   withval="$with_ctn"
7438       if test "$withval" != "no" ; then
7439          tryctndir=$withval
7440      fi
7441
7442 fi;
7443
7444 if test "$withval" == "no" -o "$withval" == "NONE" ; then
7445   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7446 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7447   echo "$as_me:$LINENO: result: disabled" >&5
7448 echo "${ECHO_T}disabled" >&6
7449 else
7450   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7451 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7452   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7453     if test -f "$testctndir/libctn.a" ; then
7454       LDFLAGS="$LDFLAGS -L$testctndir"
7455       ctnlib="true"
7456       break
7457     fi
7458   done
7459   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7460     if test -f "$testctndir/ctn_os.h" ; then
7461       CFLAGS="$CFLAGS -I$testctndir"
7462       ctninclude="true"
7463       break
7464     fi
7465   done
7466   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7467       ctn="true"
7468
7469 cat >>confdefs.h <<\_ACEOF
7470 #define HAVE_CTN_DICOM 1
7471 _ACEOF
7472
7473       echo "$as_me:$LINENO: result: yes" >&5
7474 echo "${ECHO_T}yes" >&6
7475   else
7476     echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6
7478   fi
7479 fi
7480
7481 echo "$as_me:$LINENO: checking for web access" >&5
7482 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7483
7484 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7485 if test "${with_cgibin_dir+set}" = set; then
7486   withval="$with_cgibin_dir"
7487    cgibindir=$withval ;
7488 fi;
7489
7490
7491 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7492 if test "${with_cgibin_url+set}" = set; then
7493   withval="$with_cgibin_url"
7494    cgibinurl=$withval ;
7495 fi;
7496
7497
7498 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7499 if test "${with_webdata_dir+set}" = set; then
7500   withval="$with_webdata_dir"
7501    webdatadir=$withval ;
7502 fi;
7503
7504
7505 # Check whether --with-webdata-url or --without-webdata-url was given.
7506 if test "${with_webdata_url+set}" = set; then
7507   withval="$with_webdata_url"
7508    webdataurl=$withval ;
7509 fi;
7510
7511
7512 # Check whether --with-html-dir or --without-html-dir was given.
7513 if test "${with_html_dir+set}" = set; then
7514   withval="$with_html_dir"
7515    htmldir=$withval ;
7516 fi;
7517
7518 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7519   cgiprograms="ctsim.cgi ctsim.conf"
7520
7521 fi
7522
7523 if test -n "$htmldir" ; then
7524   htmldata=simulate.html
7525
7526 fi
7527
7528
7529 if test -n "$htmldir"; then
7530   USE_HTML_TRUE=
7531   USE_HTML_FALSE='#'
7532 else
7533   USE_HTML_TRUE='#'
7534   USE_HTML_FALSE=
7535 fi
7536
7537
7538 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7539   webenabled=true
7540
7541   echo "$as_me:$LINENO: result: yes" >&5
7542 echo "${ECHO_T}yes" >&6
7543   if test -z "$cgibindir" ; then
7544     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7545 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7546    { (exit 1); exit 1; }; }
7547   elif test -z "$cgibinurl" ; then
7548     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7549 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7550    { (exit 1); exit 1; }; }
7551   elif test -z "$webdatadir" ; then
7552     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7553 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7554    { (exit 1); exit 1; }; }
7555   elif test -z "$webdataurl" ; then
7556     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7557 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7558    { (exit 1); exit 1; }; }
7559   elif test -z "$htmldir" ; then
7560     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
7561 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
7562    { (exit 1); exit 1; }; }
7563   fi
7564 else
7565   echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6
7567 fi
7568
7569
7570
7571 if test -n "$lamdir"; then
7572   USE_LAM_TRUE=
7573   USE_LAM_FALSE='#'
7574 else
7575   USE_LAM_TRUE='#'
7576   USE_LAM_FALSE=
7577 fi
7578
7579
7580
7581 echo "$as_me:$LINENO: checking for X" >&5
7582 echo $ECHO_N "checking for X... $ECHO_C" >&6
7583
7584
7585 # Check whether --with-x or --without-x was given.
7586 if test "${with_x+set}" = set; then
7587   withval="$with_x"
7588
7589 fi;
7590 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7591 if test "x$with_x" = xno; then
7592   # The user explicitly disabled X.
7593   have_x=disabled
7594 else
7595   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7596     # Both variables are already set.
7597     have_x=yes
7598   else
7599     if test "${ac_cv_have_x+set}" = set; then
7600   echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602   # One or both of the vars are not set, and there is no cached value.
7603 ac_x_includes=no ac_x_libraries=no
7604 rm -fr conftest.dir
7605 if mkdir conftest.dir; then
7606   cd conftest.dir
7607   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7608   cat >Imakefile <<'_ACEOF'
7609 acfindx:
7610         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7611 _ACEOF
7612   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7613     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7614     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7615     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7616     for ac_extension in a so sl; do
7617       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7618          test -f $ac_im_libdir/libX11.$ac_extension; then
7619         ac_im_usrlibdir=$ac_im_libdir; break
7620       fi
7621     done
7622     # Screen out bogus values from the imake configuration.  They are
7623     # bogus both because they are the default anyway, and because
7624     # using them would break gcc on systems where it needs fixed includes.
7625     case $ac_im_incroot in
7626         /usr/include) ;;
7627         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7628     esac
7629     case $ac_im_usrlibdir in
7630         /usr/lib | /lib) ;;
7631         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7632     esac
7633   fi
7634   cd ..
7635   rm -fr conftest.dir
7636 fi
7637
7638 # Standard set of common directories for X headers.
7639 # Check X11 before X11Rn because it is often a symlink to the current release.
7640 ac_x_header_dirs='
7641 /usr/X11/include
7642 /usr/X11R6/include
7643 /usr/X11R5/include
7644 /usr/X11R4/include
7645
7646 /usr/include/X11
7647 /usr/include/X11R6
7648 /usr/include/X11R5
7649 /usr/include/X11R4
7650
7651 /usr/local/X11/include
7652 /usr/local/X11R6/include
7653 /usr/local/X11R5/include
7654 /usr/local/X11R4/include
7655
7656 /usr/local/include/X11
7657 /usr/local/include/X11R6
7658 /usr/local/include/X11R5
7659 /usr/local/include/X11R4
7660
7661 /usr/X386/include
7662 /usr/x386/include
7663 /usr/XFree86/include/X11
7664
7665 /usr/include
7666 /usr/local/include
7667 /usr/unsupported/include
7668 /usr/athena/include
7669 /usr/local/x11r5/include
7670 /usr/lpp/Xamples/include
7671
7672 /usr/openwin/include
7673 /usr/openwin/share/include'
7674
7675 if test "$ac_x_includes" = no; then
7676   # Guess where to find include files, by looking for Intrinsic.h.
7677   # First, try using that file with no special directory specified.
7678   cat >conftest.$ac_ext <<_ACEOF
7679 #line $LINENO "configure"
7680 #include "confdefs.h"
7681 #include <X11/Intrinsic.h>
7682 _ACEOF
7683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7684   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7685   ac_status=$?
7686   grep -v '^ *+' conftest.er1 >conftest.err
7687   rm -f conftest.er1
7688   cat conftest.err >&5
7689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690   (exit $ac_status); } >/dev/null; then
7691   if test -s conftest.err; then
7692     ac_cpp_err=$ac_c_preproc_warn_flag
7693   else
7694     ac_cpp_err=
7695   fi
7696 else
7697   ac_cpp_err=yes
7698 fi
7699 if test -z "$ac_cpp_err"; then
7700   # We can compile using X headers with no special include directory.
7701 ac_x_includes=
7702 else
7703   echo "$as_me: failed program was:" >&5
7704   cat conftest.$ac_ext >&5
7705   for ac_dir in $ac_x_header_dirs; do
7706   if test -r "$ac_dir/X11/Intrinsic.h"; then
7707     ac_x_includes=$ac_dir
7708     break
7709   fi
7710 done
7711 fi
7712 rm -f conftest.err conftest.$ac_ext
7713 fi # $ac_x_includes = no
7714
7715 if test "$ac_x_libraries" = no; then
7716   # Check for the libraries.
7717   # See if we find them without any special options.
7718   # Don't add to $LIBS permanently.
7719   ac_save_LIBS=$LIBS
7720   LIBS="-lXt $LIBS"
7721   cat >conftest.$ac_ext <<_ACEOF
7722 #line $LINENO "configure"
7723 #include "confdefs.h"
7724 #include <X11/Intrinsic.h>
7725 int
7726 main ()
7727 {
7728 XtMalloc (0)
7729   ;
7730   return 0;
7731 }
7732 _ACEOF
7733 rm -f conftest.$ac_objext conftest$ac_exeext
7734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7735   (eval $ac_link) 2>&5
7736   ac_status=$?
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); } &&
7739          { ac_try='test -s conftest$ac_exeext'
7740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741   (eval $ac_try) 2>&5
7742   ac_status=$?
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); }; }; then
7745   LIBS=$ac_save_LIBS
7746 # We can link X programs with no special library path.
7747 ac_x_libraries=
7748 else
7749   echo "$as_me: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7751 LIBS=$ac_save_LIBS
7752 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7753 do
7754   # Don't even attempt the hair of trying to link an X program!
7755   for ac_extension in a so sl; do
7756     if test -r $ac_dir/libXt.$ac_extension; then
7757       ac_x_libraries=$ac_dir
7758       break 2
7759     fi
7760   done
7761 done
7762 fi
7763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7764 fi # $ac_x_libraries = no
7765
7766 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7767   # Didn't find X anywhere.  Cache the known absence of X.
7768   ac_cv_have_x="have_x=no"
7769 else
7770   # Record where we found X for the cache.
7771   ac_cv_have_x="have_x=yes \
7772                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7773 fi
7774 fi
7775
7776   fi
7777   eval "$ac_cv_have_x"
7778 fi # $with_x != no
7779
7780 if test "$have_x" != yes; then
7781   echo "$as_me:$LINENO: result: $have_x" >&5
7782 echo "${ECHO_T}$have_x" >&6
7783   no_x=yes
7784 else
7785   # If each of the values was on the command line, it overrides each guess.
7786   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7787   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7788   # Update the cache value to reflect the command line values.
7789   ac_cv_have_x="have_x=yes \
7790                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7791   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7792 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7793 fi
7794
7795 if test "$no_x" = yes; then
7796   # Not all programs may use this symbol, but it does not hurt to define it.
7797
7798 cat >>confdefs.h <<\_ACEOF
7799 #define X_DISPLAY_MISSING 1
7800 _ACEOF
7801
7802   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7803 else
7804   if test -n "$x_includes"; then
7805     X_CFLAGS="$X_CFLAGS -I$x_includes"
7806   fi
7807
7808   # It would also be nice to do this for all -L options, not just this one.
7809   if test -n "$x_libraries"; then
7810     X_LIBS="$X_LIBS -L$x_libraries"
7811     # For Solaris; some versions of Sun CC require a space after -R and
7812     # others require no space.  Words are not sufficient . . . .
7813     case `(uname -sr) 2>/dev/null` in
7814     "SunOS 5"*)
7815       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7816 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7817       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7818       cat >conftest.$ac_ext <<_ACEOF
7819 #line $LINENO "configure"
7820 #include "confdefs.h"
7821
7822 int
7823 main ()
7824 {
7825
7826   ;
7827   return 0;
7828 }
7829 _ACEOF
7830 rm -f conftest.$ac_objext conftest$ac_exeext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7832   (eval $ac_link) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); } &&
7836          { ac_try='test -s conftest$ac_exeext'
7837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838   (eval $ac_try) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); }; }; then
7842   ac_R_nospace=yes
7843 else
7844   echo "$as_me: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7846 ac_R_nospace=no
7847 fi
7848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7849       if test $ac_R_nospace = yes; then
7850         echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6
7852         X_LIBS="$X_LIBS -R$x_libraries"
7853       else
7854         LIBS="$ac_xsave_LIBS -R $x_libraries"
7855         cat >conftest.$ac_ext <<_ACEOF
7856 #line $LINENO "configure"
7857 #include "confdefs.h"
7858
7859 int
7860 main ()
7861 {
7862
7863   ;
7864   return 0;
7865 }
7866 _ACEOF
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7869   (eval $ac_link) 2>&5
7870   ac_status=$?
7871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872   (exit $ac_status); } &&
7873          { ac_try='test -s conftest$ac_exeext'
7874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875   (eval $ac_try) 2>&5
7876   ac_status=$?
7877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878   (exit $ac_status); }; }; then
7879   ac_R_space=yes
7880 else
7881   echo "$as_me: failed program was:" >&5
7882 cat conftest.$ac_ext >&5
7883 ac_R_space=no
7884 fi
7885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7886         if test $ac_R_space = yes; then
7887           echo "$as_me:$LINENO: result: yes" >&5
7888 echo "${ECHO_T}yes" >&6
7889           X_LIBS="$X_LIBS -R $x_libraries"
7890         else
7891           echo "$as_me:$LINENO: result: neither works" >&5
7892 echo "${ECHO_T}neither works" >&6
7893         fi
7894       fi
7895       LIBS=$ac_xsave_LIBS
7896     esac
7897   fi
7898
7899   # Check for system-dependent libraries X programs must link with.
7900   # Do this before checking for the system-independent R6 libraries
7901   # (-lICE), since we may need -lsocket or whatever for X linking.
7902
7903   if test "$ISC" = yes; then
7904     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7905   else
7906     # Martyn Johnson says this is needed for Ultrix, if the X
7907     # libraries were built with DECnet support.  And Karl Berry says
7908     # the Alpha needs dnet_stub (dnet does not exist).
7909     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7910     cat >conftest.$ac_ext <<_ACEOF
7911 #line $LINENO "configure"
7912 #include "confdefs.h"
7913
7914 /* Override any gcc2 internal prototype to avoid an error.  */
7915 #ifdef __cplusplus
7916 extern "C"
7917 #endif
7918 /* We use char because int might match the return type of a gcc2
7919    builtin and then its argument prototype would still apply.  */
7920 char XOpenDisplay ();
7921 int
7922 main ()
7923 {
7924 XOpenDisplay ();
7925   ;
7926   return 0;
7927 }
7928 _ACEOF
7929 rm -f conftest.$ac_objext conftest$ac_exeext
7930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7931   (eval $ac_link) 2>&5
7932   ac_status=$?
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); } &&
7935          { ac_try='test -s conftest$ac_exeext'
7936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937   (eval $ac_try) 2>&5
7938   ac_status=$?
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); }; }; then
7941   :
7942 else
7943   echo "$as_me: failed program was:" >&5
7944 cat conftest.$ac_ext >&5
7945 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7946 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7947 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7948   echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950   ac_check_lib_save_LIBS=$LIBS
7951 LIBS="-ldnet  $LIBS"
7952 cat >conftest.$ac_ext <<_ACEOF
7953 #line $LINENO "configure"
7954 #include "confdefs.h"
7955
7956 /* Override any gcc2 internal prototype to avoid an error.  */
7957 #ifdef __cplusplus
7958 extern "C"
7959 #endif
7960 /* We use char because int might match the return type of a gcc2
7961    builtin and then its argument prototype would still apply.  */
7962 char dnet_ntoa ();
7963 int
7964 main ()
7965 {
7966 dnet_ntoa ();
7967   ;
7968   return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7973   (eval $ac_link) 2>&5
7974   ac_status=$?
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); } &&
7977          { ac_try='test -s conftest$ac_exeext'
7978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979   (eval $ac_try) 2>&5
7980   ac_status=$?
7981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982   (exit $ac_status); }; }; then
7983   ac_cv_lib_dnet_dnet_ntoa=yes
7984 else
7985   echo "$as_me: failed program was:" >&5
7986 cat conftest.$ac_ext >&5
7987 ac_cv_lib_dnet_dnet_ntoa=no
7988 fi
7989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7990 LIBS=$ac_check_lib_save_LIBS
7991 fi
7992 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7993 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7994 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7995   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7996 fi
7997
7998     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7999       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8000 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8001 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8002   echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004   ac_check_lib_save_LIBS=$LIBS
8005 LIBS="-ldnet_stub  $LIBS"
8006 cat >conftest.$ac_ext <<_ACEOF
8007 #line $LINENO "configure"
8008 #include "confdefs.h"
8009
8010 /* Override any gcc2 internal prototype to avoid an error.  */
8011 #ifdef __cplusplus
8012 extern "C"
8013 #endif
8014 /* We use char because int might match the return type of a gcc2
8015    builtin and then its argument prototype would still apply.  */
8016 char dnet_ntoa ();
8017 int
8018 main ()
8019 {
8020 dnet_ntoa ();
8021   ;
8022   return 0;
8023 }
8024 _ACEOF
8025 rm -f conftest.$ac_objext conftest$ac_exeext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8027   (eval $ac_link) 2>&5
8028   ac_status=$?
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); } &&
8031          { ac_try='test -s conftest$ac_exeext'
8032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033   (eval $ac_try) 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); }; }; then
8037   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8038 else
8039   echo "$as_me: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8041 ac_cv_lib_dnet_stub_dnet_ntoa=no
8042 fi
8043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8044 LIBS=$ac_check_lib_save_LIBS
8045 fi
8046 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8047 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8048 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8049   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8050 fi
8051
8052     fi
8053 fi
8054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8055     LIBS="$ac_xsave_LIBS"
8056
8057     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8058     # to get the SysV transport functions.
8059     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8060     # needs -lnsl.
8061     # The nsl library prevents programs from opening the X display
8062     # on Irix 5.2, according to T.E. Dickey.
8063     # The functions gethostbyname, getservbyname, and inet_addr are
8064     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8065     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8066 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8067 if test "${ac_cv_func_gethostbyname+set}" = set; then
8068   echo $ECHO_N "(cached) $ECHO_C" >&6
8069 else
8070   cat >conftest.$ac_ext <<_ACEOF
8071 #line $LINENO "configure"
8072 #include "confdefs.h"
8073 /* System header to define __stub macros and hopefully few prototypes,
8074     which can conflict with char gethostbyname (); below.  */
8075 #include <assert.h>
8076 /* Override any gcc2 internal prototype to avoid an error.  */
8077 #ifdef __cplusplus
8078 extern "C"
8079 #endif
8080 /* We use char because int might match the return type of a gcc2
8081    builtin and then its argument prototype would still apply.  */
8082 char gethostbyname ();
8083 char (*f) ();
8084
8085 int
8086 main ()
8087 {
8088 /* The GNU C library defines this for functions which it implements
8089     to always fail with ENOSYS.  Some functions are actually named
8090     something starting with __ and the normal name is an alias.  */
8091 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8092 choke me
8093 #else
8094 f = gethostbyname;
8095 #endif
8096
8097   ;
8098   return 0;
8099 }
8100 _ACEOF
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103   (eval $ac_link) 2>&5
8104   ac_status=$?
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } &&
8107          { ac_try='test -s conftest$ac_exeext'
8108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109   (eval $ac_try) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; }; then
8113   ac_cv_func_gethostbyname=yes
8114 else
8115   echo "$as_me: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8117 ac_cv_func_gethostbyname=no
8118 fi
8119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8120 fi
8121 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8122 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8123
8124     if test $ac_cv_func_gethostbyname = no; then
8125       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8126 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8127 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8128   echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130   ac_check_lib_save_LIBS=$LIBS
8131 LIBS="-lnsl  $LIBS"
8132 cat >conftest.$ac_ext <<_ACEOF
8133 #line $LINENO "configure"
8134 #include "confdefs.h"
8135
8136 /* Override any gcc2 internal prototype to avoid an error.  */
8137 #ifdef __cplusplus
8138 extern "C"
8139 #endif
8140 /* We use char because int might match the return type of a gcc2
8141    builtin and then its argument prototype would still apply.  */
8142 char gethostbyname ();
8143 int
8144 main ()
8145 {
8146 gethostbyname ();
8147   ;
8148   return 0;
8149 }
8150 _ACEOF
8151 rm -f conftest.$ac_objext conftest$ac_exeext
8152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8153   (eval $ac_link) 2>&5
8154   ac_status=$?
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); } &&
8157          { ac_try='test -s conftest$ac_exeext'
8158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159   (eval $ac_try) 2>&5
8160   ac_status=$?
8161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); }; }; then
8163   ac_cv_lib_nsl_gethostbyname=yes
8164 else
8165   echo "$as_me: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8167 ac_cv_lib_nsl_gethostbyname=no
8168 fi
8169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8170 LIBS=$ac_check_lib_save_LIBS
8171 fi
8172 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8173 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8174 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8175   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8176 fi
8177
8178       if test $ac_cv_lib_nsl_gethostbyname = no; then
8179         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8180 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8181 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8182   echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184   ac_check_lib_save_LIBS=$LIBS
8185 LIBS="-lbsd  $LIBS"
8186 cat >conftest.$ac_ext <<_ACEOF
8187 #line $LINENO "configure"
8188 #include "confdefs.h"
8189
8190 /* Override any gcc2 internal prototype to avoid an error.  */
8191 #ifdef __cplusplus
8192 extern "C"
8193 #endif
8194 /* We use char because int might match the return type of a gcc2
8195    builtin and then its argument prototype would still apply.  */
8196 char gethostbyname ();
8197 int
8198 main ()
8199 {
8200 gethostbyname ();
8201   ;
8202   return 0;
8203 }
8204 _ACEOF
8205 rm -f conftest.$ac_objext conftest$ac_exeext
8206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8207   (eval $ac_link) 2>&5
8208   ac_status=$?
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); } &&
8211          { ac_try='test -s conftest$ac_exeext'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; }; then
8217   ac_cv_lib_bsd_gethostbyname=yes
8218 else
8219   echo "$as_me: failed program was:" >&5
8220 cat conftest.$ac_ext >&5
8221 ac_cv_lib_bsd_gethostbyname=no
8222 fi
8223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8224 LIBS=$ac_check_lib_save_LIBS
8225 fi
8226 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8227 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8228 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8229   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8230 fi
8231
8232       fi
8233     fi
8234
8235     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8236     # socket/setsockopt and other routines are undefined under SCO ODT
8237     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8238     # on later versions), says Simon Leinen: it contains gethostby*
8239     # variants that don't use the name server (or something).  -lsocket
8240     # must be given before -lnsl if both are needed.  We assume that
8241     # if connect needs -lnsl, so does gethostbyname.
8242     echo "$as_me:$LINENO: checking for connect" >&5
8243 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8244 if test "${ac_cv_func_connect+set}" = set; then
8245   echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247   cat >conftest.$ac_ext <<_ACEOF
8248 #line $LINENO "configure"
8249 #include "confdefs.h"
8250 /* System header to define __stub macros and hopefully few prototypes,
8251     which can conflict with char connect (); below.  */
8252 #include <assert.h>
8253 /* Override any gcc2 internal prototype to avoid an error.  */
8254 #ifdef __cplusplus
8255 extern "C"
8256 #endif
8257 /* We use char because int might match the return type of a gcc2
8258    builtin and then its argument prototype would still apply.  */
8259 char connect ();
8260 char (*f) ();
8261
8262 int
8263 main ()
8264 {
8265 /* The GNU C library defines this for functions which it implements
8266     to always fail with ENOSYS.  Some functions are actually named
8267     something starting with __ and the normal name is an alias.  */
8268 #if defined (__stub_connect) || defined (__stub___connect)
8269 choke me
8270 #else
8271 f = connect;
8272 #endif
8273
8274   ;
8275   return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280   (eval $ac_link) 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); } &&
8284          { ac_try='test -s conftest$ac_exeext'
8285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286   (eval $ac_try) 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); }; }; then
8290   ac_cv_func_connect=yes
8291 else
8292   echo "$as_me: failed program was:" >&5
8293 cat conftest.$ac_ext >&5
8294 ac_cv_func_connect=no
8295 fi
8296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8297 fi
8298 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8299 echo "${ECHO_T}$ac_cv_func_connect" >&6
8300
8301     if test $ac_cv_func_connect = no; then
8302       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8303 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8304 if test "${ac_cv_lib_socket_connect+set}" = set; then
8305   echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307   ac_check_lib_save_LIBS=$LIBS
8308 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8309 cat >conftest.$ac_ext <<_ACEOF
8310 #line $LINENO "configure"
8311 #include "confdefs.h"
8312
8313 /* Override any gcc2 internal prototype to avoid an error.  */
8314 #ifdef __cplusplus
8315 extern "C"
8316 #endif
8317 /* We use char because int might match the return type of a gcc2
8318    builtin and then its argument prototype would still apply.  */
8319 char connect ();
8320 int
8321 main ()
8322 {
8323 connect ();
8324   ;
8325   return 0;
8326 }
8327 _ACEOF
8328 rm -f conftest.$ac_objext conftest$ac_exeext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8330   (eval $ac_link) 2>&5
8331   ac_status=$?
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); } &&
8334          { ac_try='test -s conftest$ac_exeext'
8335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336   (eval $ac_try) 2>&5
8337   ac_status=$?
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); }; }; then
8340   ac_cv_lib_socket_connect=yes
8341 else
8342   echo "$as_me: failed program was:" >&5
8343 cat conftest.$ac_ext >&5
8344 ac_cv_lib_socket_connect=no
8345 fi
8346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8347 LIBS=$ac_check_lib_save_LIBS
8348 fi
8349 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8350 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8351 if test $ac_cv_lib_socket_connect = yes; then
8352   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8353 fi
8354
8355     fi
8356
8357     # Guillermo Gomez says -lposix is necessary on A/UX.
8358     echo "$as_me:$LINENO: checking for remove" >&5
8359 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8360 if test "${ac_cv_func_remove+set}" = set; then
8361   echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363   cat >conftest.$ac_ext <<_ACEOF
8364 #line $LINENO "configure"
8365 #include "confdefs.h"
8366 /* System header to define __stub macros and hopefully few prototypes,
8367     which can conflict with char remove (); below.  */
8368 #include <assert.h>
8369 /* Override any gcc2 internal prototype to avoid an error.  */
8370 #ifdef __cplusplus
8371 extern "C"
8372 #endif
8373 /* We use char because int might match the return type of a gcc2
8374    builtin and then its argument prototype would still apply.  */
8375 char remove ();
8376 char (*f) ();
8377
8378 int
8379 main ()
8380 {
8381 /* The GNU C library defines this for functions which it implements
8382     to always fail with ENOSYS.  Some functions are actually named
8383     something starting with __ and the normal name is an alias.  */
8384 #if defined (__stub_remove) || defined (__stub___remove)
8385 choke me
8386 #else
8387 f = remove;
8388 #endif
8389
8390   ;
8391   return 0;
8392 }
8393 _ACEOF
8394 rm -f conftest.$ac_objext conftest$ac_exeext
8395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396   (eval $ac_link) 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); } &&
8400          { ac_try='test -s conftest$ac_exeext'
8401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402   (eval $ac_try) 2>&5
8403   ac_status=$?
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); }; }; then
8406   ac_cv_func_remove=yes
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8410 ac_cv_func_remove=no
8411 fi
8412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8413 fi
8414 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8415 echo "${ECHO_T}$ac_cv_func_remove" >&6
8416
8417     if test $ac_cv_func_remove = no; then
8418       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8419 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8420 if test "${ac_cv_lib_posix_remove+set}" = set; then
8421   echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423   ac_check_lib_save_LIBS=$LIBS
8424 LIBS="-lposix  $LIBS"
8425 cat >conftest.$ac_ext <<_ACEOF
8426 #line $LINENO "configure"
8427 #include "confdefs.h"
8428
8429 /* Override any gcc2 internal prototype to avoid an error.  */
8430 #ifdef __cplusplus
8431 extern "C"
8432 #endif
8433 /* We use char because int might match the return type of a gcc2
8434    builtin and then its argument prototype would still apply.  */
8435 char remove ();
8436 int
8437 main ()
8438 {
8439 remove ();
8440   ;
8441   return 0;
8442 }
8443 _ACEOF
8444 rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446   (eval $ac_link) 2>&5
8447   ac_status=$?
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); } &&
8450          { ac_try='test -s conftest$ac_exeext'
8451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452   (eval $ac_try) 2>&5
8453   ac_status=$?
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); }; }; then
8456   ac_cv_lib_posix_remove=yes
8457 else
8458   echo "$as_me: failed program was:" >&5
8459 cat conftest.$ac_ext >&5
8460 ac_cv_lib_posix_remove=no
8461 fi
8462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8463 LIBS=$ac_check_lib_save_LIBS
8464 fi
8465 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8466 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8467 if test $ac_cv_lib_posix_remove = yes; then
8468   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8469 fi
8470
8471     fi
8472
8473     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8474     echo "$as_me:$LINENO: checking for shmat" >&5
8475 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8476 if test "${ac_cv_func_shmat+set}" = set; then
8477   echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479   cat >conftest.$ac_ext <<_ACEOF
8480 #line $LINENO "configure"
8481 #include "confdefs.h"
8482 /* System header to define __stub macros and hopefully few prototypes,
8483     which can conflict with char shmat (); below.  */
8484 #include <assert.h>
8485 /* Override any gcc2 internal prototype to avoid an error.  */
8486 #ifdef __cplusplus
8487 extern "C"
8488 #endif
8489 /* We use char because int might match the return type of a gcc2
8490    builtin and then its argument prototype would still apply.  */
8491 char shmat ();
8492 char (*f) ();
8493
8494 int
8495 main ()
8496 {
8497 /* The GNU C library defines this for functions which it implements
8498     to always fail with ENOSYS.  Some functions are actually named
8499     something starting with __ and the normal name is an alias.  */
8500 #if defined (__stub_shmat) || defined (__stub___shmat)
8501 choke me
8502 #else
8503 f = shmat;
8504 #endif
8505
8506   ;
8507   return 0;
8508 }
8509 _ACEOF
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8512   (eval $ac_link) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); } &&
8516          { ac_try='test -s conftest$ac_exeext'
8517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518   (eval $ac_try) 2>&5
8519   ac_status=$?
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); }; }; then
8522   ac_cv_func_shmat=yes
8523 else
8524   echo "$as_me: failed program was:" >&5
8525 cat conftest.$ac_ext >&5
8526 ac_cv_func_shmat=no
8527 fi
8528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8529 fi
8530 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8531 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8532
8533     if test $ac_cv_func_shmat = no; then
8534       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8535 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8536 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8537   echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539   ac_check_lib_save_LIBS=$LIBS
8540 LIBS="-lipc  $LIBS"
8541 cat >conftest.$ac_ext <<_ACEOF
8542 #line $LINENO "configure"
8543 #include "confdefs.h"
8544
8545 /* Override any gcc2 internal prototype to avoid an error.  */
8546 #ifdef __cplusplus
8547 extern "C"
8548 #endif
8549 /* We use char because int might match the return type of a gcc2
8550    builtin and then its argument prototype would still apply.  */
8551 char shmat ();
8552 int
8553 main ()
8554 {
8555 shmat ();
8556   ;
8557   return 0;
8558 }
8559 _ACEOF
8560 rm -f conftest.$ac_objext conftest$ac_exeext
8561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8562   (eval $ac_link) 2>&5
8563   ac_status=$?
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); } &&
8566          { ac_try='test -s conftest$ac_exeext'
8567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568   (eval $ac_try) 2>&5
8569   ac_status=$?
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); }; }; then
8572   ac_cv_lib_ipc_shmat=yes
8573 else
8574   echo "$as_me: failed program was:" >&5
8575 cat conftest.$ac_ext >&5
8576 ac_cv_lib_ipc_shmat=no
8577 fi
8578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8579 LIBS=$ac_check_lib_save_LIBS
8580 fi
8581 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8582 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8583 if test $ac_cv_lib_ipc_shmat = yes; then
8584   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8585 fi
8586
8587     fi
8588   fi
8589
8590   # Check for libraries that X11R6 Xt/Xaw programs need.
8591   ac_save_LDFLAGS=$LDFLAGS
8592   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8593   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8594   # check for ICE first), but we must link in the order -lSM -lICE or
8595   # we get undefined symbols.  So assume we have SM if we have ICE.
8596   # These have to be linked with before -lX11, unlike the other
8597   # libraries we check for below, so use a different variable.
8598   # John Interrante, Karl Berry
8599   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8600 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8601 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604   ac_check_lib_save_LIBS=$LIBS
8605 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line $LINENO "configure"
8608 #include "confdefs.h"
8609
8610 /* Override any gcc2 internal prototype to avoid an error.  */
8611 #ifdef __cplusplus
8612 extern "C"
8613 #endif
8614 /* We use char because int might match the return type of a gcc2
8615    builtin and then its argument prototype would still apply.  */
8616 char IceConnectionNumber ();
8617 int
8618 main ()
8619 {
8620 IceConnectionNumber ();
8621   ;
8622   return 0;
8623 }
8624 _ACEOF
8625 rm -f conftest.$ac_objext conftest$ac_exeext
8626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8627   (eval $ac_link) 2>&5
8628   ac_status=$?
8629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630   (exit $ac_status); } &&
8631          { ac_try='test -s conftest$ac_exeext'
8632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633   (eval $ac_try) 2>&5
8634   ac_status=$?
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); }; }; then
8637   ac_cv_lib_ICE_IceConnectionNumber=yes
8638 else
8639   echo "$as_me: failed program was:" >&5
8640 cat conftest.$ac_ext >&5
8641 ac_cv_lib_ICE_IceConnectionNumber=no
8642 fi
8643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8644 LIBS=$ac_check_lib_save_LIBS
8645 fi
8646 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8647 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8648 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8649   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8650 fi
8651
8652   LDFLAGS=$ac_save_LDFLAGS
8653
8654 fi
8655
8656
8657
8658
8659
8660
8661
8662
8663 X_TOOLKIT_LIBS="-lXt"
8664 X_BASIC_LIBS="-lXext -lX11 -lXmu"
8665
8666 our_saved_LDFLAGS="$LDFLAGS"
8667 LDFLAGS="$X_LIBS $LDFLAGS"
8668 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
8669 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
8670 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
8671   echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673   ac_check_lib_save_LIBS=$LIBS
8674 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
8675 cat >conftest.$ac_ext <<_ACEOF
8676 #line $LINENO "configure"
8677 #include "confdefs.h"
8678
8679 /* Override any gcc2 internal prototype to avoid an error.  */
8680 #ifdef __cplusplus
8681 extern "C"
8682 #endif
8683 /* We use char because int might match the return type of a gcc2
8684    builtin and then its argument prototype would still apply.  */
8685 char XtToolkitThreadInitialize ();
8686 int
8687 main ()
8688 {
8689 XtToolkitThreadInitialize ();
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_cv_lib_Xt_XtToolkitThreadInitialize=yes
8707 else
8708   echo "$as_me: failed program was:" >&5
8709 cat conftest.$ac_ext >&5
8710 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
8711 fi
8712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8713 LIBS=$ac_check_lib_save_LIBS
8714 fi
8715 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
8716 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
8717 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
8718
8719 cat >>confdefs.h <<\_ACEOF
8720 #define X_THREAD_SUPPORT 1
8721 _ACEOF
8722
8723 fi
8724
8725 LDFLAGS="$our_saved_LDFLAGS"
8726
8727
8728
8729 if test "x$no_x" = "xyes"; then
8730   NO_X_TRUE=
8731   NO_X_FALSE='#'
8732 else
8733   NO_X_TRUE='#'
8734   NO_X_FALSE=
8735 fi
8736
8737
8738 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
8739
8740
8741 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8742
8743 echo "$as_me:$LINENO: checking for X" >&5
8744 echo $ECHO_N "checking for X... $ECHO_C" >&6
8745 if test "$no_x" != "yes" ; then
8746
8747 cat >>confdefs.h <<\_ACEOF
8748 #define HAVE_X11 1
8749 _ACEOF
8750
8751   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
8752   my_includes="$my_includes -I/usr/X11R6/include"
8753   ctlib_graphics="$ctlibs_base -lctgraphics"
8754   echo "$as_me:$LINENO: result: yes" >&5
8755 echo "${ECHO_T}yes" >&6
8756   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
8757   if test "$libgl" = "true" ; then
8758     ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU"
8759     if test "$wxwin" = "true" ; then
8760       ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
8761     fi
8762   fi
8763   if test "$wxwin" = "true" ; then
8764
8765 cat >>confdefs.h <<\_ACEOF
8766 #define HAVE_SGP 1
8767 _ACEOF
8768
8769
8770
8771 if test 1==1; then
8772   HAVE_SGP_TRUE=
8773   HAVE_SGP_FALSE='#'
8774 else
8775   HAVE_SGP_TRUE='#'
8776   HAVE_SGP_FALSE=
8777 fi
8778
8779   fi
8780 else
8781   echo "$as_me:$LINENO: result: no" >&5
8782 echo "${ECHO_T}no" >&6
8783 fi
8784
8785 if test "$png" = "true" ; then
8786   ctlibs_tools="$ctlibs_tools -lpng"
8787 fi
8788 if test "$zlib" = "true" ; then
8789   ctlibs_tools="$ctlibs_tools -lz"
8790 fi
8791 if test "$fftw" = "true" ; then
8792   ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
8793 fi
8794 if test "$ctn" = "true"; then
8795   ctlibs_tools="$ctlibs_tools -lctn"
8796 fi
8797
8798 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
8799 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
8800 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
8801   echo $ECHO_N "(cached) $ECHO_C" >&6
8802 else
8803   ac_check_lib_save_LIBS=$LIBS
8804 LIBS="-ldmallocxx  $LIBS"
8805 cat >conftest.$ac_ext <<_ACEOF
8806 #line $LINENO "configure"
8807 #include "confdefs.h"
8808
8809
8810 int
8811 main ()
8812 {
8813 main ();
8814   ;
8815   return 0;
8816 }
8817 _ACEOF
8818 rm -f conftest.$ac_objext conftest$ac_exeext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8820   (eval $ac_link) 2>&5
8821   ac_status=$?
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); } &&
8824          { ac_try='test -s conftest$ac_exeext'
8825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826   (eval $ac_try) 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); }; }; then
8830   ac_cv_lib_dmallocxx_main=yes
8831 else
8832   echo "$as_me: failed program was:" >&5
8833 cat conftest.$ac_ext >&5
8834 ac_cv_lib_dmallocxx_main=no
8835 fi
8836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8837 LIBS=$ac_check_lib_save_LIBS
8838 fi
8839 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
8840 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
8841 if test $ac_cv_lib_dmallocxx_main = yes; then
8842   dmallocxx=true
8843 else
8844   dmallocxx=false
8845 fi
8846
8847 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
8848 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
8849 # Check whether --enable-dmalloc or --disable-dmalloc was given.
8850 if test "${enable_dmalloc+set}" = set; then
8851   enableval="$enable_dmalloc"
8852   case "${enableval}" in
8853   yes) usedmalloc=true
8854        echo "$as_me:$LINENO: result: yes" >&5
8855 echo "${ECHO_T}yes" >&6
8856        ;;
8857   no)  usedmalloc=false
8858        echo "$as_me:$LINENO: result: no" >&5
8859 echo "${ECHO_T}no" >&6
8860        ;;
8861   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
8862 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
8863        ;;
8864 esac
8865 else
8866   usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
8867 echo "${ECHO_T}no" >&6
8868 fi;
8869
8870 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
8871   ctlibs_tools="$ctlibs_tools -ldmallocxx"
8872
8873 cat >>confdefs.h <<\_ACEOF
8874 #define HAVE_DMALLOC 1
8875 _ACEOF
8876
8877   echo "$as_me:$LINENO: result: Using dmalloc" >&5
8878 echo "${ECHO_T}Using dmalloc" >&6
8879 fi
8880
8881 echo "$as_me:$LINENO: checking for main in -lefence" >&5
8882 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
8883 if test "${ac_cv_lib_efence_main+set}" = set; then
8884   echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886   ac_check_lib_save_LIBS=$LIBS
8887 LIBS="-lefence  $LIBS"
8888 cat >conftest.$ac_ext <<_ACEOF
8889 #line $LINENO "configure"
8890 #include "confdefs.h"
8891
8892
8893 int
8894 main ()
8895 {
8896 main ();
8897   ;
8898   return 0;
8899 }
8900 _ACEOF
8901 rm -f conftest.$ac_objext conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903   (eval $ac_link) 2>&5
8904   ac_status=$?
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); } &&
8907          { ac_try='test -s conftest$ac_exeext'
8908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909   (eval $ac_try) 2>&5
8910   ac_status=$?
8911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912   (exit $ac_status); }; }; then
8913   ac_cv_lib_efence_main=yes
8914 else
8915   echo "$as_me: failed program was:" >&5
8916 cat conftest.$ac_ext >&5
8917 ac_cv_lib_efence_main=no
8918 fi
8919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8920 LIBS=$ac_check_lib_save_LIBS
8921 fi
8922 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
8923 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
8924 if test $ac_cv_lib_efence_main = yes; then
8925   efence=true
8926 else
8927   efence=false
8928 fi
8929
8930 echo "$as_me:$LINENO: checking for enable-efence" >&5
8931 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
8932 # Check whether --enable-efence or --disable-efence was given.
8933 if test "${enable_efence+set}" = set; then
8934   enableval="$enable_efence"
8935   case "${enableval}" in
8936   yes) useefence=true
8937        echo "$as_me:$LINENO: result: yes" >&5
8938 echo "${ECHO_T}yes" >&6
8939        ;;
8940   no)  useefence=false
8941        echo "$as_me:$LINENO: result: no" >&5
8942 echo "${ECHO_T}no" >&6
8943        ;;
8944   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
8945 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
8946        ;;
8947 esac
8948 else
8949   useefence=false; echo "$as_me:$LINENO: result: no" >&5
8950 echo "${ECHO_T}no" >&6
8951 fi;
8952
8953 if test "$efence" = "true" -a "$useefence" = "true" ; then
8954   ctlibs_tools="$ctlibs_tools -lefence"
8955
8956 cat >>confdefs.h <<\_ACEOF
8957 #define HAVE_EFENCE 1
8958 _ACEOF
8959
8960   echo "$as_me:$LINENO: result: Using efence" >&5
8961 echo "${ECHO_T}Using efence" >&6
8962 fi
8963
8964 if test "$wxwin" = "true" ; then
8965   if test "$wx_gtk" = "true" ; then
8966     wxcflags=`$wxconfig --cflags`
8967     wxlibs=`$wxconfig --libs`
8968   else
8969         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
8970    wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
8971   fi
8972   CFLAGS="$CFLAGS -I../include $wxcflags"
8973   ctlib_graphics="$ctlib_graphics $wxlibs"
8974
8975
8976 if test 1==1 ; then
8977   HAVE_WXWINDOWS_TRUE=
8978   HAVE_WXWINDOWS_FALSE='#'
8979 else
8980   HAVE_WXWINDOWS_TRUE='#'
8981   HAVE_WXWINDOWS_FALSE=
8982 fi
8983
8984 fi
8985
8986
8987
8988 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
8989 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
8990
8991
8992 if test -n "$lamdir" ; then
8993   lamprograms="ctsimtext-lam"
8994
8995   lamdefs="$CFLAGS"
8996
8997 fi
8998
8999 CXXFLAGS="$CFLAGS"
9000
9001                                                                                                                                                                           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"
9002
9003
9004 cat >confcache <<\_ACEOF
9005 # This file is a shell script that caches the results of configure
9006 # tests run on this system so they can be shared between configure
9007 # scripts and configure runs, see configure's option --config-cache.
9008 # It is not useful on other systems.  If it contains results you don't
9009 # want to keep, you may remove or edit it.
9010 #
9011 # config.status only pays attention to the cache file if you give it
9012 # the --recheck option to rerun configure.
9013 #
9014 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9015 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9016 # following values.
9017
9018 _ACEOF
9019
9020 # The following way of writing the cache mishandles newlines in values,
9021 # but we know of no workaround that is simple, portable, and efficient.
9022 # So, don't put newlines in cache variables' values.
9023 # Ultrix sh set writes to stderr and can't be redirected directly,
9024 # and sets the high bit in the cache file unless we assign to the vars.
9025 {
9026   (set) 2>&1 |
9027     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9028     *ac_space=\ *)
9029       # `set' does not quote correctly, so add quotes (double-quote
9030       # substitution turns \\\\ into \\, and sed turns \\ into \).
9031       sed -n \
9032         "s/'/'\\\\''/g;
9033           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9034       ;;
9035     *)
9036       # `set' quotes correctly as required by POSIX, so do not add quotes.
9037       sed -n \
9038         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9039       ;;
9040     esac;
9041 } |
9042   sed '
9043      t clear
9044      : clear
9045      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9046      t end
9047      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9048      : end' >>confcache
9049 if cmp -s $cache_file confcache; then :; else
9050   if test -w $cache_file; then
9051     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9052     cat confcache >$cache_file
9053   else
9054     echo "not updating unwritable cache $cache_file"
9055   fi
9056 fi
9057 rm -f confcache
9058
9059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9060 # Let make expand exec_prefix.
9061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9062
9063 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9064 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9065 # trailing colons and then remove the whole line if VPATH becomes empty
9066 # (actually we leave an empty line to preserve line numbers).
9067 if test "x$srcdir" = x.; then
9068   ac_vpsub='/^[         ]*VPATH[        ]*=/{
9069 s/:*\$(srcdir):*/:/;
9070 s/:*\${srcdir}:*/:/;
9071 s/:*@srcdir@:*/:/;
9072 s/^\([^=]*=[    ]*\):*/\1/;
9073 s/:*$//;
9074 s/^[^=]*=[      ]*$//;
9075 }'
9076 fi
9077
9078 DEFS=-DHAVE_CONFIG_H
9079
9080 ac_libobjs=
9081 ac_ltlibobjs=
9082 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9083   # 1. Remove the extension, and $U if already installed.
9084   ac_i=`echo "$ac_i" |
9085          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9086   # 2. Add them.
9087   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9088   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9089 done
9090 LIBOBJS=$ac_libobjs
9091
9092 LTLIBOBJS=$ac_ltlibobjs
9093
9094
9095 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9096   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9097 Usually this means the macro was only invoked conditionally." >&5
9098 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9099 Usually this means the macro was only invoked conditionally." >&2;}
9100    { (exit 1); exit 1; }; }
9101 fi
9102 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
9103   { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
9104 Usually this means the macro was only invoked conditionally." >&5
9105 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
9106 Usually this means the macro was only invoked conditionally." >&2;}
9107    { (exit 1); exit 1; }; }
9108 fi
9109 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
9110   { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
9111 Usually this means the macro was only invoked conditionally." >&5
9112 echo "$as_me: error: conditional \"DEBUG\" was never defined.
9113 Usually this means the macro was only invoked conditionally." >&2;}
9114    { (exit 1); exit 1; }; }
9115 fi
9116 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
9117   { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
9118 Usually this means the macro was only invoked conditionally." >&5
9119 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
9120 Usually this means the macro was only invoked conditionally." >&2;}
9121    { (exit 1); exit 1; }; }
9122 fi
9123 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
9124   { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
9125 Usually this means the macro was only invoked conditionally." >&5
9126 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
9127 Usually this means the macro was only invoked conditionally." >&2;}
9128    { (exit 1); exit 1; }; }
9129 fi
9130 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
9131   { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
9132 Usually this means the macro was only invoked conditionally." >&5
9133 echo "$as_me: error: conditional \"NO_X\" was never defined.
9134 Usually this means the macro was only invoked conditionally." >&2;}
9135    { (exit 1); exit 1; }; }
9136 fi
9137 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
9138   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
9139 Usually this means the macro was only invoked conditionally." >&5
9140 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
9141 Usually this means the macro was only invoked conditionally." >&2;}
9142    { (exit 1); exit 1; }; }
9143 fi
9144 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
9145   { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
9146 Usually this means the macro was only invoked conditionally." >&5
9147 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
9148 Usually this means the macro was only invoked conditionally." >&2;}
9149    { (exit 1); exit 1; }; }
9150 fi
9151
9152 : ${CONFIG_STATUS=./config.status}
9153 ac_clean_files_save=$ac_clean_files
9154 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9155 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9156 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9157 cat >$CONFIG_STATUS <<_ACEOF
9158 #! $SHELL
9159 # Generated by $as_me.
9160 # Run this file to recreate the current configuration.
9161 # Compiler output produced by configure, useful for debugging
9162 # configure, is in config.log if it exists.
9163
9164 debug=false
9165 SHELL=\${CONFIG_SHELL-$SHELL}
9166 _ACEOF
9167
9168 cat >>$CONFIG_STATUS <<\_ACEOF
9169 ## --------------------- ##
9170 ## M4sh Initialization.  ##
9171 ## --------------------- ##
9172
9173 # Be Bourne compatible
9174 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9175   emulate sh
9176   NULLCMD=:
9177   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9178   # is contrary to our usage.  Disable this feature.
9179   alias -g '${1+"$@"}'='"$@"'
9180 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9181   set -o posix
9182 fi
9183
9184 # Support unset when possible.
9185 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9186   as_unset=unset
9187 else
9188   as_unset=false
9189 fi
9190
9191
9192 # Work around bugs in pre-3.0 UWIN ksh.
9193 $as_unset ENV MAIL MAILPATH
9194 PS1='$ '
9195 PS2='> '
9196 PS4='+ '
9197
9198 # NLS nuisances.
9199 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
9200 do
9201   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9202     eval $as_var=C; export $as_var
9203   else
9204     $as_unset $as_var
9205   fi
9206 done
9207
9208 # Required to use basename.
9209 if expr a : '\(a\)' >/dev/null 2>&1; then
9210   as_expr=expr
9211 else
9212   as_expr=false
9213 fi
9214
9215 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9216   as_basename=basename
9217 else
9218   as_basename=false
9219 fi
9220
9221
9222 # Name of the executable.
9223 as_me=`$as_basename "$0" ||
9224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9225          X"$0" : 'X\(//\)$' \| \
9226          X"$0" : 'X\(/\)$' \| \
9227          .     : '\(.\)' 2>/dev/null ||
9228 echo X/"$0" |
9229     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9230           /^X\/\(\/\/\)$/{ s//\1/; q; }
9231           /^X\/\(\/\).*/{ s//\1/; q; }
9232           s/.*/./; q'`
9233
9234
9235 # PATH needs CR, and LINENO needs CR and PATH.
9236 # Avoid depending upon Character Ranges.
9237 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9238 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9239 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9240 as_cr_digits='0123456789'
9241 as_cr_alnum=$as_cr_Letters$as_cr_digits
9242
9243 # The user is always right.
9244 if test "${PATH_SEPARATOR+set}" != set; then
9245   echo "#! /bin/sh" >conftest.sh
9246   echo  "exit 0"   >>conftest.sh
9247   chmod +x conftest.sh
9248   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
9249     PATH_SEPARATOR=';'
9250   else
9251     PATH_SEPARATOR=:
9252   fi
9253   rm -f conftest.sh
9254 fi
9255
9256
9257   as_lineno_1=$LINENO
9258   as_lineno_2=$LINENO
9259   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9260   test "x$as_lineno_1" != "x$as_lineno_2" &&
9261   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9262   # Find who we are.  Look in the path if we contain no path at all
9263   # relative or not.
9264   case $0 in
9265     *[\\/]* ) as_myself=$0 ;;
9266     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9267 for as_dir in $PATH
9268 do
9269   IFS=$as_save_IFS
9270   test -z "$as_dir" && as_dir=.
9271   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9272 done
9273
9274        ;;
9275   esac
9276   # We did not find ourselves, most probably we were run as `sh COMMAND'
9277   # in which case we are not to be found in the path.
9278   if test "x$as_myself" = x; then
9279     as_myself=$0
9280   fi
9281   if test ! -f "$as_myself"; then
9282     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9283 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9284    { (exit 1); exit 1; }; }
9285   fi
9286   case $CONFIG_SHELL in
9287   '')
9288     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9290 do
9291   IFS=$as_save_IFS
9292   test -z "$as_dir" && as_dir=.
9293   for as_base in sh bash ksh sh5; do
9294          case $as_dir in
9295          /*)
9296            if ("$as_dir/$as_base" -c '
9297   as_lineno_1=$LINENO
9298   as_lineno_2=$LINENO
9299   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9300   test "x$as_lineno_1" != "x$as_lineno_2" &&
9301   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9302              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9303              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9304              CONFIG_SHELL=$as_dir/$as_base
9305              export CONFIG_SHELL
9306              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9307            fi;;
9308          esac
9309        done
9310 done
9311 ;;
9312   esac
9313
9314   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9315   # uniformly replaced by the line number.  The first 'sed' inserts a
9316   # line-number line before each line; the second 'sed' does the real
9317   # work.  The second script uses 'N' to pair each line-number line
9318   # with the numbered line, and appends trailing '-' during
9319   # substitution so that $LINENO is not a special case at line end.
9320   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9321   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9322   sed '=' <$as_myself |
9323     sed '
9324       N
9325       s,$,-,
9326       : loop
9327       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9328       t loop
9329       s,-$,,
9330       s,^['$as_cr_digits']*\n,,
9331     ' >$as_me.lineno &&
9332   chmod +x $as_me.lineno ||
9333     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9334 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9335    { (exit 1); exit 1; }; }
9336
9337   # Don't try to exec as it changes $[0], causing all sort of problems
9338   # (the dirname of $[0] is not the place where we might find the
9339   # original and so on.  Autoconf is especially sensible to this).
9340   . ./$as_me.lineno
9341   # Exit status is that of the last command.
9342   exit
9343 }
9344
9345
9346 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9347   *c*,-n*) ECHO_N= ECHO_C='
9348 ' ECHO_T='      ' ;;
9349   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9350   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9351 esac
9352
9353 if expr a : '\(a\)' >/dev/null 2>&1; then
9354   as_expr=expr
9355 else
9356   as_expr=false
9357 fi
9358
9359 rm -f conf$$ conf$$.exe conf$$.file
9360 echo >conf$$.file
9361 if ln -s conf$$.file conf$$ 2>/dev/null; then
9362   # We could just check for DJGPP; but this test a) works b) is more generic
9363   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9364   if test -f conf$$.exe; then
9365     # Don't use ln at all; we don't have any links
9366     as_ln_s='cp -p'
9367   else
9368     as_ln_s='ln -s'
9369   fi
9370 elif ln conf$$.file conf$$ 2>/dev/null; then
9371   as_ln_s=ln
9372 else
9373   as_ln_s='cp -p'
9374 fi
9375 rm -f conf$$ conf$$.exe conf$$.file
9376
9377 if mkdir -p . 2>/dev/null; then
9378   as_mkdir_p=:
9379 else
9380   as_mkdir_p=false
9381 fi
9382
9383 as_executable_p="test -f"
9384
9385 # Sed expression to map a string onto a valid CPP name.
9386 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9387
9388 # Sed expression to map a string onto a valid variable name.
9389 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9390
9391
9392 # IFS
9393 # We need space, tab and new line, in precisely that order.
9394 as_nl='
9395 '
9396 IFS="   $as_nl"
9397
9398 # CDPATH.
9399 $as_unset CDPATH
9400
9401 exec 6>&1
9402
9403 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9404 # report actual input values of CONFIG_FILES etc. instead of their
9405 # values after options handling.  Logging --version etc. is OK.
9406 exec 5>>config.log
9407 {
9408   echo
9409   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9410 ## Running $as_me. ##
9411 _ASBOX
9412 } >&5
9413 cat >&5 <<_CSEOF
9414
9415 This file was extended by $as_me, which was
9416 generated by GNU Autoconf 2.54.  Invocation command line was
9417
9418   CONFIG_FILES    = $CONFIG_FILES
9419   CONFIG_HEADERS  = $CONFIG_HEADERS
9420   CONFIG_LINKS    = $CONFIG_LINKS
9421   CONFIG_COMMANDS = $CONFIG_COMMANDS
9422   $ $0 $@
9423
9424 _CSEOF
9425 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9426 echo >&5
9427 _ACEOF
9428
9429 # Files that config.status was made for.
9430 if test -n "$ac_config_files"; then
9431   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9432 fi
9433
9434 if test -n "$ac_config_headers"; then
9435   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9436 fi
9437
9438 if test -n "$ac_config_links"; then
9439   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9440 fi
9441
9442 if test -n "$ac_config_commands"; then
9443   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9444 fi
9445
9446 cat >>$CONFIG_STATUS <<\_ACEOF
9447
9448 ac_cs_usage="\
9449 \`$as_me' instantiates files from templates according to the
9450 current configuration.
9451
9452 Usage: $0 [OPTIONS] [FILE]...
9453
9454   -h, --help       print this help, then exit
9455   -V, --version    print version number, then exit
9456   -d, --debug      don't remove temporary files
9457       --recheck    update $as_me by reconfiguring in the same conditions
9458   --file=FILE[:TEMPLATE]
9459                    instantiate the configuration file FILE
9460   --header=FILE[:TEMPLATE]
9461                    instantiate the configuration header FILE
9462
9463 Configuration files:
9464 $config_files
9465
9466 Configuration headers:
9467 $config_headers
9468
9469 Configuration commands:
9470 $config_commands
9471
9472 Report bugs to <bug-autoconf@gnu.org>."
9473 _ACEOF
9474
9475 cat >>$CONFIG_STATUS <<_ACEOF
9476 ac_cs_version="\\
9477 config.status
9478 configured by $0, generated by GNU Autoconf 2.54,
9479   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9480
9481 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9482 Free Software Foundation, Inc.
9483 This config.status script is free software; the Free Software Foundation
9484 gives unlimited permission to copy, distribute and modify it."
9485 srcdir=$srcdir
9486 INSTALL="$INSTALL"
9487 _ACEOF
9488
9489 cat >>$CONFIG_STATUS <<\_ACEOF
9490 # If no file are specified by the user, then we need to provide default
9491 # value.  By we need to know if files were specified by the user.
9492 ac_need_defaults=:
9493 while test $# != 0
9494 do
9495   case $1 in
9496   --*=*)
9497     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9498     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9499     ac_shift=:
9500     ;;
9501   -*)
9502     ac_option=$1
9503     ac_optarg=$2
9504     ac_shift=shift
9505     ;;
9506   *) # This is not an option, so the user has probably given explicit
9507      # arguments.
9508      ac_option=$1
9509      ac_need_defaults=false;;
9510   esac
9511
9512   case $ac_option in
9513   # Handling of the options.
9514 _ACEOF
9515 cat >>$CONFIG_STATUS <<_ACEOF
9516   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9517     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9518     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9519 _ACEOF
9520 cat >>$CONFIG_STATUS <<\_ACEOF
9521   --version | --vers* | -V )
9522     echo "$ac_cs_version"; exit 0 ;;
9523   --he | --h)
9524     # Conflict between --help and --header
9525     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9526 Try \`$0 --help' for more information." >&5
9527 echo "$as_me: error: ambiguous option: $1
9528 Try \`$0 --help' for more information." >&2;}
9529    { (exit 1); exit 1; }; };;
9530   --help | --hel | -h )
9531     echo "$ac_cs_usage"; exit 0 ;;
9532   --debug | --d* | -d )
9533     debug=: ;;
9534   --file | --fil | --fi | --f )
9535     $ac_shift
9536     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9537     ac_need_defaults=false;;
9538   --header | --heade | --head | --hea )
9539     $ac_shift
9540     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9541     ac_need_defaults=false;;
9542
9543   # This is an error.
9544   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9545 Try \`$0 --help' for more information." >&5
9546 echo "$as_me: error: unrecognized option: $1
9547 Try \`$0 --help' for more information." >&2;}
9548    { (exit 1); exit 1; }; } ;;
9549
9550   *) ac_config_targets="$ac_config_targets $1" ;;
9551
9552   esac
9553   shift
9554 done
9555
9556 _ACEOF
9557
9558 cat >>$CONFIG_STATUS <<_ACEOF
9559 #
9560 # INIT-COMMANDS section.
9561 #
9562
9563 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9564
9565 _ACEOF
9566
9567
9568
9569 cat >>$CONFIG_STATUS <<\_ACEOF
9570 for ac_config_target in $ac_config_targets
9571 do
9572   case "$ac_config_target" in
9573   # Handling of arguments.
9574   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9575   "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
9576   "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
9577   "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
9578   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9579   "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
9580   "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
9581   "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
9582   "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
9583   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9584   "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
9585   "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
9586   "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
9587   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9588   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9589   "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
9590   "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
9591   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9592   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9593   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9594 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9595    { (exit 1); exit 1; }; };;
9596   esac
9597 done
9598
9599 # If the user did not use the arguments to specify the items to instantiate,
9600 # then the envvar interface is used.  Set only those that are not.
9601 # We use the long form for the default assignment because of an extremely
9602 # bizarre bug on SunOS 4.1.3.
9603 if $ac_need_defaults; then
9604   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9605   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9606   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9607 fi
9608
9609 # Create a temporary directory, and hook for its removal unless debugging.
9610 $debug ||
9611 {
9612   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9613   trap '{ (exit 1); exit 1; }' 1 2 13 15
9614 }
9615
9616 # Create a (secure) tmp directory for tmp files.
9617 : ${TMPDIR=/tmp}
9618 {
9619   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9620   test -n "$tmp" && test -d "$tmp"
9621 }  ||
9622 {
9623   tmp=$TMPDIR/cs$$-$RANDOM
9624   (umask 077 && mkdir $tmp)
9625 } ||
9626 {
9627    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9628    { (exit 1); exit 1; }
9629 }
9630
9631 _ACEOF
9632
9633 cat >>$CONFIG_STATUS <<_ACEOF
9634
9635 #
9636 # CONFIG_FILES section.
9637 #
9638
9639 # No need to generate the scripts if there are no CONFIG_FILES.
9640 # This happens for instance when ./config.status config.h
9641 if test -n "\$CONFIG_FILES"; then
9642   # Protect against being on the right side of a sed subst in config.status.
9643   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9644    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9645 s,@SHELL@,$SHELL,;t t
9646 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9647 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9648 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9649 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9650 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9651 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9652 s,@exec_prefix@,$exec_prefix,;t t
9653 s,@prefix@,$prefix,;t t
9654 s,@program_transform_name@,$program_transform_name,;t t
9655 s,@bindir@,$bindir,;t t
9656 s,@sbindir@,$sbindir,;t t
9657 s,@libexecdir@,$libexecdir,;t t
9658 s,@datadir@,$datadir,;t t
9659 s,@sysconfdir@,$sysconfdir,;t t
9660 s,@sharedstatedir@,$sharedstatedir,;t t
9661 s,@localstatedir@,$localstatedir,;t t
9662 s,@libdir@,$libdir,;t t
9663 s,@includedir@,$includedir,;t t
9664 s,@oldincludedir@,$oldincludedir,;t t
9665 s,@infodir@,$infodir,;t t
9666 s,@mandir@,$mandir,;t t
9667 s,@build_alias@,$build_alias,;t t
9668 s,@host_alias@,$host_alias,;t t
9669 s,@target_alias@,$target_alias,;t t
9670 s,@DEFS@,$DEFS,;t t
9671 s,@ECHO_C@,$ECHO_C,;t t
9672 s,@ECHO_N@,$ECHO_N,;t t
9673 s,@ECHO_T@,$ECHO_T,;t t
9674 s,@LIBS@,$LIBS,;t t
9675 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9676 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9677 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9678 s,@PACKAGE@,$PACKAGE,;t t
9679 s,@VERSION@,$VERSION,;t t
9680 s,@ACLOCAL@,$ACLOCAL,;t t
9681 s,@AUTOCONF@,$AUTOCONF,;t t
9682 s,@AUTOMAKE@,$AUTOMAKE,;t t
9683 s,@AUTOHEADER@,$AUTOHEADER,;t t
9684 s,@MAKEINFO@,$MAKEINFO,;t t
9685 s,@AMTAR@,$AMTAR,;t t
9686 s,@install_sh@,$install_sh,;t t
9687 s,@STRIP@,$STRIP,;t t
9688 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9689 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9690 s,@AWK@,$AWK,;t t
9691 s,@SET_MAKE@,$SET_MAKE,;t t
9692 s,@RANLIB@,$RANLIB,;t t
9693 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9694 s,@CC@,$CC,;t t
9695 s,@CFLAGS@,$CFLAGS,;t t
9696 s,@LDFLAGS@,$LDFLAGS,;t t
9697 s,@CPPFLAGS@,$CPPFLAGS,;t t
9698 s,@ac_ct_CC@,$ac_ct_CC,;t t
9699 s,@EXEEXT@,$EXEEXT,;t t
9700 s,@OBJEXT@,$OBJEXT,;t t
9701 s,@DEPDIR@,$DEPDIR,;t t
9702 s,@am__include@,$am__include,;t t
9703 s,@am__quote@,$am__quote,;t t
9704 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9705 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9706 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9707 s,@CCDEPMODE@,$CCDEPMODE,;t t
9708 s,@CXX@,$CXX,;t t
9709 s,@CXXFLAGS@,$CXXFLAGS,;t t
9710 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9711 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9712 s,@wxconfig@,$wxconfig,;t t
9713 s,@build@,$build,;t t
9714 s,@build_cpu@,$build_cpu,;t t
9715 s,@build_vendor@,$build_vendor,;t t
9716 s,@build_os@,$build_os,;t t
9717 s,@host@,$host,;t t
9718 s,@host_cpu@,$host_cpu,;t t
9719 s,@host_vendor@,$host_vendor,;t t
9720 s,@host_os@,$host_os,;t t
9721 s,@CPP@,$CPP,;t t
9722 s,@EGREP@,$EGREP,;t t
9723 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
9724 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
9725 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
9726 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
9727 s,@lamdir@,$lamdir,;t t
9728 s,@mpienable@,$mpienable,;t t
9729 s,@cgibindir@,$cgibindir,;t t
9730 s,@cgibinurl@,$cgibinurl,;t t
9731 s,@webdatadir@,$webdatadir,;t t
9732 s,@webdataurl@,$webdataurl,;t t
9733 s,@htmldir@,$htmldir,;t t
9734 s,@cgiprograms@,$cgiprograms,;t t
9735 s,@htmldata@,$htmldata,;t t
9736 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
9737 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
9738 s,@webenabled@,$webenabled,;t t
9739 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
9740 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
9741 s,@X_CFLAGS@,$X_CFLAGS,;t t
9742 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9743 s,@X_LIBS@,$X_LIBS,;t t
9744 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9745 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
9746 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
9747 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
9748 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
9749 s,@my_includes@,$my_includes,;t t
9750 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
9751 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
9752 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
9753 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
9754 s,@wxcflags@,$wxcflags,;t t
9755 s,@wxlibs@,$wxlibs,;t t
9756 s,@ctlibs@,$ctlibs,;t t
9757 s,@lamprograms@,$lamprograms,;t t
9758 s,@lamdefs@,$lamdefs,;t t
9759 s,@LIBOBJS@,$LIBOBJS,;t t
9760 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9761 CEOF
9762
9763 _ACEOF
9764
9765   cat >>$CONFIG_STATUS <<\_ACEOF
9766   # Split the substitutions into bite-sized pieces for seds with
9767   # small command number limits, like on Digital OSF/1 and HP-UX.
9768   ac_max_sed_lines=48
9769   ac_sed_frag=1 # Number of current file.
9770   ac_beg=1 # First line for current file.
9771   ac_end=$ac_max_sed_lines # Line after last line for current file.
9772   ac_more_lines=:
9773   ac_sed_cmds=
9774   while $ac_more_lines; do
9775     if test $ac_beg -gt 1; then
9776       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9777     else
9778       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9779     fi
9780     if test ! -s $tmp/subs.frag; then
9781       ac_more_lines=false
9782     else
9783       # The purpose of the label and of the branching condition is to
9784       # speed up the sed processing (if there are no `@' at all, there
9785       # is no need to browse any of the substitutions).
9786       # These are the two extra sed commands mentioned above.
9787       (echo ':t
9788   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9789       if test -z "$ac_sed_cmds"; then
9790         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9791       else
9792         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9793       fi
9794       ac_sed_frag=`expr $ac_sed_frag + 1`
9795       ac_beg=$ac_end
9796       ac_end=`expr $ac_end + $ac_max_sed_lines`
9797     fi
9798   done
9799   if test -z "$ac_sed_cmds"; then
9800     ac_sed_cmds=cat
9801   fi
9802 fi # test -n "$CONFIG_FILES"
9803
9804 _ACEOF
9805 cat >>$CONFIG_STATUS <<\_ACEOF
9806 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9807   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9808   case $ac_file in
9809   - | *:- | *:-:* ) # input from stdin
9810         cat >$tmp/stdin
9811         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9812         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9813   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9814         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9815   * )   ac_file_in=$ac_file.in ;;
9816   esac
9817
9818   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9819   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9820 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9821          X"$ac_file" : 'X\(//\)[^/]' \| \
9822          X"$ac_file" : 'X\(//\)$' \| \
9823          X"$ac_file" : 'X\(/\)' \| \
9824          .     : '\(.\)' 2>/dev/null ||
9825 echo X"$ac_file" |
9826     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9827           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9828           /^X\(\/\/\)$/{ s//\1/; q; }
9829           /^X\(\/\).*/{ s//\1/; q; }
9830           s/.*/./; q'`
9831   { if $as_mkdir_p; then
9832     mkdir -p "$ac_dir"
9833   else
9834     as_dir="$ac_dir"
9835     as_dirs=
9836     while test ! -d "$as_dir"; do
9837       as_dirs="$as_dir $as_dirs"
9838       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9840          X"$as_dir" : 'X\(//\)[^/]' \| \
9841          X"$as_dir" : 'X\(//\)$' \| \
9842          X"$as_dir" : 'X\(/\)' \| \
9843          .     : '\(.\)' 2>/dev/null ||
9844 echo X"$as_dir" |
9845     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9846           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9847           /^X\(\/\/\)$/{ s//\1/; q; }
9848           /^X\(\/\).*/{ s//\1/; q; }
9849           s/.*/./; q'`
9850     done
9851     test ! -n "$as_dirs" || mkdir $as_dirs
9852   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9854    { (exit 1); exit 1; }; }; }
9855
9856   ac_builddir=.
9857
9858 if test "$ac_dir" != .; then
9859   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9860   # A "../" for each directory in $ac_dir_suffix.
9861   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9862 else
9863   ac_dir_suffix= ac_top_builddir=
9864 fi
9865
9866 case $srcdir in
9867   .)  # No --srcdir option.  We are building in place.
9868     ac_srcdir=.
9869     if test -z "$ac_top_builddir"; then
9870        ac_top_srcdir=.
9871     else
9872        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9873     fi ;;
9874   [\\/]* | ?:[\\/]* )  # Absolute path.
9875     ac_srcdir=$srcdir$ac_dir_suffix;
9876     ac_top_srcdir=$srcdir ;;
9877   *) # Relative path.
9878     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9879     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9880 esac
9881 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9882 # absolute.
9883 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9884 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9885 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9886 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9887
9888
9889   case $INSTALL in
9890   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9891   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9892   esac
9893
9894   if test x"$ac_file" != x-; then
9895     { echo "$as_me:$LINENO: creating $ac_file" >&5
9896 echo "$as_me: creating $ac_file" >&6;}
9897     rm -f "$ac_file"
9898   fi
9899   # Let's still pretend it is `configure' which instantiates (i.e., don't
9900   # use $as_me), people would be surprised to read:
9901   #    /* config.h.  Generated by config.status.  */
9902   if test x"$ac_file" = x-; then
9903     configure_input=
9904   else
9905     configure_input="$ac_file.  "
9906   fi
9907   configure_input=$configure_input"Generated from `echo $ac_file_in |
9908                                      sed 's,.*/,,'` by configure."
9909
9910   # First look for the input files in the build tree, otherwise in the
9911   # src tree.
9912   ac_file_inputs=`IFS=:
9913     for f in $ac_file_in; do
9914       case $f in
9915       -) echo $tmp/stdin ;;
9916       [\\/$]*)
9917          # Absolute (can't be DOS-style, as IFS=:)
9918          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9919 echo "$as_me: error: cannot find input file: $f" >&2;}
9920    { (exit 1); exit 1; }; }
9921          echo $f;;
9922       *) # Relative
9923          if test -f "$f"; then
9924            # Build tree
9925            echo $f
9926          elif test -f "$srcdir/$f"; then
9927            # Source tree
9928            echo $srcdir/$f
9929          else
9930            # /dev/null tree
9931            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9932 echo "$as_me: error: cannot find input file: $f" >&2;}
9933    { (exit 1); exit 1; }; }
9934          fi;;
9935       esac
9936     done` || { (exit 1); exit 1; }
9937 _ACEOF
9938 cat >>$CONFIG_STATUS <<_ACEOF
9939   sed "$ac_vpsub
9940 $extrasub
9941 _ACEOF
9942 cat >>$CONFIG_STATUS <<\_ACEOF
9943 :t
9944 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9945 s,@configure_input@,$configure_input,;t t
9946 s,@srcdir@,$ac_srcdir,;t t
9947 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9948 s,@top_srcdir@,$ac_top_srcdir,;t t
9949 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9950 s,@builddir@,$ac_builddir,;t t
9951 s,@abs_builddir@,$ac_abs_builddir,;t t
9952 s,@top_builddir@,$ac_top_builddir,;t t
9953 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9954 s,@INSTALL@,$ac_INSTALL,;t t
9955 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9956   rm -f $tmp/stdin
9957   if test x"$ac_file" != x-; then
9958     mv $tmp/out $ac_file
9959   else
9960     cat $tmp/out
9961     rm -f $tmp/out
9962   fi
9963
9964 done
9965 _ACEOF
9966 cat >>$CONFIG_STATUS <<\_ACEOF
9967
9968 #
9969 # CONFIG_HEADER section.
9970 #
9971
9972 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9973 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9974 #
9975 # ac_d sets the value in "#define NAME VALUE" lines.
9976 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
9977 ac_dB='[        ].*$,\1#\2'
9978 ac_dC=' '
9979 ac_dD=',;t'
9980 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9981 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9982 ac_uB='$,\1#\2define\3'
9983 ac_uC=' '
9984 ac_uD=',;t'
9985
9986 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9987   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9988   case $ac_file in
9989   - | *:- | *:-:* ) # input from stdin
9990         cat >$tmp/stdin
9991         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9992         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9993   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9994         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9995   * )   ac_file_in=$ac_file.in ;;
9996   esac
9997
9998   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9999 echo "$as_me: creating $ac_file" >&6;}
10000
10001   # First look for the input files in the build tree, otherwise in the
10002   # src tree.
10003   ac_file_inputs=`IFS=:
10004     for f in $ac_file_in; do
10005       case $f in
10006       -) echo $tmp/stdin ;;
10007       [\\/$]*)
10008          # Absolute (can't be DOS-style, as IFS=:)
10009          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10010 echo "$as_me: error: cannot find input file: $f" >&2;}
10011    { (exit 1); exit 1; }; }
10012          echo $f;;
10013       *) # Relative
10014          if test -f "$f"; then
10015            # Build tree
10016            echo $f
10017          elif test -f "$srcdir/$f"; then
10018            # Source tree
10019            echo $srcdir/$f
10020          else
10021            # /dev/null tree
10022            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10023 echo "$as_me: error: cannot find input file: $f" >&2;}
10024    { (exit 1); exit 1; }; }
10025          fi;;
10026       esac
10027     done` || { (exit 1); exit 1; }
10028   # Remove the trailing spaces.
10029   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
10030
10031 _ACEOF
10032
10033 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10034 # `conftest.undefs', that substitutes the proper values into
10035 # config.h.in to produce config.h.  The first handles `#define'
10036 # templates, and the second `#undef' templates.
10037 # And first: Protect against being on the right side of a sed subst in
10038 # config.status.  Protect against being in an unquoted here document
10039 # in config.status.
10040 rm -f conftest.defines conftest.undefs
10041 # Using a here document instead of a string reduces the quoting nightmare.
10042 # Putting comments in sed scripts is not portable.
10043 #
10044 # `end' is used to avoid that the second main sed command (meant for
10045 # 0-ary CPP macros) applies to n-ary macro definitions.
10046 # See the Autoconf documentation for `clear'.
10047 cat >confdef2sed.sed <<\_ACEOF
10048 s/[\\&,]/\\&/g
10049 s,[\\$`],\\&,g
10050 t clear
10051 : clear
10052 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10053 t end
10054 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10055 : end
10056 _ACEOF
10057 # If some macros were called several times there might be several times
10058 # the same #defines, which is useless.  Nevertheless, we may not want to
10059 # sort them, since we want the *last* AC-DEFINE to be honored.
10060 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10061 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10062 rm -f confdef2sed.sed
10063
10064 # This sed command replaces #undef with comments.  This is necessary, for
10065 # example, in the case of _POSIX_SOURCE, which is predefined and required
10066 # on some systems where configure will not decide to define it.
10067 cat >>conftest.undefs <<\_ACEOF
10068 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10069 _ACEOF
10070
10071 # Break up conftest.defines because some shells have a limit on the size
10072 # of here documents, and old seds have small limits too (100 cmds).
10073 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10074 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10075 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10076 echo '  :' >>$CONFIG_STATUS
10077 rm -f conftest.tail
10078 while grep . conftest.defines >/dev/null
10079 do
10080   # Write a limited-size here document to $tmp/defines.sed.
10081   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10082   # Speed up: don't consider the non `#define' lines.
10083   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
10084   # Work around the forget-to-reset-the-flag bug.
10085   echo 't clr' >>$CONFIG_STATUS
10086   echo ': clr' >>$CONFIG_STATUS
10087   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10088   echo 'CEOF
10089   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10090   rm -f $tmp/in
10091   mv $tmp/out $tmp/in
10092 ' >>$CONFIG_STATUS
10093   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10094   rm -f conftest.defines
10095   mv conftest.tail conftest.defines
10096 done
10097 rm -f conftest.defines
10098 echo '  fi # grep' >>$CONFIG_STATUS
10099 echo >>$CONFIG_STATUS
10100
10101 # Break up conftest.undefs because some shells have a limit on the size
10102 # of here documents, and old seds have small limits too (100 cmds).
10103 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10104 rm -f conftest.tail
10105 while grep . conftest.undefs >/dev/null
10106 do
10107   # Write a limited-size here document to $tmp/undefs.sed.
10108   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10109   # Speed up: don't consider the non `#undef'
10110   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10111   # Work around the forget-to-reset-the-flag bug.
10112   echo 't clr' >>$CONFIG_STATUS
10113   echo ': clr' >>$CONFIG_STATUS
10114   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10115   echo 'CEOF
10116   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10117   rm -f $tmp/in
10118   mv $tmp/out $tmp/in
10119 ' >>$CONFIG_STATUS
10120   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10121   rm -f conftest.undefs
10122   mv conftest.tail conftest.undefs
10123 done
10124 rm -f conftest.undefs
10125
10126 cat >>$CONFIG_STATUS <<\_ACEOF
10127   # Let's still pretend it is `configure' which instantiates (i.e., don't
10128   # use $as_me), people would be surprised to read:
10129   #    /* config.h.  Generated by config.status.  */
10130   if test x"$ac_file" = x-; then
10131     echo "/* Generated by configure.  */" >$tmp/config.h
10132   else
10133     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10134   fi
10135   cat $tmp/in >>$tmp/config.h
10136   rm -f $tmp/in
10137   if test x"$ac_file" != x-; then
10138     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10139       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10140 echo "$as_me: $ac_file is unchanged" >&6;}
10141     else
10142       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10143 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10144          X"$ac_file" : 'X\(//\)[^/]' \| \
10145          X"$ac_file" : 'X\(//\)$' \| \
10146          X"$ac_file" : 'X\(/\)' \| \
10147          .     : '\(.\)' 2>/dev/null ||
10148 echo X"$ac_file" |
10149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10150           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10151           /^X\(\/\/\)$/{ s//\1/; q; }
10152           /^X\(\/\).*/{ s//\1/; q; }
10153           s/.*/./; q'`
10154       { if $as_mkdir_p; then
10155     mkdir -p "$ac_dir"
10156   else
10157     as_dir="$ac_dir"
10158     as_dirs=
10159     while test ! -d "$as_dir"; do
10160       as_dirs="$as_dir $as_dirs"
10161       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10163          X"$as_dir" : 'X\(//\)[^/]' \| \
10164          X"$as_dir" : 'X\(//\)$' \| \
10165          X"$as_dir" : 'X\(/\)' \| \
10166          .     : '\(.\)' 2>/dev/null ||
10167 echo X"$as_dir" |
10168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10169           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10170           /^X\(\/\/\)$/{ s//\1/; q; }
10171           /^X\(\/\).*/{ s//\1/; q; }
10172           s/.*/./; q'`
10173     done
10174     test ! -n "$as_dirs" || mkdir $as_dirs
10175   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10176 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10177    { (exit 1); exit 1; }; }; }
10178
10179       rm -f $ac_file
10180       mv $tmp/config.h $ac_file
10181     fi
10182   else
10183     cat $tmp/config.h
10184     rm -f $tmp/config.h
10185   fi
10186   # Run the commands associated with the file.
10187   case $ac_file in
10188     config.h ) # update the timestamp
10189 echo 'timestamp for config.h' >"./stamp-h1"
10190  ;;
10191   esac
10192 done
10193 _ACEOF
10194 cat >>$CONFIG_STATUS <<\_ACEOF
10195
10196 #
10197 # CONFIG_COMMANDS section.
10198 #
10199 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10200   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10201   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10202   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10203 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10204          X"$ac_dest" : 'X\(//\)[^/]' \| \
10205          X"$ac_dest" : 'X\(//\)$' \| \
10206          X"$ac_dest" : 'X\(/\)' \| \
10207          .     : '\(.\)' 2>/dev/null ||
10208 echo X"$ac_dest" |
10209     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10210           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10211           /^X\(\/\/\)$/{ s//\1/; q; }
10212           /^X\(\/\).*/{ s//\1/; q; }
10213           s/.*/./; q'`
10214   ac_builddir=.
10215
10216 if test "$ac_dir" != .; then
10217   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10218   # A "../" for each directory in $ac_dir_suffix.
10219   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10220 else
10221   ac_dir_suffix= ac_top_builddir=
10222 fi
10223
10224 case $srcdir in
10225   .)  # No --srcdir option.  We are building in place.
10226     ac_srcdir=.
10227     if test -z "$ac_top_builddir"; then
10228        ac_top_srcdir=.
10229     else
10230        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10231     fi ;;
10232   [\\/]* | ?:[\\/]* )  # Absolute path.
10233     ac_srcdir=$srcdir$ac_dir_suffix;
10234     ac_top_srcdir=$srcdir ;;
10235   *) # Relative path.
10236     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10237     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10238 esac
10239 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10240 # absolute.
10241 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10242 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10243 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10244 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10245
10246
10247   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10248 echo "$as_me: executing $ac_dest commands" >&6;}
10249   case $ac_dest in
10250     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10251   # Strip MF so we end up with the name of the file.
10252   mf=`echo "$mf" | sed -e 's/:.*$//'`
10253   # Check whether this is an Automake generated Makefile or not.
10254   # We used to match only the files named `Makefile.in', but
10255   # some people rename them; so instead we look at the file content.
10256   # Grep'ing the first line is not enough: some people post-process
10257   # each Makefile.in and add a new line on top of each file to say so.
10258   # So let's grep whole file.
10259   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10260     dirpart=`(dirname "$mf") 2>/dev/null ||
10261 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10262          X"$mf" : 'X\(//\)[^/]' \| \
10263          X"$mf" : 'X\(//\)$' \| \
10264          X"$mf" : 'X\(/\)' \| \
10265          .     : '\(.\)' 2>/dev/null ||
10266 echo X"$mf" |
10267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10268           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10269           /^X\(\/\/\)$/{ s//\1/; q; }
10270           /^X\(\/\).*/{ s//\1/; q; }
10271           s/.*/./; q'`
10272   else
10273     continue
10274   fi
10275   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10276   # Extract the definition of DEP_FILES from the Makefile without
10277   # running `make'.
10278   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10279   test -z "$DEPDIR" && continue
10280   # When using ansi2knr, U may be empty or an underscore; expand it
10281   U=`sed -n -e '/^U = / s///p' < "$mf"`
10282   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10283   # We invoke sed twice because it is the simplest approach to
10284   # changing $(DEPDIR) to its actual value in the expansion.
10285   for file in `sed -n -e '
10286     /^DEP_FILES = .*\\\\$/ {
10287       s/^DEP_FILES = //
10288       :loop
10289         s/\\\\$//
10290         p
10291         n
10292         /\\\\$/ b loop
10293       p
10294     }
10295     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10296        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10297     # Make sure the directory exists.
10298     test -f "$dirpart/$file" && continue
10299     fdir=`(dirname "$file") 2>/dev/null ||
10300 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10301          X"$file" : 'X\(//\)[^/]' \| \
10302          X"$file" : 'X\(//\)$' \| \
10303          X"$file" : 'X\(/\)' \| \
10304          .     : '\(.\)' 2>/dev/null ||
10305 echo X"$file" |
10306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10307           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10308           /^X\(\/\/\)$/{ s//\1/; q; }
10309           /^X\(\/\).*/{ s//\1/; q; }
10310           s/.*/./; q'`
10311     { if $as_mkdir_p; then
10312     mkdir -p $dirpart/$fdir
10313   else
10314     as_dir=$dirpart/$fdir
10315     as_dirs=
10316     while test ! -d "$as_dir"; do
10317       as_dirs="$as_dir $as_dirs"
10318       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10320          X"$as_dir" : 'X\(//\)[^/]' \| \
10321          X"$as_dir" : 'X\(//\)$' \| \
10322          X"$as_dir" : 'X\(/\)' \| \
10323          .     : '\(.\)' 2>/dev/null ||
10324 echo X"$as_dir" |
10325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10326           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10327           /^X\(\/\/\)$/{ s//\1/; q; }
10328           /^X\(\/\).*/{ s//\1/; q; }
10329           s/.*/./; q'`
10330     done
10331     test ! -n "$as_dirs" || mkdir $as_dirs
10332   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10333 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10334    { (exit 1); exit 1; }; }; }
10335
10336     # echo "creating $dirpart/$file"
10337     echo '# dummy' > "$dirpart/$file"
10338   done
10339 done
10340  ;;
10341   esac
10342 done
10343 _ACEOF
10344
10345 cat >>$CONFIG_STATUS <<\_ACEOF
10346
10347 { (exit 0); exit 0; }
10348 _ACEOF
10349 chmod +x $CONFIG_STATUS
10350 ac_clean_files=$ac_clean_files_save
10351
10352
10353 # configure is writing to config.log, and then calls config.status.
10354 # config.status does its own redirection, appending to config.log.
10355 # Unfortunately, on DOS this fails, as config.log is still kept open
10356 # by configure, so config.status won't be able to write to it; its
10357 # output is simply discarded.  So we exec the FD to /dev/null,
10358 # effectively closing config.log, so it can be properly (re)opened and
10359 # appended to by config.status.  When coming back to configure, we
10360 # need to make the FD available again.
10361 if test "$no_create" != yes; then
10362   ac_cs_success=:
10363   exec 5>/dev/null
10364   $SHELL $CONFIG_STATUS || ac_cs_success=false
10365   exec 5>>config.log
10366   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10367   # would make configure fail if this is the last instruction.
10368   $ac_cs_success || { (exit 1); exit 1; }
10369 fi
10370