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