r2177: *** empty log message ***
[ctsim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11   as_expr=expr
12 else
13   as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization.  ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23   emulate sh
24   NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26   set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32   as_unset=unset
33 else
34   as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38     { $as_unset LANG || test "${LANG+set}" != set; } ||
39       { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42       { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45       { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48       { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51       { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54       { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57       { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60       { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66          X"$0" : 'X\(//\)$' \| \
67          X"$0" : 'X\(/\)$' \| \
68          .     : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71           /^X\/\(\/\/\)$/{ s//\1/; q; }
72           /^X\/\(\/\).*/{ s//\1/; q; }
73           s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              CONFIG_SHELL=$as_dir/$as_base
142              export CONFIG_SHELL
143              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144            fi;;
145          esac
146        done
147 done
148 ;;
149   esac
150
151   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152   # uniformly replaced by the line number.  The first 'sed' inserts a
153   # line-number line before each line; the second 'sed' does the real
154   # work.  The second script uses 'N' to pair each line-number line
155   # with the numbered line, and appends trailing '-' during
156   # substitution so that $LINENO is not a special case at line end.
157   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159   sed '=' <$as_myself |
160     sed '
161       N
162       s,$,-,
163       : loop
164       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165       t loop
166       s,-$,,
167       s,^['$as_cr_digits']*\n,,
168     ' >$as_me.lineno &&
169   chmod +x $as_me.lineno ||
170     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171    { (exit 1); exit 1; }; }
172
173   # Don't try to exec as it changes $[0], causing all sort of problems
174   # (the dirname of $[0] is not the place where we might find the
175   # original and so on.  Autoconf is especially sensible to this).
176   . ./$as_me.lineno
177   # Exit status is that of the last command.
178   exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183   *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T='      ' ;;
185   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198   # We could just check for DJGPP; but this test a) works b) is more generic
199   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200   if test -f conf$$.exe; then
201     # Don't use ln at all; we don't have any links
202     as_ln_s='cp -p'
203   else
204     as_ln_s='ln -s'
205   fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS="   $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete.  It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="src/ctsim.cpp"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 #  include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 #  include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 #  include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341   # If the previous option needs an argument, assign it.
342   if test -n "$ac_prev"; then
343     eval "$ac_prev=\$ac_option"
344     ac_prev=
345     continue
346   fi
347
348   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350   # Accept the important Cygnus configure options, so we can diagnose typos.
351
352   case $ac_option in
353
354   -bindir | --bindir | --bindi | --bind | --bin | --bi)
355     ac_prev=bindir ;;
356   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357     bindir=$ac_optarg ;;
358
359   -build | --build | --buil | --bui | --bu)
360     ac_prev=build_alias ;;
361   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362     build_alias=$ac_optarg ;;
363
364   -cache-file | --cache-file | --cache-fil | --cache-fi \
365   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366     ac_prev=cache_file ;;
367   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369     cache_file=$ac_optarg ;;
370
371   --config-cache | -C)
372     cache_file=config.cache ;;
373
374   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375     ac_prev=datadir ;;
376   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377   | --da=*)
378     datadir=$ac_optarg ;;
379
380   -disable-* | --disable-*)
381     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382     # Reject names that are not valid shell variable names.
383     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385    { (exit 1); exit 1; }; }
386     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387     eval "enable_$ac_feature=no" ;;
388
389   -enable-* | --enable-*)
390     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391     # Reject names that are not valid shell variable names.
392     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394    { (exit 1); exit 1; }; }
395     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396     case $ac_option in
397       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "enable_$ac_feature='$ac_optarg'" ;;
401
402   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404   | --exec | --exe | --ex)
405     ac_prev=exec_prefix ;;
406   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408   | --exec=* | --exe=* | --ex=*)
409     exec_prefix=$ac_optarg ;;
410
411   -gas | --gas | --ga | --g)
412     # Obsolete; use --with-gas.
413     with_gas=yes ;;
414
415   -help | --help | --hel | --he | -h)
416     ac_init_help=long ;;
417   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418     ac_init_help=recursive ;;
419   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420     ac_init_help=short ;;
421
422   -host | --host | --hos | --ho)
423     ac_prev=host_alias ;;
424   -host=* | --host=* | --hos=* | --ho=*)
425     host_alias=$ac_optarg ;;
426
427   -includedir | --includedir | --includedi | --included | --include \
428   | --includ | --inclu | --incl | --inc)
429     ac_prev=includedir ;;
430   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431   | --includ=* | --inclu=* | --incl=* | --inc=*)
432     includedir=$ac_optarg ;;
433
434   -infodir | --infodir | --infodi | --infod | --info | --inf)
435     ac_prev=infodir ;;
436   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437     infodir=$ac_optarg ;;
438
439   -libdir | --libdir | --libdi | --libd)
440     ac_prev=libdir ;;
441   -libdir=* | --libdir=* | --libdi=* | --libd=*)
442     libdir=$ac_optarg ;;
443
444   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445   | --libexe | --libex | --libe)
446     ac_prev=libexecdir ;;
447   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448   | --libexe=* | --libex=* | --libe=*)
449     libexecdir=$ac_optarg ;;
450
451   -localstatedir | --localstatedir | --localstatedi | --localstated \
452   | --localstate | --localstat | --localsta | --localst \
453   | --locals | --local | --loca | --loc | --lo)
454     ac_prev=localstatedir ;;
455   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458     localstatedir=$ac_optarg ;;
459
460   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461     ac_prev=mandir ;;
462   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463     mandir=$ac_optarg ;;
464
465   -nfp | --nfp | --nf)
466     # Obsolete; use --without-fp.
467     with_fp=no ;;
468
469   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470   | --no-cr | --no-c | -n)
471     no_create=yes ;;
472
473   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475     no_recursion=yes ;;
476
477   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479   | --oldin | --oldi | --old | --ol | --o)
480     ac_prev=oldincludedir ;;
481   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484     oldincludedir=$ac_optarg ;;
485
486   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487     ac_prev=prefix ;;
488   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489     prefix=$ac_optarg ;;
490
491   -program-prefix | --program-prefix | --program-prefi | --program-pref \
492   | --program-pre | --program-pr | --program-p)
493     ac_prev=program_prefix ;;
494   -program-prefix=* | --program-prefix=* | --program-prefi=* \
495   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496     program_prefix=$ac_optarg ;;
497
498   -program-suffix | --program-suffix | --program-suffi | --program-suff \
499   | --program-suf | --program-su | --program-s)
500     ac_prev=program_suffix ;;
501   -program-suffix=* | --program-suffix=* | --program-suffi=* \
502   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503     program_suffix=$ac_optarg ;;
504
505   -program-transform-name | --program-transform-name \
506   | --program-transform-nam | --program-transform-na \
507   | --program-transform-n | --program-transform- \
508   | --program-transform | --program-transfor \
509   | --program-transfo | --program-transf \
510   | --program-trans | --program-tran \
511   | --progr-tra | --program-tr | --program-t)
512     ac_prev=program_transform_name ;;
513   -program-transform-name=* | --program-transform-name=* \
514   | --program-transform-nam=* | --program-transform-na=* \
515   | --program-transform-n=* | --program-transform-=* \
516   | --program-transform=* | --program-transfor=* \
517   | --program-transfo=* | --program-transf=* \
518   | --program-trans=* | --program-tran=* \
519   | --progr-tra=* | --program-tr=* | --program-t=*)
520     program_transform_name=$ac_optarg ;;
521
522   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523   | -silent | --silent | --silen | --sile | --sil)
524     silent=yes ;;
525
526   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527     ac_prev=sbindir ;;
528   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529   | --sbi=* | --sb=*)
530     sbindir=$ac_optarg ;;
531
532   -sharedstatedir | --sharedstatedir | --sharedstatedi \
533   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534   | --sharedst | --shareds | --shared | --share | --shar \
535   | --sha | --sh)
536     ac_prev=sharedstatedir ;;
537   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540   | --sha=* | --sh=*)
541     sharedstatedir=$ac_optarg ;;
542
543   -site | --site | --sit)
544     ac_prev=site ;;
545   -site=* | --site=* | --sit=*)
546     site=$ac_optarg ;;
547
548   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549     ac_prev=srcdir ;;
550   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551     srcdir=$ac_optarg ;;
552
553   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554   | --syscon | --sysco | --sysc | --sys | --sy)
555     ac_prev=sysconfdir ;;
556   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558     sysconfdir=$ac_optarg ;;
559
560   -target | --target | --targe | --targ | --tar | --ta | --t)
561     ac_prev=target_alias ;;
562   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563     target_alias=$ac_optarg ;;
564
565   -v | -verbose | --verbose | --verbos | --verbo | --verb)
566     verbose=yes ;;
567
568   -version | --version | --versio | --versi | --vers | -V)
569     ac_init_version=: ;;
570
571   -with-* | --with-*)
572     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid package name: $ac_package" >&2
576    { (exit 1); exit 1; }; }
577     ac_package=`echo $ac_package| sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "with_$ac_package='$ac_optarg'" ;;
583
584   -without-* | --without-*)
585     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586     # Reject names that are not valid shell variable names.
587     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588       { echo "$as_me: error: invalid package name: $ac_package" >&2
589    { (exit 1); exit 1; }; }
590     ac_package=`echo $ac_package | sed 's/-/_/g'`
591     eval "with_$ac_package=no" ;;
592
593   --x)
594     # Obsolete; use --with-x.
595     with_x=yes ;;
596
597   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598   | --x-incl | --x-inc | --x-in | --x-i)
599     ac_prev=x_includes ;;
600   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602     x_includes=$ac_optarg ;;
603
604   -x-libraries | --x-libraries | --x-librarie | --x-librari \
605   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606     ac_prev=x_libraries ;;
607   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609     x_libraries=$ac_optarg ;;
610
611   -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613    { (exit 1); exit 1; }; }
614     ;;
615
616   *=*)
617     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618     # Reject names that are not valid shell variable names.
619     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621    { (exit 1); exit 1; }; }
622     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623     eval "$ac_envvar='$ac_optarg'"
624     export $ac_envvar ;;
625
626   *)
627     # FIXME: should be removed in autoconf 3.0.
628     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632     ;;
633
634   esac
635 done
636
637 if test -n "$ac_prev"; then
638   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639   { echo "$as_me: error: missing argument to $ac_option" >&2
640    { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646   eval ac_val=$`echo $ac_var`
647   case $ac_val in
648     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650    { (exit 1); exit 1; }; };;
651   esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656               localstatedir libdir includedir oldincludedir infodir mandir
657 do
658   eval ac_val=$`echo $ac_var`
659   case $ac_val in
660     [\\/$]* | ?:[\\/]* ) ;;
661     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662    { (exit 1); exit 1; }; };;
663   esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675   if test "x$build_alias" = x; then
676     cross_compiling=maybe
677     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678     If a cross compiler is detected then cross compile mode will be used." >&2
679   elif test "x$build_alias" != "x$host_alias"; then
680     cross_compiling=yes
681   fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692   ac_srcdir_defaulted=yes
693   # Try the directory containing this script, then its parent.
694   ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696          X"$0" : 'X\(//\)[^/]' \| \
697          X"$0" : 'X\(//\)$' \| \
698          X"$0" : 'X\(/\)' \| \
699          .     : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703           /^X\(\/\/\)$/{ s//\1/; q; }
704           /^X\(\/\).*/{ s//\1/; q; }
705           s/.*/./; q'`
706   srcdir=$ac_confdir
707   if test ! -r $srcdir/$ac_unique_file; then
708     srcdir=..
709   fi
710 else
711   ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714   if test "$ac_srcdir_defaulted" = yes; then
715     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716    { (exit 1); exit 1; }; }
717   else
718     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719    { (exit 1); exit 1; }; }
720   fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CXX_set=${CXX+set}
752 ac_env_CXX_value=$CXX
753 ac_cv_env_CXX_set=${CXX+set}
754 ac_cv_env_CXX_value=$CXX
755 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
756 ac_env_CXXFLAGS_value=$CXXFLAGS
757 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
758 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
759 ac_env_CPP_set=${CPP+set}
760 ac_env_CPP_value=$CPP
761 ac_cv_env_CPP_set=${CPP+set}
762 ac_cv_env_CPP_value=$CPP
763
764 #
765 # Report the --help message.
766 #
767 if test "$ac_init_help" = "long"; then
768   # Omit some internal or obsolete options to make the list less imposing.
769   # This message is too long to be a string in the A/UX 3.1 sh.
770   cat <<_ACEOF
771 \`configure' configures this package to adapt to many kinds of systems.
772
773 Usage: $0 [OPTION]... [VAR=VALUE]...
774
775 To assign environment variables (e.g., CC, CFLAGS...), specify them as
776 VAR=VALUE.  See below for descriptions of some of the useful variables.
777
778 Defaults for the options are specified in brackets.
779
780 Configuration:
781   -h, --help              display this help and exit
782       --help=short        display options specific to this package
783       --help=recursive    display the short help of all the included packages
784   -V, --version           display version information and exit
785   -q, --quiet, --silent   do not print \`checking...' messages
786       --cache-file=FILE   cache test results in FILE [disabled]
787   -C, --config-cache      alias for \`--cache-file=config.cache'
788   -n, --no-create         do not create output files
789       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
790
791 _ACEOF
792
793   cat <<_ACEOF
794 Installation directories:
795   --prefix=PREFIX         install architecture-independent files in PREFIX
796                           [$ac_default_prefix]
797   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
798                           [PREFIX]
799
800 By default, \`make install' will install all the files in
801 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
802 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
803 for instance \`--prefix=\$HOME'.
804
805 For better control, use the options below.
806
807 Fine tuning of the installation directories:
808   --bindir=DIR           user executables [EPREFIX/bin]
809   --sbindir=DIR          system admin executables [EPREFIX/sbin]
810   --libexecdir=DIR       program executables [EPREFIX/libexec]
811   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
812   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
813   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
814   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
815   --libdir=DIR           object code libraries [EPREFIX/lib]
816   --includedir=DIR       C header files [PREFIX/include]
817   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
818   --infodir=DIR          info documentation [PREFIX/info]
819   --mandir=DIR           man documentation [PREFIX/man]
820 _ACEOF
821
822   cat <<\_ACEOF
823
824 Program names:
825   --program-prefix=PREFIX            prepend PREFIX to installed program names
826   --program-suffix=SUFFIX            append SUFFIX to installed program names
827   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
828
829 X features:
830   --x-includes=DIR    X include files are in DIR
831   --x-libraries=DIR   X library files are in DIR
832
833 System types:
834   --build=BUILD     configure for building on BUILD [guessed]
835   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
836 _ACEOF
837 fi
838
839 if test -n "$ac_init_help"; then
840
841   cat <<\_ACEOF
842
843 Optional Features:
844   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
845   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
846   --enable-debug          Turn on debugging
847   --enable-verbose-warnings
848                           Enable verbose compiler warnings.
849   --enable-static
850                           Enable static executables.
851   --enable-dmalloc        Use dmalloc memory allocation
852   --enable-efence        Use ElectricFence memory allocation
853
854 Optional Packages:
855   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
856   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
857   --with-lam=PATH       Set path of LAM MPI
858   --with-ctn=PATH       Set path of CTN DICOM library
859   --with-cgibin-dir=PATH  Set path of CGI binaries directory
860   --with-cgibin-url=PATH  Set URL path of CGI binaries
861   --with-webdata-dir=PATH Set path of webdata
862   --with-webdata-url=PATH Set URL path of webdata
863   --with-html-dir=PATH    Set directory of html files
864   --with-x                use the X Window System
865
866 Some influential environment variables:
867   CC          C compiler command
868   CFLAGS      C compiler flags
869   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
870               nonstandard directory <lib dir>
871   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
872               headers in a nonstandard directory <include dir>
873   CXX         C++ compiler command
874   CXXFLAGS    C++ compiler flags
875   CPP         C preprocessor
876
877 Use these variables to override the choices made by `configure' or to help
878 it to find libraries and programs with nonstandard names/locations.
879
880 _ACEOF
881 fi
882
883 if test "$ac_init_help" = "recursive"; then
884   # If there are subdirs, report their specific --help.
885   ac_popdir=`pwd`
886   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887     test -d $ac_dir || continue
888     ac_builddir=.
889
890 if test "$ac_dir" != .; then
891   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892   # A "../" for each directory in $ac_dir_suffix.
893   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 else
895   ac_dir_suffix= ac_top_builddir=
896 fi
897
898 case $srcdir in
899   .)  # No --srcdir option.  We are building in place.
900     ac_srcdir=.
901     if test -z "$ac_top_builddir"; then
902        ac_top_srcdir=.
903     else
904        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905     fi ;;
906   [\\/]* | ?:[\\/]* )  # Absolute path.
907     ac_srcdir=$srcdir$ac_dir_suffix;
908     ac_top_srcdir=$srcdir ;;
909   *) # Relative path.
910     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911     ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 esac
913 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
914 # absolute.
915 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
916 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
917 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
918 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
919
920     cd $ac_dir
921     # Check for guested configure; otherwise get Cygnus style configure.
922     if test -f $ac_srcdir/configure.gnu; then
923       echo
924       $SHELL $ac_srcdir/configure.gnu  --help=recursive
925     elif test -f $ac_srcdir/configure; then
926       echo
927       $SHELL $ac_srcdir/configure  --help=recursive
928     elif test -f $ac_srcdir/configure.ac ||
929            test -f $ac_srcdir/configure.in; then
930       echo
931       $ac_configure --help
932     else
933       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
934     fi
935     cd $ac_popdir
936   done
937 fi
938
939 test -n "$ac_init_help" && exit 0
940 if $ac_init_version; then
941   cat <<\_ACEOF
942
943 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
944 Free Software Foundation, Inc.
945 This configure script is free software; the Free Software Foundation
946 gives unlimited permission to copy, distribute and modify it.
947 _ACEOF
948   exit 0
949 fi
950 exec 5>config.log
951 cat >&5 <<_ACEOF
952 This file contains any messages produced by compilers while
953 running configure, to aid debugging if configure makes a mistake.
954
955 It was created by $as_me, which was
956 generated by GNU Autoconf 2.53.  Invocation command line was
957
958   $ $0 $@
959
960 _ACEOF
961 {
962 cat <<_ASUNAME
963 ## --------- ##
964 ## Platform. ##
965 ## --------- ##
966
967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
972
973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
974 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
975
976 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
977 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
979 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
980 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
981 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
982 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
983
984 _ASUNAME
985
986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
987 for as_dir in $PATH
988 do
989   IFS=$as_save_IFS
990   test -z "$as_dir" && as_dir=.
991   echo "PATH: $as_dir"
992 done
993
994 } >&5
995
996 cat >&5 <<_ACEOF
997
998
999 ## ----------- ##
1000 ## Core tests. ##
1001 ## ----------- ##
1002
1003 _ACEOF
1004
1005
1006 # Keep a trace of the command line.
1007 # Strip out --no-create and --no-recursion so they do not pile up.
1008 # Also quote any args containing shell meta-characters.
1009 ac_configure_args=
1010 ac_sep=
1011 for ac_arg
1012 do
1013   case $ac_arg in
1014   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015   | --no-cr | --no-c | -n ) continue ;;
1016   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018     continue ;;
1019   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021   esac
1022   case " $ac_configure_args " in
1023     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1024     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1025        ac_sep=" " ;;
1026   esac
1027   # Get rid of the leading space.
1028 done
1029
1030 # When interrupted or exit'd, cleanup temporary files, and complete
1031 # config.log.  We remove comments because anyway the quotes in there
1032 # would cause problems or look ugly.
1033 # WARNING: Be sure not to use single quotes in there, as some shells,
1034 # such as our DU 5.0 friend, will then `close' the trap.
1035 trap 'exit_status=$?
1036   # Save into config.log some information that might help in debugging.
1037   {
1038     echo
1039     cat <<\_ASBOX
1040 ## ---------------- ##
1041 ## Cache variables. ##
1042 ## ---------------- ##
1043 _ASBOX
1044     echo
1045     # The following way of writing the cache mishandles newlines in values,
1046 {
1047   (set) 2>&1 |
1048     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1049     *ac_space=\ *)
1050       sed -n \
1051         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1052           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1053       ;;
1054     *)
1055       sed -n \
1056         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1057       ;;
1058     esac;
1059 }
1060     echo
1061     if test -s confdefs.h; then
1062       cat <<\_ASBOX
1063 ## ----------- ##
1064 ## confdefs.h. ##
1065 ## ----------- ##
1066 _ASBOX
1067       echo
1068       sed "/^$/d" confdefs.h
1069       echo
1070     fi
1071     test "$ac_signal" != 0 &&
1072       echo "$as_me: caught signal $ac_signal"
1073     echo "$as_me: exit $exit_status"
1074   } >&5
1075   rm -f core core.* *.core &&
1076   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1077     exit $exit_status
1078      ' 0
1079 for ac_signal in 1 2 13 15; do
1080   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1081 done
1082 ac_signal=0
1083
1084 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1085 rm -rf conftest* confdefs.h
1086 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1087 echo >confdefs.h
1088
1089 # Predefined preprocessor variables.
1090
1091 cat >>confdefs.h <<_ACEOF
1092 #define PACKAGE_NAME "$PACKAGE_NAME"
1093 _ACEOF
1094
1095
1096 cat >>confdefs.h <<_ACEOF
1097 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1098 _ACEOF
1099
1100
1101 cat >>confdefs.h <<_ACEOF
1102 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1103 _ACEOF
1104
1105
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_STRING "$PACKAGE_STRING"
1108 _ACEOF
1109
1110
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1113 _ACEOF
1114
1115
1116 # Let the site file select an alternate cache file if it wants to.
1117 # Prefer explicitly selected file to automatically selected ones.
1118 if test -z "$CONFIG_SITE"; then
1119   if test "x$prefix" != xNONE; then
1120     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1121   else
1122     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1123   fi
1124 fi
1125 for ac_site_file in $CONFIG_SITE; do
1126   if test -r "$ac_site_file"; then
1127     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1128 echo "$as_me: loading site script $ac_site_file" >&6;}
1129     sed 's/^/| /' "$ac_site_file" >&5
1130     . "$ac_site_file"
1131   fi
1132 done
1133
1134 if test -r "$cache_file"; then
1135   # Some versions of bash will fail to source /dev/null (special
1136   # files actually), so we avoid doing that.
1137   if test -f "$cache_file"; then
1138     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1139 echo "$as_me: loading cache $cache_file" >&6;}
1140     case $cache_file in
1141       [\\/]* | ?:[\\/]* ) . $cache_file;;
1142       *)                      . ./$cache_file;;
1143     esac
1144   fi
1145 else
1146   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1147 echo "$as_me: creating cache $cache_file" >&6;}
1148   >$cache_file
1149 fi
1150
1151 # Check that the precious variables saved in the cache have kept the same
1152 # value.
1153 ac_cache_corrupted=false
1154 for ac_var in `(set) 2>&1 |
1155                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1156   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1157   eval ac_new_set=\$ac_env_${ac_var}_set
1158   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1159   eval ac_new_val="\$ac_env_${ac_var}_value"
1160   case $ac_old_set,$ac_new_set in
1161     set,)
1162       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1163 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1164       ac_cache_corrupted=: ;;
1165     ,set)
1166       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1167 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1168       ac_cache_corrupted=: ;;
1169     ,);;
1170     *)
1171       if test "x$ac_old_val" != "x$ac_new_val"; then
1172         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1173 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1174         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1175 echo "$as_me:   former value:  $ac_old_val" >&2;}
1176         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1177 echo "$as_me:   current value: $ac_new_val" >&2;}
1178         ac_cache_corrupted=:
1179       fi;;
1180   esac
1181   # Pass precious variables to config.status.
1182   if test "$ac_new_set" = set; then
1183     case $ac_new_val in
1184     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1185       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1186     *) ac_arg=$ac_var=$ac_new_val ;;
1187     esac
1188     case " $ac_configure_args " in
1189       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1190       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1191     esac
1192   fi
1193 done
1194 if $ac_cache_corrupted; then
1195   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1196 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1197   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1198 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1199    { (exit 1); exit 1; }; }
1200 fi
1201
1202 ac_ext=c
1203 ac_cpp='$CPP $CPPFLAGS'
1204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226 ac_aux_dir=
1227 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1228   if test -f $ac_dir/install-sh; then
1229     ac_aux_dir=$ac_dir
1230     ac_install_sh="$ac_aux_dir/install-sh -c"
1231     break
1232   elif test -f $ac_dir/install.sh; then
1233     ac_aux_dir=$ac_dir
1234     ac_install_sh="$ac_aux_dir/install.sh -c"
1235     break
1236   elif test -f $ac_dir/shtool; then
1237     ac_aux_dir=$ac_dir
1238     ac_install_sh="$ac_aux_dir/shtool install -c"
1239     break
1240   fi
1241 done
1242 if test -z "$ac_aux_dir"; then
1243   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1244 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1245    { (exit 1); exit 1; }; }
1246 fi
1247 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1248 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1249 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1250
1251 # Find a good install program.  We prefer a C program (faster),
1252 # so one script is as good as another.  But avoid the broken or
1253 # incompatible versions:
1254 # SysV /etc/install, /usr/sbin/install
1255 # SunOS /usr/etc/install
1256 # IRIX /sbin/install
1257 # AIX /bin/install
1258 # AmigaOS /C/install, which installs bootblocks on floppy discs
1259 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1262 # ./install, which can be erroneously created by make from ./install.sh.
1263 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1265 if test -z "$INSTALL"; then
1266 if test "${ac_cv_path_install+set}" = set; then
1267   echo $ECHO_N "(cached) $ECHO_C" >&6
1268 else
1269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1270 for as_dir in $PATH
1271 do
1272   IFS=$as_save_IFS
1273   test -z "$as_dir" && as_dir=.
1274   # Account for people who put trailing slashes in PATH elements.
1275 case $as_dir/ in
1276   ./ | .// | /cC/* | \
1277   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1278   /usr/ucb/* ) ;;
1279   *)
1280     # OSF1 and SCO ODT 3.0 have their own names for install.
1281     # Don't use installbsd from OSF since it installs stuff as root
1282     # by default.
1283     for ac_prog in ginstall scoinst install; do
1284       for ac_exec_ext in '' $ac_executable_extensions; do
1285         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1286           if test $ac_prog = install &&
1287             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1288             # AIX install.  It has an incompatible calling convention.
1289             :
1290           elif test $ac_prog = install &&
1291             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1292             # program-specific install script used by HP pwplus--don't use.
1293             :
1294           else
1295             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1296             break 3
1297           fi
1298         fi
1299       done
1300     done
1301     ;;
1302 esac
1303 done
1304
1305
1306 fi
1307   if test "${ac_cv_path_install+set}" = set; then
1308     INSTALL=$ac_cv_path_install
1309   else
1310     # As a last resort, use the slow shell script.  We don't cache a
1311     # path for INSTALL within a source directory, because that will
1312     # break other packages using the cache if that directory is
1313     # removed, or if the path is relative.
1314     INSTALL=$ac_install_sh
1315   fi
1316 fi
1317 echo "$as_me:$LINENO: result: $INSTALL" >&5
1318 echo "${ECHO_T}$INSTALL" >&6
1319
1320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1321 # It thinks the first close brace ends the variable substitution.
1322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1323
1324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1325
1326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1327
1328 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1329 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1330 # Just in case
1331 sleep 1
1332 echo timestamp > conftestfile
1333 # Do `set' in a subshell so we don't clobber the current shell's
1334 # arguments.  Must try -L first in case configure is actually a
1335 # symlink; some systems play weird games with the mod time of symlinks
1336 # (eg FreeBSD returns the mod time of the symlink's containing
1337 # directory).
1338 if (
1339    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1340    if test "$*" = "X"; then
1341       # -L didn't work.
1342       set X `ls -t $srcdir/configure conftestfile`
1343    fi
1344    if test "$*" != "X $srcdir/configure conftestfile" \
1345       && test "$*" != "X conftestfile $srcdir/configure"; then
1346
1347       # If neither matched, then we have a broken ls.  This can happen
1348       # if, for instance, CONFIG_SHELL is bash and it inherits a
1349       # broken ls alias from the environment.  This has actually
1350       # happened.  Such a system could not be considered "sane".
1351       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1352 alias in your environment" >&5
1353 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1354 alias in your environment" >&2;}
1355    { (exit 1); exit 1; }; }
1356    fi
1357
1358    test "$2" = conftestfile
1359    )
1360 then
1361    # Ok.
1362    :
1363 else
1364    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1365 Check your system clock" >&5
1366 echo "$as_me: error: newly created file is older than distributed files!
1367 Check your system clock" >&2;}
1368    { (exit 1); exit 1; }; }
1369 fi
1370 rm -f conftest*
1371 echo "$as_me:$LINENO: result: yes" >&5
1372 echo "${ECHO_T}yes" >&6
1373 test "$program_prefix" != NONE &&
1374   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1375 # Use a double $ so make ignores it.
1376 test "$program_suffix" != NONE &&
1377   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1378 # Double any \ or $.  echo might interpret backslashes.
1379 # By default was `s,x,x', remove it if useless.
1380 cat <<\_ACEOF >conftest.sed
1381 s/[\\$]/&&/g;s/;s,x,x,$//
1382 _ACEOF
1383 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1384 rm conftest.sed
1385
1386 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1387 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1388 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1389 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1390   echo $ECHO_N "(cached) $ECHO_C" >&6
1391 else
1392   cat >conftest.make <<\_ACEOF
1393 all:
1394         @echo 'ac_maketemp="${MAKE}"'
1395 _ACEOF
1396 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1397 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1398 if test -n "$ac_maketemp"; then
1399   eval ac_cv_prog_make_${ac_make}_set=yes
1400 else
1401   eval ac_cv_prog_make_${ac_make}_set=no
1402 fi
1403 rm -f conftest.make
1404 fi
1405 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1406   echo "$as_me:$LINENO: result: yes" >&5
1407 echo "${ECHO_T}yes" >&6
1408   SET_MAKE=
1409 else
1410   echo "$as_me:$LINENO: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1412   SET_MAKE="MAKE=${MAKE-make}"
1413 fi
1414
1415
1416 PACKAGE=ctsim
1417
1418 VERSION=3.5.6
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 -funroll-loops"
7333
7334 cat >>confdefs.h <<\_ACEOF
7335 #define NDEBUG 1
7336 _ACEOF
7337
7338 fi
7339
7340 if test "${pthread}" = "true" ; then
7341
7342 cat >>confdefs.h <<\_ACEOF
7343 #define HAVE_WXTHREADS 1
7344 _ACEOF
7345
7346 fi
7347
7348 echo "$as_me:$LINENO: checking sstream" >&5
7349 echo $ECHO_N "checking sstream... $ECHO_C" >&6
7350  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7351      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ; then
7352
7353 cat >>confdefs.h <<\_ACEOF
7354 #define HAVE_SSTREAM 1
7355 _ACEOF
7356
7357   echo "$as_me:$LINENO: result: yes" >&5
7358 echo "${ECHO_T}yes" >&6
7359 fi
7360 echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6
7362
7363
7364 CFLAGS="$CFLAGS -Wall"
7365 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7366 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7367 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7368 if test "${enable_verbose_warnings+set}" = set; then
7369   enableval="$enable_verbose_warnings"
7370    case "$enableval" in
7371   yes)
7372     echo "$as_me:$LINENO: result: yes" >&5
7373 echo "${ECHO_T}yes" >&6
7374     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7375     ;;
7376   *)
7377     echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6
7379     ;;
7380   esac
7381 else
7382   echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6
7384
7385 fi;
7386
7387 echo "$as_me:$LINENO: checking static executables" >&5
7388 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7389 # Check whether --enable-static or --disable-static was given.
7390 if test "${enable_static+set}" = set; then
7391   enableval="$enable_static"
7392    case "$enableval" in
7393   yes)
7394     echo "$as_me:$LINENO: result: yes" >&5
7395 echo "${ECHO_T}yes" >&6
7396     CFLAGS="$CFLAGS --static"
7397     ;;
7398   *)
7399     echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6
7401     ;;
7402   esac
7403 else
7404   echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6
7406
7407 fi;
7408
7409
7410 # Check whether --with-lam or --without-lam was given.
7411 if test "${with_lam+set}" = set; then
7412   withval="$with_lam"
7413       if test "$withval" != "no" ; then
7414          trylamdir=$withval
7415      fi
7416
7417 fi;
7418
7419 if test "$withval" != "no" ; then
7420   if test "$prefix" != "NONE" ; then
7421      trylamdir="$trylamdir $prefix"
7422   fi
7423
7424   echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7425 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7426   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7427     if test -x "$testlamdir/bin/hcp" ; then
7428       if test "$testlamdir" != "/usr"; then
7429         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7430         CFLAGS="$CFLAGS -I$testlamdir/include"
7431       fi
7432       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7433       lamdir="$testlamdir"
7434
7435       mpienable="true"
7436
7437       break
7438     fi
7439   done
7440   echo "$as_me:$LINENO: result: $lamdir" >&5
7441 echo "${ECHO_T}$lamdir" >&6
7442 else
7443   echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6
7445 fi
7446
7447
7448
7449 # Check whether --with-ctn or --without-ctn was given.
7450 if test "${with_ctn+set}" = set; then
7451   withval="$with_ctn"
7452       if test "$withval" != "no" ; then
7453          tryctndir=$withval
7454      fi
7455
7456 fi;
7457
7458 if test "$withval" == "no" -o "$withval" == "NONE" ; then
7459   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7460 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7461   echo "$as_me:$LINENO: result: disabled" >&5
7462 echo "${ECHO_T}disabled" >&6
7463 else
7464   echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7465 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7466   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7467     if test -f "$testctndir/libctn.a" ; then
7468       LDFLAGS="$LDFLAGS -L$testctndir"
7469       ctnlib="true"
7470       break
7471     fi
7472   done
7473   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7474     if test -f "$testctndir/ctn_os.h" ; then
7475       CFLAGS="$CFLAGS -I$testctndir"
7476       ctninclude="true"
7477       break
7478     fi
7479   done
7480   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
7481       ctn="true"
7482
7483 cat >>confdefs.h <<\_ACEOF
7484 #define HAVE_CTN_DICOM 1
7485 _ACEOF
7486
7487       echo "$as_me:$LINENO: result: yes" >&5
7488 echo "${ECHO_T}yes" >&6
7489   else
7490     echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6
7492   fi
7493 fi
7494
7495 echo "$as_me:$LINENO: checking for web access" >&5
7496 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7497
7498 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7499 if test "${with_cgibin_dir+set}" = set; then
7500   withval="$with_cgibin_dir"
7501    cgibindir=$withval ;
7502 fi;
7503
7504
7505 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7506 if test "${with_cgibin_url+set}" = set; then
7507   withval="$with_cgibin_url"
7508    cgibinurl=$withval ;
7509 fi;
7510
7511
7512 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7513 if test "${with_webdata_dir+set}" = set; then
7514   withval="$with_webdata_dir"
7515    webdatadir=$withval ;
7516 fi;
7517
7518
7519 # Check whether --with-webdata-url or --without-webdata-url was given.
7520 if test "${with_webdata_url+set}" = set; then
7521   withval="$with_webdata_url"
7522    webdataurl=$withval ;
7523 fi;
7524
7525
7526 # Check whether --with-html-dir or --without-html-dir was given.
7527 if test "${with_html_dir+set}" = set; then
7528   withval="$with_html_dir"
7529    htmldir=$withval ;
7530 fi;
7531
7532 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7533   cgiprograms="ctsim.cgi ctsim.conf"
7534
7535 fi
7536
7537 if test -n "$htmldir" ; then
7538   htmldata=simulate.html
7539
7540 fi
7541
7542
7543 if test -n "$htmldir"; then
7544   USE_HTML_TRUE=
7545   USE_HTML_FALSE='#'
7546 else
7547   USE_HTML_TRUE='#'
7548   USE_HTML_FALSE=
7549 fi
7550
7551 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7552   webenabled=true
7553
7554   echo "$as_me:$LINENO: result: yes" >&5
7555 echo "${ECHO_T}yes" >&6
7556   if test -z "$cgibindir" ; then
7557     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7558 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7559    { (exit 1); exit 1; }; }
7560   elif test -z "$cgibinurl" ; then
7561     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7562 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7563    { (exit 1); exit 1; }; }
7564   elif test -z "$webdatadir" ; then
7565     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7566 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7567    { (exit 1); exit 1; }; }
7568   elif test -z "$webdataurl" ; then
7569     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7570 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7571    { (exit 1); exit 1; }; }
7572   elif test -z "$htmldir" ; then
7573     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
7574 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
7575    { (exit 1); exit 1; }; }
7576   fi
7577 else
7578   echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6
7580 fi
7581
7582
7583
7584 if test -n "$lamdir"; then
7585   USE_LAM_TRUE=
7586   USE_LAM_FALSE='#'
7587 else
7588   USE_LAM_TRUE='#'
7589   USE_LAM_FALSE=
7590 fi
7591
7592
7593 echo "$as_me:$LINENO: checking for X" >&5
7594 echo $ECHO_N "checking for X... $ECHO_C" >&6
7595
7596
7597 # Check whether --with-x or --without-x was given.
7598 if test "${with_x+set}" = set; then
7599   withval="$with_x"
7600
7601 fi;
7602 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7603 if test "x$with_x" = xno; then
7604   # The user explicitly disabled X.
7605   have_x=disabled
7606 else
7607   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7608     # Both variables are already set.
7609     have_x=yes
7610   else
7611     if test "${ac_cv_have_x+set}" = set; then
7612   echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614   # One or both of the vars are not set, and there is no cached value.
7615 ac_x_includes=no ac_x_libraries=no
7616 rm -fr conftest.dir
7617 if mkdir conftest.dir; then
7618   cd conftest.dir
7619   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7620   cat >Imakefile <<'_ACEOF'
7621 acfindx:
7622         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7623 _ACEOF
7624   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7625     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7626     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7627     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7628     for ac_extension in a so sl; do
7629       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7630          test -f $ac_im_libdir/libX11.$ac_extension; then
7631         ac_im_usrlibdir=$ac_im_libdir; break
7632       fi
7633     done
7634     # Screen out bogus values from the imake configuration.  They are
7635     # bogus both because they are the default anyway, and because
7636     # using them would break gcc on systems where it needs fixed includes.
7637     case $ac_im_incroot in
7638         /usr/include) ;;
7639         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7640     esac
7641     case $ac_im_usrlibdir in
7642         /usr/lib | /lib) ;;
7643         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7644     esac
7645   fi
7646   cd ..
7647   rm -fr conftest.dir
7648 fi
7649
7650 # Standard set of common directories for X headers.
7651 # Check X11 before X11Rn because it is often a symlink to the current release.
7652 ac_x_header_dirs='
7653 /usr/X11/include
7654 /usr/X11R6/include
7655 /usr/X11R5/include
7656 /usr/X11R4/include
7657
7658 /usr/include/X11
7659 /usr/include/X11R6
7660 /usr/include/X11R5
7661 /usr/include/X11R4
7662
7663 /usr/local/X11/include
7664 /usr/local/X11R6/include
7665 /usr/local/X11R5/include
7666 /usr/local/X11R4/include
7667
7668 /usr/local/include/X11
7669 /usr/local/include/X11R6
7670 /usr/local/include/X11R5
7671 /usr/local/include/X11R4
7672
7673 /usr/X386/include
7674 /usr/x386/include
7675 /usr/XFree86/include/X11
7676
7677 /usr/include
7678 /usr/local/include
7679 /usr/unsupported/include
7680 /usr/athena/include
7681 /usr/local/x11r5/include
7682 /usr/lpp/Xamples/include
7683
7684 /usr/openwin/include
7685 /usr/openwin/share/include'
7686
7687 if test "$ac_x_includes" = no; then
7688   # Guess where to find include files, by looking for Intrinsic.h.
7689   # First, try using that file with no special directory specified.
7690   cat >conftest.$ac_ext <<_ACEOF
7691 #line $LINENO "configure"
7692 #include "confdefs.h"
7693 #include <X11/Intrinsic.h>
7694 _ACEOF
7695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7696   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7697   ac_status=$?
7698   egrep -v '^ *\+' conftest.er1 >conftest.err
7699   rm -f conftest.er1
7700   cat conftest.err >&5
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); } >/dev/null; then
7703   if test -s conftest.err; then
7704     ac_cpp_err=$ac_c_preproc_warn_flag
7705   else
7706     ac_cpp_err=
7707   fi
7708 else
7709   ac_cpp_err=yes
7710 fi
7711 if test -z "$ac_cpp_err"; then
7712   # We can compile using X headers with no special include directory.
7713 ac_x_includes=
7714 else
7715   echo "$as_me: failed program was:" >&5
7716   cat conftest.$ac_ext >&5
7717   for ac_dir in $ac_x_header_dirs; do
7718   if test -r "$ac_dir/X11/Intrinsic.h"; then
7719     ac_x_includes=$ac_dir
7720     break
7721   fi
7722 done
7723 fi
7724 rm -f conftest.err conftest.$ac_ext
7725 fi # $ac_x_includes = no
7726
7727 if test "$ac_x_libraries" = no; then
7728   # Check for the libraries.
7729   # See if we find them without any special options.
7730   # Don't add to $LIBS permanently.
7731   ac_save_LIBS=$LIBS
7732   LIBS="-lXt $LIBS"
7733   cat >conftest.$ac_ext <<_ACEOF
7734 #line $LINENO "configure"
7735 #include "confdefs.h"
7736 #include <X11/Intrinsic.h>
7737 #ifdef F77_DUMMY_MAIN
7738 #  ifdef __cplusplus
7739      extern "C"
7740 #  endif
7741    int F77_DUMMY_MAIN() { return 1; }
7742 #endif
7743 int
7744 main ()
7745 {
7746 XtMalloc (0)
7747   ;
7748   return 0;
7749 }
7750 _ACEOF
7751 rm -f conftest.$ac_objext conftest$ac_exeext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7753   (eval $ac_link) 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); } &&
7757          { ac_try='test -s conftest$ac_exeext'
7758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759   (eval $ac_try) 2>&5
7760   ac_status=$?
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); }; }; then
7763   LIBS=$ac_save_LIBS
7764 # We can link X programs with no special library path.
7765 ac_x_libraries=
7766 else
7767   echo "$as_me: failed program was:" >&5
7768 cat conftest.$ac_ext >&5
7769 LIBS=$ac_save_LIBS
7770 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7771 do
7772   # Don't even attempt the hair of trying to link an X program!
7773   for ac_extension in a so sl; do
7774     if test -r $ac_dir/libXt.$ac_extension; then
7775       ac_x_libraries=$ac_dir
7776       break 2
7777     fi
7778   done
7779 done
7780 fi
7781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7782 fi # $ac_x_libraries = no
7783
7784 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7785   # Didn't find X anywhere.  Cache the known absence of X.
7786   ac_cv_have_x="have_x=no"
7787 else
7788   # Record where we found X for the cache.
7789   ac_cv_have_x="have_x=yes \
7790                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7791 fi
7792 fi
7793
7794   fi
7795   eval "$ac_cv_have_x"
7796 fi # $with_x != no
7797
7798 if test "$have_x" != yes; then
7799   echo "$as_me:$LINENO: result: $have_x" >&5
7800 echo "${ECHO_T}$have_x" >&6
7801   no_x=yes
7802 else
7803   # If each of the values was on the command line, it overrides each guess.
7804   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7805   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7806   # Update the cache value to reflect the command line values.
7807   ac_cv_have_x="have_x=yes \
7808                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7809   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7810 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7811 fi
7812
7813 if test "$no_x" = yes; then
7814   # Not all programs may use this symbol, but it does not hurt to define it.
7815
7816 cat >>confdefs.h <<\_ACEOF
7817 #define X_DISPLAY_MISSING 1
7818 _ACEOF
7819
7820   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7821 else
7822   if test -n "$x_includes"; then
7823     X_CFLAGS="$X_CFLAGS -I$x_includes"
7824   fi
7825
7826   # It would also be nice to do this for all -L options, not just this one.
7827   if test -n "$x_libraries"; then
7828     X_LIBS="$X_LIBS -L$x_libraries"
7829     # For Solaris; some versions of Sun CC require a space after -R and
7830     # others require no space.  Words are not sufficient . . . .
7831     case `(uname -sr) 2>/dev/null` in
7832     "SunOS 5"*)
7833       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7834 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7835       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7836       cat >conftest.$ac_ext <<_ACEOF
7837 #line $LINENO "configure"
7838 #include "confdefs.h"
7839
7840 #ifdef F77_DUMMY_MAIN
7841 #  ifdef __cplusplus
7842      extern "C"
7843 #  endif
7844    int F77_DUMMY_MAIN() { return 1; }
7845 #endif
7846 int
7847 main ()
7848 {
7849
7850   ;
7851   return 0;
7852 }
7853 _ACEOF
7854 rm -f conftest.$ac_objext conftest$ac_exeext
7855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7856   (eval $ac_link) 2>&5
7857   ac_status=$?
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); } &&
7860          { ac_try='test -s conftest$ac_exeext'
7861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862   (eval $ac_try) 2>&5
7863   ac_status=$?
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); }; }; then
7866   ac_R_nospace=yes
7867 else
7868   echo "$as_me: failed program was:" >&5
7869 cat conftest.$ac_ext >&5
7870 ac_R_nospace=no
7871 fi
7872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7873       if test $ac_R_nospace = yes; then
7874         echo "$as_me:$LINENO: result: no" >&5
7875 echo "${ECHO_T}no" >&6
7876         X_LIBS="$X_LIBS -R$x_libraries"
7877       else
7878         LIBS="$ac_xsave_LIBS -R $x_libraries"
7879         cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7881 #include "confdefs.h"
7882
7883 #ifdef F77_DUMMY_MAIN
7884 #  ifdef __cplusplus
7885      extern "C"
7886 #  endif
7887    int F77_DUMMY_MAIN() { return 1; }
7888 #endif
7889 int
7890 main ()
7891 {
7892
7893   ;
7894   return 0;
7895 }
7896 _ACEOF
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7899   (eval $ac_link) 2>&5
7900   ac_status=$?
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); } &&
7903          { ac_try='test -s conftest$ac_exeext'
7904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905   (eval $ac_try) 2>&5
7906   ac_status=$?
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); }; }; then
7909   ac_R_space=yes
7910 else
7911   echo "$as_me: failed program was:" >&5
7912 cat conftest.$ac_ext >&5
7913 ac_R_space=no
7914 fi
7915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7916         if test $ac_R_space = yes; then
7917           echo "$as_me:$LINENO: result: yes" >&5
7918 echo "${ECHO_T}yes" >&6
7919           X_LIBS="$X_LIBS -R $x_libraries"
7920         else
7921           echo "$as_me:$LINENO: result: neither works" >&5
7922 echo "${ECHO_T}neither works" >&6
7923         fi
7924       fi
7925       LIBS=$ac_xsave_LIBS
7926     esac
7927   fi
7928
7929   # Check for system-dependent libraries X programs must link with.
7930   # Do this before checking for the system-independent R6 libraries
7931   # (-lICE), since we may need -lsocket or whatever for X linking.
7932
7933   if test "$ISC" = yes; then
7934     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7935   else
7936     # Martyn Johnson says this is needed for Ultrix, if the X
7937     # libraries were built with DECnet support.  And Karl Berry says
7938     # the Alpha needs dnet_stub (dnet does not exist).
7939     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7940     cat >conftest.$ac_ext <<_ACEOF
7941 #line $LINENO "configure"
7942 #include "confdefs.h"
7943
7944 /* Override any gcc2 internal prototype to avoid an error.  */
7945 #ifdef __cplusplus
7946 extern "C"
7947 #endif
7948 /* We use char because int might match the return type of a gcc2
7949    builtin and then its argument prototype would still apply.  */
7950 char XOpenDisplay ();
7951 #ifdef F77_DUMMY_MAIN
7952 #  ifdef __cplusplus
7953      extern "C"
7954 #  endif
7955    int F77_DUMMY_MAIN() { return 1; }
7956 #endif
7957 int
7958 main ()
7959 {
7960 XOpenDisplay ();
7961   ;
7962   return 0;
7963 }
7964 _ACEOF
7965 rm -f conftest.$ac_objext conftest$ac_exeext
7966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967   (eval $ac_link) 2>&5
7968   ac_status=$?
7969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); } &&
7971          { ac_try='test -s conftest$ac_exeext'
7972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973   (eval $ac_try) 2>&5
7974   ac_status=$?
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); }; }; then
7977   :
7978 else
7979   echo "$as_me: failed program was:" >&5
7980 cat conftest.$ac_ext >&5
7981 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7982 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7983 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7984   echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986   ac_check_lib_save_LIBS=$LIBS
7987 LIBS="-ldnet  $LIBS"
7988 cat >conftest.$ac_ext <<_ACEOF
7989 #line $LINENO "configure"
7990 #include "confdefs.h"
7991
7992 /* Override any gcc2 internal prototype to avoid an error.  */
7993 #ifdef __cplusplus
7994 extern "C"
7995 #endif
7996 /* We use char because int might match the return type of a gcc2
7997    builtin and then its argument prototype would still apply.  */
7998 char dnet_ntoa ();
7999 #ifdef F77_DUMMY_MAIN
8000 #  ifdef __cplusplus
8001      extern "C"
8002 #  endif
8003    int F77_DUMMY_MAIN() { return 1; }
8004 #endif
8005 int
8006 main ()
8007 {
8008 dnet_ntoa ();
8009   ;
8010   return 0;
8011 }
8012 _ACEOF
8013 rm -f conftest.$ac_objext conftest$ac_exeext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8015   (eval $ac_link) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); } &&
8019          { ac_try='test -s conftest$ac_exeext'
8020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021   (eval $ac_try) 2>&5
8022   ac_status=$?
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); }; }; then
8025   ac_cv_lib_dnet_dnet_ntoa=yes
8026 else
8027   echo "$as_me: failed program was:" >&5
8028 cat conftest.$ac_ext >&5
8029 ac_cv_lib_dnet_dnet_ntoa=no
8030 fi
8031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8032 LIBS=$ac_check_lib_save_LIBS
8033 fi
8034 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8035 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8036 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8037   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8038 fi
8039
8040     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8041       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8042 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8043 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8044   echo $ECHO_N "(cached) $ECHO_C" >&6
8045 else
8046   ac_check_lib_save_LIBS=$LIBS
8047 LIBS="-ldnet_stub  $LIBS"
8048 cat >conftest.$ac_ext <<_ACEOF
8049 #line $LINENO "configure"
8050 #include "confdefs.h"
8051
8052 /* Override any gcc2 internal prototype to avoid an error.  */
8053 #ifdef __cplusplus
8054 extern "C"
8055 #endif
8056 /* We use char because int might match the return type of a gcc2
8057    builtin and then its argument prototype would still apply.  */
8058 char dnet_ntoa ();
8059 #ifdef F77_DUMMY_MAIN
8060 #  ifdef __cplusplus
8061      extern "C"
8062 #  endif
8063    int F77_DUMMY_MAIN() { return 1; }
8064 #endif
8065 int
8066 main ()
8067 {
8068 dnet_ntoa ();
8069   ;
8070   return 0;
8071 }
8072 _ACEOF
8073 rm -f conftest.$ac_objext conftest$ac_exeext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8075   (eval $ac_link) 2>&5
8076   ac_status=$?
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); } &&
8079          { ac_try='test -s conftest$ac_exeext'
8080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081   (eval $ac_try) 2>&5
8082   ac_status=$?
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); }; }; then
8085   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8086 else
8087   echo "$as_me: failed program was:" >&5
8088 cat conftest.$ac_ext >&5
8089 ac_cv_lib_dnet_stub_dnet_ntoa=no
8090 fi
8091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8092 LIBS=$ac_check_lib_save_LIBS
8093 fi
8094 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8095 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8096 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8097   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8098 fi
8099
8100     fi
8101 fi
8102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8103     LIBS="$ac_xsave_LIBS"
8104
8105     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8106     # to get the SysV transport functions.
8107     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8108     # needs -lnsl.
8109     # The nsl library prevents programs from opening the X display
8110     # on Irix 5.2, according to T.E. Dickey.
8111     # The functions gethostbyname, getservbyname, and inet_addr are
8112     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8113     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8114 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8115 if test "${ac_cv_func_gethostbyname+set}" = set; then
8116   echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118   cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8120 #include "confdefs.h"
8121 /* System header to define __stub macros and hopefully few prototypes,
8122     which can conflict with char gethostbyname (); below.  */
8123 #include <assert.h>
8124 /* Override any gcc2 internal prototype to avoid an error.  */
8125 #ifdef __cplusplus
8126 extern "C"
8127 #endif
8128 /* We use char because int might match the return type of a gcc2
8129    builtin and then its argument prototype would still apply.  */
8130 char gethostbyname ();
8131 char (*f) ();
8132
8133 #ifdef F77_DUMMY_MAIN
8134 #  ifdef __cplusplus
8135      extern "C"
8136 #  endif
8137    int F77_DUMMY_MAIN() { return 1; }
8138 #endif
8139 int
8140 main ()
8141 {
8142 /* The GNU C library defines this for functions which it implements
8143     to always fail with ENOSYS.  Some functions are actually named
8144     something starting with __ and the normal name is an alias.  */
8145 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8146 choke me
8147 #else
8148 f = gethostbyname;
8149 #endif
8150
8151   ;
8152   return 0;
8153 }
8154 _ACEOF
8155 rm -f conftest.$ac_objext conftest$ac_exeext
8156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8157   (eval $ac_link) 2>&5
8158   ac_status=$?
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   (exit $ac_status); } &&
8161          { ac_try='test -s conftest$ac_exeext'
8162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163   (eval $ac_try) 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); }; }; then
8167   ac_cv_func_gethostbyname=yes
8168 else
8169   echo "$as_me: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8171 ac_cv_func_gethostbyname=no
8172 fi
8173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8174 fi
8175 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8176 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8177
8178     if test $ac_cv_func_gethostbyname = no; then
8179       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8180 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8181 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8182   echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184   ac_check_lib_save_LIBS=$LIBS
8185 LIBS="-lnsl  $LIBS"
8186 cat >conftest.$ac_ext <<_ACEOF
8187 #line $LINENO "configure"
8188 #include "confdefs.h"
8189
8190 /* Override any gcc2 internal prototype to avoid an error.  */
8191 #ifdef __cplusplus
8192 extern "C"
8193 #endif
8194 /* We use char because int might match the return type of a gcc2
8195    builtin and then its argument prototype would still apply.  */
8196 char gethostbyname ();
8197 #ifdef F77_DUMMY_MAIN
8198 #  ifdef __cplusplus
8199      extern "C"
8200 #  endif
8201    int F77_DUMMY_MAIN() { return 1; }
8202 #endif
8203 int
8204 main ()
8205 {
8206 gethostbyname ();
8207   ;
8208   return 0;
8209 }
8210 _ACEOF
8211 rm -f conftest.$ac_objext conftest$ac_exeext
8212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8213   (eval $ac_link) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); } &&
8217          { ac_try='test -s conftest$ac_exeext'
8218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219   (eval $ac_try) 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; }; then
8223   ac_cv_lib_nsl_gethostbyname=yes
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 cat conftest.$ac_ext >&5
8227 ac_cv_lib_nsl_gethostbyname=no
8228 fi
8229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8230 LIBS=$ac_check_lib_save_LIBS
8231 fi
8232 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8233 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8234 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8235   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8236 fi
8237
8238       if test $ac_cv_lib_nsl_gethostbyname = no; then
8239         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8240 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8241 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8242   echo $ECHO_N "(cached) $ECHO_C" >&6
8243 else
8244   ac_check_lib_save_LIBS=$LIBS
8245 LIBS="-lbsd  $LIBS"
8246 cat >conftest.$ac_ext <<_ACEOF
8247 #line $LINENO "configure"
8248 #include "confdefs.h"
8249
8250 /* Override any gcc2 internal prototype to avoid an error.  */
8251 #ifdef __cplusplus
8252 extern "C"
8253 #endif
8254 /* We use char because int might match the return type of a gcc2
8255    builtin and then its argument prototype would still apply.  */
8256 char gethostbyname ();
8257 #ifdef F77_DUMMY_MAIN
8258 #  ifdef __cplusplus
8259      extern "C"
8260 #  endif
8261    int F77_DUMMY_MAIN() { return 1; }
8262 #endif
8263 int
8264 main ()
8265 {
8266 gethostbyname ();
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 rm -f conftest.$ac_objext conftest$ac_exeext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8273   (eval $ac_link) 2>&5
8274   ac_status=$?
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); } &&
8277          { ac_try='test -s conftest$ac_exeext'
8278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279   (eval $ac_try) 2>&5
8280   ac_status=$?
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); }; }; then
8283   ac_cv_lib_bsd_gethostbyname=yes
8284 else
8285   echo "$as_me: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8287 ac_cv_lib_bsd_gethostbyname=no
8288 fi
8289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8290 LIBS=$ac_check_lib_save_LIBS
8291 fi
8292 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8293 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8294 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8295   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8296 fi
8297
8298       fi
8299     fi
8300
8301     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8302     # socket/setsockopt and other routines are undefined under SCO ODT
8303     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8304     # on later versions), says Simon Leinen: it contains gethostby*
8305     # variants that don't use the nameserver (or something).  -lsocket
8306     # must be given before -lnsl if both are needed.  We assume that
8307     # if connect needs -lnsl, so does gethostbyname.
8308     echo "$as_me:$LINENO: checking for connect" >&5
8309 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8310 if test "${ac_cv_func_connect+set}" = set; then
8311   echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313   cat >conftest.$ac_ext <<_ACEOF
8314 #line $LINENO "configure"
8315 #include "confdefs.h"
8316 /* System header to define __stub macros and hopefully few prototypes,
8317     which can conflict with char connect (); below.  */
8318 #include <assert.h>
8319 /* Override any gcc2 internal prototype to avoid an error.  */
8320 #ifdef __cplusplus
8321 extern "C"
8322 #endif
8323 /* We use char because int might match the return type of a gcc2
8324    builtin and then its argument prototype would still apply.  */
8325 char connect ();
8326 char (*f) ();
8327
8328 #ifdef F77_DUMMY_MAIN
8329 #  ifdef __cplusplus
8330      extern "C"
8331 #  endif
8332    int F77_DUMMY_MAIN() { return 1; }
8333 #endif
8334 int
8335 main ()
8336 {
8337 /* The GNU C library defines this for functions which it implements
8338     to always fail with ENOSYS.  Some functions are actually named
8339     something starting with __ and the normal name is an alias.  */
8340 #if defined (__stub_connect) || defined (__stub___connect)
8341 choke me
8342 #else
8343 f = connect;
8344 #endif
8345
8346   ;
8347   return 0;
8348 }
8349 _ACEOF
8350 rm -f conftest.$ac_objext conftest$ac_exeext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8352   (eval $ac_link) 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); } &&
8356          { ac_try='test -s conftest$ac_exeext'
8357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358   (eval $ac_try) 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; }; then
8362   ac_cv_func_connect=yes
8363 else
8364   echo "$as_me: failed program was:" >&5
8365 cat conftest.$ac_ext >&5
8366 ac_cv_func_connect=no
8367 fi
8368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8369 fi
8370 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8371 echo "${ECHO_T}$ac_cv_func_connect" >&6
8372
8373     if test $ac_cv_func_connect = no; then
8374       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8375 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8376 if test "${ac_cv_lib_socket_connect+set}" = set; then
8377   echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379   ac_check_lib_save_LIBS=$LIBS
8380 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8381 cat >conftest.$ac_ext <<_ACEOF
8382 #line $LINENO "configure"
8383 #include "confdefs.h"
8384
8385 /* Override any gcc2 internal prototype to avoid an error.  */
8386 #ifdef __cplusplus
8387 extern "C"
8388 #endif
8389 /* We use char because int might match the return type of a gcc2
8390    builtin and then its argument prototype would still apply.  */
8391 char connect ();
8392 #ifdef F77_DUMMY_MAIN
8393 #  ifdef __cplusplus
8394      extern "C"
8395 #  endif
8396    int F77_DUMMY_MAIN() { return 1; }
8397 #endif
8398 int
8399 main ()
8400 {
8401 connect ();
8402   ;
8403   return 0;
8404 }
8405 _ACEOF
8406 rm -f conftest.$ac_objext conftest$ac_exeext
8407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8408   (eval $ac_link) 2>&5
8409   ac_status=$?
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); } &&
8412          { ac_try='test -s conftest$ac_exeext'
8413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414   (eval $ac_try) 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); }; }; then
8418   ac_cv_lib_socket_connect=yes
8419 else
8420   echo "$as_me: failed program was:" >&5
8421 cat conftest.$ac_ext >&5
8422 ac_cv_lib_socket_connect=no
8423 fi
8424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8425 LIBS=$ac_check_lib_save_LIBS
8426 fi
8427 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8428 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8429 if test $ac_cv_lib_socket_connect = yes; then
8430   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8431 fi
8432
8433     fi
8434
8435     # Guillermo Gomez says -lposix is necessary on A/UX.
8436     echo "$as_me:$LINENO: checking for remove" >&5
8437 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8438 if test "${ac_cv_func_remove+set}" = set; then
8439   echo $ECHO_N "(cached) $ECHO_C" >&6
8440 else
8441   cat >conftest.$ac_ext <<_ACEOF
8442 #line $LINENO "configure"
8443 #include "confdefs.h"
8444 /* System header to define __stub macros and hopefully few prototypes,
8445     which can conflict with char remove (); below.  */
8446 #include <assert.h>
8447 /* Override any gcc2 internal prototype to avoid an error.  */
8448 #ifdef __cplusplus
8449 extern "C"
8450 #endif
8451 /* We use char because int might match the return type of a gcc2
8452    builtin and then its argument prototype would still apply.  */
8453 char remove ();
8454 char (*f) ();
8455
8456 #ifdef F77_DUMMY_MAIN
8457 #  ifdef __cplusplus
8458      extern "C"
8459 #  endif
8460    int F77_DUMMY_MAIN() { return 1; }
8461 #endif
8462 int
8463 main ()
8464 {
8465 /* The GNU C library defines this for functions which it implements
8466     to always fail with ENOSYS.  Some functions are actually named
8467     something starting with __ and the normal name is an alias.  */
8468 #if defined (__stub_remove) || defined (__stub___remove)
8469 choke me
8470 #else
8471 f = remove;
8472 #endif
8473
8474   ;
8475   return 0;
8476 }
8477 _ACEOF
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8480   (eval $ac_link) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); } &&
8484          { ac_try='test -s conftest$ac_exeext'
8485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486   (eval $ac_try) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }; }; then
8490   ac_cv_func_remove=yes
8491 else
8492   echo "$as_me: failed program was:" >&5
8493 cat conftest.$ac_ext >&5
8494 ac_cv_func_remove=no
8495 fi
8496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8497 fi
8498 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8499 echo "${ECHO_T}$ac_cv_func_remove" >&6
8500
8501     if test $ac_cv_func_remove = no; then
8502       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8503 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8504 if test "${ac_cv_lib_posix_remove+set}" = set; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507   ac_check_lib_save_LIBS=$LIBS
8508 LIBS="-lposix  $LIBS"
8509 cat >conftest.$ac_ext <<_ACEOF
8510 #line $LINENO "configure"
8511 #include "confdefs.h"
8512
8513 /* Override any gcc2 internal prototype to avoid an error.  */
8514 #ifdef __cplusplus
8515 extern "C"
8516 #endif
8517 /* We use char because int might match the return type of a gcc2
8518    builtin and then its argument prototype would still apply.  */
8519 char remove ();
8520 #ifdef F77_DUMMY_MAIN
8521 #  ifdef __cplusplus
8522      extern "C"
8523 #  endif
8524    int F77_DUMMY_MAIN() { return 1; }
8525 #endif
8526 int
8527 main ()
8528 {
8529 remove ();
8530   ;
8531   return 0;
8532 }
8533 _ACEOF
8534 rm -f conftest.$ac_objext conftest$ac_exeext
8535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8536   (eval $ac_link) 2>&5
8537   ac_status=$?
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } &&
8540          { ac_try='test -s conftest$ac_exeext'
8541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542   (eval $ac_try) 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; }; then
8546   ac_cv_lib_posix_remove=yes
8547 else
8548   echo "$as_me: failed program was:" >&5
8549 cat conftest.$ac_ext >&5
8550 ac_cv_lib_posix_remove=no
8551 fi
8552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8553 LIBS=$ac_check_lib_save_LIBS
8554 fi
8555 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8556 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8557 if test $ac_cv_lib_posix_remove = yes; then
8558   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8559 fi
8560
8561     fi
8562
8563     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8564     echo "$as_me:$LINENO: checking for shmat" >&5
8565 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8566 if test "${ac_cv_func_shmat+set}" = set; then
8567   echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569   cat >conftest.$ac_ext <<_ACEOF
8570 #line $LINENO "configure"
8571 #include "confdefs.h"
8572 /* System header to define __stub macros and hopefully few prototypes,
8573     which can conflict with char shmat (); below.  */
8574 #include <assert.h>
8575 /* Override any gcc2 internal prototype to avoid an error.  */
8576 #ifdef __cplusplus
8577 extern "C"
8578 #endif
8579 /* We use char because int might match the return type of a gcc2
8580    builtin and then its argument prototype would still apply.  */
8581 char shmat ();
8582 char (*f) ();
8583
8584 #ifdef F77_DUMMY_MAIN
8585 #  ifdef __cplusplus
8586      extern "C"
8587 #  endif
8588    int F77_DUMMY_MAIN() { return 1; }
8589 #endif
8590 int
8591 main ()
8592 {
8593 /* The GNU C library defines this for functions which it implements
8594     to always fail with ENOSYS.  Some functions are actually named
8595     something starting with __ and the normal name is an alias.  */
8596 #if defined (__stub_shmat) || defined (__stub___shmat)
8597 choke me
8598 #else
8599 f = shmat;
8600 #endif
8601
8602   ;
8603   return 0;
8604 }
8605 _ACEOF
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608   (eval $ac_link) 2>&5
8609   ac_status=$?
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); } &&
8612          { ac_try='test -s conftest$ac_exeext'
8613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614   (eval $ac_try) 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); }; }; then
8618   ac_cv_func_shmat=yes
8619 else
8620   echo "$as_me: failed program was:" >&5
8621 cat conftest.$ac_ext >&5
8622 ac_cv_func_shmat=no
8623 fi
8624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8625 fi
8626 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8627 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8628
8629     if test $ac_cv_func_shmat = no; then
8630       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8631 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8632 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8633   echo $ECHO_N "(cached) $ECHO_C" >&6
8634 else
8635   ac_check_lib_save_LIBS=$LIBS
8636 LIBS="-lipc  $LIBS"
8637 cat >conftest.$ac_ext <<_ACEOF
8638 #line $LINENO "configure"
8639 #include "confdefs.h"
8640
8641 /* Override any gcc2 internal prototype to avoid an error.  */
8642 #ifdef __cplusplus
8643 extern "C"
8644 #endif
8645 /* We use char because int might match the return type of a gcc2
8646    builtin and then its argument prototype would still apply.  */
8647 char shmat ();
8648 #ifdef F77_DUMMY_MAIN
8649 #  ifdef __cplusplus
8650      extern "C"
8651 #  endif
8652    int F77_DUMMY_MAIN() { return 1; }
8653 #endif
8654 int
8655 main ()
8656 {
8657 shmat ();
8658   ;
8659   return 0;
8660 }
8661 _ACEOF
8662 rm -f conftest.$ac_objext conftest$ac_exeext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664   (eval $ac_link) 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); } &&
8668          { ac_try='test -s conftest$ac_exeext'
8669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670   (eval $ac_try) 2>&5
8671   ac_status=$?
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); }; }; then
8674   ac_cv_lib_ipc_shmat=yes
8675 else
8676   echo "$as_me: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8678 ac_cv_lib_ipc_shmat=no
8679 fi
8680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8681 LIBS=$ac_check_lib_save_LIBS
8682 fi
8683 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8684 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8685 if test $ac_cv_lib_ipc_shmat = yes; then
8686   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8687 fi
8688
8689     fi
8690   fi
8691
8692   # Check for libraries that X11R6 Xt/Xaw programs need.
8693   ac_save_LDFLAGS=$LDFLAGS
8694   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8695   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8696   # check for ICE first), but we must link in the order -lSM -lICE or
8697   # we get undefined symbols.  So assume we have SM if we have ICE.
8698   # These have to be linked with before -lX11, unlike the other
8699   # libraries we check for below, so use a different variable.
8700   # John Interrante, Karl Berry
8701   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8702 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8703 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8704   echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706   ac_check_lib_save_LIBS=$LIBS
8707 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8708 cat >conftest.$ac_ext <<_ACEOF
8709 #line $LINENO "configure"
8710 #include "confdefs.h"
8711
8712 /* Override any gcc2 internal prototype to avoid an error.  */
8713 #ifdef __cplusplus
8714 extern "C"
8715 #endif
8716 /* We use char because int might match the return type of a gcc2
8717    builtin and then its argument prototype would still apply.  */
8718 char IceConnectionNumber ();
8719 #ifdef F77_DUMMY_MAIN
8720 #  ifdef __cplusplus
8721      extern "C"
8722 #  endif
8723    int F77_DUMMY_MAIN() { return 1; }
8724 #endif
8725 int
8726 main ()
8727 {
8728 IceConnectionNumber ();
8729   ;
8730   return 0;
8731 }
8732 _ACEOF
8733 rm -f conftest.$ac_objext conftest$ac_exeext
8734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8735   (eval $ac_link) 2>&5
8736   ac_status=$?
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); } &&
8739          { ac_try='test -s conftest$ac_exeext'
8740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741   (eval $ac_try) 2>&5
8742   ac_status=$?
8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); }; }; then
8745   ac_cv_lib_ICE_IceConnectionNumber=yes
8746 else
8747   echo "$as_me: failed program was:" >&5
8748 cat conftest.$ac_ext >&5
8749 ac_cv_lib_ICE_IceConnectionNumber=no
8750 fi
8751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8752 LIBS=$ac_check_lib_save_LIBS
8753 fi
8754 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8755 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8756 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8757   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8758 fi
8759
8760   LDFLAGS=$ac_save_LDFLAGS
8761
8762 fi
8763
8764
8765
8766
8767
8768
8769
8770
8771 X_TOOLKIT_LIBS="-lXt"
8772 X_BASIC_LIBS="-lXext -lX11 -lXmu"
8773
8774 our_saved_LDFLAGS="$LDFLAGS"
8775 LDFLAGS="$X_LIBS $LDFLAGS"
8776 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
8777 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
8778 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
8779   echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781   ac_check_lib_save_LIBS=$LIBS
8782 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
8783 cat >conftest.$ac_ext <<_ACEOF
8784 #line $LINENO "configure"
8785 #include "confdefs.h"
8786
8787 /* Override any gcc2 internal prototype to avoid an error.  */
8788 #ifdef __cplusplus
8789 extern "C"
8790 #endif
8791 /* We use char because int might match the return type of a gcc2
8792    builtin and then its argument prototype would still apply.  */
8793 char XtToolkitThreadInitialize ();
8794 #ifdef F77_DUMMY_MAIN
8795 #  ifdef __cplusplus
8796      extern "C"
8797 #  endif
8798    int F77_DUMMY_MAIN() { return 1; }
8799 #endif
8800 int
8801 main ()
8802 {
8803 XtToolkitThreadInitialize ();
8804   ;
8805   return 0;
8806 }
8807 _ACEOF
8808 rm -f conftest.$ac_objext conftest$ac_exeext
8809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8810   (eval $ac_link) 2>&5
8811   ac_status=$?
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); } &&
8814          { ac_try='test -s conftest$ac_exeext'
8815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816   (eval $ac_try) 2>&5
8817   ac_status=$?
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); }; }; then
8820   ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
8821 else
8822   echo "$as_me: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8824 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
8825 fi
8826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8827 LIBS=$ac_check_lib_save_LIBS
8828 fi
8829 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
8830 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
8831 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
8832
8833 cat >>confdefs.h <<\_ACEOF
8834 #define X_THREAD_SUPPORT 1
8835 _ACEOF
8836
8837 fi
8838
8839 LDFLAGS="$our_saved_LDFLAGS"
8840
8841
8842
8843 if test "x$no_x" = "xyes"; then
8844   NO_X_TRUE=
8845   NO_X_FALSE='#'
8846 else
8847   NO_X_TRUE='#'
8848   NO_X_FALSE=
8849 fi
8850
8851 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
8852
8853
8854 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8855
8856 echo "$as_me:$LINENO: checking for X" >&5
8857 echo $ECHO_N "checking for X... $ECHO_C" >&6
8858 if test "$no_x" != "yes" ; then
8859
8860 cat >>confdefs.h <<\_ACEOF
8861 #define HAVE_X11 1
8862 _ACEOF
8863
8864   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
8865   ctlib_graphics="$ctlibs_base -lctgraphics"
8866   echo "$as_me:$LINENO: result: yes" >&5
8867 echo "${ECHO_T}yes" >&6
8868   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
8869   if test "$libgl" = "true" ; then
8870     ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU"
8871     if test "$wxwin" = "true" ; then
8872       ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.2"
8873     fi
8874   fi
8875   if test "$wxwin" = "true" ; then
8876
8877 cat >>confdefs.h <<\_ACEOF
8878 #define HAVE_SGP 1
8879 _ACEOF
8880
8881
8882
8883 if test 1==1; then
8884   HAVE_SGP_TRUE=
8885   HAVE_SGP_FALSE='#'
8886 else
8887   HAVE_SGP_TRUE='#'
8888   HAVE_SGP_FALSE=
8889 fi
8890   fi
8891 else
8892   echo "$as_me:$LINENO: result: no" >&5
8893 echo "${ECHO_T}no" >&6
8894 fi
8895
8896 if test "$png" = "true" ; then
8897   ctlibs_tools="$ctlibs_tools -lpng"
8898 fi
8899 if test "$zlib" = "true" ; then
8900   ctlibs_tools="$ctlibs_tools -lz"
8901 fi
8902 if test "$fftw" = "true" ; then
8903   ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
8904 fi
8905 if test "$ctn" = "true"; then
8906   ctlibs_tools="$ctlibs_tools -lctn"
8907 fi
8908
8909 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
8910 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
8911 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
8912   echo $ECHO_N "(cached) $ECHO_C" >&6
8913 else
8914   ac_check_lib_save_LIBS=$LIBS
8915 LIBS="-ldmallocxx  $LIBS"
8916 cat >conftest.$ac_ext <<_ACEOF
8917 #line $LINENO "configure"
8918 #include "confdefs.h"
8919
8920
8921 #ifdef F77_DUMMY_MAIN
8922 #  ifdef __cplusplus
8923      extern "C"
8924 #  endif
8925    int F77_DUMMY_MAIN() { return 1; }
8926 #endif
8927 int
8928 main ()
8929 {
8930 main ();
8931   ;
8932   return 0;
8933 }
8934 _ACEOF
8935 rm -f conftest.$ac_objext conftest$ac_exeext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8937   (eval $ac_link) 2>&5
8938   ac_status=$?
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); } &&
8941          { ac_try='test -s conftest$ac_exeext'
8942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943   (eval $ac_try) 2>&5
8944   ac_status=$?
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); }; }; then
8947   ac_cv_lib_dmallocxx_main=yes
8948 else
8949   echo "$as_me: failed program was:" >&5
8950 cat conftest.$ac_ext >&5
8951 ac_cv_lib_dmallocxx_main=no
8952 fi
8953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8954 LIBS=$ac_check_lib_save_LIBS
8955 fi
8956 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
8957 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
8958 if test $ac_cv_lib_dmallocxx_main = yes; then
8959   dmallocxx=true
8960 else
8961   dmallocxx=false
8962 fi
8963
8964 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
8965 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
8966 # Check whether --enable-dmalloc or --disable-dmalloc was given.
8967 if test "${enable_dmalloc+set}" = set; then
8968   enableval="$enable_dmalloc"
8969   case "${enableval}" in
8970   yes) usedmalloc=true
8971        echo "$as_me:$LINENO: result: yes" >&5
8972 echo "${ECHO_T}yes" >&6
8973        ;;
8974   no)  usedmalloc=false
8975        echo "$as_me:$LINENO: result: no" >&5
8976 echo "${ECHO_T}no" >&6
8977        ;;
8978   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
8979 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
8980        ;;
8981 esac
8982 else
8983   usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
8984 echo "${ECHO_T}no" >&6
8985 fi;
8986
8987 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
8988   ctlibs_tools="$ctlibs_tools -ldmallocxx"
8989
8990 cat >>confdefs.h <<\_ACEOF
8991 #define HAVE_DMALLOC 1
8992 _ACEOF
8993
8994   echo "$as_me:$LINENO: result: Using dmalloc" >&5
8995 echo "${ECHO_T}Using dmalloc" >&6
8996 fi
8997
8998 echo "$as_me:$LINENO: checking for main in -lefence" >&5
8999 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9000 if test "${ac_cv_lib_efence_main+set}" = set; then
9001   echo $ECHO_N "(cached) $ECHO_C" >&6
9002 else
9003   ac_check_lib_save_LIBS=$LIBS
9004 LIBS="-lefence  $LIBS"
9005 cat >conftest.$ac_ext <<_ACEOF
9006 #line $LINENO "configure"
9007 #include "confdefs.h"
9008
9009
9010 #ifdef F77_DUMMY_MAIN
9011 #  ifdef __cplusplus
9012      extern "C"
9013 #  endif
9014    int F77_DUMMY_MAIN() { return 1; }
9015 #endif
9016 int
9017 main ()
9018 {
9019 main ();
9020   ;
9021   return 0;
9022 }
9023 _ACEOF
9024 rm -f conftest.$ac_objext conftest$ac_exeext
9025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9026   (eval $ac_link) 2>&5
9027   ac_status=$?
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); } &&
9030          { ac_try='test -s conftest$ac_exeext'
9031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032   (eval $ac_try) 2>&5
9033   ac_status=$?
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); }; }; then
9036   ac_cv_lib_efence_main=yes
9037 else
9038   echo "$as_me: failed program was:" >&5
9039 cat conftest.$ac_ext >&5
9040 ac_cv_lib_efence_main=no
9041 fi
9042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9043 LIBS=$ac_check_lib_save_LIBS
9044 fi
9045 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9046 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9047 if test $ac_cv_lib_efence_main = yes; then
9048   efence=true
9049 else
9050   efence=false
9051 fi
9052
9053 echo "$as_me:$LINENO: checking for enable-efence" >&5
9054 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9055 # Check whether --enable-efence or --disable-efence was given.
9056 if test "${enable_efence+set}" = set; then
9057   enableval="$enable_efence"
9058   case "${enableval}" in
9059   yes) useefence=true
9060        echo "$as_me:$LINENO: result: yes" >&5
9061 echo "${ECHO_T}yes" >&6
9062        ;;
9063   no)  useefence=false
9064        echo "$as_me:$LINENO: result: no" >&5
9065 echo "${ECHO_T}no" >&6
9066        ;;
9067   *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9068 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9069        ;;
9070 esac
9071 else
9072   useefence=false; echo "$as_me:$LINENO: result: no" >&5
9073 echo "${ECHO_T}no" >&6
9074 fi;
9075
9076 if test "$efence" = "true" -a "$useefence" = "true" ; then
9077   ctlibs_tools="$ctlibs_tools -lefence"
9078
9079 cat >>confdefs.h <<\_ACEOF
9080 #define HAVE_EFENCE 1
9081 _ACEOF
9082
9083   echo "$as_me:$LINENO: result: Using efence" >&5
9084 echo "${ECHO_T}Using efence" >&6
9085 fi
9086
9087 if test "$wxwin" = "true" ; then
9088   if test "$wx_gtk" = "true" ; then
9089     wxcflags=`$wxconfig --cflags`
9090     wxlibs=`$wxconfig --libs`
9091   else
9092         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9093    wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9094   fi
9095   CFLAGS="$CFLAGS -I../include $wxcflags"
9096   ctlib_graphics="$ctlib_graphics $wxlibs"
9097
9098
9099 if test 1==1 ; then
9100   HAVE_WXWINDOWS_TRUE=
9101   HAVE_WXWINDOWS_FALSE='#'
9102 else
9103   HAVE_WXWINDOWS_TRUE='#'
9104   HAVE_WXWINDOWS_FALSE=
9105 fi
9106 fi
9107
9108
9109
9110 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9111 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9112
9113
9114 if test -n "$lamdir" ; then
9115   lamprograms="ctsimtext-lam"
9116
9117   lamdefs="$CFLAGS"
9118
9119 fi
9120
9121 CXXFLAGS="$CFLAGS"
9122
9123 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"
9124
9125 cat >confcache <<\_ACEOF
9126 # This file is a shell script that caches the results of configure
9127 # tests run on this system so they can be shared between configure
9128 # scripts and configure runs, see configure's option --config-cache.
9129 # It is not useful on other systems.  If it contains results you don't
9130 # want to keep, you may remove or edit it.
9131 #
9132 # config.status only pays attention to the cache file if you give it
9133 # the --recheck option to rerun configure.
9134 #
9135 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9136 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9137 # following values.
9138
9139 _ACEOF
9140
9141 # The following way of writing the cache mishandles newlines in values,
9142 # but we know of no workaround that is simple, portable, and efficient.
9143 # So, don't put newlines in cache variables' values.
9144 # Ultrix sh set writes to stderr and can't be redirected directly,
9145 # and sets the high bit in the cache file unless we assign to the vars.
9146 {
9147   (set) 2>&1 |
9148     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9149     *ac_space=\ *)
9150       # `set' does not quote correctly, so add quotes (double-quote
9151       # substitution turns \\\\ into \\, and sed turns \\ into \).
9152       sed -n \
9153         "s/'/'\\\\''/g;
9154           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9155       ;;
9156     *)
9157       # `set' quotes correctly as required by POSIX, so do not add quotes.
9158       sed -n \
9159         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9160       ;;
9161     esac;
9162 } |
9163   sed '
9164      t clear
9165      : clear
9166      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9167      t end
9168      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9169      : end' >>confcache
9170 if cmp -s $cache_file confcache; then :; else
9171   if test -w $cache_file; then
9172     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9173     cat confcache >$cache_file
9174   else
9175     echo "not updating unwritable cache $cache_file"
9176   fi
9177 fi
9178 rm -f confcache
9179
9180 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9181 # Let make expand exec_prefix.
9182 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9183
9184 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9185 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9186 # trailing colons and then remove the whole line if VPATH becomes empty
9187 # (actually we leave an empty line to preserve line numbers).
9188 if test "x$srcdir" = x.; then
9189   ac_vpsub='/^[         ]*VPATH[        ]*=/{
9190 s/:*\$(srcdir):*/:/;
9191 s/:*\${srcdir}:*/:/;
9192 s/:*@srcdir@:*/:/;
9193 s/^\([^=]*=[    ]*\):*/\1/;
9194 s/:*$//;
9195 s/^[^=]*=[      ]*$//;
9196 }'
9197 fi
9198
9199 DEFS=-DHAVE_CONFIG_H
9200
9201
9202 : ${CONFIG_STATUS=./config.status}
9203 ac_clean_files_save=$ac_clean_files
9204 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9205 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9206 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9207 cat >$CONFIG_STATUS <<_ACEOF
9208 #! $SHELL
9209 # Generated by $as_me.
9210 # Run this file to recreate the current configuration.
9211 # Compiler output produced by configure, useful for debugging
9212 # configure, is in config.log if it exists.
9213
9214 debug=false
9215 SHELL=\${CONFIG_SHELL-$SHELL}
9216 _ACEOF
9217
9218 cat >>$CONFIG_STATUS <<\_ACEOF
9219
9220 ## --------------------- ##
9221 ## M4sh Initialization.  ##
9222 ## --------------------- ##
9223
9224 # Be Bourne compatible
9225 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9226   emulate sh
9227   NULLCMD=:
9228 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9229   set -o posix
9230 fi
9231
9232 # NLS nuisances.
9233 # Support unset when possible.
9234 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9235   as_unset=unset
9236 else
9237   as_unset=false
9238 fi
9239
9240 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9241     { $as_unset LANG || test "${LANG+set}" != set; } ||
9242       { LANG=C; export LANG; }
9243 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9244     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9245       { LC_ALL=C; export LC_ALL; }
9246 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9247     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9248       { LC_TIME=C; export LC_TIME; }
9249 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9250     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9251       { LC_CTYPE=C; export LC_CTYPE; }
9252 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9253     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9254       { LANGUAGE=C; export LANGUAGE; }
9255 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9256     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9257       { LC_COLLATE=C; export LC_COLLATE; }
9258 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9259     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9260       { LC_NUMERIC=C; export LC_NUMERIC; }
9261 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9262     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9263       { LC_MESSAGES=C; export LC_MESSAGES; }
9264
9265
9266 # Name of the executable.
9267 as_me=`(basename "$0") 2>/dev/null ||
9268 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9269          X"$0" : 'X\(//\)$' \| \
9270          X"$0" : 'X\(/\)$' \| \
9271          .     : '\(.\)' 2>/dev/null ||
9272 echo X/"$0" |
9273     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9274           /^X\/\(\/\/\)$/{ s//\1/; q; }
9275           /^X\/\(\/\).*/{ s//\1/; q; }
9276           s/.*/./; q'`
9277
9278 # PATH needs CR, and LINENO needs CR and PATH.
9279 # Avoid depending upon Character Ranges.
9280 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9281 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9282 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9283 as_cr_digits='0123456789'
9284 as_cr_alnum=$as_cr_Letters$as_cr_digits
9285
9286 # The user is always right.
9287 if test "${PATH_SEPARATOR+set}" != set; then
9288   echo "#! /bin/sh" >conftest.sh
9289   echo  "exit 0"   >>conftest.sh
9290   chmod +x conftest.sh
9291   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9292     PATH_SEPARATOR=';'
9293   else
9294     PATH_SEPARATOR=:
9295   fi
9296   rm -f conftest.sh
9297 fi
9298
9299
9300   as_lineno_1=$LINENO
9301   as_lineno_2=$LINENO
9302   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9303   test "x$as_lineno_1" != "x$as_lineno_2" &&
9304   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9305   # Find who we are.  Look in the path if we contain no path at all
9306   # relative or not.
9307   case $0 in
9308     *[\\/]* ) as_myself=$0 ;;
9309     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9310 for as_dir in $PATH
9311 do
9312   IFS=$as_save_IFS
9313   test -z "$as_dir" && as_dir=.
9314   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9315 done
9316
9317        ;;
9318   esac
9319   # We did not find ourselves, most probably we were run as `sh COMMAND'
9320   # in which case we are not to be found in the path.
9321   if test "x$as_myself" = x; then
9322     as_myself=$0
9323   fi
9324   if test ! -f "$as_myself"; then
9325     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9326 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9327    { (exit 1); exit 1; }; }
9328   fi
9329   case $CONFIG_SHELL in
9330   '')
9331     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9333 do
9334   IFS=$as_save_IFS
9335   test -z "$as_dir" && as_dir=.
9336   for as_base in sh bash ksh sh5; do
9337          case $as_dir in
9338          /*)
9339            if ("$as_dir/$as_base" -c '
9340   as_lineno_1=$LINENO
9341   as_lineno_2=$LINENO
9342   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9343   test "x$as_lineno_1" != "x$as_lineno_2" &&
9344   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9345              CONFIG_SHELL=$as_dir/$as_base
9346              export CONFIG_SHELL
9347              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9348            fi;;
9349          esac
9350        done
9351 done
9352 ;;
9353   esac
9354
9355   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9356   # uniformly replaced by the line number.  The first 'sed' inserts a
9357   # line-number line before each line; the second 'sed' does the real
9358   # work.  The second script uses 'N' to pair each line-number line
9359   # with the numbered line, and appends trailing '-' during
9360   # substitution so that $LINENO is not a special case at line end.
9361   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9362   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9363   sed '=' <$as_myself |
9364     sed '
9365       N
9366       s,$,-,
9367       : loop
9368       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9369       t loop
9370       s,-$,,
9371       s,^['$as_cr_digits']*\n,,
9372     ' >$as_me.lineno &&
9373   chmod +x $as_me.lineno ||
9374     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9375 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9376    { (exit 1); exit 1; }; }
9377
9378   # Don't try to exec as it changes $[0], causing all sort of problems
9379   # (the dirname of $[0] is not the place where we might find the
9380   # original and so on.  Autoconf is especially sensible to this).
9381   . ./$as_me.lineno
9382   # Exit status is that of the last command.
9383   exit
9384 }
9385
9386
9387 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9388   *c*,-n*) ECHO_N= ECHO_C='
9389 ' ECHO_T='      ' ;;
9390   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9391   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9392 esac
9393
9394 if expr a : '\(a\)' >/dev/null 2>&1; then
9395   as_expr=expr
9396 else
9397   as_expr=false
9398 fi
9399
9400 rm -f conf$$ conf$$.exe conf$$.file
9401 echo >conf$$.file
9402 if ln -s conf$$.file conf$$ 2>/dev/null; then
9403   # We could just check for DJGPP; but this test a) works b) is more generic
9404   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9405   if test -f conf$$.exe; then
9406     # Don't use ln at all; we don't have any links
9407     as_ln_s='cp -p'
9408   else
9409     as_ln_s='ln -s'
9410   fi
9411 elif ln conf$$.file conf$$ 2>/dev/null; then
9412   as_ln_s=ln
9413 else
9414   as_ln_s='cp -p'
9415 fi
9416 rm -f conf$$ conf$$.exe conf$$.file
9417
9418 as_executable_p="test -f"
9419
9420 # Sed expression to map a string onto a valid CPP name.
9421 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9422
9423 # Sed expression to map a string onto a valid variable name.
9424 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9425
9426
9427 # IFS
9428 # We need space, tab and new line, in precisely that order.
9429 as_nl='
9430 '
9431 IFS="   $as_nl"
9432
9433 # CDPATH.
9434 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9435
9436 exec 6>&1
9437
9438 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9439 # report actual input values of CONFIG_FILES etc. instead of their
9440 # values after options handling.  Logging --version etc. is OK.
9441 exec 5>>config.log
9442 {
9443   echo
9444   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9445 ## Running $as_me. ##
9446 _ASBOX
9447 } >&5
9448 cat >&5 <<_CSEOF
9449
9450 This file was extended by $as_me, which was
9451 generated by GNU Autoconf 2.53.  Invocation command line was
9452
9453   CONFIG_FILES    = $CONFIG_FILES
9454   CONFIG_HEADERS  = $CONFIG_HEADERS
9455   CONFIG_LINKS    = $CONFIG_LINKS
9456   CONFIG_COMMANDS = $CONFIG_COMMANDS
9457   $ $0 $@
9458
9459 _CSEOF
9460 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9461 echo >&5
9462 _ACEOF
9463
9464 # Files that config.status was made for.
9465 if test -n "$ac_config_files"; then
9466   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9467 fi
9468
9469 if test -n "$ac_config_headers"; then
9470   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9471 fi
9472
9473 if test -n "$ac_config_links"; then
9474   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9475 fi
9476
9477 if test -n "$ac_config_commands"; then
9478   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9479 fi
9480
9481 cat >>$CONFIG_STATUS <<\_ACEOF
9482
9483 ac_cs_usage="\
9484 \`$as_me' instantiates files from templates according to the
9485 current configuration.
9486
9487 Usage: $0 [OPTIONS] [FILE]...
9488
9489   -h, --help       print this help, then exit
9490   -V, --version    print version number, then exit
9491   -d, --debug      don't remove temporary files
9492       --recheck    update $as_me by reconfiguring in the same conditions
9493   --file=FILE[:TEMPLATE]
9494                    instantiate the configuration file FILE
9495   --header=FILE[:TEMPLATE]
9496                    instantiate the configuration header FILE
9497
9498 Configuration files:
9499 $config_files
9500
9501 Configuration headers:
9502 $config_headers
9503
9504 Configuration commands:
9505 $config_commands
9506
9507 Report bugs to <bug-autoconf@gnu.org>."
9508 _ACEOF
9509
9510 cat >>$CONFIG_STATUS <<_ACEOF
9511 ac_cs_version="\\
9512 config.status
9513 configured by $0, generated by GNU Autoconf 2.53,
9514   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9515
9516 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9517 Free Software Foundation, Inc.
9518 This config.status script is free software; the Free Software Foundation
9519 gives unlimited permission to copy, distribute and modify it."
9520 srcdir=$srcdir
9521 INSTALL="$INSTALL"
9522 _ACEOF
9523
9524 cat >>$CONFIG_STATUS <<\_ACEOF
9525 # If no file are specified by the user, then we need to provide default
9526 # value.  By we need to know if files were specified by the user.
9527 ac_need_defaults=:
9528 while test $# != 0
9529 do
9530   case $1 in
9531   --*=*)
9532     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9533     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9534     shift
9535     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9536     shift
9537     ;;
9538   -*);;
9539   *) # This is not an option, so the user has probably given explicit
9540      # arguments.
9541      ac_need_defaults=false;;
9542   esac
9543
9544   case $1 in
9545   # Handling of the options.
9546 _ACEOF
9547 cat >>$CONFIG_STATUS <<_ACEOF
9548   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9549     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9550     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9551 _ACEOF
9552 cat >>$CONFIG_STATUS <<\_ACEOF
9553   --version | --vers* | -V )
9554     echo "$ac_cs_version"; exit 0 ;;
9555   --he | --h)
9556     # Conflict between --help and --header
9557     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9558 Try \`$0 --help' for more information." >&5
9559 echo "$as_me: error: ambiguous option: $1
9560 Try \`$0 --help' for more information." >&2;}
9561    { (exit 1); exit 1; }; };;
9562   --help | --hel | -h )
9563     echo "$ac_cs_usage"; exit 0 ;;
9564   --debug | --d* | -d )
9565     debug=: ;;
9566   --file | --fil | --fi | --f )
9567     shift
9568     CONFIG_FILES="$CONFIG_FILES $1"
9569     ac_need_defaults=false;;
9570   --header | --heade | --head | --hea )
9571     shift
9572     CONFIG_HEADERS="$CONFIG_HEADERS $1"
9573     ac_need_defaults=false;;
9574
9575   # This is an error.
9576   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9577 Try \`$0 --help' for more information." >&5
9578 echo "$as_me: error: unrecognized option: $1
9579 Try \`$0 --help' for more information." >&2;}
9580    { (exit 1); exit 1; }; } ;;
9581
9582   *) ac_config_targets="$ac_config_targets $1" ;;
9583
9584   esac
9585   shift
9586 done
9587
9588 _ACEOF
9589
9590 cat >>$CONFIG_STATUS <<_ACEOF
9591 #
9592 # INIT-COMMANDS section.
9593 #
9594
9595
9596
9597 _ACEOF
9598
9599
9600
9601 cat >>$CONFIG_STATUS <<\_ACEOF
9602 for ac_config_target in $ac_config_targets
9603 do
9604   case "$ac_config_target" in
9605   # Handling of arguments.
9606   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9607   "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
9608   "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
9609   "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
9610   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9611   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9612   "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
9613   "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
9614   "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
9615   "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
9616   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9617   "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
9618   "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
9619   "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
9620   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9621   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9622   "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
9623   "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
9624   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9625   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9626   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9627 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9628    { (exit 1); exit 1; }; };;
9629   esac
9630 done
9631
9632 # If the user did not use the arguments to specify the items to instantiate,
9633 # then the envvar interface is used.  Set only those that are not.
9634 # We use the long form for the default assignment because of an extremely
9635 # bizarre bug on SunOS 4.1.3.
9636 if $ac_need_defaults; then
9637   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9638   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9639   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9640 fi
9641
9642 # Create a temporary directory, and hook for its removal unless debugging.
9643 $debug ||
9644 {
9645   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9646   trap '{ (exit 1); exit 1; }' 1 2 13 15
9647 }
9648
9649 # Create a (secure) tmp directory for tmp files.
9650 : ${TMPDIR=/tmp}
9651 {
9652   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9653   test -n "$tmp" && test -d "$tmp"
9654 }  ||
9655 {
9656   tmp=$TMPDIR/cs$$-$RANDOM
9657   (umask 077 && mkdir $tmp)
9658 } ||
9659 {
9660    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9661    { (exit 1); exit 1; }
9662 }
9663
9664 _ACEOF
9665
9666 cat >>$CONFIG_STATUS <<_ACEOF
9667
9668 #
9669 # CONFIG_FILES section.
9670 #
9671
9672 # No need to generate the scripts if there are no CONFIG_FILES.
9673 # This happens for instance when ./config.status config.h
9674 if test -n "\$CONFIG_FILES"; then
9675   # Protect against being on the right side of a sed subst in config.status.
9676   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9677    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9678 s,@SHELL@,$SHELL,;t t
9679 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9680 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9681 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9682 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9683 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9684 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9685 s,@exec_prefix@,$exec_prefix,;t t
9686 s,@prefix@,$prefix,;t t
9687 s,@program_transform_name@,$program_transform_name,;t t
9688 s,@bindir@,$bindir,;t t
9689 s,@sbindir@,$sbindir,;t t
9690 s,@libexecdir@,$libexecdir,;t t
9691 s,@datadir@,$datadir,;t t
9692 s,@sysconfdir@,$sysconfdir,;t t
9693 s,@sharedstatedir@,$sharedstatedir,;t t
9694 s,@localstatedir@,$localstatedir,;t t
9695 s,@libdir@,$libdir,;t t
9696 s,@includedir@,$includedir,;t t
9697 s,@oldincludedir@,$oldincludedir,;t t
9698 s,@infodir@,$infodir,;t t
9699 s,@mandir@,$mandir,;t t
9700 s,@build_alias@,$build_alias,;t t
9701 s,@host_alias@,$host_alias,;t t
9702 s,@target_alias@,$target_alias,;t t
9703 s,@DEFS@,$DEFS,;t t
9704 s,@ECHO_C@,$ECHO_C,;t t
9705 s,@ECHO_N@,$ECHO_N,;t t
9706 s,@ECHO_T@,$ECHO_T,;t t
9707 s,@LIBS@,$LIBS,;t t
9708 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9709 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9710 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9711 s,@PACKAGE@,$PACKAGE,;t t
9712 s,@VERSION@,$VERSION,;t t
9713 s,@ACLOCAL@,$ACLOCAL,;t t
9714 s,@AUTOCONF@,$AUTOCONF,;t t
9715 s,@AUTOMAKE@,$AUTOMAKE,;t t
9716 s,@AUTOHEADER@,$AUTOHEADER,;t t
9717 s,@MAKEINFO@,$MAKEINFO,;t t
9718 s,@SET_MAKE@,$SET_MAKE,;t t
9719 s,@AWK@,$AWK,;t t
9720 s,@RANLIB@,$RANLIB,;t t
9721 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9722 s,@CC@,$CC,;t t
9723 s,@CFLAGS@,$CFLAGS,;t t
9724 s,@LDFLAGS@,$LDFLAGS,;t t
9725 s,@CPPFLAGS@,$CPPFLAGS,;t t
9726 s,@ac_ct_CC@,$ac_ct_CC,;t t
9727 s,@EXEEXT@,$EXEEXT,;t t
9728 s,@OBJEXT@,$OBJEXT,;t t
9729 s,@CXX@,$CXX,;t t
9730 s,@CXXFLAGS@,$CXXFLAGS,;t t
9731 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9732 s,@wxconfig@,$wxconfig,;t t
9733 s,@build@,$build,;t t
9734 s,@build_cpu@,$build_cpu,;t t
9735 s,@build_vendor@,$build_vendor,;t t
9736 s,@build_os@,$build_os,;t t
9737 s,@host@,$host,;t t
9738 s,@host_cpu@,$host_cpu,;t t
9739 s,@host_vendor@,$host_vendor,;t t
9740 s,@host_os@,$host_os,;t t
9741 s,@CPP@,$CPP,;t t
9742 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
9743 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
9744 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
9745 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
9746 s,@lamdir@,$lamdir,;t t
9747 s,@mpienable@,$mpienable,;t t
9748 s,@cgibindir@,$cgibindir,;t t
9749 s,@cgibinurl@,$cgibinurl,;t t
9750 s,@webdatadir@,$webdatadir,;t t
9751 s,@webdataurl@,$webdataurl,;t t
9752 s,@htmldir@,$htmldir,;t t
9753 s,@cgiprograms@,$cgiprograms,;t t
9754 s,@htmldata@,$htmldata,;t t
9755 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
9756 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
9757 s,@webenabled@,$webenabled,;t t
9758 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
9759 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
9760 s,@X_CFLAGS@,$X_CFLAGS,;t t
9761 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9762 s,@X_LIBS@,$X_LIBS,;t t
9763 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9764 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
9765 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
9766 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
9767 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
9768 s,@my_includes@,$my_includes,;t t
9769 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
9770 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
9771 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
9772 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
9773 s,@wxcflags@,$wxcflags,;t t
9774 s,@wxlibs@,$wxlibs,;t t
9775 s,@ctlibs@,$ctlibs,;t t
9776 s,@lamprograms@,$lamprograms,;t t
9777 s,@lamdefs@,$lamdefs,;t t
9778 CEOF
9779
9780 _ACEOF
9781
9782   cat >>$CONFIG_STATUS <<\_ACEOF
9783   # Split the substitutions into bite-sized pieces for seds with
9784   # small command number limits, like on Digital OSF/1 and HP-UX.
9785   ac_max_sed_lines=48
9786   ac_sed_frag=1 # Number of current file.
9787   ac_beg=1 # First line for current file.
9788   ac_end=$ac_max_sed_lines # Line after last line for current file.
9789   ac_more_lines=:
9790   ac_sed_cmds=
9791   while $ac_more_lines; do
9792     if test $ac_beg -gt 1; then
9793       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9794     else
9795       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9796     fi
9797     if test ! -s $tmp/subs.frag; then
9798       ac_more_lines=false
9799     else
9800       # The purpose of the label and of the branching condition is to
9801       # speed up the sed processing (if there are no `@' at all, there
9802       # is no need to browse any of the substitutions).
9803       # These are the two extra sed commands mentioned above.
9804       (echo ':t
9805   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9806       if test -z "$ac_sed_cmds"; then
9807         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9808       else
9809         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9810       fi
9811       ac_sed_frag=`expr $ac_sed_frag + 1`
9812       ac_beg=$ac_end
9813       ac_end=`expr $ac_end + $ac_max_sed_lines`
9814     fi
9815   done
9816   if test -z "$ac_sed_cmds"; then
9817     ac_sed_cmds=cat
9818   fi
9819 fi # test -n "$CONFIG_FILES"
9820
9821 _ACEOF
9822 cat >>$CONFIG_STATUS <<\_ACEOF
9823 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9824   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9825   case $ac_file in
9826   - | *:- | *:-:* ) # input from stdin
9827         cat >$tmp/stdin
9828         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9829         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9830   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9831         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9832   * )   ac_file_in=$ac_file.in ;;
9833   esac
9834
9835   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9836   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9837 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9838          X"$ac_file" : 'X\(//\)[^/]' \| \
9839          X"$ac_file" : 'X\(//\)$' \| \
9840          X"$ac_file" : 'X\(/\)' \| \
9841          .     : '\(.\)' 2>/dev/null ||
9842 echo X"$ac_file" |
9843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9844           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9845           /^X\(\/\/\)$/{ s//\1/; q; }
9846           /^X\(\/\).*/{ s//\1/; q; }
9847           s/.*/./; q'`
9848   { case "$ac_dir" in
9849   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9850   *)                      as_incr_dir=.;;
9851 esac
9852 as_dummy="$ac_dir"
9853 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9854   case $as_mkdir_dir in
9855     # Skip DOS drivespec
9856     ?:) as_incr_dir=$as_mkdir_dir ;;
9857     *)
9858       as_incr_dir=$as_incr_dir/$as_mkdir_dir
9859       test -d "$as_incr_dir" ||
9860         mkdir "$as_incr_dir" ||
9861         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9862 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9863    { (exit 1); exit 1; }; }
9864     ;;
9865   esac
9866 done; }
9867
9868   ac_builddir=.
9869
9870 if test "$ac_dir" != .; then
9871   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9872   # A "../" for each directory in $ac_dir_suffix.
9873   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9874 else
9875   ac_dir_suffix= ac_top_builddir=
9876 fi
9877
9878 case $srcdir in
9879   .)  # No --srcdir option.  We are building in place.
9880     ac_srcdir=.
9881     if test -z "$ac_top_builddir"; then
9882        ac_top_srcdir=.
9883     else
9884        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9885     fi ;;
9886   [\\/]* | ?:[\\/]* )  # Absolute path.
9887     ac_srcdir=$srcdir$ac_dir_suffix;
9888     ac_top_srcdir=$srcdir ;;
9889   *) # Relative path.
9890     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9891     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9892 esac
9893 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9894 # absolute.
9895 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9896 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9897 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9898 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9899
9900
9901   case $INSTALL in
9902   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9903   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9904   esac
9905
9906   if test x"$ac_file" != x-; then
9907     { echo "$as_me:$LINENO: creating $ac_file" >&5
9908 echo "$as_me: creating $ac_file" >&6;}
9909     rm -f "$ac_file"
9910   fi
9911   # Let's still pretend it is `configure' which instantiates (i.e., don't
9912   # use $as_me), people would be surprised to read:
9913   #    /* config.h.  Generated by config.status.  */
9914   if test x"$ac_file" = x-; then
9915     configure_input=
9916   else
9917     configure_input="$ac_file.  "
9918   fi
9919   configure_input=$configure_input"Generated from `echo $ac_file_in |
9920                                      sed 's,.*/,,'` by configure."
9921
9922   # First look for the input files in the build tree, otherwise in the
9923   # src tree.
9924   ac_file_inputs=`IFS=:
9925     for f in $ac_file_in; do
9926       case $f in
9927       -) echo $tmp/stdin ;;
9928       [\\/$]*)
9929          # Absolute (can't be DOS-style, as IFS=:)
9930          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9931 echo "$as_me: error: cannot find input file: $f" >&2;}
9932    { (exit 1); exit 1; }; }
9933          echo $f;;
9934       *) # Relative
9935          if test -f "$f"; then
9936            # Build tree
9937            echo $f
9938          elif test -f "$srcdir/$f"; then
9939            # Source tree
9940            echo $srcdir/$f
9941          else
9942            # /dev/null tree
9943            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9944 echo "$as_me: error: cannot find input file: $f" >&2;}
9945    { (exit 1); exit 1; }; }
9946          fi;;
9947       esac
9948     done` || { (exit 1); exit 1; }
9949 _ACEOF
9950 cat >>$CONFIG_STATUS <<_ACEOF
9951   sed "$ac_vpsub
9952 $extrasub
9953 _ACEOF
9954 cat >>$CONFIG_STATUS <<\_ACEOF
9955 :t
9956 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9957 s,@configure_input@,$configure_input,;t t
9958 s,@srcdir@,$ac_srcdir,;t t
9959 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9960 s,@top_srcdir@,$ac_top_srcdir,;t t
9961 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9962 s,@builddir@,$ac_builddir,;t t
9963 s,@abs_builddir@,$ac_abs_builddir,;t t
9964 s,@top_builddir@,$ac_top_builddir,;t t
9965 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9966 s,@INSTALL@,$ac_INSTALL,;t t
9967 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9968   rm -f $tmp/stdin
9969   if test x"$ac_file" != x-; then
9970     mv $tmp/out $ac_file
9971   else
9972     cat $tmp/out
9973     rm -f $tmp/out
9974   fi
9975
9976 done
9977 _ACEOF
9978 cat >>$CONFIG_STATUS <<\_ACEOF
9979
9980 #
9981 # CONFIG_HEADER section.
9982 #
9983
9984 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9985 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9986 #
9987 # ac_d sets the value in "#define NAME VALUE" lines.
9988 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
9989 ac_dB='[        ].*$,\1#\2'
9990 ac_dC=' '
9991 ac_dD=',;t'
9992 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9993 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9994 ac_uB='$,\1#\2define\3'
9995 ac_uC=' '
9996 ac_uD=',;t'
9997
9998 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9999   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10000   case $ac_file in
10001   - | *:- | *:-:* ) # input from stdin
10002         cat >$tmp/stdin
10003         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10004         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10005   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10006         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10007   * )   ac_file_in=$ac_file.in ;;
10008   esac
10009
10010   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10011 echo "$as_me: creating $ac_file" >&6;}
10012
10013   # First look for the input files in the build tree, otherwise in the
10014   # src tree.
10015   ac_file_inputs=`IFS=:
10016     for f in $ac_file_in; do
10017       case $f in
10018       -) echo $tmp/stdin ;;
10019       [\\/$]*)
10020          # Absolute (can't be DOS-style, as IFS=:)
10021          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10022 echo "$as_me: error: cannot find input file: $f" >&2;}
10023    { (exit 1); exit 1; }; }
10024          echo $f;;
10025       *) # Relative
10026          if test -f "$f"; then
10027            # Build tree
10028            echo $f
10029          elif test -f "$srcdir/$f"; then
10030            # Source tree
10031            echo $srcdir/$f
10032          else
10033            # /dev/null tree
10034            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10035 echo "$as_me: error: cannot find input file: $f" >&2;}
10036    { (exit 1); exit 1; }; }
10037          fi;;
10038       esac
10039     done` || { (exit 1); exit 1; }
10040   # Remove the trailing spaces.
10041   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
10042
10043 _ACEOF
10044
10045 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10046 # `conftest.undefs', that substitutes the proper values into
10047 # config.h.in to produce config.h.  The first handles `#define'
10048 # templates, and the second `#undef' templates.
10049 # And first: Protect against being on the right side of a sed subst in
10050 # config.status.  Protect against being in an unquoted here document
10051 # in config.status.
10052 rm -f conftest.defines conftest.undefs
10053 # Using a here document instead of a string reduces the quoting nightmare.
10054 # Putting comments in sed scripts is not portable.
10055 #
10056 # `end' is used to avoid that the second main sed command (meant for
10057 # 0-ary CPP macros) applies to n-ary macro definitions.
10058 # See the Autoconf documentation for `clear'.
10059 cat >confdef2sed.sed <<\_ACEOF
10060 s/[\\&,]/\\&/g
10061 s,[\\$`],\\&,g
10062 t clear
10063 : clear
10064 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10065 t end
10066 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10067 : end
10068 _ACEOF
10069 # If some macros were called several times there might be several times
10070 # the same #defines, which is useless.  Nevertheless, we may not want to
10071 # sort them, since we want the *last* AC-DEFINE to be honored.
10072 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10073 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10074 rm -f confdef2sed.sed
10075
10076 # This sed command replaces #undef with comments.  This is necessary, for
10077 # example, in the case of _POSIX_SOURCE, which is predefined and required
10078 # on some systems where configure will not decide to define it.
10079 cat >>conftest.undefs <<\_ACEOF
10080 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10081 _ACEOF
10082
10083 # Break up conftest.defines because some shells have a limit on the size
10084 # of here documents, and old seds have small limits too (100 cmds).
10085 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10086 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10087 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10088 echo '  :' >>$CONFIG_STATUS
10089 rm -f conftest.tail
10090 while grep . conftest.defines >/dev/null
10091 do
10092   # Write a limited-size here document to $tmp/defines.sed.
10093   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10094   # Speed up: don't consider the non `#define' lines.
10095   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
10096   # Work around the forget-to-reset-the-flag bug.
10097   echo 't clr' >>$CONFIG_STATUS
10098   echo ': clr' >>$CONFIG_STATUS
10099   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10100   echo 'CEOF
10101   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10102   rm -f $tmp/in
10103   mv $tmp/out $tmp/in
10104 ' >>$CONFIG_STATUS
10105   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10106   rm -f conftest.defines
10107   mv conftest.tail conftest.defines
10108 done
10109 rm -f conftest.defines
10110 echo '  fi # egrep' >>$CONFIG_STATUS
10111 echo >>$CONFIG_STATUS
10112
10113 # Break up conftest.undefs because some shells have a limit on the size
10114 # of here documents, and old seds have small limits too (100 cmds).
10115 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10116 rm -f conftest.tail
10117 while grep . conftest.undefs >/dev/null
10118 do
10119   # Write a limited-size here document to $tmp/undefs.sed.
10120   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10121   # Speed up: don't consider the non `#undef'
10122   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10123   # Work around the forget-to-reset-the-flag bug.
10124   echo 't clr' >>$CONFIG_STATUS
10125   echo ': clr' >>$CONFIG_STATUS
10126   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10127   echo 'CEOF
10128   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10129   rm -f $tmp/in
10130   mv $tmp/out $tmp/in
10131 ' >>$CONFIG_STATUS
10132   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10133   rm -f conftest.undefs
10134   mv conftest.tail conftest.undefs
10135 done
10136 rm -f conftest.undefs
10137
10138 cat >>$CONFIG_STATUS <<\_ACEOF
10139   # Let's still pretend it is `configure' which instantiates (i.e., don't
10140   # use $as_me), people would be surprised to read:
10141   #    /* config.h.  Generated by config.status.  */
10142   if test x"$ac_file" = x-; then
10143     echo "/* Generated by configure.  */" >$tmp/config.h
10144   else
10145     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10146   fi
10147   cat $tmp/in >>$tmp/config.h
10148   rm -f $tmp/in
10149   if test x"$ac_file" != x-; then
10150     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10151       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10152 echo "$as_me: $ac_file is unchanged" >&6;}
10153     else
10154       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10156          X"$ac_file" : 'X\(//\)[^/]' \| \
10157          X"$ac_file" : 'X\(//\)$' \| \
10158          X"$ac_file" : 'X\(/\)' \| \
10159          .     : '\(.\)' 2>/dev/null ||
10160 echo X"$ac_file" |
10161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10162           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10163           /^X\(\/\/\)$/{ s//\1/; q; }
10164           /^X\(\/\).*/{ s//\1/; q; }
10165           s/.*/./; q'`
10166       { case "$ac_dir" in
10167   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10168   *)                      as_incr_dir=.;;
10169 esac
10170 as_dummy="$ac_dir"
10171 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10172   case $as_mkdir_dir in
10173     # Skip DOS drivespec
10174     ?:) as_incr_dir=$as_mkdir_dir ;;
10175     *)
10176       as_incr_dir=$as_incr_dir/$as_mkdir_dir
10177       test -d "$as_incr_dir" ||
10178         mkdir "$as_incr_dir" ||
10179         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10180 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10181    { (exit 1); exit 1; }; }
10182     ;;
10183   esac
10184 done; }
10185
10186       rm -f $ac_file
10187       mv $tmp/config.h $ac_file
10188     fi
10189   else
10190     cat $tmp/config.h
10191     rm -f $tmp/config.h
10192   fi
10193 done
10194 _ACEOF
10195 cat >>$CONFIG_STATUS <<\_ACEOF
10196
10197 #
10198 # CONFIG_COMMANDS section.
10199 #
10200 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10201   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10202   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10203   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10204 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10205          X"$ac_dest" : 'X\(//\)[^/]' \| \
10206          X"$ac_dest" : 'X\(//\)$' \| \
10207          X"$ac_dest" : 'X\(/\)' \| \
10208          .     : '\(.\)' 2>/dev/null ||
10209 echo X"$ac_dest" |
10210     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10211           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10212           /^X\(\/\/\)$/{ s//\1/; q; }
10213           /^X\(\/\).*/{ s//\1/; q; }
10214           s/.*/./; q'`
10215   ac_builddir=.
10216
10217 if test "$ac_dir" != .; then
10218   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10219   # A "../" for each directory in $ac_dir_suffix.
10220   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10221 else
10222   ac_dir_suffix= ac_top_builddir=
10223 fi
10224
10225 case $srcdir in
10226   .)  # No --srcdir option.  We are building in place.
10227     ac_srcdir=.
10228     if test -z "$ac_top_builddir"; then
10229        ac_top_srcdir=.
10230     else
10231        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10232     fi ;;
10233   [\\/]* | ?:[\\/]* )  # Absolute path.
10234     ac_srcdir=$srcdir$ac_dir_suffix;
10235     ac_top_srcdir=$srcdir ;;
10236   *) # Relative path.
10237     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10238     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10239 esac
10240 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10241 # absolute.
10242 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10243 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10244 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10245 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10246
10247
10248   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10249 echo "$as_me: executing $ac_dest commands" >&6;}
10250   case $ac_dest in
10251     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10252   esac
10253 done
10254 _ACEOF
10255
10256 cat >>$CONFIG_STATUS <<\_ACEOF
10257
10258 { (exit 0); exit 0; }
10259 _ACEOF
10260 chmod +x $CONFIG_STATUS
10261 ac_clean_files=$ac_clean_files_save
10262
10263
10264 # configure is writing to config.log, and then calls config.status.
10265 # config.status does its own redirection, appending to config.log.
10266 # Unfortunately, on DOS this fails, as config.log is still kept open
10267 # by configure, so config.status won't be able to write to it; its
10268 # output is simply discarded.  So we exec the FD to /dev/null,
10269 # effectively closing config.log, so it can be properly (re)opened and
10270 # appended to by config.status.  When coming back to configure, we
10271 # need to make the FD available again.
10272 if test "$no_create" != yes; then
10273   ac_cs_success=:
10274   exec 5>/dev/null
10275   $SHELL $CONFIG_STATUS || ac_cs_success=false
10276   exec 5>>config.log
10277   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10278   # would make configure fail if this is the last instruction.
10279   $ac_cs_success || { (exit 1); exit 1; }
10280 fi
10281