3668003b2cfe88479c47bc0bfa82a647c4f315b8
[ctsim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/ctsim.cpp"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE wxconfig build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP INCLUDED_GETOPT_LONG_TRUE INCLUDED_GETOPT_LONG_FALSE DEBUG_TRUE DEBUG_FALSE lamdir mpienable cgibindir cgibinurl webdatadir webdataurl htmldir cgiprograms htmldata USE_HTML_TRUE USE_HTML_FALSE webenabled USE_LAM_TRUE USE_LAM_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_TOOLKIT_LIBS X_BASIC_LIBS NO_X_TRUE NO_X_FALSE my_includes HAVE_SGP_TRUE HAVE_SGP_FALSE wxcflags wxlibs HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE ctlibs lamprograms lamdefs LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 Program names:
842   --program-prefix=PREFIX            prepend PREFIX to installed program names
843   --program-suffix=SUFFIX            append SUFFIX to installed program names
844   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
845
846 X features:
847   --x-includes=DIR    X include files are in DIR
848   --x-libraries=DIR   X library files are in DIR
849
850 System types:
851   --build=BUILD     configure for building on BUILD [guessed]
852   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858   cat <<\_ACEOF
859
860 Optional Features:
861   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
862   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
863   --enable-maintainer-mode enable make rules and dependencies not useful
864                           (and sometimes confusing) to the casual installer
865   --disable-dependency-tracking Speeds up one-time builds
866   --enable-dependency-tracking  Do not reject slow dependency extractors
867   --enable-debug          Turn on debugging
868   --enable-verbose-warnings
869                           Enable verbose compiler warnings.
870   --enable-static
871                             Enable static executables.
872   --enable-dmalloc        Use dmalloc memory allocation
873   --enable-efence        Use ElectricFence memory allocation
874
875 Optional Packages:
876   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878   --with-lam=PATH         Set path of LAM MPI
879   --with-ctn=PATH         Set path of CTN DICOM library
880   --with-mcpu=CPU         Set name of CPU for gcc -mcpu
881   --with-cgibin-dir=PATH  Set path of CGI binaries directory
882   --with-cgibin-url=PATH  Set URL path of CGI binaries
883   --with-webdata-dir=PATH Set path of webdata
884   --with-webdata-url=PATH Set URL path of webdata
885   --with-html-dir=PATH    Set directory of html files
886   --with-x                use the X Window System
887
888 Some influential environment variables:
889   CC          C compiler command
890   CFLAGS      C compiler flags
891   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
892               nonstandard directory <lib dir>
893   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
894               headers in a nonstandard directory <include dir>
895   CXX         C++ compiler command
896   CXXFLAGS    C++ compiler flags
897   CPP         C preprocessor
898
899 Use these variables to override the choices made by `configure' or to help
900 it to find libraries and programs with nonstandard names/locations.
901
902 _ACEOF
903 fi
904
905 if test "$ac_init_help" = "recursive"; then
906   # If there are subdirs, report their specific --help.
907   ac_popdir=`pwd`
908   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
909     test -d $ac_dir || continue
910     ac_builddir=.
911
912 if test "$ac_dir" != .; then
913   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
914   # A "../" for each directory in $ac_dir_suffix.
915   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
916 else
917   ac_dir_suffix= ac_top_builddir=
918 fi
919
920 case $srcdir in
921   .)  # No --srcdir option.  We are building in place.
922     ac_srcdir=.
923     if test -z "$ac_top_builddir"; then
924        ac_top_srcdir=.
925     else
926        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
927     fi ;;
928   [\\/]* | ?:[\\/]* )  # Absolute path.
929     ac_srcdir=$srcdir$ac_dir_suffix;
930     ac_top_srcdir=$srcdir ;;
931   *) # Relative path.
932     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
933     ac_top_srcdir=$ac_top_builddir$srcdir ;;
934 esac
935 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
936 # absolute.
937 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
938 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
939 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
940 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
941
942     cd $ac_dir
943     # Check for guested configure; otherwise get Cygnus style configure.
944     if test -f $ac_srcdir/configure.gnu; then
945       echo
946       $SHELL $ac_srcdir/configure.gnu  --help=recursive
947     elif test -f $ac_srcdir/configure; then
948       echo
949       $SHELL $ac_srcdir/configure  --help=recursive
950     elif test -f $ac_srcdir/configure.ac ||
951            test -f $ac_srcdir/configure.in; then
952       echo
953       $ac_configure --help
954     else
955       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
956     fi
957     cd "$ac_popdir"
958   done
959 fi
960
961 test -n "$ac_init_help" && exit 0
962 if $ac_init_version; then
963   cat <<\_ACEOF
964
965 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
966 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
969 _ACEOF
970   exit 0
971 fi
972 exec 5>config.log
973 cat >&5 <<_ACEOF
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
976
977 It was created by $as_me, which was
978 generated by GNU Autoconf 2.57.  Invocation command line was
979
980   $ $0 $@
981
982 _ACEOF
983 {
984 cat <<_ASUNAME
985 ## --------- ##
986 ## Platform. ##
987 ## --------- ##
988
989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
994
995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
997
998 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
999 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1002 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1003 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1004 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1005
1006 _ASUNAME
1007
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009 for as_dir in $PATH
1010 do
1011   IFS=$as_save_IFS
1012   test -z "$as_dir" && as_dir=.
1013   echo "PATH: $as_dir"
1014 done
1015
1016 } >&5
1017
1018 cat >&5 <<_ACEOF
1019
1020
1021 ## ----------- ##
1022 ## Core tests. ##
1023 ## ----------- ##
1024
1025 _ACEOF
1026
1027
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_configure_args=
1034 ac_configure_args0=
1035 ac_configure_args1=
1036 ac_sep=
1037 ac_must_keep_next=false
1038 for ac_pass in 1 2
1039 do
1040   for ac_arg
1041   do
1042     case $ac_arg in
1043     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045     | -silent | --silent | --silen | --sile | --sil)
1046       continue ;;
1047     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049     esac
1050     case $ac_pass in
1051     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1052     2)
1053       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054       if test $ac_must_keep_next = true; then
1055         ac_must_keep_next=false # Got value, back to normal.
1056       else
1057         case $ac_arg in
1058           *=* | --config-cache | -C | -disable-* | --disable-* \
1059           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061           | -with-* | --with-* | -without-* | --without-* | --x)
1062             case "$ac_configure_args0 " in
1063               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064             esac
1065             ;;
1066           -* ) ac_must_keep_next=true ;;
1067         esac
1068       fi
1069       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070       # Get rid of the leading space.
1071       ac_sep=" "
1072       ;;
1073     esac
1074   done
1075 done
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1078
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log.  We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close' the trap.
1084 trap 'exit_status=$?
1085   # Save into config.log some information that might help in debugging.
1086   {
1087     echo
1088
1089     cat <<\_ASBOX
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1093 _ASBOX
1094     echo
1095     # The following way of writing the cache mishandles newlines in values,
1096 {
1097   (set) 2>&1 |
1098     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099     *ac_space=\ *)
1100       sed -n \
1101         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103       ;;
1104     *)
1105       sed -n \
1106         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107       ;;
1108     esac;
1109 }
1110     echo
1111
1112     cat <<\_ASBOX
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1116 _ASBOX
1117     echo
1118     for ac_var in $ac_subst_vars
1119     do
1120       eval ac_val=$`echo $ac_var`
1121       echo "$ac_var='"'"'$ac_val'"'"'"
1122     done | sort
1123     echo
1124
1125     if test -n "$ac_subst_files"; then
1126       cat <<\_ASBOX
1127 ## ------------- ##
1128 ## Output files. ##
1129 ## ------------- ##
1130 _ASBOX
1131       echo
1132       for ac_var in $ac_subst_files
1133       do
1134         eval ac_val=$`echo $ac_var`
1135         echo "$ac_var='"'"'$ac_val'"'"'"
1136       done | sort
1137       echo
1138     fi
1139
1140     if test -s confdefs.h; then
1141       cat <<\_ASBOX
1142 ## ----------- ##
1143 ## confdefs.h. ##
1144 ## ----------- ##
1145 _ASBOX
1146       echo
1147       sed "/^$/d" confdefs.h | sort
1148       echo
1149     fi
1150     test "$ac_signal" != 0 &&
1151       echo "$as_me: caught signal $ac_signal"
1152     echo "$as_me: exit $exit_status"
1153   } >&5
1154   rm -f core *.core &&
1155   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1156     exit $exit_status
1157      ' 0
1158 for ac_signal in 1 2 13 15; do
1159   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1160 done
1161 ac_signal=0
1162
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166 echo >confdefs.h
1167
1168 # Predefined preprocessor variables.
1169
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1172 _ACEOF
1173
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1192 _ACEOF
1193
1194
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198   if test "x$prefix" != xNONE; then
1199     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200   else
1201     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202   fi
1203 fi
1204 for ac_site_file in $CONFIG_SITE; do
1205   if test -r "$ac_site_file"; then
1206     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208     sed 's/^/| /' "$ac_site_file" >&5
1209     . "$ac_site_file"
1210   fi
1211 done
1212
1213 if test -r "$cache_file"; then
1214   # Some versions of bash will fail to source /dev/null (special
1215   # files actually), so we avoid doing that.
1216   if test -f "$cache_file"; then
1217     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1219     case $cache_file in
1220       [\\/]* | ?:[\\/]* ) . $cache_file;;
1221       *)                      . ./$cache_file;;
1222     esac
1223   fi
1224 else
1225   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1227   >$cache_file
1228 fi
1229
1230 # Check that the precious variables saved in the cache have kept the same
1231 # value.
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236   eval ac_new_set=\$ac_env_${ac_var}_set
1237   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238   eval ac_new_val="\$ac_env_${ac_var}_value"
1239   case $ac_old_set,$ac_new_set in
1240     set,)
1241       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243       ac_cache_corrupted=: ;;
1244     ,set)
1245       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247       ac_cache_corrupted=: ;;
1248     ,);;
1249     *)
1250       if test "x$ac_old_val" != "x$ac_new_val"; then
1251         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1254 echo "$as_me:   former value:  $ac_old_val" >&2;}
1255         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1256 echo "$as_me:   current value: $ac_new_val" >&2;}
1257         ac_cache_corrupted=:
1258       fi;;
1259   esac
1260   # Pass precious variables to config.status.
1261   if test "$ac_new_set" = set; then
1262     case $ac_new_val in
1263     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265     *) ac_arg=$ac_var=$ac_new_val ;;
1266     esac
1267     case " $ac_configure_args " in
1268       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1269       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1270     esac
1271   fi
1272 done
1273 if $ac_cache_corrupted; then
1274   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278    { (exit 1); exit 1; }; }
1279 fi
1280
1281 ac_ext=c
1282 ac_cpp='$CPP $CPPFLAGS'
1283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1307 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1308     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1309 if test "${enable_maintainer_mode+set}" = set; then
1310   enableval="$enable_maintainer_mode"
1311   USE_MAINTAINER_MODE=$enableval
1312 else
1313   USE_MAINTAINER_MODE=no
1314 fi;
1315   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1316 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1317
1318
1319 if test $USE_MAINTAINER_MODE = yes; then
1320   MAINTAINER_MODE_TRUE=
1321   MAINTAINER_MODE_FALSE='#'
1322 else
1323   MAINTAINER_MODE_TRUE='#'
1324   MAINTAINER_MODE_FALSE=
1325 fi
1326
1327   MAINT=$MAINTAINER_MODE_TRUE
1328
1329
1330 am__api_version="1.7"
1331 ac_aux_dir=
1332 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1333   if test -f $ac_dir/install-sh; then
1334     ac_aux_dir=$ac_dir
1335     ac_install_sh="$ac_aux_dir/install-sh -c"
1336     break
1337   elif test -f $ac_dir/install.sh; then
1338     ac_aux_dir=$ac_dir
1339     ac_install_sh="$ac_aux_dir/install.sh -c"
1340     break
1341   elif test -f $ac_dir/shtool; then
1342     ac_aux_dir=$ac_dir
1343     ac_install_sh="$ac_aux_dir/shtool install -c"
1344     break
1345   fi
1346 done
1347 if test -z "$ac_aux_dir"; then
1348   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1350    { (exit 1); exit 1; }; }
1351 fi
1352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1355
1356 # Find a good install program.  We prefer a C program (faster),
1357 # so one script is as good as another.  But avoid the broken or
1358 # incompatible versions:
1359 # SysV /etc/install, /usr/sbin/install
1360 # SunOS /usr/etc/install
1361 # IRIX /sbin/install
1362 # AIX /bin/install
1363 # AmigaOS /C/install, which installs bootblocks on floppy discs
1364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1367 # ./install, which can be erroneously created by make from ./install.sh.
1368 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1369 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1370 if test -z "$INSTALL"; then
1371 if test "${ac_cv_path_install+set}" = set; then
1372   echo $ECHO_N "(cached) $ECHO_C" >&6
1373 else
1374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375 for as_dir in $PATH
1376 do
1377   IFS=$as_save_IFS
1378   test -z "$as_dir" && as_dir=.
1379   # Account for people who put trailing slashes in PATH elements.
1380 case $as_dir/ in
1381   ./ | .// | /cC/* | \
1382   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1383   /usr/ucb/* ) ;;
1384   *)
1385     # OSF1 and SCO ODT 3.0 have their own names for install.
1386     # Don't use installbsd from OSF since it installs stuff as root
1387     # by default.
1388     for ac_prog in ginstall scoinst install; do
1389       for ac_exec_ext in '' $ac_executable_extensions; do
1390         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1391           if test $ac_prog = install &&
1392             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1393             # AIX install.  It has an incompatible calling convention.
1394             :
1395           elif test $ac_prog = install &&
1396             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1397             # program-specific install script used by HP pwplus--don't use.
1398             :
1399           else
1400             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1401             break 3
1402           fi
1403         fi
1404       done
1405     done
1406     ;;
1407 esac
1408 done
1409
1410
1411 fi
1412   if test "${ac_cv_path_install+set}" = set; then
1413     INSTALL=$ac_cv_path_install
1414   else
1415     # As a last resort, use the slow shell script.  We don't cache a
1416     # path for INSTALL within a source directory, because that will
1417     # break other packages using the cache if that directory is
1418     # removed, or if the path is relative.
1419     INSTALL=$ac_install_sh
1420   fi
1421 fi
1422 echo "$as_me:$LINENO: result: $INSTALL" >&5
1423 echo "${ECHO_T}$INSTALL" >&6
1424
1425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1426 # It thinks the first close brace ends the variable substitution.
1427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1428
1429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1430
1431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1432
1433 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1434 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1435 # Just in case
1436 sleep 1
1437 echo timestamp > conftest.file
1438 # Do `set' in a subshell so we don't clobber the current shell's
1439 # arguments.  Must try -L first in case configure is actually a
1440 # symlink; some systems play weird games with the mod time of symlinks
1441 # (eg FreeBSD returns the mod time of the symlink's containing
1442 # directory).
1443 if (
1444    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1445    if test "$*" = "X"; then
1446       # -L didn't work.
1447       set X `ls -t $srcdir/configure conftest.file`
1448    fi
1449    rm -f conftest.file
1450    if test "$*" != "X $srcdir/configure conftest.file" \
1451       && test "$*" != "X conftest.file $srcdir/configure"; then
1452
1453       # If neither matched, then we have a broken ls.  This can happen
1454       # if, for instance, CONFIG_SHELL is bash and it inherits a
1455       # broken ls alias from the environment.  This has actually
1456       # happened.  Such a system could not be considered "sane".
1457       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1458 alias in your environment" >&5
1459 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1460 alias in your environment" >&2;}
1461    { (exit 1); exit 1; }; }
1462    fi
1463
1464    test "$2" = conftest.file
1465    )
1466 then
1467    # Ok.
1468    :
1469 else
1470    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1471 Check your system clock" >&5
1472 echo "$as_me: error: newly created file is older than distributed files!
1473 Check your system clock" >&2;}
1474    { (exit 1); exit 1; }; }
1475 fi
1476 echo "$as_me:$LINENO: result: yes" >&5
1477 echo "${ECHO_T}yes" >&6
1478 test "$program_prefix" != NONE &&
1479   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1480 # Use a double $ so make ignores it.
1481 test "$program_suffix" != NONE &&
1482   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1483 # Double any \ or $.  echo might interpret backslashes.
1484 # By default was `s,x,x', remove it if useless.
1485 cat <<\_ACEOF >conftest.sed
1486 s/[\\$]/&&/g;s/;s,x,x,$//
1487 _ACEOF
1488 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1489 rm conftest.sed
1490
1491
1492 # expand $ac_aux_dir to an absolute path
1493 am_aux_dir=`cd $ac_aux_dir && pwd`
1494
1495 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1496 # Use eval to expand $SHELL
1497 if eval "$MISSING --run true"; then
1498   am_missing_run="$MISSING --run "
1499 else
1500   am_missing_run=
1501   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1502 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1503 fi
1504
1505 for ac_prog in gawk mawk nawk awk
1506 do
1507   # Extract the first word of "$ac_prog", so it can be a program name with args.
1508 set dummy $ac_prog; ac_word=$2
1509 echo "$as_me:$LINENO: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_prog_AWK+set}" = set; then
1512   echo $ECHO_N "(cached) $ECHO_C" >&6
1513 else
1514   if test -n "$AWK"; then
1515   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1516 else
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518 for as_dir in $PATH
1519 do
1520   IFS=$as_save_IFS
1521   test -z "$as_dir" && as_dir=.
1522   for ac_exec_ext in '' $ac_executable_extensions; do
1523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524     ac_cv_prog_AWK="$ac_prog"
1525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526     break 2
1527   fi
1528 done
1529 done
1530
1531 fi
1532 fi
1533 AWK=$ac_cv_prog_AWK
1534 if test -n "$AWK"; then
1535   echo "$as_me:$LINENO: result: $AWK" >&5
1536 echo "${ECHO_T}$AWK" >&6
1537 else
1538   echo "$as_me:$LINENO: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1540 fi
1541
1542   test -n "$AWK" && break
1543 done
1544
1545 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1546 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1547 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1548 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1549   echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551   cat >conftest.make <<\_ACEOF
1552 all:
1553         @echo 'ac_maketemp="$(MAKE)"'
1554 _ACEOF
1555 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1556 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1557 if test -n "$ac_maketemp"; then
1558   eval ac_cv_prog_make_${ac_make}_set=yes
1559 else
1560   eval ac_cv_prog_make_${ac_make}_set=no
1561 fi
1562 rm -f conftest.make
1563 fi
1564 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1565   echo "$as_me:$LINENO: result: yes" >&5
1566 echo "${ECHO_T}yes" >&6
1567   SET_MAKE=
1568 else
1569   echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571   SET_MAKE="MAKE=${MAKE-make}"
1572 fi
1573
1574 rm -rf .tst 2>/dev/null
1575 mkdir .tst 2>/dev/null
1576 if test -d .tst; then
1577   am__leading_dot=.
1578 else
1579   am__leading_dot=_
1580 fi
1581 rmdir .tst 2>/dev/null
1582
1583  # test to see if srcdir already configured
1584 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1585    test -f $srcdir/config.status; then
1586   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1587 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1588    { (exit 1); exit 1; }; }
1589 fi
1590
1591 # test whether we have cygpath
1592 if test -z "$CYGPATH_W"; then
1593   if (cygpath --version) >/dev/null 2>/dev/null; then
1594     CYGPATH_W='cygpath -w'
1595   else
1596     CYGPATH_W=echo
1597   fi
1598 fi
1599
1600
1601 # Define the identity of the package.
1602  PACKAGE=ctsim
1603  VERSION=4.3.0
1604
1605
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE "$PACKAGE"
1608 _ACEOF
1609
1610
1611 cat >>confdefs.h <<_ACEOF
1612 #define VERSION "$VERSION"
1613 _ACEOF
1614
1615 # Some tools Automake needs.
1616
1617 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1618
1619
1620 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1621
1622
1623 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1624
1625
1626 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1627
1628
1629 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1630
1631
1632 AMTAR=${AMTAR-"${am_missing_run}tar"}
1633
1634 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1635
1636 # Installed binaries are usually stripped using `strip' when the user
1637 # run `make install-strip'.  However `strip' might not be the right
1638 # tool to use in cross-compilation environments, therefore Automake
1639 # will honor the `STRIP' environment variable to overrule this program.
1640 if test "$cross_compiling" != no; then
1641   if test -n "$ac_tool_prefix"; then
1642   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1643 set dummy ${ac_tool_prefix}strip; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_STRIP+set}" = set; then
1647   echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649   if test -n "$STRIP"; then
1650   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1654 do
1655   IFS=$as_save_IFS
1656   test -z "$as_dir" && as_dir=.
1657   for ac_exec_ext in '' $ac_executable_extensions; do
1658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661     break 2
1662   fi
1663 done
1664 done
1665
1666 fi
1667 fi
1668 STRIP=$ac_cv_prog_STRIP
1669 if test -n "$STRIP"; then
1670   echo "$as_me:$LINENO: result: $STRIP" >&5
1671 echo "${ECHO_T}$STRIP" >&6
1672 else
1673   echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1675 fi
1676
1677 fi
1678 if test -z "$ac_cv_prog_STRIP"; then
1679   ac_ct_STRIP=$STRIP
1680   # Extract the first word of "strip", so it can be a program name with args.
1681 set dummy strip; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1685   echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687   if test -n "$ac_ct_STRIP"; then
1688   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1692 do
1693   IFS=$as_save_IFS
1694   test -z "$as_dir" && as_dir=.
1695   for ac_exec_ext in '' $ac_executable_extensions; do
1696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697     ac_cv_prog_ac_ct_STRIP="strip"
1698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699     break 2
1700   fi
1701 done
1702 done
1703
1704   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1705 fi
1706 fi
1707 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1708 if test -n "$ac_ct_STRIP"; then
1709   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1710 echo "${ECHO_T}$ac_ct_STRIP" >&6
1711 else
1712   echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1714 fi
1715
1716   STRIP=$ac_ct_STRIP
1717 else
1718   STRIP="$ac_cv_prog_STRIP"
1719 fi
1720
1721 fi
1722 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1723
1724 # We need awk for the "check" target.  The system "awk" is bad on
1725 # some platforms.
1726
1727
1728
1729           ac_config_headers="$ac_config_headers config.h"
1730
1731
1732 for ac_prog in gawk mawk nawk awk
1733 do
1734   # Extract the first word of "$ac_prog", so it can be a program name with args.
1735 set dummy $ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_AWK+set}" = set; then
1739   echo $ECHO_N "(cached) $ECHO_C" >&6
1740 else
1741   if test -n "$AWK"; then
1742   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1743 else
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745 for as_dir in $PATH
1746 do
1747   IFS=$as_save_IFS
1748   test -z "$as_dir" && as_dir=.
1749   for ac_exec_ext in '' $ac_executable_extensions; do
1750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751     ac_cv_prog_AWK="$ac_prog"
1752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753     break 2
1754   fi
1755 done
1756 done
1757
1758 fi
1759 fi
1760 AWK=$ac_cv_prog_AWK
1761 if test -n "$AWK"; then
1762   echo "$as_me:$LINENO: result: $AWK" >&5
1763 echo "${ECHO_T}$AWK" >&6
1764 else
1765   echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1767 fi
1768
1769   test -n "$AWK" && break
1770 done
1771
1772 # Find a good install program.  We prefer a C program (faster),
1773 # so one script is as good as another.  But avoid the broken or
1774 # incompatible versions:
1775 # SysV /etc/install, /usr/sbin/install
1776 # SunOS /usr/etc/install
1777 # IRIX /sbin/install
1778 # AIX /bin/install
1779 # AmigaOS /C/install, which installs bootblocks on floppy discs
1780 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1781 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1782 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1783 # ./install, which can be erroneously created by make from ./install.sh.
1784 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1785 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1786 if test -z "$INSTALL"; then
1787 if test "${ac_cv_path_install+set}" = set; then
1788   echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 for as_dir in $PATH
1792 do
1793   IFS=$as_save_IFS
1794   test -z "$as_dir" && as_dir=.
1795   # Account for people who put trailing slashes in PATH elements.
1796 case $as_dir/ in
1797   ./ | .// | /cC/* | \
1798   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1799   /usr/ucb/* ) ;;
1800   *)
1801     # OSF1 and SCO ODT 3.0 have their own names for install.
1802     # Don't use installbsd from OSF since it installs stuff as root
1803     # by default.
1804     for ac_prog in ginstall scoinst install; do
1805       for ac_exec_ext in '' $ac_executable_extensions; do
1806         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1807           if test $ac_prog = install &&
1808             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1809             # AIX install.  It has an incompatible calling convention.
1810             :
1811           elif test $ac_prog = install &&
1812             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1813             # program-specific install script used by HP pwplus--don't use.
1814             :
1815           else
1816             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1817             break 3
1818           fi
1819         fi
1820       done
1821     done
1822     ;;
1823 esac
1824 done
1825
1826
1827 fi
1828   if test "${ac_cv_path_install+set}" = set; then
1829     INSTALL=$ac_cv_path_install
1830   else
1831     # As a last resort, use the slow shell script.  We don't cache a
1832     # path for INSTALL within a source directory, because that will
1833     # break other packages using the cache if that directory is
1834     # removed, or if the path is relative.
1835     INSTALL=$ac_install_sh
1836   fi
1837 fi
1838 echo "$as_me:$LINENO: result: $INSTALL" >&5
1839 echo "${ECHO_T}$INSTALL" >&6
1840
1841 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1842 # It thinks the first close brace ends the variable substitution.
1843 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1844
1845 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1846
1847 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1848
1849 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1850 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1851 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1852 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1853   echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855   cat >conftest.make <<\_ACEOF
1856 all:
1857         @echo 'ac_maketemp="$(MAKE)"'
1858 _ACEOF
1859 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1860 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1861 if test -n "$ac_maketemp"; then
1862   eval ac_cv_prog_make_${ac_make}_set=yes
1863 else
1864   eval ac_cv_prog_make_${ac_make}_set=no
1865 fi
1866 rm -f conftest.make
1867 fi
1868 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1869   echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1871   SET_MAKE=
1872 else
1873   echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1875   SET_MAKE="MAKE=${MAKE-make}"
1876 fi
1877
1878 if test -n "$ac_tool_prefix"; then
1879   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1880 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_RANLIB+set}" = set; then
1884   echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886   if test -n "$RANLIB"; then
1887   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892   IFS=$as_save_IFS
1893   test -z "$as_dir" && as_dir=.
1894   for ac_exec_ext in '' $ac_executable_extensions; do
1895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898     break 2
1899   fi
1900 done
1901 done
1902
1903 fi
1904 fi
1905 RANLIB=$ac_cv_prog_RANLIB
1906 if test -n "$RANLIB"; then
1907   echo "$as_me:$LINENO: result: $RANLIB" >&5
1908 echo "${ECHO_T}$RANLIB" >&6
1909 else
1910   echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1912 fi
1913
1914 fi
1915 if test -z "$ac_cv_prog_RANLIB"; then
1916   ac_ct_RANLIB=$RANLIB
1917   # Extract the first word of "ranlib", so it can be a program name with args.
1918 set dummy ranlib; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1922   echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924   if test -n "$ac_ct_RANLIB"; then
1925   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1926 else
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1929 do
1930   IFS=$as_save_IFS
1931   test -z "$as_dir" && as_dir=.
1932   for ac_exec_ext in '' $ac_executable_extensions; do
1933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934     ac_cv_prog_ac_ct_RANLIB="ranlib"
1935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936     break 2
1937   fi
1938 done
1939 done
1940
1941   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1942 fi
1943 fi
1944 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1945 if test -n "$ac_ct_RANLIB"; then
1946   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1947 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1948 else
1949   echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1951 fi
1952
1953   RANLIB=$ac_ct_RANLIB
1954 else
1955   RANLIB="$ac_cv_prog_RANLIB"
1956 fi
1957
1958
1959 ac_ext=c
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 if test -n "$ac_tool_prefix"; then
1965   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970   echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972   if test -n "$CC"; then
1973   ac_cv_prog_CC="$CC" # Let the user override the test.
1974 else
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978   IFS=$as_save_IFS
1979   test -z "$as_dir" && as_dir=.
1980   for ac_exec_ext in '' $ac_executable_extensions; do
1981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984     break 2
1985   fi
1986 done
1987 done
1988
1989 fi
1990 fi
1991 CC=$ac_cv_prog_CC
1992 if test -n "$CC"; then
1993   echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6
1995 else
1996   echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
1998 fi
1999
2000 fi
2001 if test -z "$ac_cv_prog_CC"; then
2002   ac_ct_CC=$CC
2003   # Extract the first word of "gcc", so it can be a program name with args.
2004 set dummy gcc; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$ac_ct_CC"; then
2011   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020     ac_cv_prog_ac_ct_CC="gcc"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026
2027 fi
2028 fi
2029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030 if test -n "$ac_ct_CC"; then
2031   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032 echo "${ECHO_T}$ac_ct_CC" >&6
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038   CC=$ac_ct_CC
2039 else
2040   CC="$ac_cv_prog_CC"
2041 fi
2042
2043 if test -z "$CC"; then
2044   if test -n "$ac_tool_prefix"; then
2045   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2046 set dummy ${ac_tool_prefix}cc; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   if test -n "$CC"; then
2053   ac_cv_prog_CC="$CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062     ac_cv_prog_CC="${ac_tool_prefix}cc"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068
2069 fi
2070 fi
2071 CC=$ac_cv_prog_CC
2072 if test -n "$CC"; then
2073   echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6
2075 else
2076   echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2078 fi
2079
2080 fi
2081 if test -z "$ac_cv_prog_CC"; then
2082   ac_ct_CC=$CC
2083   # Extract the first word of "cc", so it can be a program name with args.
2084 set dummy cc; ac_word=$2
2085 echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2088   echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090   if test -n "$ac_ct_CC"; then
2091   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2092 else
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096   IFS=$as_save_IFS
2097   test -z "$as_dir" && as_dir=.
2098   for ac_exec_ext in '' $ac_executable_extensions; do
2099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100     ac_cv_prog_ac_ct_CC="cc"
2101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102     break 2
2103   fi
2104 done
2105 done
2106
2107 fi
2108 fi
2109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2110 if test -n "$ac_ct_CC"; then
2111   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2112 echo "${ECHO_T}$ac_ct_CC" >&6
2113 else
2114   echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2116 fi
2117
2118   CC=$ac_ct_CC
2119 else
2120   CC="$ac_cv_prog_CC"
2121 fi
2122
2123 fi
2124 if test -z "$CC"; then
2125   # Extract the first word of "cc", so it can be a program name with args.
2126 set dummy cc; ac_word=$2
2127 echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130   echo $ECHO_N "(cached) $ECHO_C" >&6
2131 else
2132   if test -n "$CC"; then
2133   ac_cv_prog_CC="$CC" # Let the user override the test.
2134 else
2135   ac_prog_rejected=no
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   for ac_exec_ext in '' $ac_executable_extensions; do
2142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2144        ac_prog_rejected=yes
2145        continue
2146      fi
2147     ac_cv_prog_CC="cc"
2148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149     break 2
2150   fi
2151 done
2152 done
2153
2154 if test $ac_prog_rejected = yes; then
2155   # We found a bogon in the path, so make sure we never use it.
2156   set dummy $ac_cv_prog_CC
2157   shift
2158   if test $# != 0; then
2159     # We chose a different compiler from the bogus one.
2160     # However, it has the same basename, so the bogon will be chosen
2161     # first if we set CC to just the basename; use the full file name.
2162     shift
2163     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2164   fi
2165 fi
2166 fi
2167 fi
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170   echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6
2172 else
2173   echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2175 fi
2176
2177 fi
2178 if test -z "$CC"; then
2179   if test -n "$ac_tool_prefix"; then
2180   for ac_prog in cl
2181   do
2182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_CC+set}" = set; then
2187   echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189   if test -n "$CC"; then
2190   ac_cv_prog_CC="$CC" # Let the user override the test.
2191 else
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195   IFS=$as_save_IFS
2196   test -z "$as_dir" && as_dir=.
2197   for ac_exec_ext in '' $ac_executable_extensions; do
2198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201     break 2
2202   fi
2203 done
2204 done
2205
2206 fi
2207 fi
2208 CC=$ac_cv_prog_CC
2209 if test -n "$CC"; then
2210   echo "$as_me:$LINENO: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6
2212 else
2213   echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2215 fi
2216
2217     test -n "$CC" && break
2218   done
2219 fi
2220 if test -z "$CC"; then
2221   ac_ct_CC=$CC
2222   for ac_prog in cl
2223 do
2224   # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy $ac_prog; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   if test -n "$ac_ct_CC"; then
2232   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
2237   IFS=$as_save_IFS
2238   test -z "$as_dir" && as_dir=.
2239   for ac_exec_ext in '' $ac_executable_extensions; do
2240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241     ac_cv_prog_ac_ct_CC="$ac_prog"
2242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243     break 2
2244   fi
2245 done
2246 done
2247
2248 fi
2249 fi
2250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6
2254 else
2255   echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2257 fi
2258
2259   test -n "$ac_ct_CC" && break
2260 done
2261
2262   CC=$ac_ct_CC
2263 fi
2264
2265 fi
2266
2267
2268 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&2;}
2272    { (exit 1); exit 1; }; }
2273
2274 # Provide some information about the compiler.
2275 echo "$as_me:$LINENO:" \
2276      "checking for C compiler version" >&5
2277 ac_compiler=`set X $ac_compile; echo $2`
2278 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2279   (eval $ac_compiler --version </dev/null >&5) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }
2283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2284   (eval $ac_compiler -v </dev/null >&5) 2>&5
2285   ac_status=$?
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); }
2288 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2289   (eval $ac_compiler -V </dev/null >&5) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }
2293
2294 cat >conftest.$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301
2302 int
2303 main ()
2304 {
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2314 # of exeext.
2315 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2316 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2319   (eval $ac_link_default) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; then
2323   # Find the output, starting from the most likely.  This scheme is
2324 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2325 # resort.
2326
2327 # Be careful to initialize this variable, since it used to be cached.
2328 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2329 ac_cv_exeext=
2330 # b.out is created by i960 compilers.
2331 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2332 do
2333   test -f "$ac_file" || continue
2334   case $ac_file in
2335     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2336         ;;
2337     conftest.$ac_ext )
2338         # This is the source file.
2339         ;;
2340     [ab].out )
2341         # We found the default executable, but exeext='' is most
2342         # certainly right.
2343         break;;
2344     *.* )
2345         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346         # FIXME: I believe we export ac_cv_exeext for Libtool,
2347         # but it would be cool to find out if it's true.  Does anybody
2348         # maintain Libtool? --akim.
2349         export ac_cv_exeext
2350         break;;
2351     * )
2352         break;;
2353   esac
2354 done
2355 else
2356   echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2358
2359 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: C compiler cannot create executables
2362 See \`config.log' for more details." >&2;}
2363    { (exit 77); exit 77; }; }
2364 fi
2365
2366 ac_exeext=$ac_cv_exeext
2367 echo "$as_me:$LINENO: result: $ac_file" >&5
2368 echo "${ECHO_T}$ac_file" >&6
2369
2370 # Check the compiler produces executables we can run.  If not, either
2371 # the compiler is broken, or we cross compile.
2372 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2373 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2374 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2375 # If not cross compiling, check that we can run a simple program.
2376 if test "$cross_compiling" != yes; then
2377   if { ac_try='./$ac_file'
2378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379   (eval $ac_try) 2>&5
2380   ac_status=$?
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); }; }; then
2383     cross_compiling=no
2384   else
2385     if test "$cross_compiling" = maybe; then
2386         cross_compiling=yes
2387     else
2388         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2389 If you meant to cross compile, use \`--host'.
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot run C compiled programs.
2392 If you meant to cross compile, use \`--host'.
2393 See \`config.log' for more details." >&2;}
2394    { (exit 1); exit 1; }; }
2395     fi
2396   fi
2397 fi
2398 echo "$as_me:$LINENO: result: yes" >&5
2399 echo "${ECHO_T}yes" >&6
2400
2401 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2402 ac_clean_files=$ac_clean_files_save
2403 # Check the compiler produces executables we can run.  If not, either
2404 # the compiler is broken, or we cross compile.
2405 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2406 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2407 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2408 echo "${ECHO_T}$cross_compiling" >&6
2409
2410 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2411 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2413   (eval $ac_link) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; then
2417   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2418 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2419 # work properly (i.e., refer to `conftest.exe'), while it won't with
2420 # `rm'.
2421 for ac_file in conftest.exe conftest conftest.*; do
2422   test -f "$ac_file" || continue
2423   case $ac_file in
2424     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2425     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426           export ac_cv_exeext
2427           break;;
2428     * ) break;;
2429   esac
2430 done
2431 else
2432   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2435 See \`config.log' for more details." >&2;}
2436    { (exit 1); exit 1; }; }
2437 fi
2438
2439 rm -f conftest$ac_cv_exeext
2440 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2441 echo "${ECHO_T}$ac_cv_exeext" >&6
2442
2443 rm -f conftest.$ac_ext
2444 EXEEXT=$ac_cv_exeext
2445 ac_exeext=$EXEEXT
2446 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2447 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2448 if test "${ac_cv_objext+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   cat >conftest.$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2453 /* confdefs.h.  */
2454 _ACEOF
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h.  */
2458
2459 int
2460 main ()
2461 {
2462
2463   ;
2464   return 0;
2465 }
2466 _ACEOF
2467 rm -f conftest.o conftest.obj
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469   (eval $ac_compile) 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; then
2473   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2474   case $ac_file in
2475     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2476     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2477        break;;
2478   esac
2479 done
2480 else
2481   echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details." >&2;}
2488    { (exit 1); exit 1; }; }
2489 fi
2490
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2492 fi
2493 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6
2495 OBJEXT=$ac_cv_objext
2496 ac_objext=$OBJEXT
2497 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   cat >conftest.$ac_ext <<_ACEOF
2503 #line $LINENO "configure"
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509
2510 int
2511 main ()
2512 {
2513 #ifndef __GNUC__
2514        choke me
2515 #endif
2516
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523   (eval $ac_compile) 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); } &&
2527          { ac_try='test -s conftest.$ac_objext'
2528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529   (eval $ac_try) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }; }; then
2533   ac_compiler_gnu=yes
2534 else
2535   echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538 ac_compiler_gnu=no
2539 fi
2540 rm -f conftest.$ac_objext conftest.$ac_ext
2541 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2542
2543 fi
2544 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2545 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2546 GCC=`test $ac_compiler_gnu = yes && echo yes`
2547 ac_test_CFLAGS=${CFLAGS+set}
2548 ac_save_CFLAGS=$CFLAGS
2549 CFLAGS="-g"
2550 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2551 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2552 if test "${ac_cv_prog_cc_g+set}" = set; then
2553   echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555   cat >conftest.$ac_ext <<_ACEOF
2556 #line $LINENO "configure"
2557 /* confdefs.h.  */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h.  */
2562
2563 int
2564 main ()
2565 {
2566
2567   ;
2568   return 0;
2569 }
2570 _ACEOF
2571 rm -f conftest.$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573   (eval $ac_compile) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); } &&
2577          { ac_try='test -s conftest.$ac_objext'
2578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579   (eval $ac_try) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; }; then
2583   ac_cv_prog_cc_g=yes
2584 else
2585   echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 ac_cv_prog_cc_g=no
2589 fi
2590 rm -f conftest.$ac_objext conftest.$ac_ext
2591 fi
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2594 if test "$ac_test_CFLAGS" = set; then
2595   CFLAGS=$ac_save_CFLAGS
2596 elif test $ac_cv_prog_cc_g = yes; then
2597   if test "$GCC" = yes; then
2598     CFLAGS="-g -O2"
2599   else
2600     CFLAGS="-g"
2601   fi
2602 else
2603   if test "$GCC" = yes; then
2604     CFLAGS="-O2"
2605   else
2606     CFLAGS=
2607   fi
2608 fi
2609 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2610 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2611 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2612   echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614   ac_cv_prog_cc_stdc=no
2615 ac_save_CC=$CC
2616 cat >conftest.$ac_ext <<_ACEOF
2617 #line $LINENO "configure"
2618 /* confdefs.h.  */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h.  */
2623 #include <stdarg.h>
2624 #include <stdio.h>
2625 #include <sys/types.h>
2626 #include <sys/stat.h>
2627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2628 struct buf { int x; };
2629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2630 static char *e (p, i)
2631      char **p;
2632      int i;
2633 {
2634   return p[i];
2635 }
2636 static char *f (char * (*g) (char **, int), char **p, ...)
2637 {
2638   char *s;
2639   va_list v;
2640   va_start (v,p);
2641   s = g (p, va_arg (v,int));
2642   va_end (v);
2643   return s;
2644 }
2645 int test (int i, double x);
2646 struct s1 {int (*f) (int a);};
2647 struct s2 {int (*f) (double a);};
2648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2649 int argc;
2650 char **argv;
2651 int
2652 main ()
2653 {
2654 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2655   ;
2656   return 0;
2657 }
2658 _ACEOF
2659 # Don't try gcc -ansi; that turns off useful extensions and
2660 # breaks some systems' header files.
2661 # AIX                   -qlanglvl=ansi
2662 # Ultrix and OSF/1      -std1
2663 # HP-UX 10.20 and later -Ae
2664 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2665 # SVR4                  -Xc -D__EXTENSIONS__
2666 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2667 do
2668   CC="$ac_save_CC $ac_arg"
2669   rm -f conftest.$ac_objext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671   (eval $ac_compile) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -s conftest.$ac_objext'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; }; then
2681   ac_cv_prog_cc_stdc=$ac_arg
2682 break
2683 else
2684   echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2686
2687 fi
2688 rm -f conftest.$ac_objext
2689 done
2690 rm -f conftest.$ac_ext conftest.$ac_objext
2691 CC=$ac_save_CC
2692
2693 fi
2694
2695 case "x$ac_cv_prog_cc_stdc" in
2696   x|xno)
2697     echo "$as_me:$LINENO: result: none needed" >&5
2698 echo "${ECHO_T}none needed" >&6 ;;
2699   *)
2700     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2701 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2702     CC="$CC $ac_cv_prog_cc_stdc" ;;
2703 esac
2704
2705 # Some people use a C++ compiler to compile C.  Since we use `exit',
2706 # in C++ we need to declare it.  In case someone uses the same compiler
2707 # for both compiling C and C++ we need to have the C++ compiler decide
2708 # the declaration of exit, since it's the most demanding environment.
2709 cat >conftest.$ac_ext <<_ACEOF
2710 #ifndef __cplusplus
2711   choke me
2712 #endif
2713 _ACEOF
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716   (eval $ac_compile) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } &&
2720          { ac_try='test -s conftest.$ac_objext'
2721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722   (eval $ac_try) 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }; }; then
2726   for ac_declaration in \
2727    '' \
2728    'extern "C" void std::exit (int) throw (); using std::exit;' \
2729    'extern "C" void std::exit (int); using std::exit;' \
2730    'extern "C" void exit (int) throw ();' \
2731    'extern "C" void exit (int);' \
2732    'void exit (int);'
2733 do
2734   cat >conftest.$ac_ext <<_ACEOF
2735 #line $LINENO "configure"
2736 /* confdefs.h.  */
2737 _ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h.  */
2741 $ac_declaration
2742 #include <stdlib.h>
2743 int
2744 main ()
2745 {
2746 exit (42);
2747   ;
2748   return 0;
2749 }
2750 _ACEOF
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753   (eval $ac_compile) 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); } &&
2757          { ac_try='test -s conftest.$ac_objext'
2758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759   (eval $ac_try) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; }; then
2763   :
2764 else
2765   echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2767
2768 continue
2769 fi
2770 rm -f conftest.$ac_objext conftest.$ac_ext
2771   cat >conftest.$ac_ext <<_ACEOF
2772 #line $LINENO "configure"
2773 /* confdefs.h.  */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h.  */
2778 $ac_declaration
2779 int
2780 main ()
2781 {
2782 exit (42);
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789   (eval $ac_compile) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); } &&
2793          { ac_try='test -s conftest.$ac_objext'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; }; then
2799   break
2800 else
2801   echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2803
2804 fi
2805 rm -f conftest.$ac_objext conftest.$ac_ext
2806 done
2807 rm -f conftest*
2808 if test -n "$ac_declaration"; then
2809   echo '#ifdef __cplusplus' >>confdefs.h
2810   echo $ac_declaration      >>confdefs.h
2811   echo '#endif'             >>confdefs.h
2812 fi
2813
2814 else
2815   echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2817
2818 fi
2819 rm -f conftest.$ac_objext conftest.$ac_ext
2820 ac_ext=c
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 DEPDIR="${am__leading_dot}deps"
2826
2827           ac_config_commands="$ac_config_commands depfiles"
2828
2829
2830 am_make=${MAKE-make}
2831 cat > confinc << 'END'
2832 am__doit:
2833         @echo done
2834 .PHONY: am__doit
2835 END
2836 # If we don't find an include directive, just comment out the code.
2837 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2838 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2839 am__include="#"
2840 am__quote=
2841 _am_result=none
2842 # First try GNU make style include.
2843 echo "include confinc" > confmf
2844 # We grep out `Entering directory' and `Leaving directory'
2845 # messages which can occur if `w' ends up in MAKEFLAGS.
2846 # In particular we don't look at `^make:' because GNU make might
2847 # be invoked under some other name (usually "gmake"), in which
2848 # case it prints its new name instead of `make'.
2849 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2850    am__include=include
2851    am__quote=
2852    _am_result=GNU
2853 fi
2854 # Now try BSD make style include.
2855 if test "$am__include" = "#"; then
2856    echo '.include "confinc"' > confmf
2857    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2858       am__include=.include
2859       am__quote="\""
2860       _am_result=BSD
2861    fi
2862 fi
2863
2864
2865 echo "$as_me:$LINENO: result: $_am_result" >&5
2866 echo "${ECHO_T}$_am_result" >&6
2867 rm -f confinc confmf
2868
2869 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2870 if test "${enable_dependency_tracking+set}" = set; then
2871   enableval="$enable_dependency_tracking"
2872
2873 fi;
2874 if test "x$enable_dependency_tracking" != xno; then
2875   am_depcomp="$ac_aux_dir/depcomp"
2876   AMDEPBACKSLASH='\'
2877 fi
2878
2879
2880 if test "x$enable_dependency_tracking" != xno; then
2881   AMDEP_TRUE=
2882   AMDEP_FALSE='#'
2883 else
2884   AMDEP_TRUE='#'
2885   AMDEP_FALSE=
2886 fi
2887
2888
2889
2890
2891 depcc="$CC"   am_compiler_list=
2892
2893 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2894 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2895 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2896   echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2899   # We make a subdir and do the tests there.  Otherwise we can end up
2900   # making bogus files that we don't know about and never remove.  For
2901   # instance it was reported that on HP-UX the gcc test will end up
2902   # making a dummy file named `D' -- because `-MD' means `put the output
2903   # in D'.
2904   mkdir conftest.dir
2905   # Copy depcomp to subdir because otherwise we won't find it if we're
2906   # using a relative directory.
2907   cp "$am_depcomp" conftest.dir
2908   cd conftest.dir
2909   # We will build objects and dependencies in a subdirectory because
2910   # it helps to detect inapplicable dependency modes.  For instance
2911   # both Tru64's cc and ICC support -MD to output dependencies as a
2912   # side effect of compilation, but ICC will put the dependencies in
2913   # the current directory while Tru64 will put them in the object
2914   # directory.
2915   mkdir sub
2916
2917   am_cv_CC_dependencies_compiler_type=none
2918   if test "$am_compiler_list" = ""; then
2919      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2920   fi
2921   for depmode in $am_compiler_list; do
2922     # Setup a source with many dependencies, because some compilers
2923     # like to wrap large dependency lists on column 80 (with \), and
2924     # we should not choose a depcomp mode which is confused by this.
2925     #
2926     # We need to recreate these files for each test, as the compiler may
2927     # overwrite some of them when testing with obscure command lines.
2928     # This happens at least with the AIX C compiler.
2929     : > sub/conftest.c
2930     for i in 1 2 3 4 5 6; do
2931       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2932       : > sub/conftst$i.h
2933     done
2934     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2935
2936     case $depmode in
2937     nosideeffect)
2938       # after this tag, mechanisms are not by side-effect, so they'll
2939       # only be used when explicitly requested
2940       if test "x$enable_dependency_tracking" = xyes; then
2941         continue
2942       else
2943         break
2944       fi
2945       ;;
2946     none) break ;;
2947     esac
2948     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2949     # mode.  It turns out that the SunPro C++ compiler does not properly
2950     # handle `-M -o', and we need to detect this.
2951     if depmode=$depmode \
2952        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2953        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2954        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2955          >/dev/null 2>conftest.err &&
2956        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2957        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2958        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2959       # icc doesn't choke on unknown options, it will just issue warnings
2960       # (even with -Werror).  So we grep stderr for any message
2961       # that says an option was ignored.
2962       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2963         am_cv_CC_dependencies_compiler_type=$depmode
2964         break
2965       fi
2966     fi
2967   done
2968
2969   cd ..
2970   rm -rf conftest.dir
2971 else
2972   am_cv_CC_dependencies_compiler_type=none
2973 fi
2974
2975 fi
2976 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2977 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2978 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2979
2980
2981
2982 if
2983   test "x$enable_dependency_tracking" != xno \
2984   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2985   am__fastdepCC_TRUE=
2986   am__fastdepCC_FALSE='#'
2987 else
2988   am__fastdepCC_TRUE='#'
2989   am__fastdepCC_FALSE=
2990 fi
2991
2992
2993 ac_ext=cc
2994 ac_cpp='$CXXCPP $CPPFLAGS'
2995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2998 if test -n "$ac_tool_prefix"; then
2999   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3000   do
3001     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3003 echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_prog_CXX+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   if test -n "$CXX"; then
3009   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014   IFS=$as_save_IFS
3015   test -z "$as_dir" && as_dir=.
3016   for ac_exec_ext in '' $ac_executable_extensions; do
3017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020     break 2
3021   fi
3022 done
3023 done
3024
3025 fi
3026 fi
3027 CXX=$ac_cv_prog_CXX
3028 if test -n "$CXX"; then
3029   echo "$as_me:$LINENO: result: $CXX" >&5
3030 echo "${ECHO_T}$CXX" >&6
3031 else
3032   echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6
3034 fi
3035
3036     test -n "$CXX" && break
3037   done
3038 fi
3039 if test -z "$CXX"; then
3040   ac_ct_CXX=$CXX
3041   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3042 do
3043   # Extract the first word of "$ac_prog", so it can be a program name with args.
3044 set dummy $ac_prog; ac_word=$2
3045 echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3048   echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050   if test -n "$ac_ct_CXX"; then
3051   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056   IFS=$as_save_IFS
3057   test -z "$as_dir" && as_dir=.
3058   for ac_exec_ext in '' $ac_executable_extensions; do
3059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060     ac_cv_prog_ac_ct_CXX="$ac_prog"
3061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062     break 2
3063   fi
3064 done
3065 done
3066
3067 fi
3068 fi
3069 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3070 if test -n "$ac_ct_CXX"; then
3071   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3072 echo "${ECHO_T}$ac_ct_CXX" >&6
3073 else
3074   echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6
3076 fi
3077
3078   test -n "$ac_ct_CXX" && break
3079 done
3080 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3081
3082   CXX=$ac_ct_CXX
3083 fi
3084
3085
3086 # Provide some information about the compiler.
3087 echo "$as_me:$LINENO:" \
3088      "checking for C++ compiler version" >&5
3089 ac_compiler=`set X $ac_compile; echo $2`
3090 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3091   (eval $ac_compiler --version </dev/null >&5) 2>&5
3092   ac_status=$?
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); }
3095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3096   (eval $ac_compiler -v </dev/null >&5) 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }
3100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3101   (eval $ac_compiler -V </dev/null >&5) 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }
3105
3106 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3107 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3108 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   cat >conftest.$ac_ext <<_ACEOF
3112 #line $LINENO "configure"
3113 /* confdefs.h.  */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h.  */
3118
3119 int
3120 main ()
3121 {
3122 #ifndef __GNUC__
3123        choke me
3124 #endif
3125
3126   ;
3127   return 0;
3128 }
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3132   (eval $ac_compile) 2>&5
3133   ac_status=$?
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); } &&
3136          { ac_try='test -s conftest.$ac_objext'
3137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138   (eval $ac_try) 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }; }; then
3142   ac_compiler_gnu=yes
3143 else
3144   echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 ac_compiler_gnu=no
3148 fi
3149 rm -f conftest.$ac_objext conftest.$ac_ext
3150 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3151
3152 fi
3153 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3154 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3155 GXX=`test $ac_compiler_gnu = yes && echo yes`
3156 ac_test_CXXFLAGS=${CXXFLAGS+set}
3157 ac_save_CXXFLAGS=$CXXFLAGS
3158 CXXFLAGS="-g"
3159 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3160 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3161 if test "${ac_cv_prog_cxx_g+set}" = set; then
3162   echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164   cat >conftest.$ac_ext <<_ACEOF
3165 #line $LINENO "configure"
3166 /* confdefs.h.  */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h.  */
3171
3172 int
3173 main ()
3174 {
3175
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3182   (eval $ac_compile) 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } &&
3186          { ac_try='test -s conftest.$ac_objext'
3187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188   (eval $ac_try) 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; }; then
3192   ac_cv_prog_cxx_g=yes
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 ac_cv_prog_cxx_g=no
3198 fi
3199 rm -f conftest.$ac_objext conftest.$ac_ext
3200 fi
3201 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3202 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3203 if test "$ac_test_CXXFLAGS" = set; then
3204   CXXFLAGS=$ac_save_CXXFLAGS
3205 elif test $ac_cv_prog_cxx_g = yes; then
3206   if test "$GXX" = yes; then
3207     CXXFLAGS="-g -O2"
3208   else
3209     CXXFLAGS="-g"
3210   fi
3211 else
3212   if test "$GXX" = yes; then
3213     CXXFLAGS="-O2"
3214   else
3215     CXXFLAGS=
3216   fi
3217 fi
3218 for ac_declaration in \
3219    '' \
3220    'extern "C" void std::exit (int) throw (); using std::exit;' \
3221    'extern "C" void std::exit (int); using std::exit;' \
3222    'extern "C" void exit (int) throw ();' \
3223    'extern "C" void exit (int);' \
3224    'void exit (int);'
3225 do
3226   cat >conftest.$ac_ext <<_ACEOF
3227 #line $LINENO "configure"
3228 /* confdefs.h.  */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h.  */
3233 $ac_declaration
3234 #include <stdlib.h>
3235 int
3236 main ()
3237 {
3238 exit (42);
3239   ;
3240   return 0;
3241 }
3242 _ACEOF
3243 rm -f conftest.$ac_objext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245   (eval $ac_compile) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); } &&
3249          { ac_try='test -s conftest.$ac_objext'
3250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251   (eval $ac_try) 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255   :
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 continue
3261 fi
3262 rm -f conftest.$ac_objext conftest.$ac_ext
3263   cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
3265 /* confdefs.h.  */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h.  */
3270 $ac_declaration
3271 int
3272 main ()
3273 {
3274 exit (42);
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 rm -f conftest.$ac_objext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281   (eval $ac_compile) 2>&5
3282   ac_status=$?
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); } &&
3285          { ac_try='test -s conftest.$ac_objext'
3286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287   (eval $ac_try) 2>&5
3288   ac_status=$?
3289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290   (exit $ac_status); }; }; then
3291   break
3292 else
3293   echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296 fi
3297 rm -f conftest.$ac_objext conftest.$ac_ext
3298 done
3299 rm -f conftest*
3300 if test -n "$ac_declaration"; then
3301   echo '#ifdef __cplusplus' >>confdefs.h
3302   echo $ac_declaration      >>confdefs.h
3303   echo '#endif'             >>confdefs.h
3304 fi
3305
3306 ac_ext=c
3307 ac_cpp='$CPP $CPPFLAGS'
3308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311
3312 depcc="$CXX"  am_compiler_list=
3313
3314 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3315 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3316 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3317   echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3320   # We make a subdir and do the tests there.  Otherwise we can end up
3321   # making bogus files that we don't know about and never remove.  For
3322   # instance it was reported that on HP-UX the gcc test will end up
3323   # making a dummy file named `D' -- because `-MD' means `put the output
3324   # in D'.
3325   mkdir conftest.dir
3326   # Copy depcomp to subdir because otherwise we won't find it if we're
3327   # using a relative directory.
3328   cp "$am_depcomp" conftest.dir
3329   cd conftest.dir
3330   # We will build objects and dependencies in a subdirectory because
3331   # it helps to detect inapplicable dependency modes.  For instance
3332   # both Tru64's cc and ICC support -MD to output dependencies as a
3333   # side effect of compilation, but ICC will put the dependencies in
3334   # the current directory while Tru64 will put them in the object
3335   # directory.
3336   mkdir sub
3337
3338   am_cv_CXX_dependencies_compiler_type=none
3339   if test "$am_compiler_list" = ""; then
3340      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3341   fi
3342   for depmode in $am_compiler_list; do
3343     # Setup a source with many dependencies, because some compilers
3344     # like to wrap large dependency lists on column 80 (with \), and
3345     # we should not choose a depcomp mode which is confused by this.
3346     #
3347     # We need to recreate these files for each test, as the compiler may
3348     # overwrite some of them when testing with obscure command lines.
3349     # This happens at least with the AIX C compiler.
3350     : > sub/conftest.c
3351     for i in 1 2 3 4 5 6; do
3352       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3353       : > sub/conftst$i.h
3354     done
3355     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3356
3357     case $depmode in
3358     nosideeffect)
3359       # after this tag, mechanisms are not by side-effect, so they'll
3360       # only be used when explicitly requested
3361       if test "x$enable_dependency_tracking" = xyes; then
3362         continue
3363       else
3364         break
3365       fi
3366       ;;
3367     none) break ;;
3368     esac
3369     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3370     # mode.  It turns out that the SunPro C++ compiler does not properly
3371     # handle `-M -o', and we need to detect this.
3372     if depmode=$depmode \
3373        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3374        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3375        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3376          >/dev/null 2>conftest.err &&
3377        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3378        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3379        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3380       # icc doesn't choke on unknown options, it will just issue warnings
3381       # (even with -Werror).  So we grep stderr for any message
3382       # that says an option was ignored.
3383       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3384         am_cv_CXX_dependencies_compiler_type=$depmode
3385         break
3386       fi
3387     fi
3388   done
3389
3390   cd ..
3391   rm -rf conftest.dir
3392 else
3393   am_cv_CXX_dependencies_compiler_type=none
3394 fi
3395
3396 fi
3397 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3398 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3399 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3400
3401
3402
3403 if
3404   test "x$enable_dependency_tracking" != xno \
3405   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3406   am__fastdepCXX_TRUE=
3407   am__fastdepCXX_FALSE='#'
3408 else
3409   am__fastdepCXX_TRUE='#'
3410   am__fastdepCXX_FALSE=
3411 fi
3412
3413
3414
3415 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3416 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3417 if test "${ac_cv_c_bigendian+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   # See if sys/param.h defines the BYTE_ORDER macro.
3421 cat >conftest.$ac_ext <<_ACEOF
3422 #line $LINENO "configure"
3423 /* confdefs.h.  */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h.  */
3428 #include <sys/types.h>
3429 #include <sys/param.h>
3430
3431 int
3432 main ()
3433 {
3434 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3435  bogus endian macros
3436 #endif
3437
3438   ;
3439   return 0;
3440 }
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444   (eval $ac_compile) 2>&5
3445   ac_status=$?
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); } &&
3448          { ac_try='test -s conftest.$ac_objext'
3449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450   (eval $ac_try) 2>&5
3451   ac_status=$?
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); }; }; then
3454   # It does; now see whether it defined to BIG_ENDIAN or not.
3455 cat >conftest.$ac_ext <<_ACEOF
3456 #line $LINENO "configure"
3457 /* confdefs.h.  */
3458 _ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h.  */
3462 #include <sys/types.h>
3463 #include <sys/param.h>
3464
3465 int
3466 main ()
3467 {
3468 #if BYTE_ORDER != BIG_ENDIAN
3469  not big endian
3470 #endif
3471
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 rm -f conftest.$ac_objext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478   (eval $ac_compile) 2>&5
3479   ac_status=$?
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); } &&
3482          { ac_try='test -s conftest.$ac_objext'
3483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484   (eval $ac_try) 2>&5
3485   ac_status=$?
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); }; }; then
3488   ac_cv_c_bigendian=yes
3489 else
3490   echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493 ac_cv_c_bigendian=no
3494 fi
3495 rm -f conftest.$ac_objext conftest.$ac_ext
3496 else
3497   echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 # It does not; compile a test program.
3501 if test "$cross_compiling" = yes; then
3502   # try to guess the endianness by grepping values into an object file
3503   ac_cv_c_bigendian=unknown
3504   cat >conftest.$ac_ext <<_ACEOF
3505 #line $LINENO "configure"
3506 /* confdefs.h.  */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h.  */
3511 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3512 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3513 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3514 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3515 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3516 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3517 int
3518 main ()
3519 {
3520  _ascii (); _ebcdic ();
3521   ;
3522   return 0;
3523 }
3524 _ACEOF
3525 rm -f conftest.$ac_objext
3526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3527   (eval $ac_compile) 2>&5
3528   ac_status=$?
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); } &&
3531          { ac_try='test -s conftest.$ac_objext'
3532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533   (eval $ac_try) 2>&5
3534   ac_status=$?
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); }; }; then
3537   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3538   ac_cv_c_bigendian=yes
3539 fi
3540 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3541   if test "$ac_cv_c_bigendian" = unknown; then
3542     ac_cv_c_bigendian=no
3543   else
3544     # finding both strings is unlikely to happen, but who knows?
3545     ac_cv_c_bigendian=unknown
3546   fi
3547 fi
3548 else
3549   echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552 fi
3553 rm -f conftest.$ac_objext conftest.$ac_ext
3554 else
3555   cat >conftest.$ac_ext <<_ACEOF
3556 #line $LINENO "configure"
3557 /* confdefs.h.  */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h.  */
3562 int
3563 main ()
3564 {
3565   /* Are we little or big endian?  From Harbison&Steele.  */
3566   union
3567   {
3568     long l;
3569     char c[sizeof (long)];
3570   } u;
3571   u.l = 1;
3572   exit (u.c[sizeof (long) - 1] == 1);
3573 }
3574 _ACEOF
3575 rm -f conftest$ac_exeext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3577   (eval $ac_link) 2>&5
3578   ac_status=$?
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582   (eval $ac_try) 2>&5
3583   ac_status=$?
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); }; }; then
3586   ac_cv_c_bigendian=no
3587 else
3588   echo "$as_me: program exited with status $ac_status" >&5
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 ( exit $ac_status )
3593 ac_cv_c_bigendian=yes
3594 fi
3595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3596 fi
3597 fi
3598 rm -f conftest.$ac_objext conftest.$ac_ext
3599 fi
3600 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3601 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3602 case $ac_cv_c_bigendian in
3603   yes)
3604
3605 cat >>confdefs.h <<\_ACEOF
3606 #define WORDS_BIGENDIAN 1
3607 _ACEOF
3608  ;;
3609   no)
3610      ;;
3611   *)
3612     { { echo "$as_me:$LINENO: error: unknown endianness
3613 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3614 echo "$as_me: error: unknown endianness
3615 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3616    { (exit 1); exit 1; }; } ;;
3617 esac
3618
3619
3620 # Extract the first word of "wx-config", so it can be a program name with args.
3621 set dummy wx-config; ac_word=$2
3622 echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624 if test "${ac_cv_path_wxconfig+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   case $wxconfig in
3628   [\\/]* | ?:[\\/]*)
3629   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3630   ;;
3631   *)
3632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635   IFS=$as_save_IFS
3636   test -z "$as_dir" && as_dir=.
3637   for ac_exec_ext in '' $ac_executable_extensions; do
3638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641     break 2
3642   fi
3643 done
3644 done
3645
3646   ;;
3647 esac
3648 fi
3649 wxconfig=$ac_cv_path_wxconfig
3650
3651 if test -n "$wxconfig"; then
3652   echo "$as_me:$LINENO: result: $wxconfig" >&5
3653 echo "${ECHO_T}$wxconfig" >&6
3654 else
3655   echo "$as_me:$LINENO: result: no" >&5
3656 echo "${ECHO_T}no" >&6
3657 fi
3658
3659
3660 # Make sure we can run config.sub.
3661 $ac_config_sub sun4 >/dev/null 2>&1 ||
3662   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3663 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3664    { (exit 1); exit 1; }; }
3665
3666 echo "$as_me:$LINENO: checking build system type" >&5
3667 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3668 if test "${ac_cv_build+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   ac_cv_build_alias=$build_alias
3672 test -z "$ac_cv_build_alias" &&
3673   ac_cv_build_alias=`$ac_config_guess`
3674 test -z "$ac_cv_build_alias" &&
3675   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3676 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3677    { (exit 1); exit 1; }; }
3678 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3679   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3680 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3681    { (exit 1); exit 1; }; }
3682
3683 fi
3684 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3685 echo "${ECHO_T}$ac_cv_build" >&6
3686 build=$ac_cv_build
3687 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3688 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3689 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3690
3691
3692 echo "$as_me:$LINENO: checking host system type" >&5
3693 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3694 if test "${ac_cv_host+set}" = set; then
3695   echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697   ac_cv_host_alias=$host_alias
3698 test -z "$ac_cv_host_alias" &&
3699   ac_cv_host_alias=$ac_cv_build_alias
3700 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3701   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3702 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3703    { (exit 1); exit 1; }; }
3704
3705 fi
3706 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3707 echo "${ECHO_T}$ac_cv_host" >&6
3708 host=$ac_cv_host
3709 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3710 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3711 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3712
3713
3714 echo "$as_me:$LINENO: checking for inline" >&5
3715 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3716 if test "${ac_cv_c_inline+set}" = set; then
3717   echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719   ac_cv_c_inline=no
3720 for ac_kw in inline __inline__ __inline; do
3721   cat >conftest.$ac_ext <<_ACEOF
3722 #line $LINENO "configure"
3723 /* confdefs.h.  */
3724 _ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h.  */
3728 #ifndef __cplusplus
3729 typedef int foo_t;
3730 static $ac_kw foo_t static_foo () {return 0; }
3731 $ac_kw foo_t foo () {return 0; }
3732 #endif
3733
3734 _ACEOF
3735 rm -f conftest.$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737   (eval $ac_compile) 2>&5
3738   ac_status=$?
3739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740   (exit $ac_status); } &&
3741          { ac_try='test -s conftest.$ac_objext'
3742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743   (eval $ac_try) 2>&5
3744   ac_status=$?
3745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746   (exit $ac_status); }; }; then
3747   ac_cv_c_inline=$ac_kw; break
3748 else
3749   echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752 fi
3753 rm -f conftest.$ac_objext conftest.$ac_ext
3754 done
3755
3756 fi
3757 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3758 echo "${ECHO_T}$ac_cv_c_inline" >&6
3759 case $ac_cv_c_inline in
3760   inline | yes) ;;
3761   no)
3762 cat >>confdefs.h <<\_ACEOF
3763 #define inline
3764 _ACEOF
3765  ;;
3766   *)  cat >>confdefs.h <<_ACEOF
3767 #define inline $ac_cv_c_inline
3768 _ACEOF
3769  ;;
3770 esac
3771
3772 ac_ext=c
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3778 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3779 # On Suns, sometimes $CPP names a directory.
3780 if test -n "$CPP" && test -d "$CPP"; then
3781   CPP=
3782 fi
3783 if test -z "$CPP"; then
3784   if test "${ac_cv_prog_CPP+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787       # Double quotes because CPP needs to be expanded
3788     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3789     do
3790       ac_preproc_ok=false
3791 for ac_c_preproc_warn_flag in '' yes
3792 do
3793   # Use a header file that comes with gcc, so configuring glibc
3794   # with a fresh cross-compiler works.
3795   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796   # <limits.h> exists even on freestanding compilers.
3797   # On the NeXT, cc -E runs the code through the compiler's parser,
3798   # not just through cpp. "Syntax error" is here to catch this case.
3799   cat >conftest.$ac_ext <<_ACEOF
3800 #line $LINENO "configure"
3801 /* confdefs.h.  */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h.  */
3806 #ifdef __STDC__
3807 # include <limits.h>
3808 #else
3809 # include <assert.h>
3810 #endif
3811                      Syntax error
3812 _ACEOF
3813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3814   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3815   ac_status=$?
3816   grep -v '^ *+' conftest.er1 >conftest.err
3817   rm -f conftest.er1
3818   cat conftest.err >&5
3819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820   (exit $ac_status); } >/dev/null; then
3821   if test -s conftest.err; then
3822     ac_cpp_err=$ac_c_preproc_warn_flag
3823   else
3824     ac_cpp_err=
3825   fi
3826 else
3827   ac_cpp_err=yes
3828 fi
3829 if test -z "$ac_cpp_err"; then
3830   :
3831 else
3832   echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835   # Broken: fails on valid input.
3836 continue
3837 fi
3838 rm -f conftest.err conftest.$ac_ext
3839
3840   # OK, works on sane cases.  Now check whether non-existent headers
3841   # can be detected and how.
3842   cat >conftest.$ac_ext <<_ACEOF
3843 #line $LINENO "configure"
3844 /* confdefs.h.  */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h.  */
3849 #include <ac_nonexistent.h>
3850 _ACEOF
3851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3852   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3853   ac_status=$?
3854   grep -v '^ *+' conftest.er1 >conftest.err
3855   rm -f conftest.er1
3856   cat conftest.err >&5
3857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858   (exit $ac_status); } >/dev/null; then
3859   if test -s conftest.err; then
3860     ac_cpp_err=$ac_c_preproc_warn_flag
3861   else
3862     ac_cpp_err=
3863   fi
3864 else
3865   ac_cpp_err=yes
3866 fi
3867 if test -z "$ac_cpp_err"; then
3868   # Broken: success on invalid input.
3869 continue
3870 else
3871   echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3873
3874   # Passes both tests.
3875 ac_preproc_ok=:
3876 break
3877 fi
3878 rm -f conftest.err conftest.$ac_ext
3879
3880 done
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.err conftest.$ac_ext
3883 if $ac_preproc_ok; then
3884   break
3885 fi
3886
3887     done
3888     ac_cv_prog_CPP=$CPP
3889
3890 fi
3891   CPP=$ac_cv_prog_CPP
3892 else
3893   ac_cv_prog_CPP=$CPP
3894 fi
3895 echo "$as_me:$LINENO: result: $CPP" >&5
3896 echo "${ECHO_T}$CPP" >&6
3897 ac_preproc_ok=false
3898 for ac_c_preproc_warn_flag in '' yes
3899 do
3900   # Use a header file that comes with gcc, so configuring glibc
3901   # with a fresh cross-compiler works.
3902   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3903   # <limits.h> exists even on freestanding compilers.
3904   # On the NeXT, cc -E runs the code through the compiler's parser,
3905   # not just through cpp. "Syntax error" is here to catch this case.
3906   cat >conftest.$ac_ext <<_ACEOF
3907 #line $LINENO "configure"
3908 /* confdefs.h.  */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h.  */
3913 #ifdef __STDC__
3914 # include <limits.h>
3915 #else
3916 # include <assert.h>
3917 #endif
3918                      Syntax error
3919 _ACEOF
3920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3922   ac_status=$?
3923   grep -v '^ *+' conftest.er1 >conftest.err
3924   rm -f conftest.er1
3925   cat conftest.err >&5
3926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927   (exit $ac_status); } >/dev/null; then
3928   if test -s conftest.err; then
3929     ac_cpp_err=$ac_c_preproc_warn_flag
3930   else
3931     ac_cpp_err=
3932   fi
3933 else
3934   ac_cpp_err=yes
3935 fi
3936 if test -z "$ac_cpp_err"; then
3937   :
3938 else
3939   echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942   # Broken: fails on valid input.
3943 continue
3944 fi
3945 rm -f conftest.err conftest.$ac_ext
3946
3947   # OK, works on sane cases.  Now check whether non-existent headers
3948   # can be detected and how.
3949   cat >conftest.$ac_ext <<_ACEOF
3950 #line $LINENO "configure"
3951 /* confdefs.h.  */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h.  */
3956 #include <ac_nonexistent.h>
3957 _ACEOF
3958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3959   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3960   ac_status=$?
3961   grep -v '^ *+' conftest.er1 >conftest.err
3962   rm -f conftest.er1
3963   cat conftest.err >&5
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); } >/dev/null; then
3966   if test -s conftest.err; then
3967     ac_cpp_err=$ac_c_preproc_warn_flag
3968   else
3969     ac_cpp_err=
3970   fi
3971 else
3972   ac_cpp_err=yes
3973 fi
3974 if test -z "$ac_cpp_err"; then
3975   # Broken: success on invalid input.
3976 continue
3977 else
3978   echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981   # Passes both tests.
3982 ac_preproc_ok=:
3983 break
3984 fi
3985 rm -f conftest.err conftest.$ac_ext
3986
3987 done
3988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3989 rm -f conftest.err conftest.$ac_ext
3990 if $ac_preproc_ok; then
3991   :
3992 else
3993   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3994 See \`config.log' for more details." >&5
3995 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3996 See \`config.log' for more details." >&2;}
3997    { (exit 1); exit 1; }; }
3998 fi
3999
4000 ac_ext=c
4001 ac_cpp='$CPP $CPPFLAGS'
4002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005
4006
4007 echo "$as_me:$LINENO: checking for egrep" >&5
4008 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4009 if test "${ac_cv_prog_egrep+set}" = set; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4013     then ac_cv_prog_egrep='grep -E'
4014     else ac_cv_prog_egrep='egrep'
4015     fi
4016 fi
4017 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4018 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4019  EGREP=$ac_cv_prog_egrep
4020
4021
4022 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4023 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4024 if test "${ac_cv_header_stdc+set}" = set; then
4025   echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027   cat >conftest.$ac_ext <<_ACEOF
4028 #line $LINENO "configure"
4029 /* confdefs.h.  */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h.  */
4034 #include <stdlib.h>
4035 #include <stdarg.h>
4036 #include <string.h>
4037 #include <float.h>
4038
4039 int
4040 main ()
4041 {
4042
4043   ;
4044   return 0;
4045 }
4046 _ACEOF
4047 rm -f conftest.$ac_objext
4048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4049   (eval $ac_compile) 2>&5
4050   ac_status=$?
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); } &&
4053          { ac_try='test -s conftest.$ac_objext'
4054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055   (eval $ac_try) 2>&5
4056   ac_status=$?
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); }; }; then
4059   ac_cv_header_stdc=yes
4060 else
4061   echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4063
4064 ac_cv_header_stdc=no
4065 fi
4066 rm -f conftest.$ac_objext conftest.$ac_ext
4067
4068 if test $ac_cv_header_stdc = yes; then
4069   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4070   cat >conftest.$ac_ext <<_ACEOF
4071 #line $LINENO "configure"
4072 /* confdefs.h.  */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h.  */
4077 #include <string.h>
4078
4079 _ACEOF
4080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4081   $EGREP "memchr" >/dev/null 2>&1; then
4082   :
4083 else
4084   ac_cv_header_stdc=no
4085 fi
4086 rm -f conftest*
4087
4088 fi
4089
4090 if test $ac_cv_header_stdc = yes; then
4091   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4092   cat >conftest.$ac_ext <<_ACEOF
4093 #line $LINENO "configure"
4094 /* confdefs.h.  */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h.  */
4099 #include <stdlib.h>
4100
4101 _ACEOF
4102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4103   $EGREP "free" >/dev/null 2>&1; then
4104   :
4105 else
4106   ac_cv_header_stdc=no
4107 fi
4108 rm -f conftest*
4109
4110 fi
4111
4112 if test $ac_cv_header_stdc = yes; then
4113   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4114   if test "$cross_compiling" = yes; then
4115   :
4116 else
4117   cat >conftest.$ac_ext <<_ACEOF
4118 #line $LINENO "configure"
4119 /* confdefs.h.  */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h.  */
4124 #include <ctype.h>
4125 #if ((' ' & 0x0FF) == 0x020)
4126 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4127 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4128 #else
4129 # define ISLOWER(c) \
4130                    (('a' <= (c) && (c) <= 'i') \
4131                      || ('j' <= (c) && (c) <= 'r') \
4132                      || ('s' <= (c) && (c) <= 'z'))
4133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4134 #endif
4135
4136 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4137 int
4138 main ()
4139 {
4140   int i;
4141   for (i = 0; i < 256; i++)
4142     if (XOR (islower (i), ISLOWER (i))
4143         || toupper (i) != TOUPPER (i))
4144       exit(2);
4145   exit (0);
4146 }
4147 _ACEOF
4148 rm -f conftest$ac_exeext
4149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4150   (eval $ac_link) 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155   (eval $ac_try) 2>&5
4156   ac_status=$?
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); }; }; then
4159   :
4160 else
4161   echo "$as_me: program exited with status $ac_status" >&5
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165 ( exit $ac_status )
4166 ac_cv_header_stdc=no
4167 fi
4168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4169 fi
4170 fi
4171 fi
4172 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4173 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4174 if test $ac_cv_header_stdc = yes; then
4175
4176 cat >>confdefs.h <<\_ACEOF
4177 #define STDC_HEADERS 1
4178 _ACEOF
4179
4180 fi
4181
4182 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4193                   inttypes.h stdint.h unistd.h
4194 do
4195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4196 echo "$as_me:$LINENO: checking for $ac_header" >&5
4197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   cat >conftest.$ac_ext <<_ACEOF
4202 #line $LINENO "configure"
4203 /* confdefs.h.  */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h.  */
4208 $ac_includes_default
4209
4210 #include <$ac_header>
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214   (eval $ac_compile) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); } &&
4218          { ac_try='test -s conftest.$ac_objext'
4219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220   (eval $ac_try) 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); }; }; then
4224   eval "$as_ac_Header=yes"
4225 else
4226   echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229 eval "$as_ac_Header=no"
4230 fi
4231 rm -f conftest.$ac_objext conftest.$ac_ext
4232 fi
4233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4236   cat >>confdefs.h <<_ACEOF
4237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4238 _ACEOF
4239
4240 fi
4241
4242 done
4243
4244
4245 echo "$as_me:$LINENO: checking for short" >&5
4246 echo $ECHO_N "checking for short... $ECHO_C" >&6
4247 if test "${ac_cv_type_short+set}" = set; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250   cat >conftest.$ac_ext <<_ACEOF
4251 #line $LINENO "configure"
4252 /* confdefs.h.  */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h.  */
4257 $ac_includes_default
4258 int
4259 main ()
4260 {
4261 if ((short *) 0)
4262   return 0;
4263 if (sizeof (short))
4264   return 0;
4265   ;
4266   return 0;
4267 }
4268 _ACEOF
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271   (eval $ac_compile) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); } &&
4275          { ac_try='test -s conftest.$ac_objext'
4276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277   (eval $ac_try) 2>&5
4278   ac_status=$?
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); }; }; then
4281   ac_cv_type_short=yes
4282 else
4283   echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 ac_cv_type_short=no
4287 fi
4288 rm -f conftest.$ac_objext conftest.$ac_ext
4289 fi
4290 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4291 echo "${ECHO_T}$ac_cv_type_short" >&6
4292
4293 echo "$as_me:$LINENO: checking size of short" >&5
4294 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4295 if test "${ac_cv_sizeof_short+set}" = set; then
4296   echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298   if test "$ac_cv_type_short" = yes; then
4299   # The cast to unsigned long works around a bug in the HP C Compiler
4300   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4301   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4302   # This bug is HP SR number 8606223364.
4303   if test "$cross_compiling" = yes; then
4304   # Depending upon the size, compute the lo and hi bounds.
4305 cat >conftest.$ac_ext <<_ACEOF
4306 #line $LINENO "configure"
4307 /* confdefs.h.  */
4308 _ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h.  */
4312 $ac_includes_default
4313 int
4314 main ()
4315 {
4316 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4317 test_array [0] = 0
4318
4319   ;
4320   return 0;
4321 }
4322 _ACEOF
4323 rm -f conftest.$ac_objext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325   (eval $ac_compile) 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); } &&
4329          { ac_try='test -s conftest.$ac_objext'
4330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331   (eval $ac_try) 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }; }; then
4335   ac_lo=0 ac_mid=0
4336   while :; do
4337     cat >conftest.$ac_ext <<_ACEOF
4338 #line $LINENO "configure"
4339 /* confdefs.h.  */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h.  */
4344 $ac_includes_default
4345 int
4346 main ()
4347 {
4348 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4349 test_array [0] = 0
4350
4351   ;
4352   return 0;
4353 }
4354 _ACEOF
4355 rm -f conftest.$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357   (eval $ac_compile) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); } &&
4361          { ac_try='test -s conftest.$ac_objext'
4362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363   (eval $ac_try) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; }; then
4367   ac_hi=$ac_mid; break
4368 else
4369   echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372 ac_lo=`expr $ac_mid + 1`
4373                     if test $ac_lo -le $ac_mid; then
4374                       ac_lo= ac_hi=
4375                       break
4376                     fi
4377                     ac_mid=`expr 2 '*' $ac_mid + 1`
4378 fi
4379 rm -f conftest.$ac_objext conftest.$ac_ext
4380   done
4381 else
4382   echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4384
4385 cat >conftest.$ac_ext <<_ACEOF
4386 #line $LINENO "configure"
4387 /* confdefs.h.  */
4388 _ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h.  */
4392 $ac_includes_default
4393 int
4394 main ()
4395 {
4396 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4397 test_array [0] = 0
4398
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403 rm -f conftest.$ac_objext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405   (eval $ac_compile) 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } &&
4409          { ac_try='test -s conftest.$ac_objext'
4410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411   (eval $ac_try) 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); }; }; then
4415   ac_hi=-1 ac_mid=-1
4416   while :; do
4417     cat >conftest.$ac_ext <<_ACEOF
4418 #line $LINENO "configure"
4419 /* confdefs.h.  */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h.  */
4424 $ac_includes_default
4425 int
4426 main ()
4427 {
4428 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4429 test_array [0] = 0
4430
4431   ;
4432   return 0;
4433 }
4434 _ACEOF
4435 rm -f conftest.$ac_objext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4437   (eval $ac_compile) 2>&5
4438   ac_status=$?
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); } &&
4441          { ac_try='test -s conftest.$ac_objext'
4442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443   (eval $ac_try) 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); }; }; then
4447   ac_lo=$ac_mid; break
4448 else
4449   echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452 ac_hi=`expr '(' $ac_mid ')' - 1`
4453                        if test $ac_mid -le $ac_hi; then
4454                          ac_lo= ac_hi=
4455                          break
4456                        fi
4457                        ac_mid=`expr 2 '*' $ac_mid`
4458 fi
4459 rm -f conftest.$ac_objext conftest.$ac_ext
4460   done
4461 else
4462   echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4464
4465 ac_lo= ac_hi=
4466 fi
4467 rm -f conftest.$ac_objext conftest.$ac_ext
4468 fi
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4470 # Binary search between lo and hi bounds.
4471 while test "x$ac_lo" != "x$ac_hi"; do
4472   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4473   cat >conftest.$ac_ext <<_ACEOF
4474 #line $LINENO "configure"
4475 /* confdefs.h.  */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h.  */
4480 $ac_includes_default
4481 int
4482 main ()
4483 {
4484 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4485 test_array [0] = 0
4486
4487   ;
4488   return 0;
4489 }
4490 _ACEOF
4491 rm -f conftest.$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493   (eval $ac_compile) 2>&5
4494   ac_status=$?
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); } &&
4497          { ac_try='test -s conftest.$ac_objext'
4498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499   (eval $ac_try) 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }; }; then
4503   ac_hi=$ac_mid
4504 else
4505   echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 ac_lo=`expr '(' $ac_mid ')' + 1`
4509 fi
4510 rm -f conftest.$ac_objext conftest.$ac_ext
4511 done
4512 case $ac_lo in
4513 ?*) ac_cv_sizeof_short=$ac_lo;;
4514 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4515 See \`config.log' for more details." >&5
4516 echo "$as_me: error: cannot compute sizeof (short), 77
4517 See \`config.log' for more details." >&2;}
4518    { (exit 1); exit 1; }; } ;;
4519 esac
4520 else
4521   if test "$cross_compiling" = yes; then
4522   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4523 See \`config.log' for more details." >&5
4524 echo "$as_me: error: cannot run test program while cross compiling
4525 See \`config.log' for more details." >&2;}
4526    { (exit 1); exit 1; }; }
4527 else
4528   cat >conftest.$ac_ext <<_ACEOF
4529 #line $LINENO "configure"
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535 $ac_includes_default
4536 long longval () { return (long) (sizeof (short)); }
4537 unsigned long ulongval () { return (long) (sizeof (short)); }
4538 #include <stdio.h>
4539 #include <stdlib.h>
4540 int
4541 main ()
4542 {
4543
4544   FILE *f = fopen ("conftest.val", "w");
4545   if (! f)
4546     exit (1);
4547   if (((long) (sizeof (short))) < 0)
4548     {
4549       long i = longval ();
4550       if (i != ((long) (sizeof (short))))
4551         exit (1);
4552       fprintf (f, "%ld\n", i);
4553     }
4554   else
4555     {
4556       unsigned long i = ulongval ();
4557       if (i != ((long) (sizeof (short))))
4558         exit (1);
4559       fprintf (f, "%lu\n", i);
4560     }
4561   exit (ferror (f) || fclose (f) != 0);
4562
4563   ;
4564   return 0;
4565 }
4566 _ACEOF
4567 rm -f conftest$ac_exeext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4569   (eval $ac_link) 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574   (eval $ac_try) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); }; }; then
4578   ac_cv_sizeof_short=`cat conftest.val`
4579 else
4580   echo "$as_me: program exited with status $ac_status" >&5
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584 ( exit $ac_status )
4585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4586 See \`config.log' for more details." >&5
4587 echo "$as_me: error: cannot compute sizeof (short), 77
4588 See \`config.log' for more details." >&2;}
4589    { (exit 1); exit 1; }; }
4590 fi
4591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4592 fi
4593 fi
4594 rm -f conftest.val
4595 else
4596   ac_cv_sizeof_short=0
4597 fi
4598 fi
4599 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4600 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4601 cat >>confdefs.h <<_ACEOF
4602 #define SIZEOF_SHORT $ac_cv_sizeof_short
4603 _ACEOF
4604
4605
4606 echo "$as_me:$LINENO: checking for int" >&5
4607 echo $ECHO_N "checking for int... $ECHO_C" >&6
4608 if test "${ac_cv_type_int+set}" = set; then
4609   echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611   cat >conftest.$ac_ext <<_ACEOF
4612 #line $LINENO "configure"
4613 /* confdefs.h.  */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h.  */
4618 $ac_includes_default
4619 int
4620 main ()
4621 {
4622 if ((int *) 0)
4623   return 0;
4624 if (sizeof (int))
4625   return 0;
4626   ;
4627   return 0;
4628 }
4629 _ACEOF
4630 rm -f conftest.$ac_objext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632   (eval $ac_compile) 2>&5
4633   ac_status=$?
4634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); } &&
4636          { ac_try='test -s conftest.$ac_objext'
4637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638   (eval $ac_try) 2>&5
4639   ac_status=$?
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); }; }; then
4642   ac_cv_type_int=yes
4643 else
4644   echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4646
4647 ac_cv_type_int=no
4648 fi
4649 rm -f conftest.$ac_objext conftest.$ac_ext
4650 fi
4651 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4652 echo "${ECHO_T}$ac_cv_type_int" >&6
4653
4654 echo "$as_me:$LINENO: checking size of int" >&5
4655 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4656 if test "${ac_cv_sizeof_int+set}" = set; then
4657   echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659   if test "$ac_cv_type_int" = yes; then
4660   # The cast to unsigned long works around a bug in the HP C Compiler
4661   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4662   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4663   # This bug is HP SR number 8606223364.
4664   if test "$cross_compiling" = yes; then
4665   # Depending upon the size, compute the lo and hi bounds.
4666 cat >conftest.$ac_ext <<_ACEOF
4667 #line $LINENO "configure"
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673 $ac_includes_default
4674 int
4675 main ()
4676 {
4677 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4678 test_array [0] = 0
4679
4680   ;
4681   return 0;
4682 }
4683 _ACEOF
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686   (eval $ac_compile) 2>&5
4687   ac_status=$?
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); } &&
4690          { ac_try='test -s conftest.$ac_objext'
4691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692   (eval $ac_try) 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); }; }; then
4696   ac_lo=0 ac_mid=0
4697   while :; do
4698     cat >conftest.$ac_ext <<_ACEOF
4699 #line $LINENO "configure"
4700 /* confdefs.h.  */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h.  */
4705 $ac_includes_default
4706 int
4707 main ()
4708 {
4709 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4710 test_array [0] = 0
4711
4712   ;
4713   return 0;
4714 }
4715 _ACEOF
4716 rm -f conftest.$ac_objext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718   (eval $ac_compile) 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); } &&
4722          { ac_try='test -s conftest.$ac_objext'
4723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724   (eval $ac_try) 2>&5
4725   ac_status=$?
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); }; }; then
4728   ac_hi=$ac_mid; break
4729 else
4730   echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733 ac_lo=`expr $ac_mid + 1`
4734                     if test $ac_lo -le $ac_mid; then
4735                       ac_lo= ac_hi=
4736                       break
4737                     fi
4738                     ac_mid=`expr 2 '*' $ac_mid + 1`
4739 fi
4740 rm -f conftest.$ac_objext conftest.$ac_ext
4741   done
4742 else
4743   echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4745
4746 cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4748 /* confdefs.h.  */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h.  */
4753 $ac_includes_default
4754 int
4755 main ()
4756 {
4757 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4758 test_array [0] = 0
4759
4760   ;
4761   return 0;
4762 }
4763 _ACEOF
4764 rm -f conftest.$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766   (eval $ac_compile) 2>&5
4767   ac_status=$?
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); } &&
4770          { ac_try='test -s conftest.$ac_objext'
4771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772   (eval $ac_try) 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); }; }; then
4776   ac_hi=-1 ac_mid=-1
4777   while :; do
4778     cat >conftest.$ac_ext <<_ACEOF
4779 #line $LINENO "configure"
4780 /* confdefs.h.  */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h.  */
4785 $ac_includes_default
4786 int
4787 main ()
4788 {
4789 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4790 test_array [0] = 0
4791
4792   ;
4793   return 0;
4794 }
4795 _ACEOF
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798   (eval $ac_compile) 2>&5
4799   ac_status=$?
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); } &&
4802          { ac_try='test -s conftest.$ac_objext'
4803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804   (eval $ac_try) 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); }; }; then
4808   ac_lo=$ac_mid; break
4809 else
4810   echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4812
4813 ac_hi=`expr '(' $ac_mid ')' - 1`
4814                        if test $ac_mid -le $ac_hi; then
4815                          ac_lo= ac_hi=
4816                          break
4817                        fi
4818                        ac_mid=`expr 2 '*' $ac_mid`
4819 fi
4820 rm -f conftest.$ac_objext conftest.$ac_ext
4821   done
4822 else
4823   echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4825
4826 ac_lo= ac_hi=
4827 fi
4828 rm -f conftest.$ac_objext conftest.$ac_ext
4829 fi
4830 rm -f conftest.$ac_objext conftest.$ac_ext
4831 # Binary search between lo and hi bounds.
4832 while test "x$ac_lo" != "x$ac_hi"; do
4833   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4834   cat >conftest.$ac_ext <<_ACEOF
4835 #line $LINENO "configure"
4836 /* confdefs.h.  */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h.  */
4841 $ac_includes_default
4842 int
4843 main ()
4844 {
4845 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4846 test_array [0] = 0
4847
4848   ;
4849   return 0;
4850 }
4851 _ACEOF
4852 rm -f conftest.$ac_objext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854   (eval $ac_compile) 2>&5
4855   ac_status=$?
4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857   (exit $ac_status); } &&
4858          { ac_try='test -s conftest.$ac_objext'
4859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860   (eval $ac_try) 2>&5
4861   ac_status=$?
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); }; }; then
4864   ac_hi=$ac_mid
4865 else
4866   echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868
4869 ac_lo=`expr '(' $ac_mid ')' + 1`
4870 fi
4871 rm -f conftest.$ac_objext conftest.$ac_ext
4872 done
4873 case $ac_lo in
4874 ?*) ac_cv_sizeof_int=$ac_lo;;
4875 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4876 See \`config.log' for more details." >&5
4877 echo "$as_me: error: cannot compute sizeof (int), 77
4878 See \`config.log' for more details." >&2;}
4879    { (exit 1); exit 1; }; } ;;
4880 esac
4881 else
4882   if test "$cross_compiling" = yes; then
4883   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4884 See \`config.log' for more details." >&5
4885 echo "$as_me: error: cannot run test program while cross compiling
4886 See \`config.log' for more details." >&2;}
4887    { (exit 1); exit 1; }; }
4888 else
4889   cat >conftest.$ac_ext <<_ACEOF
4890 #line $LINENO "configure"
4891 /* confdefs.h.  */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h.  */
4896 $ac_includes_default
4897 long longval () { return (long) (sizeof (int)); }
4898 unsigned long ulongval () { return (long) (sizeof (int)); }
4899 #include <stdio.h>
4900 #include <stdlib.h>
4901 int
4902 main ()
4903 {
4904
4905   FILE *f = fopen ("conftest.val", "w");
4906   if (! f)
4907     exit (1);
4908   if (((long) (sizeof (int))) < 0)
4909     {
4910       long i = longval ();
4911       if (i != ((long) (sizeof (int))))
4912         exit (1);
4913       fprintf (f, "%ld\n", i);
4914     }
4915   else
4916     {
4917       unsigned long i = ulongval ();
4918       if (i != ((long) (sizeof (int))))
4919         exit (1);
4920       fprintf (f, "%lu\n", i);
4921     }
4922   exit (ferror (f) || fclose (f) != 0);
4923
4924   ;
4925   return 0;
4926 }
4927 _ACEOF
4928 rm -f conftest$ac_exeext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4930   (eval $ac_link) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935   (eval $ac_try) 2>&5
4936   ac_status=$?
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); }; }; then
4939   ac_cv_sizeof_int=`cat conftest.val`
4940 else
4941   echo "$as_me: program exited with status $ac_status" >&5
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 ( exit $ac_status )
4946 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4947 See \`config.log' for more details." >&5
4948 echo "$as_me: error: cannot compute sizeof (int), 77
4949 See \`config.log' for more details." >&2;}
4950    { (exit 1); exit 1; }; }
4951 fi
4952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4953 fi
4954 fi
4955 rm -f conftest.val
4956 else
4957   ac_cv_sizeof_int=0
4958 fi
4959 fi
4960 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4961 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4962 cat >>confdefs.h <<_ACEOF
4963 #define SIZEOF_INT $ac_cv_sizeof_int
4964 _ACEOF
4965
4966
4967 echo "$as_me:$LINENO: checking for long" >&5
4968 echo $ECHO_N "checking for long... $ECHO_C" >&6
4969 if test "${ac_cv_type_long+set}" = set; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972   cat >conftest.$ac_ext <<_ACEOF
4973 #line $LINENO "configure"
4974 /* confdefs.h.  */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h.  */
4979 $ac_includes_default
4980 int
4981 main ()
4982 {
4983 if ((long *) 0)
4984   return 0;
4985 if (sizeof (long))
4986   return 0;
4987   ;
4988   return 0;
4989 }
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993   (eval $ac_compile) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } &&
4997          { ac_try='test -s conftest.$ac_objext'
4998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999   (eval $ac_try) 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); }; }; then
5003   ac_cv_type_long=yes
5004 else
5005   echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5007
5008 ac_cv_type_long=no
5009 fi
5010 rm -f conftest.$ac_objext conftest.$ac_ext
5011 fi
5012 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5013 echo "${ECHO_T}$ac_cv_type_long" >&6
5014
5015 echo "$as_me:$LINENO: checking size of long" >&5
5016 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5017 if test "${ac_cv_sizeof_long+set}" = set; then
5018   echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020   if test "$ac_cv_type_long" = yes; then
5021   # The cast to unsigned long works around a bug in the HP C Compiler
5022   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5023   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5024   # This bug is HP SR number 8606223364.
5025   if test "$cross_compiling" = yes; then
5026   # Depending upon the size, compute the lo and hi bounds.
5027 cat >conftest.$ac_ext <<_ACEOF
5028 #line $LINENO "configure"
5029 /* confdefs.h.  */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h.  */
5034 $ac_includes_default
5035 int
5036 main ()
5037 {
5038 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5039 test_array [0] = 0
5040
5041   ;
5042   return 0;
5043 }
5044 _ACEOF
5045 rm -f conftest.$ac_objext
5046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5047   (eval $ac_compile) 2>&5
5048   ac_status=$?
5049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050   (exit $ac_status); } &&
5051          { ac_try='test -s conftest.$ac_objext'
5052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053   (eval $ac_try) 2>&5
5054   ac_status=$?
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); }; }; then
5057   ac_lo=0 ac_mid=0
5058   while :; do
5059     cat >conftest.$ac_ext <<_ACEOF
5060 #line $LINENO "configure"
5061 /* confdefs.h.  */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h.  */
5066 $ac_includes_default
5067 int
5068 main ()
5069 {
5070 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5071 test_array [0] = 0
5072
5073   ;
5074   return 0;
5075 }
5076 _ACEOF
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079   (eval $ac_compile) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); } &&
5083          { ac_try='test -s conftest.$ac_objext'
5084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085   (eval $ac_try) 2>&5
5086   ac_status=$?
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); }; }; then
5089   ac_hi=$ac_mid; break
5090 else
5091   echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5093
5094 ac_lo=`expr $ac_mid + 1`
5095                     if test $ac_lo -le $ac_mid; then
5096                       ac_lo= ac_hi=
5097                       break
5098                     fi
5099                     ac_mid=`expr 2 '*' $ac_mid + 1`
5100 fi
5101 rm -f conftest.$ac_objext conftest.$ac_ext
5102   done
5103 else
5104   echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5106
5107 cat >conftest.$ac_ext <<_ACEOF
5108 #line $LINENO "configure"
5109 /* confdefs.h.  */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h.  */
5114 $ac_includes_default
5115 int
5116 main ()
5117 {
5118 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5119 test_array [0] = 0
5120
5121   ;
5122   return 0;
5123 }
5124 _ACEOF
5125 rm -f conftest.$ac_objext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5127   (eval $ac_compile) 2>&5
5128   ac_status=$?
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); } &&
5131          { ac_try='test -s conftest.$ac_objext'
5132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133   (eval $ac_try) 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); }; }; then
5137   ac_hi=-1 ac_mid=-1
5138   while :; do
5139     cat >conftest.$ac_ext <<_ACEOF
5140 #line $LINENO "configure"
5141 /* confdefs.h.  */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h.  */
5146 $ac_includes_default
5147 int
5148 main ()
5149 {
5150 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5151 test_array [0] = 0
5152
5153   ;
5154   return 0;
5155 }
5156 _ACEOF
5157 rm -f conftest.$ac_objext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5159   (eval $ac_compile) 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); } &&
5163          { ac_try='test -s conftest.$ac_objext'
5164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165   (eval $ac_try) 2>&5
5166   ac_status=$?
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); }; }; then
5169   ac_lo=$ac_mid; break
5170 else
5171   echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174 ac_hi=`expr '(' $ac_mid ')' - 1`
5175                        if test $ac_mid -le $ac_hi; then
5176                          ac_lo= ac_hi=
5177                          break
5178                        fi
5179                        ac_mid=`expr 2 '*' $ac_mid`
5180 fi
5181 rm -f conftest.$ac_objext conftest.$ac_ext
5182   done
5183 else
5184   echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5186
5187 ac_lo= ac_hi=
5188 fi
5189 rm -f conftest.$ac_objext conftest.$ac_ext
5190 fi
5191 rm -f conftest.$ac_objext conftest.$ac_ext
5192 # Binary search between lo and hi bounds.
5193 while test "x$ac_lo" != "x$ac_hi"; do
5194   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5195   cat >conftest.$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5197 /* confdefs.h.  */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h.  */
5202 $ac_includes_default
5203 int
5204 main ()
5205 {
5206 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5207 test_array [0] = 0
5208
5209   ;
5210   return 0;
5211 }
5212 _ACEOF
5213 rm -f conftest.$ac_objext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215   (eval $ac_compile) 2>&5
5216   ac_status=$?
5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218   (exit $ac_status); } &&
5219          { ac_try='test -s conftest.$ac_objext'
5220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221   (eval $ac_try) 2>&5
5222   ac_status=$?
5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224   (exit $ac_status); }; }; then
5225   ac_hi=$ac_mid
5226 else
5227   echo "$as_me: failed program was:" >&5
5228 sed 's/^/| /' conftest.$ac_ext >&5
5229
5230 ac_lo=`expr '(' $ac_mid ')' + 1`
5231 fi
5232 rm -f conftest.$ac_objext conftest.$ac_ext
5233 done
5234 case $ac_lo in
5235 ?*) ac_cv_sizeof_long=$ac_lo;;
5236 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5237 See \`config.log' for more details." >&5
5238 echo "$as_me: error: cannot compute sizeof (long), 77
5239 See \`config.log' for more details." >&2;}
5240    { (exit 1); exit 1; }; } ;;
5241 esac
5242 else
5243   if test "$cross_compiling" = yes; then
5244   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5245 See \`config.log' for more details." >&5
5246 echo "$as_me: error: cannot run test program while cross compiling
5247 See \`config.log' for more details." >&2;}
5248    { (exit 1); exit 1; }; }
5249 else
5250   cat >conftest.$ac_ext <<_ACEOF
5251 #line $LINENO "configure"
5252 /* confdefs.h.  */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h.  */
5257 $ac_includes_default
5258 long longval () { return (long) (sizeof (long)); }
5259 unsigned long ulongval () { return (long) (sizeof (long)); }
5260 #include <stdio.h>
5261 #include <stdlib.h>
5262 int
5263 main ()
5264 {
5265
5266   FILE *f = fopen ("conftest.val", "w");
5267   if (! f)
5268     exit (1);
5269   if (((long) (sizeof (long))) < 0)
5270     {
5271       long i = longval ();
5272       if (i != ((long) (sizeof (long))))
5273         exit (1);
5274       fprintf (f, "%ld\n", i);
5275     }
5276   else
5277     {
5278       unsigned long i = ulongval ();
5279       if (i != ((long) (sizeof (long))))
5280         exit (1);
5281       fprintf (f, "%lu\n", i);
5282     }
5283   exit (ferror (f) || fclose (f) != 0);
5284
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 rm -f conftest$ac_exeext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291   (eval $ac_link) 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296   (eval $ac_try) 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); }; }; then
5300   ac_cv_sizeof_long=`cat conftest.val`
5301 else
5302   echo "$as_me: program exited with status $ac_status" >&5
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306 ( exit $ac_status )
5307 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5308 See \`config.log' for more details." >&5
5309 echo "$as_me: error: cannot compute sizeof (long), 77
5310 See \`config.log' for more details." >&2;}
5311    { (exit 1); exit 1; }; }
5312 fi
5313 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5314 fi
5315 fi
5316 rm -f conftest.val
5317 else
5318   ac_cv_sizeof_long=0
5319 fi
5320 fi
5321 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5322 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5323 cat >>confdefs.h <<_ACEOF
5324 #define SIZEOF_LONG $ac_cv_sizeof_long
5325 _ACEOF
5326
5327
5328 echo "$as_me:$LINENO: checking for float" >&5
5329 echo $ECHO_N "checking for float... $ECHO_C" >&6
5330 if test "${ac_cv_type_float+set}" = set; then
5331   echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333   cat >conftest.$ac_ext <<_ACEOF
5334 #line $LINENO "configure"
5335 /* confdefs.h.  */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h.  */
5340 $ac_includes_default
5341 int
5342 main ()
5343 {
5344 if ((float *) 0)
5345   return 0;
5346 if (sizeof (float))
5347   return 0;
5348   ;
5349   return 0;
5350 }
5351 _ACEOF
5352 rm -f conftest.$ac_objext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5354   (eval $ac_compile) 2>&5
5355   ac_status=$?
5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); } &&
5358          { ac_try='test -s conftest.$ac_objext'
5359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360   (eval $ac_try) 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); }; }; then
5364   ac_cv_type_float=yes
5365 else
5366   echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5368
5369 ac_cv_type_float=no
5370 fi
5371 rm -f conftest.$ac_objext conftest.$ac_ext
5372 fi
5373 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5374 echo "${ECHO_T}$ac_cv_type_float" >&6
5375
5376 echo "$as_me:$LINENO: checking size of float" >&5
5377 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5378 if test "${ac_cv_sizeof_float+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   if test "$ac_cv_type_float" = yes; then
5382   # The cast to unsigned long works around a bug in the HP C Compiler
5383   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5384   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5385   # This bug is HP SR number 8606223364.
5386   if test "$cross_compiling" = yes; then
5387   # Depending upon the size, compute the lo and hi bounds.
5388 cat >conftest.$ac_ext <<_ACEOF
5389 #line $LINENO "configure"
5390 /* confdefs.h.  */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h.  */
5395 $ac_includes_default
5396 int
5397 main ()
5398 {
5399 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5400 test_array [0] = 0
5401
5402   ;
5403   return 0;
5404 }
5405 _ACEOF
5406 rm -f conftest.$ac_objext
5407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5408   (eval $ac_compile) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); } &&
5412          { ac_try='test -s conftest.$ac_objext'
5413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414   (eval $ac_try) 2>&5
5415   ac_status=$?
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); }; }; then
5418   ac_lo=0 ac_mid=0
5419   while :; do
5420     cat >conftest.$ac_ext <<_ACEOF
5421 #line $LINENO "configure"
5422 /* confdefs.h.  */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h.  */
5427 $ac_includes_default
5428 int
5429 main ()
5430 {
5431 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5432 test_array [0] = 0
5433
5434   ;
5435   return 0;
5436 }
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440   (eval $ac_compile) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); } &&
5444          { ac_try='test -s conftest.$ac_objext'
5445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446   (eval $ac_try) 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); }; }; then
5450   ac_hi=$ac_mid; break
5451 else
5452   echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455 ac_lo=`expr $ac_mid + 1`
5456                     if test $ac_lo -le $ac_mid; then
5457                       ac_lo= ac_hi=
5458                       break
5459                     fi
5460                     ac_mid=`expr 2 '*' $ac_mid + 1`
5461 fi
5462 rm -f conftest.$ac_objext conftest.$ac_ext
5463   done
5464 else
5465   echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 cat >conftest.$ac_ext <<_ACEOF
5469 #line $LINENO "configure"
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475 $ac_includes_default
5476 int
5477 main ()
5478 {
5479 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5480 test_array [0] = 0
5481
5482   ;
5483   return 0;
5484 }
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488   (eval $ac_compile) 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } &&
5492          { ac_try='test -s conftest.$ac_objext'
5493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494   (eval $ac_try) 2>&5
5495   ac_status=$?
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); }; }; then
5498   ac_hi=-1 ac_mid=-1
5499   while :; do
5500     cat >conftest.$ac_ext <<_ACEOF
5501 #line $LINENO "configure"
5502 /* confdefs.h.  */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h.  */
5507 $ac_includes_default
5508 int
5509 main ()
5510 {
5511 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5512 test_array [0] = 0
5513
5514   ;
5515   return 0;
5516 }
5517 _ACEOF
5518 rm -f conftest.$ac_objext
5519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5520   (eval $ac_compile) 2>&5
5521   ac_status=$?
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } &&
5524          { ac_try='test -s conftest.$ac_objext'
5525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526   (eval $ac_try) 2>&5
5527   ac_status=$?
5528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529   (exit $ac_status); }; }; then
5530   ac_lo=$ac_mid; break
5531 else
5532   echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535 ac_hi=`expr '(' $ac_mid ')' - 1`
5536                        if test $ac_mid -le $ac_hi; then
5537                          ac_lo= ac_hi=
5538                          break
5539                        fi
5540                        ac_mid=`expr 2 '*' $ac_mid`
5541 fi
5542 rm -f conftest.$ac_objext conftest.$ac_ext
5543   done
5544 else
5545   echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5547
5548 ac_lo= ac_hi=
5549 fi
5550 rm -f conftest.$ac_objext conftest.$ac_ext
5551 fi
5552 rm -f conftest.$ac_objext conftest.$ac_ext
5553 # Binary search between lo and hi bounds.
5554 while test "x$ac_lo" != "x$ac_hi"; do
5555   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5556   cat >conftest.$ac_ext <<_ACEOF
5557 #line $LINENO "configure"
5558 /* confdefs.h.  */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h.  */
5563 $ac_includes_default
5564 int
5565 main ()
5566 {
5567 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5568 test_array [0] = 0
5569
5570   ;
5571   return 0;
5572 }
5573 _ACEOF
5574 rm -f conftest.$ac_objext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576   (eval $ac_compile) 2>&5
5577   ac_status=$?
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); } &&
5580          { ac_try='test -s conftest.$ac_objext'
5581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582   (eval $ac_try) 2>&5
5583   ac_status=$?
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); }; }; then
5586   ac_hi=$ac_mid
5587 else
5588   echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5590
5591 ac_lo=`expr '(' $ac_mid ')' + 1`
5592 fi
5593 rm -f conftest.$ac_objext conftest.$ac_ext
5594 done
5595 case $ac_lo in
5596 ?*) ac_cv_sizeof_float=$ac_lo;;
5597 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5598 See \`config.log' for more details." >&5
5599 echo "$as_me: error: cannot compute sizeof (float), 77
5600 See \`config.log' for more details." >&2;}
5601    { (exit 1); exit 1; }; } ;;
5602 esac
5603 else
5604   if test "$cross_compiling" = yes; then
5605   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5606 See \`config.log' for more details." >&5
5607 echo "$as_me: error: cannot run test program while cross compiling
5608 See \`config.log' for more details." >&2;}
5609    { (exit 1); exit 1; }; }
5610 else
5611   cat >conftest.$ac_ext <<_ACEOF
5612 #line $LINENO "configure"
5613 /* confdefs.h.  */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h.  */
5618 $ac_includes_default
5619 long longval () { return (long) (sizeof (float)); }
5620 unsigned long ulongval () { return (long) (sizeof (float)); }
5621 #include <stdio.h>
5622 #include <stdlib.h>
5623 int
5624 main ()
5625 {
5626
5627   FILE *f = fopen ("conftest.val", "w");
5628   if (! f)
5629     exit (1);
5630   if (((long) (sizeof (float))) < 0)
5631     {
5632       long i = longval ();
5633       if (i != ((long) (sizeof (float))))
5634         exit (1);
5635       fprintf (f, "%ld\n", i);
5636     }
5637   else
5638     {
5639       unsigned long i = ulongval ();
5640       if (i != ((long) (sizeof (float))))
5641         exit (1);
5642       fprintf (f, "%lu\n", i);
5643     }
5644   exit (ferror (f) || fclose (f) != 0);
5645
5646   ;
5647   return 0;
5648 }
5649 _ACEOF
5650 rm -f conftest$ac_exeext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5652   (eval $ac_link) 2>&5
5653   ac_status=$?
5654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657   (eval $ac_try) 2>&5
5658   ac_status=$?
5659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660   (exit $ac_status); }; }; then
5661   ac_cv_sizeof_float=`cat conftest.val`
5662 else
5663   echo "$as_me: program exited with status $ac_status" >&5
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5666
5667 ( exit $ac_status )
5668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5669 See \`config.log' for more details." >&5
5670 echo "$as_me: error: cannot compute sizeof (float), 77
5671 See \`config.log' for more details." >&2;}
5672    { (exit 1); exit 1; }; }
5673 fi
5674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5675 fi
5676 fi
5677 rm -f conftest.val
5678 else
5679   ac_cv_sizeof_float=0
5680 fi
5681 fi
5682 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5683 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5684 cat >>confdefs.h <<_ACEOF
5685 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5686 _ACEOF
5687
5688
5689 echo "$as_me:$LINENO: checking for double" >&5
5690 echo $ECHO_N "checking for double... $ECHO_C" >&6
5691 if test "${ac_cv_type_double+set}" = set; then
5692   echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694   cat >conftest.$ac_ext <<_ACEOF
5695 #line $LINENO "configure"
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701 $ac_includes_default
5702 int
5703 main ()
5704 {
5705 if ((double *) 0)
5706   return 0;
5707 if (sizeof (double))
5708   return 0;
5709   ;
5710   return 0;
5711 }
5712 _ACEOF
5713 rm -f conftest.$ac_objext
5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715   (eval $ac_compile) 2>&5
5716   ac_status=$?
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); } &&
5719          { ac_try='test -s conftest.$ac_objext'
5720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721   (eval $ac_try) 2>&5
5722   ac_status=$?
5723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724   (exit $ac_status); }; }; then
5725   ac_cv_type_double=yes
5726 else
5727   echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5729
5730 ac_cv_type_double=no
5731 fi
5732 rm -f conftest.$ac_objext conftest.$ac_ext
5733 fi
5734 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5735 echo "${ECHO_T}$ac_cv_type_double" >&6
5736
5737 echo "$as_me:$LINENO: checking size of double" >&5
5738 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5739 if test "${ac_cv_sizeof_double+set}" = set; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742   if test "$ac_cv_type_double" = yes; then
5743   # The cast to unsigned long works around a bug in the HP C Compiler
5744   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5745   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5746   # This bug is HP SR number 8606223364.
5747   if test "$cross_compiling" = yes; then
5748   # Depending upon the size, compute the lo and hi bounds.
5749 cat >conftest.$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5751 /* confdefs.h.  */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h.  */
5756 $ac_includes_default
5757 int
5758 main ()
5759 {
5760 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5761 test_array [0] = 0
5762
5763   ;
5764   return 0;
5765 }
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769   (eval $ac_compile) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } &&
5773          { ac_try='test -s conftest.$ac_objext'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; }; then
5779   ac_lo=0 ac_mid=0
5780   while :; do
5781     cat >conftest.$ac_ext <<_ACEOF
5782 #line $LINENO "configure"
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788 $ac_includes_default
5789 int
5790 main ()
5791 {
5792 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5793 test_array [0] = 0
5794
5795   ;
5796   return 0;
5797 }
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801   (eval $ac_compile) 2>&5
5802   ac_status=$?
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); } &&
5805          { ac_try='test -s conftest.$ac_objext'
5806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807   (eval $ac_try) 2>&5
5808   ac_status=$?
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); }; }; then
5811   ac_hi=$ac_mid; break
5812 else
5813   echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816 ac_lo=`expr $ac_mid + 1`
5817                     if test $ac_lo -le $ac_mid; then
5818                       ac_lo= ac_hi=
5819                       break
5820                     fi
5821                     ac_mid=`expr 2 '*' $ac_mid + 1`
5822 fi
5823 rm -f conftest.$ac_objext conftest.$ac_ext
5824   done
5825 else
5826   echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 cat >conftest.$ac_ext <<_ACEOF
5830 #line $LINENO "configure"
5831 /* confdefs.h.  */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h.  */
5836 $ac_includes_default
5837 int
5838 main ()
5839 {
5840 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5841 test_array [0] = 0
5842
5843   ;
5844   return 0;
5845 }
5846 _ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5849   (eval $ac_compile) 2>&5
5850   ac_status=$?
5851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852   (exit $ac_status); } &&
5853          { ac_try='test -s conftest.$ac_objext'
5854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855   (eval $ac_try) 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); }; }; then
5859   ac_hi=-1 ac_mid=-1
5860   while :; do
5861     cat >conftest.$ac_ext <<_ACEOF
5862 #line $LINENO "configure"
5863 /* confdefs.h.  */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h.  */
5868 $ac_includes_default
5869 int
5870 main ()
5871 {
5872 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5873 test_array [0] = 0
5874
5875   ;
5876   return 0;
5877 }
5878 _ACEOF
5879 rm -f conftest.$ac_objext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881   (eval $ac_compile) 2>&5
5882   ac_status=$?
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); } &&
5885          { ac_try='test -s conftest.$ac_objext'
5886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887   (eval $ac_try) 2>&5
5888   ac_status=$?
5889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890   (exit $ac_status); }; }; then
5891   ac_lo=$ac_mid; break
5892 else
5893   echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5895
5896 ac_hi=`expr '(' $ac_mid ')' - 1`
5897                        if test $ac_mid -le $ac_hi; then
5898                          ac_lo= ac_hi=
5899                          break
5900                        fi
5901                        ac_mid=`expr 2 '*' $ac_mid`
5902 fi
5903 rm -f conftest.$ac_objext conftest.$ac_ext
5904   done
5905 else
5906   echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5908
5909 ac_lo= ac_hi=
5910 fi
5911 rm -f conftest.$ac_objext conftest.$ac_ext
5912 fi
5913 rm -f conftest.$ac_objext conftest.$ac_ext
5914 # Binary search between lo and hi bounds.
5915 while test "x$ac_lo" != "x$ac_hi"; do
5916   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5917   cat >conftest.$ac_ext <<_ACEOF
5918 #line $LINENO "configure"
5919 /* confdefs.h.  */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h.  */
5924 $ac_includes_default
5925 int
5926 main ()
5927 {
5928 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5929 test_array [0] = 0
5930
5931   ;
5932   return 0;
5933 }
5934 _ACEOF
5935 rm -f conftest.$ac_objext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937   (eval $ac_compile) 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); } &&
5941          { ac_try='test -s conftest.$ac_objext'
5942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943   (eval $ac_try) 2>&5
5944   ac_status=$?
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); }; }; then
5947   ac_hi=$ac_mid
5948 else
5949   echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5951
5952 ac_lo=`expr '(' $ac_mid ')' + 1`
5953 fi
5954 rm -f conftest.$ac_objext conftest.$ac_ext
5955 done
5956 case $ac_lo in
5957 ?*) ac_cv_sizeof_double=$ac_lo;;
5958 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5959 See \`config.log' for more details." >&5
5960 echo "$as_me: error: cannot compute sizeof (double), 77
5961 See \`config.log' for more details." >&2;}
5962    { (exit 1); exit 1; }; } ;;
5963 esac
5964 else
5965   if test "$cross_compiling" = yes; then
5966   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5967 See \`config.log' for more details." >&5
5968 echo "$as_me: error: cannot run test program while cross compiling
5969 See \`config.log' for more details." >&2;}
5970    { (exit 1); exit 1; }; }
5971 else
5972   cat >conftest.$ac_ext <<_ACEOF
5973 #line $LINENO "configure"
5974 /* confdefs.h.  */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h.  */
5979 $ac_includes_default
5980 long longval () { return (long) (sizeof (double)); }
5981 unsigned long ulongval () { return (long) (sizeof (double)); }
5982 #include <stdio.h>
5983 #include <stdlib.h>
5984 int
5985 main ()
5986 {
5987
5988   FILE *f = fopen ("conftest.val", "w");
5989   if (! f)
5990     exit (1);
5991   if (((long) (sizeof (double))) < 0)
5992     {
5993       long i = longval ();
5994       if (i != ((long) (sizeof (double))))
5995         exit (1);
5996       fprintf (f, "%ld\n", i);
5997     }
5998   else
5999     {
6000       unsigned long i = ulongval ();
6001       if (i != ((long) (sizeof (double))))
6002         exit (1);
6003       fprintf (f, "%lu\n", i);
6004     }
6005   exit (ferror (f) || fclose (f) != 0);
6006
6007   ;
6008   return 0;
6009 }
6010 _ACEOF
6011 rm -f conftest$ac_exeext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013   (eval $ac_link) 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; }; then
6022   ac_cv_sizeof_double=`cat conftest.val`
6023 else
6024   echo "$as_me: program exited with status $ac_status" >&5
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028 ( exit $ac_status )
6029 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6030 See \`config.log' for more details." >&5
6031 echo "$as_me: error: cannot compute sizeof (double), 77
6032 See \`config.log' for more details." >&2;}
6033    { (exit 1); exit 1; }; }
6034 fi
6035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6036 fi
6037 fi
6038 rm -f conftest.val
6039 else
6040   ac_cv_sizeof_double=0
6041 fi
6042 fi
6043 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6044 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6045 cat >>confdefs.h <<_ACEOF
6046 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6047 _ACEOF
6048
6049
6050
6051
6052 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
6053 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
6054 if test "${ac_cv_lib_z_deflate+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   ac_check_lib_save_LIBS=$LIBS
6058 LIBS="-lz  $LIBS"
6059 cat >conftest.$ac_ext <<_ACEOF
6060 #line $LINENO "configure"
6061 /* confdefs.h.  */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h.  */
6066
6067 /* Override any gcc2 internal prototype to avoid an error.  */
6068 #ifdef __cplusplus
6069 extern "C"
6070 #endif
6071 /* We use char because int might match the return type of a gcc2
6072    builtin and then its argument prototype would still apply.  */
6073 char deflate ();
6074 int
6075 main ()
6076 {
6077 deflate ();
6078   ;
6079   return 0;
6080 }
6081 _ACEOF
6082 rm -f conftest.$ac_objext conftest$ac_exeext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6084   (eval $ac_link) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); } &&
6088          { ac_try='test -s conftest$ac_exeext'
6089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090   (eval $ac_try) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); }; }; then
6094   ac_cv_lib_z_deflate=yes
6095 else
6096   echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6098
6099 ac_cv_lib_z_deflate=no
6100 fi
6101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6102 LIBS=$ac_check_lib_save_LIBS
6103 fi
6104 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
6105 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
6106 if test $ac_cv_lib_z_deflate = yes; then
6107    zlib="true"
6108 else
6109    zlib="false" ;  { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
6110 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
6111 fi
6112
6113
6114 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6115 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6116 if test "${ac_cv_lib_m_sin+set}" = set; then
6117   echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119   ac_check_lib_save_LIBS=$LIBS
6120 LIBS="-lm  $LIBS"
6121 cat >conftest.$ac_ext <<_ACEOF
6122 #line $LINENO "configure"
6123 /* confdefs.h.  */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h.  */
6128
6129 /* Override any gcc2 internal prototype to avoid an error.  */
6130 #ifdef __cplusplus
6131 extern "C"
6132 #endif
6133 /* We use char because int might match the return type of a gcc2
6134    builtin and then its argument prototype would still apply.  */
6135 char sin ();
6136 int
6137 main ()
6138 {
6139 sin ();
6140   ;
6141   return 0;
6142 }
6143 _ACEOF
6144 rm -f conftest.$ac_objext conftest$ac_exeext
6145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6146   (eval $ac_link) 2>&5
6147   ac_status=$?
6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149   (exit $ac_status); } &&
6150          { ac_try='test -s conftest$ac_exeext'
6151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152   (eval $ac_try) 2>&5
6153   ac_status=$?
6154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); }; }; then
6156   ac_cv_lib_m_sin=yes
6157 else
6158   echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6160
6161 ac_cv_lib_m_sin=no
6162 fi
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 LIBS=$ac_check_lib_save_LIBS
6165 fi
6166 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6167 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6168 if test $ac_cv_lib_m_sin = yes; then
6169   cat >>confdefs.h <<_ACEOF
6170 #define HAVE_LIBM 1
6171 _ACEOF
6172
6173   LIBS="-lm $LIBS"
6174
6175 fi
6176
6177 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
6178 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
6179 if test "${ac_cv_lib_curses_main+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   ac_check_lib_save_LIBS=$LIBS
6183 LIBS="-lcurses  $LIBS"
6184 cat >conftest.$ac_ext <<_ACEOF
6185 #line $LINENO "configure"
6186 /* confdefs.h.  */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h.  */
6191
6192
6193 int
6194 main ()
6195 {
6196 main ();
6197   ;
6198   return 0;
6199 }
6200 _ACEOF
6201 rm -f conftest.$ac_objext conftest$ac_exeext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6203   (eval $ac_link) 2>&5
6204   ac_status=$?
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); } &&
6207          { ac_try='test -s conftest$ac_exeext'
6208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209   (eval $ac_try) 2>&5
6210   ac_status=$?
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); }; }; then
6213   ac_cv_lib_curses_main=yes
6214 else
6215   echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6217
6218 ac_cv_lib_curses_main=no
6219 fi
6220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6221 LIBS=$ac_check_lib_save_LIBS
6222 fi
6223 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
6224 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
6225 if test $ac_cv_lib_curses_main = yes; then
6226   curses=true
6227 else
6228   curses=false
6229 fi
6230
6231 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6232 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
6233 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   ac_check_lib_save_LIBS=$LIBS
6237 LIBS="-lncurses  $LIBS"
6238 cat >conftest.$ac_ext <<_ACEOF
6239 #line $LINENO "configure"
6240 /* confdefs.h.  */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h.  */
6245
6246
6247 int
6248 main ()
6249 {
6250 main ();
6251   ;
6252   return 0;
6253 }
6254 _ACEOF
6255 rm -f conftest.$ac_objext conftest$ac_exeext
6256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6257   (eval $ac_link) 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); } &&
6261          { ac_try='test -s conftest$ac_exeext'
6262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263   (eval $ac_try) 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); }; }; then
6267   ac_cv_lib_ncurses_main=yes
6268 else
6269   echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272 ac_cv_lib_ncurses_main=no
6273 fi
6274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6275 LIBS=$ac_check_lib_save_LIBS
6276 fi
6277 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6278 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
6279 if test $ac_cv_lib_ncurses_main = yes; then
6280   ncurses=true
6281 else
6282   ncurses=false
6283 fi
6284
6285 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
6286 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
6287 if test "${ac_cv_lib_readline_main+set}" = set; then
6288   echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290   ac_check_lib_save_LIBS=$LIBS
6291 LIBS="-lreadline -lcurses $LIBS"
6292 cat >conftest.$ac_ext <<_ACEOF
6293 #line $LINENO "configure"
6294 /* confdefs.h.  */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h.  */
6299
6300
6301 int
6302 main ()
6303 {
6304 main ();
6305   ;
6306   return 0;
6307 }
6308 _ACEOF
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311   (eval $ac_link) 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); } &&
6315          { ac_try='test -s conftest$ac_exeext'
6316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317   (eval $ac_try) 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; }; then
6321   ac_cv_lib_readline_main=yes
6322 else
6323   echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326 ac_cv_lib_readline_main=no
6327 fi
6328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6329 LIBS=$ac_check_lib_save_LIBS
6330 fi
6331 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
6332 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
6333 if test $ac_cv_lib_readline_main = yes; then
6334   readline=true;
6335
6336 cat >>confdefs.h <<\_ACEOF
6337 #define HAVE_READLINE 1
6338 _ACEOF
6339
6340 else
6341   readline=false
6342 fi
6343
6344 wxwin=false
6345 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
6346 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
6347 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
6348   echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350   ac_check_lib_save_LIBS=$LIBS
6351 LIBS="-lwx_gtk-2.4  $LIBS"
6352 cat >conftest.$ac_ext <<_ACEOF
6353 #line $LINENO "configure"
6354 /* confdefs.h.  */
6355 _ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h.  */
6359
6360
6361 int
6362 main ()
6363 {
6364 main ();
6365   ;
6366   return 0;
6367 }
6368 _ACEOF
6369 rm -f conftest.$ac_objext conftest$ac_exeext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6371   (eval $ac_link) 2>&5
6372   ac_status=$?
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); } &&
6375          { ac_try='test -s conftest$ac_exeext'
6376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377   (eval $ac_try) 2>&5
6378   ac_status=$?
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); }; }; then
6381   ac_cv_lib_wx_gtk_2_4_main=yes
6382 else
6383   echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386 ac_cv_lib_wx_gtk_2_4_main=no
6387 fi
6388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6389 LIBS=$ac_check_lib_save_LIBS
6390 fi
6391 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
6392 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
6393 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
6394   wxwin=true; wx_gtk=true;
6395 cat >>confdefs.h <<\_ACEOF
6396 #define HAVE_WXWINDOWS 1
6397 _ACEOF
6398
6399 fi
6400
6401 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6402 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6403 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   ac_check_lib_save_LIBS=$LIBS
6407 LIBS="-lwx_mac-2.4  $LIBS"
6408 cat >conftest.$ac_ext <<_ACEOF
6409 #line $LINENO "configure"
6410 /* confdefs.h.  */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h.  */
6415
6416
6417 int
6418 main ()
6419 {
6420 main ();
6421   ;
6422   return 0;
6423 }
6424 _ACEOF
6425 rm -f conftest.$ac_objext conftest$ac_exeext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6427   (eval $ac_link) 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); } &&
6431          { ac_try='test -s conftest$ac_exeext'
6432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433   (eval $ac_try) 2>&5
6434   ac_status=$?
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); }; }; then
6437   ac_cv_lib_wx_mac_2_4_main=yes
6438 else
6439   echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ac_cv_lib_wx_mac_2_4_main=no
6443 fi
6444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6445 LIBS=$ac_check_lib_save_LIBS
6446 fi
6447 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6448 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6449 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6450   wxwin=true; wx_mac=true;
6451 cat >>confdefs.h <<\_ACEOF
6452 #define HAVE_WXWINDOWS 1
6453 _ACEOF
6454
6455 fi
6456
6457 echo "$as_me:$LINENO: checking for fftw_malloc in -lfftw3" >&5
6458 echo $ECHO_N "checking for fftw_malloc in -lfftw3... $ECHO_C" >&6
6459 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then
6460   echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462   ac_check_lib_save_LIBS=$LIBS
6463 LIBS="-lfftw3  $LIBS"
6464 cat >conftest.$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6466 /* confdefs.h.  */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h.  */
6471
6472 /* Override any gcc2 internal prototype to avoid an error.  */
6473 #ifdef __cplusplus
6474 extern "C"
6475 #endif
6476 /* We use char because int might match the return type of a gcc2
6477    builtin and then its argument prototype would still apply.  */
6478 char fftw_malloc ();
6479 int
6480 main ()
6481 {
6482 fftw_malloc ();
6483   ;
6484   return 0;
6485 }
6486 _ACEOF
6487 rm -f conftest.$ac_objext conftest$ac_exeext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6489   (eval $ac_link) 2>&5
6490   ac_status=$?
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); } &&
6493          { ac_try='test -s conftest$ac_exeext'
6494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495   (eval $ac_try) 2>&5
6496   ac_status=$?
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); }; }; then
6499   ac_cv_lib_fftw3_fftw_malloc=yes
6500 else
6501   echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6503
6504 ac_cv_lib_fftw3_fftw_malloc=no
6505 fi
6506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6507 LIBS=$ac_check_lib_save_LIBS
6508 fi
6509 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
6510 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_malloc" >&6
6511 if test $ac_cv_lib_fftw3_fftw_malloc = yes; then
6512   fftw=true;
6513 cat >>confdefs.h <<\_ACEOF
6514 #define HAVE_FFTW 1
6515 _ACEOF
6516
6517 else
6518   fftw=false
6519 fi
6520
6521 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6522 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6523 if test "${ac_cv_lib_GL_main+set}" = set; then
6524   echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526   ac_check_lib_save_LIBS=$LIBS
6527 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 -lXt -lXext $LIBS"
6528 cat >conftest.$ac_ext <<_ACEOF
6529 #line $LINENO "configure"
6530 /* confdefs.h.  */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h.  */
6535
6536
6537 int
6538 main ()
6539 {
6540 main ();
6541   ;
6542   return 0;
6543 }
6544 _ACEOF
6545 rm -f conftest.$ac_objext conftest$ac_exeext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547   (eval $ac_link) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); } &&
6551          { ac_try='test -s conftest$ac_exeext'
6552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553   (eval $ac_try) 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); }; }; then
6557   ac_cv_lib_GL_main=yes
6558 else
6559   echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6561
6562 ac_cv_lib_GL_main=no
6563 fi
6564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6565 LIBS=$ac_check_lib_save_LIBS
6566 fi
6567 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6568 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6569 if test $ac_cv_lib_GL_main = yes; then
6570   libgl=true
6571 else
6572   libgl=false
6573 fi
6574
6575 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6576 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6577 if test "${ac_cv_lib_pthread_main+set}" = set; then
6578   echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580   ac_check_lib_save_LIBS=$LIBS
6581 LIBS="-lpthread  $LIBS"
6582 cat >conftest.$ac_ext <<_ACEOF
6583 #line $LINENO "configure"
6584 /* confdefs.h.  */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h.  */
6589
6590
6591 int
6592 main ()
6593 {
6594 main ();
6595   ;
6596   return 0;
6597 }
6598 _ACEOF
6599 rm -f conftest.$ac_objext conftest$ac_exeext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6601   (eval $ac_link) 2>&5
6602   ac_status=$?
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); } &&
6605          { ac_try='test -s conftest$ac_exeext'
6606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607   (eval $ac_try) 2>&5
6608   ac_status=$?
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); }; }; then
6611   ac_cv_lib_pthread_main=yes
6612 else
6613   echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6615
6616 ac_cv_lib_pthread_main=no
6617 fi
6618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6619 LIBS=$ac_check_lib_save_LIBS
6620 fi
6621 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6622 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6623 if test $ac_cv_lib_pthread_main = yes; then
6624   pthread=true
6625 else
6626   pthread=false
6627 fi
6628
6629
6630 if test "$zlib" = "true" ; then
6631   echo "$as_me:$LINENO: checking for main in -lpng" >&5
6632 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6633 if test "${ac_cv_lib_png_main+set}" = set; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   ac_check_lib_save_LIBS=$LIBS
6637 LIBS="-lpng -lz -lm $LIBS"
6638 cat >conftest.$ac_ext <<_ACEOF
6639 #line $LINENO "configure"
6640 /* confdefs.h.  */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h.  */
6645
6646
6647 int
6648 main ()
6649 {
6650 main ();
6651   ;
6652   return 0;
6653 }
6654 _ACEOF
6655 rm -f conftest.$ac_objext conftest$ac_exeext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6657   (eval $ac_link) 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); } &&
6661          { ac_try='test -s conftest$ac_exeext'
6662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663   (eval $ac_try) 2>&5
6664   ac_status=$?
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); }; }; then
6667   ac_cv_lib_png_main=yes
6668 else
6669   echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6671
6672 ac_cv_lib_png_main=no
6673 fi
6674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6675 LIBS=$ac_check_lib_save_LIBS
6676 fi
6677 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6678 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6679 if test $ac_cv_lib_png_main = yes; then
6680   png=true ;
6681 cat >>confdefs.h <<\_ACEOF
6682 #define HAVE_PNG 1
6683 _ACEOF
6684
6685 else
6686   png=false
6687 fi
6688
6689 fi
6690
6691 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6692 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6693 if test "${ac_cv_header_stdc+set}" = set; then
6694   echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696   cat >conftest.$ac_ext <<_ACEOF
6697 #line $LINENO "configure"
6698 /* confdefs.h.  */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h.  */
6703 #include <stdlib.h>
6704 #include <stdarg.h>
6705 #include <string.h>
6706 #include <float.h>
6707
6708 int
6709 main ()
6710 {
6711
6712   ;
6713   return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718   (eval $ac_compile) 2>&5
6719   ac_status=$?
6720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721   (exit $ac_status); } &&
6722          { ac_try='test -s conftest.$ac_objext'
6723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724   (eval $ac_try) 2>&5
6725   ac_status=$?
6726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727   (exit $ac_status); }; }; then
6728   ac_cv_header_stdc=yes
6729 else
6730   echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6732
6733 ac_cv_header_stdc=no
6734 fi
6735 rm -f conftest.$ac_objext conftest.$ac_ext
6736
6737 if test $ac_cv_header_stdc = yes; then
6738   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6739   cat >conftest.$ac_ext <<_ACEOF
6740 #line $LINENO "configure"
6741 /* confdefs.h.  */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h.  */
6746 #include <string.h>
6747
6748 _ACEOF
6749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6750   $EGREP "memchr" >/dev/null 2>&1; then
6751   :
6752 else
6753   ac_cv_header_stdc=no
6754 fi
6755 rm -f conftest*
6756
6757 fi
6758
6759 if test $ac_cv_header_stdc = yes; then
6760   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6761   cat >conftest.$ac_ext <<_ACEOF
6762 #line $LINENO "configure"
6763 /* confdefs.h.  */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h.  */
6768 #include <stdlib.h>
6769
6770 _ACEOF
6771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6772   $EGREP "free" >/dev/null 2>&1; then
6773   :
6774 else
6775   ac_cv_header_stdc=no
6776 fi
6777 rm -f conftest*
6778
6779 fi
6780
6781 if test $ac_cv_header_stdc = yes; then
6782   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6783   if test "$cross_compiling" = yes; then
6784   :
6785 else
6786   cat >conftest.$ac_ext <<_ACEOF
6787 #line $LINENO "configure"
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793 #include <ctype.h>
6794 #if ((' ' & 0x0FF) == 0x020)
6795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6797 #else
6798 # define ISLOWER(c) \
6799                    (('a' <= (c) && (c) <= 'i') \
6800                      || ('j' <= (c) && (c) <= 'r') \
6801                      || ('s' <= (c) && (c) <= 'z'))
6802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6803 #endif
6804
6805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6806 int
6807 main ()
6808 {
6809   int i;
6810   for (i = 0; i < 256; i++)
6811     if (XOR (islower (i), ISLOWER (i))
6812         || toupper (i) != TOUPPER (i))
6813       exit(2);
6814   exit (0);
6815 }
6816 _ACEOF
6817 rm -f conftest$ac_exeext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6819   (eval $ac_link) 2>&5
6820   ac_status=$?
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824   (eval $ac_try) 2>&5
6825   ac_status=$?
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); }; }; then
6828   :
6829 else
6830   echo "$as_me: program exited with status $ac_status" >&5
6831 echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6833
6834 ( exit $ac_status )
6835 ac_cv_header_stdc=no
6836 fi
6837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6838 fi
6839 fi
6840 fi
6841 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6842 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6843 if test $ac_cv_header_stdc = yes; then
6844
6845 cat >>confdefs.h <<\_ACEOF
6846 #define STDC_HEADERS 1
6847 _ACEOF
6848
6849 fi
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875 for ac_header in fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h assert.h sys/time.h sys/resource.h sys/time.h readline.h readline/readline.h
6876 do
6877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6879   echo "$as_me:$LINENO: checking for $ac_header" >&5
6880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6882   echo $ECHO_N "(cached) $ECHO_C" >&6
6883 fi
6884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6886 else
6887   # Is the header compilable?
6888 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6890 cat >conftest.$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897 $ac_includes_default
6898 #include <$ac_header>
6899 _ACEOF
6900 rm -f conftest.$ac_objext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902   (eval $ac_compile) 2>&5
6903   ac_status=$?
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); } &&
6906          { ac_try='test -s conftest.$ac_objext'
6907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908   (eval $ac_try) 2>&5
6909   ac_status=$?
6910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911   (exit $ac_status); }; }; then
6912   ac_header_compiler=yes
6913 else
6914   echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917 ac_header_compiler=no
6918 fi
6919 rm -f conftest.$ac_objext conftest.$ac_ext
6920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6921 echo "${ECHO_T}$ac_header_compiler" >&6
6922
6923 # Is the header present?
6924 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6926 cat >conftest.$ac_ext <<_ACEOF
6927 #line $LINENO "configure"
6928 /* confdefs.h.  */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h.  */
6933 #include <$ac_header>
6934 _ACEOF
6935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6937   ac_status=$?
6938   grep -v '^ *+' conftest.er1 >conftest.err
6939   rm -f conftest.er1
6940   cat conftest.err >&5
6941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942   (exit $ac_status); } >/dev/null; then
6943   if test -s conftest.err; then
6944     ac_cpp_err=$ac_c_preproc_warn_flag
6945   else
6946     ac_cpp_err=
6947   fi
6948 else
6949   ac_cpp_err=yes
6950 fi
6951 if test -z "$ac_cpp_err"; then
6952   ac_header_preproc=yes
6953 else
6954   echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6956
6957   ac_header_preproc=no
6958 fi
6959 rm -f conftest.err conftest.$ac_ext
6960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6961 echo "${ECHO_T}$ac_header_preproc" >&6
6962
6963 # So?  What about this header?
6964 case $ac_header_compiler:$ac_header_preproc in
6965   yes:no )
6966     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6970     (
6971       cat <<\_ASBOX
6972 ## ------------------------------------ ##
6973 ## Report this to bug-autoconf@gnu.org. ##
6974 ## ------------------------------------ ##
6975 _ASBOX
6976     ) |
6977       sed "s/^/$as_me: WARNING:     /" >&2
6978     ;;
6979   no:yes )
6980     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6982     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6986     (
6987       cat <<\_ASBOX
6988 ## ------------------------------------ ##
6989 ## Report this to bug-autoconf@gnu.org. ##
6990 ## ------------------------------------ ##
6991 _ASBOX
6992     ) |
6993       sed "s/^/$as_me: WARNING:     /" >&2
6994     ;;
6995 esac
6996 echo "$as_me:$LINENO: checking for $ac_header" >&5
6997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6999   echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001   eval "$as_ac_Header=$ac_header_preproc"
7002 fi
7003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7005
7006 fi
7007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7008   cat >>confdefs.h <<_ACEOF
7009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7010 _ACEOF
7011
7012 fi
7013
7014 done
7015
7016
7017 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7018 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7019 if test "${ac_cv_c_const+set}" = set; then
7020   echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022   cat >conftest.$ac_ext <<_ACEOF
7023 #line $LINENO "configure"
7024 /* confdefs.h.  */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h.  */
7029
7030 int
7031 main ()
7032 {
7033 /* FIXME: Include the comments suggested by Paul. */
7034 #ifndef __cplusplus
7035   /* Ultrix mips cc rejects this.  */
7036   typedef int charset[2];
7037   const charset x;
7038   /* SunOS 4.1.1 cc rejects this.  */
7039   char const *const *ccp;
7040   char **p;
7041   /* NEC SVR4.0.2 mips cc rejects this.  */
7042   struct point {int x, y;};
7043   static struct point const zero = {0,0};
7044   /* AIX XL C 1.02.0.0 rejects this.
7045      It does not let you subtract one const X* pointer from another in
7046      an arm of an if-expression whose if-part is not a constant
7047      expression */
7048   const char *g = "string";
7049   ccp = &g + (g ? g-g : 0);
7050   /* HPUX 7.0 cc rejects these. */
7051   ++ccp;
7052   p = (char**) ccp;
7053   ccp = (char const *const *) p;
7054   { /* SCO 3.2v4 cc rejects this.  */
7055     char *t;
7056     char const *s = 0 ? (char *) 0 : (char const *) 0;
7057
7058     *t++ = 0;
7059   }
7060   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7061     int x[] = {25, 17};
7062     const int *foo = &x[0];
7063     ++foo;
7064   }
7065   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7066     typedef const int *iptr;
7067     iptr p = 0;
7068     ++p;
7069   }
7070   { /* AIX XL C 1.02.0.0 rejects this saying
7071        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7072     struct s { int j; const int *ap[3]; };
7073     struct s *b; b->j = 5;
7074   }
7075   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7076     const int foo = 10;
7077   }
7078 #endif
7079
7080   ;
7081   return 0;
7082 }
7083 _ACEOF
7084 rm -f conftest.$ac_objext
7085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7086   (eval $ac_compile) 2>&5
7087   ac_status=$?
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); } &&
7090          { ac_try='test -s conftest.$ac_objext'
7091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092   (eval $ac_try) 2>&5
7093   ac_status=$?
7094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095   (exit $ac_status); }; }; then
7096   ac_cv_c_const=yes
7097 else
7098   echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7100
7101 ac_cv_c_const=no
7102 fi
7103 rm -f conftest.$ac_objext conftest.$ac_ext
7104 fi
7105 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7106 echo "${ECHO_T}$ac_cv_c_const" >&6
7107 if test $ac_cv_c_const = no; then
7108
7109 cat >>confdefs.h <<\_ACEOF
7110 #define const
7111 _ACEOF
7112
7113 fi
7114
7115 echo "$as_me:$LINENO: checking for off_t" >&5
7116 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7117 if test "${ac_cv_type_off_t+set}" = set; then
7118   echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120   cat >conftest.$ac_ext <<_ACEOF
7121 #line $LINENO "configure"
7122 /* confdefs.h.  */
7123 _ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h.  */
7127 $ac_includes_default
7128 int
7129 main ()
7130 {
7131 if ((off_t *) 0)
7132   return 0;
7133 if (sizeof (off_t))
7134   return 0;
7135   ;
7136   return 0;
7137 }
7138 _ACEOF
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141   (eval $ac_compile) 2>&5
7142   ac_status=$?
7143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); } &&
7145          { ac_try='test -s conftest.$ac_objext'
7146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147   (eval $ac_try) 2>&5
7148   ac_status=$?
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); }; }; then
7151   ac_cv_type_off_t=yes
7152 else
7153   echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7155
7156 ac_cv_type_off_t=no
7157 fi
7158 rm -f conftest.$ac_objext conftest.$ac_ext
7159 fi
7160 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7161 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7162 if test $ac_cv_type_off_t = yes; then
7163   :
7164 else
7165
7166 cat >>confdefs.h <<_ACEOF
7167 #define off_t long
7168 _ACEOF
7169
7170 fi
7171
7172 echo "$as_me:$LINENO: checking for size_t" >&5
7173 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7174 if test "${ac_cv_type_size_t+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   cat >conftest.$ac_ext <<_ACEOF
7178 #line $LINENO "configure"
7179 /* confdefs.h.  */
7180 _ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h.  */
7184 $ac_includes_default
7185 int
7186 main ()
7187 {
7188 if ((size_t *) 0)
7189   return 0;
7190 if (sizeof (size_t))
7191   return 0;
7192   ;
7193   return 0;
7194 }
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198   (eval $ac_compile) 2>&5
7199   ac_status=$?
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); } &&
7202          { ac_try='test -s conftest.$ac_objext'
7203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204   (eval $ac_try) 2>&5
7205   ac_status=$?
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; }; then
7208   ac_cv_type_size_t=yes
7209 else
7210   echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7212
7213 ac_cv_type_size_t=no
7214 fi
7215 rm -f conftest.$ac_objext conftest.$ac_ext
7216 fi
7217 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7218 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7219 if test $ac_cv_type_size_t = yes; then
7220   :
7221 else
7222
7223 cat >>confdefs.h <<_ACEOF
7224 #define size_t unsigned
7225 _ACEOF
7226
7227 fi
7228
7229 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7230 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7231 if test "${ac_cv_struct_tm+set}" = set; then
7232   echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234   cat >conftest.$ac_ext <<_ACEOF
7235 #line $LINENO "configure"
7236 /* confdefs.h.  */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h.  */
7241 #include <sys/types.h>
7242 #include <time.h>
7243
7244 int
7245 main ()
7246 {
7247 struct tm *tp; tp->tm_sec;
7248   ;
7249   return 0;
7250 }
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254   (eval $ac_compile) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); } &&
7258          { ac_try='test -s conftest.$ac_objext'
7259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260   (eval $ac_try) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); }; }; then
7264   ac_cv_struct_tm=time.h
7265 else
7266   echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 ac_cv_struct_tm=sys/time.h
7270 fi
7271 rm -f conftest.$ac_objext conftest.$ac_ext
7272 fi
7273 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7274 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7275 if test $ac_cv_struct_tm = sys/time.h; then
7276
7277 cat >>confdefs.h <<\_ACEOF
7278 #define TM_IN_SYS_TIME 1
7279 _ACEOF
7280
7281 fi
7282
7283
7284
7285 for ac_func in vprintf
7286 do
7287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7288 echo "$as_me:$LINENO: checking for $ac_func" >&5
7289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7290 if eval "test \"\${$as_ac_var+set}\" = set"; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293   cat >conftest.$ac_ext <<_ACEOF
7294 #line $LINENO "configure"
7295 /* confdefs.h.  */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h.  */
7300 /* System header to define __stub macros and hopefully few prototypes,
7301     which can conflict with char $ac_func (); below.
7302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7303     <limits.h> exists even on freestanding compilers.  */
7304 #ifdef __STDC__
7305 # include <limits.h>
7306 #else
7307 # include <assert.h>
7308 #endif
7309 /* Override any gcc2 internal prototype to avoid an error.  */
7310 #ifdef __cplusplus
7311 extern "C"
7312 {
7313 #endif
7314 /* We use char because int might match the return type of a gcc2
7315    builtin and then its argument prototype would still apply.  */
7316 char $ac_func ();
7317 /* The GNU C library defines this for functions which it implements
7318     to always fail with ENOSYS.  Some functions are actually named
7319     something starting with __ and the normal name is an alias.  */
7320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7321 choke me
7322 #else
7323 char (*f) () = $ac_func;
7324 #endif
7325 #ifdef __cplusplus
7326 }
7327 #endif
7328
7329 int
7330 main ()
7331 {
7332 return f != $ac_func;
7333   ;
7334   return 0;
7335 }
7336 _ACEOF
7337 rm -f conftest.$ac_objext conftest$ac_exeext
7338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7339   (eval $ac_link) 2>&5
7340   ac_status=$?
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); } &&
7343          { ac_try='test -s conftest$ac_exeext'
7344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345   (eval $ac_try) 2>&5
7346   ac_status=$?
7347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); }; }; then
7349   eval "$as_ac_var=yes"
7350 else
7351   echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7353
7354 eval "$as_ac_var=no"
7355 fi
7356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7357 fi
7358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7360 if test `eval echo '${'$as_ac_var'}'` = yes; then
7361   cat >>confdefs.h <<_ACEOF
7362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7363 _ACEOF
7364
7365 echo "$as_me:$LINENO: checking for _doprnt" >&5
7366 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7367 if test "${ac_cv_func__doprnt+set}" = set; then
7368   echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370   cat >conftest.$ac_ext <<_ACEOF
7371 #line $LINENO "configure"
7372 /* confdefs.h.  */
7373 _ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h.  */
7377 /* System header to define __stub macros and hopefully few prototypes,
7378     which can conflict with char _doprnt (); below.
7379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7380     <limits.h> exists even on freestanding compilers.  */
7381 #ifdef __STDC__
7382 # include <limits.h>
7383 #else
7384 # include <assert.h>
7385 #endif
7386 /* Override any gcc2 internal prototype to avoid an error.  */
7387 #ifdef __cplusplus
7388 extern "C"
7389 {
7390 #endif
7391 /* We use char because int might match the return type of a gcc2
7392    builtin and then its argument prototype would still apply.  */
7393 char _doprnt ();
7394 /* The GNU C library defines this for functions which it implements
7395     to always fail with ENOSYS.  Some functions are actually named
7396     something starting with __ and the normal name is an alias.  */
7397 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7398 choke me
7399 #else
7400 char (*f) () = _doprnt;
7401 #endif
7402 #ifdef __cplusplus
7403 }
7404 #endif
7405
7406 int
7407 main ()
7408 {
7409 return f != _doprnt;
7410   ;
7411   return 0;
7412 }
7413 _ACEOF
7414 rm -f conftest.$ac_objext conftest$ac_exeext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7416   (eval $ac_link) 2>&5
7417   ac_status=$?
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); } &&
7420          { ac_try='test -s conftest$ac_exeext'
7421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422   (eval $ac_try) 2>&5
7423   ac_status=$?
7424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425   (exit $ac_status); }; }; then
7426   ac_cv_func__doprnt=yes
7427 else
7428   echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7430
7431 ac_cv_func__doprnt=no
7432 fi
7433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7434 fi
7435 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7436 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7437 if test $ac_cv_func__doprnt = yes; then
7438
7439 cat >>confdefs.h <<\_ACEOF
7440 #define HAVE_DOPRNT 1
7441 _ACEOF
7442
7443 fi
7444
7445 fi
7446 done
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
7457 do
7458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7459 echo "$as_me:$LINENO: checking for $ac_func" >&5
7460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7461 if eval "test \"\${$as_ac_var+set}\" = set"; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   cat >conftest.$ac_ext <<_ACEOF
7465 #line $LINENO "configure"
7466 /* confdefs.h.  */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h.  */
7471 /* System header to define __stub macros and hopefully few prototypes,
7472     which can conflict with char $ac_func (); below.
7473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7474     <limits.h> exists even on freestanding compilers.  */
7475 #ifdef __STDC__
7476 # include <limits.h>
7477 #else
7478 # include <assert.h>
7479 #endif
7480 /* Override any gcc2 internal prototype to avoid an error.  */
7481 #ifdef __cplusplus
7482 extern "C"
7483 {
7484 #endif
7485 /* We use char because int might match the return type of a gcc2
7486    builtin and then its argument prototype would still apply.  */
7487 char $ac_func ();
7488 /* The GNU C library defines this for functions which it implements
7489     to always fail with ENOSYS.  Some functions are actually named
7490     something starting with __ and the normal name is an alias.  */
7491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7492 choke me
7493 #else
7494 char (*f) () = $ac_func;
7495 #endif
7496 #ifdef __cplusplus
7497 }
7498 #endif
7499
7500 int
7501 main ()
7502 {
7503 return f != $ac_func;
7504   ;
7505   return 0;
7506 }
7507 _ACEOF
7508 rm -f conftest.$ac_objext conftest$ac_exeext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7510   (eval $ac_link) 2>&5
7511   ac_status=$?
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); } &&
7514          { ac_try='test -s conftest$ac_exeext'
7515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516   (eval $ac_try) 2>&5
7517   ac_status=$?
7518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519   (exit $ac_status); }; }; then
7520   eval "$as_ac_var=yes"
7521 else
7522   echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7524
7525 eval "$as_ac_var=no"
7526 fi
7527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7528 fi
7529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7531 if test `eval echo '${'$as_ac_var'}'` = yes; then
7532   cat >>confdefs.h <<_ACEOF
7533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7534 _ACEOF
7535
7536 fi
7537 done
7538
7539 echo "$as_me:$LINENO: checking for basename" >&5
7540 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7541 if test "${ac_cv_func_basename+set}" = set; then
7542   echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544   cat >conftest.$ac_ext <<_ACEOF
7545 #line $LINENO "configure"
7546 /* confdefs.h.  */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h.  */
7551 /* System header to define __stub macros and hopefully few prototypes,
7552     which can conflict with char basename (); below.
7553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7554     <limits.h> exists even on freestanding compilers.  */
7555 #ifdef __STDC__
7556 # include <limits.h>
7557 #else
7558 # include <assert.h>
7559 #endif
7560 /* Override any gcc2 internal prototype to avoid an error.  */
7561 #ifdef __cplusplus
7562 extern "C"
7563 {
7564 #endif
7565 /* We use char because int might match the return type of a gcc2
7566    builtin and then its argument prototype would still apply.  */
7567 char basename ();
7568 /* The GNU C library defines this for functions which it implements
7569     to always fail with ENOSYS.  Some functions are actually named
7570     something starting with __ and the normal name is an alias.  */
7571 #if defined (__stub_basename) || defined (__stub___basename)
7572 choke me
7573 #else
7574 char (*f) () = basename;
7575 #endif
7576 #ifdef __cplusplus
7577 }
7578 #endif
7579
7580 int
7581 main ()
7582 {
7583 return f != basename;
7584   ;
7585   return 0;
7586 }
7587 _ACEOF
7588 rm -f conftest.$ac_objext conftest$ac_exeext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7590   (eval $ac_link) 2>&5
7591   ac_status=$?
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); } &&
7594          { ac_try='test -s conftest$ac_exeext'
7595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596   (eval $ac_try) 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); }; }; then
7600   ac_cv_func_basename=yes
7601 else
7602   echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7604
7605 ac_cv_func_basename=no
7606 fi
7607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7608 fi
7609 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7610 echo "${ECHO_T}$ac_cv_func_basename" >&6
7611
7612 echo "$as_me:$LINENO: checking for setjmp" >&5
7613 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7614 if test "${ac_cv_func_setjmp+set}" = set; then
7615   echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617   cat >conftest.$ac_ext <<_ACEOF
7618 #line $LINENO "configure"
7619 /* confdefs.h.  */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h.  */
7624 /* System header to define __stub macros and hopefully few prototypes,
7625     which can conflict with char setjmp (); below.
7626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7627     <limits.h> exists even on freestanding compilers.  */
7628 #ifdef __STDC__
7629 # include <limits.h>
7630 #else
7631 # include <assert.h>
7632 #endif
7633 /* Override any gcc2 internal prototype to avoid an error.  */
7634 #ifdef __cplusplus
7635 extern "C"
7636 {
7637 #endif
7638 /* We use char because int might match the return type of a gcc2
7639    builtin and then its argument prototype would still apply.  */
7640 char setjmp ();
7641 /* The GNU C library defines this for functions which it implements
7642     to always fail with ENOSYS.  Some functions are actually named
7643     something starting with __ and the normal name is an alias.  */
7644 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7645 choke me
7646 #else
7647 char (*f) () = setjmp;
7648 #endif
7649 #ifdef __cplusplus
7650 }
7651 #endif
7652
7653 int
7654 main ()
7655 {
7656 return f != setjmp;
7657   ;
7658   return 0;
7659 }
7660 _ACEOF
7661 rm -f conftest.$ac_objext conftest$ac_exeext
7662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663   (eval $ac_link) 2>&5
7664   ac_status=$?
7665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666   (exit $ac_status); } &&
7667          { ac_try='test -s conftest$ac_exeext'
7668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669   (eval $ac_try) 2>&5
7670   ac_status=$?
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); }; }; then
7673   ac_cv_func_setjmp=yes
7674 else
7675   echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7677
7678 ac_cv_func_setjmp=no
7679 fi
7680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7681 fi
7682 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7683 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7684
7685 echo "$as_me:$LINENO: checking for setpriority" >&5
7686 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7687 if test "${ac_cv_func_setpriority+set}" = set; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690   cat >conftest.$ac_ext <<_ACEOF
7691 #line $LINENO "configure"
7692 /* confdefs.h.  */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h.  */
7697 /* System header to define __stub macros and hopefully few prototypes,
7698     which can conflict with char setpriority (); below.
7699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7700     <limits.h> exists even on freestanding compilers.  */
7701 #ifdef __STDC__
7702 # include <limits.h>
7703 #else
7704 # include <assert.h>
7705 #endif
7706 /* Override any gcc2 internal prototype to avoid an error.  */
7707 #ifdef __cplusplus
7708 extern "C"
7709 {
7710 #endif
7711 /* We use char because int might match the return type of a gcc2
7712    builtin and then its argument prototype would still apply.  */
7713 char setpriority ();
7714 /* The GNU C library defines this for functions which it implements
7715     to always fail with ENOSYS.  Some functions are actually named
7716     something starting with __ and the normal name is an alias.  */
7717 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7718 choke me
7719 #else
7720 char (*f) () = setpriority;
7721 #endif
7722 #ifdef __cplusplus
7723 }
7724 #endif
7725
7726 int
7727 main ()
7728 {
7729 return f != setpriority;
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7736   (eval $ac_link) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); } &&
7740          { ac_try='test -s conftest$ac_exeext'
7741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742   (eval $ac_try) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; }; then
7746   ac_cv_func_setpriority=yes
7747 else
7748   echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7750
7751 ac_cv_func_setpriority=no
7752 fi
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7754 fi
7755 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7756 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7757
7758 echo "$as_me:$LINENO: checking for time" >&5
7759 echo $ECHO_N "checking for time... $ECHO_C" >&6
7760 if test "${ac_cv_func_time+set}" = set; then
7761   echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763   cat >conftest.$ac_ext <<_ACEOF
7764 #line $LINENO "configure"
7765 /* confdefs.h.  */
7766 _ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h.  */
7770 /* System header to define __stub macros and hopefully few prototypes,
7771     which can conflict with char time (); below.
7772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7773     <limits.h> exists even on freestanding compilers.  */
7774 #ifdef __STDC__
7775 # include <limits.h>
7776 #else
7777 # include <assert.h>
7778 #endif
7779 /* Override any gcc2 internal prototype to avoid an error.  */
7780 #ifdef __cplusplus
7781 extern "C"
7782 {
7783 #endif
7784 /* We use char because int might match the return type of a gcc2
7785    builtin and then its argument prototype would still apply.  */
7786 char time ();
7787 /* The GNU C library defines this for functions which it implements
7788     to always fail with ENOSYS.  Some functions are actually named
7789     something starting with __ and the normal name is an alias.  */
7790 #if defined (__stub_time) || defined (__stub___time)
7791 choke me
7792 #else
7793 char (*f) () = time;
7794 #endif
7795 #ifdef __cplusplus
7796 }
7797 #endif
7798
7799 int
7800 main ()
7801 {
7802 return f != time;
7803   ;
7804   return 0;
7805 }
7806 _ACEOF
7807 rm -f conftest.$ac_objext conftest$ac_exeext
7808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7809   (eval $ac_link) 2>&5
7810   ac_status=$?
7811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812   (exit $ac_status); } &&
7813          { ac_try='test -s conftest$ac_exeext'
7814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815   (eval $ac_try) 2>&5
7816   ac_status=$?
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); }; }; then
7819   ac_cv_func_time=yes
7820 else
7821   echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7823
7824 ac_cv_func_time=no
7825 fi
7826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7827 fi
7828 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7829 echo "${ECHO_T}$ac_cv_func_time" >&6
7830
7831 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7832 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7833 if test "${ac_cv_func_gettimeofday+set}" = set; then
7834   echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836   cat >conftest.$ac_ext <<_ACEOF
7837 #line $LINENO "configure"
7838 /* confdefs.h.  */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h.  */
7843 /* System header to define __stub macros and hopefully few prototypes,
7844     which can conflict with char gettimeofday (); below.
7845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7846     <limits.h> exists even on freestanding compilers.  */
7847 #ifdef __STDC__
7848 # include <limits.h>
7849 #else
7850 # include <assert.h>
7851 #endif
7852 /* Override any gcc2 internal prototype to avoid an error.  */
7853 #ifdef __cplusplus
7854 extern "C"
7855 {
7856 #endif
7857 /* We use char because int might match the return type of a gcc2
7858    builtin and then its argument prototype would still apply.  */
7859 char gettimeofday ();
7860 /* The GNU C library defines this for functions which it implements
7861     to always fail with ENOSYS.  Some functions are actually named
7862     something starting with __ and the normal name is an alias.  */
7863 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7864 choke me
7865 #else
7866 char (*f) () = gettimeofday;
7867 #endif
7868 #ifdef __cplusplus
7869 }
7870 #endif
7871
7872 int
7873 main ()
7874 {
7875 return f != gettimeofday;
7876   ;
7877   return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882   (eval $ac_link) 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); } &&
7886          { ac_try='test -s conftest$ac_exeext'
7887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888   (eval $ac_try) 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); }; }; then
7892   ac_cv_func_gettimeofday=yes
7893 else
7894   echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7896
7897 ac_cv_func_gettimeofday=no
7898 fi
7899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7900 fi
7901 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7902 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7903
7904 echo "$as_me:$LINENO: checking for getopt" >&5
7905 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
7906 if test "${ac_cv_func_getopt+set}" = set; then
7907   echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909   cat >conftest.$ac_ext <<_ACEOF
7910 #line $LINENO "configure"
7911 /* confdefs.h.  */
7912 _ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h.  */
7916 /* System header to define __stub macros and hopefully few prototypes,
7917     which can conflict with char getopt (); below.
7918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7919     <limits.h> exists even on freestanding compilers.  */
7920 #ifdef __STDC__
7921 # include <limits.h>
7922 #else
7923 # include <assert.h>
7924 #endif
7925 /* Override any gcc2 internal prototype to avoid an error.  */
7926 #ifdef __cplusplus
7927 extern "C"
7928 {
7929 #endif
7930 /* We use char because int might match the return type of a gcc2
7931    builtin and then its argument prototype would still apply.  */
7932 char getopt ();
7933 /* The GNU C library defines this for functions which it implements
7934     to always fail with ENOSYS.  Some functions are actually named
7935     something starting with __ and the normal name is an alias.  */
7936 #if defined (__stub_getopt) || defined (__stub___getopt)
7937 choke me
7938 #else
7939 char (*f) () = getopt;
7940 #endif
7941 #ifdef __cplusplus
7942 }
7943 #endif
7944
7945 int
7946 main ()
7947 {
7948 return f != getopt;
7949   ;
7950   return 0;
7951 }
7952 _ACEOF
7953 rm -f conftest.$ac_objext conftest$ac_exeext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955   (eval $ac_link) 2>&5
7956   ac_status=$?
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); } &&
7959          { ac_try='test -s conftest$ac_exeext'
7960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961   (eval $ac_try) 2>&5
7962   ac_status=$?
7963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964   (exit $ac_status); }; }; then
7965   ac_cv_func_getopt=yes
7966 else
7967   echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7969
7970 ac_cv_func_getopt=no
7971 fi
7972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7973 fi
7974 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
7975 echo "${ECHO_T}$ac_cv_func_getopt" >&6
7976 if test $ac_cv_func_getopt = yes; then
7977    getopt=true
7978 else
7979    getopt=false
7980 fi
7981
7982 echo "$as_me:$LINENO: checking for getenv" >&5
7983 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
7984 if test "${ac_cv_func_getenv+set}" = set; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987   cat >conftest.$ac_ext <<_ACEOF
7988 #line $LINENO "configure"
7989 /* confdefs.h.  */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h.  */
7994 /* System header to define __stub macros and hopefully few prototypes,
7995     which can conflict with char getenv (); below.
7996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7997     <limits.h> exists even on freestanding compilers.  */
7998 #ifdef __STDC__
7999 # include <limits.h>
8000 #else
8001 # include <assert.h>
8002 #endif
8003 /* Override any gcc2 internal prototype to avoid an error.  */
8004 #ifdef __cplusplus
8005 extern "C"
8006 {
8007 #endif
8008 /* We use char because int might match the return type of a gcc2
8009    builtin and then its argument prototype would still apply.  */
8010 char getenv ();
8011 /* The GNU C library defines this for functions which it implements
8012     to always fail with ENOSYS.  Some functions are actually named
8013     something starting with __ and the normal name is an alias.  */
8014 #if defined (__stub_getenv) || defined (__stub___getenv)
8015 choke me
8016 #else
8017 char (*f) () = getenv;
8018 #endif
8019 #ifdef __cplusplus
8020 }
8021 #endif
8022
8023 int
8024 main ()
8025 {
8026 return f != getenv;
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8033   (eval $ac_link) 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); } &&
8037          { ac_try='test -s conftest$ac_exeext'
8038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039   (eval $ac_try) 2>&5
8040   ac_status=$?
8041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042   (exit $ac_status); }; }; then
8043   ac_cv_func_getenv=yes
8044 else
8045   echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8047
8048 ac_cv_func_getenv=no
8049 fi
8050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8051 fi
8052 echo "$as_me:$LINENO: result: $ac_cv_func_getenv" >&5
8053 echo "${ECHO_T}$ac_cv_func_getenv" >&6
8054
8055
8056 if test "${OSTYPE}" = "cygwin" ; then
8057   getopt_long=false
8058 else
8059   echo "$as_me:$LINENO: checking for getopt_long" >&5
8060 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
8061 if test "${ac_cv_func_getopt_long+set}" = set; then
8062   echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064   cat >conftest.$ac_ext <<_ACEOF
8065 #line $LINENO "configure"
8066 /* confdefs.h.  */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h.  */
8071 /* System header to define __stub macros and hopefully few prototypes,
8072     which can conflict with char getopt_long (); below.
8073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8074     <limits.h> exists even on freestanding compilers.  */
8075 #ifdef __STDC__
8076 # include <limits.h>
8077 #else
8078 # include <assert.h>
8079 #endif
8080 /* Override any gcc2 internal prototype to avoid an error.  */
8081 #ifdef __cplusplus
8082 extern "C"
8083 {
8084 #endif
8085 /* We use char because int might match the return type of a gcc2
8086    builtin and then its argument prototype would still apply.  */
8087 char getopt_long ();
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_getopt_long) || defined (__stub___getopt_long)
8092 choke me
8093 #else
8094 char (*f) () = getopt_long;
8095 #endif
8096 #ifdef __cplusplus
8097 }
8098 #endif
8099
8100 int
8101 main ()
8102 {
8103 return f != getopt_long;
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8110   (eval $ac_link) 2>&5
8111   ac_status=$?
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); } &&
8114          { ac_try='test -s conftest$ac_exeext'
8115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116   (eval $ac_try) 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); }; }; then
8120   ac_cv_func_getopt_long=yes
8121 else
8122   echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8124
8125 ac_cv_func_getopt_long=no
8126 fi
8127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8128 fi
8129 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
8130 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
8131 if test $ac_cv_func_getopt_long = yes; then
8132    getopt_long=true
8133 else
8134    getopt_long=false
8135 fi
8136
8137 fi
8138
8139 if test "${getopt_long}" = "false" ; then
8140   my_includes="$my_includes -I../getopt"
8141
8142 cat >>confdefs.h <<\_ACEOF
8143 #define HAVE_GETOPT_LONG 1
8144 _ACEOF
8145
8146   ctlibs_base="$ctlibs_base -lgetopt"
8147   LDFLAGS="$LDFLAGS -L../getopt"
8148   GETOPTLONG=1
8149 fi
8150
8151
8152 if test "$GETOPTLONG"="1"; then
8153   INCLUDED_GETOPT_LONG_TRUE=
8154   INCLUDED_GETOPT_LONG_FALSE='#'
8155 else
8156   INCLUDED_GETOPT_LONG_TRUE='#'
8157   INCLUDED_GETOPT_LONG_FALSE=
8158 fi
8159
8160
8161 if test "${readline}" = "true" ; then
8162   ctlibs_base="$ctlibs_base -lreadline"
8163   if test "${ncurses}" = "true"; then
8164     ctlibs_base="$ctlibs_base -lncurses"
8165   elif test "${curses}" = "true"; then
8166     ctlibs_base="$ctlibs_base -lcurses"
8167   fi
8168 fi
8169
8170 echo "$as_me:$LINENO: checking debug" >&5
8171 echo $ECHO_N "checking debug... $ECHO_C" >&6
8172 # Check whether --enable-debug or --disable-debug was given.
8173 if test "${enable_debug+set}" = set; then
8174   enableval="$enable_debug"
8175   case "${enableval}" in
8176   yes) debug=true
8177        echo "$as_me:$LINENO: result: yes" >&5
8178 echo "${ECHO_T}yes" >&6
8179        ;;
8180   no)  debug=false
8181        echo "$as_me:$LINENO: result: no" >&5
8182 echo "${ECHO_T}no" >&6
8183        ;;
8184   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
8185 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
8186        ;;
8187 esac
8188 else
8189   debug=false; echo "$as_me:$LINENO: result: no" >&5
8190 echo "${ECHO_T}no" >&6
8191 fi;
8192
8193
8194 if test "$debug" = "true"; then
8195   DEBUG_TRUE=
8196   DEBUG_FALSE='#'
8197 else
8198   DEBUG_TRUE='#'
8199   DEBUG_FALSE=
8200 fi
8201
8202
8203 if test "$datadir" != "" ; then
8204   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
8205 fi
8206
8207 if test "$debug" = "true" ; then
8208   CFLAGS="$CFLAGS -g -DDEBUG"
8209
8210 cat >>confdefs.h <<\_ACEOF
8211 #define DEBUG 1
8212 _ACEOF
8213
8214 else
8215   CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
8216
8217 cat >>confdefs.h <<\_ACEOF
8218 #define NDEBUG 1
8219 _ACEOF
8220
8221 fi
8222
8223 if test "${pthread}" = "true" ; then
8224
8225 cat >>confdefs.h <<\_ACEOF
8226 #define HAVE_WXTHREADS 1
8227 _ACEOF
8228
8229 fi
8230
8231 echo "$as_me:$LINENO: checking sstream" >&5
8232 echo $ECHO_N "checking sstream... $ECHO_C" >&6
8233  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
8234      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
8235      test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
8236
8237 cat >>confdefs.h <<\_ACEOF
8238 #define HAVE_SSTREAM 1
8239 _ACEOF
8240
8241    echo "$as_me:$LINENO: result: yes" >&5
8242 echo "${ECHO_T}yes" >&6
8243   else
8244    echo "$as_me:$LINENO: result: no" >&5
8245 echo "${ECHO_T}no" >&6
8246  fi
8247
8248
8249 CFLAGS="$CFLAGS -Wall"
8250 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
8251 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
8252 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
8253 if test "${enable_verbose_warnings+set}" = set; then
8254   enableval="$enable_verbose_warnings"
8255    case "$enableval" in
8256   yes)
8257     echo "$as_me:$LINENO: result: yes" >&5
8258 echo "${ECHO_T}yes" >&6
8259     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
8260     ;;
8261   *)
8262     echo "$as_me:$LINENO: result: no" >&5
8263 echo "${ECHO_T}no" >&6
8264     ;;
8265   esac
8266 else
8267   echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6
8269
8270 fi;
8271
8272 echo "$as_me:$LINENO: checking static executables" >&5
8273 echo $ECHO_N "checking static executables... $ECHO_C" >&6
8274 # Check whether --enable-static or --disable-static was given.
8275 if test "${enable_static+set}" = set; then
8276   enableval="$enable_static"
8277    case "$enableval" in
8278   yes)
8279     echo "$as_me:$LINENO: result: yes" >&5
8280 echo "${ECHO_T}yes" >&6
8281     CFLAGS="$CFLAGS --static"
8282     ;;
8283   *)
8284     echo "$as_me:$LINENO: result: no" >&5
8285 echo "${ECHO_T}no" >&6
8286     ;;
8287   esac
8288 else
8289   echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6
8291
8292 fi;
8293
8294
8295 # Check whether --with-lam or --without-lam was given.
8296 if test "${with_lam+set}" = set; then
8297   withval="$with_lam"
8298       if test "$withval" != "no" ; then
8299          trylamdir=$withval
8300      fi
8301
8302 fi;
8303
8304 if test "$withval" != "no" ; then
8305   if test "$prefix" != "NONE" ; then
8306      trylamdir="$trylamdir $prefix"
8307   fi
8308
8309   echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
8310 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
8311   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
8312     if test -x "$testlamdir/bin/hcp" ; then
8313       if test "$testlamdir" != "/usr"; then
8314         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
8315         CFLAGS="$CFLAGS -I$testlamdir/include"
8316       fi
8317       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
8318       lamdir="$testlamdir"
8319
8320       mpienable="true"
8321
8322       break
8323     fi
8324   done
8325   echo "$as_me:$LINENO: result: $lamdir" >&5
8326 echo "${ECHO_T}$lamdir" >&6
8327 else
8328   echo "$as_me:$LINENO: result: no" >&5
8329 echo "${ECHO_T}no" >&6
8330 fi
8331
8332
8333
8334 # Check whether --with-ctn or --without-ctn was given.
8335 if test "${with_ctn+set}" = set; then
8336   withval="$with_ctn"
8337       if test "$withval" != "no" ; then
8338          tryctndir=$withval
8339      fi
8340
8341 fi;
8342
8343 if test "$withval" == "no" -o "$withval" == "NONE" ; then
8344   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8345 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8346   echo "$as_me:$LINENO: result: disabled" >&5
8347 echo "${ECHO_T}disabled" >&6
8348 else
8349   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8350 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8351   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
8352     if test -f "$testctndir/libctn.a" ; then
8353       LDFLAGS="$LDFLAGS -L$testctndir"
8354       ctnlib="true"
8355       break
8356     fi
8357   done
8358   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
8359     if test -f "$testctndir/ctn_os.h" ; then
8360       CFLAGS="$CFLAGS -I$testctndir"
8361       ctninclude="true"
8362       break
8363     fi
8364   done
8365   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
8366       ctn="true"
8367
8368 cat >>confdefs.h <<\_ACEOF
8369 #define HAVE_CTN_DICOM 1
8370 _ACEOF
8371
8372       echo "$as_me:$LINENO: result: yes" >&5
8373 echo "${ECHO_T}yes" >&6
8374   else
8375     echo "$as_me:$LINENO: result: no" >&5
8376 echo "${ECHO_T}no" >&6
8377   fi
8378 fi
8379
8380 echo "$as_me:$LINENO: checking for CPU specification" >&5
8381 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
8382
8383 # Check whether --with-mcpu or --without-mcpu was given.
8384 if test "${with_mcpu+set}" = set; then
8385   withval="$with_mcpu"
8386
8387 fi;
8388
8389 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
8390   echo "$as_me:$LINENO: result: no" >&5
8391 echo "${ECHO_T}no" >&6
8392 else
8393   echo "$as_me:$LINENO: result: $withval" >&5
8394 echo "${ECHO_T}$withval" >&6
8395   CFLAGS="$CFLAGS -mcpu=$withval"
8396 fi
8397
8398 echo "$as_me:$LINENO: checking for web access" >&5
8399 echo $ECHO_N "checking for web access... $ECHO_C" >&6
8400
8401 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
8402 if test "${with_cgibin_dir+set}" = set; then
8403   withval="$with_cgibin_dir"
8404    cgibindir=$withval ;
8405 fi;
8406
8407
8408 # Check whether --with-cgibin-url or --without-cgibin-url was given.
8409 if test "${with_cgibin_url+set}" = set; then
8410   withval="$with_cgibin_url"
8411    cgibinurl=$withval ;
8412 fi;
8413
8414
8415 # Check whether --with-webdata-dir or --without-webdata-dir was given.
8416 if test "${with_webdata_dir+set}" = set; then
8417   withval="$with_webdata_dir"
8418    webdatadir=$withval ;
8419 fi;
8420
8421
8422 # Check whether --with-webdata-url or --without-webdata-url was given.
8423 if test "${with_webdata_url+set}" = set; then
8424   withval="$with_webdata_url"
8425    webdataurl=$withval ;
8426 fi;
8427
8428
8429 # Check whether --with-html-dir or --without-html-dir was given.
8430 if test "${with_html_dir+set}" = set; then
8431   withval="$with_html_dir"
8432    htmldir=$withval ;
8433 fi;
8434
8435 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
8436   cgiprograms="ctsim.cgi ctsim.conf"
8437
8438 fi
8439
8440 if test -n "$htmldir" ; then
8441   htmldata=simulate.html
8442
8443 fi
8444
8445
8446 if test -n "$htmldir"; then
8447   USE_HTML_TRUE=
8448   USE_HTML_FALSE='#'
8449 else
8450   USE_HTML_TRUE='#'
8451   USE_HTML_FALSE=
8452 fi
8453
8454
8455 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
8456   webenabled=true
8457
8458   echo "$as_me:$LINENO: result: yes" >&5
8459 echo "${ECHO_T}yes" >&6
8460   if test -z "$cgibindir" ; then
8461     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
8462 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
8463    { (exit 1); exit 1; }; }
8464   elif test -z "$cgibinurl" ; then
8465     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
8466 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
8467    { (exit 1); exit 1; }; }
8468   elif test -z "$webdatadir" ; then
8469     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
8470 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
8471    { (exit 1); exit 1; }; }
8472   elif test -z "$webdataurl" ; then
8473     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
8474 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
8475    { (exit 1); exit 1; }; }
8476   elif test -z "$htmldir" ; then
8477     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
8478 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
8479    { (exit 1); exit 1; }; }
8480   fi
8481 else
8482   echo "$as_me:$LINENO: result: no" >&5
8483 echo "${ECHO_T}no" >&6
8484 fi
8485
8486
8487
8488 if test -n "$lamdir"; then
8489   USE_LAM_TRUE=
8490   USE_LAM_FALSE='#'
8491 else
8492   USE_LAM_TRUE='#'
8493   USE_LAM_FALSE=
8494 fi
8495
8496
8497
8498 echo "$as_me:$LINENO: checking for X" >&5
8499 echo $ECHO_N "checking for X... $ECHO_C" >&6
8500
8501
8502 # Check whether --with-x or --without-x was given.
8503 if test "${with_x+set}" = set; then
8504   withval="$with_x"
8505
8506 fi;
8507 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8508 if test "x$with_x" = xno; then
8509   # The user explicitly disabled X.
8510   have_x=disabled
8511 else
8512   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8513     # Both variables are already set.
8514     have_x=yes
8515   else
8516     if test "${ac_cv_have_x+set}" = set; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   # One or both of the vars are not set, and there is no cached value.
8520 ac_x_includes=no ac_x_libraries=no
8521 rm -fr conftest.dir
8522 if mkdir conftest.dir; then
8523   cd conftest.dir
8524   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8525   cat >Imakefile <<'_ACEOF'
8526 acfindx:
8527         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8528 _ACEOF
8529   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8530     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8531     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8532     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8533     for ac_extension in a so sl; do
8534       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8535          test -f $ac_im_libdir/libX11.$ac_extension; then
8536         ac_im_usrlibdir=$ac_im_libdir; break
8537       fi
8538     done
8539     # Screen out bogus values from the imake configuration.  They are
8540     # bogus both because they are the default anyway, and because
8541     # using them would break gcc on systems where it needs fixed includes.
8542     case $ac_im_incroot in
8543         /usr/include) ;;
8544         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8545     esac
8546     case $ac_im_usrlibdir in
8547         /usr/lib | /lib) ;;
8548         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8549     esac
8550   fi
8551   cd ..
8552   rm -fr conftest.dir
8553 fi
8554
8555 # Standard set of common directories for X headers.
8556 # Check X11 before X11Rn because it is often a symlink to the current release.
8557 ac_x_header_dirs='
8558 /usr/X11/include
8559 /usr/X11R6/include
8560 /usr/X11R5/include
8561 /usr/X11R4/include
8562
8563 /usr/include/X11
8564 /usr/include/X11R6
8565 /usr/include/X11R5
8566 /usr/include/X11R4
8567
8568 /usr/local/X11/include
8569 /usr/local/X11R6/include
8570 /usr/local/X11R5/include
8571 /usr/local/X11R4/include
8572
8573 /usr/local/include/X11
8574 /usr/local/include/X11R6
8575 /usr/local/include/X11R5
8576 /usr/local/include/X11R4
8577
8578 /usr/X386/include
8579 /usr/x386/include
8580 /usr/XFree86/include/X11
8581
8582 /usr/include
8583 /usr/local/include
8584 /usr/unsupported/include
8585 /usr/athena/include
8586 /usr/local/x11r5/include
8587 /usr/lpp/Xamples/include
8588
8589 /usr/openwin/include
8590 /usr/openwin/share/include'
8591
8592 if test "$ac_x_includes" = no; then
8593   # Guess where to find include files, by looking for Intrinsic.h.
8594   # First, try using that file with no special directory specified.
8595   cat >conftest.$ac_ext <<_ACEOF
8596 #line $LINENO "configure"
8597 /* confdefs.h.  */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h.  */
8602 #include <X11/Intrinsic.h>
8603 _ACEOF
8604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8605   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8606   ac_status=$?
8607   grep -v '^ *+' conftest.er1 >conftest.err
8608   rm -f conftest.er1
8609   cat conftest.err >&5
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); } >/dev/null; then
8612   if test -s conftest.err; then
8613     ac_cpp_err=$ac_c_preproc_warn_flag
8614   else
8615     ac_cpp_err=
8616   fi
8617 else
8618   ac_cpp_err=yes
8619 fi
8620 if test -z "$ac_cpp_err"; then
8621   # We can compile using X headers with no special include directory.
8622 ac_x_includes=
8623 else
8624   echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8626
8627   for ac_dir in $ac_x_header_dirs; do
8628   if test -r "$ac_dir/X11/Intrinsic.h"; then
8629     ac_x_includes=$ac_dir
8630     break
8631   fi
8632 done
8633 fi
8634 rm -f conftest.err conftest.$ac_ext
8635 fi # $ac_x_includes = no
8636
8637 if test "$ac_x_libraries" = no; then
8638   # Check for the libraries.
8639   # See if we find them without any special options.
8640   # Don't add to $LIBS permanently.
8641   ac_save_LIBS=$LIBS
8642   LIBS="-lXt $LIBS"
8643   cat >conftest.$ac_ext <<_ACEOF
8644 #line $LINENO "configure"
8645 /* confdefs.h.  */
8646 _ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h.  */
8650 #include <X11/Intrinsic.h>
8651 int
8652 main ()
8653 {
8654 XtMalloc (0)
8655   ;
8656   return 0;
8657 }
8658 _ACEOF
8659 rm -f conftest.$ac_objext conftest$ac_exeext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8661   (eval $ac_link) 2>&5
8662   ac_status=$?
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); } &&
8665          { ac_try='test -s conftest$ac_exeext'
8666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667   (eval $ac_try) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); }; }; then
8671   LIBS=$ac_save_LIBS
8672 # We can link X programs with no special library path.
8673 ac_x_libraries=
8674 else
8675   echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8677
8678 LIBS=$ac_save_LIBS
8679 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8680 do
8681   # Don't even attempt the hair of trying to link an X program!
8682   for ac_extension in a so sl; do
8683     if test -r $ac_dir/libXt.$ac_extension; then
8684       ac_x_libraries=$ac_dir
8685       break 2
8686     fi
8687   done
8688 done
8689 fi
8690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8691 fi # $ac_x_libraries = no
8692
8693 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8694   # Didn't find X anywhere.  Cache the known absence of X.
8695   ac_cv_have_x="have_x=no"
8696 else
8697   # Record where we found X for the cache.
8698   ac_cv_have_x="have_x=yes \
8699                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8700 fi
8701 fi
8702
8703   fi
8704   eval "$ac_cv_have_x"
8705 fi # $with_x != no
8706
8707 if test "$have_x" != yes; then
8708   echo "$as_me:$LINENO: result: $have_x" >&5
8709 echo "${ECHO_T}$have_x" >&6
8710   no_x=yes
8711 else
8712   # If each of the values was on the command line, it overrides each guess.
8713   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8714   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8715   # Update the cache value to reflect the command line values.
8716   ac_cv_have_x="have_x=yes \
8717                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8718   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8719 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8720 fi
8721
8722 if test "$no_x" = yes; then
8723   # Not all programs may use this symbol, but it does not hurt to define it.
8724
8725 cat >>confdefs.h <<\_ACEOF
8726 #define X_DISPLAY_MISSING 1
8727 _ACEOF
8728
8729   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8730 else
8731   if test -n "$x_includes"; then
8732     X_CFLAGS="$X_CFLAGS -I$x_includes"
8733   fi
8734
8735   # It would also be nice to do this for all -L options, not just this one.
8736   if test -n "$x_libraries"; then
8737     X_LIBS="$X_LIBS -L$x_libraries"
8738     # For Solaris; some versions of Sun CC require a space after -R and
8739     # others require no space.  Words are not sufficient . . . .
8740     case `(uname -sr) 2>/dev/null` in
8741     "SunOS 5"*)
8742       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8743 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8744       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8745       cat >conftest.$ac_ext <<_ACEOF
8746 #line $LINENO "configure"
8747 /* confdefs.h.  */
8748 _ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h.  */
8752
8753 int
8754 main ()
8755 {
8756
8757   ;
8758   return 0;
8759 }
8760 _ACEOF
8761 rm -f conftest.$ac_objext conftest$ac_exeext
8762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8763   (eval $ac_link) 2>&5
8764   ac_status=$?
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); } &&
8767          { ac_try='test -s conftest$ac_exeext'
8768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769   (eval $ac_try) 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); }; }; then
8773   ac_R_nospace=yes
8774 else
8775   echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8777
8778 ac_R_nospace=no
8779 fi
8780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8781       if test $ac_R_nospace = yes; then
8782         echo "$as_me:$LINENO: result: no" >&5
8783 echo "${ECHO_T}no" >&6
8784         X_LIBS="$X_LIBS -R$x_libraries"
8785       else
8786         LIBS="$ac_xsave_LIBS -R $x_libraries"
8787         cat >conftest.$ac_ext <<_ACEOF
8788 #line $LINENO "configure"
8789 /* confdefs.h.  */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h.  */
8794
8795 int
8796 main ()
8797 {
8798
8799   ;
8800   return 0;
8801 }
8802 _ACEOF
8803 rm -f conftest.$ac_objext conftest$ac_exeext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805   (eval $ac_link) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); } &&
8809          { ac_try='test -s conftest$ac_exeext'
8810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811   (eval $ac_try) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; }; then
8815   ac_R_space=yes
8816 else
8817   echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820 ac_R_space=no
8821 fi
8822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8823         if test $ac_R_space = yes; then
8824           echo "$as_me:$LINENO: result: yes" >&5
8825 echo "${ECHO_T}yes" >&6
8826           X_LIBS="$X_LIBS -R $x_libraries"
8827         else
8828           echo "$as_me:$LINENO: result: neither works" >&5
8829 echo "${ECHO_T}neither works" >&6
8830         fi
8831       fi
8832       LIBS=$ac_xsave_LIBS
8833     esac
8834   fi
8835
8836   # Check for system-dependent libraries X programs must link with.
8837   # Do this before checking for the system-independent R6 libraries
8838   # (-lICE), since we may need -lsocket or whatever for X linking.
8839
8840   if test "$ISC" = yes; then
8841     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8842   else
8843     # Martyn Johnson says this is needed for Ultrix, if the X
8844     # libraries were built with DECnet support.  And Karl Berry says
8845     # the Alpha needs dnet_stub (dnet does not exist).
8846     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8847     cat >conftest.$ac_ext <<_ACEOF
8848 #line $LINENO "configure"
8849 /* confdefs.h.  */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h.  */
8854
8855 /* Override any gcc2 internal prototype to avoid an error.  */
8856 #ifdef __cplusplus
8857 extern "C"
8858 #endif
8859 /* We use char because int might match the return type of a gcc2
8860    builtin and then its argument prototype would still apply.  */
8861 char XOpenDisplay ();
8862 int
8863 main ()
8864 {
8865 XOpenDisplay ();
8866   ;
8867   return 0;
8868 }
8869 _ACEOF
8870 rm -f conftest.$ac_objext conftest$ac_exeext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8872   (eval $ac_link) 2>&5
8873   ac_status=$?
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); } &&
8876          { ac_try='test -s conftest$ac_exeext'
8877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; }; then
8882   :
8883 else
8884   echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8886
8887 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8888 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8889 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8890   echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892   ac_check_lib_save_LIBS=$LIBS
8893 LIBS="-ldnet  $LIBS"
8894 cat >conftest.$ac_ext <<_ACEOF
8895 #line $LINENO "configure"
8896 /* confdefs.h.  */
8897 _ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h.  */
8901
8902 /* Override any gcc2 internal prototype to avoid an error.  */
8903 #ifdef __cplusplus
8904 extern "C"
8905 #endif
8906 /* We use char because int might match the return type of a gcc2
8907    builtin and then its argument prototype would still apply.  */
8908 char dnet_ntoa ();
8909 int
8910 main ()
8911 {
8912 dnet_ntoa ();
8913   ;
8914   return 0;
8915 }
8916 _ACEOF
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919   (eval $ac_link) 2>&5
8920   ac_status=$?
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); } &&
8923          { ac_try='test -s conftest$ac_exeext'
8924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925   (eval $ac_try) 2>&5
8926   ac_status=$?
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); }; }; then
8929   ac_cv_lib_dnet_dnet_ntoa=yes
8930 else
8931   echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8933
8934 ac_cv_lib_dnet_dnet_ntoa=no
8935 fi
8936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8937 LIBS=$ac_check_lib_save_LIBS
8938 fi
8939 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8940 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8941 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8942   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8943 fi
8944
8945     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8946       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8947 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8948 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8949   echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
8951   ac_check_lib_save_LIBS=$LIBS
8952 LIBS="-ldnet_stub  $LIBS"
8953 cat >conftest.$ac_ext <<_ACEOF
8954 #line $LINENO "configure"
8955 /* confdefs.h.  */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h.  */
8960
8961 /* Override any gcc2 internal prototype to avoid an error.  */
8962 #ifdef __cplusplus
8963 extern "C"
8964 #endif
8965 /* We use char because int might match the return type of a gcc2
8966    builtin and then its argument prototype would still apply.  */
8967 char dnet_ntoa ();
8968 int
8969 main ()
8970 {
8971 dnet_ntoa ();
8972   ;
8973   return 0;
8974 }
8975 _ACEOF
8976 rm -f conftest.$ac_objext conftest$ac_exeext
8977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8978   (eval $ac_link) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); } &&
8982          { ac_try='test -s conftest$ac_exeext'
8983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984   (eval $ac_try) 2>&5
8985   ac_status=$?
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); }; }; then
8988   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8989 else
8990   echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8992
8993 ac_cv_lib_dnet_stub_dnet_ntoa=no
8994 fi
8995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8996 LIBS=$ac_check_lib_save_LIBS
8997 fi
8998 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8999 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9000 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9001   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9002 fi
9003
9004     fi
9005 fi
9006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9007     LIBS="$ac_xsave_LIBS"
9008
9009     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9010     # to get the SysV transport functions.
9011     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9012     # needs -lnsl.
9013     # The nsl library prevents programs from opening the X display
9014     # on Irix 5.2, according to T.E. Dickey.
9015     # The functions gethostbyname, getservbyname, and inet_addr are
9016     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9017     echo "$as_me:$LINENO: checking for gethostbyname" >&5
9018 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9019 if test "${ac_cv_func_gethostbyname+set}" = set; then
9020   echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022   cat >conftest.$ac_ext <<_ACEOF
9023 #line $LINENO "configure"
9024 /* confdefs.h.  */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h.  */
9029 /* System header to define __stub macros and hopefully few prototypes,
9030     which can conflict with char gethostbyname (); below.
9031     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9032     <limits.h> exists even on freestanding compilers.  */
9033 #ifdef __STDC__
9034 # include <limits.h>
9035 #else
9036 # include <assert.h>
9037 #endif
9038 /* Override any gcc2 internal prototype to avoid an error.  */
9039 #ifdef __cplusplus
9040 extern "C"
9041 {
9042 #endif
9043 /* We use char because int might match the return type of a gcc2
9044    builtin and then its argument prototype would still apply.  */
9045 char gethostbyname ();
9046 /* The GNU C library defines this for functions which it implements
9047     to always fail with ENOSYS.  Some functions are actually named
9048     something starting with __ and the normal name is an alias.  */
9049 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9050 choke me
9051 #else
9052 char (*f) () = gethostbyname;
9053 #endif
9054 #ifdef __cplusplus
9055 }
9056 #endif
9057
9058 int
9059 main ()
9060 {
9061 return f != gethostbyname;
9062   ;
9063   return 0;
9064 }
9065 _ACEOF
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9068   (eval $ac_link) 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); } &&
9072          { ac_try='test -s conftest$ac_exeext'
9073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074   (eval $ac_try) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; }; then
9078   ac_cv_func_gethostbyname=yes
9079 else
9080   echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9082
9083 ac_cv_func_gethostbyname=no
9084 fi
9085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9086 fi
9087 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9088 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9089
9090     if test $ac_cv_func_gethostbyname = no; then
9091       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9092 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9093 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9094   echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096   ac_check_lib_save_LIBS=$LIBS
9097 LIBS="-lnsl  $LIBS"
9098 cat >conftest.$ac_ext <<_ACEOF
9099 #line $LINENO "configure"
9100 /* confdefs.h.  */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h.  */
9105
9106 /* Override any gcc2 internal prototype to avoid an error.  */
9107 #ifdef __cplusplus
9108 extern "C"
9109 #endif
9110 /* We use char because int might match the return type of a gcc2
9111    builtin and then its argument prototype would still apply.  */
9112 char gethostbyname ();
9113 int
9114 main ()
9115 {
9116 gethostbyname ();
9117   ;
9118   return 0;
9119 }
9120 _ACEOF
9121 rm -f conftest.$ac_objext conftest$ac_exeext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123   (eval $ac_link) 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); } &&
9127          { ac_try='test -s conftest$ac_exeext'
9128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129   (eval $ac_try) 2>&5
9130   ac_status=$?
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); }; }; then
9133   ac_cv_lib_nsl_gethostbyname=yes
9134 else
9135   echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138 ac_cv_lib_nsl_gethostbyname=no
9139 fi
9140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9141 LIBS=$ac_check_lib_save_LIBS
9142 fi
9143 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9144 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9145 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9146   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9147 fi
9148
9149       if test $ac_cv_lib_nsl_gethostbyname = no; then
9150         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9151 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9152 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9153   echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9155   ac_check_lib_save_LIBS=$LIBS
9156 LIBS="-lbsd  $LIBS"
9157 cat >conftest.$ac_ext <<_ACEOF
9158 #line $LINENO "configure"
9159 /* confdefs.h.  */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h.  */
9164
9165 /* Override any gcc2 internal prototype to avoid an error.  */
9166 #ifdef __cplusplus
9167 extern "C"
9168 #endif
9169 /* We use char because int might match the return type of a gcc2
9170    builtin and then its argument prototype would still apply.  */
9171 char gethostbyname ();
9172 int
9173 main ()
9174 {
9175 gethostbyname ();
9176   ;
9177   return 0;
9178 }
9179 _ACEOF
9180 rm -f conftest.$ac_objext conftest$ac_exeext
9181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9182   (eval $ac_link) 2>&5
9183   ac_status=$?
9184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185   (exit $ac_status); } &&
9186          { ac_try='test -s conftest$ac_exeext'
9187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188   (eval $ac_try) 2>&5
9189   ac_status=$?
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); }; }; then
9192   ac_cv_lib_bsd_gethostbyname=yes
9193 else
9194   echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197 ac_cv_lib_bsd_gethostbyname=no
9198 fi
9199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9200 LIBS=$ac_check_lib_save_LIBS
9201 fi
9202 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9203 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9204 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9205   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9206 fi
9207
9208       fi
9209     fi
9210
9211     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9212     # socket/setsockopt and other routines are undefined under SCO ODT
9213     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9214     # on later versions), says Simon Leinen: it contains gethostby*
9215     # variants that don't use the name server (or something).  -lsocket
9216     # must be given before -lnsl if both are needed.  We assume that
9217     # if connect needs -lnsl, so does gethostbyname.
9218     echo "$as_me:$LINENO: checking for connect" >&5
9219 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9220 if test "${ac_cv_func_connect+set}" = set; then
9221   echo $ECHO_N "(cached) $ECHO_C" >&6
9222 else
9223   cat >conftest.$ac_ext <<_ACEOF
9224 #line $LINENO "configure"
9225 /* confdefs.h.  */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h.  */
9230 /* System header to define __stub macros and hopefully few prototypes,
9231     which can conflict with char connect (); below.
9232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9233     <limits.h> exists even on freestanding compilers.  */
9234 #ifdef __STDC__
9235 # include <limits.h>
9236 #else
9237 # include <assert.h>
9238 #endif
9239 /* Override any gcc2 internal prototype to avoid an error.  */
9240 #ifdef __cplusplus
9241 extern "C"
9242 {
9243 #endif
9244 /* We use char because int might match the return type of a gcc2
9245    builtin and then its argument prototype would still apply.  */
9246 char connect ();
9247 /* The GNU C library defines this for functions which it implements
9248     to always fail with ENOSYS.  Some functions are actually named
9249     something starting with __ and the normal name is an alias.  */
9250 #if defined (__stub_connect) || defined (__stub___connect)
9251 choke me
9252 #else
9253 char (*f) () = connect;
9254 #endif
9255 #ifdef __cplusplus
9256 }
9257 #endif
9258
9259 int
9260 main ()
9261 {
9262 return f != connect;
9263   ;
9264   return 0;
9265 }
9266 _ACEOF
9267 rm -f conftest.$ac_objext conftest$ac_exeext
9268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9269   (eval $ac_link) 2>&5
9270   ac_status=$?
9271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272   (exit $ac_status); } &&
9273          { ac_try='test -s conftest$ac_exeext'
9274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275   (eval $ac_try) 2>&5
9276   ac_status=$?
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); }; }; then
9279   ac_cv_func_connect=yes
9280 else
9281   echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9283
9284 ac_cv_func_connect=no
9285 fi
9286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9287 fi
9288 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9289 echo "${ECHO_T}$ac_cv_func_connect" >&6
9290
9291     if test $ac_cv_func_connect = no; then
9292       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9293 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9294 if test "${ac_cv_lib_socket_connect+set}" = set; then
9295   echo $ECHO_N "(cached) $ECHO_C" >&6
9296 else
9297   ac_check_lib_save_LIBS=$LIBS
9298 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9299 cat >conftest.$ac_ext <<_ACEOF
9300 #line $LINENO "configure"
9301 /* confdefs.h.  */
9302 _ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h.  */
9306
9307 /* Override any gcc2 internal prototype to avoid an error.  */
9308 #ifdef __cplusplus
9309 extern "C"
9310 #endif
9311 /* We use char because int might match the return type of a gcc2
9312    builtin and then its argument prototype would still apply.  */
9313 char connect ();
9314 int
9315 main ()
9316 {
9317 connect ();
9318   ;
9319   return 0;
9320 }
9321 _ACEOF
9322 rm -f conftest.$ac_objext conftest$ac_exeext
9323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324   (eval $ac_link) 2>&5
9325   ac_status=$?
9326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327   (exit $ac_status); } &&
9328          { ac_try='test -s conftest$ac_exeext'
9329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330   (eval $ac_try) 2>&5
9331   ac_status=$?
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); }; }; then
9334   ac_cv_lib_socket_connect=yes
9335 else
9336   echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9338
9339 ac_cv_lib_socket_connect=no
9340 fi
9341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9342 LIBS=$ac_check_lib_save_LIBS
9343 fi
9344 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9345 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9346 if test $ac_cv_lib_socket_connect = yes; then
9347   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9348 fi
9349
9350     fi
9351
9352     # Guillermo Gomez says -lposix is necessary on A/UX.
9353     echo "$as_me:$LINENO: checking for remove" >&5
9354 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9355 if test "${ac_cv_func_remove+set}" = set; then
9356   echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358   cat >conftest.$ac_ext <<_ACEOF
9359 #line $LINENO "configure"
9360 /* confdefs.h.  */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h.  */
9365 /* System header to define __stub macros and hopefully few prototypes,
9366     which can conflict with char remove (); below.
9367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9368     <limits.h> exists even on freestanding compilers.  */
9369 #ifdef __STDC__
9370 # include <limits.h>
9371 #else
9372 # include <assert.h>
9373 #endif
9374 /* Override any gcc2 internal prototype to avoid an error.  */
9375 #ifdef __cplusplus
9376 extern "C"
9377 {
9378 #endif
9379 /* We use char because int might match the return type of a gcc2
9380    builtin and then its argument prototype would still apply.  */
9381 char remove ();
9382 /* The GNU C library defines this for functions which it implements
9383     to always fail with ENOSYS.  Some functions are actually named
9384     something starting with __ and the normal name is an alias.  */
9385 #if defined (__stub_remove) || defined (__stub___remove)
9386 choke me
9387 #else
9388 char (*f) () = remove;
9389 #endif
9390 #ifdef __cplusplus
9391 }
9392 #endif
9393
9394 int
9395 main ()
9396 {
9397 return f != remove;
9398   ;
9399   return 0;
9400 }
9401 _ACEOF
9402 rm -f conftest.$ac_objext conftest$ac_exeext
9403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404   (eval $ac_link) 2>&5
9405   ac_status=$?
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); } &&
9408          { ac_try='test -s conftest$ac_exeext'
9409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410   (eval $ac_try) 2>&5
9411   ac_status=$?
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); }; }; then
9414   ac_cv_func_remove=yes
9415 else
9416   echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 ac_cv_func_remove=no
9420 fi
9421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9422 fi
9423 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9424 echo "${ECHO_T}$ac_cv_func_remove" >&6
9425
9426     if test $ac_cv_func_remove = no; then
9427       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9428 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9429 if test "${ac_cv_lib_posix_remove+set}" = set; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432   ac_check_lib_save_LIBS=$LIBS
9433 LIBS="-lposix  $LIBS"
9434 cat >conftest.$ac_ext <<_ACEOF
9435 #line $LINENO "configure"
9436 /* confdefs.h.  */
9437 _ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h.  */
9441
9442 /* Override any gcc2 internal prototype to avoid an error.  */
9443 #ifdef __cplusplus
9444 extern "C"
9445 #endif
9446 /* We use char because int might match the return type of a gcc2
9447    builtin and then its argument prototype would still apply.  */
9448 char remove ();
9449 int
9450 main ()
9451 {
9452 remove ();
9453   ;
9454   return 0;
9455 }
9456 _ACEOF
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459   (eval $ac_link) 2>&5
9460   ac_status=$?
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); } &&
9463          { ac_try='test -s conftest$ac_exeext'
9464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465   (eval $ac_try) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); }; }; then
9469   ac_cv_lib_posix_remove=yes
9470 else
9471   echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9473
9474 ac_cv_lib_posix_remove=no
9475 fi
9476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9477 LIBS=$ac_check_lib_save_LIBS
9478 fi
9479 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9480 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9481 if test $ac_cv_lib_posix_remove = yes; then
9482   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9483 fi
9484
9485     fi
9486
9487     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9488     echo "$as_me:$LINENO: checking for shmat" >&5
9489 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9490 if test "${ac_cv_func_shmat+set}" = set; then
9491   echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493   cat >conftest.$ac_ext <<_ACEOF
9494 #line $LINENO "configure"
9495 /* confdefs.h.  */
9496 _ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h.  */
9500 /* System header to define __stub macros and hopefully few prototypes,
9501     which can conflict with char shmat (); below.
9502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9503     <limits.h> exists even on freestanding compilers.  */
9504 #ifdef __STDC__
9505 # include <limits.h>
9506 #else
9507 # include <assert.h>
9508 #endif
9509 /* Override any gcc2 internal prototype to avoid an error.  */
9510 #ifdef __cplusplus
9511 extern "C"
9512 {
9513 #endif
9514 /* We use char because int might match the return type of a gcc2
9515    builtin and then its argument prototype would still apply.  */
9516 char shmat ();
9517 /* The GNU C library defines this for functions which it implements
9518     to always fail with ENOSYS.  Some functions are actually named
9519     something starting with __ and the normal name is an alias.  */
9520 #if defined (__stub_shmat) || defined (__stub___shmat)
9521 choke me
9522 #else
9523 char (*f) () = shmat;
9524 #endif
9525 #ifdef __cplusplus
9526 }
9527 #endif
9528
9529 int
9530 main ()
9531 {
9532 return f != shmat;
9533   ;
9534   return 0;
9535 }
9536 _ACEOF
9537 rm -f conftest.$ac_objext conftest$ac_exeext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9539   (eval $ac_link) 2>&5
9540   ac_status=$?
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); } &&
9543          { ac_try='test -s conftest$ac_exeext'
9544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545   (eval $ac_try) 2>&5
9546   ac_status=$?
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); }; }; then
9549   ac_cv_func_shmat=yes
9550 else
9551   echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9553
9554 ac_cv_func_shmat=no
9555 fi
9556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9557 fi
9558 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9559 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9560
9561     if test $ac_cv_func_shmat = no; then
9562       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9563 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9564 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9565   echo $ECHO_N "(cached) $ECHO_C" >&6
9566 else
9567   ac_check_lib_save_LIBS=$LIBS
9568 LIBS="-lipc  $LIBS"
9569 cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9571 /* confdefs.h.  */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h.  */
9576
9577 /* Override any gcc2 internal prototype to avoid an error.  */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 /* We use char because int might match the return type of a gcc2
9582    builtin and then its argument prototype would still apply.  */
9583 char shmat ();
9584 int
9585 main ()
9586 {
9587 shmat ();
9588   ;
9589   return 0;
9590 }
9591 _ACEOF
9592 rm -f conftest.$ac_objext conftest$ac_exeext
9593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594   (eval $ac_link) 2>&5
9595   ac_status=$?
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); } &&
9598          { ac_try='test -s conftest$ac_exeext'
9599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600   (eval $ac_try) 2>&5
9601   ac_status=$?
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); }; }; then
9604   ac_cv_lib_ipc_shmat=yes
9605 else
9606   echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9608
9609 ac_cv_lib_ipc_shmat=no
9610 fi
9611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9612 LIBS=$ac_check_lib_save_LIBS
9613 fi
9614 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9615 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9616 if test $ac_cv_lib_ipc_shmat = yes; then
9617   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9618 fi
9619
9620     fi
9621   fi
9622
9623   # Check for libraries that X11R6 Xt/Xaw programs need.
9624   ac_save_LDFLAGS=$LDFLAGS
9625   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9626   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9627   # check for ICE first), but we must link in the order -lSM -lICE or
9628   # we get undefined symbols.  So assume we have SM if we have ICE.
9629   # These have to be linked with before -lX11, unlike the other
9630   # libraries we check for below, so use a different variable.
9631   # John Interrante, Karl Berry
9632   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9633 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9634 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9635   echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637   ac_check_lib_save_LIBS=$LIBS
9638 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9639 cat >conftest.$ac_ext <<_ACEOF
9640 #line $LINENO "configure"
9641 /* confdefs.h.  */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h.  */
9646
9647 /* Override any gcc2 internal prototype to avoid an error.  */
9648 #ifdef __cplusplus
9649 extern "C"
9650 #endif
9651 /* We use char because int might match the return type of a gcc2
9652    builtin and then its argument prototype would still apply.  */
9653 char IceConnectionNumber ();
9654 int
9655 main ()
9656 {
9657 IceConnectionNumber ();
9658   ;
9659   return 0;
9660 }
9661 _ACEOF
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664   (eval $ac_link) 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); } &&
9668          { ac_try='test -s conftest$ac_exeext'
9669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670   (eval $ac_try) 2>&5
9671   ac_status=$?
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); }; }; then
9674   ac_cv_lib_ICE_IceConnectionNumber=yes
9675 else
9676   echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9678
9679 ac_cv_lib_ICE_IceConnectionNumber=no
9680 fi
9681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9682 LIBS=$ac_check_lib_save_LIBS
9683 fi
9684 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9685 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9686 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9687   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9688 fi
9689
9690   LDFLAGS=$ac_save_LDFLAGS
9691
9692 fi
9693
9694
9695
9696
9697
9698
9699
9700
9701 X_TOOLKIT_LIBS="-lXt"
9702 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9703
9704 our_saved_LDFLAGS="$LDFLAGS"
9705 LDFLAGS="$X_LIBS $LDFLAGS"
9706 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9707 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9708 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9709   echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711   ac_check_lib_save_LIBS=$LIBS
9712 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9713 cat >conftest.$ac_ext <<_ACEOF
9714 #line $LINENO "configure"
9715 /* confdefs.h.  */
9716 _ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h.  */
9720
9721 /* Override any gcc2 internal prototype to avoid an error.  */
9722 #ifdef __cplusplus
9723 extern "C"
9724 #endif
9725 /* We use char because int might match the return type of a gcc2
9726    builtin and then its argument prototype would still apply.  */
9727 char XtToolkitThreadInitialize ();
9728 int
9729 main ()
9730 {
9731 XtToolkitThreadInitialize ();
9732   ;
9733   return 0;
9734 }
9735 _ACEOF
9736 rm -f conftest.$ac_objext conftest$ac_exeext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738   (eval $ac_link) 2>&5
9739   ac_status=$?
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } &&
9742          { ac_try='test -s conftest$ac_exeext'
9743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744   (eval $ac_try) 2>&5
9745   ac_status=$?
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); }; }; then
9748   ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9749 else
9750   echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.$ac_ext >&5
9752
9753 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9754 fi
9755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9756 LIBS=$ac_check_lib_save_LIBS
9757 fi
9758 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9759 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9760 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9761
9762 cat >>confdefs.h <<\_ACEOF
9763 #define X_THREAD_SUPPORT 1
9764 _ACEOF
9765
9766 fi
9767
9768 LDFLAGS="$our_saved_LDFLAGS"
9769
9770
9771
9772 if test "x$no_x" = "xyes"; then
9773   NO_X_TRUE=
9774   NO_X_FALSE='#'
9775 else
9776   NO_X_TRUE='#'
9777   NO_X_FALSE=
9778 fi
9779
9780
9781 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9782
9783
9784 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9785
9786 echo "$as_me:$LINENO: checking for X" >&5
9787 echo $ECHO_N "checking for X... $ECHO_C" >&6
9788 if test "$no_x" != "yes" ; then
9789
9790 cat >>confdefs.h <<\_ACEOF
9791 #define HAVE_X11 1
9792 _ACEOF
9793
9794   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
9795   my_includes="$my_includes -I/usr/X11R6/include"
9796   ctlib_graphics="$ctlibs_base -lctgraphics"
9797   echo "$as_me:$LINENO: result: yes" >&5
9798 echo "${ECHO_T}yes" >&6
9799   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9800   if test "$libgl" = "true" ; then
9801     # Removed "-lglut" for Mac OS X compilation
9802     ctlib_graphics="$ctlib_graphics -lGL -lGLU"
9803     if test "$wxwin" = "true" ; then
9804       if  "$wx_gtk" ; then
9805         ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.4"
9806       elif  "$wx_mac" ; then
9807         ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
9808       fi
9809     fi
9810   fi
9811   if test "$wxwin" = "true" ; then
9812
9813 cat >>confdefs.h <<\_ACEOF
9814 #define HAVE_SGP 1
9815 _ACEOF
9816
9817   fi
9818 else
9819   echo "$as_me:$LINENO: result: no" >&5
9820 echo "${ECHO_T}no" >&6
9821 fi
9822
9823
9824
9825 if test "$wxwin" = "true"; then
9826   HAVE_SGP_TRUE=
9827   HAVE_SGP_FALSE='#'
9828 else
9829   HAVE_SGP_TRUE='#'
9830   HAVE_SGP_FALSE=
9831 fi
9832
9833
9834 if test "$png" = "true" ; then
9835   ctlibs_tools="$ctlibs_tools -lpng"
9836 fi
9837 if test "$zlib" = "true" ; then
9838   ctlibs_tools="$ctlibs_tools -lz"
9839 fi
9840 if test "$fftw" = "true" ; then
9841   ctlibs_tools="$ctlibs_tools -lfftw3"
9842 fi
9843 if test "$ctn" = "true"; then
9844   ctlibs_tools="$ctlibs_tools -lctn"
9845 fi
9846
9847 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9848 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9849 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9850   echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852   ac_check_lib_save_LIBS=$LIBS
9853 LIBS="-ldmallocxx  $LIBS"
9854 cat >conftest.$ac_ext <<_ACEOF
9855 #line $LINENO "configure"
9856 /* confdefs.h.  */
9857 _ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h.  */
9861
9862
9863 int
9864 main ()
9865 {
9866 main ();
9867   ;
9868   return 0;
9869 }
9870 _ACEOF
9871 rm -f conftest.$ac_objext conftest$ac_exeext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9873   (eval $ac_link) 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } &&
9877          { ac_try='test -s conftest$ac_exeext'
9878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879   (eval $ac_try) 2>&5
9880   ac_status=$?
9881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882   (exit $ac_status); }; }; then
9883   ac_cv_lib_dmallocxx_main=yes
9884 else
9885   echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9887
9888 ac_cv_lib_dmallocxx_main=no
9889 fi
9890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9891 LIBS=$ac_check_lib_save_LIBS
9892 fi
9893 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9894 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9895 if test $ac_cv_lib_dmallocxx_main = yes; then
9896   dmallocxx=true
9897 else
9898   dmallocxx=false
9899 fi
9900
9901 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9902 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9903 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9904 if test "${enable_dmalloc+set}" = set; then
9905   enableval="$enable_dmalloc"
9906   case "${enableval}" in
9907   yes) usedmalloc=true
9908        echo "$as_me:$LINENO: result: yes" >&5
9909 echo "${ECHO_T}yes" >&6
9910        ;;
9911   no)  usedmalloc=false
9912        echo "$as_me:$LINENO: result: no" >&5
9913 echo "${ECHO_T}no" >&6
9914        ;;
9915   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9916 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9917        ;;
9918 esac
9919 else
9920   usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9921 echo "${ECHO_T}no" >&6
9922 fi;
9923
9924 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9925   ctlibs_tools="$ctlibs_tools -ldmallocxx"
9926
9927 cat >>confdefs.h <<\_ACEOF
9928 #define HAVE_DMALLOC 1
9929 _ACEOF
9930
9931   echo "$as_me:$LINENO: result: Using dmalloc" >&5
9932 echo "${ECHO_T}Using dmalloc" >&6
9933 fi
9934
9935 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9936 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9937 if test "${ac_cv_lib_efence_main+set}" = set; then
9938   echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940   ac_check_lib_save_LIBS=$LIBS
9941 LIBS="-lefence  $LIBS"
9942 cat >conftest.$ac_ext <<_ACEOF
9943 #line $LINENO "configure"
9944 /* confdefs.h.  */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h.  */
9949
9950
9951 int
9952 main ()
9953 {
9954 main ();
9955   ;
9956   return 0;
9957 }
9958 _ACEOF
9959 rm -f conftest.$ac_objext conftest$ac_exeext
9960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9961   (eval $ac_link) 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } &&
9965          { ac_try='test -s conftest$ac_exeext'
9966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967   (eval $ac_try) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }; }; then
9971   ac_cv_lib_efence_main=yes
9972 else
9973   echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9975
9976 ac_cv_lib_efence_main=no
9977 fi
9978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9979 LIBS=$ac_check_lib_save_LIBS
9980 fi
9981 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9982 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9983 if test $ac_cv_lib_efence_main = yes; then
9984   efence=true
9985 else
9986   efence=false
9987 fi
9988
9989 echo "$as_me:$LINENO: checking for enable-efence" >&5
9990 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9991 # Check whether --enable-efence or --disable-efence was given.
9992 if test "${enable_efence+set}" = set; then
9993   enableval="$enable_efence"
9994   case "${enableval}" in
9995   yes) useefence=true
9996        echo "$as_me:$LINENO: result: yes" >&5
9997 echo "${ECHO_T}yes" >&6
9998        ;;
9999   no)  useefence=false
10000        echo "$as_me:$LINENO: result: no" >&5
10001 echo "${ECHO_T}no" >&6
10002        ;;
10003   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
10004 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
10005        ;;
10006 esac
10007 else
10008   useefence=false; echo "$as_me:$LINENO: result: no" >&5
10009 echo "${ECHO_T}no" >&6
10010 fi;
10011
10012 if test "$efence" = "true" -a "$useefence" = "true" ; then
10013   ctlibs_tools="$ctlibs_tools -lefence"
10014
10015 cat >>confdefs.h <<\_ACEOF
10016 #define HAVE_EFENCE 1
10017 _ACEOF
10018
10019   echo "$as_me:$LINENO: result: Using efence" >&5
10020 echo "${ECHO_T}Using efence" >&6
10021 fi
10022
10023 if test "$wxwin" = "true" ; then
10024   if  "$wx_gtk" = "true"  ||  "$wx_mac" == "true"  ; then
10025     wxcflags=`$wxconfig --cflags`
10026     wxlibs=`$wxconfig --libs`
10027   else
10028         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
10029         wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
10030   fi
10031   CFLAGS="$CFLAGS -I../include $wxcflags"
10032   ctlib_graphics="$ctlib_graphics $wxlibs"
10033 fi
10034
10035
10036
10037
10038 if test "$wxwin"="true"; then
10039   HAVE_WXWINDOWS_TRUE=
10040   HAVE_WXWINDOWS_FALSE='#'
10041 else
10042   HAVE_WXWINDOWS_TRUE='#'
10043   HAVE_WXWINDOWS_FALSE=
10044 fi
10045
10046
10047 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
10048 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
10049
10050
10051 if test -n "$lamdir" ; then
10052   lamprograms="ctsimtext-lam"
10053
10054   lamdefs="$CFLAGS"
10055
10056 fi
10057
10058 CXXFLAGS="$CFLAGS"
10059
10060                                                                                                                                                                           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"
10061
10062
10063 cat >confcache <<\_ACEOF
10064 # This file is a shell script that caches the results of configure
10065 # tests run on this system so they can be shared between configure
10066 # scripts and configure runs, see configure's option --config-cache.
10067 # It is not useful on other systems.  If it contains results you don't
10068 # want to keep, you may remove or edit it.
10069 #
10070 # config.status only pays attention to the cache file if you give it
10071 # the --recheck option to rerun configure.
10072 #
10073 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10074 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10075 # following values.
10076
10077 _ACEOF
10078
10079 # The following way of writing the cache mishandles newlines in values,
10080 # but we know of no workaround that is simple, portable, and efficient.
10081 # So, don't put newlines in cache variables' values.
10082 # Ultrix sh set writes to stderr and can't be redirected directly,
10083 # and sets the high bit in the cache file unless we assign to the vars.
10084 {
10085   (set) 2>&1 |
10086     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10087     *ac_space=\ *)
10088       # `set' does not quote correctly, so add quotes (double-quote
10089       # substitution turns \\\\ into \\, and sed turns \\ into \).
10090       sed -n \
10091         "s/'/'\\\\''/g;
10092           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10093       ;;
10094     *)
10095       # `set' quotes correctly as required by POSIX, so do not add quotes.
10096       sed -n \
10097         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10098       ;;
10099     esac;
10100 } |
10101   sed '
10102      t clear
10103      : clear
10104      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10105      t end
10106      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10107      : end' >>confcache
10108 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10109   if test -w $cache_file; then
10110     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10111     cat confcache >$cache_file
10112   else
10113     echo "not updating unwritable cache $cache_file"
10114   fi
10115 fi
10116 rm -f confcache
10117
10118 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10119 # Let make expand exec_prefix.
10120 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10121
10122 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10123 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10124 # trailing colons and then remove the whole line if VPATH becomes empty
10125 # (actually we leave an empty line to preserve line numbers).
10126 if test "x$srcdir" = x.; then
10127   ac_vpsub='/^[         ]*VPATH[        ]*=/{
10128 s/:*\$(srcdir):*/:/;
10129 s/:*\${srcdir}:*/:/;
10130 s/:*@srcdir@:*/:/;
10131 s/^\([^=]*=[    ]*\):*/\1/;
10132 s/:*$//;
10133 s/^[^=]*=[      ]*$//;
10134 }'
10135 fi
10136
10137 DEFS=-DHAVE_CONFIG_H
10138
10139 ac_libobjs=
10140 ac_ltlibobjs=
10141 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10142   # 1. Remove the extension, and $U if already installed.
10143   ac_i=`echo "$ac_i" |
10144          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10145   # 2. Add them.
10146   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10147   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10148 done
10149 LIBOBJS=$ac_libobjs
10150
10151 LTLIBOBJS=$ac_ltlibobjs
10152
10153
10154 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10155   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10156 Usually this means the macro was only invoked conditionally." >&5
10157 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10158 Usually this means the macro was only invoked conditionally." >&2;}
10159    { (exit 1); exit 1; }; }
10160 fi
10161 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10162   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10163 Usually this means the macro was only invoked conditionally." >&5
10164 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10165 Usually this means the macro was only invoked conditionally." >&2;}
10166    { (exit 1); exit 1; }; }
10167 fi
10168 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10169   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10170 Usually this means the macro was only invoked conditionally." >&5
10171 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10172 Usually this means the macro was only invoked conditionally." >&2;}
10173    { (exit 1); exit 1; }; }
10174 fi
10175 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10176   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10177 Usually this means the macro was only invoked conditionally." >&5
10178 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10179 Usually this means the macro was only invoked conditionally." >&2;}
10180    { (exit 1); exit 1; }; }
10181 fi
10182 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
10183   { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10184 Usually this means the macro was only invoked conditionally." >&5
10185 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10186 Usually this means the macro was only invoked conditionally." >&2;}
10187    { (exit 1); exit 1; }; }
10188 fi
10189 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
10190   { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
10191 Usually this means the macro was only invoked conditionally." >&5
10192 echo "$as_me: error: conditional \"DEBUG\" was never defined.
10193 Usually this means the macro was only invoked conditionally." >&2;}
10194    { (exit 1); exit 1; }; }
10195 fi
10196 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
10197   { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
10198 Usually this means the macro was only invoked conditionally." >&5
10199 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
10200 Usually this means the macro was only invoked conditionally." >&2;}
10201    { (exit 1); exit 1; }; }
10202 fi
10203 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
10204   { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
10205 Usually this means the macro was only invoked conditionally." >&5
10206 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
10207 Usually this means the macro was only invoked conditionally." >&2;}
10208    { (exit 1); exit 1; }; }
10209 fi
10210 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
10211   { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
10212 Usually this means the macro was only invoked conditionally." >&5
10213 echo "$as_me: error: conditional \"NO_X\" was never defined.
10214 Usually this means the macro was only invoked conditionally." >&2;}
10215    { (exit 1); exit 1; }; }
10216 fi
10217 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
10218   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
10219 Usually this means the macro was only invoked conditionally." >&5
10220 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
10221 Usually this means the macro was only invoked conditionally." >&2;}
10222    { (exit 1); exit 1; }; }
10223 fi
10224 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
10225   { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10226 Usually this means the macro was only invoked conditionally." >&5
10227 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
10228 Usually this means the macro was only invoked conditionally." >&2;}
10229    { (exit 1); exit 1; }; }
10230 fi
10231
10232 : ${CONFIG_STATUS=./config.status}
10233 ac_clean_files_save=$ac_clean_files
10234 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10235 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10236 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10237 cat >$CONFIG_STATUS <<_ACEOF
10238 #! $SHELL
10239 # Generated by $as_me.
10240 # Run this file to recreate the current configuration.
10241 # Compiler output produced by configure, useful for debugging
10242 # configure, is in config.log if it exists.
10243
10244 debug=false
10245 ac_cs_recheck=false
10246 ac_cs_silent=false
10247 SHELL=\${CONFIG_SHELL-$SHELL}
10248 _ACEOF
10249
10250 cat >>$CONFIG_STATUS <<\_ACEOF
10251 ## --------------------- ##
10252 ## M4sh Initialization.  ##
10253 ## --------------------- ##
10254
10255 # Be Bourne compatible
10256 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10257   emulate sh
10258   NULLCMD=:
10259   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10260   # is contrary to our usage.  Disable this feature.
10261   alias -g '${1+"$@"}'='"$@"'
10262 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10263   set -o posix
10264 fi
10265
10266 # Support unset when possible.
10267 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10268   as_unset=unset
10269 else
10270   as_unset=false
10271 fi
10272
10273
10274 # Work around bugs in pre-3.0 UWIN ksh.
10275 $as_unset ENV MAIL MAILPATH
10276 PS1='$ '
10277 PS2='> '
10278 PS4='+ '
10279
10280 # NLS nuisances.
10281 for as_var in \
10282   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10283   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10284   LC_TELEPHONE LC_TIME
10285 do
10286   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10287     eval $as_var=C; export $as_var
10288   else
10289     $as_unset $as_var
10290   fi
10291 done
10292
10293 # Required to use basename.
10294 if expr a : '\(a\)' >/dev/null 2>&1; then
10295   as_expr=expr
10296 else
10297   as_expr=false
10298 fi
10299
10300 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10301   as_basename=basename
10302 else
10303   as_basename=false
10304 fi
10305
10306
10307 # Name of the executable.
10308 as_me=`$as_basename "$0" ||
10309 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10310          X"$0" : 'X\(//\)$' \| \
10311          X"$0" : 'X\(/\)$' \| \
10312          .     : '\(.\)' 2>/dev/null ||
10313 echo X/"$0" |
10314     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10315           /^X\/\(\/\/\)$/{ s//\1/; q; }
10316           /^X\/\(\/\).*/{ s//\1/; q; }
10317           s/.*/./; q'`
10318
10319
10320 # PATH needs CR, and LINENO needs CR and PATH.
10321 # Avoid depending upon Character Ranges.
10322 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10323 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10324 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10325 as_cr_digits='0123456789'
10326 as_cr_alnum=$as_cr_Letters$as_cr_digits
10327
10328 # The user is always right.
10329 if test "${PATH_SEPARATOR+set}" != set; then
10330   echo "#! /bin/sh" >conf$$.sh
10331   echo  "exit 0"   >>conf$$.sh
10332   chmod +x conf$$.sh
10333   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10334     PATH_SEPARATOR=';'
10335   else
10336     PATH_SEPARATOR=:
10337   fi
10338   rm -f conf$$.sh
10339 fi
10340
10341
10342   as_lineno_1=$LINENO
10343   as_lineno_2=$LINENO
10344   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10345   test "x$as_lineno_1" != "x$as_lineno_2" &&
10346   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10347   # Find who we are.  Look in the path if we contain no path at all
10348   # relative or not.
10349   case $0 in
10350     *[\\/]* ) as_myself=$0 ;;
10351     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10353 do
10354   IFS=$as_save_IFS
10355   test -z "$as_dir" && as_dir=.
10356   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10357 done
10358
10359        ;;
10360   esac
10361   # We did not find ourselves, most probably we were run as `sh COMMAND'
10362   # in which case we are not to be found in the path.
10363   if test "x$as_myself" = x; then
10364     as_myself=$0
10365   fi
10366   if test ! -f "$as_myself"; then
10367     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10368 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10369    { (exit 1); exit 1; }; }
10370   fi
10371   case $CONFIG_SHELL in
10372   '')
10373     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10375 do
10376   IFS=$as_save_IFS
10377   test -z "$as_dir" && as_dir=.
10378   for as_base in sh bash ksh sh5; do
10379          case $as_dir in
10380          /*)
10381            if ("$as_dir/$as_base" -c '
10382   as_lineno_1=$LINENO
10383   as_lineno_2=$LINENO
10384   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10385   test "x$as_lineno_1" != "x$as_lineno_2" &&
10386   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10387              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10388              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10389              CONFIG_SHELL=$as_dir/$as_base
10390              export CONFIG_SHELL
10391              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10392            fi;;
10393          esac
10394        done
10395 done
10396 ;;
10397   esac
10398
10399   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10400   # uniformly replaced by the line number.  The first 'sed' inserts a
10401   # line-number line before each line; the second 'sed' does the real
10402   # work.  The second script uses 'N' to pair each line-number line
10403   # with the numbered line, and appends trailing '-' during
10404   # substitution so that $LINENO is not a special case at line end.
10405   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10406   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10407   sed '=' <$as_myself |
10408     sed '
10409       N
10410       s,$,-,
10411       : loop
10412       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10413       t loop
10414       s,-$,,
10415       s,^['$as_cr_digits']*\n,,
10416     ' >$as_me.lineno &&
10417   chmod +x $as_me.lineno ||
10418     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10419 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10420    { (exit 1); exit 1; }; }
10421
10422   # Don't try to exec as it changes $[0], causing all sort of problems
10423   # (the dirname of $[0] is not the place where we might find the
10424   # original and so on.  Autoconf is especially sensible to this).
10425   . ./$as_me.lineno
10426   # Exit status is that of the last command.
10427   exit
10428 }
10429
10430
10431 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10432   *c*,-n*) ECHO_N= ECHO_C='
10433 ' ECHO_T='      ' ;;
10434   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10435   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10436 esac
10437
10438 if expr a : '\(a\)' >/dev/null 2>&1; then
10439   as_expr=expr
10440 else
10441   as_expr=false
10442 fi
10443
10444 rm -f conf$$ conf$$.exe conf$$.file
10445 echo >conf$$.file
10446 if ln -s conf$$.file conf$$ 2>/dev/null; then
10447   # We could just check for DJGPP; but this test a) works b) is more generic
10448   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10449   if test -f conf$$.exe; then
10450     # Don't use ln at all; we don't have any links
10451     as_ln_s='cp -p'
10452   else
10453     as_ln_s='ln -s'
10454   fi
10455 elif ln conf$$.file conf$$ 2>/dev/null; then
10456   as_ln_s=ln
10457 else
10458   as_ln_s='cp -p'
10459 fi
10460 rm -f conf$$ conf$$.exe conf$$.file
10461
10462 if mkdir -p . 2>/dev/null; then
10463   as_mkdir_p=:
10464 else
10465   as_mkdir_p=false
10466 fi
10467
10468 as_executable_p="test -f"
10469
10470 # Sed expression to map a string onto a valid CPP name.
10471 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10472
10473 # Sed expression to map a string onto a valid variable name.
10474 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10475
10476
10477 # IFS
10478 # We need space, tab and new line, in precisely that order.
10479 as_nl='
10480 '
10481 IFS="   $as_nl"
10482
10483 # CDPATH.
10484 $as_unset CDPATH
10485
10486 exec 6>&1
10487
10488 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10489 # report actual input values of CONFIG_FILES etc. instead of their
10490 # values after options handling.  Logging --version etc. is OK.
10491 exec 5>>config.log
10492 {
10493   echo
10494   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10495 ## Running $as_me. ##
10496 _ASBOX
10497 } >&5
10498 cat >&5 <<_CSEOF
10499
10500 This file was extended by $as_me, which was
10501 generated by GNU Autoconf 2.57.  Invocation command line was
10502
10503   CONFIG_FILES    = $CONFIG_FILES
10504   CONFIG_HEADERS  = $CONFIG_HEADERS
10505   CONFIG_LINKS    = $CONFIG_LINKS
10506   CONFIG_COMMANDS = $CONFIG_COMMANDS
10507   $ $0 $@
10508
10509 _CSEOF
10510 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10511 echo >&5
10512 _ACEOF
10513
10514 # Files that config.status was made for.
10515 if test -n "$ac_config_files"; then
10516   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10517 fi
10518
10519 if test -n "$ac_config_headers"; then
10520   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10521 fi
10522
10523 if test -n "$ac_config_links"; then
10524   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10525 fi
10526
10527 if test -n "$ac_config_commands"; then
10528   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10529 fi
10530
10531 cat >>$CONFIG_STATUS <<\_ACEOF
10532
10533 ac_cs_usage="\
10534 \`$as_me' instantiates files from templates according to the
10535 current configuration.
10536
10537 Usage: $0 [OPTIONS] [FILE]...
10538
10539   -h, --help       print this help, then exit
10540   -V, --version    print version number, then exit
10541   -q, --quiet      do not print progress messages
10542   -d, --debug      don't remove temporary files
10543       --recheck    update $as_me by reconfiguring in the same conditions
10544   --file=FILE[:TEMPLATE]
10545                    instantiate the configuration file FILE
10546   --header=FILE[:TEMPLATE]
10547                    instantiate the configuration header FILE
10548
10549 Configuration files:
10550 $config_files
10551
10552 Configuration headers:
10553 $config_headers
10554
10555 Configuration commands:
10556 $config_commands
10557
10558 Report bugs to <bug-autoconf@gnu.org>."
10559 _ACEOF
10560
10561 cat >>$CONFIG_STATUS <<_ACEOF
10562 ac_cs_version="\\
10563 config.status
10564 configured by $0, generated by GNU Autoconf 2.57,
10565   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10566
10567 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10568 Free Software Foundation, Inc.
10569 This config.status script is free software; the Free Software Foundation
10570 gives unlimited permission to copy, distribute and modify it."
10571 srcdir=$srcdir
10572 INSTALL="$INSTALL"
10573 _ACEOF
10574
10575 cat >>$CONFIG_STATUS <<\_ACEOF
10576 # If no file are specified by the user, then we need to provide default
10577 # value.  By we need to know if files were specified by the user.
10578 ac_need_defaults=:
10579 while test $# != 0
10580 do
10581   case $1 in
10582   --*=*)
10583     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10584     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10585     ac_shift=:
10586     ;;
10587   -*)
10588     ac_option=$1
10589     ac_optarg=$2
10590     ac_shift=shift
10591     ;;
10592   *) # This is not an option, so the user has probably given explicit
10593      # arguments.
10594      ac_option=$1
10595      ac_need_defaults=false;;
10596   esac
10597
10598   case $ac_option in
10599   # Handling of the options.
10600 _ACEOF
10601 cat >>$CONFIG_STATUS <<\_ACEOF
10602   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10603     ac_cs_recheck=: ;;
10604   --version | --vers* | -V )
10605     echo "$ac_cs_version"; exit 0 ;;
10606   --he | --h)
10607     # Conflict between --help and --header
10608     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10609 Try \`$0 --help' for more information." >&5
10610 echo "$as_me: error: ambiguous option: $1
10611 Try \`$0 --help' for more information." >&2;}
10612    { (exit 1); exit 1; }; };;
10613   --help | --hel | -h )
10614     echo "$ac_cs_usage"; exit 0 ;;
10615   --debug | --d* | -d )
10616     debug=: ;;
10617   --file | --fil | --fi | --f )
10618     $ac_shift
10619     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10620     ac_need_defaults=false;;
10621   --header | --heade | --head | --hea )
10622     $ac_shift
10623     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10624     ac_need_defaults=false;;
10625   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10626   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10627     ac_cs_silent=: ;;
10628
10629   # This is an error.
10630   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10631 Try \`$0 --help' for more information." >&5
10632 echo "$as_me: error: unrecognized option: $1
10633 Try \`$0 --help' for more information." >&2;}
10634    { (exit 1); exit 1; }; } ;;
10635
10636   *) ac_config_targets="$ac_config_targets $1" ;;
10637
10638   esac
10639   shift
10640 done
10641
10642 ac_configure_extra_args=
10643
10644 if $ac_cs_silent; then
10645   exec 6>/dev/null
10646   ac_configure_extra_args="$ac_configure_extra_args --silent"
10647 fi
10648
10649 _ACEOF
10650 cat >>$CONFIG_STATUS <<_ACEOF
10651 if \$ac_cs_recheck; then
10652   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10653   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10654 fi
10655
10656 _ACEOF
10657
10658 cat >>$CONFIG_STATUS <<_ACEOF
10659 #
10660 # INIT-COMMANDS section.
10661 #
10662
10663 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10664
10665 _ACEOF
10666
10667
10668
10669 cat >>$CONFIG_STATUS <<\_ACEOF
10670 for ac_config_target in $ac_config_targets
10671 do
10672   case "$ac_config_target" in
10673   # Handling of arguments.
10674   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10675   "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10676   "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10677   "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10678   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10679   "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10680   "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10681   "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10682   "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10683   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10684   "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10685   "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10686   "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10687   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10688   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10689   "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10690   "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10691   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10692   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10693   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10694 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10695    { (exit 1); exit 1; }; };;
10696   esac
10697 done
10698
10699 # If the user did not use the arguments to specify the items to instantiate,
10700 # then the envvar interface is used.  Set only those that are not.
10701 # We use the long form for the default assignment because of an extremely
10702 # bizarre bug on SunOS 4.1.3.
10703 if $ac_need_defaults; then
10704   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10705   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10706   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10707 fi
10708
10709 # Have a temporary directory for convenience.  Make it in the build tree
10710 # simply because there is no reason to put it here, and in addition,
10711 # creating and moving files from /tmp can sometimes cause problems.
10712 # Create a temporary directory, and hook for its removal unless debugging.
10713 $debug ||
10714 {
10715   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10716   trap '{ (exit 1); exit 1; }' 1 2 13 15
10717 }
10718
10719 # Create a (secure) tmp directory for tmp files.
10720
10721 {
10722   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10723   test -n "$tmp" && test -d "$tmp"
10724 }  ||
10725 {
10726   tmp=./confstat$$-$RANDOM
10727   (umask 077 && mkdir $tmp)
10728 } ||
10729 {
10730    echo "$me: cannot create a temporary directory in ." >&2
10731    { (exit 1); exit 1; }
10732 }
10733
10734 _ACEOF
10735
10736 cat >>$CONFIG_STATUS <<_ACEOF
10737
10738 #
10739 # CONFIG_FILES section.
10740 #
10741
10742 # No need to generate the scripts if there are no CONFIG_FILES.
10743 # This happens for instance when ./config.status config.h
10744 if test -n "\$CONFIG_FILES"; then
10745   # Protect against being on the right side of a sed subst in config.status.
10746   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10747    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10748 s,@SHELL@,$SHELL,;t t
10749 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10750 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10751 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10752 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10753 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10754 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10755 s,@exec_prefix@,$exec_prefix,;t t
10756 s,@prefix@,$prefix,;t t
10757 s,@program_transform_name@,$program_transform_name,;t t
10758 s,@bindir@,$bindir,;t t
10759 s,@sbindir@,$sbindir,;t t
10760 s,@libexecdir@,$libexecdir,;t t
10761 s,@datadir@,$datadir,;t t
10762 s,@sysconfdir@,$sysconfdir,;t t
10763 s,@sharedstatedir@,$sharedstatedir,;t t
10764 s,@localstatedir@,$localstatedir,;t t
10765 s,@libdir@,$libdir,;t t
10766 s,@includedir@,$includedir,;t t
10767 s,@oldincludedir@,$oldincludedir,;t t
10768 s,@infodir@,$infodir,;t t
10769 s,@mandir@,$mandir,;t t
10770 s,@build_alias@,$build_alias,;t t
10771 s,@host_alias@,$host_alias,;t t
10772 s,@target_alias@,$target_alias,;t t
10773 s,@DEFS@,$DEFS,;t t
10774 s,@ECHO_C@,$ECHO_C,;t t
10775 s,@ECHO_N@,$ECHO_N,;t t
10776 s,@ECHO_T@,$ECHO_T,;t t
10777 s,@LIBS@,$LIBS,;t t
10778 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10779 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10780 s,@MAINT@,$MAINT,;t t
10781 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10782 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10783 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10784 s,@CYGPATH_W@,$CYGPATH_W,;t t
10785 s,@PACKAGE@,$PACKAGE,;t t
10786 s,@VERSION@,$VERSION,;t t
10787 s,@ACLOCAL@,$ACLOCAL,;t t
10788 s,@AUTOCONF@,$AUTOCONF,;t t
10789 s,@AUTOMAKE@,$AUTOMAKE,;t t
10790 s,@AUTOHEADER@,$AUTOHEADER,;t t
10791 s,@MAKEINFO@,$MAKEINFO,;t t
10792 s,@AMTAR@,$AMTAR,;t t
10793 s,@install_sh@,$install_sh,;t t
10794 s,@STRIP@,$STRIP,;t t
10795 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10796 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10797 s,@AWK@,$AWK,;t t
10798 s,@SET_MAKE@,$SET_MAKE,;t t
10799 s,@am__leading_dot@,$am__leading_dot,;t t
10800 s,@RANLIB@,$RANLIB,;t t
10801 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10802 s,@CC@,$CC,;t t
10803 s,@CFLAGS@,$CFLAGS,;t t
10804 s,@LDFLAGS@,$LDFLAGS,;t t
10805 s,@CPPFLAGS@,$CPPFLAGS,;t t
10806 s,@ac_ct_CC@,$ac_ct_CC,;t t
10807 s,@EXEEXT@,$EXEEXT,;t t
10808 s,@OBJEXT@,$OBJEXT,;t t
10809 s,@DEPDIR@,$DEPDIR,;t t
10810 s,@am__include@,$am__include,;t t
10811 s,@am__quote@,$am__quote,;t t
10812 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10813 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10814 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10815 s,@CCDEPMODE@,$CCDEPMODE,;t t
10816 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10817 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10818 s,@CXX@,$CXX,;t t
10819 s,@CXXFLAGS@,$CXXFLAGS,;t t
10820 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10821 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10822 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10823 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10824 s,@wxconfig@,$wxconfig,;t t
10825 s,@build@,$build,;t t
10826 s,@build_cpu@,$build_cpu,;t t
10827 s,@build_vendor@,$build_vendor,;t t
10828 s,@build_os@,$build_os,;t t
10829 s,@host@,$host,;t t
10830 s,@host_cpu@,$host_cpu,;t t
10831 s,@host_vendor@,$host_vendor,;t t
10832 s,@host_os@,$host_os,;t t
10833 s,@CPP@,$CPP,;t t
10834 s,@EGREP@,$EGREP,;t t
10835 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10836 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10837 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10838 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10839 s,@lamdir@,$lamdir,;t t
10840 s,@mpienable@,$mpienable,;t t
10841 s,@cgibindir@,$cgibindir,;t t
10842 s,@cgibinurl@,$cgibinurl,;t t
10843 s,@webdatadir@,$webdatadir,;t t
10844 s,@webdataurl@,$webdataurl,;t t
10845 s,@htmldir@,$htmldir,;t t
10846 s,@cgiprograms@,$cgiprograms,;t t
10847 s,@htmldata@,$htmldata,;t t
10848 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10849 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10850 s,@webenabled@,$webenabled,;t t
10851 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10852 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10853 s,@X_CFLAGS@,$X_CFLAGS,;t t
10854 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10855 s,@X_LIBS@,$X_LIBS,;t t
10856 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10857 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10858 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10859 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10860 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10861 s,@my_includes@,$my_includes,;t t
10862 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10863 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10864 s,@wxcflags@,$wxcflags,;t t
10865 s,@wxlibs@,$wxlibs,;t t
10866 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10867 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10868 s,@ctlibs@,$ctlibs,;t t
10869 s,@lamprograms@,$lamprograms,;t t
10870 s,@lamdefs@,$lamdefs,;t t
10871 s,@LIBOBJS@,$LIBOBJS,;t t
10872 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10873 CEOF
10874
10875 _ACEOF
10876
10877   cat >>$CONFIG_STATUS <<\_ACEOF
10878   # Split the substitutions into bite-sized pieces for seds with
10879   # small command number limits, like on Digital OSF/1 and HP-UX.
10880   ac_max_sed_lines=48
10881   ac_sed_frag=1 # Number of current file.
10882   ac_beg=1 # First line for current file.
10883   ac_end=$ac_max_sed_lines # Line after last line for current file.
10884   ac_more_lines=:
10885   ac_sed_cmds=
10886   while $ac_more_lines; do
10887     if test $ac_beg -gt 1; then
10888       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10889     else
10890       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10891     fi
10892     if test ! -s $tmp/subs.frag; then
10893       ac_more_lines=false
10894     else
10895       # The purpose of the label and of the branching condition is to
10896       # speed up the sed processing (if there are no `@' at all, there
10897       # is no need to browse any of the substitutions).
10898       # These are the two extra sed commands mentioned above.
10899       (echo ':t
10900   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10901       if test -z "$ac_sed_cmds"; then
10902         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10903       else
10904         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10905       fi
10906       ac_sed_frag=`expr $ac_sed_frag + 1`
10907       ac_beg=$ac_end
10908       ac_end=`expr $ac_end + $ac_max_sed_lines`
10909     fi
10910   done
10911   if test -z "$ac_sed_cmds"; then
10912     ac_sed_cmds=cat
10913   fi
10914 fi # test -n "$CONFIG_FILES"
10915
10916 _ACEOF
10917 cat >>$CONFIG_STATUS <<\_ACEOF
10918 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10919   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10920   case $ac_file in
10921   - | *:- | *:-:* ) # input from stdin
10922         cat >$tmp/stdin
10923         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10924         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10925   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10926         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10927   * )   ac_file_in=$ac_file.in ;;
10928   esac
10929
10930   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10931   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10933          X"$ac_file" : 'X\(//\)[^/]' \| \
10934          X"$ac_file" : 'X\(//\)$' \| \
10935          X"$ac_file" : 'X\(/\)' \| \
10936          .     : '\(.\)' 2>/dev/null ||
10937 echo X"$ac_file" |
10938     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10939           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10940           /^X\(\/\/\)$/{ s//\1/; q; }
10941           /^X\(\/\).*/{ s//\1/; q; }
10942           s/.*/./; q'`
10943   { if $as_mkdir_p; then
10944     mkdir -p "$ac_dir"
10945   else
10946     as_dir="$ac_dir"
10947     as_dirs=
10948     while test ! -d "$as_dir"; do
10949       as_dirs="$as_dir $as_dirs"
10950       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10952          X"$as_dir" : 'X\(//\)[^/]' \| \
10953          X"$as_dir" : 'X\(//\)$' \| \
10954          X"$as_dir" : 'X\(/\)' \| \
10955          .     : '\(.\)' 2>/dev/null ||
10956 echo X"$as_dir" |
10957     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10958           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10959           /^X\(\/\/\)$/{ s//\1/; q; }
10960           /^X\(\/\).*/{ s//\1/; q; }
10961           s/.*/./; q'`
10962     done
10963     test ! -n "$as_dirs" || mkdir $as_dirs
10964   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10965 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10966    { (exit 1); exit 1; }; }; }
10967
10968   ac_builddir=.
10969
10970 if test "$ac_dir" != .; then
10971   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10972   # A "../" for each directory in $ac_dir_suffix.
10973   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10974 else
10975   ac_dir_suffix= ac_top_builddir=
10976 fi
10977
10978 case $srcdir in
10979   .)  # No --srcdir option.  We are building in place.
10980     ac_srcdir=.
10981     if test -z "$ac_top_builddir"; then
10982        ac_top_srcdir=.
10983     else
10984        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10985     fi ;;
10986   [\\/]* | ?:[\\/]* )  # Absolute path.
10987     ac_srcdir=$srcdir$ac_dir_suffix;
10988     ac_top_srcdir=$srcdir ;;
10989   *) # Relative path.
10990     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10991     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10992 esac
10993 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10994 # absolute.
10995 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10996 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10997 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10998 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10999
11000
11001   case $INSTALL in
11002   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11003   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11004   esac
11005
11006   if test x"$ac_file" != x-; then
11007     { echo "$as_me:$LINENO: creating $ac_file" >&5
11008 echo "$as_me: creating $ac_file" >&6;}
11009     rm -f "$ac_file"
11010   fi
11011   # Let's still pretend it is `configure' which instantiates (i.e., don't
11012   # use $as_me), people would be surprised to read:
11013   #    /* config.h.  Generated by config.status.  */
11014   if test x"$ac_file" = x-; then
11015     configure_input=
11016   else
11017     configure_input="$ac_file.  "
11018   fi
11019   configure_input=$configure_input"Generated from `echo $ac_file_in |
11020                                      sed 's,.*/,,'` by configure."
11021
11022   # First look for the input files in the build tree, otherwise in the
11023   # src tree.
11024   ac_file_inputs=`IFS=:
11025     for f in $ac_file_in; do
11026       case $f in
11027       -) echo $tmp/stdin ;;
11028       [\\/$]*)
11029          # Absolute (can't be DOS-style, as IFS=:)
11030          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11031 echo "$as_me: error: cannot find input file: $f" >&2;}
11032    { (exit 1); exit 1; }; }
11033          echo $f;;
11034       *) # Relative
11035          if test -f "$f"; then
11036            # Build tree
11037            echo $f
11038          elif test -f "$srcdir/$f"; then
11039            # Source tree
11040            echo $srcdir/$f
11041          else
11042            # /dev/null tree
11043            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11044 echo "$as_me: error: cannot find input file: $f" >&2;}
11045    { (exit 1); exit 1; }; }
11046          fi;;
11047       esac
11048     done` || { (exit 1); exit 1; }
11049 _ACEOF
11050 cat >>$CONFIG_STATUS <<_ACEOF
11051   sed "$ac_vpsub
11052 $extrasub
11053 _ACEOF
11054 cat >>$CONFIG_STATUS <<\_ACEOF
11055 :t
11056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11057 s,@configure_input@,$configure_input,;t t
11058 s,@srcdir@,$ac_srcdir,;t t
11059 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11060 s,@top_srcdir@,$ac_top_srcdir,;t t
11061 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11062 s,@builddir@,$ac_builddir,;t t
11063 s,@abs_builddir@,$ac_abs_builddir,;t t
11064 s,@top_builddir@,$ac_top_builddir,;t t
11065 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11066 s,@INSTALL@,$ac_INSTALL,;t t
11067 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11068   rm -f $tmp/stdin
11069   if test x"$ac_file" != x-; then
11070     mv $tmp/out $ac_file
11071   else
11072     cat $tmp/out
11073     rm -f $tmp/out
11074   fi
11075
11076 done
11077 _ACEOF
11078 cat >>$CONFIG_STATUS <<\_ACEOF
11079
11080 #
11081 # CONFIG_HEADER section.
11082 #
11083
11084 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11085 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11086 #
11087 # ac_d sets the value in "#define NAME VALUE" lines.
11088 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
11089 ac_dB='[        ].*$,\1#\2'
11090 ac_dC=' '
11091 ac_dD=',;t'
11092 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11093 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11094 ac_uB='$,\1#\2define\3'
11095 ac_uC=' '
11096 ac_uD=',;t'
11097
11098 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11099   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11100   case $ac_file in
11101   - | *:- | *:-:* ) # input from stdin
11102         cat >$tmp/stdin
11103         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11104         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11105   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11106         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11107   * )   ac_file_in=$ac_file.in ;;
11108   esac
11109
11110   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11111 echo "$as_me: creating $ac_file" >&6;}
11112
11113   # First look for the input files in the build tree, otherwise in the
11114   # src tree.
11115   ac_file_inputs=`IFS=:
11116     for f in $ac_file_in; do
11117       case $f in
11118       -) echo $tmp/stdin ;;
11119       [\\/$]*)
11120          # Absolute (can't be DOS-style, as IFS=:)
11121          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11122 echo "$as_me: error: cannot find input file: $f" >&2;}
11123    { (exit 1); exit 1; }; }
11124          echo $f;;
11125       *) # Relative
11126          if test -f "$f"; then
11127            # Build tree
11128            echo $f
11129          elif test -f "$srcdir/$f"; then
11130            # Source tree
11131            echo $srcdir/$f
11132          else
11133            # /dev/null tree
11134            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11135 echo "$as_me: error: cannot find input file: $f" >&2;}
11136    { (exit 1); exit 1; }; }
11137          fi;;
11138       esac
11139     done` || { (exit 1); exit 1; }
11140   # Remove the trailing spaces.
11141   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
11142
11143 _ACEOF
11144
11145 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11146 # `conftest.undefs', that substitutes the proper values into
11147 # config.h.in to produce config.h.  The first handles `#define'
11148 # templates, and the second `#undef' templates.
11149 # And first: Protect against being on the right side of a sed subst in
11150 # config.status.  Protect against being in an unquoted here document
11151 # in config.status.
11152 rm -f conftest.defines conftest.undefs
11153 # Using a here document instead of a string reduces the quoting nightmare.
11154 # Putting comments in sed scripts is not portable.
11155 #
11156 # `end' is used to avoid that the second main sed command (meant for
11157 # 0-ary CPP macros) applies to n-ary macro definitions.
11158 # See the Autoconf documentation for `clear'.
11159 cat >confdef2sed.sed <<\_ACEOF
11160 s/[\\&,]/\\&/g
11161 s,[\\$`],\\&,g
11162 t clear
11163 : clear
11164 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11165 t end
11166 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11167 : end
11168 _ACEOF
11169 # If some macros were called several times there might be several times
11170 # the same #defines, which is useless.  Nevertheless, we may not want to
11171 # sort them, since we want the *last* AC-DEFINE to be honored.
11172 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11173 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11174 rm -f confdef2sed.sed
11175
11176 # This sed command replaces #undef with comments.  This is necessary, for
11177 # example, in the case of _POSIX_SOURCE, which is predefined and required
11178 # on some systems where configure will not decide to define it.
11179 cat >>conftest.undefs <<\_ACEOF
11180 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11181 _ACEOF
11182
11183 # Break up conftest.defines because some shells have a limit on the size
11184 # of here documents, and old seds have small limits too (100 cmds).
11185 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11186 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11187 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11188 echo '  :' >>$CONFIG_STATUS
11189 rm -f conftest.tail
11190 while grep . conftest.defines >/dev/null
11191 do
11192   # Write a limited-size here document to $tmp/defines.sed.
11193   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11194   # Speed up: don't consider the non `#define' lines.
11195   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
11196   # Work around the forget-to-reset-the-flag bug.
11197   echo 't clr' >>$CONFIG_STATUS
11198   echo ': clr' >>$CONFIG_STATUS
11199   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11200   echo 'CEOF
11201   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11202   rm -f $tmp/in
11203   mv $tmp/out $tmp/in
11204 ' >>$CONFIG_STATUS
11205   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11206   rm -f conftest.defines
11207   mv conftest.tail conftest.defines
11208 done
11209 rm -f conftest.defines
11210 echo '  fi # grep' >>$CONFIG_STATUS
11211 echo >>$CONFIG_STATUS
11212
11213 # Break up conftest.undefs because some shells have a limit on the size
11214 # of here documents, and old seds have small limits too (100 cmds).
11215 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11216 rm -f conftest.tail
11217 while grep . conftest.undefs >/dev/null
11218 do
11219   # Write a limited-size here document to $tmp/undefs.sed.
11220   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11221   # Speed up: don't consider the non `#undef'
11222   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11223   # Work around the forget-to-reset-the-flag bug.
11224   echo 't clr' >>$CONFIG_STATUS
11225   echo ': clr' >>$CONFIG_STATUS
11226   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11227   echo 'CEOF
11228   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11229   rm -f $tmp/in
11230   mv $tmp/out $tmp/in
11231 ' >>$CONFIG_STATUS
11232   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11233   rm -f conftest.undefs
11234   mv conftest.tail conftest.undefs
11235 done
11236 rm -f conftest.undefs
11237
11238 cat >>$CONFIG_STATUS <<\_ACEOF
11239   # Let's still pretend it is `configure' which instantiates (i.e., don't
11240   # use $as_me), people would be surprised to read:
11241   #    /* config.h.  Generated by config.status.  */
11242   if test x"$ac_file" = x-; then
11243     echo "/* Generated by configure.  */" >$tmp/config.h
11244   else
11245     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11246   fi
11247   cat $tmp/in >>$tmp/config.h
11248   rm -f $tmp/in
11249   if test x"$ac_file" != x-; then
11250     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11251       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11252 echo "$as_me: $ac_file is unchanged" >&6;}
11253     else
11254       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11255 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11256          X"$ac_file" : 'X\(//\)[^/]' \| \
11257          X"$ac_file" : 'X\(//\)$' \| \
11258          X"$ac_file" : 'X\(/\)' \| \
11259          .     : '\(.\)' 2>/dev/null ||
11260 echo X"$ac_file" |
11261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11262           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11263           /^X\(\/\/\)$/{ s//\1/; q; }
11264           /^X\(\/\).*/{ s//\1/; q; }
11265           s/.*/./; q'`
11266       { if $as_mkdir_p; then
11267     mkdir -p "$ac_dir"
11268   else
11269     as_dir="$ac_dir"
11270     as_dirs=
11271     while test ! -d "$as_dir"; do
11272       as_dirs="$as_dir $as_dirs"
11273       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11274 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11275          X"$as_dir" : 'X\(//\)[^/]' \| \
11276          X"$as_dir" : 'X\(//\)$' \| \
11277          X"$as_dir" : 'X\(/\)' \| \
11278          .     : '\(.\)' 2>/dev/null ||
11279 echo X"$as_dir" |
11280     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11281           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11282           /^X\(\/\/\)$/{ s//\1/; q; }
11283           /^X\(\/\).*/{ s//\1/; q; }
11284           s/.*/./; q'`
11285     done
11286     test ! -n "$as_dirs" || mkdir $as_dirs
11287   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11288 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11289    { (exit 1); exit 1; }; }; }
11290
11291       rm -f $ac_file
11292       mv $tmp/config.h $ac_file
11293     fi
11294   else
11295     cat $tmp/config.h
11296     rm -f $tmp/config.h
11297   fi
11298 # Compute $ac_file's index in $config_headers.
11299 _am_stamp_count=1
11300 for _am_header in $config_headers :; do
11301   case $_am_header in
11302     $ac_file | $ac_file:* )
11303       break ;;
11304     * )
11305       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11306   esac
11307 done
11308 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11309 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11310          X$ac_file : 'X\(//\)[^/]' \| \
11311          X$ac_file : 'X\(//\)$' \| \
11312          X$ac_file : 'X\(/\)' \| \
11313          .     : '\(.\)' 2>/dev/null ||
11314 echo X$ac_file |
11315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11316           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11317           /^X\(\/\/\)$/{ s//\1/; q; }
11318           /^X\(\/\).*/{ s//\1/; q; }
11319           s/.*/./; q'`/stamp-h$_am_stamp_count
11320 done
11321 _ACEOF
11322 cat >>$CONFIG_STATUS <<\_ACEOF
11323
11324 #
11325 # CONFIG_COMMANDS section.
11326 #
11327 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11328   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11329   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11330   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11331 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11332          X"$ac_dest" : 'X\(//\)[^/]' \| \
11333          X"$ac_dest" : 'X\(//\)$' \| \
11334          X"$ac_dest" : 'X\(/\)' \| \
11335          .     : '\(.\)' 2>/dev/null ||
11336 echo X"$ac_dest" |
11337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11338           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11339           /^X\(\/\/\)$/{ s//\1/; q; }
11340           /^X\(\/\).*/{ s//\1/; q; }
11341           s/.*/./; q'`
11342   ac_builddir=.
11343
11344 if test "$ac_dir" != .; then
11345   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11346   # A "../" for each directory in $ac_dir_suffix.
11347   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11348 else
11349   ac_dir_suffix= ac_top_builddir=
11350 fi
11351
11352 case $srcdir in
11353   .)  # No --srcdir option.  We are building in place.
11354     ac_srcdir=.
11355     if test -z "$ac_top_builddir"; then
11356        ac_top_srcdir=.
11357     else
11358        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11359     fi ;;
11360   [\\/]* | ?:[\\/]* )  # Absolute path.
11361     ac_srcdir=$srcdir$ac_dir_suffix;
11362     ac_top_srcdir=$srcdir ;;
11363   *) # Relative path.
11364     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11365     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11366 esac
11367 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11368 # absolute.
11369 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11370 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11371 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11372 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11373
11374
11375   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11376 echo "$as_me: executing $ac_dest commands" >&6;}
11377   case $ac_dest in
11378     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11379   # Strip MF so we end up with the name of the file.
11380   mf=`echo "$mf" | sed -e 's/:.*$//'`
11381   # Check whether this is an Automake generated Makefile or not.
11382   # We used to match only the files named `Makefile.in', but
11383   # some people rename them; so instead we look at the file content.
11384   # Grep'ing the first line is not enough: some people post-process
11385   # each Makefile.in and add a new line on top of each file to say so.
11386   # So let's grep whole file.
11387   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11388     dirpart=`(dirname "$mf") 2>/dev/null ||
11389 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11390          X"$mf" : 'X\(//\)[^/]' \| \
11391          X"$mf" : 'X\(//\)$' \| \
11392          X"$mf" : 'X\(/\)' \| \
11393          .     : '\(.\)' 2>/dev/null ||
11394 echo X"$mf" |
11395     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11396           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11397           /^X\(\/\/\)$/{ s//\1/; q; }
11398           /^X\(\/\).*/{ s//\1/; q; }
11399           s/.*/./; q'`
11400   else
11401     continue
11402   fi
11403   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11404   # Extract the definition of DEP_FILES from the Makefile without
11405   # running `make'.
11406   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11407   test -z "$DEPDIR" && continue
11408   # When using ansi2knr, U may be empty or an underscore; expand it
11409   U=`sed -n -e '/^U = / s///p' < "$mf"`
11410   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11411   # We invoke sed twice because it is the simplest approach to
11412   # changing $(DEPDIR) to its actual value in the expansion.
11413   for file in `sed -n -e '
11414     /^DEP_FILES = .*\\\\$/ {
11415       s/^DEP_FILES = //
11416       :loop
11417         s/\\\\$//
11418         p
11419         n
11420         /\\\\$/ b loop
11421       p
11422     }
11423     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11424        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11425     # Make sure the directory exists.
11426     test -f "$dirpart/$file" && continue
11427     fdir=`(dirname "$file") 2>/dev/null ||
11428 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11429          X"$file" : 'X\(//\)[^/]' \| \
11430          X"$file" : 'X\(//\)$' \| \
11431          X"$file" : 'X\(/\)' \| \
11432          .     : '\(.\)' 2>/dev/null ||
11433 echo X"$file" |
11434     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11435           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11436           /^X\(\/\/\)$/{ s//\1/; q; }
11437           /^X\(\/\).*/{ s//\1/; q; }
11438           s/.*/./; q'`
11439     { if $as_mkdir_p; then
11440     mkdir -p $dirpart/$fdir
11441   else
11442     as_dir=$dirpart/$fdir
11443     as_dirs=
11444     while test ! -d "$as_dir"; do
11445       as_dirs="$as_dir $as_dirs"
11446       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11448          X"$as_dir" : 'X\(//\)[^/]' \| \
11449          X"$as_dir" : 'X\(//\)$' \| \
11450          X"$as_dir" : 'X\(/\)' \| \
11451          .     : '\(.\)' 2>/dev/null ||
11452 echo X"$as_dir" |
11453     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11454           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11455           /^X\(\/\/\)$/{ s//\1/; q; }
11456           /^X\(\/\).*/{ s//\1/; q; }
11457           s/.*/./; q'`
11458     done
11459     test ! -n "$as_dirs" || mkdir $as_dirs
11460   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11461 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11462    { (exit 1); exit 1; }; }; }
11463
11464     # echo "creating $dirpart/$file"
11465     echo '# dummy' > "$dirpart/$file"
11466   done
11467 done
11468  ;;
11469   esac
11470 done
11471 _ACEOF
11472
11473 cat >>$CONFIG_STATUS <<\_ACEOF
11474
11475 { (exit 0); exit 0; }
11476 _ACEOF
11477 chmod +x $CONFIG_STATUS
11478 ac_clean_files=$ac_clean_files_save
11479
11480
11481 # configure is writing to config.log, and then calls config.status.
11482 # config.status does its own redirection, appending to config.log.
11483 # Unfortunately, on DOS this fails, as config.log is still kept open
11484 # by configure, so config.status won't be able to write to it; its
11485 # output is simply discarded.  So we exec the FD to /dev/null,
11486 # effectively closing config.log, so it can be properly (re)opened and
11487 # appended to by config.status.  When coming back to configure, we
11488 # need to make the FD available again.
11489 if test "$no_create" != yes; then
11490   ac_cs_success=:
11491   ac_config_status_args=
11492   test "$silent" = yes &&
11493     ac_config_status_args="$ac_config_status_args --quiet"
11494   exec 5>/dev/null
11495   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11496   exec 5>>config.log
11497   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11498   # would make configure fail if this is the last instruction.
11499   $ac_cs_success || { (exit 1); exit 1; }
11500 fi
11501