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