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

Contents of /trunk/base/autotools/configure

Parent Directory Parent Directory | Revision Log Revision Log


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