r2099: Committing for 3.5.4
[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.4
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" -o "$withval" == "NONE" ; then
7460   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7461 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7462   echo "$as_me:$LINENO: result: disabled" >&5
7463 echo "${ECHO_T}disabled" >&6
7464 else
7465   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7466 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7467   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7468     if test -f "$testctndir/libctn.a" ; then
7469       LDFLAGS="$LDFLAGS -L$testctndir"
7470       ctnlib="true"
7471       break
7472     fi
7473   done
7474   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7475     if test -f "$testctndir/ctn_os.h" ; then
7476       CFLAGS="$CFLAGS -I$testctndir"
7477       ctninclude="true"
7478       break
7479     fi
7480   done
7481   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7482       ctn="true"
7483
7484 cat >>confdefs.h <<\_ACEOF
7485 #define HAVE_CTN_DICOM 1
7486 _ACEOF
7487
7488       echo "$as_me:$LINENO: result: yes" >&5
7489 echo "${ECHO_T}yes" >&6
7490   else
7491     echo "$as_me:$LINENO: result: no" >&5
7492 echo "${ECHO_T}no" >&6
7493   fi
7494 fi
7495
7496 echo "$as_me:$LINENO: checking for web access" >&5
7497 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7498
7499 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7500 if test "${with_cgibin_dir+set}" = set; then
7501   withval="$with_cgibin_dir"
7502    cgibindir=$withval ;
7503 fi;
7504
7505
7506 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7507 if test "${with_cgibin_url+set}" = set; then
7508   withval="$with_cgibin_url"
7509    cgibinurl=$withval ;
7510 fi;
7511
7512
7513 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7514 if test "${with_webdata_dir+set}" = set; then
7515   withval="$with_webdata_dir"
7516    webdatadir=$withval ;
7517 fi;
7518
7519
7520 # Check whether --with-webdata-url or --without-webdata-url was given.
7521 if test "${with_webdata_url+set}" = set; then
7522   withval="$with_webdata_url"
7523    webdataurl=$withval ;
7524 fi;
7525
7526
7527 # Check whether --with-html-dir or --without-html-dir was given.
7528 if test "${with_html_dir+set}" = set; then
7529   withval="$with_html_dir"
7530    htmldir=$withval ;
7531 fi;
7532
7533 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7534   cgiprograms="ctsim.cgi ctsim.conf"
7535
7536 fi
7537
7538 if test -n "$htmldir" ; then
7539   htmldata=simulate.html
7540
7541 fi
7542
7543
7544 if test -n "$htmldir"; then
7545   USE_HTML_TRUE=
7546   USE_HTML_FALSE='#'
7547 else
7548   USE_HTML_TRUE='#'
7549   USE_HTML_FALSE=
7550 fi
7551
7552 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7553   webenabled=true
7554
7555   echo "$as_me:$LINENO: result: yes" >&5
7556 echo "${ECHO_T}yes" >&6
7557   if test -z "$cgibindir" ; then
7558     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7559 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7560    { (exit 1); exit 1; }; }
7561   elif test -z "$cgibinurl" ; then
7562     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7563 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7564    { (exit 1); exit 1; }; }
7565   elif test -z "$webdatadir" ; then
7566     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7567 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7568    { (exit 1); exit 1; }; }
7569   elif test -z "$webdataurl" ; then
7570     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7571 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7572    { (exit 1); exit 1; }; }
7573   elif test -z "$htmldir" ; then
7574     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
7575 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
7576    { (exit 1); exit 1; }; }
7577   fi
7578 else
7579   echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6
7581 fi
7582
7583
7584
7585 if test -n "$lamdir"; then
7586   USE_LAM_TRUE=
7587   USE_LAM_FALSE='#'
7588 else
7589   USE_LAM_TRUE='#'
7590   USE_LAM_FALSE=
7591 fi
7592
7593
7594 echo "$as_me:$LINENO: checking for X" >&5
7595 echo $ECHO_N "checking for X... $ECHO_C" >&6
7596
7597
7598 # Check whether --with-x or --without-x was given.
7599 if test "${with_x+set}" = set; then
7600   withval="$with_x"
7601
7602 fi;
7603 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7604 if test "x$with_x" = xno; then
7605   # The user explicitly disabled X.
7606   have_x=disabled
7607 else
7608   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7609     # Both variables are already set.
7610     have_x=yes
7611   else
7612     if test "${ac_cv_have_x+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   # One or both of the vars are not set, and there is no cached value.
7616 ac_x_includes=no ac_x_libraries=no
7617 rm -fr conftest.dir
7618 if mkdir conftest.dir; then
7619   cd conftest.dir
7620   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7621   cat >Imakefile <<'_ACEOF'
7622 acfindx:
7623         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7624 _ACEOF
7625   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7626     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7627     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7628     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7629     for ac_extension in a so sl; do
7630       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7631          test -f $ac_im_libdir/libX11.$ac_extension; then
7632         ac_im_usrlibdir=$ac_im_libdir; break
7633       fi
7634     done
7635     # Screen out bogus values from the imake configuration.  They are
7636     # bogus both because they are the default anyway, and because
7637     # using them would break gcc on systems where it needs fixed includes.
7638     case $ac_im_incroot in
7639         /usr/include) ;;
7640         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7641     esac
7642     case $ac_im_usrlibdir in
7643         /usr/lib | /lib) ;;
7644         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7645     esac
7646   fi
7647   cd ..
7648   rm -fr conftest.dir
7649 fi
7650
7651 # Standard set of common directories for X headers.
7652 # Check X11 before X11Rn because it is often a symlink to the current release.
7653 ac_x_header_dirs='
7654 /usr/X11/include
7655 /usr/X11R6/include
7656 /usr/X11R5/include
7657 /usr/X11R4/include
7658
7659 /usr/include/X11
7660 /usr/include/X11R6
7661 /usr/include/X11R5
7662 /usr/include/X11R4
7663
7664 /usr/local/X11/include
7665 /usr/local/X11R6/include
7666 /usr/local/X11R5/include
7667 /usr/local/X11R4/include
7668
7669 /usr/local/include/X11
7670 /usr/local/include/X11R6
7671 /usr/local/include/X11R5
7672 /usr/local/include/X11R4
7673
7674 /usr/X386/include
7675 /usr/x386/include
7676 /usr/XFree86/include/X11
7677
7678 /usr/include
7679 /usr/local/include
7680 /usr/unsupported/include
7681 /usr/athena/include
7682 /usr/local/x11r5/include
7683 /usr/lpp/Xamples/include
7684
7685 /usr/openwin/include
7686 /usr/openwin/share/include'
7687
7688 if test "$ac_x_includes" = no; then
7689   # Guess where to find include files, by looking for Intrinsic.h.
7690   # First, try using that file with no special directory specified.
7691   cat >conftest.$ac_ext <<_ACEOF
7692 #line $LINENO "configure"
7693 #include "confdefs.h"
7694 #include <X11/Intrinsic.h>
7695 _ACEOF
7696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7698   ac_status=$?
7699   egrep -v '^ *\+' conftest.er1 >conftest.err
7700   rm -f conftest.er1
7701   cat conftest.err >&5
7702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703   (exit $ac_status); } >/dev/null; then
7704   if test -s conftest.err; then
7705     ac_cpp_err=$ac_c_preproc_warn_flag
7706   else
7707     ac_cpp_err=
7708   fi
7709 else
7710   ac_cpp_err=yes
7711 fi
7712 if test -z "$ac_cpp_err"; then
7713   # We can compile using X headers with no special include directory.
7714 ac_x_includes=
7715 else
7716   echo "$as_me: failed program was:" >&5
7717   cat conftest.$ac_ext >&5
7718   for ac_dir in $ac_x_header_dirs; do
7719   if test -r "$ac_dir/X11/Intrinsic.h"; then
7720     ac_x_includes=$ac_dir
7721     break
7722   fi
7723 done
7724 fi
7725 rm -f conftest.err conftest.$ac_ext
7726 fi # $ac_x_includes = no
7727
7728 if test "$ac_x_libraries" = no; then
7729   # Check for the libraries.
7730   # See if we find them without any special options.
7731   # Don't add to $LIBS permanently.
7732   ac_save_LIBS=$LIBS
7733   LIBS="-lXt $LIBS"
7734   cat >conftest.$ac_ext <<_ACEOF
7735 #line $LINENO "configure"
7736 #include "confdefs.h"
7737 #include <X11/Intrinsic.h>
7738 #ifdef F77_DUMMY_MAIN
7739 #  ifdef __cplusplus
7740      extern "C"
7741 #  endif
7742    int F77_DUMMY_MAIN() { return 1; }
7743 #endif
7744 int
7745 main ()
7746 {
7747 XtMalloc (0)
7748   ;
7749   return 0;
7750 }
7751 _ACEOF
7752 rm -f conftest.$ac_objext conftest$ac_exeext
7753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7754   (eval $ac_link) 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); } &&
7758          { ac_try='test -s conftest$ac_exeext'
7759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760   (eval $ac_try) 2>&5
7761   ac_status=$?
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); }; }; then
7764   LIBS=$ac_save_LIBS
7765 # We can link X programs with no special library path.
7766 ac_x_libraries=
7767 else
7768   echo "$as_me: failed program was:" >&5
7769 cat conftest.$ac_ext >&5
7770 LIBS=$ac_save_LIBS
7771 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7772 do
7773   # Don't even attempt the hair of trying to link an X program!
7774   for ac_extension in a so sl; do
7775     if test -r $ac_dir/libXt.$ac_extension; then
7776       ac_x_libraries=$ac_dir
7777       break 2
7778     fi
7779   done
7780 done
7781 fi
7782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7783 fi # $ac_x_libraries = no
7784
7785 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7786   # Didn't find X anywhere.  Cache the known absence of X.
7787   ac_cv_have_x="have_x=no"
7788 else
7789   # Record where we found X for the cache.
7790   ac_cv_have_x="have_x=yes \
7791                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7792 fi
7793 fi
7794
7795   fi
7796   eval "$ac_cv_have_x"
7797 fi # $with_x != no
7798
7799 if test "$have_x" != yes; then
7800   echo "$as_me:$LINENO: result: $have_x" >&5
7801 echo "${ECHO_T}$have_x" >&6
7802   no_x=yes
7803 else
7804   # If each of the values was on the command line, it overrides each guess.
7805   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7806   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7807   # Update the cache value to reflect the command line values.
7808   ac_cv_have_x="have_x=yes \
7809                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7810   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7811 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7812 fi
7813
7814 if test "$no_x" = yes; then
7815   # Not all programs may use this symbol, but it does not hurt to define it.
7816
7817 cat >>confdefs.h <<\_ACEOF
7818 #define X_DISPLAY_MISSING 1
7819 _ACEOF
7820
7821   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7822 else
7823   if test -n "$x_includes"; then
7824     X_CFLAGS="$X_CFLAGS -I$x_includes"
7825   fi
7826
7827   # It would also be nice to do this for all -L options, not just this one.
7828   if test -n "$x_libraries"; then
7829     X_LIBS="$X_LIBS -L$x_libraries"
7830     # For Solaris; some versions of Sun CC require a space after -R and
7831     # others require no space.  Words are not sufficient . . . .
7832     case `(uname -sr) 2>/dev/null` in
7833     "SunOS 5"*)
7834       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7835 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7836       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7837       cat >conftest.$ac_ext <<_ACEOF
7838 #line $LINENO "configure"
7839 #include "confdefs.h"
7840
7841 #ifdef F77_DUMMY_MAIN
7842 #  ifdef __cplusplus
7843      extern "C"
7844 #  endif
7845    int F77_DUMMY_MAIN() { return 1; }
7846 #endif
7847 int
7848 main ()
7849 {
7850
7851   ;
7852   return 0;
7853 }
7854 _ACEOF
7855 rm -f conftest.$ac_objext conftest$ac_exeext
7856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7857   (eval $ac_link) 2>&5
7858   ac_status=$?
7859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860   (exit $ac_status); } &&
7861          { ac_try='test -s conftest$ac_exeext'
7862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863   (eval $ac_try) 2>&5
7864   ac_status=$?
7865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866   (exit $ac_status); }; }; then
7867   ac_R_nospace=yes
7868 else
7869   echo "$as_me: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7871 ac_R_nospace=no
7872 fi
7873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7874       if test $ac_R_nospace = yes; then
7875         echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6
7877         X_LIBS="$X_LIBS -R$x_libraries"
7878       else
7879         LIBS="$ac_xsave_LIBS -R $x_libraries"
7880         cat >conftest.$ac_ext <<_ACEOF
7881 #line $LINENO "configure"
7882 #include "confdefs.h"
7883
7884 #ifdef F77_DUMMY_MAIN
7885 #  ifdef __cplusplus
7886      extern "C"
7887 #  endif
7888    int F77_DUMMY_MAIN() { return 1; }
7889 #endif
7890 int
7891 main ()
7892 {
7893
7894   ;
7895   return 0;
7896 }
7897 _ACEOF
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900   (eval $ac_link) 2>&5
7901   ac_status=$?
7902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903   (exit $ac_status); } &&
7904          { ac_try='test -s conftest$ac_exeext'
7905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906   (eval $ac_try) 2>&5
7907   ac_status=$?
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); }; }; then
7910   ac_R_space=yes
7911 else
7912   echo "$as_me: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7914 ac_R_space=no
7915 fi
7916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7917         if test $ac_R_space = yes; then
7918           echo "$as_me:$LINENO: result: yes" >&5
7919 echo "${ECHO_T}yes" >&6
7920           X_LIBS="$X_LIBS -R $x_libraries"
7921         else
7922           echo "$as_me:$LINENO: result: neither works" >&5
7923 echo "${ECHO_T}neither works" >&6
7924         fi
7925       fi
7926       LIBS=$ac_xsave_LIBS
7927     esac
7928   fi
7929
7930   # Check for system-dependent libraries X programs must link with.
7931   # Do this before checking for the system-independent R6 libraries
7932   # (-lICE), since we may need -lsocket or whatever for X linking.
7933
7934   if test "$ISC" = yes; then
7935     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7936   else
7937     # Martyn Johnson says this is needed for Ultrix, if the X
7938     # libraries were built with DECnet support.  And Karl Berry says
7939     # the Alpha needs dnet_stub (dnet does not exist).
7940     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7941     cat >conftest.$ac_ext <<_ACEOF
7942 #line $LINENO "configure"
7943 #include "confdefs.h"
7944
7945 /* Override any gcc2 internal prototype to avoid an error.  */
7946 #ifdef __cplusplus
7947 extern "C"
7948 #endif
7949 /* We use char because int might match the return type of a gcc2
7950    builtin and then its argument prototype would still apply.  */
7951 char XOpenDisplay ();
7952 #ifdef F77_DUMMY_MAIN
7953 #  ifdef __cplusplus
7954      extern "C"
7955 #  endif
7956    int F77_DUMMY_MAIN() { return 1; }
7957 #endif
7958 int
7959 main ()
7960 {
7961 XOpenDisplay ();
7962   ;
7963   return 0;
7964 }
7965 _ACEOF
7966 rm -f conftest.$ac_objext conftest$ac_exeext
7967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7968   (eval $ac_link) 2>&5
7969   ac_status=$?
7970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971   (exit $ac_status); } &&
7972          { ac_try='test -s conftest$ac_exeext'
7973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974   (eval $ac_try) 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); }; }; then
7978   :
7979 else
7980   echo "$as_me: failed program was:" >&5
7981 cat conftest.$ac_ext >&5
7982 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7983 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7984 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987   ac_check_lib_save_LIBS=$LIBS
7988 LIBS="-ldnet  $LIBS"
7989 cat >conftest.$ac_ext <<_ACEOF
7990 #line $LINENO "configure"
7991 #include "confdefs.h"
7992
7993 /* Override any gcc2 internal prototype to avoid an error.  */
7994 #ifdef __cplusplus
7995 extern "C"
7996 #endif
7997 /* We use char because int might match the return type of a gcc2
7998    builtin and then its argument prototype would still apply.  */
7999 char dnet_ntoa ();
8000 #ifdef F77_DUMMY_MAIN
8001 #  ifdef __cplusplus
8002      extern "C"
8003 #  endif
8004    int F77_DUMMY_MAIN() { return 1; }
8005 #endif
8006 int
8007 main ()
8008 {
8009 dnet_ntoa ();
8010   ;
8011   return 0;
8012 }
8013 _ACEOF
8014 rm -f conftest.$ac_objext conftest$ac_exeext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8016   (eval $ac_link) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); } &&
8020          { ac_try='test -s conftest$ac_exeext'
8021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022   (eval $ac_try) 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; }; then
8026   ac_cv_lib_dnet_dnet_ntoa=yes
8027 else
8028   echo "$as_me: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8030 ac_cv_lib_dnet_dnet_ntoa=no
8031 fi
8032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8033 LIBS=$ac_check_lib_save_LIBS
8034 fi
8035 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8036 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8037 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8038   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8039 fi
8040
8041     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8042       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8043 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8044 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8045   echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047   ac_check_lib_save_LIBS=$LIBS
8048 LIBS="-ldnet_stub  $LIBS"
8049 cat >conftest.$ac_ext <<_ACEOF
8050 #line $LINENO "configure"
8051 #include "confdefs.h"
8052
8053 /* Override any gcc2 internal prototype to avoid an error.  */
8054 #ifdef __cplusplus
8055 extern "C"
8056 #endif
8057 /* We use char because int might match the return type of a gcc2
8058    builtin and then its argument prototype would still apply.  */
8059 char dnet_ntoa ();
8060 #ifdef F77_DUMMY_MAIN
8061 #  ifdef __cplusplus
8062      extern "C"
8063 #  endif
8064    int F77_DUMMY_MAIN() { return 1; }
8065 #endif
8066 int
8067 main ()
8068 {
8069 dnet_ntoa ();
8070   ;
8071   return 0;
8072 }
8073 _ACEOF
8074 rm -f conftest.$ac_objext conftest$ac_exeext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8076   (eval $ac_link) 2>&5
8077   ac_status=$?
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } &&
8080          { ac_try='test -s conftest$ac_exeext'
8081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082   (eval $ac_try) 2>&5
8083   ac_status=$?
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); }; }; then
8086   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8087 else
8088   echo "$as_me: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8090 ac_cv_lib_dnet_stub_dnet_ntoa=no
8091 fi
8092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8093 LIBS=$ac_check_lib_save_LIBS
8094 fi
8095 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8096 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8097 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8098   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8099 fi
8100
8101     fi
8102 fi
8103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8104     LIBS="$ac_xsave_LIBS"
8105
8106     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8107     # to get the SysV transport functions.
8108     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8109     # needs -lnsl.
8110     # The nsl library prevents programs from opening the X display
8111     # on Irix 5.2, according to T.E. Dickey.
8112     # The functions gethostbyname, getservbyname, and inet_addr are
8113     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8114     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8115 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8116 if test "${ac_cv_func_gethostbyname+set}" = set; then
8117   echo $ECHO_N "(cached) $ECHO_C" >&6
8118 else
8119   cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8121 #include "confdefs.h"
8122 /* System header to define __stub macros and hopefully few prototypes,
8123     which can conflict with char gethostbyname (); below.  */
8124 #include <assert.h>
8125 /* Override any gcc2 internal prototype to avoid an error.  */
8126 #ifdef __cplusplus
8127 extern "C"
8128 #endif
8129 /* We use char because int might match the return type of a gcc2
8130    builtin and then its argument prototype would still apply.  */
8131 char gethostbyname ();
8132 char (*f) ();
8133
8134 #ifdef F77_DUMMY_MAIN
8135 #  ifdef __cplusplus
8136      extern "C"
8137 #  endif
8138    int F77_DUMMY_MAIN() { return 1; }
8139 #endif
8140 int
8141 main ()
8142 {
8143 /* The GNU C library defines this for functions which it implements
8144     to always fail with ENOSYS.  Some functions are actually named
8145     something starting with __ and the normal name is an alias.  */
8146 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8147 choke me
8148 #else
8149 f = gethostbyname;
8150 #endif
8151
8152   ;
8153   return 0;
8154 }
8155 _ACEOF
8156 rm -f conftest.$ac_objext conftest$ac_exeext
8157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8158   (eval $ac_link) 2>&5
8159   ac_status=$?
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); } &&
8162          { ac_try='test -s conftest$ac_exeext'
8163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164   (eval $ac_try) 2>&5
8165   ac_status=$?
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); }; }; then
8168   ac_cv_func_gethostbyname=yes
8169 else
8170   echo "$as_me: failed program was:" >&5
8171 cat conftest.$ac_ext >&5
8172 ac_cv_func_gethostbyname=no
8173 fi
8174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8175 fi
8176 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8177 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8178
8179     if test $ac_cv_func_gethostbyname = no; then
8180       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8181 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8182 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8183   echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185   ac_check_lib_save_LIBS=$LIBS
8186 LIBS="-lnsl  $LIBS"
8187 cat >conftest.$ac_ext <<_ACEOF
8188 #line $LINENO "configure"
8189 #include "confdefs.h"
8190
8191 /* Override any gcc2 internal prototype to avoid an error.  */
8192 #ifdef __cplusplus
8193 extern "C"
8194 #endif
8195 /* We use char because int might match the return type of a gcc2
8196    builtin and then its argument prototype would still apply.  */
8197 char gethostbyname ();
8198 #ifdef F77_DUMMY_MAIN
8199 #  ifdef __cplusplus
8200      extern "C"
8201 #  endif
8202    int F77_DUMMY_MAIN() { return 1; }
8203 #endif
8204 int
8205 main ()
8206 {
8207 gethostbyname ();
8208   ;
8209   return 0;
8210 }
8211 _ACEOF
8212 rm -f conftest.$ac_objext conftest$ac_exeext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8214   (eval $ac_link) 2>&5
8215   ac_status=$?
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); } &&
8218          { ac_try='test -s conftest$ac_exeext'
8219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220   (eval $ac_try) 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); }; }; then
8224   ac_cv_lib_nsl_gethostbyname=yes
8225 else
8226   echo "$as_me: failed program was:" >&5
8227 cat conftest.$ac_ext >&5
8228 ac_cv_lib_nsl_gethostbyname=no
8229 fi
8230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8231 LIBS=$ac_check_lib_save_LIBS
8232 fi
8233 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8234 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8235 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8236   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8237 fi
8238
8239       if test $ac_cv_lib_nsl_gethostbyname = no; then
8240         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8241 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8242 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8243   echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245   ac_check_lib_save_LIBS=$LIBS
8246 LIBS="-lbsd  $LIBS"
8247 cat >conftest.$ac_ext <<_ACEOF
8248 #line $LINENO "configure"
8249 #include "confdefs.h"
8250
8251 /* Override any gcc2 internal prototype to avoid an error.  */
8252 #ifdef __cplusplus
8253 extern "C"
8254 #endif
8255 /* We use char because int might match the return type of a gcc2
8256    builtin and then its argument prototype would still apply.  */
8257 char gethostbyname ();
8258 #ifdef F77_DUMMY_MAIN
8259 #  ifdef __cplusplus
8260      extern "C"
8261 #  endif
8262    int F77_DUMMY_MAIN() { return 1; }
8263 #endif
8264 int
8265 main ()
8266 {
8267 gethostbyname ();
8268   ;
8269   return 0;
8270 }
8271 _ACEOF
8272 rm -f conftest.$ac_objext conftest$ac_exeext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274   (eval $ac_link) 2>&5
8275   ac_status=$?
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); } &&
8278          { ac_try='test -s conftest$ac_exeext'
8279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280   (eval $ac_try) 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); }; }; then
8284   ac_cv_lib_bsd_gethostbyname=yes
8285 else
8286   echo "$as_me: failed program was:" >&5
8287 cat conftest.$ac_ext >&5
8288 ac_cv_lib_bsd_gethostbyname=no
8289 fi
8290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8291 LIBS=$ac_check_lib_save_LIBS
8292 fi
8293 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8294 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8295 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8296   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8297 fi
8298
8299       fi
8300     fi
8301
8302     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8303     # socket/setsockopt and other routines are undefined under SCO ODT
8304     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8305     # on later versions), says Simon Leinen: it contains gethostby*
8306     # variants that don't use the nameserver (or something).  -lsocket
8307     # must be given before -lnsl if both are needed.  We assume that
8308     # if connect needs -lnsl, so does gethostbyname.
8309     echo "$as_me:$LINENO: checking for connect" >&5
8310 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8311 if test "${ac_cv_func_connect+set}" = set; then
8312   echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314   cat >conftest.$ac_ext <<_ACEOF
8315 #line $LINENO "configure"
8316 #include "confdefs.h"
8317 /* System header to define __stub macros and hopefully few prototypes,
8318     which can conflict with char connect (); below.  */
8319 #include <assert.h>
8320 /* Override any gcc2 internal prototype to avoid an error.  */
8321 #ifdef __cplusplus
8322 extern "C"
8323 #endif
8324 /* We use char because int might match the return type of a gcc2
8325    builtin and then its argument prototype would still apply.  */
8326 char connect ();
8327 char (*f) ();
8328
8329 #ifdef F77_DUMMY_MAIN
8330 #  ifdef __cplusplus
8331      extern "C"
8332 #  endif
8333    int F77_DUMMY_MAIN() { return 1; }
8334 #endif
8335 int
8336 main ()
8337 {
8338 /* The GNU C library defines this for functions which it implements
8339     to always fail with ENOSYS.  Some functions are actually named
8340     something starting with __ and the normal name is an alias.  */
8341 #if defined (__stub_connect) || defined (__stub___connect)
8342 choke me
8343 #else
8344 f = connect;
8345 #endif
8346
8347   ;
8348   return 0;
8349 }
8350 _ACEOF
8351 rm -f conftest.$ac_objext conftest$ac_exeext
8352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8353   (eval $ac_link) 2>&5
8354   ac_status=$?
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); } &&
8357          { ac_try='test -s conftest$ac_exeext'
8358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359   (eval $ac_try) 2>&5
8360   ac_status=$?
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); }; }; then
8363   ac_cv_func_connect=yes
8364 else
8365   echo "$as_me: failed program was:" >&5
8366 cat conftest.$ac_ext >&5
8367 ac_cv_func_connect=no
8368 fi
8369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8370 fi
8371 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8372 echo "${ECHO_T}$ac_cv_func_connect" >&6
8373
8374     if test $ac_cv_func_connect = no; then
8375       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8376 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8377 if test "${ac_cv_lib_socket_connect+set}" = set; then
8378   echo $ECHO_N "(cached) $ECHO_C" >&6
8379 else
8380   ac_check_lib_save_LIBS=$LIBS
8381 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8382 cat >conftest.$ac_ext <<_ACEOF
8383 #line $LINENO "configure"
8384 #include "confdefs.h"
8385
8386 /* Override any gcc2 internal prototype to avoid an error.  */
8387 #ifdef __cplusplus
8388 extern "C"
8389 #endif
8390 /* We use char because int might match the return type of a gcc2
8391    builtin and then its argument prototype would still apply.  */
8392 char connect ();
8393 #ifdef F77_DUMMY_MAIN
8394 #  ifdef __cplusplus
8395      extern "C"
8396 #  endif
8397    int F77_DUMMY_MAIN() { return 1; }
8398 #endif
8399 int
8400 main ()
8401 {
8402 connect ();
8403   ;
8404   return 0;
8405 }
8406 _ACEOF
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409   (eval $ac_link) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } &&
8413          { ac_try='test -s conftest$ac_exeext'
8414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415   (eval $ac_try) 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; }; then
8419   ac_cv_lib_socket_connect=yes
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8423 ac_cv_lib_socket_connect=no
8424 fi
8425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8426 LIBS=$ac_check_lib_save_LIBS
8427 fi
8428 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8429 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8430 if test $ac_cv_lib_socket_connect = yes; then
8431   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8432 fi
8433
8434     fi
8435
8436     # Guillermo Gomez says -lposix is necessary on A/UX.
8437     echo "$as_me:$LINENO: checking for remove" >&5
8438 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8439 if test "${ac_cv_func_remove+set}" = set; then
8440   echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442   cat >conftest.$ac_ext <<_ACEOF
8443 #line $LINENO "configure"
8444 #include "confdefs.h"
8445 /* System header to define __stub macros and hopefully few prototypes,
8446     which can conflict with char remove (); below.  */
8447 #include <assert.h>
8448 /* Override any gcc2 internal prototype to avoid an error.  */
8449 #ifdef __cplusplus
8450 extern "C"
8451 #endif
8452 /* We use char because int might match the return type of a gcc2
8453    builtin and then its argument prototype would still apply.  */
8454 char remove ();
8455 char (*f) ();
8456
8457 #ifdef F77_DUMMY_MAIN
8458 #  ifdef __cplusplus
8459      extern "C"
8460 #  endif
8461    int F77_DUMMY_MAIN() { return 1; }
8462 #endif
8463 int
8464 main ()
8465 {
8466 /* The GNU C library defines this for functions which it implements
8467     to always fail with ENOSYS.  Some functions are actually named
8468     something starting with __ and the normal name is an alias.  */
8469 #if defined (__stub_remove) || defined (__stub___remove)
8470 choke me
8471 #else
8472 f = remove;
8473 #endif
8474
8475   ;
8476   return 0;
8477 }
8478 _ACEOF
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481   (eval $ac_link) 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); } &&
8485          { ac_try='test -s conftest$ac_exeext'
8486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487   (eval $ac_try) 2>&5
8488   ac_status=$?
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); }; }; then
8491   ac_cv_func_remove=yes
8492 else
8493   echo "$as_me: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8495 ac_cv_func_remove=no
8496 fi
8497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8498 fi
8499 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8500 echo "${ECHO_T}$ac_cv_func_remove" >&6
8501
8502     if test $ac_cv_func_remove = no; then
8503       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8504 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8505 if test "${ac_cv_lib_posix_remove+set}" = set; then
8506   echo $ECHO_N "(cached) $ECHO_C" >&6
8507 else
8508   ac_check_lib_save_LIBS=$LIBS
8509 LIBS="-lposix  $LIBS"
8510 cat >conftest.$ac_ext <<_ACEOF
8511 #line $LINENO "configure"
8512 #include "confdefs.h"
8513
8514 /* Override any gcc2 internal prototype to avoid an error.  */
8515 #ifdef __cplusplus
8516 extern "C"
8517 #endif
8518 /* We use char because int might match the return type of a gcc2
8519    builtin and then its argument prototype would still apply.  */
8520 char remove ();
8521 #ifdef F77_DUMMY_MAIN
8522 #  ifdef __cplusplus
8523      extern "C"
8524 #  endif
8525    int F77_DUMMY_MAIN() { return 1; }
8526 #endif
8527 int
8528 main ()
8529 {
8530 remove ();
8531   ;
8532   return 0;
8533 }
8534 _ACEOF
8535 rm -f conftest.$ac_objext conftest$ac_exeext
8536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8537   (eval $ac_link) 2>&5
8538   ac_status=$?
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); } &&
8541          { ac_try='test -s conftest$ac_exeext'
8542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543   (eval $ac_try) 2>&5
8544   ac_status=$?
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); }; }; then
8547   ac_cv_lib_posix_remove=yes
8548 else
8549   echo "$as_me: failed program was:" >&5
8550 cat conftest.$ac_ext >&5
8551 ac_cv_lib_posix_remove=no
8552 fi
8553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8554 LIBS=$ac_check_lib_save_LIBS
8555 fi
8556 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8557 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8558 if test $ac_cv_lib_posix_remove = yes; then
8559   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8560 fi
8561
8562     fi
8563
8564     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8565     echo "$as_me:$LINENO: checking for shmat" >&5
8566 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8567 if test "${ac_cv_func_shmat+set}" = set; then
8568   echo $ECHO_N "(cached) $ECHO_C" >&6
8569 else
8570   cat >conftest.$ac_ext <<_ACEOF
8571 #line $LINENO "configure"
8572 #include "confdefs.h"
8573 /* System header to define __stub macros and hopefully few prototypes,
8574     which can conflict with char shmat (); below.  */
8575 #include <assert.h>
8576 /* Override any gcc2 internal prototype to avoid an error.  */
8577 #ifdef __cplusplus
8578 extern "C"
8579 #endif
8580 /* We use char because int might match the return type of a gcc2
8581    builtin and then its argument prototype would still apply.  */
8582 char shmat ();
8583 char (*f) ();
8584
8585 #ifdef F77_DUMMY_MAIN
8586 #  ifdef __cplusplus
8587      extern "C"
8588 #  endif
8589    int F77_DUMMY_MAIN() { return 1; }
8590 #endif
8591 int
8592 main ()
8593 {
8594 /* The GNU C library defines this for functions which it implements
8595     to always fail with ENOSYS.  Some functions are actually named
8596     something starting with __ and the normal name is an alias.  */
8597 #if defined (__stub_shmat) || defined (__stub___shmat)
8598 choke me
8599 #else
8600 f = shmat;
8601 #endif
8602
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 rm -f conftest.$ac_objext conftest$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609   (eval $ac_link) 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); } &&
8613          { ac_try='test -s conftest$ac_exeext'
8614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615   (eval $ac_try) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; }; then
8619   ac_cv_func_shmat=yes
8620 else
8621   echo "$as_me: failed program was:" >&5
8622 cat conftest.$ac_ext >&5
8623 ac_cv_func_shmat=no
8624 fi
8625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8626 fi
8627 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8628 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8629
8630     if test $ac_cv_func_shmat = no; then
8631       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8632 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8633 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8634   echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636   ac_check_lib_save_LIBS=$LIBS
8637 LIBS="-lipc  $LIBS"
8638 cat >conftest.$ac_ext <<_ACEOF
8639 #line $LINENO "configure"
8640 #include "confdefs.h"
8641
8642 /* Override any gcc2 internal prototype to avoid an error.  */
8643 #ifdef __cplusplus
8644 extern "C"
8645 #endif
8646 /* We use char because int might match the return type of a gcc2
8647    builtin and then its argument prototype would still apply.  */
8648 char shmat ();
8649 #ifdef F77_DUMMY_MAIN
8650 #  ifdef __cplusplus
8651      extern "C"
8652 #  endif
8653    int F77_DUMMY_MAIN() { return 1; }
8654 #endif
8655 int
8656 main ()
8657 {
8658 shmat ();
8659   ;
8660   return 0;
8661 }
8662 _ACEOF
8663 rm -f conftest.$ac_objext conftest$ac_exeext
8664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8665   (eval $ac_link) 2>&5
8666   ac_status=$?
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); } &&
8669          { ac_try='test -s conftest$ac_exeext'
8670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671   (eval $ac_try) 2>&5
8672   ac_status=$?
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); }; }; then
8675   ac_cv_lib_ipc_shmat=yes
8676 else
8677   echo "$as_me: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8679 ac_cv_lib_ipc_shmat=no
8680 fi
8681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8682 LIBS=$ac_check_lib_save_LIBS
8683 fi
8684 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8685 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8686 if test $ac_cv_lib_ipc_shmat = yes; then
8687   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8688 fi
8689
8690     fi
8691   fi
8692
8693   # Check for libraries that X11R6 Xt/Xaw programs need.
8694   ac_save_LDFLAGS=$LDFLAGS
8695   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8696   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8697   # check for ICE first), but we must link in the order -lSM -lICE or
8698   # we get undefined symbols.  So assume we have SM if we have ICE.
8699   # These have to be linked with before -lX11, unlike the other
8700   # libraries we check for below, so use a different variable.
8701   # John Interrante, Karl Berry
8702   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8703 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8704 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8705   echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707   ac_check_lib_save_LIBS=$LIBS
8708 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8709 cat >conftest.$ac_ext <<_ACEOF
8710 #line $LINENO "configure"
8711 #include "confdefs.h"
8712
8713 /* Override any gcc2 internal prototype to avoid an error.  */
8714 #ifdef __cplusplus
8715 extern "C"
8716 #endif
8717 /* We use char because int might match the return type of a gcc2
8718    builtin and then its argument prototype would still apply.  */
8719 char IceConnectionNumber ();
8720 #ifdef F77_DUMMY_MAIN
8721 #  ifdef __cplusplus
8722      extern "C"
8723 #  endif
8724    int F77_DUMMY_MAIN() { return 1; }
8725 #endif
8726 int
8727 main ()
8728 {
8729 IceConnectionNumber ();
8730   ;
8731   return 0;
8732 }
8733 _ACEOF
8734 rm -f conftest.$ac_objext conftest$ac_exeext
8735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8736   (eval $ac_link) 2>&5
8737   ac_status=$?
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); } &&
8740          { ac_try='test -s conftest$ac_exeext'
8741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742   (eval $ac_try) 2>&5
8743   ac_status=$?
8744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); }; }; then
8746   ac_cv_lib_ICE_IceConnectionNumber=yes
8747 else
8748   echo "$as_me: failed program was:" >&5
8749 cat conftest.$ac_ext >&5
8750 ac_cv_lib_ICE_IceConnectionNumber=no
8751 fi
8752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8753 LIBS=$ac_check_lib_save_LIBS
8754 fi
8755 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8756 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8757 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8758   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8759 fi
8760
8761   LDFLAGS=$ac_save_LDFLAGS
8762
8763 fi
8764
8765
8766
8767
8768
8769
8770
8771
8772 X_TOOLKIT_LIBS="-lXt"
8773 X_BASIC_LIBS="-lXext -lX11 -lXmu"
8774
8775 our_saved_LDFLAGS="$LDFLAGS"
8776 LDFLAGS="$X_LIBS $LDFLAGS"
8777 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
8778 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
8779 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
8780   echo $ECHO_N "(cached) $ECHO_C" >&6
8781 else
8782   ac_check_lib_save_LIBS=$LIBS
8783 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
8784 cat >conftest.$ac_ext <<_ACEOF
8785 #line $LINENO "configure"
8786 #include "confdefs.h"
8787
8788 /* Override any gcc2 internal prototype to avoid an error.  */
8789 #ifdef __cplusplus
8790 extern "C"
8791 #endif
8792 /* We use char because int might match the return type of a gcc2
8793    builtin and then its argument prototype would still apply.  */
8794 char XtToolkitThreadInitialize ();
8795 #ifdef F77_DUMMY_MAIN
8796 #  ifdef __cplusplus
8797      extern "C"
8798 #  endif
8799    int F77_DUMMY_MAIN() { return 1; }
8800 #endif
8801 int
8802 main ()
8803 {
8804 XtToolkitThreadInitialize ();
8805   ;
8806   return 0;
8807 }
8808 _ACEOF
8809 rm -f conftest.$ac_objext conftest$ac_exeext
8810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8811   (eval $ac_link) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); } &&
8815          { ac_try='test -s conftest$ac_exeext'
8816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817   (eval $ac_try) 2>&5
8818   ac_status=$?
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); }; }; then
8821   ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
8822 else
8823   echo "$as_me: failed program was:" >&5
8824 cat conftest.$ac_ext >&5
8825 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
8826 fi
8827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8828 LIBS=$ac_check_lib_save_LIBS
8829 fi
8830 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
8831 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
8832 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
8833
8834 cat >>confdefs.h <<\_ACEOF
8835 #define X_THREAD_SUPPORT 1
8836 _ACEOF
8837
8838 fi
8839
8840 LDFLAGS="$our_saved_LDFLAGS"
8841
8842
8843
8844 if test "x$no_x" = "xyes"; then
8845   NO_X_TRUE=
8846   NO_X_FALSE='#'
8847 else
8848   NO_X_TRUE='#'
8849   NO_X_FALSE=
8850 fi
8851
8852 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
8853
8854
8855 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8856
8857 echo "$as_me:$LINENO: checking for X" >&5
8858 echo $ECHO_N "checking for X... $ECHO_C" >&6
8859 if test "$no_x" != "yes" ; then
8860
8861 cat >>confdefs.h <<\_ACEOF
8862 #define HAVE_X11 1
8863 _ACEOF
8864
8865   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
8866   ctlib_graphics="$ctlibs_base -lctgraphics"
8867   echo "$as_me:$LINENO: result: yes" >&5
8868 echo "${ECHO_T}yes" >&6
8869   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
8870   if test "$libgl" = "true" ; then
8871     ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU"
8872     if test "$wxwin" = "true" ; then
8873       ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.2"
8874     fi
8875   fi
8876   if test "$wxwin" = "true" ; then
8877
8878 cat >>confdefs.h <<\_ACEOF
8879 #define HAVE_SGP 1
8880 _ACEOF
8881
8882
8883
8884 if test 1==1; then
8885   HAVE_SGP_TRUE=
8886   HAVE_SGP_FALSE='#'
8887 else
8888   HAVE_SGP_TRUE='#'
8889   HAVE_SGP_FALSE=
8890 fi
8891   fi
8892 else
8893   echo "$as_me:$LINENO: result: no" >&5
8894 echo "${ECHO_T}no" >&6
8895 fi
8896
8897 if test "$png" = "true" ; then
8898   ctlibs_tools="$ctlibs_tools -lpng"
8899 fi
8900 if test "$zlib" = "true" ; then
8901   ctlibs_tools="$ctlibs_tools -lz"
8902 fi
8903 if test "$fftw" = "true" ; then
8904   ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
8905 fi
8906 if test "$ctn" = "true"; then
8907   ctlibs_tools="$ctlibs_tools -lctn"
8908 fi
8909
8910 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
8911 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
8912 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
8913   echo $ECHO_N "(cached) $ECHO_C" >&6
8914 else
8915   ac_check_lib_save_LIBS=$LIBS
8916 LIBS="-ldmallocxx  $LIBS"
8917 cat >conftest.$ac_ext <<_ACEOF
8918 #line $LINENO "configure"
8919 #include "confdefs.h"
8920
8921
8922 #ifdef F77_DUMMY_MAIN
8923 #  ifdef __cplusplus
8924      extern "C"
8925 #  endif
8926    int F77_DUMMY_MAIN() { return 1; }
8927 #endif
8928 int
8929 main ()
8930 {
8931 main ();
8932   ;
8933   return 0;
8934 }
8935 _ACEOF
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8938   (eval $ac_link) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); } &&
8942          { ac_try='test -s conftest$ac_exeext'
8943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944   (eval $ac_try) 2>&5
8945   ac_status=$?
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); }; }; then
8948   ac_cv_lib_dmallocxx_main=yes
8949 else
8950   echo "$as_me: failed program was:" >&5
8951 cat conftest.$ac_ext >&5
8952 ac_cv_lib_dmallocxx_main=no
8953 fi
8954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8955 LIBS=$ac_check_lib_save_LIBS
8956 fi
8957 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
8958 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
8959 if test $ac_cv_lib_dmallocxx_main = yes; then
8960   dmallocxx=true
8961 else
8962   dmallocxx=false
8963 fi
8964
8965 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
8966 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
8967 # Check whether --enable-dmalloc or --disable-dmalloc was given.
8968 if test "${enable_dmalloc+set}" = set; then
8969   enableval="$enable_dmalloc"
8970   case "${enableval}" in
8971   yes) usedmalloc=true
8972        echo "$as_me:$LINENO: result: yes" >&5
8973 echo "${ECHO_T}yes" >&6
8974        ;;
8975   no)  usedmalloc=false
8976        echo "$as_me:$LINENO: result: no" >&5
8977 echo "${ECHO_T}no" >&6
8978        ;;
8979   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
8980 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
8981        ;;
8982 esac
8983 else
8984   usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
8985 echo "${ECHO_T}no" >&6
8986 fi;
8987
8988 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
8989   ctlibs_tools="$ctlibs_tools -ldmallocxx"
8990
8991 cat >>confdefs.h <<\_ACEOF
8992 #define HAVE_DMALLOC 1
8993 _ACEOF
8994
8995   echo "$as_me:$LINENO: result: Using dmalloc" >&5
8996 echo "${ECHO_T}Using dmalloc" >&6
8997 fi
8998
8999 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9000 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9001 if test "${ac_cv_lib_efence_main+set}" = set; then
9002   echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004   ac_check_lib_save_LIBS=$LIBS
9005 LIBS="-lefence  $LIBS"
9006 cat >conftest.$ac_ext <<_ACEOF
9007 #line $LINENO "configure"
9008 #include "confdefs.h"
9009
9010
9011 #ifdef F77_DUMMY_MAIN
9012 #  ifdef __cplusplus
9013      extern "C"
9014 #  endif
9015    int F77_DUMMY_MAIN() { return 1; }
9016 #endif
9017 int
9018 main ()
9019 {
9020 main ();
9021   ;
9022   return 0;
9023 }
9024 _ACEOF
9025 rm -f conftest.$ac_objext conftest$ac_exeext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027   (eval $ac_link) 2>&5
9028   ac_status=$?
9029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030   (exit $ac_status); } &&
9031          { ac_try='test -s conftest$ac_exeext'
9032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033   (eval $ac_try) 2>&5
9034   ac_status=$?
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); }; }; then
9037   ac_cv_lib_efence_main=yes
9038 else
9039   echo "$as_me: failed program was:" >&5
9040 cat conftest.$ac_ext >&5
9041 ac_cv_lib_efence_main=no
9042 fi
9043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9044 LIBS=$ac_check_lib_save_LIBS
9045 fi
9046 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9047 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9048 if test $ac_cv_lib_efence_main = yes; then
9049   efence=true
9050 else
9051   efence=false
9052 fi
9053
9054 echo "$as_me:$LINENO: checking for enable-efence" >&5
9055 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9056 # Check whether --enable-efence or --disable-efence was given.
9057 if test "${enable_efence+set}" = set; then
9058   enableval="$enable_efence"
9059   case "${enableval}" in
9060   yes) useefence=true
9061        echo "$as_me:$LINENO: result: yes" >&5
9062 echo "${ECHO_T}yes" >&6
9063        ;;
9064   no)  useefence=false
9065        echo "$as_me:$LINENO: result: no" >&5
9066 echo "${ECHO_T}no" >&6
9067        ;;
9068   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9069 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9070        ;;
9071 esac
9072 else
9073   useefence=false; echo "$as_me:$LINENO: result: no" >&5
9074 echo "${ECHO_T}no" >&6
9075 fi;
9076
9077 if test "$efence" = "true" -a "$useefence" = "true" ; then
9078   ctlibs_tools="$ctlibs_tools -lefence"
9079
9080 cat >>confdefs.h <<\_ACEOF
9081 #define HAVE_EFENCE 1
9082 _ACEOF
9083
9084   echo "$as_me:$LINENO: result: Using efence" >&5
9085 echo "${ECHO_T}Using efence" >&6
9086 fi
9087
9088 if test "$wxwin" = "true" ; then
9089   if test "$wx_gtk" = "true" ; then
9090     wxcflags=`$wxconfig --cflags`
9091     wxlibs=`$wxconfig --libs`
9092   else
9093         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9094    wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9095   fi
9096   CFLAGS="$CFLAGS -I../include $wxcflags"
9097   ctlib_graphics="$ctlib_graphics $wxlibs"
9098
9099
9100 if test 1==1 ; then
9101   HAVE_WXWINDOWS_TRUE=
9102   HAVE_WXWINDOWS_FALSE='#'
9103 else
9104   HAVE_WXWINDOWS_TRUE='#'
9105   HAVE_WXWINDOWS_FALSE=
9106 fi
9107 fi
9108
9109
9110
9111 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9112 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9113
9114
9115 if test -n "$lamdir" ; then
9116   lamprograms="ctsimtext-lam"
9117
9118   lamdefs="$CFLAGS"
9119
9120 fi
9121
9122 CXXFLAGS="$CFLAGS"
9123
9124 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"
9125
9126 cat >confcache <<\_ACEOF
9127 # This file is a shell script that caches the results of configure
9128 # tests run on this system so they can be shared between configure
9129 # scripts and configure runs, see configure's option --config-cache.
9130 # It is not useful on other systems.  If it contains results you don't
9131 # want to keep, you may remove or edit it.
9132 #
9133 # config.status only pays attention to the cache file if you give it
9134 # the --recheck option to rerun configure.
9135 #
9136 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9137 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9138 # following values.
9139
9140 _ACEOF
9141
9142 # The following way of writing the cache mishandles newlines in values,
9143 # but we know of no workaround that is simple, portable, and efficient.
9144 # So, don't put newlines in cache variables' values.
9145 # Ultrix sh set writes to stderr and can't be redirected directly,
9146 # and sets the high bit in the cache file unless we assign to the vars.
9147 {
9148   (set) 2>&1 |
9149     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9150     *ac_space=\ *)
9151       # `set' does not quote correctly, so add quotes (double-quote
9152       # substitution turns \\\\ into \\, and sed turns \\ into \).
9153       sed -n \
9154         "s/'/'\\\\''/g;
9155           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9156       ;;
9157     *)
9158       # `set' quotes correctly as required by POSIX, so do not add quotes.
9159       sed -n \
9160         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9161       ;;
9162     esac;
9163 } |
9164   sed '
9165      t clear
9166      : clear
9167      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9168      t end
9169      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9170      : end' >>confcache
9171 if cmp -s $cache_file confcache; then :; else
9172   if test -w $cache_file; then
9173     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9174     cat confcache >$cache_file
9175   else
9176     echo "not updating unwritable cache $cache_file"
9177   fi
9178 fi
9179 rm -f confcache
9180
9181 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9182 # Let make expand exec_prefix.
9183 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9184
9185 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9186 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9187 # trailing colons and then remove the whole line if VPATH becomes empty
9188 # (actually we leave an empty line to preserve line numbers).
9189 if test "x$srcdir" = x.; then
9190   ac_vpsub='/^[         ]*VPATH[        ]*=/{
9191 s/:*\$(srcdir):*/:/;
9192 s/:*\${srcdir}:*/:/;
9193 s/:*@srcdir@:*/:/;
9194 s/^\([^=]*=[    ]*\):*/\1/;
9195 s/:*$//;
9196 s/^[^=]*=[      ]*$//;
9197 }'
9198 fi
9199
9200 DEFS=-DHAVE_CONFIG_H
9201
9202
9203 : ${CONFIG_STATUS=./config.status}
9204 ac_clean_files_save=$ac_clean_files
9205 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9206 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9207 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9208 cat >$CONFIG_STATUS <<_ACEOF
9209 #! $SHELL
9210 # Generated by $as_me.
9211 # Run this file to recreate the current configuration.
9212 # Compiler output produced by configure, useful for debugging
9213 # configure, is in config.log if it exists.
9214
9215 debug=false
9216 SHELL=\${CONFIG_SHELL-$SHELL}
9217 _ACEOF
9218
9219 cat >>$CONFIG_STATUS <<\_ACEOF
9220
9221 ## --------------------- ##
9222 ## M4sh Initialization.  ##
9223 ## --------------------- ##
9224
9225 # Be Bourne compatible
9226 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9227   emulate sh
9228   NULLCMD=:
9229 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9230   set -o posix
9231 fi
9232
9233 # NLS nuisances.
9234 # Support unset when possible.
9235 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9236   as_unset=unset
9237 else
9238   as_unset=false
9239 fi
9240
9241 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9242     { $as_unset LANG || test "${LANG+set}" != set; } ||
9243       { LANG=C; export LANG; }
9244 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9245     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9246       { LC_ALL=C; export LC_ALL; }
9247 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9248     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9249       { LC_TIME=C; export LC_TIME; }
9250 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9251     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9252       { LC_CTYPE=C; export LC_CTYPE; }
9253 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9254     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9255       { LANGUAGE=C; export LANGUAGE; }
9256 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9257     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9258       { LC_COLLATE=C; export LC_COLLATE; }
9259 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9260     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9261       { LC_NUMERIC=C; export LC_NUMERIC; }
9262 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9263     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9264       { LC_MESSAGES=C; export LC_MESSAGES; }
9265
9266
9267 # Name of the executable.
9268 as_me=`(basename "$0") 2>/dev/null ||
9269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9270          X"$0" : 'X\(//\)$' \| \
9271          X"$0" : 'X\(/\)$' \| \
9272          .     : '\(.\)' 2>/dev/null ||
9273 echo X/"$0" |
9274     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9275           /^X\/\(\/\/\)$/{ s//\1/; q; }
9276           /^X\/\(\/\).*/{ s//\1/; q; }
9277           s/.*/./; q'`
9278
9279 # PATH needs CR, and LINENO needs CR and PATH.
9280 # Avoid depending upon Character Ranges.
9281 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9282 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9283 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9284 as_cr_digits='0123456789'
9285 as_cr_alnum=$as_cr_Letters$as_cr_digits
9286
9287 # The user is always right.
9288 if test "${PATH_SEPARATOR+set}" != set; then
9289   echo "#! /bin/sh" >conftest.sh
9290   echo  "exit 0"   >>conftest.sh
9291   chmod +x conftest.sh
9292   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9293     PATH_SEPARATOR=';'
9294   else
9295     PATH_SEPARATOR=:
9296   fi
9297   rm -f conftest.sh
9298 fi
9299
9300
9301   as_lineno_1=$LINENO
9302   as_lineno_2=$LINENO
9303   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9304   test "x$as_lineno_1" != "x$as_lineno_2" &&
9305   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9306   # Find who we are.  Look in the path if we contain no path at all
9307   # relative or not.
9308   case $0 in
9309     *[\\/]* ) as_myself=$0 ;;
9310     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311 for as_dir in $PATH
9312 do
9313   IFS=$as_save_IFS
9314   test -z "$as_dir" && as_dir=.
9315   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9316 done
9317
9318        ;;
9319   esac
9320   # We did not find ourselves, most probably we were run as `sh COMMAND'
9321   # in which case we are not to be found in the path.
9322   if test "x$as_myself" = x; then
9323     as_myself=$0
9324   fi
9325   if test ! -f "$as_myself"; then
9326     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9327 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9328    { (exit 1); exit 1; }; }
9329   fi
9330   case $CONFIG_SHELL in
9331   '')
9332     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9333 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9334 do
9335   IFS=$as_save_IFS
9336   test -z "$as_dir" && as_dir=.
9337   for as_base in sh bash ksh sh5; do
9338          case $as_dir in
9339          /*)
9340            if ("$as_dir/$as_base" -c '
9341   as_lineno_1=$LINENO
9342   as_lineno_2=$LINENO
9343   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9344   test "x$as_lineno_1" != "x$as_lineno_2" &&
9345   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9346              CONFIG_SHELL=$as_dir/$as_base
9347              export CONFIG_SHELL
9348              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9349            fi;;
9350          esac
9351        done
9352 done
9353 ;;
9354   esac
9355
9356   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9357   # uniformly replaced by the line number.  The first 'sed' inserts a
9358   # line-number line before each line; the second 'sed' does the real
9359   # work.  The second script uses 'N' to pair each line-number line
9360   # with the numbered line, and appends trailing '-' during
9361   # substitution so that $LINENO is not a special case at line end.
9362   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9363   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9364   sed '=' <$as_myself |
9365     sed '
9366       N
9367       s,$,-,
9368       : loop
9369       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9370       t loop
9371       s,-$,,
9372       s,^['$as_cr_digits']*\n,,
9373     ' >$as_me.lineno &&
9374   chmod +x $as_me.lineno ||
9375     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9376 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9377    { (exit 1); exit 1; }; }
9378
9379   # Don't try to exec as it changes $[0], causing all sort of problems
9380   # (the dirname of $[0] is not the place where we might find the
9381   # original and so on.  Autoconf is especially sensible to this).
9382   . ./$as_me.lineno
9383   # Exit status is that of the last command.
9384   exit
9385 }
9386
9387
9388 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9389   *c*,-n*) ECHO_N= ECHO_C='
9390 ' ECHO_T='      ' ;;
9391   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9392   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9393 esac
9394
9395 if expr a : '\(a\)' >/dev/null 2>&1; then
9396   as_expr=expr
9397 else
9398   as_expr=false
9399 fi
9400
9401 rm -f conf$$ conf$$.exe conf$$.file
9402 echo >conf$$.file
9403 if ln -s conf$$.file conf$$ 2>/dev/null; then
9404   # We could just check for DJGPP; but this test a) works b) is more generic
9405   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9406   if test -f conf$$.exe; then
9407     # Don't use ln at all; we don't have any links
9408     as_ln_s='cp -p'
9409   else
9410     as_ln_s='ln -s'
9411   fi
9412 elif ln conf$$.file conf$$ 2>/dev/null; then
9413   as_ln_s=ln
9414 else
9415   as_ln_s='cp -p'
9416 fi
9417 rm -f conf$$ conf$$.exe conf$$.file
9418
9419 as_executable_p="test -f"
9420
9421 # Sed expression to map a string onto a valid CPP name.
9422 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9423
9424 # Sed expression to map a string onto a valid variable name.
9425 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9426
9427
9428 # IFS
9429 # We need space, tab and new line, in precisely that order.
9430 as_nl='
9431 '
9432 IFS="   $as_nl"
9433
9434 # CDPATH.
9435 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9436
9437 exec 6>&1
9438
9439 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9440 # report actual input values of CONFIG_FILES etc. instead of their
9441 # values after options handling.  Logging --version etc. is OK.
9442 exec 5>>config.log
9443 {
9444   echo
9445   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9446 ## Running $as_me. ##
9447 _ASBOX
9448 } >&5
9449 cat >&5 <<_CSEOF
9450
9451 This file was extended by $as_me, which was
9452 generated by GNU Autoconf 2.53.  Invocation command line was
9453
9454   CONFIG_FILES    = $CONFIG_FILES
9455   CONFIG_HEADERS  = $CONFIG_HEADERS
9456   CONFIG_LINKS    = $CONFIG_LINKS
9457   CONFIG_COMMANDS = $CONFIG_COMMANDS
9458   $ $0 $@
9459
9460 _CSEOF
9461 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9462 echo >&5
9463 _ACEOF
9464
9465 # Files that config.status was made for.
9466 if test -n "$ac_config_files"; then
9467   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9468 fi
9469
9470 if test -n "$ac_config_headers"; then
9471   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9472 fi
9473
9474 if test -n "$ac_config_links"; then
9475   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9476 fi
9477
9478 if test -n "$ac_config_commands"; then
9479   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9480 fi
9481
9482 cat >>$CONFIG_STATUS <<\_ACEOF
9483
9484 ac_cs_usage="\
9485 \`$as_me' instantiates files from templates according to the
9486 current configuration.
9487
9488 Usage: $0 [OPTIONS] [FILE]...
9489
9490   -h, --help       print this help, then exit
9491   -V, --version    print version number, then exit
9492   -d, --debug      don't remove temporary files
9493       --recheck    update $as_me by reconfiguring in the same conditions
9494   --file=FILE[:TEMPLATE]
9495                    instantiate the configuration file FILE
9496   --header=FILE[:TEMPLATE]
9497                    instantiate the configuration header FILE
9498
9499 Configuration files:
9500 $config_files
9501
9502 Configuration headers:
9503 $config_headers
9504
9505 Configuration commands:
9506 $config_commands
9507
9508 Report bugs to <bug-autoconf@gnu.org>."
9509 _ACEOF
9510
9511 cat >>$CONFIG_STATUS <<_ACEOF
9512 ac_cs_version="\\
9513 config.status
9514 configured by $0, generated by GNU Autoconf 2.53,
9515   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9516
9517 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9518 Free Software Foundation, Inc.
9519 This config.status script is free software; the Free Software Foundation
9520 gives unlimited permission to copy, distribute and modify it."
9521 srcdir=$srcdir
9522 INSTALL="$INSTALL"
9523 _ACEOF
9524
9525 cat >>$CONFIG_STATUS <<\_ACEOF
9526 # If no file are specified by the user, then we need to provide default
9527 # value.  By we need to know if files were specified by the user.
9528 ac_need_defaults=:
9529 while test $# != 0
9530 do
9531   case $1 in
9532   --*=*)
9533     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9534     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9535     shift
9536     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9537     shift
9538     ;;
9539   -*);;
9540   *) # This is not an option, so the user has probably given explicit
9541      # arguments.
9542      ac_need_defaults=false;;
9543   esac
9544
9545   case $1 in
9546   # Handling of the options.
9547 _ACEOF
9548 cat >>$CONFIG_STATUS <<_ACEOF
9549   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9550     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9551     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9552 _ACEOF
9553 cat >>$CONFIG_STATUS <<\_ACEOF
9554   --version | --vers* | -V )
9555     echo "$ac_cs_version"; exit 0 ;;
9556   --he | --h)
9557     # Conflict between --help and --header
9558     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9559 Try \`$0 --help' for more information." >&5
9560 echo "$as_me: error: ambiguous option: $1
9561 Try \`$0 --help' for more information." >&2;}
9562    { (exit 1); exit 1; }; };;
9563   --help | --hel | -h )
9564     echo "$ac_cs_usage"; exit 0 ;;
9565   --debug | --d* | -d )
9566     debug=: ;;
9567   --file | --fil | --fi | --f )
9568     shift
9569     CONFIG_FILES="$CONFIG_FILES $1"
9570     ac_need_defaults=false;;
9571   --header | --heade | --head | --hea )
9572     shift
9573     CONFIG_HEADERS="$CONFIG_HEADERS $1"
9574     ac_need_defaults=false;;
9575
9576   # This is an error.
9577   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9578 Try \`$0 --help' for more information." >&5
9579 echo "$as_me: error: unrecognized option: $1
9580 Try \`$0 --help' for more information." >&2;}
9581    { (exit 1); exit 1; }; } ;;
9582
9583   *) ac_config_targets="$ac_config_targets $1" ;;
9584
9585   esac
9586   shift
9587 done
9588
9589 _ACEOF
9590
9591 cat >>$CONFIG_STATUS <<_ACEOF
9592 #
9593 # INIT-COMMANDS section.
9594 #
9595
9596
9597
9598 _ACEOF
9599
9600
9601
9602 cat >>$CONFIG_STATUS <<\_ACEOF
9603 for ac_config_target in $ac_config_targets
9604 do
9605   case "$ac_config_target" in
9606   # Handling of arguments.
9607   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9608   "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
9609   "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
9610   "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
9611   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9612   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9613   "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
9614   "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
9615   "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
9616   "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
9617   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9618   "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
9619   "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
9620   "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
9621   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9622   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9623   "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
9624   "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
9625   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9626   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9627   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9628 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9629    { (exit 1); exit 1; }; };;
9630   esac
9631 done
9632
9633 # If the user did not use the arguments to specify the items to instantiate,
9634 # then the envvar interface is used.  Set only those that are not.
9635 # We use the long form for the default assignment because of an extremely
9636 # bizarre bug on SunOS 4.1.3.
9637 if $ac_need_defaults; then
9638   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9639   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9640   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9641 fi
9642
9643 # Create a temporary directory, and hook for its removal unless debugging.
9644 $debug ||
9645 {
9646   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9647   trap '{ (exit 1); exit 1; }' 1 2 13 15
9648 }
9649
9650 # Create a (secure) tmp directory for tmp files.
9651 : ${TMPDIR=/tmp}
9652 {
9653   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9654   test -n "$tmp" && test -d "$tmp"
9655 }  ||
9656 {
9657   tmp=$TMPDIR/cs$$-$RANDOM
9658   (umask 077 && mkdir $tmp)
9659 } ||
9660 {
9661    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9662    { (exit 1); exit 1; }
9663 }
9664
9665 _ACEOF
9666
9667 cat >>$CONFIG_STATUS <<_ACEOF
9668
9669 #
9670 # CONFIG_FILES section.
9671 #
9672
9673 # No need to generate the scripts if there are no CONFIG_FILES.
9674 # This happens for instance when ./config.status config.h
9675 if test -n "\$CONFIG_FILES"; then
9676   # Protect against being on the right side of a sed subst in config.status.
9677   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9678    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9679 s,@SHELL@,$SHELL,;t t
9680 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9681 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9682 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9683 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9684 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9685 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9686 s,@exec_prefix@,$exec_prefix,;t t
9687 s,@prefix@,$prefix,;t t
9688 s,@program_transform_name@,$program_transform_name,;t t
9689 s,@bindir@,$bindir,;t t
9690 s,@sbindir@,$sbindir,;t t
9691 s,@libexecdir@,$libexecdir,;t t
9692 s,@datadir@,$datadir,;t t
9693 s,@sysconfdir@,$sysconfdir,;t t
9694 s,@sharedstatedir@,$sharedstatedir,;t t
9695 s,@localstatedir@,$localstatedir,;t t
9696 s,@libdir@,$libdir,;t t
9697 s,@includedir@,$includedir,;t t
9698 s,@oldincludedir@,$oldincludedir,;t t
9699 s,@infodir@,$infodir,;t t
9700 s,@mandir@,$mandir,;t t
9701 s,@build_alias@,$build_alias,;t t
9702 s,@host_alias@,$host_alias,;t t
9703 s,@target_alias@,$target_alias,;t t
9704 s,@DEFS@,$DEFS,;t t
9705 s,@ECHO_C@,$ECHO_C,;t t
9706 s,@ECHO_N@,$ECHO_N,;t t
9707 s,@ECHO_T@,$ECHO_T,;t t
9708 s,@LIBS@,$LIBS,;t t
9709 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9710 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9711 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9712 s,@PACKAGE@,$PACKAGE,;t t
9713 s,@VERSION@,$VERSION,;t t
9714 s,@ACLOCAL@,$ACLOCAL,;t t
9715 s,@AUTOCONF@,$AUTOCONF,;t t
9716 s,@AUTOMAKE@,$AUTOMAKE,;t t
9717 s,@AUTOHEADER@,$AUTOHEADER,;t t
9718 s,@MAKEINFO@,$MAKEINFO,;t t
9719 s,@SET_MAKE@,$SET_MAKE,;t t
9720 s,@AWK@,$AWK,;t t
9721 s,@RANLIB@,$RANLIB,;t t
9722 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9723 s,@CC@,$CC,;t t
9724 s,@CFLAGS@,$CFLAGS,;t t
9725 s,@LDFLAGS@,$LDFLAGS,;t t
9726 s,@CPPFLAGS@,$CPPFLAGS,;t t
9727 s,@ac_ct_CC@,$ac_ct_CC,;t t
9728 s,@EXEEXT@,$EXEEXT,;t t
9729 s,@OBJEXT@,$OBJEXT,;t t
9730 s,@CXX@,$CXX,;t t
9731 s,@CXXFLAGS@,$CXXFLAGS,;t t
9732 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9733 s,@wxconfig@,$wxconfig,;t t
9734 s,@build@,$build,;t t
9735 s,@build_cpu@,$build_cpu,;t t
9736 s,@build_vendor@,$build_vendor,;t t
9737 s,@build_os@,$build_os,;t t
9738 s,@host@,$host,;t t
9739 s,@host_cpu@,$host_cpu,;t t
9740 s,@host_vendor@,$host_vendor,;t t
9741 s,@host_os@,$host_os,;t t
9742 s,@CPP@,$CPP,;t t
9743 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
9744 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
9745 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
9746 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
9747 s,@lamdir@,$lamdir,;t t
9748 s,@mpienable@,$mpienable,;t t
9749 s,@cgibindir@,$cgibindir,;t t
9750 s,@cgibinurl@,$cgibinurl,;t t
9751 s,@webdatadir@,$webdatadir,;t t
9752 s,@webdataurl@,$webdataurl,;t t
9753 s,@htmldir@,$htmldir,;t t
9754 s,@cgiprograms@,$cgiprograms,;t t
9755 s,@htmldata@,$htmldata,;t t
9756 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
9757 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
9758 s,@webenabled@,$webenabled,;t t
9759 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
9760 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
9761 s,@X_CFLAGS@,$X_CFLAGS,;t t
9762 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9763 s,@X_LIBS@,$X_LIBS,;t t
9764 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9765 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
9766 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
9767 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
9768 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
9769 s,@my_includes@,$my_includes,;t t
9770 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
9771 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
9772 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
9773 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
9774 s,@wxcflags@,$wxcflags,;t t
9775 s,@wxlibs@,$wxlibs,;t t
9776 s,@ctlibs@,$ctlibs,;t t
9777 s,@lamprograms@,$lamprograms,;t t
9778 s,@lamdefs@,$lamdefs,;t t
9779 CEOF
9780
9781 _ACEOF
9782
9783   cat >>$CONFIG_STATUS <<\_ACEOF
9784   # Split the substitutions into bite-sized pieces for seds with
9785   # small command number limits, like on Digital OSF/1 and HP-UX.
9786   ac_max_sed_lines=48
9787   ac_sed_frag=1 # Number of current file.
9788   ac_beg=1 # First line for current file.
9789   ac_end=$ac_max_sed_lines # Line after last line for current file.
9790   ac_more_lines=:
9791   ac_sed_cmds=
9792   while $ac_more_lines; do
9793     if test $ac_beg -gt 1; then
9794       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9795     else
9796       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9797     fi
9798     if test ! -s $tmp/subs.frag; then
9799       ac_more_lines=false
9800     else
9801       # The purpose of the label and of the branching condition is to
9802       # speed up the sed processing (if there are no `@' at all, there
9803       # is no need to browse any of the substitutions).
9804       # These are the two extra sed commands mentioned above.
9805       (echo ':t
9806   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9807       if test -z "$ac_sed_cmds"; then
9808         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9809       else
9810         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9811       fi
9812       ac_sed_frag=`expr $ac_sed_frag + 1`
9813       ac_beg=$ac_end
9814       ac_end=`expr $ac_end + $ac_max_sed_lines`
9815     fi
9816   done
9817   if test -z "$ac_sed_cmds"; then
9818     ac_sed_cmds=cat
9819   fi
9820 fi # test -n "$CONFIG_FILES"
9821
9822 _ACEOF
9823 cat >>$CONFIG_STATUS <<\_ACEOF
9824 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9825   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9826   case $ac_file in
9827   - | *:- | *:-:* ) # input from stdin
9828         cat >$tmp/stdin
9829         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9830         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9831   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9832         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9833   * )   ac_file_in=$ac_file.in ;;
9834   esac
9835
9836   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9837   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9839          X"$ac_file" : 'X\(//\)[^/]' \| \
9840          X"$ac_file" : 'X\(//\)$' \| \
9841          X"$ac_file" : 'X\(/\)' \| \
9842          .     : '\(.\)' 2>/dev/null ||
9843 echo X"$ac_file" |
9844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9845           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9846           /^X\(\/\/\)$/{ s//\1/; q; }
9847           /^X\(\/\).*/{ s//\1/; q; }
9848           s/.*/./; q'`
9849   { case "$ac_dir" in
9850   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9851   *)                      as_incr_dir=.;;
9852 esac
9853 as_dummy="$ac_dir"
9854 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9855   case $as_mkdir_dir in
9856     # Skip DOS drivespec
9857     ?:) as_incr_dir=$as_mkdir_dir ;;
9858     *)
9859       as_incr_dir=$as_incr_dir/$as_mkdir_dir
9860       test -d "$as_incr_dir" ||
9861         mkdir "$as_incr_dir" ||
9862         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9863 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9864    { (exit 1); exit 1; }; }
9865     ;;
9866   esac
9867 done; }
9868
9869   ac_builddir=.
9870
9871 if test "$ac_dir" != .; then
9872   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9873   # A "../" for each directory in $ac_dir_suffix.
9874   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9875 else
9876   ac_dir_suffix= ac_top_builddir=
9877 fi
9878
9879 case $srcdir in
9880   .)  # No --srcdir option.  We are building in place.
9881     ac_srcdir=.
9882     if test -z "$ac_top_builddir"; then
9883        ac_top_srcdir=.
9884     else
9885        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9886     fi ;;
9887   [\\/]* | ?:[\\/]* )  # Absolute path.
9888     ac_srcdir=$srcdir$ac_dir_suffix;
9889     ac_top_srcdir=$srcdir ;;
9890   *) # Relative path.
9891     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9892     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9893 esac
9894 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9895 # absolute.
9896 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9897 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9898 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9899 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9900
9901
9902   case $INSTALL in
9903   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9904   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9905   esac
9906
9907   if test x"$ac_file" != x-; then
9908     { echo "$as_me:$LINENO: creating $ac_file" >&5
9909 echo "$as_me: creating $ac_file" >&6;}
9910     rm -f "$ac_file"
9911   fi
9912   # Let's still pretend it is `configure' which instantiates (i.e., don't
9913   # use $as_me), people would be surprised to read:
9914   #    /* config.h.  Generated by config.status.  */
9915   if test x"$ac_file" = x-; then
9916     configure_input=
9917   else
9918     configure_input="$ac_file.  "
9919   fi
9920   configure_input=$configure_input"Generated from `echo $ac_file_in |
9921                                      sed 's,.*/,,'` by configure."
9922
9923   # First look for the input files in the build tree, otherwise in the
9924   # src tree.
9925   ac_file_inputs=`IFS=:
9926     for f in $ac_file_in; do
9927       case $f in
9928       -) echo $tmp/stdin ;;
9929       [\\/$]*)
9930          # Absolute (can't be DOS-style, as IFS=:)
9931          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9932 echo "$as_me: error: cannot find input file: $f" >&2;}
9933    { (exit 1); exit 1; }; }
9934          echo $f;;
9935       *) # Relative
9936          if test -f "$f"; then
9937            # Build tree
9938            echo $f
9939          elif test -f "$srcdir/$f"; then
9940            # Source tree
9941            echo $srcdir/$f
9942          else
9943            # /dev/null tree
9944            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9945 echo "$as_me: error: cannot find input file: $f" >&2;}
9946    { (exit 1); exit 1; }; }
9947          fi;;
9948       esac
9949     done` || { (exit 1); exit 1; }
9950 _ACEOF
9951 cat >>$CONFIG_STATUS <<_ACEOF
9952   sed "$ac_vpsub
9953 $extrasub
9954 _ACEOF
9955 cat >>$CONFIG_STATUS <<\_ACEOF
9956 :t
9957 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9958 s,@configure_input@,$configure_input,;t t
9959 s,@srcdir@,$ac_srcdir,;t t
9960 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9961 s,@top_srcdir@,$ac_top_srcdir,;t t
9962 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9963 s,@builddir@,$ac_builddir,;t t
9964 s,@abs_builddir@,$ac_abs_builddir,;t t
9965 s,@top_builddir@,$ac_top_builddir,;t t
9966 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9967 s,@INSTALL@,$ac_INSTALL,;t t
9968 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9969   rm -f $tmp/stdin
9970   if test x"$ac_file" != x-; then
9971     mv $tmp/out $ac_file
9972   else
9973     cat $tmp/out
9974     rm -f $tmp/out
9975   fi
9976
9977 done
9978 _ACEOF
9979 cat >>$CONFIG_STATUS <<\_ACEOF
9980
9981 #
9982 # CONFIG_HEADER section.
9983 #
9984
9985 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9986 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9987 #
9988 # ac_d sets the value in "#define NAME VALUE" lines.
9989 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
9990 ac_dB='[        ].*$,\1#\2'
9991 ac_dC=' '
9992 ac_dD=',;t'
9993 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9994 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9995 ac_uB='$,\1#\2define\3'
9996 ac_uC=' '
9997 ac_uD=',;t'
9998
9999 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10000   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10001   case $ac_file in
10002   - | *:- | *:-:* ) # input from stdin
10003         cat >$tmp/stdin
10004         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10005         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10006   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10007         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10008   * )   ac_file_in=$ac_file.in ;;
10009   esac
10010
10011   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10012 echo "$as_me: creating $ac_file" >&6;}
10013
10014   # First look for the input files in the build tree, otherwise in the
10015   # src tree.
10016   ac_file_inputs=`IFS=:
10017     for f in $ac_file_in; do
10018       case $f in
10019       -) echo $tmp/stdin ;;
10020       [\\/$]*)
10021          # Absolute (can't be DOS-style, as IFS=:)
10022          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10023 echo "$as_me: error: cannot find input file: $f" >&2;}
10024    { (exit 1); exit 1; }; }
10025          echo $f;;
10026       *) # Relative
10027          if test -f "$f"; then
10028            # Build tree
10029            echo $f
10030          elif test -f "$srcdir/$f"; then
10031            # Source tree
10032            echo $srcdir/$f
10033          else
10034            # /dev/null tree
10035            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10036 echo "$as_me: error: cannot find input file: $f" >&2;}
10037    { (exit 1); exit 1; }; }
10038          fi;;
10039       esac
10040     done` || { (exit 1); exit 1; }
10041   # Remove the trailing spaces.
10042   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
10043
10044 _ACEOF
10045
10046 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10047 # `conftest.undefs', that substitutes the proper values into
10048 # config.h.in to produce config.h.  The first handles `#define'
10049 # templates, and the second `#undef' templates.
10050 # And first: Protect against being on the right side of a sed subst in
10051 # config.status.  Protect against being in an unquoted here document
10052 # in config.status.
10053 rm -f conftest.defines conftest.undefs
10054 # Using a here document instead of a string reduces the quoting nightmare.
10055 # Putting comments in sed scripts is not portable.
10056 #
10057 # `end' is used to avoid that the second main sed command (meant for
10058 # 0-ary CPP macros) applies to n-ary macro definitions.
10059 # See the Autoconf documentation for `clear'.
10060 cat >confdef2sed.sed <<\_ACEOF
10061 s/[\\&,]/\\&/g
10062 s,[\\$`],\\&,g
10063 t clear
10064 : clear
10065 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10066 t end
10067 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10068 : end
10069 _ACEOF
10070 # If some macros were called several times there might be several times
10071 # the same #defines, which is useless.  Nevertheless, we may not want to
10072 # sort them, since we want the *last* AC-DEFINE to be honored.
10073 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10074 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10075 rm -f confdef2sed.sed
10076
10077 # This sed command replaces #undef with comments.  This is necessary, for
10078 # example, in the case of _POSIX_SOURCE, which is predefined and required
10079 # on some systems where configure will not decide to define it.
10080 cat >>conftest.undefs <<\_ACEOF
10081 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10082 _ACEOF
10083
10084 # Break up conftest.defines because some shells have a limit on the size
10085 # of here documents, and old seds have small limits too (100 cmds).
10086 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10087 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10088 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10089 echo '  :' >>$CONFIG_STATUS
10090 rm -f conftest.tail
10091 while grep . conftest.defines >/dev/null
10092 do
10093   # Write a limited-size here document to $tmp/defines.sed.
10094   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10095   # Speed up: don't consider the non `#define' lines.
10096   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
10097   # Work around the forget-to-reset-the-flag bug.
10098   echo 't clr' >>$CONFIG_STATUS
10099   echo ': clr' >>$CONFIG_STATUS
10100   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10101   echo 'CEOF
10102   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10103   rm -f $tmp/in
10104   mv $tmp/out $tmp/in
10105 ' >>$CONFIG_STATUS
10106   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10107   rm -f conftest.defines
10108   mv conftest.tail conftest.defines
10109 done
10110 rm -f conftest.defines
10111 echo '  fi # egrep' >>$CONFIG_STATUS
10112 echo >>$CONFIG_STATUS
10113
10114 # Break up conftest.undefs because some shells have a limit on the size
10115 # of here documents, and old seds have small limits too (100 cmds).
10116 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10117 rm -f conftest.tail
10118 while grep . conftest.undefs >/dev/null
10119 do
10120   # Write a limited-size here document to $tmp/undefs.sed.
10121   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10122   # Speed up: don't consider the non `#undef'
10123   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10124   # Work around the forget-to-reset-the-flag bug.
10125   echo 't clr' >>$CONFIG_STATUS
10126   echo ': clr' >>$CONFIG_STATUS
10127   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10128   echo 'CEOF
10129   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10130   rm -f $tmp/in
10131   mv $tmp/out $tmp/in
10132 ' >>$CONFIG_STATUS
10133   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10134   rm -f conftest.undefs
10135   mv conftest.tail conftest.undefs
10136 done
10137 rm -f conftest.undefs
10138
10139 cat >>$CONFIG_STATUS <<\_ACEOF
10140   # Let's still pretend it is `configure' which instantiates (i.e., don't
10141   # use $as_me), people would be surprised to read:
10142   #    /* config.h.  Generated by config.status.  */
10143   if test x"$ac_file" = x-; then
10144     echo "/* Generated by configure.  */" >$tmp/config.h
10145   else
10146     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10147   fi
10148   cat $tmp/in >>$tmp/config.h
10149   rm -f $tmp/in
10150   if test x"$ac_file" != x-; then
10151     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10152       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10153 echo "$as_me: $ac_file is unchanged" >&6;}
10154     else
10155       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10156 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10157          X"$ac_file" : 'X\(//\)[^/]' \| \
10158          X"$ac_file" : 'X\(//\)$' \| \
10159          X"$ac_file" : 'X\(/\)' \| \
10160          .     : '\(.\)' 2>/dev/null ||
10161 echo X"$ac_file" |
10162     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10163           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10164           /^X\(\/\/\)$/{ s//\1/; q; }
10165           /^X\(\/\).*/{ s//\1/; q; }
10166           s/.*/./; q'`
10167       { case "$ac_dir" in
10168   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10169   *)                      as_incr_dir=.;;
10170 esac
10171 as_dummy="$ac_dir"
10172 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10173   case $as_mkdir_dir in
10174     # Skip DOS drivespec
10175     ?:) as_incr_dir=$as_mkdir_dir ;;
10176     *)
10177       as_incr_dir=$as_incr_dir/$as_mkdir_dir
10178       test -d "$as_incr_dir" ||
10179         mkdir "$as_incr_dir" ||
10180         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10181 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10182    { (exit 1); exit 1; }; }
10183     ;;
10184   esac
10185 done; }
10186
10187       rm -f $ac_file
10188       mv $tmp/config.h $ac_file
10189     fi
10190   else
10191     cat $tmp/config.h
10192     rm -f $tmp/config.h
10193   fi
10194 done
10195 _ACEOF
10196 cat >>$CONFIG_STATUS <<\_ACEOF
10197
10198 #
10199 # CONFIG_COMMANDS section.
10200 #
10201 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10202   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10203   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10204   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10205 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10206          X"$ac_dest" : 'X\(//\)[^/]' \| \
10207          X"$ac_dest" : 'X\(//\)$' \| \
10208          X"$ac_dest" : 'X\(/\)' \| \
10209          .     : '\(.\)' 2>/dev/null ||
10210 echo X"$ac_dest" |
10211     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10212           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10213           /^X\(\/\/\)$/{ s//\1/; q; }
10214           /^X\(\/\).*/{ s//\1/; q; }
10215           s/.*/./; q'`
10216   ac_builddir=.
10217
10218 if test "$ac_dir" != .; then
10219   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10220   # A "../" for each directory in $ac_dir_suffix.
10221   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10222 else
10223   ac_dir_suffix= ac_top_builddir=
10224 fi
10225
10226 case $srcdir in
10227   .)  # No --srcdir option.  We are building in place.
10228     ac_srcdir=.
10229     if test -z "$ac_top_builddir"; then
10230        ac_top_srcdir=.
10231     else
10232        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10233     fi ;;
10234   [\\/]* | ?:[\\/]* )  # Absolute path.
10235     ac_srcdir=$srcdir$ac_dir_suffix;
10236     ac_top_srcdir=$srcdir ;;
10237   *) # Relative path.
10238     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10239     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10240 esac
10241 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10242 # absolute.
10243 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10244 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10245 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10246 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10247
10248
10249   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10250 echo "$as_me: executing $ac_dest commands" >&6;}
10251   case $ac_dest in
10252     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10253   esac
10254 done
10255 _ACEOF
10256
10257 cat >>$CONFIG_STATUS <<\_ACEOF
10258
10259 { (exit 0); exit 0; }
10260 _ACEOF
10261 chmod +x $CONFIG_STATUS
10262 ac_clean_files=$ac_clean_files_save
10263
10264
10265 # configure is writing to config.log, and then calls config.status.
10266 # config.status does its own redirection, appending to config.log.
10267 # Unfortunately, on DOS this fails, as config.log is still kept open
10268 # by configure, so config.status won't be able to write to it; its
10269 # output is simply discarded.  So we exec the FD to /dev/null,
10270 # effectively closing config.log, so it can be properly (re)opened and
10271 # appended to by config.status.  When coming back to configure, we
10272 # need to make the FD available again.
10273 if test "$no_create" != yes; then
10274   ac_cs_success=:
10275   exec 5>/dev/null
10276   $SHELL $CONFIG_STATUS || ac_cs_success=false
10277   exec 5>>config.log
10278   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10279   # would make configure fail if this is the last instruction.
10280   $ac_cs_success || { (exit 1); exit 1; }
10281 fi
10282