/[ascend]/trunk/base/autotools/configure
ViewVC logotype

Contents of /trunk/base/autotools/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 569 - (show annotations) (download)
Tue May 9 00:10:03 2006 UTC (14 years, 11 months ago) by johnpye
File size: 274784 byte(s)
Changing from 'tcltk98' to 'tcltk', in progress.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="../generic/compiler/ascParse.y"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS RANLIB ac_ct_RANLIB LN_S SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP DEBUG_LIBS EGREP YACC parser_src LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS TCLINCLUDE NOTCLCONFIG TCLCONFIG TCLLIB TCLDYNAMICLINKING TKINCLUDE TKLIB TKDYNAMICLINKING F77 BLASLIB LPAKLIB LSODLIB DEFAULT_ASCENDLIBRARY ASCEND_DEFAULTLIBRARY ascpwd fullpathsrcdir asc_include scanner_src typer_src MATH_LIBS X11_INCLUDES X11_LIBRARIES X11_RUN_PATH X11_EXTRA_LIBS DL_LIBS LD_FLAGS LD_SEARCH_FLAGS SHLIB_CFLAGS SHLIB_LD SHLIB_LD_LIBS SHLIB_SUFFIX ASC_LIB_SUFFIX TK_LIB TK_HDR TKTABLE_LIB ASC_TK_LIBRARY ASC_TCL_LIBRARY HAVE_TKTABLE asc_subdirs F77LIBS make_blaslib make_lpaklib make_lsodlib HAVE_LSOD tkdir_root tkdir_topbuilddir models_dir_root models_topbuilddir help_dir_root help_topbuilddir LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649 done
650
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671 do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724 else
725 ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
830
831 cat <<\_ACEOF
832
833 X features:
834 --x-includes=DIR X include files are in DIR
835 --x-libraries=DIR X library files are in DIR
836
837 System types:
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844
845 cat <<\_ACEOF
846
847 Optional Features:
848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 --enable-optimization optimize the C code while building ascend
851 --enable-dynamic-packages
852 Enable dynamic linking of ASCEND external packages
853 (default is YES for Linux, Cygwin and MinGW; NO for
854 any other platform)
855
856 --enable-relation-debugging
857 Enable debug output for relation compilation
858 (default is NO)
859
860 --enable-compiler-timing
861 Enable timing of the compiler (default is NO)
862
863
864 Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --without-yacc do not generate parser from yacc file
868 --with-x use the X Window System
869 --without-tcl Disable Tcl
870 --with-tclconfig=path Set directory location of tclConfig.sh
871 --with-tcl=path Set location of Tcl package
872 --with-tclincl=path Set location of Tcl include directory
873 --with-tcllib=path Set location of Tcl library directory
874 --without-tk Disable Tk
875 --with-tkconfig=path Set directory location of tkConfig.sh
876 --with-tk=path Set location of Tk package
877 --with-tkincl=path Set location of Tk include directory
878 --with-tklib=path Set location of Tk library directory
879 Fortran compiler and libraries:
880 --with-fortran=F77,F77LIBS
881 The location of your Fortran compiler and its
882 library files. For example, under SunOS:
883 --with-fortran='f77,-L/usr/lang/lib -lF77 -lM77'
884 To specify only the compiler or libraries, leave off
885 whatever is not needed:
886 --with-fortran=',-L/usr/lang/lib -lF77 -lM77'
887 Use '--without-fortran' to not link against
888 any Fortran libraries
889 --with-blas=BLASLIB The full path to the blas library.
890 Use '--with-blas=build' to build the blas library
891 from the sources that come with the distribution.
892 --with-linpack=LPAKLIB The full path to the linpack library.
893 Use '--with-linpack=build' to build the library
894 from the sources that come with the distribution.
895 --with-lsod=LSODLIB The full path to the lsod library.
896 Use '--with-lsod=build' to build the lsod library
897 from the sources that come with the distribution.
898 Generation of Makefiles:
899 --without-tkdir do not generate Makefiles in the TK subdir
900 --without-models do not generate Makefiles in the models subdir
901
902 Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
909 CPP C preprocessor
910
911 Use these variables to override the choices made by `configure' or to help
912 it to find libraries and programs with nonstandard names/locations.
913
914 _ACEOF
915 fi
916
917 if test "$ac_init_help" = "recursive"; then
918 # If there are subdirs, report their specific --help.
919 ac_popdir=`pwd`
920 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921 test -d $ac_dir || continue
922 ac_builddir=.
923
924 if test "$ac_dir" != .; then
925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926 # A "../" for each directory in $ac_dir_suffix.
927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928 else
929 ac_dir_suffix= ac_top_builddir=
930 fi
931
932 case $srcdir in
933 .) # No --srcdir option. We are building in place.
934 ac_srcdir=.
935 if test -z "$ac_top_builddir"; then
936 ac_top_srcdir=.
937 else
938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939 fi ;;
940 [\\/]* | ?:[\\/]* ) # Absolute path.
941 ac_srcdir=$srcdir$ac_dir_suffix;
942 ac_top_srcdir=$srcdir ;;
943 *) # Relative path.
944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
946 esac
947 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
948 # absolute.
949 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
950 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
951 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
952 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
953
954 cd $ac_dir
955 # Check for guested configure; otherwise get Cygnus style configure.
956 if test -f $ac_srcdir/configure.gnu; then
957 echo
958 $SHELL $ac_srcdir/configure.gnu --help=recursive
959 elif test -f $ac_srcdir/configure; then
960 echo
961 $SHELL $ac_srcdir/configure --help=recursive
962 elif test -f $ac_srcdir/configure.ac ||
963 test -f $ac_srcdir/configure.in; then
964 echo
965 $ac_configure --help
966 else
967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 fi
969 cd $ac_popdir
970 done
971 fi
972
973 test -n "$ac_init_help" && exit 0
974 if $ac_init_version; then
975 cat <<\_ACEOF
976
977 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
978 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
981 _ACEOF
982 exit 0
983 fi
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
988
989 It was created by $as_me, which was
990 generated by GNU Autoconf 2.57. Invocation command line was
991
992 $ $0 $@
993
994 _ACEOF
995 {
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1000
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1017
1018 _ASUNAME
1019
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1022 do
1023 IFS=$as_save_IFS
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1026 done
1027
1028 } >&5
1029
1030 cat >&5 <<_ACEOF
1031
1032
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1036
1037 _ACEOF
1038
1039
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_configure_args=
1046 ac_configure_args0=
1047 ac_configure_args1=
1048 ac_sep=
1049 ac_must_keep_next=false
1050 for ac_pass in 1 2
1051 do
1052 for ac_arg
1053 do
1054 case $ac_arg in
1055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 continue ;;
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 esac
1062 case $ac_pass in
1063 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 2)
1065 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true; then
1067 ac_must_keep_next=false # Got value, back to normal.
1068 else
1069 case $ac_arg in
1070 *=* | --config-cache | -C | -disable-* | --disable-* \
1071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073 | -with-* | --with-* | -without-* | --without-* | --x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 esac
1077 ;;
1078 -* ) ac_must_keep_next=true ;;
1079 esac
1080 fi
1081 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1083 ac_sep=" "
1084 ;;
1085 esac
1086 done
1087 done
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log. We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097 # Save into config.log some information that might help in debugging.
1098 {
1099 echo
1100
1101 cat <<\_ASBOX
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1105 _ASBOX
1106 echo
1107 # The following way of writing the cache mishandles newlines in values,
1108 {
1109 (set) 2>&1 |
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 *ac_space=\ *)
1112 sed -n \
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 ;;
1116 *)
1117 sed -n \
1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1119 ;;
1120 esac;
1121 }
1122 echo
1123
1124 cat <<\_ASBOX
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1128 _ASBOX
1129 echo
1130 for ac_var in $ac_subst_vars
1131 do
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1134 done | sort
1135 echo
1136
1137 if test -n "$ac_subst_files"; then
1138 cat <<\_ASBOX
1139 ## ------------- ##
1140 ## Output files. ##
1141 ## ------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_files
1145 do
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1150 fi
1151
1152 if test -s confdefs.h; then
1153 cat <<\_ASBOX
1154 ## ----------- ##
1155 ## confdefs.h. ##
1156 ## ----------- ##
1157 _ASBOX
1158 echo
1159 sed "/^$/d" confdefs.h | sort
1160 echo
1161 fi
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1165 } >&5
1166 rm -f core core.* *.core &&
1167 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 exit $exit_status
1169 ' 0
1170 for ac_signal in 1 2 13 15; do
1171 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 done
1173 ac_signal=0
1174
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 echo >confdefs.h
1179
1180 # Predefined preprocessor variables.
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 _ACEOF
1205
1206
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE; then
1211 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 else
1213 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214 fi
1215 fi
1216 for ac_site_file in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's/^/| /' "$ac_site_file" >&5
1221 . "$ac_site_file"
1222 fi
1223 done
1224
1225
1226 # Check that the precious variables saved in the cache have kept the same
1227 # value.
1228 ac_cache_corrupted=false
1229 for ac_var in `(set) 2>&1 |
1230 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232 eval ac_new_set=\$ac_env_${ac_var}_set
1233 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234 eval ac_new_val="\$ac_env_${ac_var}_value"
1235 case $ac_old_set,$ac_new_set in
1236 set,)
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1239 ac_cache_corrupted=: ;;
1240 ,set)
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1244 ,);;
1245 *)
1246 if test "x$ac_old_val" != "x$ac_new_val"; then
1247 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1248 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1249 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1250 echo "$as_me: former value: $ac_old_val" >&2;}
1251 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1252 echo "$as_me: current value: $ac_new_val" >&2;}
1253 ac_cache_corrupted=:
1254 fi;;
1255 esac
1256 # Pass precious variables to config.status.
1257 if test "$ac_new_set" = set; then
1258 case $ac_new_val in
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1261 *) ac_arg=$ac_var=$ac_new_val ;;
1262 esac
1263 case " $ac_configure_args " in
1264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1265 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1266 esac
1267 fi
1268 done
1269 if $ac_cache_corrupted; then
1270 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1273 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274 { (exit 1); exit 1; }; }
1275 fi
1276
1277 ac_ext=c
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303 #--------------------------------------------------------------------
1304 # CVS Most Recent Revision Data
1305 # Put this data after AC_INIT since we want this information
1306 # to also appear in configure and autoconf, when creating
1307 # configure, strips all comments that appear in configure.in
1308 # before AC_INIT
1309 # $Revision: 1.38 $
1310 # $Date: 2003/11/23 19:36:39 $
1311 # $Author: ballan $
1312 # $Source: /afs/cs.cmu.edu/project/ascend/Repository/configure.in,v $
1313 #--------------------------------------------------------------------
1314
1315
1316 #--------------------------------------------------------------------
1317 # Where configure should look for files it needs.
1318 #--------------------------------------------------------------------
1319 ac_aux_dir=
1320 for ac_dir in config $srcdir/config; do
1321 if test -f $ac_dir/install-sh; then
1322 ac_aux_dir=$ac_dir
1323 ac_install_sh="$ac_aux_dir/install-sh -c"
1324 break
1325 elif test -f $ac_dir/install.sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install.sh -c"
1328 break
1329 elif test -f $ac_dir/shtool; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/shtool install -c"
1332 break
1333 fi
1334 done
1335 if test -z "$ac_aux_dir"; then
1336 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1337 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1338 { (exit 1); exit 1; }; }
1339 fi
1340 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1341 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1342 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343
1344
1345 #--------------------------------------------------------------------
1346 # Set the output variables prefix and exec_prefix that
1347 # determine where things will be installed.
1348 #--------------------------------------------------------------------
1349 if test "${prefix}" = "NONE"; then
1350 prefix=/usr/local
1351 fi
1352 if test "${exec_prefix}" = "NONE"; then
1353 exec_prefix=$prefix
1354 fi
1355
1356
1357 #--------------------------------------------------------------------
1358 # For the Fortran support libraries and the TCL/TK libraries
1359 # and header files, we unfortunately need the full path to
1360 # these files. The problem with having the full path is that
1361 # if the user moves the source tree, things will break unless
1362 # the user re-runs configure.
1363 #--------------------------------------------------------------------
1364
1365 #--------------------------------------------------------------------
1366 ##AWW
1367 ##AWW We put the .o files when compiling into a tree structure
1368 ##AWW relative to the directory in which we currently reside,
1369 ##AWW while the .c and .h files are in a similar tree structure
1370 ##AWW relative to the configure instruction we invoke. This
1371 ##AWW allows one to have separate .o files in their own tree when
1372 ##AWW compiling for different operating systems.
1373 ##AWW
1374 ##AWW Example 1 (same directories)
1375 ##AWW Current directory one is in: /home/me/trunk/base/unixAC213
1376 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1377 ##AWW Command to invoke configure: ./configure
1378 ##AWW $ascpwd will be: /home/me/trunk/base/unixAC213
1379 ##AWW $srcdir will be: .
1380 ##AWW
1381 ##AWW Example 2 (different directories, abs path for command)
1382 ##AWW Current directory one is in: /home/me/trunk/base/newTree
1383 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1384 ##AWW Command to invoke configure: /home/me/trunk/base/unixAC213/configure
1385 ##AWW $ascpwd will be: /home/me/trunk/base/newTree
1386 ##AWW $srcdir will be: /home/me/trunk/base/unixAC213
1387 ##AWW
1388 ##AWW Example 3 (different directories, rel path for command)
1389 ##AWW Same as Example 2
1390 ##AWW Command to invoke configure: ../unixAC213/configure
1391 ##AWW $ascpwd will be: /home/me/trunk/base/newTree (same as in Example 2)
1392 ##AWW $srcdir will be: ../unixAC213
1393 ##AWW
1394 ##AWW Key elements of the source tree are:
1395 ##AWW code/trunk/trunk/base/unixAC213/configure
1396 ##AWW code/trunk/trunk/base/generic
1397 ##AWW code/trunk/tcltk
1398 ##AWW where $srcdir is pointing to /home/me/trunk/base/unixAC213, the folder
1399 ##AWW containing "configure"
1400 ##AWW
1401 ##AWW Configure is located at:
1402 ##AWW $srcdir/configure
1403 ##AWW while the .c/.h files one wants are in:
1404 ##AWW $srcdir/../generic/compiler
1405 ##AWW $srcdir/../generic/general
1406 ##AWW $srcdir/../generic/packages
1407 ##AWW $srcdir/../generic/solver
1408 ##AWW $srcdir/../generic/utilities
1409 ##AWW $srcdir/../../tcltk/generic/interface
1410 ##AWW
1411 ##AWW Each of these directories contain Makefiles and possible
1412 ##AWW need to find .h files in the other directories. For example
1413 ##AWW the include statements are always of the form
1414 ##AWW #include compiler/slv3.h or
1415 ##AWW #include interface/SlvProc.h
1416 ##AWW
1417 ##AWW A safe include path should assume one is a directory with any
1418 ##AWW of these .h and .c files and one needs to find a .h file in
1419 ##AWW any other of them. The following paths should do it.
1420 ##AWW
1421 ##AWW If in compiler, general, packages, solver, utilities
1422 ##AWW .. for general, packages, etc
1423 ##AWW ../../../tcltk/generic for interface
1424 ##AWW If in interface
1425 ##AWW .. for interface
1426 ##AWW ../../../base/generic for compiler, general, ..
1427 ##AWW
1428 #--------------------------------------------------------------------
1429 # The asc_include variable is (directory) path to the ascend4
1430 # SOURCE directory relative to the immediate subdirectories of
1431 # the ascend4 OBJECT directory. --rewrite - not clear.
1432 #AWW To compile a new ASCEND executable, one should move into the
1433 #AWW directory in which one wants the ASCEND object/executable
1434 #AWW to reside (call this objTree) and from there run
1435 #AWW ../base/unixAC213/configure.
1436 #AWW In the following code asc_include is set to the path from
1437 #JP I think that the current recommendation is to install from
1438 #JP run ./configure (ie from this directory)
1439
1440 ascpwd=`pwd`
1441 fullpathsrcdir=`cd $srcdir ; pwd`
1442
1443 case "$srcdir" in
1444 .)
1445 asc_include="../$srcdir"
1446 ;;
1447 /*)
1448 asc_include="$srcdir/../generic"
1449 ;;
1450 *)
1451 asc_include="$srcdir/../generic"
1452 ;;
1453 esac
1454
1455
1456 #--------------------------------------------------------------------
1457 # Do basic checks to determine
1458 # * if we have `ranlib'
1459 # * if we can create symbolic links
1460 # * if `make' sets the MAKE macro
1461 # * a bsd-compatible `install' program
1462 # If we use the install-sh script that comes with configure,
1463 # prefix it with the current directory so it'll work in
1464 # subdirectories. Unfortunately, it won't work if the user
1465 # moves the source tree.
1466 #--------------------------------------------------------------------
1467 if test -n "$ac_tool_prefix"; then
1468 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1469 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1470 echo "$as_me:$LINENO: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_prog_RANLIB+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 else
1475 if test -n "$RANLIB"; then
1476 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1477 else
1478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479 for as_dir in $PATH
1480 do
1481 IFS=$as_save_IFS
1482 test -z "$as_dir" && as_dir=.
1483 for ac_exec_ext in '' $ac_executable_extensions; do
1484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1487 break 2
1488 fi
1489 done
1490 done
1491
1492 fi
1493 fi
1494 RANLIB=$ac_cv_prog_RANLIB
1495 if test -n "$RANLIB"; then
1496 echo "$as_me:$LINENO: result: $RANLIB" >&5
1497 echo "${ECHO_T}$RANLIB" >&6
1498 else
1499 echo "$as_me:$LINENO: result: no" >&5
1500 echo "${ECHO_T}no" >&6
1501 fi
1502
1503 fi
1504 if test -z "$ac_cv_prog_RANLIB"; then
1505 ac_ct_RANLIB=$RANLIB
1506 # Extract the first word of "ranlib", so it can be a program name with args.
1507 set dummy ranlib; ac_word=$2
1508 echo "$as_me:$LINENO: checking for $ac_word" >&5
1509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1510 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1512 else
1513 if test -n "$ac_ct_RANLIB"; then
1514 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1515 else
1516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1517 for as_dir in $PATH
1518 do
1519 IFS=$as_save_IFS
1520 test -z "$as_dir" && as_dir=.
1521 for ac_exec_ext in '' $ac_executable_extensions; do
1522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1523 ac_cv_prog_ac_ct_RANLIB="ranlib"
1524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525 break 2
1526 fi
1527 done
1528 done
1529
1530 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1531 fi
1532 fi
1533 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1534 if test -n "$ac_ct_RANLIB"; then
1535 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1536 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1537 else
1538 echo "$as_me:$LINENO: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1540 fi
1541
1542 RANLIB=$ac_ct_RANLIB
1543 else
1544 RANLIB="$ac_cv_prog_RANLIB"
1545 fi
1546
1547 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1548 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1549 LN_S=$as_ln_s
1550 if test "$LN_S" = "ln -s"; then
1551 echo "$as_me:$LINENO: result: yes" >&5
1552 echo "${ECHO_T}yes" >&6
1553 else
1554 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1555 echo "${ECHO_T}no, using $LN_S" >&6
1556 fi
1557
1558 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1559 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1560 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1561 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 cat >conftest.make <<\_ACEOF
1565 all:
1566 @echo 'ac_maketemp="$(MAKE)"'
1567 _ACEOF
1568 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1569 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1570 if test -n "$ac_maketemp"; then
1571 eval ac_cv_prog_make_${ac_make}_set=yes
1572 else
1573 eval ac_cv_prog_make_${ac_make}_set=no
1574 fi
1575 rm -f conftest.make
1576 fi
1577 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1578 echo "$as_me:$LINENO: result: yes" >&5
1579 echo "${ECHO_T}yes" >&6
1580 SET_MAKE=
1581 else
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1584 SET_MAKE="MAKE=${MAKE-make}"
1585 fi
1586
1587 # Find a good install program. We prefer a C program (faster),
1588 # so one script is as good as another. But avoid the broken or
1589 # incompatible versions:
1590 # SysV /etc/install, /usr/sbin/install
1591 # SunOS /usr/etc/install
1592 # IRIX /sbin/install
1593 # AIX /bin/install
1594 # AmigaOS /C/install, which installs bootblocks on floppy discs
1595 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1596 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1597 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1598 # ./install, which can be erroneously created by make from ./install.sh.
1599 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1600 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1601 if test -z "$INSTALL"; then
1602 if test "${ac_cv_path_install+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1607 do
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 # Account for people who put trailing slashes in PATH elements.
1611 case $as_dir/ in
1612 ./ | .// | /cC/* | \
1613 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1614 /usr/ucb/* ) ;;
1615 *)
1616 # OSF1 and SCO ODT 3.0 have their own names for install.
1617 # Don't use installbsd from OSF since it installs stuff as root
1618 # by default.
1619 for ac_prog in ginstall scoinst install; do
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1622 if test $ac_prog = install &&
1623 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1624 # AIX install. It has an incompatible calling convention.
1625 :
1626 elif test $ac_prog = install &&
1627 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1628 # program-specific install script used by HP pwplus--don't use.
1629 :
1630 else
1631 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1632 break 3
1633 fi
1634 fi
1635 done
1636 done
1637 ;;
1638 esac
1639 done
1640
1641
1642 fi
1643 if test "${ac_cv_path_install+set}" = set; then
1644 INSTALL=$ac_cv_path_install
1645 else
1646 # As a last resort, use the slow shell script. We don't cache a
1647 # path for INSTALL within a source directory, because that will
1648 # break other packages using the cache if that directory is
1649 # removed, or if the path is relative.
1650 INSTALL=$ac_install_sh
1651 fi
1652 fi
1653 echo "$as_me:$LINENO: result: $INSTALL" >&5
1654 echo "${ECHO_T}$INSTALL" >&6
1655
1656 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1657 # It thinks the first close brace ends the variable substitution.
1658 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1659
1660 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1661
1662 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1663
1664
1665 case "X$INSTALL" in
1666 X/*)
1667 ;;
1668 *)
1669 INSTALL="$ascpwd/$INSTALL"
1670 ;;
1671 esac
1672
1673
1674 #--------------------------------------------------------------------
1675 # Get the host type for various checks along the way
1676 #--------------------------------------------------------------------
1677 # Make sure we can run config.sub.
1678 $ac_config_sub sun4 >/dev/null 2>&1 ||
1679 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1680 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1681 { (exit 1); exit 1; }; }
1682
1683 echo "$as_me:$LINENO: checking build system type" >&5
1684 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1685 if test "${ac_cv_build+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688 ac_cv_build_alias=$build_alias
1689 test -z "$ac_cv_build_alias" &&
1690 ac_cv_build_alias=`$ac_config_guess`
1691 test -z "$ac_cv_build_alias" &&
1692 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1693 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1694 { (exit 1); exit 1; }; }
1695 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1696 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1697 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1698 { (exit 1); exit 1; }; }
1699
1700 fi
1701 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1702 echo "${ECHO_T}$ac_cv_build" >&6
1703 build=$ac_cv_build
1704 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1705 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1706 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1707
1708
1709 echo "$as_me:$LINENO: checking host system type" >&5
1710 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1711 if test "${ac_cv_host+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714 ac_cv_host_alias=$host_alias
1715 test -z "$ac_cv_host_alias" &&
1716 ac_cv_host_alias=$ac_cv_build_alias
1717 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1718 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1719 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1720 { (exit 1); exit 1; }; }
1721
1722 fi
1723 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1724 echo "${ECHO_T}$ac_cv_host" >&6
1725 host=$ac_cv_host
1726 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1727 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1728 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1729
1730
1731
1732 #--------------------------------------------------------------------
1733 # Check for the C compiler: set CC and CFLAGS.
1734 # If the user does NOT specify `--enable-gcc' on the configure
1735 # command command line, set CC to either the envar CC or `cc'.
1736 # Call AC_PROG_CC which will use the value of CC (perhaps set
1737 # immediately above) or will check for `gcc' and then for `cc'
1738 # if `gcc' is not found.
1739 #
1740 # If we are using GCC, then assume it groks ANSI. Otherwise,
1741 # try to compile a small program using ANSI constructs with
1742 # CC. If this fails, try to locate each of the following:
1743 # c89 xlc acc
1744 # and if successful, see if it compiles an ANSI C program.
1745 # (Doing this in a loop would be ideal, but configure caches
1746 # the result of AC_CHECK_PROG and uses the cached value for
1747 # all but the first pass through the loop. This is also the
1748 # reason we have to use a different variable asc_cc1, asc_cc2
1749 # for each call to AC_CHECK_PROG.
1750 #
1751 # If we do not find an ANSI C compiler, print a warning and
1752 # use the first value of CC we tried.
1753 #--------------------------------------------------------------------
1754 #JP removed the lengthy CC tests, since ANSI C is pretty universal
1755 #JP these days, and GCC can pretty much be assumed if we're using
1756 #JP Autotools.
1757
1758 ac_ext=c
1759 ac_cpp='$CPP $CPPFLAGS'
1760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1763 if test -n "$ac_tool_prefix"; then
1764 for ac_prog in gcc
1765 do
1766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1775 else
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 for as_dir in $PATH
1778 do
1779 IFS=$as_save_IFS
1780 test -z "$as_dir" && as_dir=.
1781 for ac_exec_ext in '' $ac_executable_extensions; do
1782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785 break 2
1786 fi
1787 done
1788 done
1789
1790 fi
1791 fi
1792 CC=$ac_cv_prog_CC
1793 if test -n "$CC"; then
1794 echo "$as_me:$LINENO: result: $CC" >&5
1795 echo "${ECHO_T}$CC" >&6
1796 else
1797 echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1799 fi
1800
1801 test -n "$CC" && break
1802 done
1803 fi
1804 if test -z "$CC"; then
1805 ac_ct_CC=$CC
1806 for ac_prog in gcc
1807 do
1808 # Extract the first word of "$ac_prog", so it can be a program name with args.
1809 set dummy $ac_prog; ac_word=$2
1810 echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 else
1815 if test -n "$ac_ct_CC"; then
1816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1817 else
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 for as_dir in $PATH
1820 do
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825 ac_cv_prog_ac_ct_CC="$ac_prog"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 break 2
1828 fi
1829 done
1830 done
1831
1832 fi
1833 fi
1834 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1835 if test -n "$ac_ct_CC"; then
1836 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1837 echo "${ECHO_T}$ac_ct_CC" >&6
1838 else
1839 echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6
1841 fi
1842
1843 test -n "$ac_ct_CC" && break
1844 done
1845
1846 CC=$ac_ct_CC
1847 fi
1848
1849
1850 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1851 See \`config.log' for more details." >&5
1852 echo "$as_me: error: no acceptable C compiler found in \$PATH
1853 See \`config.log' for more details." >&2;}
1854 { (exit 1); exit 1; }; }
1855
1856 # Provide some information about the compiler.
1857 echo "$as_me:$LINENO:" \
1858 "checking for C compiler version" >&5
1859 ac_compiler=`set X $ac_compile; echo $2`
1860 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1861 (eval $ac_compiler --version </dev/null >&5) 2>&5
1862 ac_status=$?
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); }
1865 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1866 (eval $ac_compiler -v </dev/null >&5) 2>&5
1867 ac_status=$?
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }
1870 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1871 (eval $ac_compiler -V </dev/null >&5) 2>&5
1872 ac_status=$?
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }
1875
1876 cat >conftest.$ac_ext <<_ACEOF
1877 #line $LINENO "configure"
1878 /* confdefs.h. */
1879 _ACEOF
1880 cat confdefs.h >>conftest.$ac_ext
1881 cat >>conftest.$ac_ext <<_ACEOF
1882 /* end confdefs.h. */
1883
1884 int
1885 main ()
1886 {
1887
1888 ;
1889 return 0;
1890 }
1891 _ACEOF
1892 ac_clean_files_save=$ac_clean_files
1893 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1894 # Try to create an executable without -o first, disregard a.out.
1895 # It will help us diagnose broken compilers, and finding out an intuition
1896 # of exeext.
1897 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1898 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1899 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1900 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1901 (eval $ac_link_default) 2>&5
1902 ac_status=$?
1903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904 (exit $ac_status); }; then
1905 # Find the output, starting from the most likely. This scheme is
1906 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1907 # resort.
1908
1909 # Be careful to initialize this variable, since it used to be cached.
1910 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1911 ac_cv_exeext=
1912 # b.out is created by i960 compilers.
1913 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1914 do
1915 test -f "$ac_file" || continue
1916 case $ac_file in
1917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1918 ;;
1919 conftest.$ac_ext )
1920 # This is the source file.
1921 ;;
1922 [ab].out )
1923 # We found the default executable, but exeext='' is most
1924 # certainly right.
1925 break;;
1926 *.* )
1927 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1928 # FIXME: I believe we export ac_cv_exeext for Libtool,
1929 # but it would be cool to find out if it's true. Does anybody
1930 # maintain Libtool? --akim.
1931 export ac_cv_exeext
1932 break;;
1933 * )
1934 break;;
1935 esac
1936 done
1937 else
1938 echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: C compiler cannot create executables
1944 See \`config.log' for more details." >&2;}
1945 { (exit 77); exit 77; }; }
1946 fi
1947
1948 ac_exeext=$ac_cv_exeext
1949 echo "$as_me:$LINENO: result: $ac_file" >&5
1950 echo "${ECHO_T}$ac_file" >&6
1951
1952 # Check the compiler produces executables we can run. If not, either
1953 # the compiler is broken, or we cross compile.
1954 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1955 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1956 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1957 # If not cross compiling, check that we can run a simple program.
1958 if test "$cross_compiling" != yes; then
1959 if { ac_try='./$ac_file'
1960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1961 (eval $ac_try) 2>&5
1962 ac_status=$?
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; }; then
1965 cross_compiling=no
1966 else
1967 if test "$cross_compiling" = maybe; then
1968 cross_compiling=yes
1969 else
1970 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1971 If you meant to cross compile, use \`--host'.
1972 See \`config.log' for more details." >&5
1973 echo "$as_me: error: cannot run C compiled programs.
1974 If you meant to cross compile, use \`--host'.
1975 See \`config.log' for more details." >&2;}
1976 { (exit 1); exit 1; }; }
1977 fi
1978 fi
1979 fi
1980 echo "$as_me:$LINENO: result: yes" >&5
1981 echo "${ECHO_T}yes" >&6
1982
1983 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1984 ac_clean_files=$ac_clean_files_save
1985 # Check the compiler produces executables we can run. If not, either
1986 # the compiler is broken, or we cross compile.
1987 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1988 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1989 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1990 echo "${ECHO_T}$cross_compiling" >&6
1991
1992 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1993 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1995 (eval $ac_link) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; then
1999 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2000 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2001 # work properly (i.e., refer to `conftest.exe'), while it won't with
2002 # `rm'.
2003 for ac_file in conftest.exe conftest conftest.*; do
2004 test -f "$ac_file" || continue
2005 case $ac_file in
2006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2007 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2008 export ac_cv_exeext
2009 break;;
2010 * ) break;;
2011 esac
2012 done
2013 else
2014 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2015 See \`config.log' for more details." >&5
2016 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2017 See \`config.log' for more details." >&2;}
2018 { (exit 1); exit 1; }; }
2019 fi
2020
2021 rm -f conftest$ac_cv_exeext
2022 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2023 echo "${ECHO_T}$ac_cv_exeext" >&6
2024
2025 rm -f conftest.$ac_ext
2026 EXEEXT=$ac_cv_exeext
2027 ac_exeext=$EXEEXT
2028 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2029 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2030 if test "${ac_cv_objext+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 cat >conftest.$ac_ext <<_ACEOF
2034 #line $LINENO "configure"
2035 /* confdefs.h. */
2036 _ACEOF
2037 cat confdefs.h >>conftest.$ac_ext
2038 cat >>conftest.$ac_ext <<_ACEOF
2039 /* end confdefs.h. */
2040
2041 int
2042 main ()
2043 {
2044
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 rm -f conftest.o conftest.obj
2050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051 (eval $ac_compile) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; then
2055 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2056 case $ac_file in
2057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2058 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2059 break;;
2060 esac
2061 done
2062 else
2063 echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2065
2066 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2067 See \`config.log' for more details." >&5
2068 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2069 See \`config.log' for more details." >&2;}
2070 { (exit 1); exit 1; }; }
2071 fi
2072
2073 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2074 fi
2075 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2076 echo "${ECHO_T}$ac_cv_objext" >&6
2077 OBJEXT=$ac_cv_objext
2078 ac_objext=$OBJEXT
2079 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2080 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2081 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084 cat >conftest.$ac_ext <<_ACEOF
2085 #line $LINENO "configure"
2086 /* confdefs.h. */
2087 _ACEOF
2088 cat confdefs.h >>conftest.$ac_ext
2089 cat >>conftest.$ac_ext <<_ACEOF
2090 /* end confdefs.h. */
2091
2092 int
2093 main ()
2094 {
2095 #ifndef __GNUC__
2096 choke me
2097 #endif
2098
2099 ;
2100 return 0;
2101 }
2102 _ACEOF
2103 rm -f conftest.$ac_objext
2104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105 (eval $ac_compile) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); } &&
2109 { ac_try='test -s conftest.$ac_objext'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 (eval $ac_try) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2115 ac_compiler_gnu=yes
2116 else
2117 echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2119
2120 ac_compiler_gnu=no
2121 fi
2122 rm -f conftest.$ac_objext conftest.$ac_ext
2123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2124
2125 fi
2126 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2128 GCC=`test $ac_compiler_gnu = yes && echo yes`
2129 ac_test_CFLAGS=${CFLAGS+set}
2130 ac_save_CFLAGS=$CFLAGS
2131 CFLAGS="-g"
2132 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2133 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_g+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137 cat >conftest.$ac_ext <<_ACEOF
2138 #line $LINENO "configure"
2139 /* confdefs.h. */
2140 _ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.h. */
2144
2145 int
2146 main ()
2147 {
2148
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 rm -f conftest.$ac_objext
2154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2155 (eval $ac_compile) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); } &&
2159 { ac_try='test -s conftest.$ac_objext'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 (eval $ac_try) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
2165 ac_cv_prog_cc_g=yes
2166 else
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2169
2170 ac_cv_prog_cc_g=no
2171 fi
2172 rm -f conftest.$ac_objext conftest.$ac_ext
2173 fi
2174 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2175 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2176 if test "$ac_test_CFLAGS" = set; then
2177 CFLAGS=$ac_save_CFLAGS
2178 elif test $ac_cv_prog_cc_g = yes; then
2179 if test "$GCC" = yes; then
2180 CFLAGS="-g -O2"
2181 else
2182 CFLAGS="-g"
2183 fi
2184 else
2185 if test "$GCC" = yes; then
2186 CFLAGS="-O2"
2187 else
2188 CFLAGS=
2189 fi
2190 fi
2191 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2192 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2193 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196 ac_cv_prog_cc_stdc=no
2197 ac_save_CC=$CC
2198 cat >conftest.$ac_ext <<_ACEOF
2199 #line $LINENO "configure"
2200 /* confdefs.h. */
2201 _ACEOF
2202 cat confdefs.h >>conftest.$ac_ext
2203 cat >>conftest.$ac_ext <<_ACEOF
2204 /* end confdefs.h. */
2205 #include <stdarg.h>
2206 #include <stdio.h>
2207 #include <sys/types.h>
2208 #include <sys/stat.h>
2209 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2210 struct buf { int x; };
2211 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2212 static char *e (p, i)
2213 char **p;
2214 int i;
2215 {
2216 return p[i];
2217 }
2218 static char *f (char * (*g) (char **, int), char **p, ...)
2219 {
2220 char *s;
2221 va_list v;
2222 va_start (v,p);
2223 s = g (p, va_arg (v,int));
2224 va_end (v);
2225 return s;
2226 }
2227 int test (int i, double x);
2228 struct s1 {int (*f) (int a);};
2229 struct s2 {int (*f) (double a);};
2230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2231 int argc;
2232 char **argv;
2233 int
2234 main ()
2235 {
2236 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2237 ;
2238 return 0;
2239 }
2240 _ACEOF
2241 # Don't try gcc -ansi; that turns off useful extensions and
2242 # breaks some systems' header files.
2243 # AIX -qlanglvl=ansi
2244 # Ultrix and OSF/1 -std1
2245 # HP-UX 10.20 and later -Ae
2246 # HP-UX older versions -Aa -D_HPUX_SOURCE
2247 # SVR4 -Xc -D__EXTENSIONS__
2248 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2249 do
2250 CC="$ac_save_CC $ac_arg"
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2263 ac_cv_prog_cc_stdc=$ac_arg
2264 break
2265 else
2266 echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2268
2269 fi
2270 rm -f conftest.$ac_objext
2271 done
2272 rm -f conftest.$ac_ext conftest.$ac_objext
2273 CC=$ac_save_CC
2274
2275 fi
2276
2277 case "x$ac_cv_prog_cc_stdc" in
2278 x|xno)
2279 echo "$as_me:$LINENO: result: none needed" >&5
2280 echo "${ECHO_T}none needed" >&6 ;;
2281 *)
2282 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2283 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2284 CC="$CC $ac_cv_prog_cc_stdc" ;;
2285 esac
2286
2287 # Some people use a C++ compiler to compile C. Since we use `exit',
2288 # in C++ we need to declare it. In case someone uses the same compiler
2289 # for both compiling C and C++ we need to have the C++ compiler decide
2290 # the declaration of exit, since it's the most demanding environment.
2291 cat >conftest.$ac_ext <<_ACEOF
2292 #ifndef __cplusplus
2293 choke me
2294 #endif
2295 _ACEOF
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 for ac_declaration in \
2309 ''\
2310 '#include <stdlib.h>' \
2311 'extern "C" void std::exit (int) throw (); using std::exit;' \
2312 'extern "C" void std::exit (int); using std::exit;' \
2313 'extern "C" void exit (int) throw ();' \
2314 'extern "C" void exit (int);' \
2315 'void exit (int);'
2316 do
2317 cat >conftest.$ac_ext <<_ACEOF
2318 #line $LINENO "configure"
2319 /* confdefs.h. */
2320 _ACEOF
2321 cat confdefs.h >>conftest.$ac_ext
2322 cat >>conftest.$ac_ext <<_ACEOF
2323 /* end confdefs.h. */
2324 #include <stdlib.h>
2325 $ac_declaration
2326 int
2327 main ()
2328 {
2329 exit (42);
2330 ;
2331 return 0;
2332 }
2333 _ACEOF
2334 rm -f conftest.$ac_objext
2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336 (eval $ac_compile) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2346 :
2347 else
2348 echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2350
2351 continue
2352 fi
2353 rm -f conftest.$ac_objext conftest.$ac_ext
2354 cat >conftest.$ac_ext <<_ACEOF
2355 #line $LINENO "configure"
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2361 $ac_declaration
2362 int
2363 main ()
2364 {
2365 exit (42);
2366 ;
2367 return 0;
2368 }
2369 _ACEOF
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); } &&
2376 { ac_try='test -s conftest.$ac_objext'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 (eval $ac_try) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2382 break
2383 else
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2386
2387 fi
2388 rm -f conftest.$ac_objext conftest.$ac_ext
2389 done
2390 rm -f conftest*
2391 if test -n "$ac_declaration"; then
2392 echo '#ifdef __cplusplus' >>confdefs.h
2393 echo $ac_declaration >>confdefs.h
2394 echo '#endif' >>confdefs.h
2395 fi
2396
2397 else
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2400
2401 fi
2402 rm -f conftest.$ac_objext conftest.$ac_ext
2403 ac_ext=c
2404 ac_cpp='$CPP $CPPFLAGS'
2405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408
2409
2410 #--------------------------------------------------------------------
2411 # Do other misc checks with CC and CFLAGS.
2412 #
2413 # Determine how to run the C preprocessor.
2414 #
2415 # If the user specifies --enable-optimization, remove `-g'
2416 # from CFLAGS, add `-O' to CFLAGS, and define `NDEBUG'. If
2417 # we are not building optimized, check for special libraries
2418 # needed for building a debugging binary (currenly only
2419 # /usr/lib/end.o under HPUX).
2420 #
2421 # Check if we're running on AIX; if so, add `-D_ALL_SOURCE'
2422 # to CFLAGS.
2423 #
2424 # Check if we're running on HPUX; if so, add -D_HPUX_SOURCE'
2425 # to CFLAGS unless the C preprocessor goes it for us.
2426 #--------------------------------------------------------------------
2427
2428 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2434 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2435 # On Suns, sometimes $CPP names a directory.
2436 if test -n "$CPP" && test -d "$CPP"; then
2437 CPP=
2438 fi
2439 if test -z "$CPP"; then
2440 if test "${ac_cv_prog_CPP+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443 # Double quotes because CPP needs to be expanded
2444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2445 do
2446 ac_preproc_ok=false
2447 for ac_c_preproc_warn_flag in '' yes
2448 do
2449 # Use a header file that comes with gcc, so configuring glibc
2450 # with a fresh cross-compiler works.
2451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2452 # <limits.h> exists even on freestanding compilers.
2453 # On the NeXT, cc -E runs the code through the compiler's parser,
2454 # not just through cpp. "Syntax error" is here to catch this case.
2455 cat >conftest.$ac_ext <<_ACEOF
2456 #line $LINENO "configure"
2457 /* confdefs.h. */
2458 _ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2462 #ifdef __STDC__
2463 # include <limits.h>
2464 #else
2465 # include <assert.h>
2466 #endif
2467 Syntax error
2468 _ACEOF
2469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2471 ac_status=$?
2472 grep -v '^ *+' conftest.er1 >conftest.err
2473 rm -f conftest.er1
2474 cat conftest.err >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } >/dev/null; then
2477 if test -s conftest.err; then
2478 ac_cpp_err=$ac_c_preproc_warn_flag
2479 else
2480 ac_cpp_err=
2481 fi
2482 else
2483 ac_cpp_err=yes
2484 fi
2485 if test -z "$ac_cpp_err"; then
2486 :
2487 else
2488 echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2490
2491 # Broken: fails on valid input.
2492 continue
2493 fi
2494 rm -f conftest.err conftest.$ac_ext
2495
2496 # OK, works on sane cases. Now check whether non-existent headers
2497 # can be detected and how.
2498 cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2500 /* confdefs.h. */
2501 _ACEOF
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h. */
2505 #include <ac_nonexistent.h>
2506 _ACEOF
2507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } >/dev/null; then
2515 if test -s conftest.err; then
2516 ac_cpp_err=$ac_c_preproc_warn_flag
2517 else
2518 ac_cpp_err=
2519 fi
2520 else
2521 ac_cpp_err=yes
2522 fi
2523 if test -z "$ac_cpp_err"; then
2524 # Broken: success on invalid input.
2525 continue
2526 else
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2529
2530 # Passes both tests.
2531 ac_preproc_ok=:
2532 break
2533 fi
2534 rm -f conftest.err conftest.$ac_ext
2535
2536 done
2537 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2538 rm -f conftest.err conftest.$ac_ext
2539 if $ac_preproc_ok; then
2540 break
2541 fi
2542
2543 done
2544 ac_cv_prog_CPP=$CPP
2545
2546 fi
2547 CPP=$ac_cv_prog_CPP
2548 else
2549 ac_cv_prog_CPP=$CPP
2550 fi
2551 echo "$as_me:$LINENO: result: $CPP" >&5
2552 echo "${ECHO_T}$CPP" >&6
2553 ac_preproc_ok=false
2554 for ac_c_preproc_warn_flag in '' yes
2555 do
2556 # Use a header file that comes with gcc, so configuring glibc
2557 # with a fresh cross-compiler works.
2558 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2559 # <limits.h> exists even on freestanding compilers.
2560 # On the NeXT, cc -E runs the code through the compiler's parser,
2561 # not just through cpp. "Syntax error" is here to catch this case.
2562 cat >conftest.$ac_ext <<_ACEOF
2563 #line $LINENO "configure"
2564 /* confdefs.h. */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2569 #ifdef __STDC__
2570 # include <limits.h>
2571 #else
2572 # include <assert.h>
2573 #endif
2574 Syntax error
2575 _ACEOF
2576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2578 ac_status=$?
2579 grep -v '^ *+' conftest.er1 >conftest.err
2580 rm -f conftest.er1
2581 cat conftest.err >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } >/dev/null; then
2584 if test -s conftest.err; then
2585 ac_cpp_err=$ac_c_preproc_warn_flag
2586 else
2587 ac_cpp_err=
2588 fi
2589 else
2590 ac_cpp_err=yes
2591 fi
2592 if test -z "$ac_cpp_err"; then
2593 :
2594 else
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2597
2598 # Broken: fails on valid input.
2599 continue
2600 fi
2601 rm -f conftest.err conftest.$ac_ext
2602
2603 # OK, works on sane cases. Now check whether non-existent headers
2604 # can be detected and how.
2605 cat >conftest.$ac_ext <<_ACEOF
2606 #line $LINENO "configure"
2607 /* confdefs.h. */
2608 _ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h. */
2612 #include <ac_nonexistent.h>
2613 _ACEOF
2614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2616 ac_status=$?
2617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } >/dev/null; then
2622 if test -s conftest.err; then
2623 ac_cpp_err=$ac_c_preproc_warn_flag
2624 else
2625 ac_cpp_err=
2626 fi
2627 else
2628 ac_cpp_err=yes
2629 fi
2630 if test -z "$ac_cpp_err"; then
2631 # Broken: success on invalid input.
2632 continue
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 # Passes both tests.
2638 ac_preproc_ok=:
2639 break
2640 fi
2641 rm -f conftest.err conftest.$ac_ext
2642
2643 done
2644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2645 rm -f conftest.err conftest.$ac_ext
2646 if $ac_preproc_ok; then
2647 :
2648 else
2649 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2650 See \`config.log' for more details." >&5
2651 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2652 See \`config.log' for more details." >&2;}
2653 { (exit 1); exit 1; }; }
2654 fi
2655
2656 ac_ext=c
2657 ac_cpp='$CPP $CPPFLAGS'
2658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661
2662
2663 # Check whether --enable-optimization or --disable-optimization was given.
2664 if test "${enable_optimization+set}" = set; then
2665 enableval="$enable_optimization"
2666 asc_do_opt="$enableval"
2667 else
2668 asc_do_opt=no
2669 fi;
2670
2671 if test "$asc_do_opt" = yes; then
2672 CFLAGS=`echo "-O $CFLAGS " | sed 's/ -g / /g'`
2673 cat >>confdefs.h <<\_ACEOF
2674 #define NDEBUG 1
2675 _ACEOF
2676
2677 else
2678 # Extract the first word of "end.o", so it can be a program name with args.
2679 set dummy end.o; ac_word=$2
2680 echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682 if test "${ac_cv_path_DEBUG_LIBS+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 case $DEBUG_LIBS in
2686 [\\/]* | ?:[\\/]*)
2687 ac_cv_path_DEBUG_LIBS="$DEBUG_LIBS" # Let the user override the test with a path.
2688 ;;
2689 *)
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in /usr/lib
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_path_DEBUG_LIBS="$as_dir/$ac_word$ac_exec_ext"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701 done
2702 done
2703
2704 ;;
2705 esac
2706 fi
2707 DEBUG_LIBS=$ac_cv_path_DEBUG_LIBS
2708
2709 if test -n "$DEBUG_LIBS"; then
2710 echo "$as_me:$LINENO: result: $DEBUG_LIBS" >&5
2711 echo "${ECHO_T}$DEBUG_LIBS" >&6
2712 else
2713 echo "$as_me:$LINENO: result: no" >&5
2714 echo "${ECHO_T}no" >&6
2715 fi
2716
2717 fi
2718
2719 echo "$as_me:$LINENO: checking for AIX" >&5
2720 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2721
2722
2723 echo "$as_me:$LINENO: checking for egrep" >&5
2724 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2725 if test "${ac_cv_prog_egrep+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2729 then ac_cv_prog_egrep='grep -E'
2730 else ac_cv_prog_egrep='egrep'
2731 fi
2732 fi
2733 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2734 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2735 EGREP=$ac_cv_prog_egrep
2736
2737
2738 cat >conftest.$ac_ext <<_ACEOF
2739 #line $LINENO "configure"
2740 /* confdefs.h. */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2745
2746 #ifdef _AIX
2747 yes
2748 #endif
2749
2750 _ACEOF
2751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2752 $EGREP "yes" >/dev/null 2>&1; then
2753 asc_aix=yes ; cat >>confdefs.h <<\_ACEOF
2754 #define _ALL_SOURCE 1
2755 _ACEOF
2756
2757 else
2758 asc_aix=no
2759 fi
2760 rm -f conftest*
2761
2762 echo "$as_me:$LINENO: result: $asc_aix" >&5
2763 echo "${ECHO_T}$asc_aix" >&6
2764
2765 echo "$as_me:$LINENO: checking whether -D_HPUX_SOURCE is needed" >&5
2766 echo $ECHO_N "checking whether -D_HPUX_SOURCE is needed... $ECHO_C" >&6
2767 cat >conftest.$ac_ext <<_ACEOF
2768 #line $LINENO "configure"
2769 /* confdefs.h. */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2774
2775 #ifdef __hpux
2776 #ifndef _HPUX_SOURCE
2777 yes
2778 #endif
2779 #endif
2780
2781 _ACEOF
2782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2783 $EGREP "yes" >/dev/null 2>&1; then
2784 asc_hpux=yes ; cat >>confdefs.h <<\_ACEOF
2785 #define _HPUX_SOURCE 1
2786 _ACEOF
2787
2788 else
2789 asc_hpux=no
2790 fi
2791 rm -f conftest*
2792
2793 echo "$as_me:$LINENO: result: $asc_hpux" >&5
2794 echo "${ECHO_T}$asc_hpux" >&6
2795
2796 # Check the size of pointers; if cross compiling, assume 32 bit pointers
2797 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2798 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2799 if test "${ac_cv_header_stdc+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802 cat >conftest.$ac_ext <<_ACEOF
2803 #line $LINENO "configure"
2804 /* confdefs.h. */
2805 _ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2809 #include <stdlib.h>
2810 #include <stdarg.h>
2811 #include <string.h>
2812 #include <float.h>
2813
2814 int
2815 main ()
2816 {
2817
2818 ;
2819 return 0;
2820 }
2821 _ACEOF
2822 rm -f conftest.$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -s conftest.$ac_objext'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 (eval $ac_try) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; }; then
2834 ac_cv_header_stdc=yes
2835 else
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2838
2839 ac_cv_header_stdc=no
2840 fi
2841 rm -f conftest.$ac_objext conftest.$ac_ext
2842
2843 if test $ac_cv_header_stdc = yes; then
2844 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2845 cat >conftest.$ac_ext <<_ACEOF
2846 #line $LINENO "configure"
2847 /* confdefs.h. */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h. */
2852 #include <string.h>
2853
2854 _ACEOF
2855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2856 $EGREP "memchr" >/dev/null 2>&1; then
2857 :
2858 else
2859 ac_cv_header_stdc=no
2860 fi
2861 rm -f conftest*
2862
2863 fi
2864
2865 if test $ac_cv_header_stdc = yes; then
2866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2867 cat >conftest.$ac_ext <<_ACEOF
2868 #line $LINENO "configure"
2869 /* confdefs.h. */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2874 #include <stdlib.h>
2875
2876 _ACEOF
2877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2878 $EGREP "free" >/dev/null 2>&1; then
2879 :
2880 else
2881 ac_cv_header_stdc=no
2882 fi
2883 rm -f conftest*
2884
2885 fi
2886
2887 if test $ac_cv_header_stdc = yes; then
2888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2889 if test "$cross_compiling" = yes; then
2890 :
2891 else
2892 cat >conftest.$ac_ext <<_ACEOF
2893 #line $LINENO "configure"
2894 /* confdefs.h. */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h. */
2899 #include <ctype.h>
2900 #if ((' ' & 0x0FF) == 0x020)
2901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2903 #else
2904 # define ISLOWER(c) \
2905 (('a' <= (c) && (c) <= 'i') \
2906 || ('j' <= (c) && (c) <= 'r') \
2907 || ('s' <= (c) && (c) <= 'z'))
2908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2909 #endif
2910
2911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2912 int
2913 main ()
2914 {
2915 int i;
2916 for (i = 0; i < 256; i++)
2917 if (XOR (islower (i), ISLOWER (i))
2918 || toupper (i) != TOUPPER (i))
2919 exit(2);
2920 exit (0);
2921 }
2922 _ACEOF
2923 rm -f conftest$ac_exeext
2924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2925 (eval $ac_link) 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2934 :
2935 else
2936 echo "$as_me: program exited with status $ac_status" >&5
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2939
2940 ( exit $ac_status )
2941 ac_cv_header_stdc=no
2942 fi
2943 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2944 fi
2945 fi
2946 fi
2947 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2948 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2949 if test $ac_cv_header_stdc = yes; then
2950
2951 cat >>confdefs.h <<\_ACEOF
2952 #define STDC_HEADERS 1
2953 _ACEOF
2954
2955 fi
2956
2957 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2968 inttypes.h stdint.h unistd.h
2969 do
2970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2971 echo "$as_me:$LINENO: checking for $ac_header" >&5
2972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 cat >conftest.$ac_ext <<_ACEOF
2977 #line $LINENO "configure"
2978 /* confdefs.h. */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983 $ac_includes_default
2984
2985 #include <$ac_header>
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 eval "$as_ac_Header=yes"
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 eval "$as_ac_Header=no"
3005 fi
3006 rm -f conftest.$ac_objext conftest.$ac_ext
3007 fi
3008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3011 cat >>confdefs.h <<_ACEOF
3012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3013 _ACEOF
3014
3015 fi
3016
3017 done
3018
3019
3020 echo "$as_me:$LINENO: checking for void *" >&5
3021 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3022 if test "${ac_cv_type_void_p+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025 cat >conftest.$ac_ext <<_ACEOF
3026 #line $LINENO "configure"
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032 $ac_includes_default
3033 int
3034 main ()
3035 {
3036 if ((void * *) 0)
3037 return 0;
3038 if (sizeof (void *))
3039 return 0;
3040 ;
3041 return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3046 (eval $ac_compile) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -s conftest.$ac_objext'
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 (eval $ac_try) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 ac_cv_type_void_p=yes
3057 else
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 ac_cv_type_void_p=no
3062 fi
3063 rm -f conftest.$ac_objext conftest.$ac_ext
3064 fi
3065 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3066 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3067
3068 echo "$as_me:$LINENO: checking size of void *" >&5
3069 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3070 if test "${ac_cv_sizeof_void_p+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073 if test "$ac_cv_type_void_p" = yes; then
3074 # The cast to unsigned long works around a bug in the HP C Compiler
3075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3077 # This bug is HP SR number 8606223364.
3078 if test "$cross_compiling" = yes; then
3079 # Depending upon the size, compute the lo and hi bounds.
3080 cat >conftest.$ac_ext <<_ACEOF
3081 #line $LINENO "configure"
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087 $ac_includes_default
3088 int
3089 main ()
3090 {
3091 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3092 test_array [0] = 0
3093
3094 ;
3095 return 0;
3096 }
3097 _ACEOF
3098 rm -f conftest.$ac_objext
3099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3100 (eval $ac_compile) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 (eval $ac_try) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 ac_lo=0 ac_mid=0
3111 while :; do
3112 cat >conftest.$ac_ext <<_ACEOF
3113 #line $LINENO "configure"
3114 /* confdefs.h. */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119 $ac_includes_default
3120 int
3121 main ()
3122 {
3123 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3124 test_array [0] = 0
3125
3126 ;
3127 return 0;
3128 }
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3132 (eval $ac_compile) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 (eval $ac_try) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3142 ac_hi=$ac_mid; break
3143 else
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 ac_lo=`expr $ac_mid + 1`
3148 if test $ac_lo -le $ac_mid; then
3149 ac_lo= ac_hi=
3150 break
3151 fi
3152 ac_mid=`expr 2 '*' $ac_mid + 1`
3153 fi
3154 rm -f conftest.$ac_objext conftest.$ac_ext
3155 done
3156 else
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160 cat >conftest.$ac_ext <<_ACEOF
3161 #line $LINENO "configure"
3162 /* confdefs.h. */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3167 $ac_includes_default
3168 int
3169 main ()
3170 {
3171 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3172 test_array [0] = 0
3173
3174 ;
3175 return 0;
3176 }
3177 _ACEOF
3178 rm -f conftest.$ac_objext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180 (eval $ac_compile) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
3184 { ac_try='test -s conftest.$ac_objext'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 (eval $ac_try) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 ac_hi=-1 ac_mid=-1
3191 while :; do
3192 cat >conftest.$ac_ext <<_ACEOF
3193 #line $LINENO "configure"
3194 /* confdefs.h. */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3199 $ac_includes_default
3200 int
3201 main ()
3202 {
3203 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3204 test_array [0] = 0
3205
3206 ;
3207 return 0;
3208 }
3209 _ACEOF
3210 rm -f conftest.$ac_objext
3211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212 (eval $ac_compile) 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); } &&
3216 { ac_try='test -s conftest.$ac_objext'
3217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 (eval $ac_try) 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; }; then
3222 ac_lo=$ac_mid; break
3223 else
3224 echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3226
3227 ac_hi=`expr '(' $ac_mid ')' - 1`
3228 if test $ac_mid -le $ac_hi; then
3229 ac_lo= ac_hi=
3230 break
3231 fi
3232 ac_mid=`expr 2 '*' $ac_mid`
3233 fi
3234 rm -f conftest.$ac_objext conftest.$ac_ext
3235 done
3236 else
3237 echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240 ac_lo= ac_hi=
3241 fi
3242 rm -f conftest.$ac_objext conftest.$ac_ext
3243 fi
3244 rm -f conftest.$ac_objext conftest.$ac_ext
3245 # Binary search between lo and hi bounds.
3246 while test "x$ac_lo" != "x$ac_hi"; do
3247 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 /* confdefs.h. */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3255 $ac_includes_default
3256 int
3257 main ()
3258 {
3259 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3260 test_array [0] = 0
3261
3262 ;
3263 return 0;
3264 }
3265 _ACEOF
3266 rm -f conftest.$ac_objext
3267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268 (eval $ac_compile) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } &&
3272 { ac_try='test -s conftest.$ac_objext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 ac_hi=$ac_mid
3279 else
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 ac_lo=`expr '(' $ac_mid ')' + 1`
3284 fi
3285 rm -f conftest.$ac_objext conftest.$ac_ext
3286 done
3287 case $ac_lo in
3288 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3289 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3290 See \`config.log' for more details." >&5
3291 echo "$as_me: error: cannot compute sizeof (void *), 77
3292 See \`config.log' for more details." >&2;}
3293 { (exit 1); exit 1; }; } ;;
3294 esac
3295 else
3296 if test "$cross_compiling" = yes; then
3297 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3298 See \`config.log' for more details." >&5
3299 echo "$as_me: error: cannot run test program while cross compiling
3300 See \`config.log' for more details." >&2;}
3301 { (exit 1); exit 1; }; }
3302 else
3303 cat >conftest.$ac_ext <<_ACEOF
3304 #line $LINENO "configure"
3305 /* confdefs.h. */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3310 $ac_includes_default
3311 long longval () { return (long) (sizeof (void *)); }
3312 unsigned long ulongval () { return (long) (sizeof (void *)); }
3313 #include <stdio.h>
3314 #include <stdlib.h>
3315 int
3316 main ()
3317 {
3318
3319 FILE *f = fopen ("conftest.val", "w");
3320 if (! f)
3321 exit (1);
3322 if (((long) (sizeof (void *))) < 0)
3323 {
3324 long i = longval ();
3325 if (i != ((long) (sizeof (void *))))
3326 exit (1);
3327 fprintf (f, "%ld\n", i);
3328 }
3329 else
3330 {
3331 unsigned long i = ulongval ();
3332 if (i != ((long) (sizeof (void *))))
3333 exit (1);
3334 fprintf (f, "%lu\n", i);
3335 }
3336 exit (ferror (f) || fclose (f) != 0);
3337
3338 ;
3339 return 0;
3340 }
3341 _ACEOF
3342 rm -f conftest$ac_exeext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3344 (eval $ac_link) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_sizeof_void_p=`cat conftest.val`
3354 else
3355 echo "$as_me: program exited with status $ac_status" >&5
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3358
3359 ( exit $ac_status )
3360 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3361 See \`config.log' for more details." >&5
3362 echo "$as_me: error: cannot compute sizeof (void *), 77
3363 See \`config.log' for more details." >&2;}
3364 { (exit 1); exit 1; }; }
3365 fi
3366 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3367 fi
3368 fi
3369 rm -f conftest.val
3370 else
3371 ac_cv_sizeof_void_p=0
3372 fi
3373 fi
3374 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3375 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3376 cat >>confdefs.h <<_ACEOF
3377 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3378 _ACEOF
3379
3380
3381
3382
3383 #--------------------------------------------------------------------
3384 # Set YACC.
3385 # call the
3386 # autoconf macro which looks for `bison' and then for `yacc'.
3387 # note it isn't bright enough to check that yacc really exists,
3388 # so we allow the user to disable it.
3389 #--------------------------------------------------------------------
3390
3391 YACCSAVE="$YACC"
3392 for ac_prog in 'bison -y' byacc
3393 do
3394 # Extract the first word of "$ac_prog", so it can be a program name with args.
3395 set dummy $ac_prog; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_prog_YACC+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 if test -n "$YACC"; then
3402 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_YACC="$ac_prog"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415 done
3416 done
3417
3418 fi
3419 fi
3420 YACC=$ac_cv_prog_YACC
3421 if test -n "$YACC"; then
3422 echo "$as_me:$LINENO: result: $YACC" >&5
3423 echo "${ECHO_T}$YACC" >&6
3424 else
3425 echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6
3427 fi
3428
3429 test -n "$YACC" && break
3430 done
3431 test -n "$YACC" || YACC="yacc"
3432
3433
3434
3435 # Check whether --with-yacc or --without-yacc was given.
3436 if test "${with_yacc+set}" = set; then
3437 withval="$with_yacc"
3438
3439 else
3440 with_yacc=yes
3441 fi;
3442 if test ! "X$with_yacc" = "Xyes" ; then
3443 YACC=": configured without yacc"
3444 parser_src="ascParse.c.from.c"
3445 else
3446 parser_src="ascParse.c.from.yacc"
3447 fi
3448
3449
3450 #--------------------------------------------------------------------
3451 # Set LEX.
3452 # ASCEND requires a `flex' which understands -P (allows you to
3453 # specify a prefix other than `yy'). The -P flag was added at
3454 # the same time a -V (version) flag was added (version 2.4.1),
3455 # so if `flex' understands -V, it'll understand -P (checking
3456 # for -P directly requires a flex input file).
3457 #
3458 # 1. If `LEX' is not set, look for `flex' and set `LEX' to
3459 # `flex' if found.
3460 # 2. If `flex' was found, see if it understands -V. If so,
3461 # set `scanner_src' and `typer_src' to have `flex' generate
3462 # the C files from the flex input files
3463 # base/generic/compiler/scanner.l & tcltk/interface/typelex.l
3464 # We don't need to look for libfl.a since we define
3465 # yywrap() ourselves.
3466 # 3. If `flex' wasn't found or was found but isn't new enough:
3467 # a. Print a warning message
3468 # b. Set `scanner_src' and `typer_src' to use pre-generated
3469 # C files for the flex files mentioned in (2).
3470 # c. Set `LEX' to `lex'
3471 # d. Search for the lex library `libl.a' and set LEXLIB to
3472 # its location.
3473 #--------------------------------------------------------------------
3474
3475 # Extract the first word of "flex", so it can be a program name with args.
3476 set dummy flex; ac_word=$2
3477 echo "$as_me:$LINENO: checking for $ac_word" >&5
3478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3479 if test "${ac_cv_prog_LEX+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482 if test -n "$LEX"; then
3483 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3484 else
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 for as_dir in $PATH
3487 do
3488 IFS=$as_save_IFS
3489 test -z "$as_dir" && as_dir=.
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3492 ac_cv_prog_LEX="flex"
3493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 break 2
3495 fi
3496 done
3497 done
3498
3499 fi
3500 fi
3501 LEX=$ac_cv_prog_LEX
3502 if test -n "$LEX"; then
3503 echo "$as_me:$LINENO: result: $LEX" >&5
3504 echo "${ECHO_T}$LEX" >&6
3505 else
3506 echo "$as_me:$LINENO: result: no" >&5
3507 echo "${ECHO_T}no" >&6
3508 fi
3509
3510
3511 if test -n "$LEX" ; then
3512 echo "$as_me:$LINENO: checking whether $LEX is at least version 2.4.1" >&5
3513 echo $ECHO_N "checking whether $LEX is at least version 2.4.1... $ECHO_C" >&6
3514 echo "$LEX -V" 1>&5
3515 if $LEX -V 1>&5 2>&5 ; then
3516 echo "$as_me:$LINENO: result: yes" >&5
3517 echo "${ECHO_T}yes" >&6
3518 scanner_src="scanner.c.from.flex"
3519 typer_src="typelex.c.from.flex"
3520 else
3521 echo "$as_me:$LINENO: result: no" >&5
3522 echo "${ECHO_T}no" >&6
3523 LEX=''
3524 fi
3525 fi
3526
3527 if test -z "$LEX" ; then
3528 { echo "$as_me:$LINENO: WARNING: Cannot find a flex lexer version 2.4.1 or greater.
3529 Using pregenerated C files for base/generic/compiler/scanner.l
3530 and tcltk/interface/typelex.l. If you have flex 2.4.1
3531 or newer, set the LEX environment variable to its location
3532 and run configure again." >&5
3533 echo "$as_me: WARNING: Cannot find a flex lexer version 2.4.1 or greater.
3534 Using pregenerated C files for base/generic/compiler/scanner.l
3535 and tcltk/interface/typelex.l. If you have flex 2.4.1
3536 or newer, set the LEX environment variable to its location
3537 and run configure again." >&2;}
3538 scanner_src="scanner.c.from.c"
3539 typer_src="typelex.c.from.c"
3540
3541 # let configure set LEX and LEXLIB even though we won't be using them
3542 for ac_prog in flex lex
3543 do
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy $ac_prog; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_prog_LEX+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 if test -n "$LEX"; then
3552 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_LEX="$ac_prog"
3562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3564 fi
3565 done
3566 done
3567
3568 fi
3569 fi
3570 LEX=$ac_cv_prog_LEX
3571 if test -n "$LEX"; then
3572 echo "$as_me:$LINENO: result: $LEX" >&5
3573 echo "${ECHO_T}$LEX" >&6
3574 else
3575 echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3577 fi
3578
3579 test -n "$LEX" && break
3580 done
3581 test -n "$LEX" || LEX=":"
3582
3583 if test -z "$LEXLIB"
3584 then
3585 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3586 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3587 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590 ac_check_lib_save_LIBS=$LIBS
3591 LIBS="-lfl $LIBS"
3592 cat >conftest.$ac_ext <<_ACEOF
3593 #line $LINENO "configure"
3594 /* confdefs.h. */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599
3600 /* Override any gcc2 internal prototype to avoid an error. */
3601 #ifdef __cplusplus
3602 extern "C"
3603 #endif
3604 /* We use char because int might match the return type of a gcc2
3605 builtin and then its argument prototype would still apply. */
3606 char yywrap ();
3607 int
3608 main ()
3609 {
3610 yywrap ();
3611 ;
3612 return 0;
3613 }
3614 _ACEOF
3615 rm -f conftest.$ac_objext conftest$ac_exeext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3617 (eval $ac_link) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -s conftest$ac_exeext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 (eval $ac_try) 2>&5
3624 ac_status=$?
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 ac_cv_lib_fl_yywrap=yes
3628 else
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 ac_cv_lib_fl_yywrap=no
3633 fi
3634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3635 LIBS=$ac_check_lib_save_LIBS
3636 fi
3637 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3638 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3639 if test $ac_cv_lib_fl_yywrap = yes; then
3640 LEXLIB="-lfl"
3641 else
3642 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3643 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3644 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647 ac_check_lib_save_LIBS=$LIBS
3648 LIBS="-ll $LIBS"
3649 cat >conftest.$ac_ext <<_ACEOF
3650 #line $LINENO "configure"
3651 /* confdefs.h. */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3656
3657 /* Override any gcc2 internal prototype to avoid an error. */
3658 #ifdef __cplusplus
3659 extern "C"
3660 #endif
3661 /* We use char because int might match the return type of a gcc2
3662 builtin and then its argument prototype would still apply. */
3663 char yywrap ();
3664 int
3665 main ()
3666 {
3667 yywrap ();
3668 ;
3669 return 0;
3670 }
3671 _ACEOF
3672 rm -f conftest.$ac_objext conftest$ac_exeext
3673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3674 (eval $ac_link) 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try='test -s conftest$ac_exeext'
3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 (eval $ac_try) 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
3684 ac_cv_lib_l_yywrap=yes
3685 else
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689 ac_cv_lib_l_yywrap=no
3690 fi
3691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3692 LIBS=$ac_check_lib_save_LIBS
3693 fi
3694 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3695 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3696 if test $ac_cv_lib_l_yywrap = yes; then
3697 LEXLIB="-ll"
3698 fi
3699
3700 fi
3701
3702 fi
3703
3704 if test "x$LEX" != "x:"; then
3705 echo "$as_me:$LINENO: checking lex output file root" >&5
3706 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3707 if test "${ac_cv_prog_lex_root+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 # The minimal lex program is just a single line: %%. But some broken lexes
3711 # (Solaris, I think it was) want two %% lines, so accommodate them.
3712 cat >conftest.l <<_ACEOF
3713 %%
3714 %%
3715 _ACEOF
3716 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3717 (eval $LEX conftest.l) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }
3721 if test -f lex.yy.c; then
3722 ac_cv_prog_lex_root=lex.yy
3723 elif test -f lexyy.c; then
3724 ac_cv_prog_lex_root=lexyy
3725 else
3726 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3727 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3728 { (exit 1); exit 1; }; }
3729 fi
3730 fi
3731 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3732 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3733 rm -f conftest.l
3734 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3735
3736 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3737 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3738 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741 # POSIX says lex can declare yytext either as a pointer or an array; the
3742 # default is implementation-dependent. Figure out which it is, since
3743 # not all implementations provide the %pointer and %array declarations.
3744 ac_cv_prog_lex_yytext_pointer=no
3745 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3746 ac_save_LIBS=$LIBS
3747 LIBS="$LIBS $LEXLIB"
3748 cat >conftest.$ac_ext <<_ACEOF
3749 `cat $LEX_OUTPUT_ROOT.c`
3750 _ACEOF
3751 rm -f conftest.$ac_objext conftest$ac_exeext
3752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3753 (eval $ac_link) 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } &&
3757 { ac_try='test -s conftest$ac_exeext'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 (eval $ac_try) 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3763 ac_cv_prog_lex_yytext_pointer=yes
3764 else
3765 echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3767
3768 fi
3769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3770 LIBS=$ac_save_LIBS
3771 rm -f "${LEX_OUTPUT_ROOT}.c"
3772
3773 fi
3774 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3775 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3776 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3777
3778 cat >>confdefs.h <<\_ACEOF
3779 #define YYTEXT_POINTER 1
3780 _ACEOF
3781
3782 fi
3783
3784 fi
3785 fi
3786
3787
3788 #--------------------------------------------------------------------
3789 # Math libraries.
3790 # On a few very rare systems, all of the libm.a stuff is
3791 # already in libc.a. Set compiler flags accordingly.
3792 # Also, Linux requires the "ieee" library for math to work
3793 # right (and it must appear before "-lm").
3794 #
3795 # When building on HPUX with GCC, GCC cannot find `copysign'
3796 # because it lives in an odd place; see if we need to add
3797 # this odd place to MATH_LIBS.
3798 #
3799 # See if erf(), the error function, exists; if so, define
3800 # HAVE_ERF.
3801 #--------------------------------------------------------------------
3802 echo "$as_me:$LINENO: checking for sin" >&5
3803 echo $ECHO_N "checking for sin... $ECHO_C" >&6
3804 if test "${ac_cv_func_sin+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807 cat >conftest.$ac_ext <<_ACEOF
3808 #line $LINENO "configure"
3809 /* confdefs.h. */
3810 _ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h. */
3814 /* System header to define __stub macros and hopefully few prototypes,
3815 which can conflict with char sin (); below.
3816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3817 <limits.h> exists even on freestanding compilers. */
3818 #ifdef __STDC__
3819 # include <limits.h>
3820 #else
3821 # include <assert.h>
3822 #endif
3823 /* Override any gcc2 internal prototype to avoid an error. */
3824 #ifdef __cplusplus
3825 extern "C"
3826 {
3827 #endif
3828 /* We use char because int might match the return type of a gcc2
3829 builtin and then its argument prototype would still apply. */
3830 char sin ();
3831 /* The GNU C library defines this for functions which it implements
3832 to always fail with ENOSYS. Some functions are actually named
3833 something starting with __ and the normal name is an alias. */
3834 #if defined (__stub_sin) || defined (__stub___sin)
3835 choke me
3836 #else
3837 char (*f) () = sin;
3838 #endif
3839 #ifdef __cplusplus
3840 }
3841 #endif
3842
3843 int
3844 main ()
3845 {
3846 return f != sin;
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 rm -f conftest.$ac_objext conftest$ac_exeext
3852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853 (eval $ac_link) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
3857 { ac_try='test -s conftest$ac_exeext'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 (eval $ac_try) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; }; then
3863 ac_cv_func_sin=yes
3864 else
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3867
3868 ac_cv_func_sin=no
3869 fi
3870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3871 fi
3872 echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
3873 echo "${ECHO_T}$ac_cv_func_sin" >&6
3874 if test $ac_cv_func_sin = yes; then
3875 MATH_LIBS=""
3876 else
3877 MATH_LIBS="-lm"
3878 fi
3879
3880
3881 echo "$as_me:$LINENO: checking for printf in -lieee" >&5
3882 echo $ECHO_N "checking for printf in -lieee... $ECHO_C" >&6
3883 if test "${ac_cv_lib_ieee_printf+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886 ac_check_lib_save_LIBS=$LIBS
3887 LIBS="-lieee $LIBS"
3888 cat >conftest.$ac_ext <<_ACEOF
3889 #line $LINENO "configure"
3890 /* confdefs.h. */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3895
3896 /* Override any gcc2 internal prototype to avoid an error. */
3897 #ifdef __cplusplus
3898 extern "C"
3899 #endif
3900 /* We use char because int might match the return type of a gcc2
3901 builtin and then its argument prototype would still apply. */
3902 char printf ();
3903 int
3904 main ()
3905 {
3906 printf ();
3907 ;
3908 return 0;
3909 }
3910 _ACEOF
3911 rm -f conftest.$ac_objext conftest$ac_exeext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3913 (eval $ac_link) 2>&5
3914 ac_status=$?
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try='test -s conftest$ac_exeext'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 (eval $ac_try) 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; }; then
3923 ac_cv_lib_ieee_printf=yes
3924 else
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3927
3928 ac_cv_lib_ieee_printf=no
3929 fi
3930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3931 LIBS=$ac_check_lib_save_LIBS
3932 fi
3933 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_printf" >&5
3934 echo "${ECHO_T}$ac_cv_lib_ieee_printf" >&6
3935 if test $ac_cv_lib_ieee_printf = yes; then
3936 MATH_LIBS="-lieee $MATH_LIBS"
3937 fi
3938
3939
3940 if test -n "$MATH_LIBS" ; then
3941
3942 echo "$as_me:$LINENO: checking for copysign in -lm" >&5
3943 echo $ECHO_N "checking for copysign in -lm... $ECHO_C" >&6
3944 if test "${ac_cv_lib_m_copysign+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947 ac_check_lib_save_LIBS=$LIBS
3948 LIBS="-lm $MATH_LIBS $LIBS"
3949 cat >conftest.$ac_ext <<_ACEOF
3950 #line $LINENO "configure"
3951 /* confdefs.h. */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3956
3957 /* Override any gcc2 internal prototype to avoid an error. */
3958 #ifdef __cplusplus
3959 extern "C"
3960 #endif
3961 /* We use char because int might match the return type of a gcc2
3962 builtin and then its argument prototype would still apply. */
3963 char copysign ();
3964 int
3965 main ()
3966 {
3967 copysign ();
3968 ;
3969 return 0;
3970 }
3971 _ACEOF
3972 rm -f conftest.$ac_objext conftest$ac_exeext
3973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3974 (eval $ac_link) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } &&
3978 { ac_try='test -s conftest$ac_exeext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 ac_cv_lib_m_copysign=yes
3985 else
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3988
3989 ac_cv_lib_m_copysign=no
3990 fi
3991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3992 LIBS=$ac_check_lib_save_LIBS
3993 fi
3994 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysign" >&5
3995 echo "${ECHO_T}$ac_cv_lib_m_copysign" >&6
3996 if test $ac_cv_lib_m_copysign = yes; then
3997 cat >>confdefs.h <<_ACEOF
3998 #define HAVE_LIBM 1
3999 _ACEOF
4000
4001 LIBS="-lm $LIBS"
4002
4003 else
4004 echo "$as_me:$LINENO: checking for drem in -lm" >&5
4005 echo $ECHO_N "checking for drem in -lm... $ECHO_C" >&6
4006 if test "${ac_cv_lib_m_drem+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009 ac_check_lib_save_LIBS=$LIBS
4010 LIBS="-lm /lib/pa1.1/libM.a
4011 $LIBS"
4012 cat >conftest.$ac_ext <<_ACEOF
4013 #line $LINENO "configure"
4014 /* confdefs.h. */
4015 _ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4019
4020 /* Override any gcc2 internal prototype to avoid an error. */
4021 #ifdef __cplusplus
4022 extern "C"
4023 #endif
4024 /* We use char because int might match the return type of a gcc2
4025 builtin and then its argument prototype would still apply. */
4026 char drem ();
4027 int
4028 main ()
4029 {
4030 drem ();
4031 ;
4032 return 0;
4033 }
4034 _ACEOF
4035 rm -f conftest.$ac_objext conftest$ac_exeext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4037 (eval $ac_link) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -s conftest$ac_exeext'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4047 ac_cv_lib_m_drem=yes
4048 else
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4051
4052 ac_cv_lib_m_drem=no
4053 fi
4054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4055 LIBS=$ac_check_lib_save_LIBS
4056 fi
4057 echo "$as_me:$LINENO: result: $ac_cv_lib_m_drem" >&5
4058 echo "${ECHO_T}$ac_cv_lib_m_drem" >&6
4059 if test $ac_cv_lib_m_drem = yes; then
4060 MATH_LIBS="$MATH_LIBS /lib/pa1.1/libM.a"
4061
4062 fi
4063
4064 fi
4065
4066 fi
4067
4068 # store the current list of libraries, add the math libraries to LIBS,
4069 # check for erf(), then reset the value of LIBS.
4070 asc_keep_LIBS="$LIBS"
4071 LIBS="$LIBS $MATH_LIBS"
4072
4073 for ac_func in erf
4074 do
4075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4076 echo "$as_me:$LINENO: checking for $ac_func" >&5
4077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4078 if eval "test \"\${$as_ac_var+set}\" = set"; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081 cat >conftest.$ac_ext <<_ACEOF
4082 #line $LINENO "configure"
4083 /* confdefs.h. */
4084 _ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4088 /* System header to define __stub macros and hopefully few prototypes,
4089 which can conflict with char $ac_func (); below.
4090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4091 <limits.h> exists even on freestanding compilers. */
4092 #ifdef __STDC__
4093 # include <limits.h>
4094 #else
4095 # include <assert.h>
4096 #endif
4097 /* Override any gcc2 internal prototype to avoid an error. */
4098 #ifdef __cplusplus
4099 extern "C"
4100 {
4101 #endif
4102 /* We use char because int might match the return type of a gcc2
4103 builtin and then its argument prototype would still apply. */
4104 char $ac_func ();
4105 /* The GNU C library defines this for functions which it implements
4106 to always fail with ENOSYS. Some functions are actually named
4107 something starting with __ and the normal name is an alias. */
4108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4109 choke me
4110 #else
4111 char (*f) () = $ac_func;
4112 #endif
4113 #ifdef __cplusplus
4114 }
4115 #endif
4116
4117 int
4118 main ()
4119 {
4120 return f != $ac_func;
4121 ;
4122 return 0;
4123 }
4124 _ACEOF
4125 rm -f conftest.$ac_objext conftest$ac_exeext
4126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4127 (eval $ac_link) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
4131 { ac_try='test -s conftest$ac_exeext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 eval "$as_ac_var=yes"
4138 else
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4141
4142 eval "$as_ac_var=no"
4143 fi
4144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4145 fi
4146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4148 if test `eval echo '${'$as_ac_var'}'` = yes; then
4149 cat >>confdefs.h <<_ACEOF
4150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4151 _ACEOF
4152
4153 fi
4154 done
4155
4156 LIBS="$asc_keep_LIBS"
4157
4158 #----------------------------------------------
4159 # Check for 'vsnprintf' -- there seems to be a problem with it in
4160 # on cygwin.
4161
4162
4163
4164
4165
4166
4167 for ac_func in snprintf vsnprintf
4168 do
4169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4170 echo "$as_me:$LINENO: checking for $ac_func" >&5
4171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4172 if eval "test \"\${$as_ac_var+set}\" = set"; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 else
4175 cat >conftest.$ac_ext <<_ACEOF
4176 #line $LINENO "configure"
4177 /* confdefs.h. */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4182 /* System header to define __stub macros and hopefully few prototypes,
4183 which can conflict with char $ac_func (); below.
4184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4185 <limits.h> exists even on freestanding compilers. */
4186 #ifdef __STDC__
4187 # include <limits.h>
4188 #else
4189 # include <assert.h>
4190 #endif
4191 /* Override any gcc2 internal prototype to avoid an error. */
4192 #ifdef __cplusplus
4193 extern "C"
4194 {
4195 #endif
4196 /* We use char because int might match the return type of a gcc2
4197 builtin and then its argument prototype would still apply. */
4198 char $ac_func ();
4199 /* The GNU C library defines this for functions which it implements
4200 to always fail with ENOSYS. Some functions are actually named
4201 something starting with __ and the normal name is an alias. */
4202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4203 choke me
4204 #else
4205 char (*f) () = $ac_func;
4206 #endif
4207 #ifdef __cplusplus
4208 }
4209 #endif
4210
4211 int
4212 main ()
4213 {
4214 return f != $ac_func;
4215 ;
4216 return 0;
4217 }
4218 _ACEOF
4219 rm -f conftest.$ac_objext conftest$ac_exeext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4221 (eval $ac_link) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -s conftest$ac_exeext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 eval "$as_ac_var=yes"
4232 else
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236 eval "$as_ac_var=no"
4237 fi
4238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4239 fi
4240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4242 if test `eval echo '${'$as_ac_var'}'` = yes; then
4243 cat >>confdefs.h <<_ACEOF
4244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4245 _ACEOF
4246
4247 fi
4248 done
4249
4250 echo "$as_me:$LINENO: checking for working snprintf" >&5
4251 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
4252 if test "${ac_cv_have_working_snprintf+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255 if test "$cross_compiling" = yes; then
4256 ac_cv_have_working_snprintf=cross
4257 else
4258 cat >conftest.$ac_ext <<_ACEOF
4259 #line $LINENO "configure"
4260 /* confdefs.h. */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 #include <stdio.h>
4266
4267 int main(void)
4268 {
4269 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
4270 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
4271 int i;
4272 i = snprintf (bufs, 2, "%s", "111");
4273 if (strcmp (bufs, "1")) exit (1);
4274 if (i != 3) exit (1);
4275 i = snprintf (bufd, 2, "%d", 111);
4276 if (strcmp (bufd, "1")) exit (1);
4277 if (i != 3) exit (1);
4278 exit(0);
4279 }
4280 _ACEOF
4281 rm -f conftest$ac_exeext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5