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

Contents of /trunk/base/autotools/configure

Parent Directory Parent Directory | Revision Log Revision Log


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