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

Contents of /trunk/base/autotools/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 368 - (show annotations) (download)
Fri Mar 10 08:39:24 2006 UTC (13 years, 9 months ago) by johnpye
File size: 265217 byte(s)
Added --enable-dynamic-packages option to ./configure:
Fixed bug #192.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.56.
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 LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS TCLINCLUDE TCLLIB TCLDYNAMICLINKING F77 BLASLIB LPAKLIB LSODLIB 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
857 Optional Packages:
858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-x use the X Window System
861 --without-tcl Disable Tcl
862 --with-tclconfig=path Set location of tclConfig.sh
863 --with-tcl=path Set location of Tcl package
864 --with-tclincl=path Set location of Tcl include directory
865 --with-tcllib=path Set location of Tcl library directory
866 Fortran compiler and libraries:
867 --with-fortran=F77,F77LIBS
868 The location of your Fortran compiler and its
869 library files. For example, under SunOS:
870 --with-fortran='f77,-L/usr/lang/lib -lF77 -lM77'
871 To specify only the compiler or libraries, leave off
872 whatever is not needed:
873 --with-fortran=',-L/usr/lang/lib -lF77 -lM77'
874 Use '--without-fortran' to not link against
875 any Fortran libraries
876 --with-blas=BLASLIB The full path to the blas library.
877 Use '--with-blas=build' to build the blas library
878 from the sources that come with the distribution.
879 --with-linpack=LPAKLIB The full path to the linpack library.
880 Use '--with-linpack=build' to build the library
881 from the sources that come with the distribution.
882 --with-lsod=LSODLIB The full path to the lsod library.
883 Use '--with-lsod=build' to build the lsod library
884 from the sources that come with the distribution.
885 Generation of Makefiles:
886 --without-tkdir do not generate Makefiles in the TK subdir
887 --without-models do not generate Makefiles in the models subdir
888
889 Some influential environment variables:
890 CC C compiler command
891 CFLAGS C compiler flags
892 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
893 nonstandard directory <lib dir>
894 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
895 headers in a nonstandard directory <include dir>
896 CPP C preprocessor
897
898 Use these variables to override the choices made by `configure' or to help
899 it to find libraries and programs with nonstandard names/locations.
900
901 _ACEOF
902 fi
903
904 if test "$ac_init_help" = "recursive"; then
905 # If there are subdirs, report their specific --help.
906 ac_popdir=`pwd`
907 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
908 test -d $ac_dir || continue
909 ac_builddir=.
910
911 if test "$ac_dir" != .; then
912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
913 # A "../" for each directory in $ac_dir_suffix.
914 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
915 else
916 ac_dir_suffix= ac_top_builddir=
917 fi
918
919 case $srcdir in
920 .) # No --srcdir option. We are building in place.
921 ac_srcdir=.
922 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=.
924 else
925 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
926 fi ;;
927 [\\/]* | ?:[\\/]* ) # Absolute path.
928 ac_srcdir=$srcdir$ac_dir_suffix;
929 ac_top_srcdir=$srcdir ;;
930 *) # Relative path.
931 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
932 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 esac
934 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
935 # absolute.
936 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
937 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
938 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
939 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
940
941 cd $ac_dir
942 # Check for guested configure; otherwise get Cygnus style configure.
943 if test -f $ac_srcdir/configure.gnu; then
944 echo
945 $SHELL $ac_srcdir/configure.gnu --help=recursive
946 elif test -f $ac_srcdir/configure; then
947 echo
948 $SHELL $ac_srcdir/configure --help=recursive
949 elif test -f $ac_srcdir/configure.ac ||
950 test -f $ac_srcdir/configure.in; then
951 echo
952 $ac_configure --help
953 else
954 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955 fi
956 cd $ac_popdir
957 done
958 fi
959
960 test -n "$ac_init_help" && exit 0
961 if $ac_init_version; then
962 cat <<\_ACEOF
963
964 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
965 Free Software Foundation, Inc.
966 This configure script is free software; the Free Software Foundation
967 gives unlimited permission to copy, distribute and modify it.
968 _ACEOF
969 exit 0
970 fi
971 exec 5>config.log
972 cat >&5 <<_ACEOF
973 This file contains any messages produced by compilers while
974 running configure, to aid debugging if configure makes a mistake.
975
976 It was created by $as_me, which was
977 generated by GNU Autoconf 2.56. Invocation command line was
978
979 $ $0 $@
980
981 _ACEOF
982 {
983 cat <<_ASUNAME
984 ## --------- ##
985 ## Platform. ##
986 ## --------- ##
987
988 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
989 uname -m = `(uname -m) 2>/dev/null || echo unknown`
990 uname -r = `(uname -r) 2>/dev/null || echo unknown`
991 uname -s = `(uname -s) 2>/dev/null || echo unknown`
992 uname -v = `(uname -v) 2>/dev/null || echo unknown`
993
994 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
995 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
996
997 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
998 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
999 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1000 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1001 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1002 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1003 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1004
1005 _ASUNAME
1006
1007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1008 for as_dir in $PATH
1009 do
1010 IFS=$as_save_IFS
1011 test -z "$as_dir" && as_dir=.
1012 echo "PATH: $as_dir"
1013 done
1014
1015 } >&5
1016
1017 cat >&5 <<_ACEOF
1018
1019
1020 ## ----------- ##
1021 ## Core tests. ##
1022 ## ----------- ##
1023
1024 _ACEOF
1025
1026
1027 # Keep a trace of the command line.
1028 # Strip out --no-create and --no-recursion so they do not pile up.
1029 # Strip out --silent because we don't want to record it for future runs.
1030 # Also quote any args containing shell meta-characters.
1031 # Make two passes to allow for proper duplicate-argument suppression.
1032 ac_configure_args=
1033 ac_configure_args0=
1034 ac_configure_args1=
1035 ac_sep=
1036 ac_must_keep_next=false
1037 for ac_pass in 1 2
1038 do
1039 for ac_arg
1040 do
1041 case $ac_arg in
1042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 continue ;;
1046 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1047 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1048 esac
1049 case $ac_pass in
1050 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1051 2)
1052 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1053 if test $ac_must_keep_next = true; then
1054 ac_must_keep_next=false # Got value, back to normal.
1055 else
1056 case $ac_arg in
1057 *=* | --config-cache | -C | -disable-* | --disable-* \
1058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1060 | -with-* | --with-* | -without-* | --without-* | --x)
1061 case "$ac_configure_args0 " in
1062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1063 esac
1064 ;;
1065 -* ) ac_must_keep_next=true ;;
1066 esac
1067 fi
1068 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1069 # Get rid of the leading space.
1070 ac_sep=" "
1071 ;;
1072 esac
1073 done
1074 done
1075 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1076 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1077
1078 # When interrupted or exit'd, cleanup temporary files, and complete
1079 # config.log. We remove comments because anyway the quotes in there
1080 # would cause problems or look ugly.
1081 # WARNING: Be sure not to use single quotes in there, as some shells,
1082 # such as our DU 5.0 friend, will then `close' the trap.
1083 trap 'exit_status=$?
1084 # Save into config.log some information that might help in debugging.
1085 {
1086 echo
1087
1088 cat <<\_ASBOX
1089 ## ---------------- ##
1090 ## Cache variables. ##
1091 ## ---------------- ##
1092 _ASBOX
1093 echo
1094 # The following way of writing the cache mishandles newlines in values,
1095 {
1096 (set) 2>&1 |
1097 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1098 *ac_space=\ *)
1099 sed -n \
1100 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102 ;;
1103 *)
1104 sed -n \
1105 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1106 ;;
1107 esac;
1108 }
1109 echo
1110
1111 cat <<\_ASBOX
1112 ## ----------------- ##
1113 ## Output variables. ##
1114 ## ----------------- ##
1115 _ASBOX
1116 echo
1117 for ac_var in $ac_subst_vars
1118 do
1119 eval ac_val=$`echo $ac_var`
1120 echo "$ac_var='"'"'$ac_val'"'"'"
1121 done | sort
1122 echo
1123
1124 if test -n "$ac_subst_files"; then
1125 cat <<\_ASBOX
1126 ## ------------- ##
1127 ## Output files. ##
1128 ## ------------- ##
1129 _ASBOX
1130 echo
1131 for ac_var in $ac_subst_files
1132 do
1133 eval ac_val=$`echo $ac_var`
1134 echo "$ac_var='"'"'$ac_val'"'"'"
1135 done | sort
1136 echo
1137 fi
1138
1139 if test -s confdefs.h; then
1140 cat <<\_ASBOX
1141 ## ----------- ##
1142 ## confdefs.h. ##
1143 ## ----------- ##
1144 _ASBOX
1145 echo
1146 sed "/^$/d" confdefs.h | sort
1147 echo
1148 fi
1149 test "$ac_signal" != 0 &&
1150 echo "$as_me: caught signal $ac_signal"
1151 echo "$as_me: exit $exit_status"
1152 } >&5
1153 rm -f core core.* *.core &&
1154 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1155 exit $exit_status
1156 ' 0
1157 for ac_signal in 1 2 13 15; do
1158 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1159 done
1160 ac_signal=0
1161
1162 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1163 rm -rf conftest* confdefs.h
1164 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1165 echo >confdefs.h
1166
1167 # Predefined preprocessor variables.
1168
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_NAME "$PACKAGE_NAME"
1171 _ACEOF
1172
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_STRING "$PACKAGE_STRING"
1186 _ACEOF
1187
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1191 _ACEOF
1192
1193
1194 # Let the site file select an alternate cache file if it wants to.
1195 # Prefer explicitly selected file to automatically selected ones.
1196 if test -z "$CONFIG_SITE"; then
1197 if test "x$prefix" != xNONE; then
1198 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1199 else
1200 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1201 fi
1202 fi
1203 for ac_site_file in $CONFIG_SITE; do
1204 if test -r "$ac_site_file"; then
1205 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1206 echo "$as_me: loading site script $ac_site_file" >&6;}
1207 sed 's/^/| /' "$ac_site_file" >&5
1208 . "$ac_site_file"
1209 fi
1210 done
1211
1212
1213 # Check that the precious variables saved in the cache have kept the same
1214 # value.
1215 ac_cache_corrupted=false
1216 for ac_var in `(set) 2>&1 |
1217 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1218 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1219 eval ac_new_set=\$ac_env_${ac_var}_set
1220 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1221 eval ac_new_val="\$ac_env_${ac_var}_value"
1222 case $ac_old_set,$ac_new_set in
1223 set,)
1224 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1225 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1226 ac_cache_corrupted=: ;;
1227 ,set)
1228 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1229 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1230 ac_cache_corrupted=: ;;
1231 ,);;
1232 *)
1233 if test "x$ac_old_val" != "x$ac_new_val"; then
1234 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1235 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1236 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1237 echo "$as_me: former value: $ac_old_val" >&2;}
1238 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1239 echo "$as_me: current value: $ac_new_val" >&2;}
1240 ac_cache_corrupted=:
1241 fi;;
1242 esac
1243 # Pass precious variables to config.status.
1244 if test "$ac_new_set" = set; then
1245 case $ac_new_val in
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1248 *) ac_arg=$ac_var=$ac_new_val ;;
1249 esac
1250 case " $ac_configure_args " in
1251 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1252 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1253 esac
1254 fi
1255 done
1256 if $ac_cache_corrupted; then
1257 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1258 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1259 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1260 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1261 { (exit 1); exit 1; }; }
1262 fi
1263
1264 ac_ext=c
1265 ac_cpp='$CPP $CPPFLAGS'
1266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290 #--------------------------------------------------------------------
1291 # CVS Most Recent Revision Data
1292 # Put this data after AC_INIT since we want this information
1293 # to also appear in configure and autoconf, when creating
1294 # configure, strips all comments that appear in configure.in
1295 # before AC_INIT
1296 # $Revision: 1.38 $
1297 # $Date: 2003/11/23 19:36:39 $
1298 # $Author: ballan $
1299 # $Source: /afs/cs.cmu.edu/project/ascend/Repository/configure.in,v $
1300 #--------------------------------------------------------------------
1301
1302
1303 #--------------------------------------------------------------------
1304 # Where configure should look for files it needs.
1305 #--------------------------------------------------------------------
1306 ac_aux_dir=
1307 for ac_dir in config $srcdir/config; do
1308 if test -f $ac_dir/install-sh; then
1309 ac_aux_dir=$ac_dir
1310 ac_install_sh="$ac_aux_dir/install-sh -c"
1311 break
1312 elif test -f $ac_dir/install.sh; then
1313 ac_aux_dir=$ac_dir
1314 ac_install_sh="$ac_aux_dir/install.sh -c"
1315 break
1316 elif test -f $ac_dir/shtool; then
1317 ac_aux_dir=$ac_dir
1318 ac_install_sh="$ac_aux_dir/shtool install -c"
1319 break
1320 fi
1321 done
1322 if test -z "$ac_aux_dir"; then
1323 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1324 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1325 { (exit 1); exit 1; }; }
1326 fi
1327 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1328 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1329 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1330
1331
1332 #--------------------------------------------------------------------
1333 # Set the output variables prefix and exec_prefix that
1334 # determine where things will be installed.
1335 #--------------------------------------------------------------------
1336 if test "${prefix}" = "NONE"; then
1337 prefix=/usr/local
1338 fi
1339 if test "${exec_prefix}" = "NONE"; then
1340 exec_prefix=$prefix
1341 fi
1342
1343
1344 #--------------------------------------------------------------------
1345 # For the Fortran support libraries and the TCL/TK libraries
1346 # and header files, we unfortunately need the full path to
1347 # these files. The problem with having the full path is that
1348 # if the user moves the source tree, things will break unless
1349 # the user re-runs configure.
1350 #--------------------------------------------------------------------
1351
1352 #--------------------------------------------------------------------
1353 ##AWW
1354 ##AWW We put the .o files when compiling into a tree structure
1355 ##AWW relative to the directory in which we currently reside,
1356 ##AWW while the .c and .h files are in a similar tree structure
1357 ##AWW relative to the configure instruction we invoke. This
1358 ##AWW allows one to have separate .o files in their own tree when
1359 ##AWW compiling for different operating systems.
1360 ##AWW
1361 ##AWW Example 1 (same directories)
1362 ##AWW Current directory one is in: /home/me/trunk/base/unixAC213
1363 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1364 ##AWW Command to invoke configure: ./configure
1365 ##AWW $ascpwd will be: /home/me/trunk/base/unixAC213
1366 ##AWW $srcdir will be: .
1367 ##AWW
1368 ##AWW Example 2 (different directories, abs path for command)
1369 ##AWW Current directory one is in: /home/me/trunk/base/newTree
1370 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1371 ##AWW Command to invoke configure: /home/me/trunk/base/unixAC213/configure
1372 ##AWW $ascpwd will be: /home/me/trunk/base/newTree
1373 ##AWW $srcdir will be: /home/me/trunk/base/unixAC213
1374 ##AWW
1375 ##AWW Example 3 (different directories, rel path for command)
1376 ##AWW Same as Example 2
1377 ##AWW Command to invoke configure: ../unixAC213/configure
1378 ##AWW $ascpwd will be: /home/me/trunk/base/newTree (same as in Example 2)
1379 ##AWW $srcdir will be: ../unixAC213
1380 ##AWW
1381 ##AWW Key elements of the source tree are:
1382 ##AWW code/trunk/trunk/base/unixAC213/configure
1383 ##AWW code/trunk/trunk/base/generic
1384 ##AWW code/trunk/tcltk98
1385 ##AWW where $srcdir is pointing to /home/me/trunk/base/unixAC213, the folder
1386 ##AWW containing "configure"
1387 ##AWW
1388 ##AWW Configure is located at:
1389 ##AWW $srcdir/configure
1390 ##AWW while the .c/.h files one wants are in:
1391 ##AWW $srcdir/../generic/compiler
1392 ##AWW $srcdir/../generic/general
1393 ##AWW $srcdir/../generic/packages
1394 ##AWW $srcdir/../generic/solver
1395 ##AWW $srcdir/../generic/utilities
1396 ##AWW $srcdir/../../tcltk98/generic/interface
1397 ##AWW
1398 ##AWW Each of these directories contain Makefiles and possible
1399 ##AWW need to find .h files in the other directories. For example
1400 ##AWW the include statements are always of the form
1401 ##AWW #include compiler/slv3.h or
1402 ##AWW #include interface/SlvProc.h
1403 ##AWW
1404 ##AWW A safe include path should assume one is a directory with any
1405 ##AWW of these .h and .c files and one needs to find a .h file in
1406 ##AWW any other of them. The following paths should do it.
1407 ##AWW
1408 ##AWW If in compiler, general, packages, solver, utilities
1409 ##AWW .. for general, packages, etc
1410 ##AWW ../../../tcltk98/generic for interface
1411 ##AWW If in interface
1412 ##AWW .. for interface
1413 ##AWW ../../../base/generic for compiler, general, ..
1414 ##AWW
1415 #--------------------------------------------------------------------
1416 # The asc_include variable is (directory) path to the ascend4
1417 # SOURCE directory relative to the immediate subdirectories of
1418 # the ascend4 OBJECT directory. --rewrite - not clear.
1419 #AWW To compile a new ASCEND executable, one should move into the
1420 #AWW directory in which one wants the ASCEND object/executable
1421 #AWW to reside (call this objTree) and from there run
1422 #AWW ../base/unixAC213/configure.
1423 #AWW In the following code asc_include is set to the path from
1424 #JP I think that the current recommendation is to install from
1425 #JP run ./configure (ie from this directory)
1426
1427 ascpwd=`pwd`
1428 fullpathsrcdir=`cd $srcdir ; pwd`
1429
1430 case "$srcdir" in
1431 .)
1432 asc_include="../$srcdir"
1433 ;;
1434 /*)
1435 asc_include="$srcdir/../generic"
1436 ;;
1437 *)
1438 asc_include="$srcdir/../generic"
1439 ;;
1440 esac
1441
1442
1443 #--------------------------------------------------------------------
1444 # Do basic checks to determine
1445 # * if we have `ranlib'
1446 # * if we can create symbolic links
1447 # * if `make' sets the MAKE macro
1448 # * a bsd-compatible `install' program
1449 # If we use the install-sh script that comes with configure,
1450 # prefix it with the current directory so it'll work in
1451 # subdirectories. Unfortunately, it won't work if the user
1452 # moves the source tree.
1453 #--------------------------------------------------------------------
1454 if test -n "$ac_tool_prefix"; then
1455 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1456 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1457 echo "$as_me:$LINENO: checking for $ac_word" >&5
1458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459 if test "${ac_cv_prog_RANLIB+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 else
1462 if test -n "$RANLIB"; then
1463 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1464 else
1465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 for as_dir in $PATH
1467 do
1468 IFS=$as_save_IFS
1469 test -z "$as_dir" && as_dir=.
1470 for ac_exec_ext in '' $ac_executable_extensions; do
1471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474 break 2
1475 fi
1476 done
1477 done
1478
1479 fi
1480 fi
1481 RANLIB=$ac_cv_prog_RANLIB
1482 if test -n "$RANLIB"; then
1483 echo "$as_me:$LINENO: result: $RANLIB" >&5
1484 echo "${ECHO_T}$RANLIB" >&6
1485 else
1486 echo "$as_me:$LINENO: result: no" >&5
1487 echo "${ECHO_T}no" >&6
1488 fi
1489
1490 fi
1491 if test -z "$ac_cv_prog_RANLIB"; then
1492 ac_ct_RANLIB=$RANLIB
1493 # Extract the first word of "ranlib", so it can be a program name with args.
1494 set dummy ranlib; ac_word=$2
1495 echo "$as_me:$LINENO: checking for $ac_word" >&5
1496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500 if test -n "$ac_ct_RANLIB"; then
1501 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1502 else
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 for as_dir in $PATH
1505 do
1506 IFS=$as_save_IFS
1507 test -z "$as_dir" && as_dir=.
1508 for ac_exec_ext in '' $ac_executable_extensions; do
1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510 ac_cv_prog_ac_ct_RANLIB="ranlib"
1511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 break 2
1513 fi
1514 done
1515 done
1516
1517 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1518 fi
1519 fi
1520 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1521 if test -n "$ac_ct_RANLIB"; then
1522 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1523 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1524 else
1525 echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1527 fi
1528
1529 RANLIB=$ac_ct_RANLIB
1530 else
1531 RANLIB="$ac_cv_prog_RANLIB"
1532 fi
1533
1534 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1535 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1536 LN_S=$as_ln_s
1537 if test "$LN_S" = "ln -s"; then
1538 echo "$as_me:$LINENO: result: yes" >&5
1539 echo "${ECHO_T}yes" >&6
1540 else
1541 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1542 echo "${ECHO_T}no, using $LN_S" >&6
1543 fi
1544
1545 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1546 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1547 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1548 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551 cat >conftest.make <<\_ACEOF
1552 all:
1553 @echo 'ac_maketemp="$(MAKE)"'
1554 _ACEOF
1555 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1556 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1557 if test -n "$ac_maketemp"; then
1558 eval ac_cv_prog_make_${ac_make}_set=yes
1559 else
1560 eval ac_cv_prog_make_${ac_make}_set=no
1561 fi
1562 rm -f conftest.make
1563 fi
1564 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1565 echo "$as_me:$LINENO: result: yes" >&5
1566 echo "${ECHO_T}yes" >&6
1567 SET_MAKE=
1568 else
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571 SET_MAKE="MAKE=${MAKE-make}"
1572 fi
1573
1574 # Find a good install program. We prefer a C program (faster),
1575 # so one script is as good as another. But avoid the broken or
1576 # incompatible versions:
1577 # SysV /etc/install, /usr/sbin/install
1578 # SunOS /usr/etc/install
1579 # IRIX /sbin/install
1580 # AIX /bin/install
1581 # AmigaOS /C/install, which installs bootblocks on floppy discs
1582 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1583 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1584 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1585 # ./install, which can be erroneously created by make from ./install.sh.
1586 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1587 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1588 if test -z "$INSTALL"; then
1589 if test "${ac_cv_path_install+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1594 do
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 # Account for people who put trailing slashes in PATH elements.
1598 case $as_dir/ in
1599 ./ | .// | /cC/* | \
1600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1601 /usr/ucb/* ) ;;
1602 *)
1603 # OSF1 and SCO ODT 3.0 have their own names for install.
1604 # Don't use installbsd from OSF since it installs stuff as root
1605 # by default.
1606 for ac_prog in ginstall scoinst install; do
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1609 if test $ac_prog = install &&
1610 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1611 # AIX install. It has an incompatible calling convention.
1612 :
1613 elif test $ac_prog = install &&
1614 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1615 # program-specific install script used by HP pwplus--don't use.
1616 :
1617 else
1618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1619 break 3
1620 fi
1621 fi
1622 done
1623 done
1624 ;;
1625 esac
1626 done
1627
1628
1629 fi
1630 if test "${ac_cv_path_install+set}" = set; then
1631 INSTALL=$ac_cv_path_install
1632 else
1633 # As a last resort, use the slow shell script. We don't cache a
1634 # path for INSTALL within a source directory, because that will
1635 # break other packages using the cache if that directory is
1636 # removed, or if the path is relative.
1637 INSTALL=$ac_install_sh
1638 fi
1639 fi
1640 echo "$as_me:$LINENO: result: $INSTALL" >&5
1641 echo "${ECHO_T}$INSTALL" >&6
1642
1643 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1644 # It thinks the first close brace ends the variable substitution.
1645 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1646
1647 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1648
1649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1650
1651
1652 case "X$INSTALL" in
1653 X/*)
1654 ;;
1655 *)
1656 INSTALL="$ascpwd/$INSTALL"
1657 ;;
1658 esac
1659
1660
1661 #--------------------------------------------------------------------
1662 # Get the host type for various checks along the way
1663 #--------------------------------------------------------------------
1664 # Make sure we can run config.sub.
1665 $ac_config_sub sun4 >/dev/null 2>&1 ||
1666 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1667 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1668 { (exit 1); exit 1; }; }
1669
1670 echo "$as_me:$LINENO: checking build system type" >&5
1671 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1672 if test "${ac_cv_build+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675 ac_cv_build_alias=$build_alias
1676 test -z "$ac_cv_build_alias" &&
1677 ac_cv_build_alias=`$ac_config_guess`
1678 test -z "$ac_cv_build_alias" &&
1679 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1680 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1681 { (exit 1); exit 1; }; }
1682 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1683 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1684 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1685 { (exit 1); exit 1; }; }
1686
1687 fi
1688 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1689 echo "${ECHO_T}$ac_cv_build" >&6
1690 build=$ac_cv_build
1691 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1692 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1693 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1694
1695
1696 echo "$as_me:$LINENO: checking host system type" >&5
1697 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1698 if test "${ac_cv_host+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701 ac_cv_host_alias=$host_alias
1702 test -z "$ac_cv_host_alias" &&
1703 ac_cv_host_alias=$ac_cv_build_alias
1704 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1705 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1706 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1707 { (exit 1); exit 1; }; }
1708
1709 fi
1710 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1711 echo "${ECHO_T}$ac_cv_host" >&6
1712 host=$ac_cv_host
1713 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1714 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1715 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1716
1717
1718
1719 #--------------------------------------------------------------------
1720 # Check for the C compiler: set CC and CFLAGS.
1721 # If the user does NOT specify `--enable-gcc' on the configure
1722 # command command line, set CC to either the envar CC or `cc'.
1723 # Call AC_PROG_CC which will use the value of CC (perhaps set
1724 # immediately above) or will check for `gcc' and then for `cc'
1725 # if `gcc' is not found.
1726 #
1727 # If we are using GCC, then assume it groks ANSI. Otherwise,
1728 # try to compile a small program using ANSI constructs with
1729 # CC. If this fails, try to locate each of the following:
1730 # c89 xlc acc
1731 # and if successful, see if it compiles an ANSI C program.
1732 # (Doing this in a loop would be ideal, but configure caches
1733 # the result of AC_CHECK_PROG and uses the cached value for
1734 # all but the first pass through the loop. This is also the
1735 # reason we have to use a different variable asc_cc1, asc_cc2
1736 # for each call to AC_CHECK_PROG.
1737 #
1738 # If we do not find an ANSI C compiler, print a warning and
1739 # use the first value of CC we tried.
1740 #--------------------------------------------------------------------
1741 #JP removed the lengthy CC tests, since ANSI C is pretty universal
1742 #JP these days, and GCC can pretty much be assumed if we're using
1743 #JP Autotools.
1744
1745 ac_ext=c
1746 ac_cpp='$CPP $CPPFLAGS'
1747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1750 if test -n "$ac_tool_prefix"; then
1751 for ac_prog in gcc
1752 do
1753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760 if test -n "$CC"; then
1761 ac_cv_prog_CC="$CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766 IFS=$as_save_IFS
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 break 2
1773 fi
1774 done
1775 done
1776
1777 fi
1778 fi
1779 CC=$ac_cv_prog_CC
1780 if test -n "$CC"; then
1781 echo "$as_me:$LINENO: result: $CC" >&5
1782 echo "${ECHO_T}$CC" >&6
1783 else
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788 test -n "$CC" && break
1789 done
1790 fi
1791 if test -z "$CC"; then
1792 ac_ct_CC=$CC
1793 for ac_prog in gcc
1794 do
1795 # Extract the first word of "$ac_prog", so it can be a program name with args.
1796 set dummy $ac_prog; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 if test -n "$ac_ct_CC"; then
1803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1804 else
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 for as_dir in $PATH
1807 do
1808 IFS=$as_save_IFS
1809 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 ac_cv_prog_ac_ct_CC="$ac_prog"
1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814 break 2
1815 fi
1816 done
1817 done
1818
1819 fi
1820 fi
1821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1822 if test -n "$ac_ct_CC"; then
1823 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1824 echo "${ECHO_T}$ac_ct_CC" >&6
1825 else
1826 echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1828 fi
1829
1830 test -n "$ac_ct_CC" && break
1831 done
1832
1833 CC=$ac_ct_CC
1834 fi
1835
1836
1837 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1838 See \`config.log' for more details." >&5
1839 echo "$as_me: error: no acceptable C compiler found in \$PATH
1840 See \`config.log' for more details." >&2;}
1841 { (exit 1); exit 1; }; }
1842
1843 # Provide some information about the compiler.
1844 echo "$as_me:$LINENO:" \
1845 "checking for C compiler version" >&5
1846 ac_compiler=`set X $ac_compile; echo $2`
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1848 (eval $ac_compiler --version </dev/null >&5) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1853 (eval $ac_compiler -v </dev/null >&5) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }
1857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1858 (eval $ac_compiler -V </dev/null >&5) 2>&5
1859 ac_status=$?
1860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861 (exit $ac_status); }
1862
1863 cat >conftest.$ac_ext <<_ACEOF
1864 #line $LINENO "configure"
1865 /* confdefs.h. */
1866 _ACEOF
1867 cat confdefs.h >>conftest.$ac_ext
1868 cat >>conftest.$ac_ext <<_ACEOF
1869 /* end confdefs.h. */
1870
1871 int
1872 main ()
1873 {
1874
1875 ;
1876 return 0;
1877 }
1878 _ACEOF
1879 ac_clean_files_save=$ac_clean_files
1880 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1881 # Try to create an executable without -o first, disregard a.out.
1882 # It will help us diagnose broken compilers, and finding out an intuition
1883 # of exeext.
1884 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1885 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1886 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1887 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1888 (eval $ac_link_default) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; then
1892 # Find the output, starting from the most likely. This scheme is
1893 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1894 # resort.
1895
1896 # Be careful to initialize this variable, since it used to be cached.
1897 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1898 ac_cv_exeext=
1899 # b.out is created by i960 compilers.
1900 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1901 do
1902 test -f "$ac_file" || continue
1903 case $ac_file in
1904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1905 ;;
1906 conftest.$ac_ext )
1907 # This is the source file.
1908 ;;
1909 [ab].out )
1910 # We found the default executable, but exeext='' is most
1911 # certainly right.
1912 break;;
1913 *.* )
1914 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1915 # FIXME: I believe we export ac_cv_exeext for Libtool,
1916 # but it would be cool to find out if it's true. Does anybody
1917 # maintain Libtool? --akim.
1918 export ac_cv_exeext
1919 break;;
1920 * )
1921 break;;
1922 esac
1923 done
1924 else
1925 echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1927
1928 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1929 See \`config.log' for more details." >&5
1930 echo "$as_me: error: C compiler cannot create executables
1931 See \`config.log' for more details." >&2;}
1932 { (exit 77); exit 77; }; }
1933 fi
1934
1935 ac_exeext=$ac_cv_exeext
1936 echo "$as_me:$LINENO: result: $ac_file" >&5
1937 echo "${ECHO_T}$ac_file" >&6
1938
1939 # Check the compiler produces executables we can run. If not, either
1940 # the compiler is broken, or we cross compile.
1941 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1942 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1943 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1944 # If not cross compiling, check that we can run a simple program.
1945 if test "$cross_compiling" != yes; then
1946 if { ac_try='./$ac_file'
1947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1948 (eval $ac_try) 2>&5
1949 ac_status=$?
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }; }; then
1952 cross_compiling=no
1953 else
1954 if test "$cross_compiling" = maybe; then
1955 cross_compiling=yes
1956 else
1957 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1958 If you meant to cross compile, use \`--host'.
1959 See \`config.log' for more details." >&5
1960 echo "$as_me: error: cannot run C compiled programs.
1961 If you meant to cross compile, use \`--host'.
1962 See \`config.log' for more details." >&2;}
1963 { (exit 1); exit 1; }; }
1964 fi
1965 fi
1966 fi
1967 echo "$as_me:$LINENO: result: yes" >&5
1968 echo "${ECHO_T}yes" >&6
1969
1970 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1971 ac_clean_files=$ac_clean_files_save
1972 # Check the compiler produces executables we can run. If not, either
1973 # the compiler is broken, or we cross compile.
1974 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1975 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1976 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1977 echo "${ECHO_T}$cross_compiling" >&6
1978
1979 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1980 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1982 (eval $ac_link) 2>&5
1983 ac_status=$?
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }; then
1986 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1987 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1988 # work properly (i.e., refer to `conftest.exe'), while it won't with
1989 # `rm'.
1990 for ac_file in conftest.exe conftest conftest.*; do
1991 test -f "$ac_file" || continue
1992 case $ac_file in
1993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1994 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1995 export ac_cv_exeext
1996 break;;
1997 * ) break;;
1998 esac
1999 done
2000 else
2001 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2002 See \`config.log' for more details." >&5
2003 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2004 See \`config.log' for more details." >&2;}
2005 { (exit 1); exit 1; }; }
2006 fi
2007
2008 rm -f conftest$ac_cv_exeext
2009 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2010 echo "${ECHO_T}$ac_cv_exeext" >&6
2011
2012 rm -f conftest.$ac_ext
2013 EXEEXT=$ac_cv_exeext
2014 ac_exeext=$EXEEXT
2015 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2016 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2017 if test "${ac_cv_objext+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020 cat >conftest.$ac_ext <<_ACEOF
2021 #line $LINENO "configure"
2022 /* confdefs.h. */
2023 _ACEOF
2024 cat confdefs.h >>conftest.$ac_ext
2025 cat >>conftest.$ac_ext <<_ACEOF
2026 /* end confdefs.h. */
2027
2028 int
2029 main ()
2030 {
2031
2032 ;
2033 return 0;
2034 }
2035 _ACEOF
2036 rm -f conftest.o conftest.obj
2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038 (eval $ac_compile) 2>&5
2039 ac_status=$?
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; then
2042 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2043 case $ac_file in
2044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2045 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2046 break;;
2047 esac
2048 done
2049 else
2050 echo "$as_me: failed program was:" >&5
2051 sed 's/^/| /' conftest.$ac_ext >&5
2052
2053 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2054 See \`config.log' for more details." >&5
2055 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2056 See \`config.log' for more details." >&2;}
2057 { (exit 1); exit 1; }; }
2058 fi
2059
2060 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2061 fi
2062 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2063 echo "${ECHO_T}$ac_cv_objext" >&6
2064 OBJEXT=$ac_cv_objext
2065 ac_objext=$OBJEXT
2066 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2067 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2068 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 cat >conftest.$ac_ext <<_ACEOF
2072 #line $LINENO "configure"
2073 /* confdefs.h. */
2074 _ACEOF
2075 cat confdefs.h >>conftest.$ac_ext
2076 cat >>conftest.$ac_ext <<_ACEOF
2077 /* end confdefs.h. */
2078
2079 int
2080 main ()
2081 {
2082 #ifndef __GNUC__
2083 choke me
2084 #endif
2085
2086 ;
2087 return 0;
2088 }
2089 _ACEOF
2090 rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); } &&
2096 { ac_try='test -s conftest.$ac_objext'
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 (eval $ac_try) 2>&5
2099 ac_status=$?
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; }; then
2102 ac_compiler_gnu=yes
2103 else
2104 echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2106
2107 ac_compiler_gnu=no
2108 fi
2109 rm -f conftest.$ac_objext conftest.$ac_ext
2110 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2111
2112 fi
2113 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2114 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2115 GCC=`test $ac_compiler_gnu = yes && echo yes`
2116 ac_test_CFLAGS=${CFLAGS+set}
2117 ac_save_CFLAGS=$CFLAGS
2118 CFLAGS="-g"
2119 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2120 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2121 if test "${ac_cv_prog_cc_g+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line $LINENO "configure"
2126 /* confdefs.h. */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2131
2132 int
2133 main ()
2134 {
2135
2136 ;
2137 return 0;
2138 }
2139 _ACEOF
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } &&
2146 { ac_try='test -s conftest.$ac_objext'
2147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148 (eval $ac_try) 2>&5
2149 ac_status=$?
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }; }; then
2152 ac_cv_prog_cc_g=yes
2153 else
2154 echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.$ac_ext >&5
2156
2157 ac_cv_prog_cc_g=no
2158 fi
2159 rm -f conftest.$ac_objext conftest.$ac_ext
2160 fi
2161 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2162 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2163 if test "$ac_test_CFLAGS" = set; then
2164 CFLAGS=$ac_save_CFLAGS
2165 elif test $ac_cv_prog_cc_g = yes; then
2166 if test "$GCC" = yes; then
2167 CFLAGS="-g -O2"
2168 else
2169 CFLAGS="-g"
2170 fi
2171 else
2172 if test "$GCC" = yes; then
2173 CFLAGS="-O2"
2174 else
2175 CFLAGS=
2176 fi
2177 fi
2178 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2179 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2180 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183 ac_cv_prog_cc_stdc=no
2184 ac_save_CC=$CC
2185 cat >conftest.$ac_ext <<_ACEOF
2186 #line $LINENO "configure"
2187 /* confdefs.h. */
2188 _ACEOF
2189 cat confdefs.h >>conftest.$ac_ext
2190 cat >>conftest.$ac_ext <<_ACEOF
2191 /* end confdefs.h. */
2192 #include <stdarg.h>
2193 #include <stdio.h>
2194 #include <sys/types.h>
2195 #include <sys/stat.h>
2196 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2197 struct buf { int x; };
2198 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2199 static char *e (p, i)
2200 char **p;
2201 int i;
2202 {
2203 return p[i];
2204 }
2205 static char *f (char * (*g) (char **, int), char **p, ...)
2206 {
2207 char *s;
2208 va_list v;
2209 va_start (v,p);
2210 s = g (p, va_arg (v,int));
2211 va_end (v);
2212 return s;
2213 }
2214 int test (int i, double x);
2215 struct s1 {int (*f) (int a);};
2216 struct s2 {int (*f) (double a);};
2217 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2218 int argc;
2219 char **argv;
2220 int
2221 main ()
2222 {
2223 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2224 ;
2225 return 0;
2226 }
2227 _ACEOF
2228 # Don't try gcc -ansi; that turns off useful extensions and
2229 # breaks some systems' header files.
2230 # AIX -qlanglvl=ansi
2231 # Ultrix and OSF/1 -std1
2232 # HP-UX 10.20 and later -Ae
2233 # HP-UX older versions -Aa -D_HPUX_SOURCE
2234 # SVR4 -Xc -D__EXTENSIONS__
2235 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2236 do
2237 CC="$ac_save_CC $ac_arg"
2238 rm -f conftest.$ac_objext
2239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240 (eval $ac_compile) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); } &&
2244 { ac_try='test -s conftest.$ac_objext'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 (eval $ac_try) 2>&5
2247 ac_status=$?
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2250 ac_cv_prog_cc_stdc=$ac_arg
2251 break
2252 else
2253 echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2255
2256 fi
2257 rm -f conftest.$ac_objext
2258 done
2259 rm -f conftest.$ac_ext conftest.$ac_objext
2260 CC=$ac_save_CC
2261
2262 fi
2263
2264 case "x$ac_cv_prog_cc_stdc" in
2265 x|xno)
2266 echo "$as_me:$LINENO: result: none needed" >&5
2267 echo "${ECHO_T}none needed" >&6 ;;
2268 *)
2269 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2270 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2271 CC="$CC $ac_cv_prog_cc_stdc" ;;
2272 esac
2273
2274 # Some people use a C++ compiler to compile C. Since we use `exit',
2275 # in C++ we need to declare it. In case someone uses the same compiler
2276 # for both compiling C and C++ we need to have the C++ compiler decide
2277 # the declaration of exit, since it's the most demanding environment.
2278 cat >conftest.$ac_ext <<_ACEOF
2279 #ifndef __cplusplus
2280 choke me
2281 #endif
2282 _ACEOF
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>&5
2286 ac_status=$?
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try='test -s conftest.$ac_objext'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 (eval $ac_try) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; }; then
2295 for ac_declaration in \
2296 ''\
2297 '#include <stdlib.h>' \
2298 'extern "C" void std::exit (int) throw (); using std::exit;' \
2299 'extern "C" void std::exit (int); using std::exit;' \
2300 'extern "C" void exit (int) throw ();' \
2301 'extern "C" void exit (int);' \
2302 'void exit (int);'
2303 do
2304 cat >conftest.$ac_ext <<_ACEOF
2305 #line $LINENO "configure"
2306 /* confdefs.h. */
2307 _ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h. */
2311 #include <stdlib.h>
2312 $ac_declaration
2313 int
2314 main ()
2315 {
2316 exit (42);
2317 ;
2318 return 0;
2319 }
2320 _ACEOF
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323 (eval $ac_compile) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 :
2334 else
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2337
2338 continue
2339 fi
2340 rm -f conftest.$ac_objext conftest.$ac_ext
2341 cat >conftest.$ac_ext <<_ACEOF
2342 #line $LINENO "configure"
2343 /* confdefs.h. */
2344 _ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2348 $ac_declaration
2349 int
2350 main ()
2351 {
2352 exit (42);
2353 ;
2354 return 0;
2355 }
2356 _ACEOF
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2369 break
2370 else
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2373
2374 fi
2375 rm -f conftest.$ac_objext conftest.$ac_ext
2376 done
2377 rm -f conftest*
2378 if test -n "$ac_declaration"; then
2379 echo '#ifdef __cplusplus' >>confdefs.h
2380 echo $ac_declaration >>confdefs.h
2381 echo '#endif' >>confdefs.h
2382 fi
2383
2384 else
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2387
2388 fi
2389 rm -f conftest.$ac_objext conftest.$ac_ext
2390 ac_ext=c
2391 ac_cpp='$CPP $CPPFLAGS'
2392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2395
2396
2397 #--------------------------------------------------------------------
2398 # Do other misc checks with CC and CFLAGS.
2399 #
2400 # Determine how to run the C preprocessor.
2401 #
2402 # If the user specifies --enable-optimization, remove `-g'
2403 # from CFLAGS, add `-O' to CFLAGS, and define `NDEBUG'. If
2404 # we are not building optimized, check for special libraries
2405 # needed for building a debugging binary (currenly only
2406 # /usr/lib/end.o under HPUX).
2407 #
2408 # Check if we're running on AIX; if so, add `-D_ALL_SOURCE'
2409 # to CFLAGS.
2410 #
2411 # Check if we're running on HPUX; if so, add -D_HPUX_SOURCE'
2412 # to CFLAGS unless the C preprocessor goes it for us.
2413 #--------------------------------------------------------------------
2414
2415 ac_ext=c
2416 ac_cpp='$CPP $CPPFLAGS'
2417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2420 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2421 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2422 # On Suns, sometimes $CPP names a directory.
2423 if test -n "$CPP" && test -d "$CPP"; then
2424 CPP=
2425 fi
2426 if test -z "$CPP"; then
2427 if test "${ac_cv_prog_CPP+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430 # Double quotes because CPP needs to be expanded
2431 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2432 do
2433 ac_preproc_ok=false
2434 for ac_c_preproc_warn_flag in '' yes
2435 do
2436 # Use a header file that comes with gcc, so configuring glibc
2437 # with a fresh cross-compiler works.
2438 # On the NeXT, cc -E runs the code through the compiler's parser,
2439 # not just through cpp. "Syntax error" is here to catch this case.
2440 cat >conftest.$ac_ext <<_ACEOF
2441 #line $LINENO "configure"
2442 /* confdefs.h. */
2443 _ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2447 #include <assert.h>
2448 Syntax error
2449 _ACEOF
2450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2452 ac_status=$?
2453 grep -v '^ *+' conftest.er1 >conftest.err
2454 rm -f conftest.er1
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } >/dev/null; then
2458 if test -s conftest.err; then
2459 ac_cpp_err=$ac_c_preproc_warn_flag
2460 else
2461 ac_cpp_err=
2462 fi
2463 else
2464 ac_cpp_err=yes
2465 fi
2466 if test -z "$ac_cpp_err"; then
2467 :
2468 else
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 # Broken: fails on valid input.
2473 continue
2474 fi
2475 rm -f conftest.err conftest.$ac_ext
2476
2477 # OK, works on sane cases. Now check whether non-existent headers
2478 # can be detected and how.
2479 cat >conftest.$ac_ext <<_ACEOF
2480 #line $LINENO "configure"
2481 /* confdefs.h. */
2482 _ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2486 #include <ac_nonexistent.h>
2487 _ACEOF
2488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } >/dev/null; then
2496 if test -s conftest.err; then
2497 ac_cpp_err=$ac_c_preproc_warn_flag
2498 else
2499 ac_cpp_err=
2500 fi
2501 else
2502 ac_cpp_err=yes
2503 fi
2504 if test -z "$ac_cpp_err"; then
2505 # Broken: success on invalid input.
2506 continue
2507 else
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 # Passes both tests.
2512 ac_preproc_ok=:
2513 break
2514 fi
2515 rm -f conftest.err conftest.$ac_ext
2516
2517 done
2518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2519 rm -f conftest.err conftest.$ac_ext
2520 if $ac_preproc_ok; then
2521 break
2522 fi
2523
2524 done
2525 ac_cv_prog_CPP=$CPP
2526
2527 fi
2528 CPP=$ac_cv_prog_CPP
2529 else
2530 ac_cv_prog_CPP=$CPP
2531 fi
2532 echo "$as_me:$LINENO: result: $CPP" >&5
2533 echo "${ECHO_T}$CPP" >&6
2534 ac_preproc_ok=false
2535 for ac_c_preproc_warn_flag in '' yes
2536 do
2537 # Use a header file that comes with gcc, so configuring glibc
2538 # with a fresh cross-compiler works.
2539 # On the NeXT, cc -E runs the code through the compiler's parser,
2540 # not just through cpp. "Syntax error" is here to catch this case.
2541 cat >conftest.$ac_ext <<_ACEOF
2542 #line $LINENO "configure"
2543 /* confdefs.h. */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2548 #include <assert.h>
2549 Syntax error
2550 _ACEOF
2551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2553 ac_status=$?
2554 grep -v '^ *+' conftest.er1 >conftest.err
2555 rm -f conftest.er1
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } >/dev/null; then
2559 if test -s conftest.err; then
2560 ac_cpp_err=$ac_c_preproc_warn_flag
2561 else
2562 ac_cpp_err=
2563 fi
2564 else
2565 ac_cpp_err=yes
2566 fi
2567 if test -z "$ac_cpp_err"; then
2568 :
2569 else
2570 echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573 # Broken: fails on valid input.
2574 continue
2575 fi
2576 rm -f conftest.err conftest.$ac_ext
2577
2578 # OK, works on sane cases. Now check whether non-existent headers
2579 # can be detected and how.
2580 cat >conftest.$ac_ext <<_ACEOF
2581 #line $LINENO "configure"
2582 /* confdefs.h. */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2587 #include <ac_nonexistent.h>
2588 _ACEOF
2589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2591 ac_status=$?
2592 grep -v '^ *+' conftest.er1 >conftest.err
2593 rm -f conftest.er1
2594 cat conftest.err >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } >/dev/null; then
2597 if test -s conftest.err; then
2598 ac_cpp_err=$ac_c_preproc_warn_flag
2599 else
2600 ac_cpp_err=
2601 fi
2602 else
2603 ac_cpp_err=yes
2604 fi
2605 if test -z "$ac_cpp_err"; then
2606 # Broken: success on invalid input.
2607 continue
2608 else
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2611
2612 # Passes both tests.
2613 ac_preproc_ok=:
2614 break
2615 fi
2616 rm -f conftest.err conftest.$ac_ext
2617
2618 done
2619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2620 rm -f conftest.err conftest.$ac_ext
2621 if $ac_preproc_ok; then
2622 :
2623 else
2624 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2625 See \`config.log' for more details." >&5
2626 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2627 See \`config.log' for more details." >&2;}
2628 { (exit 1); exit 1; }; }
2629 fi
2630
2631 ac_ext=c
2632 ac_cpp='$CPP $CPPFLAGS'
2633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2636
2637
2638 # Check whether --enable-optimization or --disable-optimization was given.
2639 if test "${enable_optimization+set}" = set; then
2640 enableval="$enable_optimization"
2641 asc_do_opt="$enableval"
2642 else
2643 asc_do_opt=no
2644 fi;
2645
2646 if test "$asc_do_opt" = yes; then
2647 CFLAGS=`echo "-O $CFLAGS " | sed 's/ -g / /g'`
2648 cat >>confdefs.h <<\_ACEOF
2649 #define NDEBUG 1
2650 _ACEOF
2651
2652 else
2653 # Extract the first word of "end.o", so it can be a program name with args.
2654 set dummy end.o; ac_word=$2
2655 echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2657 if test "${ac_cv_path_DEBUG_LIBS+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660 case $DEBUG_LIBS in
2661 [\\/]* | ?:[\\/]*)
2662 ac_cv_path_DEBUG_LIBS="$DEBUG_LIBS" # Let the user override the test with a path.
2663 ;;
2664 *)
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in /usr/lib
2667 do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2672 ac_cv_path_DEBUG_LIBS="$as_dir/$ac_word$ac_exec_ext"
2673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676 done
2677 done
2678
2679 ;;
2680 esac
2681 fi
2682 DEBUG_LIBS=$ac_cv_path_DEBUG_LIBS
2683
2684 if test -n "$DEBUG_LIBS"; then
2685 echo "$as_me:$LINENO: result: $DEBUG_LIBS" >&5
2686 echo "${ECHO_T}$DEBUG_LIBS" >&6
2687 else
2688 echo "$as_me:$LINENO: result: no" >&5
2689 echo "${ECHO_T}no" >&6
2690 fi
2691
2692 fi
2693
2694 echo "$as_me:$LINENO: checking for AIX" >&5
2695 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2696
2697
2698 echo "$as_me:$LINENO: checking for egrep" >&5
2699 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2700 if test "${ac_cv_prog_egrep+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 else
2703 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2704 then ac_cv_prog_egrep='grep -E'
2705 else ac_cv_prog_egrep='egrep'
2706 fi
2707 fi
2708 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2709 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2710 EGREP=$ac_cv_prog_egrep
2711
2712
2713 cat >conftest.$ac_ext <<_ACEOF
2714 #line $LINENO "configure"
2715 /* confdefs.h. */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2720
2721 #ifdef _AIX
2722 yes
2723 #endif
2724
2725 _ACEOF
2726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2727 $EGREP "yes" >/dev/null 2>&1; then
2728 asc_aix=yes ; cat >>confdefs.h <<\_ACEOF
2729 #define _ALL_SOURCE 1
2730 _ACEOF
2731
2732 else
2733 asc_aix=no
2734 fi
2735 rm -f conftest*
2736
2737 echo "$as_me:$LINENO: result: $asc_aix" >&5
2738 echo "${ECHO_T}$asc_aix" >&6
2739
2740 echo "$as_me:$LINENO: checking whether -D_HPUX_SOURCE is needed" >&5
2741 echo $ECHO_N "checking whether -D_HPUX_SOURCE is needed... $ECHO_C" >&6
2742 cat >conftest.$ac_ext <<_ACEOF
2743 #line $LINENO "configure"
2744 /* confdefs.h. */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2749
2750 #ifdef __hpux
2751 #ifndef _HPUX_SOURCE
2752 yes
2753 #endif
2754 #endif
2755
2756 _ACEOF
2757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2758 $EGREP "yes" >/dev/null 2>&1; then
2759 asc_hpux=yes ; cat >>confdefs.h <<\_ACEOF
2760 #define _HPUX_SOURCE 1
2761 _ACEOF
2762
2763 else
2764 asc_hpux=no
2765 fi
2766 rm -f conftest*
2767
2768 echo "$as_me:$LINENO: result: $asc_hpux" >&5
2769 echo "${ECHO_T}$asc_hpux" >&6
2770
2771 # Check the size of pointers; if cross compiling, assume 32 bit pointers
2772 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2773 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2774 if test "${ac_cv_header_stdc+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777 cat >conftest.$ac_ext <<_ACEOF
2778 #line $LINENO "configure"
2779 /* confdefs.h. */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2784 #include <stdlib.h>
2785 #include <stdarg.h>
2786 #include <string.h>
2787 #include <float.h>
2788
2789 int
2790 main ()
2791 {
2792
2793 ;
2794 return 0;
2795 }
2796 _ACEOF
2797 rm -f conftest.$ac_objext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799 (eval $ac_compile) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 ac_cv_header_stdc=yes
2810 else
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814 ac_cv_header_stdc=no
2815 fi
2816 rm -f conftest.$ac_objext conftest.$ac_ext
2817
2818 if test $ac_cv_header_stdc = yes; then
2819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2820 cat >conftest.$ac_ext <<_ACEOF
2821 #line $LINENO "configure"
2822 /* confdefs.h. */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2827 #include <string.h>
2828
2829 _ACEOF
2830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2831 $EGREP "memchr" >/dev/null 2>&1; then
2832 :
2833 else
2834 ac_cv_header_stdc=no
2835 fi
2836 rm -f conftest*
2837
2838 fi
2839
2840 if test $ac_cv_header_stdc = yes; then
2841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2842 cat >conftest.$ac_ext <<_ACEOF
2843 #line $LINENO "configure"
2844 /* confdefs.h. */
2845 _ACEOF
2846 cat confdefs.h >>conftest.$ac_ext
2847 cat >>conftest.$ac_ext <<_ACEOF
2848 /* end confdefs.h. */
2849 #include <stdlib.h>
2850
2851 _ACEOF
2852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2853 $EGREP "free" >/dev/null 2>&1; then
2854 :
2855 else
2856 ac_cv_header_stdc=no
2857 fi
2858 rm -f conftest*
2859
2860 fi
2861
2862 if test $ac_cv_header_stdc = yes; then
2863 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2864 if test "$cross_compiling" = yes; then
2865 :
2866 else
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 <ctype.h>
2875 #if ((' ' & 0x0FF) == 0x020)
2876 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2877 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2878 #else
2879 # define ISLOWER(c) \
2880 (('a' <= (c) && (c) <= 'i') \
2881 || ('j' <= (c) && (c) <= 'r') \
2882 || ('s' <= (c) && (c) <= 'z'))
2883 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2884 #endif
2885
2886 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2887 int
2888 main ()
2889 {
2890 int i;
2891 for (i = 0; i < 256; i++)
2892 if (XOR (islower (i), ISLOWER (i))
2893 || toupper (i) != TOUPPER (i))
2894 exit(2);
2895 exit (0);
2896 }
2897 _ACEOF
2898 rm -f conftest$ac_exeext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2900 (eval $ac_link) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905 (eval $ac_try) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 :
2910 else
2911 echo "$as_me: program exited with status $ac_status" >&5
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915 ( exit $ac_status )
2916 ac_cv_header_stdc=no
2917 fi
2918 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2919 fi
2920 fi
2921 fi
2922 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2923 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2924 if test $ac_cv_header_stdc = yes; then
2925
2926 cat >>confdefs.h <<\_ACEOF
2927 #define STDC_HEADERS 1
2928 _ACEOF
2929
2930 fi
2931
2932 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2943 inttypes.h stdint.h unistd.h
2944 do
2945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2946 echo "$as_me:$LINENO: checking for $ac_header" >&5
2947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951 cat >conftest.$ac_ext <<_ACEOF
2952 #line $LINENO "configure"
2953 /* confdefs.h. */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2958 $ac_includes_default
2959
2960 #include <$ac_header>
2961 _ACEOF
2962 rm -f conftest.$ac_objext
2963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2964 (eval $ac_compile) 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } &&
2968 { ac_try='test -s conftest.$ac_objext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 (eval $ac_try) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 eval "$as_ac_Header=yes"
2975 else
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979 eval "$as_ac_Header=no"
2980 fi
2981 rm -f conftest.$ac_objext conftest.$ac_ext
2982 fi
2983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2986 cat >>confdefs.h <<_ACEOF
2987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2988 _ACEOF
2989
2990 fi
2991
2992 done
2993
2994
2995 echo "$as_me:$LINENO: checking for void *" >&5
2996 echo $ECHO_N "checking for void *... $ECHO_C" >&6
2997 if test "${ac_cv_type_void_p+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 else
3000 cat >conftest.$ac_ext <<_ACEOF
3001 #line $LINENO "configure"
3002 /* confdefs.h. */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3007 $ac_includes_default
3008 int
3009 main ()
3010 {
3011 if ((void * *) 0)
3012 return 0;
3013 if (sizeof (void *))
3014 return 0;
3015 ;
3016 return 0;
3017 }
3018 _ACEOF
3019 rm -f conftest.$ac_objext
3020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3021 (eval $ac_compile) 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -s conftest.$ac_objext'
3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3031 ac_cv_type_void_p=yes
3032 else
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3035
3036 ac_cv_type_void_p=no
3037 fi
3038 rm -f conftest.$ac_objext conftest.$ac_ext
3039 fi
3040 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3041 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3042
3043 echo "$as_me:$LINENO: checking size of void *" >&5
3044 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3045 if test "${ac_cv_sizeof_void_p+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 else
3048 if test "$ac_cv_type_void_p" = yes; then
3049 # The cast to unsigned long works around a bug in the HP C Compiler
3050 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3051 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3052 # This bug is HP SR number 8606223364.
3053 if test "$cross_compiling" = yes; then
3054 # Depending upon the size, compute the lo and hi bounds.
3055 cat >conftest.$ac_ext <<_ACEOF
3056 #line $LINENO "configure"
3057 /* confdefs.h. */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 $ac_includes_default
3063 int
3064 main ()
3065 {
3066 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3067 test_array [0] = 0
3068
3069 ;
3070 return 0;
3071 }
3072 _ACEOF
3073 rm -f conftest.$ac_objext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075 (eval $ac_compile) 2>&5
3076 ac_status=$?
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } &&
3079 { ac_try='test -s conftest.$ac_objext'
3080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081 (eval $ac_try) 2>&5
3082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; }; then
3085 ac_lo=0 ac_mid=0
3086 while :; do
3087 cat >conftest.$ac_ext <<_ACEOF
3088 #line $LINENO "configure"
3089 /* confdefs.h. */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3094 $ac_includes_default
3095 int
3096 main ()
3097 {
3098 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3099 test_array [0] = 0
3100
3101 ;
3102 return 0;
3103 }
3104 _ACEOF
3105 rm -f conftest.$ac_objext
3106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3107 (eval $ac_compile) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try='test -s conftest.$ac_objext'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 (eval $ac_try) 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3117 ac_hi=$ac_mid; break
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122 ac_lo=`expr $ac_mid + 1`
3123 if test $ac_lo -le $ac_mid; then
3124 ac_lo= ac_hi=
3125 break
3126 fi
3127 ac_mid=`expr 2 '*' $ac_mid + 1`
3128 fi
3129 rm -f conftest.$ac_objext conftest.$ac_ext
3130 done
3131 else
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 cat >conftest.$ac_ext <<_ACEOF
3136 #line $LINENO "configure"
3137 /* confdefs.h. */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3142 $ac_includes_default
3143 int
3144 main ()
3145 {
3146 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3147 test_array [0] = 0
3148
3149 ;
3150 return 0;
3151 }
3152 _ACEOF
3153 rm -f conftest.$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155 (eval $ac_compile) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 (eval $ac_try) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 ac_hi=-1 ac_mid=-1
3166 while :; do
3167 cat >conftest.$ac_ext <<_ACEOF
3168 #line $LINENO "configure"
3169 /* confdefs.h. */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3174 $ac_includes_default
3175 int
3176 main ()
3177 {
3178 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3179 test_array [0] = 0
3180
3181 ;
3182 return 0;
3183 }
3184 _ACEOF
3185 rm -f conftest.$ac_objext
3186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187 (eval $ac_compile) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 ac_lo=$ac_mid; break
3198 else
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202 ac_hi=`expr '(' $ac_mid ')' - 1`
3203 if test $ac_mid -le $ac_hi; then
3204 ac_lo= ac_hi=
3205 break
3206 fi
3207 ac_mid=`expr 2 '*' $ac_mid`
3208 fi
3209 rm -f conftest.$ac_objext conftest.$ac_ext
3210 done
3211 else
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215 ac_lo= ac_hi=
3216 fi
3217 rm -f conftest.$ac_objext conftest.$ac_ext
3218 fi
3219 rm -f conftest.$ac_objext conftest.$ac_ext
3220 # Binary search between lo and hi bounds.
3221 while test "x$ac_lo" != "x$ac_hi"; do
3222 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3223 cat >conftest.$ac_ext <<_ACEOF
3224 #line $LINENO "configure"
3225 /* confdefs.h. */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3230 $ac_includes_default
3231 int
3232 main ()
3233 {
3234 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3235 test_array [0] = 0
3236
3237 ;
3238 return 0;
3239 }
3240 _ACEOF
3241 rm -f conftest.$ac_objext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243 (eval $ac_compile) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -s conftest.$ac_objext'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
3253 ac_hi=$ac_mid
3254 else
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258 ac_lo=`expr '(' $ac_mid ')' + 1`
3259 fi
3260 rm -f conftest.$ac_objext conftest.$ac_ext
3261 done
3262 case $ac_lo in
3263 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3264 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3265 See \`config.log' for more details." >&5
3266 echo "$as_me: error: cannot compute sizeof (void *), 77
3267 See \`config.log' for more details." >&2;}
3268 { (exit 1); exit 1; }; } ;;
3269 esac
3270 else
3271 if test "$cross_compiling" = yes; then
3272 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3273 See \`config.log' for more details." >&5
3274 echo "$as_me: error: cannot run test program while cross compiling
3275 See \`config.log' for more details." >&2;}
3276 { (exit 1); exit 1; }; }
3277 else
3278 cat >conftest.$ac_ext <<_ACEOF
3279 #line $LINENO "configure"
3280 /* confdefs.h. */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3285 $ac_includes_default
3286 long longval () { return (long) (sizeof (void *)); }
3287 unsigned long ulongval () { return (long) (sizeof (void *)); }
3288 #include <stdio.h>
3289 #include <stdlib.h>
3290 int
3291 main ()
3292 {
3293
3294 FILE *f = fopen ("conftest.val", "w");
3295 if (! f)
3296 exit (1);
3297 if (((long) (sizeof (void *))) < 0)
3298 {
3299 long i = longval ();
3300 if (i != ((long) (sizeof (void *))))
3301 exit (1);
3302 fprintf (f, "%ld\n", i);
3303 }
3304 else
3305 {
3306 unsigned long i = ulongval ();
3307 if (i != ((long) (sizeof (void *))))
3308 exit (1);
3309 fprintf (f, "%lu\n", i);
3310 }
3311 exit (ferror (f) || fclose (f) != 0);
3312
3313 ;
3314 return 0;
3315 }
3316 _ACEOF
3317 rm -f conftest$ac_exeext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3319 (eval $ac_link) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3328 ac_cv_sizeof_void_p=`cat conftest.val`
3329 else
3330 echo "$as_me: program exited with status $ac_status" >&5
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 ( exit $ac_status )
3335 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3336 See \`config.log' for more details." >&5
3337 echo "$as_me: error: cannot compute sizeof (void *), 77
3338 See \`config.log' for more details." >&2;}
3339 { (exit 1); exit 1; }; }
3340 fi
3341 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3342 fi
3343 fi
3344 rm -f conftest.val
3345 else
3346 ac_cv_sizeof_void_p=0
3347 fi
3348 fi
3349 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3350 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3351 cat >>confdefs.h <<_ACEOF
3352 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3353 _ACEOF
3354
3355
3356
3357
3358 #--------------------------------------------------------------------
3359 # Set YACC.
3360 # call the
3361 # autoconf macro which looks for `bison' and then for `yacc'
3362 #--------------------------------------------------------------------
3363
3364 for ac_prog in 'bison -y' byacc
3365 do
3366 # Extract the first word of "$ac_prog", so it can be a program name with args.
3367 set dummy $ac_prog; ac_word=$2
3368 echo "$as_me:$LINENO: checking for $ac_word" >&5
3369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3370 if test "${ac_cv_prog_YACC+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373 if test -n "$YACC"; then
3374 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3378 do
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3383 ac_cv_prog_YACC="$ac_prog"
3384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 break 2
3386 fi
3387 done
3388 done
3389
3390 fi
3391 fi
3392 YACC=$ac_cv_prog_YACC
3393 if test -n "$YACC"; then
3394 echo "$as_me:$LINENO: result: $YACC" >&5
3395 echo "${ECHO_T}$YACC" >&6
3396 else
3397 echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6
3399 fi
3400
3401 test -n "$YACC" && break
3402 done
3403 test -n "$YACC" || YACC="yacc"
3404
3405
3406 #--------------------------------------------------------------------
3407 # Set LEX.
3408 # ASCEND requires a `flex' which understands -P (allows you to
3409 # specify a prefix other than `yy'). The -P flag was added at
3410 # the same time a -V (version) flag was added (version 2.4.1),
3411 # so if `flex' understands -V, it'll understand -P (checking
3412 # for -P directly requires a flex input file).
3413 #
3414 # 1. If `LEX' is not set, look for `flex' and set `LEX' to
3415 # `flex' if found.
3416 # 2. If `flex' was found, see if it understands -V. If so,
3417 # set `scanner_src' and `typer_src' to have `flex' generate
3418 # the C files from the flex input files
3419 # base/generic/compiler/scanner.l & tcltk98/interface/typelex.l
3420 # We don't need to look for libfl.a since we define
3421 # yywrap() ourselves.
3422 # 3. If `flex' wasn't found or was found but isn't new enough:
3423 # a. Print a warning message
3424 # b. Set `scanner_src' and `typer_src' to use pre-generated
3425 # C files for the flex files mentioned in (2).
3426 # c. Set `LEX' to `lex'
3427 # d. Search for the lex library `libl.a' and set LEXLIB to
3428 # its location.
3429 #--------------------------------------------------------------------
3430
3431 # Extract the first word of "flex", so it can be a program name with args.
3432 set dummy flex; ac_word=$2
3433 echo "$as_me:$LINENO: checking for $ac_word" >&5
3434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3435 if test "${ac_cv_prog_LEX+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 if test -n "$LEX"; then
3439 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_LEX="flex"
3449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452 done
3453 done
3454
3455 fi
3456 fi
3457 LEX=$ac_cv_prog_LEX
3458 if test -n "$LEX"; then
3459 echo "$as_me:$LINENO: result: $LEX" >&5
3460 echo "${ECHO_T}$LEX" >&6
3461 else
3462 echo "$as_me:$LINENO: result: no" >&5
3463 echo "${ECHO_T}no" >&6
3464 fi
3465
3466
3467 if test -n "$LEX" ; then
3468 echo "$as_me:$LINENO: checking whether $LEX is at least version 2.4.1" >&5
3469 echo $ECHO_N "checking whether $LEX is at least version 2.4.1... $ECHO_C" >&6
3470 echo "$LEX -V" 1>&5
3471 if $LEX -V 1>&5 2>&5 ; then
3472 echo "$as_me:$LINENO: result: yes" >&5
3473 echo "${ECHO_T}yes" >&6
3474 scanner_src="scanner.c.from.flex"
3475 typer_src="typelex.c.from.flex"
3476 else
3477 echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3479 LEX=''
3480 fi
3481 fi
3482
3483 if test -z "$LEX" ; then
3484 { echo "$as_me:$LINENO: WARNING: Cannot find a flex lexer version 2.4.1 or greater.
3485 Using pregenerated C files for base/generic/compiler/scanner.l
3486 and tcltk98/interface/typelex.l. If you have flex 2.4.1
3487 or newer, set the LEX environment variable to its location
3488 and run configure again." >&5
3489 echo "$as_me: WARNING: Cannot find a flex lexer version 2.4.1 or greater.
3490 Using pregenerated C files for base/generic/compiler/scanner.l
3491 and tcltk98/interface/typelex.l. If you have flex 2.4.1
3492 or newer, set the LEX environment variable to its location
3493 and run configure again." >&2;}
3494 scanner_src="scanner.c.from.c"
3495 typer_src="typelex.c.from.c"
3496
3497 # let configure set LEX and LEXLIB even though we won't be using them
3498 for ac_prog in flex lex
3499 do
3500 # Extract the first word of "$ac_prog", so it can be a program name with args.
3501 set dummy $ac_prog; ac_word=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_prog_LEX+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 if test -n "$LEX"; then
3508 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_LEX="$ac_prog"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3520 fi
3521 done
3522 done
3523
3524 fi
3525 fi
3526 LEX=$ac_cv_prog_LEX
3527 if test -n "$LEX"; then
3528 echo "$as_me:$LINENO: result: $LEX" >&5
3529 echo "${ECHO_T}$LEX" >&6
3530 else
3531 echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6
3533 fi
3534
3535 test -n "$LEX" && break
3536 done
3537 test -n "$LEX" || LEX=":"
3538
3539 if test -z "$LEXLIB"
3540 then
3541 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3542 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3543 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 ac_check_lib_save_LIBS=$LIBS
3547 LIBS="-lfl $LIBS"
3548 cat >conftest.$ac_ext <<_ACEOF
3549 #line $LINENO "configure"
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555
3556 /* Override any gcc2 internal prototype to avoid an error. */
3557 #ifdef __cplusplus
3558 extern "C"
3559 #endif
3560 /* We use char because int might match the return type of a gcc2
3561 builtin and then its argument prototype would still apply. */
3562 char yywrap ();
3563 int
3564 main ()
3565 {
3566 yywrap ();
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 rm -f conftest.$ac_objext conftest$ac_exeext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3573 (eval $ac_link) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
3577 { ac_try='test -s conftest$ac_exeext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 ac_cv_lib_fl_yywrap=yes
3584 else
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 ac_cv_lib_fl_yywrap=no
3589 fi
3590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3591 LIBS=$ac_check_lib_save_LIBS
3592 fi
3593 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3594 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3595 if test $ac_cv_lib_fl_yywrap = yes; then
3596 LEXLIB="-lfl"
3597 else
3598 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3599 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3600 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603 ac_check_lib_save_LIBS=$LIBS
3604 LIBS="-ll $LIBS"
3605 cat >conftest.$ac_ext <<_ACEOF
3606 #line $LINENO "configure"
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612
3613 /* Override any gcc2 internal prototype to avoid an error. */
3614 #ifdef __cplusplus
3615 extern "C"
3616 #endif
3617 /* We use char because int might match the return type of a gcc2
3618 builtin and then its argument prototype would still apply. */
3619 char yywrap ();
3620 int
3621 main ()
3622 {
3623 yywrap ();
3624 ;
3625 return 0;
3626 }
3627 _ACEOF
3628 rm -f conftest.$ac_objext conftest$ac_exeext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3630 (eval $ac_link) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } &&
3634 { ac_try='test -s conftest$ac_exeext'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 (eval $ac_try) 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; }; then
3640 ac_cv_lib_l_yywrap=yes
3641 else
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3644
3645 ac_cv_lib_l_yywrap=no
3646 fi
3647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3648 LIBS=$ac_check_lib_save_LIBS
3649 fi
3650 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3651 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3652 if test $ac_cv_lib_l_yywrap = yes; then
3653 LEXLIB="-ll"
3654 fi
3655
3656 fi
3657
3658 fi
3659
3660 if test "x$LEX" != "x:"; then
3661 echo "$as_me:$LINENO: checking lex output file root" >&5
3662 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3663 if test "${ac_cv_prog_lex_root+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 # The minimal lex program is just a single line: %%. But some broken lexes
3667 # (Solaris, I think it was) want two %% lines, so accommodate them.
3668 cat >conftest.l <<_ACEOF
3669 %%
3670 %%
3671 _ACEOF
3672 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3673 (eval $LEX conftest.l) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }
3677 if test -f lex.yy.c; then
3678 ac_cv_prog_lex_root=lex.yy
3679 elif test -f lexyy.c; then
3680 ac_cv_prog_lex_root=lexyy
3681 else
3682 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3683 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3684 { (exit 1); exit 1; }; }
3685 fi
3686 fi
3687 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3688 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3689 rm -f conftest.l
3690 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3691
3692 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3693 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3694 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697 # POSIX says lex can declare yytext either as a pointer or an array; the
3698 # default is implementation-dependent. Figure out which it is, since
3699 # not all implementations provide the %pointer and %array declarations.
3700 ac_cv_prog_lex_yytext_pointer=no
3701 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3702 ac_save_LIBS=$LIBS
3703 LIBS="$LIBS $LEXLIB"
3704 cat >conftest.$ac_ext <<_ACEOF
3705 `cat $LEX_OUTPUT_ROOT.c`
3706 _ACEOF
3707 rm -f conftest.$ac_objext conftest$ac_exeext
3708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3709 (eval $ac_link) 2>&5
3710 ac_status=$?
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
3713 { ac_try='test -s conftest$ac_exeext'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 (eval $ac_try) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; }; then
3719 ac_cv_prog_lex_yytext_pointer=yes
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 fi
3725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3726 LIBS=$ac_save_LIBS
3727 rm -f "${LEX_OUTPUT_ROOT}.c"
3728
3729 fi
3730 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3731 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3732 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3733
3734 cat >>confdefs.h <<\_ACEOF
3735 #define YYTEXT_POINTER 1
3736 _ACEOF
3737
3738 fi
3739
3740 fi
3741 fi
3742
3743
3744 #--------------------------------------------------------------------
3745 # Math libraries.
3746 # On a few very rare systems, all of the libm.a stuff is
3747 # already in libc.a. Set compiler flags accordingly.
3748 # Also, Linux requires the "ieee" library for math to work
3749 # right (and it must appear before "-lm").
3750 #
3751 # When building on HPUX with GCC, GCC cannot find `copysign'
3752 # because it lives in an odd place; see if we need to add
3753 # this odd place to MATH_LIBS.
3754 #
3755 # See if erf(), the error function, exists; if so, define
3756 # HAVE_ERF.
3757 #--------------------------------------------------------------------
3758 echo "$as_me:$LINENO: checking for sin" >&5
3759 echo $ECHO_N "checking for sin... $ECHO_C" >&6
3760 if test "${ac_cv_func_sin+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763 cat >conftest.$ac_ext <<_ACEOF
3764 #line $LINENO "configure"
3765 /* confdefs.h. */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3770 /* System header to define __stub macros and hopefully few prototypes,
3771 which can conflict with char sin (); below. */
3772 #include <assert.h>
3773 /* Override any gcc2 internal prototype to avoid an error. */
3774 #ifdef __cplusplus
3775 extern "C"
3776 {
3777 #endif
3778 /* We use char because int might match the return type of a gcc2
3779 builtin and then its argument prototype would still apply. */
3780 char sin ();
3781 /* The GNU C library defines this for functions which it implements
3782 to always fail with ENOSYS. Some functions are actually named
3783 something starting with __ and the normal name is an alias. */
3784 #if defined (__stub_sin) || defined (__stub___sin)
3785 choke me
3786 #else
3787 char (*f) () = sin;
3788 #endif
3789 #ifdef __cplusplus
3790 }
3791 #endif
3792
3793 int
3794 main ()
3795 {
3796
3797 ;
3798 return 0;
3799 }
3800 _ACEOF
3801 rm -f conftest.$ac_objext conftest$ac_exeext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3803 (eval $ac_link) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -s conftest$ac_exeext'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 (eval $ac_try) 2>&5
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; }; then
3813 ac_cv_func_sin=yes
3814 else
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 ac_cv_func_sin=no
3819 fi
3820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3821 fi
3822 echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
3823 echo "${ECHO_T}$ac_cv_func_sin" >&6
3824 if test $ac_cv_func_sin = yes; then
3825 MATH_LIBS=""
3826 else
3827 MATH_LIBS="-lm"
3828 fi
3829
3830
3831 echo "$as_me:$LINENO: checking for printf in -lieee" >&5
3832 echo $ECHO_N "checking for printf in -lieee... $ECHO_C" >&6
3833 if test "${ac_cv_lib_ieee_printf+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836 ac_check_lib_save_LIBS=$LIBS
3837 LIBS="-lieee $LIBS"
3838 cat >conftest.$ac_ext <<_ACEOF
3839 #line $LINENO "configure"
3840 /* confdefs.h. */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3845
3846 /* Override any gcc2 internal prototype to avoid an error. */
3847 #ifdef __cplusplus
3848 extern "C"
3849 #endif
3850 /* We use char because int might match the return type of a gcc2
3851 builtin and then its argument prototype would still apply. */
3852 char printf ();
3853 int
3854 main ()
3855 {
3856 printf ();
3857 ;
3858 return 0;
3859 }
3860 _ACEOF
3861 rm -f conftest.$ac_objext conftest$ac_exeext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3863 (eval $ac_link) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -s conftest$ac_exeext'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 (eval $ac_try) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; }; then
3873 ac_cv_lib_ieee_printf=yes
3874 else
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3877
3878 ac_cv_lib_ieee_printf=no
3879 fi
3880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3881 LIBS=$ac_check_lib_save_LIBS
3882 fi
3883 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_printf" >&5
3884 echo "${ECHO_T}$ac_cv_lib_ieee_printf" >&6
3885 if test $ac_cv_lib_ieee_printf = yes; then
3886 MATH_LIBS="-lieee $MATH_LIBS"
3887 fi
3888
3889
3890 if test -n "$MATH_LIBS" ; then
3891
3892 echo "$as_me:$LINENO: checking for copysign in -lm" >&5
3893 echo $ECHO_N "checking for copysign in -lm... $ECHO_C" >&6
3894 if test "${ac_cv_lib_m_copysign+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897 ac_check_lib_save_LIBS=$LIBS
3898 LIBS="-lm $MATH_LIBS $LIBS"
3899 cat >conftest.$ac_ext <<_ACEOF
3900 #line $LINENO "configure"
3901 /* confdefs.h. */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906
3907 /* Override any gcc2 internal prototype to avoid an error. */
3908 #ifdef __cplusplus
3909 extern "C"
3910 #endif
3911 /* We use char because int might match the return type of a gcc2
3912 builtin and then its argument prototype would still apply. */
3913 char copysign ();
3914 int
3915 main ()
3916 {
3917 copysign ();
3918 ;
3919 return 0;
3920 }
3921 _ACEOF
3922 rm -f conftest.$ac_objext conftest$ac_exeext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3924 (eval $ac_link) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } &&
3928 { ac_try='test -s conftest$ac_exeext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_cv_lib_m_copysign=yes
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 ac_cv_lib_m_copysign=no
3940 fi
3941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3942 LIBS=$ac_check_lib_save_LIBS
3943 fi
3944 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysign" >&5
3945 echo "${ECHO_T}$ac_cv_lib_m_copysign" >&6
3946 if test $ac_cv_lib_m_copysign = yes; then
3947 cat >>confdefs.h <<_ACEOF
3948 #define HAVE_LIBM 1
3949 _ACEOF
3950
3951 LIBS="-lm $LIBS"
3952
3953 else
3954 echo "$as_me:$LINENO: checking for drem in -lm" >&5
3955 echo $ECHO_N "checking for drem in -lm... $ECHO_C" >&6
3956 if test "${ac_cv_lib_m_drem+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 else
3959 ac_check_lib_save_LIBS=$LIBS
3960 LIBS="-lm /lib/pa1.1/libM.a
3961 $LIBS"
3962 cat >conftest.$ac_ext <<_ACEOF
3963 #line $LINENO "configure"
3964 /* confdefs.h. */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3969
3970 /* Override any gcc2 internal prototype to avoid an error. */
3971 #ifdef __cplusplus
3972 extern "C"
3973 #endif
3974 /* We use char because int might match the return type of a gcc2
3975 builtin and then its argument prototype would still apply. */
3976 char drem ();
3977 int
3978 main ()
3979 {
3980 drem ();
3981 ;
3982 return 0;
3983 }
3984 _ACEOF
3985 rm -f conftest.$ac_objext conftest$ac_exeext
3986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3987 (eval $ac_link) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try='test -s conftest$ac_exeext'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3997 ac_cv_lib_m_drem=yes
3998 else
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4001
4002 ac_cv_lib_m_drem=no
4003 fi
4004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4005 LIBS=$ac_check_lib_save_LIBS
4006 fi
4007 echo "$as_me:$LINENO: result: $ac_cv_lib_m_drem" >&5
4008 echo "${ECHO_T}$ac_cv_lib_m_drem" >&6
4009 if test $ac_cv_lib_m_drem = yes; then
4010 MATH_LIBS="$MATH_LIBS /lib/pa1.1/libM.a"
4011
4012 fi
4013
4014 fi
4015
4016 fi
4017
4018 # store the current list of libraries, add the math libraries to LIBS,
4019 # check for erf(), then reset the value of LIBS.
4020 asc_keep_LIBS="$LIBS"
4021 LIBS="$LIBS $MATH_LIBS"
4022
4023 for ac_func in erf
4024 do
4025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4026 echo "$as_me:$LINENO: checking for $ac_func" >&5
4027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4028 if eval "test \"\${$as_ac_var+set}\" = set"; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 cat >conftest.$ac_ext <<_ACEOF
4032 #line $LINENO "configure"
4033 /* confdefs.h. */
4034 _ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h. */
4038 /* System header to define __stub macros and hopefully few prototypes,
4039 which can conflict with char $ac_func (); below. */
4040 #include <assert.h>
4041 /* Override any gcc2 internal prototype to avoid an error. */
4042 #ifdef __cplusplus
4043 extern "C"
4044 {
4045 #endif
4046 /* We use char because int might match the return type of a gcc2
4047 builtin and then its argument prototype would still apply. */
4048 char $ac_func ();
4049 /* The GNU C library defines this for functions which it implements
4050 to always fail with ENOSYS. Some functions are actually named
4051 something starting with __ and the normal name is an alias. */
4052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4053 choke me
4054 #else
4055 char (*f) () = $ac_func;
4056 #endif
4057 #ifdef __cplusplus
4058 }
4059 #endif
4060
4061 int
4062 main ()
4063 {
4064
4065 ;
4066 return 0;
4067 }
4068 _ACEOF
4069 rm -f conftest.$ac_objext conftest$ac_exeext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4071 (eval $ac_link) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } &&
4075 { ac_try='test -s conftest$ac_exeext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 eval "$as_ac_var=yes"
4082 else
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4085
4086 eval "$as_ac_var=no"
4087 fi
4088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4089 fi
4090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4092 if test `eval echo '${'$as_ac_var'}'` = yes; then
4093 cat >>confdefs.h <<_ACEOF
4094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4095 _ACEOF
4096
4097 fi
4098 done
4099
4100 LIBS="$asc_keep_LIBS"
4101
4102 #----------------------------------------------
4103 # Check for 'vsnprintf' -- there seems to be a problem with it in
4104 # on cygwin.
4105
4106
4107
4108
4109
4110
4111 for ac_func in snprintf vsnprintf
4112 do
4113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4114 echo "$as_me:$LINENO: checking for $ac_func" >&5
4115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4116 if eval "test \"\${$as_ac_var+set}\" = set"; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119 cat >conftest.$ac_ext <<_ACEOF
4120 #line $LINENO "configure"
4121 /* confdefs.h. */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 /* System header to define __stub macros and hopefully few prototypes,
4127 which can conflict with char $ac_func (); below. */
4128 #include <assert.h>
4129 /* Override any gcc2 internal prototype to avoid an error. */
4130 #ifdef __cplusplus
4131 extern "C"
4132 {
4133 #endif
4134 /* We use char because int might match the return type of a gcc2
4135 builtin and then its argument prototype would still apply. */
4136 char $ac_func ();
4137 /* The GNU C library defines this for functions which it implements
4138 to always fail with ENOSYS. Some functions are actually named
4139 something starting with __ and the normal name is an alias. */
4140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4141 choke me
4142 #else
4143 char (*f) () = $ac_func;
4144 #endif
4145 #ifdef __cplusplus
4146 }
4147 #endif
4148
4149 int
4150 main ()
4151 {
4152
4153 ;
4154 return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -s conftest$ac_exeext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 eval "$as_ac_var=yes"
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 eval "$as_ac_var=no"
4175 fi
4176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4177 fi
4178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4180 if test `eval echo '${'$as_ac_var'}'` = yes; then
4181 cat >>confdefs.h <<_ACEOF
4182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4183 _ACEOF
4184
4185 fi
4186 done
4187
4188 echo "$as_me:$LINENO: checking for working snprintf" >&5
4189 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
4190 if test "${ac_cv_have_working_snprintf+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193 if test "$cross_compiling" = yes; then
4194 ac_cv_have_working_snprintf=cross
4195 else
4196 cat >conftest.$ac_ext <<_ACEOF
4197 #line $LINENO "configure"
4198 /* confdefs.h. */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4203 #include <stdio.h>
4204
4205 int main(void)
4206 {
4207 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
4208 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
4209 int i;
4210 i = snprintf (bufs, 2, "%s", "111");
4211 if (strcmp (bufs, "1")) exit (1);
4212 if (i != 3) exit (1);
4213 i = snprintf (bufd, 2, "%d", 111);
4214 if (strcmp (bufd, "1")) exit (1);
4215 if (i != 3) exit (1);
4216 exit(0);
4217 }
4218 _ACEOF
4219 rm -f 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); } && { ac_try='./conftest$ac_exeext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_cv_have_working_snprintf=yes
4231 else
4232 echo "$as_me: program exited with status $ac_status" >&5
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236 ( exit $ac_status )
4237 ac_cv_have_working_snprintf=no
4238 fi
4239 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4240 fi
4241 fi
4242
4243 echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
4244 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6
4245 echo "$as_me:$LINENO: checking for working vsnprintf" >&5
4246 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
4247 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250 if test "$cross_compiling" = yes; then
4251 ac_cv_have_working_vsnprintf=cross
4252 else
4253 cat >conftest.$ac_ext <<_ACEOF
4254 #line $LINENO "configure"
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 #include <stdio.h>
4261 #include <stdarg.h>
4262
4263 int my_vsnprintf (char *buf, const char *tmpl, ...)
4264 {
4265 int i;
4266 va_list args;
4267 va_start (args, tmpl);
4268 i = vsnprintf (buf, 2, tmpl, args);
4269 va_end (args);
4270 return i;
4271 }
4272
4273 int main(void)
4274 {
4275 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
4276 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
4277 int i;