]> andersk Git - splint.git/blame - configure
Doing the commit so that files can be taged.
[splint.git] / configure
CommitLineData
fbb86200 1#! /bin/sh
508533c5 2# Guess values for system-dependent variables and create Makefiles.
d767066b 3# Generated by GNU Autoconf 2.53 for Splint 3.1.0.
fbb86200 4#
5# Report bugs to <splint-bug@splint.org>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11
12if expr a : '\(a\)' >/dev/null 2>&1; then
13 as_expr=expr
14else
15 as_expr=false
16fi
17
18
19## --------------------- ##
20## M4sh Initialization. ##
21## --------------------- ##
22
23# Be Bourne compatible
24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29fi
30
31# NLS nuisances.
32# Support unset when possible.
33if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 as_unset=unset
35else
36 as_unset=false
37fi
38
39(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
40 { $as_unset LANG || test "${LANG+set}" != set; } ||
41 { LANG=C; export LANG; }
42(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
43 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
44 { LC_ALL=C; export LC_ALL; }
45(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
46 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
47 { LC_TIME=C; export LC_TIME; }
48(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
49 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
50 { LC_CTYPE=C; export LC_CTYPE; }
51(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
52 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
53 { LANGUAGE=C; export LANGUAGE; }
54(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
55 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
56 { LC_COLLATE=C; export LC_COLLATE; }
57(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
58 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
59 { LC_NUMERIC=C; export LC_NUMERIC; }
60(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
61 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
62 { LC_MESSAGES=C; export LC_MESSAGES; }
63
64
65# Name of the executable.
66as_me=`(basename "$0") 2>/dev/null ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77# PATH needs CR, and LINENO needs CR and PATH.
78# Avoid depending upon Character Ranges.
79as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82as_cr_digits='0123456789'
83as_cr_alnum=$as_cr_Letters$as_cr_digits
84
85# The user is always right.
86if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conftest.sh
88 echo "exit 0" >>conftest.sh
89 chmod +x conftest.sh
90 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
91 PATH_SEPARATOR=';'
92 else
93 PATH_SEPARATOR=:
94 fi
95 rm -f conftest.sh
96fi
97
98
99 as_lineno_1=$LINENO
100 as_lineno_2=$LINENO
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
105 # relative or not.
106 case $0 in
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109for as_dir in $PATH
110do
111 IFS=$as_save_IFS
112 test -z "$as_dir" && as_dir=.
113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114done
115
116 ;;
117 esac
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
121 as_myself=$0
122 fi
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
126 fi
127 case $CONFIG_SHELL in
128 '')
129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131do
132 IFS=$as_save_IFS
133 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
135 case $as_dir in
136 /*)
137 if ("$as_dir/$as_base" -c '
138 as_lineno_1=$LINENO
139 as_lineno_2=$LINENO
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149done
150;;
151 esac
152
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
162 sed '
163 N
164 s,$,-,
165 : loop
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 t loop
168 s,-$,,
169 s,^['$as_cr_digits']*\n,,
170 ' >$as_me.lineno &&
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
174
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
178 . ./$as_me.lineno
179 # Exit status is that of the last command.
180 exit
181}
182
183
184case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
186' ECHO_T=' ' ;;
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189esac
190
191if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193else
194 as_expr=false
195fi
196
197rm -f conf$$ conf$$.exe conf$$.file
198echo >conf$$.file
199if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
204 as_ln_s='cp -p'
205 else
206 as_ln_s='ln -s'
207 fi
208elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210else
211 as_ln_s='cp -p'
212fi
213rm -f conf$$ conf$$.exe conf$$.file
214
215as_executable_p="test -f"
216
217# Sed expression to map a string onto a valid CPP name.
218as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
219
220# Sed expression to map a string onto a valid variable name.
221as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
222
223
224# IFS
225# We need space, tab and new line, in precisely that order.
226as_nl='
227'
228IFS=" $as_nl"
229
230# CDPATH.
231$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232
233
234# Name of the host.
235# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
236# so uname gets run too.
237ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
238
239exec 6>&1
240
241#
242# Initializations.
243#
244ac_default_prefix=/usr/local
245cross_compiling=no
246subdirs=
247MFLAGS=
248MAKEFLAGS=
249SHELL=${CONFIG_SHELL-/bin/sh}
250
251# Maximum number of lines to put in a shell here document.
252# This variable seems obsolete. It should probably be removed, and
253# only ac_max_sed_lines should be used.
254: ${ac_max_here_lines=38}
255
256# Identity of this package.
257PACKAGE_NAME='Splint'
258PACKAGE_TARNAME='splint'
d767066b 259PACKAGE_VERSION='3.1.0'
260PACKAGE_STRING='Splint 3.1.0'
fbb86200 261PACKAGE_BUGREPORT='splint-bug@splint.org'
262
263ac_unique_file="src/lclinit.c"
264
265# Initialize some variables set by options.
266ac_init_help=
267ac_init_version=false
268# The variables have the same names as the options, with
269# dashes changed to underlines.
270cache_file=/dev/null
271exec_prefix=NONE
272no_create=
273no_recursion=
274prefix=NONE
275program_prefix=NONE
276program_suffix=NONE
277program_transform_name=s,x,x,
278silent=
279site=
280srcdir=
281verbose=
282x_includes=NONE
283x_libraries=NONE
284
285# Installation directory options.
286# These are left unexpanded so users can "make install exec_prefix=/foo"
287# and all the variables that are supposed to be based on exec_prefix
288# by default will actually change.
289# Use braces instead of parens because sh, perl, etc. also accept them.
290bindir='${exec_prefix}/bin'
291sbindir='${exec_prefix}/sbin'
292libexecdir='${exec_prefix}/libexec'
293datadir='${prefix}/share'
294sysconfdir='${prefix}/etc'
295sharedstatedir='${prefix}/com'
296localstatedir='${prefix}/var'
297libdir='${exec_prefix}/lib'
298includedir='${prefix}/include'
299oldincludedir='/usr/include'
300infodir='${prefix}/info'
301mandir='${prefix}/man'
302
303ac_prev=
304for ac_option
305do
306 # If the previous option needs an argument, assign it.
307 if test -n "$ac_prev"; then
308 eval "$ac_prev=\$ac_option"
309 ac_prev=
310 continue
311 fi
312
313 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
314
315 # Accept the important Cygnus configure options, so we can diagnose typos.
316
317 case $ac_option in
318
319 -bindir | --bindir | --bindi | --bind | --bin | --bi)
320 ac_prev=bindir ;;
321 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
322 bindir=$ac_optarg ;;
323
324 -build | --build | --buil | --bui | --bu)
325 ac_prev=build_alias ;;
326 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
327 build_alias=$ac_optarg ;;
328
329 -cache-file | --cache-file | --cache-fil | --cache-fi \
330 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
331 ac_prev=cache_file ;;
332 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
333 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
334 cache_file=$ac_optarg ;;
335
336 --config-cache | -C)
337 cache_file=config.cache ;;
338
339 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
340 ac_prev=datadir ;;
341 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
342 | --da=*)
343 datadir=$ac_optarg ;;
344
345 -disable-* | --disable-*)
346 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
347 # Reject names that are not valid shell variable names.
348 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
349 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
350 { (exit 1); exit 1; }; }
351 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
352 eval "enable_$ac_feature=no" ;;
353
354 -enable-* | --enable-*)
355 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
356 # Reject names that are not valid shell variable names.
357 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
358 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
359 { (exit 1); exit 1; }; }
360 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
361 case $ac_option in
362 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
363 *) ac_optarg=yes ;;
364 esac
365 eval "enable_$ac_feature='$ac_optarg'" ;;
366
367 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
368 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
369 | --exec | --exe | --ex)
370 ac_prev=exec_prefix ;;
371 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
372 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
373 | --exec=* | --exe=* | --ex=*)
374 exec_prefix=$ac_optarg ;;
375
376 -gas | --gas | --ga | --g)
377 # Obsolete; use --with-gas.
378 with_gas=yes ;;
379
380 -help | --help | --hel | --he | -h)
381 ac_init_help=long ;;
382 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
383 ac_init_help=recursive ;;
384 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
385 ac_init_help=short ;;
386
387 -host | --host | --hos | --ho)
388 ac_prev=host_alias ;;
389 -host=* | --host=* | --hos=* | --ho=*)
390 host_alias=$ac_optarg ;;
391
392 -includedir | --includedir | --includedi | --included | --include \
393 | --includ | --inclu | --incl | --inc)
394 ac_prev=includedir ;;
395 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
396 | --includ=* | --inclu=* | --incl=* | --inc=*)
397 includedir=$ac_optarg ;;
398
399 -infodir | --infodir | --infodi | --infod | --info | --inf)
400 ac_prev=infodir ;;
401 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
402 infodir=$ac_optarg ;;
403
404 -libdir | --libdir | --libdi | --libd)
405 ac_prev=libdir ;;
406 -libdir=* | --libdir=* | --libdi=* | --libd=*)
407 libdir=$ac_optarg ;;
408
409 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
410 | --libexe | --libex | --libe)
411 ac_prev=libexecdir ;;
412 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
413 | --libexe=* | --libex=* | --libe=*)
414 libexecdir=$ac_optarg ;;
415
416 -localstatedir | --localstatedir | --localstatedi | --localstated \
417 | --localstate | --localstat | --localsta | --localst \
418 | --locals | --local | --loca | --loc | --lo)
419 ac_prev=localstatedir ;;
420 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
421 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
422 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
423 localstatedir=$ac_optarg ;;
424
425 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
426 ac_prev=mandir ;;
427 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
428 mandir=$ac_optarg ;;
429
430 -nfp | --nfp | --nf)
431 # Obsolete; use --without-fp.
432 with_fp=no ;;
433
434 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
435 | --no-cr | --no-c | -n)
436 no_create=yes ;;
437
438 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
440 no_recursion=yes ;;
441
442 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
443 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
444 | --oldin | --oldi | --old | --ol | --o)
445 ac_prev=oldincludedir ;;
446 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
447 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
448 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
449 oldincludedir=$ac_optarg ;;
450
451 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
452 ac_prev=prefix ;;
453 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
454 prefix=$ac_optarg ;;
455
456 -program-prefix | --program-prefix | --program-prefi | --program-pref \
457 | --program-pre | --program-pr | --program-p)
458 ac_prev=program_prefix ;;
459 -program-prefix=* | --program-prefix=* | --program-prefi=* \
460 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
461 program_prefix=$ac_optarg ;;
462
463 -program-suffix | --program-suffix | --program-suffi | --program-suff \
464 | --program-suf | --program-su | --program-s)
465 ac_prev=program_suffix ;;
466 -program-suffix=* | --program-suffix=* | --program-suffi=* \
467 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
468 program_suffix=$ac_optarg ;;
469
470 -program-transform-name | --program-transform-name \
471 | --program-transform-nam | --program-transform-na \
472 | --program-transform-n | --program-transform- \
473 | --program-transform | --program-transfor \
474 | --program-transfo | --program-transf \
475 | --program-trans | --program-tran \
476 | --progr-tra | --program-tr | --program-t)
477 ac_prev=program_transform_name ;;
478 -program-transform-name=* | --program-transform-name=* \
479 | --program-transform-nam=* | --program-transform-na=* \
480 | --program-transform-n=* | --program-transform-=* \
481 | --program-transform=* | --program-transfor=* \
482 | --program-transfo=* | --program-transf=* \
483 | --program-trans=* | --program-tran=* \
484 | --progr-tra=* | --program-tr=* | --program-t=*)
485 program_transform_name=$ac_optarg ;;
486
487 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
488 | -silent | --silent | --silen | --sile | --sil)
489 silent=yes ;;
490
491 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
492 ac_prev=sbindir ;;
493 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
494 | --sbi=* | --sb=*)
495 sbindir=$ac_optarg ;;
496
497 -sharedstatedir | --sharedstatedir | --sharedstatedi \
498 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
499 | --sharedst | --shareds | --shared | --share | --shar \
500 | --sha | --sh)
501 ac_prev=sharedstatedir ;;
502 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
503 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
504 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
505 | --sha=* | --sh=*)
506 sharedstatedir=$ac_optarg ;;
507
508 -site | --site | --sit)
509 ac_prev=site ;;
510 -site=* | --site=* | --sit=*)
511 site=$ac_optarg ;;
512
513 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
514 ac_prev=srcdir ;;
515 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
516 srcdir=$ac_optarg ;;
517
518 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
519 | --syscon | --sysco | --sysc | --sys | --sy)
520 ac_prev=sysconfdir ;;
521 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
522 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
523 sysconfdir=$ac_optarg ;;
524
525 -target | --target | --targe | --targ | --tar | --ta | --t)
526 ac_prev=target_alias ;;
527 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
528 target_alias=$ac_optarg ;;
529
530 -v | -verbose | --verbose | --verbos | --verbo | --verb)
531 verbose=yes ;;
532
533 -version | --version | --versio | --versi | --vers | -V)
534 ac_init_version=: ;;
535
536 -with-* | --with-*)
537 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
538 # Reject names that are not valid shell variable names.
539 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
540 { echo "$as_me: error: invalid package name: $ac_package" >&2
541 { (exit 1); exit 1; }; }
542 ac_package=`echo $ac_package| sed 's/-/_/g'`
543 case $ac_option in
544 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
545 *) ac_optarg=yes ;;
546 esac
547 eval "with_$ac_package='$ac_optarg'" ;;
548
549 -without-* | --without-*)
550 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package=`echo $ac_package | sed 's/-/_/g'`
556 eval "with_$ac_package=no" ;;
557
558 --x)
559 # Obsolete; use --with-x.
560 with_x=yes ;;
561
562 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
563 | --x-incl | --x-inc | --x-in | --x-i)
564 ac_prev=x_includes ;;
565 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
566 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
567 x_includes=$ac_optarg ;;
568
569 -x-libraries | --x-libraries | --x-librarie | --x-librari \
570 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
571 ac_prev=x_libraries ;;
572 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
573 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
574 x_libraries=$ac_optarg ;;
575
576 -*) { echo "$as_me: error: unrecognized option: $ac_option
577Try \`$0 --help' for more information." >&2
578 { (exit 1); exit 1; }; }
579 ;;
580
581 *=*)
582 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
583 # Reject names that are not valid shell variable names.
584 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
585 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
586 { (exit 1); exit 1; }; }
587 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
588 eval "$ac_envvar='$ac_optarg'"
589 export $ac_envvar ;;
590
591 *)
592 # FIXME: should be removed in autoconf 3.0.
593 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
594 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
595 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
596 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
597 ;;
598
599 esac
600done
601
602if test -n "$ac_prev"; then
603 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
604 { echo "$as_me: error: missing argument to $ac_option" >&2
605 { (exit 1); exit 1; }; }
606fi
607
608# Be sure to have absolute paths.
609for ac_var in exec_prefix prefix
610do
611 eval ac_val=$`echo $ac_var`
612 case $ac_val in
613 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
614 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
615 { (exit 1); exit 1; }; };;
616 esac
617done
618
619# Be sure to have absolute paths.
620for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
621 localstatedir libdir includedir oldincludedir infodir mandir
622do
623 eval ac_val=$`echo $ac_var`
624 case $ac_val in
625 [\\/$]* | ?:[\\/]* ) ;;
626 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627 { (exit 1); exit 1; }; };;
628 esac
629done
630
631# There might be people who depend on the old broken behavior: `$host'
632# used to hold the argument of --host etc.
633# FIXME: To remove some day.
634build=$build_alias
635host=$host_alias
636target=$target_alias
637
638# FIXME: To remove some day.
639if test "x$host_alias" != x; then
640 if test "x$build_alias" = x; then
641 cross_compiling=maybe
642 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
643 If a cross compiler is detected then cross compile mode will be used." >&2
644 elif test "x$build_alias" != "x$host_alias"; then
645 cross_compiling=yes
646 fi
647fi
648
649ac_tool_prefix=
650test -n "$host_alias" && ac_tool_prefix=$host_alias-
651
652test "$silent" = yes && exec 6>/dev/null
653
654
655# Find the source files, if location was not specified.
656if test -z "$srcdir"; then
657 ac_srcdir_defaulted=yes
658 # Try the directory containing this script, then its parent.
659 ac_confdir=`(dirname "$0") 2>/dev/null ||
660$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
661 X"$0" : 'X\(//\)[^/]' \| \
662 X"$0" : 'X\(//\)$' \| \
663 X"$0" : 'X\(/\)' \| \
664 . : '\(.\)' 2>/dev/null ||
665echo X"$0" |
666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
668 /^X\(\/\/\)$/{ s//\1/; q; }
669 /^X\(\/\).*/{ s//\1/; q; }
670 s/.*/./; q'`
671 srcdir=$ac_confdir
672 if test ! -r $srcdir/$ac_unique_file; then
673 srcdir=..
674 fi
675else
676 ac_srcdir_defaulted=no
677fi
678if test ! -r $srcdir/$ac_unique_file; then
679 if test "$ac_srcdir_defaulted" = yes; then
680 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
681 { (exit 1); exit 1; }; }
682 else
683 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
684 { (exit 1); exit 1; }; }
685 fi
686fi
687srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
688ac_env_build_alias_set=${build_alias+set}
689ac_env_build_alias_value=$build_alias
690ac_cv_env_build_alias_set=${build_alias+set}
691ac_cv_env_build_alias_value=$build_alias
692ac_env_host_alias_set=${host_alias+set}
693ac_env_host_alias_value=$host_alias
694ac_cv_env_host_alias_set=${host_alias+set}
695ac_cv_env_host_alias_value=$host_alias
696ac_env_target_alias_set=${target_alias+set}
697ac_env_target_alias_value=$target_alias
698ac_cv_env_target_alias_set=${target_alias+set}
699ac_cv_env_target_alias_value=$target_alias
700ac_env_CC_set=${CC+set}
701ac_env_CC_value=$CC
702ac_cv_env_CC_set=${CC+set}
703ac_cv_env_CC_value=$CC
704ac_env_CFLAGS_set=${CFLAGS+set}
705ac_env_CFLAGS_value=$CFLAGS
706ac_cv_env_CFLAGS_set=${CFLAGS+set}
707ac_cv_env_CFLAGS_value=$CFLAGS
708ac_env_LDFLAGS_set=${LDFLAGS+set}
709ac_env_LDFLAGS_value=$LDFLAGS
710ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
711ac_cv_env_LDFLAGS_value=$LDFLAGS
712ac_env_CPPFLAGS_set=${CPPFLAGS+set}
713ac_env_CPPFLAGS_value=$CPPFLAGS
714ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
715ac_cv_env_CPPFLAGS_value=$CPPFLAGS
716ac_env_CPP_set=${CPP+set}
717ac_env_CPP_value=$CPP
718ac_cv_env_CPP_set=${CPP+set}
719ac_cv_env_CPP_value=$CPP
720
721#
722# Report the --help message.
723#
724if test "$ac_init_help" = "long"; then
725 # Omit some internal or obsolete options to make the list less imposing.
726 # This message is too long to be a string in the A/UX 3.1 sh.
727 cat <<_ACEOF
d767066b 728\`configure' configures Splint 3.1.0 to adapt to many kinds of systems.
fbb86200 729
730Usage: $0 [OPTION]... [VAR=VALUE]...
731
732To assign environment variables (e.g., CC, CFLAGS...), specify them as
733VAR=VALUE. See below for descriptions of some of the useful variables.
734
735Defaults for the options are specified in brackets.
736
737Configuration:
738 -h, --help display this help and exit
739 --help=short display options specific to this package
740 --help=recursive display the short help of all the included packages
741 -V, --version display version information and exit
742 -q, --quiet, --silent do not print \`checking...' messages
743 --cache-file=FILE cache test results in FILE [disabled]
744 -C, --config-cache alias for \`--cache-file=config.cache'
745 -n, --no-create do not create output files
746 --srcdir=DIR find the sources in DIR [configure dir or \`..']
747
748_ACEOF
749
750 cat <<_ACEOF
751Installation directories:
752 --prefix=PREFIX install architecture-independent files in PREFIX
753 [$ac_default_prefix]
754 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
755 [PREFIX]
756
757By default, \`make install' will install all the files in
758\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
759an installation prefix other than \`$ac_default_prefix' using \`--prefix',
760for instance \`--prefix=\$HOME'.
761
762For better control, use the options below.
763
764Fine tuning of the installation directories:
765 --bindir=DIR user executables [EPREFIX/bin]
766 --sbindir=DIR system admin executables [EPREFIX/sbin]
767 --libexecdir=DIR program executables [EPREFIX/libexec]
768 --datadir=DIR read-only architecture-independent data [PREFIX/share]
769 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
770 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
771 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
772 --libdir=DIR object code libraries [EPREFIX/lib]
773 --includedir=DIR C header files [PREFIX/include]
774 --oldincludedir=DIR C header files for non-gcc [/usr/include]
775 --infodir=DIR info documentation [PREFIX/info]
776 --mandir=DIR man documentation [PREFIX/man]
777_ACEOF
778
779 cat <<\_ACEOF
780
781Program names:
782 --program-prefix=PREFIX prepend PREFIX to installed program names
783 --program-suffix=SUFFIX append SUFFIX to installed program names
784 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
785
786System types:
787 --build=BUILD configure for building on BUILD [guessed]
788 --host=HOST cross-compile to build programs to run on HOST [BUILD]
789 --target=TARGET configure for building compilers for TARGET [HOST]
790_ACEOF
791fi
792
793if test -n "$ac_init_help"; then
794 case $ac_init_help in
d767066b 795 short | recursive ) echo "Configuration of Splint 3.1.0:";;
fbb86200 796 esac
797 cat <<\_ACEOF
798
799Optional Features:
800 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
801 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
802 --disable-dependency-tracking Speeds up one-time builds
803 --enable-dependency-tracking Do not reject slow dependency extractors
804
805Optional Packages:
806 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
807 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
808 --without-lcl don't include support for LCL files
809
810Some influential environment variables:
811 CC C compiler command
812 CFLAGS C compiler flags
813 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
814 nonstandard directory <lib dir>
815 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
816 headers in a nonstandard directory <include dir>
817 CPP C preprocessor
818
819Use these variables to override the choices made by `configure' or to help
820it to find libraries and programs with nonstandard names/locations.
821
822Report bugs to <splint-bug@splint.org>.
823_ACEOF
824fi
825
826if test "$ac_init_help" = "recursive"; then
827 # If there are subdirs, report their specific --help.
828 ac_popdir=`pwd`
829 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
830 test -d $ac_dir || continue
831 ac_builddir=.
832
833if test "$ac_dir" != .; then
834 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
835 # A "../" for each directory in $ac_dir_suffix.
836 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
837else
838 ac_dir_suffix= ac_top_builddir=
839fi
840
841case $srcdir in
842 .) # No --srcdir option. We are building in place.
843 ac_srcdir=.
844 if test -z "$ac_top_builddir"; then
845 ac_top_srcdir=.
846 else
847 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
848 fi ;;
849 [\\/]* | ?:[\\/]* ) # Absolute path.
850 ac_srcdir=$srcdir$ac_dir_suffix;
851 ac_top_srcdir=$srcdir ;;
852 *) # Relative path.
853 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
854 ac_top_srcdir=$ac_top_builddir$srcdir ;;
855esac
856# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
857# absolute.
858ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
859ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
860ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
861ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
862
863 cd $ac_dir
864 # Check for guested configure; otherwise get Cygnus style configure.
865 if test -f $ac_srcdir/configure.gnu; then
866 echo
867 $SHELL $ac_srcdir/configure.gnu --help=recursive
868 elif test -f $ac_srcdir/configure; then
869 echo
870 $SHELL $ac_srcdir/configure --help=recursive
871 elif test -f $ac_srcdir/configure.ac ||
872 test -f $ac_srcdir/configure.in; then
873 echo
874 $ac_configure --help
875 else
876 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
877 fi
878 cd $ac_popdir
879 done
880fi
881
882test -n "$ac_init_help" && exit 0
883if $ac_init_version; then
884 cat <<\_ACEOF
d767066b 885Splint configure 3.1.0
fbb86200 886generated by GNU Autoconf 2.53
887
888Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
889Free Software Foundation, Inc.
890This configure script is free software; the Free Software Foundation
891gives unlimited permission to copy, distribute and modify it.
892_ACEOF
893 exit 0
894fi
895exec 5>config.log
896cat >&5 <<_ACEOF
897This file contains any messages produced by compilers while
898running configure, to aid debugging if configure makes a mistake.
899
d767066b 900It was created by Splint $as_me 3.1.0, which was
fbb86200 901generated by GNU Autoconf 2.53. Invocation command line was
902
903 $ $0 $@
904
905_ACEOF
906{
907cat <<_ASUNAME
908## --------- ##
909## Platform. ##
910## --------- ##
911
912hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
913uname -m = `(uname -m) 2>/dev/null || echo unknown`
914uname -r = `(uname -r) 2>/dev/null || echo unknown`
915uname -s = `(uname -s) 2>/dev/null || echo unknown`
916uname -v = `(uname -v) 2>/dev/null || echo unknown`
917
918/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
919/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
920
921/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
922/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
923/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
924hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
925/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
926/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
927/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
928
929_ASUNAME
930
931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
932for as_dir in $PATH
933do
934 IFS=$as_save_IFS
935 test -z "$as_dir" && as_dir=.
936 echo "PATH: $as_dir"
937done
938
939} >&5
940
941cat >&5 <<_ACEOF
942
943
944## ----------- ##
945## Core tests. ##
946## ----------- ##
947
948_ACEOF
949
950
951# Keep a trace of the command line.
952# Strip out --no-create and --no-recursion so they do not pile up.
953# Also quote any args containing shell meta-characters.
954ac_configure_args=
955ac_sep=
956for ac_arg
957do
958 case $ac_arg in
959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
960 | --no-cr | --no-c | -n ) continue ;;
961 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
962 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963 continue ;;
964 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
965 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
966 esac
967 case " $ac_configure_args " in
968 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
969 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
970 ac_sep=" " ;;
971 esac
972 # Get rid of the leading space.
973done
974
975# When interrupted or exit'd, cleanup temporary files, and complete
976# config.log. We remove comments because anyway the quotes in there
977# would cause problems or look ugly.
978# WARNING: Be sure not to use single quotes in there, as some shells,
979# such as our DU 5.0 friend, will then `close' the trap.
980trap 'exit_status=$?
981 # Save into config.log some information that might help in debugging.
982 {
983 echo
984 cat <<\_ASBOX
985## ---------------- ##
986## Cache variables. ##
987## ---------------- ##
988_ASBOX
989 echo
990 # The following way of writing the cache mishandles newlines in values,
991{
992 (set) 2>&1 |
993 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
994 *ac_space=\ *)
995 sed -n \
996 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
998 ;;
999 *)
1000 sed -n \
1001 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1002 ;;
1003 esac;
1004}
1005 echo
1006 if test -s confdefs.h; then
1007 cat <<\_ASBOX
1008## ----------- ##
1009## confdefs.h. ##
1010## ----------- ##
1011_ASBOX
1012 echo
1013 sed "/^$/d" confdefs.h
1014 echo
1015 fi
1016 test "$ac_signal" != 0 &&
1017 echo "$as_me: caught signal $ac_signal"
1018 echo "$as_me: exit $exit_status"
1019 } >&5
1020 rm -f core core.* *.core &&
1021 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1022 exit $exit_status
1023 ' 0
1024for ac_signal in 1 2 13 15; do
1025 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1026done
1027ac_signal=0
1028
1029# confdefs.h avoids OS command line length limits that DEFS can exceed.
1030rm -rf conftest* confdefs.h
1031# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1032echo >confdefs.h
1033
1034# Predefined preprocessor variables.
1035
1036cat >>confdefs.h <<_ACEOF
1037#define PACKAGE_NAME "$PACKAGE_NAME"
1038_ACEOF
1039
1040
1041cat >>confdefs.h <<_ACEOF
1042#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1043_ACEOF
1044
1045
1046cat >>confdefs.h <<_ACEOF
1047#define PACKAGE_VERSION "$PACKAGE_VERSION"
1048_ACEOF
1049
1050
1051cat >>confdefs.h <<_ACEOF
1052#define PACKAGE_STRING "$PACKAGE_STRING"
1053_ACEOF
1054
1055
1056cat >>confdefs.h <<_ACEOF
1057#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1058_ACEOF
1059
1060
1061# Let the site file select an alternate cache file if it wants to.
1062# Prefer explicitly selected file to automatically selected ones.
1063if test -z "$CONFIG_SITE"; then
1064 if test "x$prefix" != xNONE; then
1065 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508533c5 1066 else
fbb86200 1067 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1068 fi
1069fi
1070for ac_site_file in $CONFIG_SITE; do
1071 if test -r "$ac_site_file"; then
1072 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1073echo "$as_me: loading site script $ac_site_file" >&6;}
1074 sed 's/^/| /' "$ac_site_file" >&5
1075 . "$ac_site_file"
1076 fi
1077done
1078
1079if test -r "$cache_file"; then
1080 # Some versions of bash will fail to source /dev/null (special
1081 # files actually), so we avoid doing that.
1082 if test -f "$cache_file"; then
1083 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1084echo "$as_me: loading cache $cache_file" >&6;}
1085 case $cache_file in
1086 [\\/]* | ?:[\\/]* ) . $cache_file;;
1087 *) . ./$cache_file;;
1088 esac
1089 fi
1090else
1091 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1092echo "$as_me: creating cache $cache_file" >&6;}
1093 >$cache_file
1094fi
1095
1096# Check that the precious variables saved in the cache have kept the same
1097# value.
1098ac_cache_corrupted=false
1099for ac_var in `(set) 2>&1 |
1100 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1101 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1102 eval ac_new_set=\$ac_env_${ac_var}_set
1103 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1104 eval ac_new_val="\$ac_env_${ac_var}_value"
1105 case $ac_old_set,$ac_new_set in
1106 set,)
1107 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1108echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1109 ac_cache_corrupted=: ;;
1110 ,set)
1111 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1112echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1113 ac_cache_corrupted=: ;;
1114 ,);;
1115 *)
1116 if test "x$ac_old_val" != "x$ac_new_val"; then
1117 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1118echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1119 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1120echo "$as_me: former value: $ac_old_val" >&2;}
1121 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1122echo "$as_me: current value: $ac_new_val" >&2;}
1123 ac_cache_corrupted=:
1124 fi;;
1125 esac
1126 # Pass precious variables to config.status.
1127 if test "$ac_new_set" = set; then
1128 case $ac_new_val in
1129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1130 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1131 *) ac_arg=$ac_var=$ac_new_val ;;
1132 esac
1133 case " $ac_configure_args " in
1134 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1135 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
508533c5 1136 esac
1137 fi
1138done
fbb86200 1139if $ac_cache_corrupted; then
1140 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1141echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1142 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1143echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1144 { (exit 1); exit 1; }; }
1145fi
1146
1147ac_ext=c
1148ac_cpp='$CPP $CPPFLAGS'
1149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1151ac_compiler_gnu=$ac_cv_c_compiler_gnu
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179ac_aux_dir=
1180for ac_dir in config $srcdir/config; do
1181 if test -f $ac_dir/install-sh; then
1182 ac_aux_dir=$ac_dir
1183 ac_install_sh="$ac_aux_dir/install-sh -c"
1184 break
1185 elif test -f $ac_dir/install.sh; then
1186 ac_aux_dir=$ac_dir
1187 ac_install_sh="$ac_aux_dir/install.sh -c"
1188 break
1189 elif test -f $ac_dir/shtool; then
1190 ac_aux_dir=$ac_dir
1191 ac_install_sh="$ac_aux_dir/shtool install -c"
1192 break
1193 fi
1194done
1195if test -z "$ac_aux_dir"; then
1196 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1197echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1198 { (exit 1); exit 1; }; }
1199fi
1200ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1201ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1202ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1203
1204
1205
1206
1207# Make sure we can run config.sub.
1208$ac_config_sub sun4 >/dev/null 2>&1 ||
1209 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1210echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1211 { (exit 1); exit 1; }; }
1212
1213echo "$as_me:$LINENO: checking build system type" >&5
1214echo $ECHO_N "checking build system type... $ECHO_C" >&6
1215if test "${ac_cv_build+set}" = set; then
1216 echo $ECHO_N "(cached) $ECHO_C" >&6
1217else
1218 ac_cv_build_alias=$build_alias
1219test -z "$ac_cv_build_alias" &&
1220 ac_cv_build_alias=`$ac_config_guess`
1221test -z "$ac_cv_build_alias" &&
1222 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1223echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1224 { (exit 1); exit 1; }; }
1225ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1226 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1227echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1228 { (exit 1); exit 1; }; }
1229
1230fi
1231echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1232echo "${ECHO_T}$ac_cv_build" >&6
1233build=$ac_cv_build
1234build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1235build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1236build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1237
1238
1239echo "$as_me:$LINENO: checking host system type" >&5
1240echo $ECHO_N "checking host system type... $ECHO_C" >&6
1241if test "${ac_cv_host+set}" = set; then
1242 echo $ECHO_N "(cached) $ECHO_C" >&6
1243else
1244 ac_cv_host_alias=$host_alias
1245test -z "$ac_cv_host_alias" &&
1246 ac_cv_host_alias=$ac_cv_build_alias
1247ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1248 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1249echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1250 { (exit 1); exit 1; }; }
1251
1252fi
1253echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1254echo "${ECHO_T}$ac_cv_host" >&6
1255host=$ac_cv_host
1256host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1257host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1258host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1259
1260
1261echo "$as_me:$LINENO: checking target system type" >&5
1262echo $ECHO_N "checking target system type... $ECHO_C" >&6
1263if test "${ac_cv_target+set}" = set; then
1264 echo $ECHO_N "(cached) $ECHO_C" >&6
1265else
1266 ac_cv_target_alias=$target_alias
1267test "x$ac_cv_target_alias" = "x" &&
1268 ac_cv_target_alias=$ac_cv_host_alias
1269ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1270 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1271echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1272 { (exit 1); exit 1; }; }
1273
1274fi
1275echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1276echo "${ECHO_T}$ac_cv_target" >&6
1277target=$ac_cv_target
1278target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1279target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1280target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1281
1282
1283# The aliases save the names the user supplied, while $host etc.
1284# will get canonicalized.
1285test -n "$target_alias" &&
1286 test "$program_prefix$program_suffix$program_transform_name" = \
1287 NONENONEs,x,x, &&
1288 program_prefix=${target_alias}-
1289
1290am__api_version="1.6"
1291# Find a good install program. We prefer a C program (faster),
1292# so one script is as good as another. But avoid the broken or
1293# incompatible versions:
1294# SysV /etc/install, /usr/sbin/install
1295# SunOS /usr/etc/install
1296# IRIX /sbin/install
1297# AIX /bin/install
1298# AmigaOS /C/install, which installs bootblocks on floppy discs
1299# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1300# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1301# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1302# ./install, which can be erroneously created by make from ./install.sh.
1303echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1304echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1305if test -z "$INSTALL"; then
1306if test "${ac_cv_path_install+set}" = set; then
1307 echo $ECHO_N "(cached) $ECHO_C" >&6
1308else
1309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1310for as_dir in $PATH
1311do
1312 IFS=$as_save_IFS
1313 test -z "$as_dir" && as_dir=.
1314 # Account for people who put trailing slashes in PATH elements.
1315case $as_dir/ in
1316 ./ | .// | /cC/* | \
1317 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1318 /usr/ucb/* ) ;;
1319 *)
1320 # OSF1 and SCO ODT 3.0 have their own names for install.
1321 # Don't use installbsd from OSF since it installs stuff as root
1322 # by default.
1323 for ac_prog in ginstall scoinst install; do
1324 for ac_exec_ext in '' $ac_executable_extensions; do
1325 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1326 if test $ac_prog = install &&
1327 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1328 # AIX install. It has an incompatible calling convention.
1329 :
1330 elif test $ac_prog = install &&
1331 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1332 # program-specific install script used by HP pwplus--don't use.
1333 :
1334 else
1335 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1336 break 3
1337 fi
1338 fi
1339 done
1340 done
1341 ;;
1342esac
1343done
1344
1345
1346fi
1347 if test "${ac_cv_path_install+set}" = set; then
1348 INSTALL=$ac_cv_path_install
1349 else
1350 # As a last resort, use the slow shell script. We don't cache a
1351 # path for INSTALL within a source directory, because that will
1352 # break other packages using the cache if that directory is
1353 # removed, or if the path is relative.
1354 INSTALL=$ac_install_sh
1355 fi
1356fi
1357echo "$as_me:$LINENO: result: $INSTALL" >&5
1358echo "${ECHO_T}$INSTALL" >&6
1359
1360# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1361# It thinks the first close brace ends the variable substitution.
1362test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1363
1364test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1365
1366test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1367
1368echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1369echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1370# Just in case
1371sleep 1
1372echo timestamp > conftest.file
1373# Do `set' in a subshell so we don't clobber the current shell's
1374# arguments. Must try -L first in case configure is actually a
1375# symlink; some systems play weird games with the mod time of symlinks
1376# (eg FreeBSD returns the mod time of the symlink's containing
1377# directory).
1378if (
1379 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1380 if test "$*" = "X"; then
1381 # -L didn't work.
1382 set X `ls -t $srcdir/configure conftest.file`
1383 fi
1384 rm -f conftest.file
1385 if test "$*" != "X $srcdir/configure conftest.file" \
1386 && test "$*" != "X conftest.file $srcdir/configure"; then
1387
1388 # If neither matched, then we have a broken ls. This can happen
1389 # if, for instance, CONFIG_SHELL is bash and it inherits a
1390 # broken ls alias from the environment. This has actually
1391 # happened. Such a system could not be considered "sane".
1392 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1393alias in your environment" >&5
1394echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1395alias in your environment" >&2;}
1396 { (exit 1); exit 1; }; }
1397 fi
1398
1399 test "$2" = conftest.file
1400 )
1401then
1402 # Ok.
1403 :
1404else
1405 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1406Check your system clock" >&5
1407echo "$as_me: error: newly created file is older than distributed files!
1408Check your system clock" >&2;}
1409 { (exit 1); exit 1; }; }
1410fi
1411echo "$as_me:$LINENO: result: yes" >&5
1412echo "${ECHO_T}yes" >&6
1413test "$program_prefix" != NONE &&
1414 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1415# Use a double $ so make ignores it.
1416test "$program_suffix" != NONE &&
1417 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1418# Double any \ or $. echo might interpret backslashes.
1419# By default was `s,x,x', remove it if useless.
1420cat <<\_ACEOF >conftest.sed
1421s/[\\$]/&&/g;s/;s,x,x,$//
1422_ACEOF
1423program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1424rm conftest.sed
1425
1426
1427# expand $ac_aux_dir to an absolute path
1428am_aux_dir=`cd $ac_aux_dir && pwd`
1429
1430test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1431# Use eval to expand $SHELL
1432if eval "$MISSING --run true"; then
1433 am_missing_run="$MISSING --run "
1434else
1435 am_missing_run=
1436 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1437echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1438fi
1439
1440for ac_prog in gawk mawk nawk awk
1441do
1442 # Extract the first word of "$ac_prog", so it can be a program name with args.
1443set dummy $ac_prog; ac_word=$2
1444echo "$as_me:$LINENO: checking for $ac_word" >&5
1445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446if test "${ac_cv_prog_AWK+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448else
1449 if test -n "$AWK"; then
1450 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1451else
1452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453for as_dir in $PATH
1454do
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 for ac_exec_ext in '' $ac_executable_extensions; do
1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459 ac_cv_prog_AWK="$ac_prog"
1460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 break 2
1462 fi
1463done
1464done
1465
1466fi
1467fi
1468AWK=$ac_cv_prog_AWK
1469if test -n "$AWK"; then
1470 echo "$as_me:$LINENO: result: $AWK" >&5
1471echo "${ECHO_T}$AWK" >&6
1472else
1473 echo "$as_me:$LINENO: result: no" >&5
1474echo "${ECHO_T}no" >&6
1475fi
1476
1477 test -n "$AWK" && break
1478done
1479
1480echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1481echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1482set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1483if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1485else
1486 cat >conftest.make <<\_ACEOF
1487all:
1488 @echo 'ac_maketemp="${MAKE}"'
1489_ACEOF
1490# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1491eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1492if test -n "$ac_maketemp"; then
1493 eval ac_cv_prog_make_${ac_make}_set=yes
1494else
1495 eval ac_cv_prog_make_${ac_make}_set=no
1496fi
1497rm -f conftest.make
1498fi
1499if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1500 echo "$as_me:$LINENO: result: yes" >&5
1501echo "${ECHO_T}yes" >&6
1502 SET_MAKE=
1503else
1504 echo "$as_me:$LINENO: result: no" >&5
1505echo "${ECHO_T}no" >&6
1506 SET_MAKE="MAKE=${MAKE-make}"
1507fi
1508
1509 # test to see if srcdir already configured
1510if test "`cd $srcdir && pwd`" != "`pwd`" &&
1511 test -f $srcdir/config.status; then
1512 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1513echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1514 { (exit 1); exit 1; }; }
1515fi
1516
1517# Define the identity of the package.
1518 PACKAGE=splint
d767066b 1519 VERSION=3.1.0
fbb86200 1520
1521
1522# Some tools Automake needs.
1523
1524ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1525
1526
1527AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1528
1529
1530AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1531
1532
1533AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1534
1535
1536MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1537
1538
1539AMTAR=${AMTAR-"${am_missing_run}tar"}
1540
1541install_sh=${install_sh-"$am_aux_dir/install-sh"}
1542
1543# Installed binaries are usually stripped using `strip' when the user
1544# run `make install-strip'. However `strip' might not be the right
1545# tool to use in cross-compilation environments, therefore Automake
1546# will honor the `STRIP' environment variable to overrule this program.
1547if test "$cross_compiling" != no; then
1548 if test -n "$ac_tool_prefix"; then
1549 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1550set dummy ${ac_tool_prefix}strip; ac_word=$2
1551echo "$as_me:$LINENO: checking for $ac_word" >&5
1552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553if test "${ac_cv_prog_STRIP+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556 if test -n "$STRIP"; then
1557 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1558else
1559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560for as_dir in $PATH
1561do
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 break 2
1569 fi
1570done
1571done
1572
1573fi
1574fi
1575STRIP=$ac_cv_prog_STRIP
1576if test -n "$STRIP"; then
1577 echo "$as_me:$LINENO: result: $STRIP" >&5
1578echo "${ECHO_T}$STRIP" >&6
1579else
1580 echo "$as_me:$LINENO: result: no" >&5
1581echo "${ECHO_T}no" >&6
1582fi
1583
1584fi
1585if test -z "$ac_cv_prog_STRIP"; then
1586 ac_ct_STRIP=$STRIP
1587 # Extract the first word of "strip", so it can be a program name with args.
1588set dummy strip; ac_word=$2
1589echo "$as_me:$LINENO: checking for $ac_word" >&5
1590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1591if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1593else
1594 if test -n "$ac_ct_STRIP"; then
1595 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1596else
1597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598for as_dir in $PATH
1599do
1600 IFS=$as_save_IFS
1601 test -z "$as_dir" && as_dir=.
1602 for ac_exec_ext in '' $ac_executable_extensions; do
1603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1604 ac_cv_prog_ac_ct_STRIP="strip"
1605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1606 break 2
1607 fi
1608done
1609done
1610
1611 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1612fi
1613fi
1614ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1615if test -n "$ac_ct_STRIP"; then
1616 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1617echo "${ECHO_T}$ac_ct_STRIP" >&6
1618else
1619 echo "$as_me:$LINENO: result: no" >&5
1620echo "${ECHO_T}no" >&6
1621fi
1622
1623 STRIP=$ac_ct_STRIP
1624else
1625 STRIP="$ac_cv_prog_STRIP"
1626fi
1627
1628fi
1629INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1630
1631# We need awk for the "check" target. The system "awk" is bad on
1632# some platforms.
1633
1634
1635
1636# Add the stamp file to the list of files AC keeps track of,
1637# along with our hook.
1638ac_config_headers="$ac_config_headers config.h:config.hin"
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648#drl 12-19-2001 commented out so Splint won't depend on C++
1649#AC_PROG_CXX
1650ac_ext=c
1651ac_cpp='$CPP $CPPFLAGS'
1652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1654ac_compiler_gnu=$ac_cv_c_compiler_gnu
1655if test -n "$ac_tool_prefix"; then
1656 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1657set dummy ${ac_tool_prefix}gcc; ac_word=$2
1658echo "$as_me:$LINENO: checking for $ac_word" >&5
1659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660if test "${ac_cv_prog_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662else
1663 if test -n "$CC"; then
1664 ac_cv_prog_CC="$CC" # Let the user override the test.
1665else
1666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667for as_dir in $PATH
1668do
1669 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 break 2
1676 fi
1677done
1678done
1679
1680fi
1681fi
1682CC=$ac_cv_prog_CC
1683if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685echo "${ECHO_T}$CC" >&6
1686else
1687 echo "$as_me:$LINENO: result: no" >&5
1688echo "${ECHO_T}no" >&6
1689fi
1690
1691fi
1692if test -z "$ac_cv_prog_CC"; then
1693 ac_ct_CC=$CC
1694 # Extract the first word of "gcc", so it can be a program name with args.
1695set dummy gcc; ac_word=$2
1696echo "$as_me:$LINENO: checking for $ac_word" >&5
1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701 if test -n "$ac_ct_CC"; then
1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703else
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_CC="gcc"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1714 fi
1715done
1716done
1717
1718fi
1719fi
1720ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721if test -n "$ac_ct_CC"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723echo "${ECHO_T}$ac_ct_CC" >&6
1724else
1725 echo "$as_me:$LINENO: result: no" >&5
1726echo "${ECHO_T}no" >&6
1727fi
1728
1729 CC=$ac_ct_CC
1730else
1731 CC="$ac_cv_prog_CC"
1732fi
1733
1734if test -z "$CC"; then
1735 if test -n "$ac_tool_prefix"; then
1736 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1737set dummy ${ac_tool_prefix}cc; ac_word=$2
1738echo "$as_me:$LINENO: checking for $ac_word" >&5
1739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740if test "${ac_cv_prog_CC+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1742else
1743 if test -n "$CC"; then
1744 ac_cv_prog_CC="$CC" # Let the user override the test.
1745else
1746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747for as_dir in $PATH
1748do
1749 IFS=$as_save_IFS
1750 test -z "$as_dir" && as_dir=.
1751 for ac_exec_ext in '' $ac_executable_extensions; do
1752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753 ac_cv_prog_CC="${ac_tool_prefix}cc"
1754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755 break 2
1756 fi
1757done
1758done
1759
1760fi
1761fi
1762CC=$ac_cv_prog_CC
1763if test -n "$CC"; then
1764 echo "$as_me:$LINENO: result: $CC" >&5
1765echo "${ECHO_T}$CC" >&6
1766else
1767 echo "$as_me:$LINENO: result: no" >&5
1768echo "${ECHO_T}no" >&6
1769fi
1770
1771fi
1772if test -z "$ac_cv_prog_CC"; then
1773 ac_ct_CC=$CC
1774 # Extract the first word of "cc", so it can be a program name with args.
1775set dummy cc; ac_word=$2
1776echo "$as_me:$LINENO: checking for $ac_word" >&5
1777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1780else
1781 if test -n "$ac_ct_CC"; then
1782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1783else
1784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785for as_dir in $PATH
1786do
1787 IFS=$as_save_IFS
1788 test -z "$as_dir" && as_dir=.
1789 for ac_exec_ext in '' $ac_executable_extensions; do
1790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791 ac_cv_prog_ac_ct_CC="cc"
1792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793 break 2
1794 fi
1795done
1796done
1797
1798fi
1799fi
1800ac_ct_CC=$ac_cv_prog_ac_ct_CC
1801if test -n "$ac_ct_CC"; then
1802 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1803echo "${ECHO_T}$ac_ct_CC" >&6
1804else
1805 echo "$as_me:$LINENO: result: no" >&5
1806echo "${ECHO_T}no" >&6
1807fi
1808
1809 CC=$ac_ct_CC
1810else
1811 CC="$ac_cv_prog_CC"
1812fi
1813
1814fi
1815if test -z "$CC"; then
1816 # Extract the first word of "cc", so it can be a program name with args.
1817set dummy cc; ac_word=$2
1818echo "$as_me:$LINENO: checking for $ac_word" >&5
1819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820if test "${ac_cv_prog_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822else
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1825else
1826 ac_prog_rejected=no
1827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828for as_dir in $PATH
1829do
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1835 ac_prog_rejected=yes
1836 continue
1837 fi
1838 ac_cv_prog_CC="cc"
1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 break 2
1841 fi
1842done
1843done
1844
1845if test $ac_prog_rejected = yes; then
1846 # We found a bogon in the path, so make sure we never use it.
1847 set dummy $ac_cv_prog_CC
1848 shift
1849 if test $# != 0; then
1850 # We chose a different compiler from the bogus one.
1851 # However, it has the same basename, so the bogon will be chosen
1852 # first if we set CC to just the basename; use the full file name.
1853 shift
1854 set dummy "$as_dir/$ac_word" ${1+"$@"}
1855 shift
1856 ac_cv_prog_CC="$@"
1857 fi
1858fi
1859fi
1860fi
1861CC=$ac_cv_prog_CC
1862if test -n "$CC"; then
1863 echo "$as_me:$LINENO: result: $CC" >&5
1864echo "${ECHO_T}$CC" >&6
1865else
1866 echo "$as_me:$LINENO: result: no" >&5
1867echo "${ECHO_T}no" >&6
1868fi
1869
1870fi
1871if test -z "$CC"; then
1872 if test -n "$ac_tool_prefix"; then
1873 for ac_prog in cl
1874 do
1875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1876set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1877echo "$as_me:$LINENO: checking for $ac_word" >&5
1878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879if test "${ac_cv_prog_CC+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881else
1882 if test -n "$CC"; then
1883 ac_cv_prog_CC="$CC" # Let the user override the test.
1884else
1885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886for as_dir in $PATH
1887do
1888 IFS=$as_save_IFS
1889 test -z "$as_dir" && as_dir=.
1890 for ac_exec_ext in '' $ac_executable_extensions; do
1891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 break 2
1895 fi
1896done
1897done
1898
1899fi
1900fi
1901CC=$ac_cv_prog_CC
1902if test -n "$CC"; then
1903 echo "$as_me:$LINENO: result: $CC" >&5
1904echo "${ECHO_T}$CC" >&6
1905else
1906 echo "$as_me:$LINENO: result: no" >&5
1907echo "${ECHO_T}no" >&6
1908fi
1909
1910 test -n "$CC" && break
1911 done
1912fi
1913if test -z "$CC"; then
1914 ac_ct_CC=$CC
1915 for ac_prog in cl
1916do
1917 # Extract the first word of "$ac_prog", so it can be a program name with args.
1918set dummy $ac_prog; ac_word=$2
1919echo "$as_me:$LINENO: checking for $ac_word" >&5
1920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924 if test -n "$ac_ct_CC"; then
1925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1926else
1927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928for as_dir in $PATH
1929do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934 ac_cv_prog_ac_ct_CC="$ac_prog"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 break 2
1937 fi
1938done
1939done
1940
1941fi
1942fi
1943ac_ct_CC=$ac_cv_prog_ac_ct_CC
1944if test -n "$ac_ct_CC"; then
1945 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1946echo "${ECHO_T}$ac_ct_CC" >&6
1947else
1948 echo "$as_me:$LINENO: result: no" >&5
1949echo "${ECHO_T}no" >&6
1950fi
1951
1952 test -n "$ac_ct_CC" && break
1953done
1954
1955 CC=$ac_ct_CC
1956fi
1957
1958fi
1959
1960
1961test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1962echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1963 { (exit 1); exit 1; }; }
1964
1965# Provide some information about the compiler.
1966echo "$as_me:$LINENO:" \
1967 "checking for C compiler version" >&5
1968ac_compiler=`set X $ac_compile; echo $2`
1969{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1970 (eval $ac_compiler --version </dev/null >&5) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }
1974{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1975 (eval $ac_compiler -v </dev/null >&5) 2>&5
1976 ac_status=$?
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }
1979{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1980 (eval $ac_compiler -V </dev/null >&5) 2>&5
1981 ac_status=$?
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }
1984
1985cat >conftest.$ac_ext <<_ACEOF
1986#line $LINENO "configure"
1987#include "confdefs.h"
1988
1989#ifdef F77_DUMMY_MAIN
1990# ifdef __cplusplus
1991 extern "C"
1992# endif
1993 int F77_DUMMY_MAIN() { return 1; }
1994#endif
1995int
1996main ()
1997{
1998
1999 ;
2000 return 0;
2001}
2002_ACEOF
2003ac_clean_files_save=$ac_clean_files
2004ac_clean_files="$ac_clean_files a.out a.exe"
2005# Try to create an executable without -o first, disregard a.out.
2006# It will help us diagnose broken compilers, and finding out an intuition
2007# of exeext.
2008echo "$as_me:$LINENO: checking for C compiler default output" >&5
2009echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2010ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2011if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2012 (eval $ac_link_default) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; then
2016 # Find the output, starting from the most likely. This scheme is
2017# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2018# resort.
2019
2020# Be careful to initialize this variable, since it used to be cached.
2021# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2022ac_cv_exeext=
2023for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2024 ls a.out conftest 2>/dev/null;
2025 ls a.* conftest.* 2>/dev/null`; do
2026 case $ac_file in
2027 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2028 a.out ) # We found the default executable, but exeext='' is most
2029 # certainly right.
2030 break;;
2031 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2032 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2033 export ac_cv_exeext
2034 break;;
2035 * ) break;;
2036 esac
2037done
2038else
2039 echo "$as_me: failed program was:" >&5
2040cat conftest.$ac_ext >&5
2041{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2042echo "$as_me: error: C compiler cannot create executables" >&2;}
2043 { (exit 77); exit 77; }; }
2044fi
2045
2046ac_exeext=$ac_cv_exeext
2047echo "$as_me:$LINENO: result: $ac_file" >&5
2048echo "${ECHO_T}$ac_file" >&6
2049
2050# Check the compiler produces executables we can run. If not, either
2051# the compiler is broken, or we cross compile.
2052echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2053echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2054# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2055# If not cross compiling, check that we can run a simple program.
2056if test "$cross_compiling" != yes; then
2057 if { ac_try='./$ac_file'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 (eval $ac_try) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; }; then
2063 cross_compiling=no
2064 else
2065 if test "$cross_compiling" = maybe; then
2066 cross_compiling=yes
2067 else
2068 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2069If you meant to cross compile, use \`--host'." >&5
2070echo "$as_me: error: cannot run C compiled programs.
2071If you meant to cross compile, use \`--host'." >&2;}
2072 { (exit 1); exit 1; }; }
2073 fi
2074 fi
2075fi
2076echo "$as_me:$LINENO: result: yes" >&5
2077echo "${ECHO_T}yes" >&6
2078
2079rm -f a.out a.exe conftest$ac_cv_exeext
2080ac_clean_files=$ac_clean_files_save
2081# Check the compiler produces executables we can run. If not, either
2082# the compiler is broken, or we cross compile.
2083echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2084echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2085echo "$as_me:$LINENO: result: $cross_compiling" >&5
2086echo "${ECHO_T}$cross_compiling" >&6
2087
2088echo "$as_me:$LINENO: checking for suffix of executables" >&5
2089echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2091 (eval $ac_link) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2096# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2097# work properly (i.e., refer to `conftest.exe'), while it won't with
2098# `rm'.
2099for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2100 case $ac_file in
2101 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2102 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2103 export ac_cv_exeext
2104 break;;
2105 * ) break;;
2106 esac
2107done
2108else
2109 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2110echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2111 { (exit 1); exit 1; }; }
2112fi
2113
2114rm -f conftest$ac_cv_exeext
2115echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2116echo "${ECHO_T}$ac_cv_exeext" >&6
2117
2118rm -f conftest.$ac_ext
2119EXEEXT=$ac_cv_exeext
2120ac_exeext=$EXEEXT
2121echo "$as_me:$LINENO: checking for suffix of object files" >&5
2122echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2123if test "${ac_cv_objext+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125else
2126 cat >conftest.$ac_ext <<_ACEOF
2127#line $LINENO "configure"
2128#include "confdefs.h"
2129
2130#ifdef F77_DUMMY_MAIN
2131# ifdef __cplusplus
2132 extern "C"
2133# endif
2134 int F77_DUMMY_MAIN() { return 1; }
2135#endif
2136int
2137main ()
2138{
2139
2140 ;
2141 return 0;
2142}
2143_ACEOF
2144rm -f conftest.o conftest.obj
2145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; then
2150 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2151 case $ac_file in
2152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2153 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2154 break;;
2155 esac
2156done
2157else
2158 echo "$as_me: failed program was:" >&5
2159cat conftest.$ac_ext >&5
2160{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2161echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2162 { (exit 1); exit 1; }; }
2163fi
2164
2165rm -f conftest.$ac_cv_objext conftest.$ac_ext
2166fi
2167echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2168echo "${ECHO_T}$ac_cv_objext" >&6
2169OBJEXT=$ac_cv_objext
2170ac_objext=$OBJEXT
2171echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2172echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2173if test "${ac_cv_c_compiler_gnu+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175else
2176 cat >conftest.$ac_ext <<_ACEOF
2177#line $LINENO "configure"
2178#include "confdefs.h"
2179
2180#ifdef F77_DUMMY_MAIN
2181# ifdef __cplusplus
2182 extern "C"
2183# endif
2184 int F77_DUMMY_MAIN() { return 1; }
2185#endif
2186int
2187main ()
2188{
2189#ifndef __GNUC__
2190 choke me
2191#endif
2192
2193 ;
2194 return 0;
2195}
2196_ACEOF
2197rm -f conftest.$ac_objext
2198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -s conftest.$ac_objext'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2209 ac_compiler_gnu=yes
2210else
2211 echo "$as_me: failed program was:" >&5
2212cat conftest.$ac_ext >&5
2213ac_compiler_gnu=no
2214fi
2215rm -f conftest.$ac_objext conftest.$ac_ext
2216ac_cv_c_compiler_gnu=$ac_compiler_gnu
2217
2218fi
2219echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2220echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2221GCC=`test $ac_compiler_gnu = yes && echo yes`
2222ac_test_CFLAGS=${CFLAGS+set}
2223ac_save_CFLAGS=$CFLAGS
2224CFLAGS="-g"
2225echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2226echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2227if test "${ac_cv_prog_cc_g+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
2230 cat >conftest.$ac_ext <<_ACEOF
2231#line $LINENO "configure"
2232#include "confdefs.h"
2233
2234#ifdef F77_DUMMY_MAIN
2235# ifdef __cplusplus
2236 extern "C"
2237# endif
2238 int F77_DUMMY_MAIN() { return 1; }
2239#endif
2240int
2241main ()
2242{
2243
2244 ;
2245 return 0;
2246}
2247_ACEOF
2248rm -f conftest.$ac_objext
2249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try='test -s conftest.$ac_objext'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 (eval $ac_try) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2260 ac_cv_prog_cc_g=yes
2261else
2262 echo "$as_me: failed program was:" >&5
2263cat conftest.$ac_ext >&5
2264ac_cv_prog_cc_g=no
2265fi
2266rm -f conftest.$ac_objext conftest.$ac_ext
2267fi
2268echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS=$ac_save_CFLAGS
2272elif test $ac_cv_prog_cc_g = yes; then
2273 if test "$GCC" = yes; then
2274 CFLAGS="-g -O2"
2275 else
2276 CFLAGS="-g"
2277 fi
2278else
2279 if test "$GCC" = yes; then
2280 CFLAGS="-O2"
2281 else
2282 CFLAGS=
2283 fi
2284fi
2285# Some people use a C++ compiler to compile C. Since we use `exit',
2286# in C++ we need to declare it. In case someone uses the same compiler
2287# for both compiling C and C++ we need to have the C++ compiler decide
2288# the declaration of exit, since it's the most demanding environment.
2289cat >conftest.$ac_ext <<_ACEOF
2290#ifndef __cplusplus
2291 choke me
2292#endif
2293_ACEOF
2294rm -f conftest.$ac_objext
2295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -s conftest.$ac_objext'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 (eval $ac_try) 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2306 for ac_declaration in \
2307 ''\
2308 '#include <stdlib.h>' \
2309 'extern "C" void std::exit (int) throw (); using std::exit;' \
2310 'extern "C" void std::exit (int); using std::exit;' \
2311 'extern "C" void exit (int) throw ();' \
2312 'extern "C" void exit (int);' \
2313 'void exit (int);'
2314do
2315 cat >conftest.$ac_ext <<_ACEOF
2316#line $LINENO "configure"
2317#include "confdefs.h"
2318#include <stdlib.h>
2319$ac_declaration
2320#ifdef F77_DUMMY_MAIN
2321# ifdef __cplusplus
2322 extern "C"
2323# endif
2324 int F77_DUMMY_MAIN() { return 1; }
2325#endif
2326int
2327main ()
2328{
2329exit (42);
2330 ;
2331 return 0;
2332}
2333_ACEOF
2334rm -f conftest.$ac_objext
2335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336 (eval $ac_compile) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2346 :
2347else
2348 echo "$as_me: failed program was:" >&5
2349cat conftest.$ac_ext >&5
2350continue
2351fi
2352rm -f conftest.$ac_objext conftest.$ac_ext
2353 cat >conftest.$ac_ext <<_ACEOF
2354#line $LINENO "configure"
2355#include "confdefs.h"
2356$ac_declaration
2357#ifdef F77_DUMMY_MAIN
2358# ifdef __cplusplus
2359 extern "C"
2360# endif
2361 int F77_DUMMY_MAIN() { return 1; }
2362#endif
2363int
2364main ()
2365{
2366exit (42);
2367 ;
2368 return 0;
2369}
2370_ACEOF
2371rm -f conftest.$ac_objext
2372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -s conftest.$ac_objext'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 (eval $ac_try) 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2383 break
2384else
2385 echo "$as_me: failed program was:" >&5
2386cat conftest.$ac_ext >&5
2387fi
2388rm -f conftest.$ac_objext conftest.$ac_ext
2389done
2390rm -f conftest*
2391if test -n "$ac_declaration"; then
2392 echo '#ifdef __cplusplus' >>confdefs.h
2393 echo $ac_declaration >>confdefs.h
2394 echo '#endif' >>confdefs.h
2395fi
2396
2397else
2398 echo "$as_me: failed program was:" >&5
2399cat conftest.$ac_ext >&5
2400fi
2401rm -f conftest.$ac_objext conftest.$ac_ext
2402ac_ext=c
2403ac_cpp='$CPP $CPPFLAGS'
2404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2406ac_compiler_gnu=$ac_cv_c_compiler_gnu
2407rm -f .deps 2>/dev/null
2408mkdir .deps 2>/dev/null
2409if test -d .deps; then
2410 DEPDIR=.deps
2411else
2412 # MS-DOS does not allow filenames that begin with a dot.
2413 DEPDIR=_deps
2414fi
2415rmdir .deps 2>/dev/null
2416
2417
2418ac_config_commands="$ac_config_commands depfiles"
2419
2420
2421am_make=${MAKE-make}
2422cat > confinc << 'END'
2423doit:
2424 @echo done
2425END
2426# If we don't find an include directive, just comment out the code.
2427echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2428echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2429am__include="#"
2430am__quote=
2431_am_result=none
2432# First try GNU make style include.
2433echo "include confinc" > confmf
2434# We grep out `Entering directory' and `Leaving directory'
2435# messages which can occur if `w' ends up in MAKEFLAGS.
2436# In particular we don't look at `^make:' because GNU make might
2437# be invoked under some other name (usually "gmake"), in which
2438# case it prints its new name instead of `make'.
2439if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2440 am__include=include
2441 am__quote=
2442 _am_result=GNU
2443fi
2444# Now try BSD make style include.
2445if test "$am__include" = "#"; then
2446 echo '.include "confinc"' > confmf
2447 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2448 am__include=.include
2449 am__quote="\""
2450 _am_result=BSD
2451 fi
2452fi
2453
2454
2455echo "$as_me:$LINENO: result: $_am_result" >&5
2456echo "${ECHO_T}$_am_result" >&6
2457rm -f confinc confmf
2458
2459# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2460if test "${enable_dependency_tracking+set}" = set; then
2461 enableval="$enable_dependency_tracking"
2462
2463fi;
2464if test "x$enable_dependency_tracking" != xno; then
2465 am_depcomp="$ac_aux_dir/depcomp"
2466 AMDEPBACKSLASH='\'
2467fi
2468
2469
2470if test "x$enable_dependency_tracking" != xno; then
2471 AMDEP_TRUE=
2472 AMDEP_FALSE='#'
2473else
2474 AMDEP_TRUE='#'
2475 AMDEP_FALSE=
2476fi
2477
2478
2479
2480
2481depcc="$CC" am_compiler_list=
2482
2483echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2484echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2485if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
2488 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2489 # We make a subdir and do the tests there. Otherwise we can end up
2490 # making bogus files that we don't know about and never remove. For
2491 # instance it was reported that on HP-UX the gcc test will end up
2492 # making a dummy file named `D' -- because `-MD' means `put the output
2493 # in D'.
2494 mkdir conftest.dir
2495 # Copy depcomp to subdir because otherwise we won't find it if we're
2496 # using a relative directory.
2497 cp "$am_depcomp" conftest.dir
2498 cd conftest.dir
2499
2500 am_cv_CC_dependencies_compiler_type=none
2501 if test "$am_compiler_list" = ""; then
2502 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2503 fi
2504 for depmode in $am_compiler_list; do
2505 # We need to recreate these files for each test, as the compiler may
2506 # overwrite some of them when testing with obscure command lines.
2507 # This happens at least with the AIX C compiler.
2508 echo '#include "conftest.h"' > conftest.c
2509 echo 'int i;' > conftest.h
2510 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2511
2512 case $depmode in
2513 nosideeffect)
2514 # after this tag, mechanisms are not by side-effect, so they'll
2515 # only be used when explicitly requested
2516 if test "x$enable_dependency_tracking" = xyes; then
2517 continue
2518 else
2519 break
2520 fi
2521 ;;
2522 none) break ;;
2523 esac
2524 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2525 # mode. It turns out that the SunPro C++ compiler does not properly
2526 # handle `-M -o', and we need to detect this.
2527 if depmode=$depmode \
2528 source=conftest.c object=conftest.o \
2529 depfile=conftest.Po tmpdepfile=conftest.TPo \
2530 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2531 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2532 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2533 am_cv_CC_dependencies_compiler_type=$depmode
2534 break
2535 fi
2536 done
2537
2538 cd ..
2539 rm -rf conftest.dir
2540else
2541 am_cv_CC_dependencies_compiler_type=none
2542fi
2543
2544fi
2545echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2546echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2547CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2548
2549
2550ac_ext=c
2551ac_cpp='$CPP $CPPFLAGS'
2552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2554ac_compiler_gnu=$ac_cv_c_compiler_gnu
2555echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2556echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2557# On Suns, sometimes $CPP names a directory.
2558if test -n "$CPP" && test -d "$CPP"; then
2559 CPP=
2560fi
2561if test -z "$CPP"; then
2562 if test "${ac_cv_prog_CPP+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564else
2565 # Double quotes because CPP needs to be expanded
2566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2567 do
2568 ac_preproc_ok=false
2569for ac_c_preproc_warn_flag in '' yes
2570do
2571 # Use a header file that comes with gcc, so configuring glibc
2572 # with a fresh cross-compiler works.
2573 # On the NeXT, cc -E runs the code through the compiler's parser,
2574 # not just through cpp. "Syntax error" is here to catch this case.
2575 cat >conftest.$ac_ext <<_ACEOF
2576#line $LINENO "configure"
2577#include "confdefs.h"
2578#include <assert.h>
2579 Syntax error
2580_ACEOF
2581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2583 ac_status=$?
2584 egrep -v '^ *\+' conftest.er1 >conftest.err
2585 rm -f conftest.er1
2586 cat conftest.err >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } >/dev/null; then
2589 if test -s conftest.err; then
2590 ac_cpp_err=$ac_c_preproc_warn_flag
2591 else
2592 ac_cpp_err=
2593 fi
2594else
2595 ac_cpp_err=yes
2596fi
2597if test -z "$ac_cpp_err"; then
2598 :
2599else
2600 echo "$as_me: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2602 # Broken: fails on valid input.
2603continue
2604fi
2605rm -f conftest.err conftest.$ac_ext
2606
2607 # OK, works on sane cases. Now check whether non-existent headers
2608 # can be detected and how.
2609 cat >conftest.$ac_ext <<_ACEOF
2610#line $LINENO "configure"
2611#include "confdefs.h"
2612#include <ac_nonexistent.h>
2613_ACEOF
2614if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2616 ac_status=$?
2617 egrep -v '^ *\+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } >/dev/null; then
2622 if test -s conftest.err; then
2623 ac_cpp_err=$ac_c_preproc_warn_flag
2624 else
2625 ac_cpp_err=
2626 fi
2627else
2628 ac_cpp_err=yes
2629fi
2630if test -z "$ac_cpp_err"; then
2631 # Broken: success on invalid input.
2632continue
2633else
2634 echo "$as_me: failed program was:" >&5
2635 cat conftest.$ac_ext >&5
2636 # Passes both tests.
2637ac_preproc_ok=:
2638break
2639fi
2640rm -f conftest.err conftest.$ac_ext
2641
2642done
2643# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2644rm -f conftest.err conftest.$ac_ext
2645if $ac_preproc_ok; then
2646 break
2647fi
2648
2649 done
2650 ac_cv_prog_CPP=$CPP
2651
2652fi
2653 CPP=$ac_cv_prog_CPP
2654else
2655 ac_cv_prog_CPP=$CPP
2656fi
2657echo "$as_me:$LINENO: result: $CPP" >&5
2658echo "${ECHO_T}$CPP" >&6
2659ac_preproc_ok=false
2660for ac_c_preproc_warn_flag in '' yes
2661do
2662 # Use a header file that comes with gcc, so configuring glibc
2663 # with a fresh cross-compiler works.
2664 # On the NeXT, cc -E runs the code through the compiler's parser,
2665 # not just through cpp. "Syntax error" is here to catch this case.
2666 cat >conftest.$ac_ext <<_ACEOF
2667#line $LINENO "configure"
2668#include "confdefs.h"
2669#include <assert.h>
2670 Syntax error
2671_ACEOF
2672if { (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 egrep -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 else
2683 ac_cpp_err=
2684 fi
2685else
2686 ac_cpp_err=yes
2687fi
2688if test -z "$ac_cpp_err"; then
2689 :
2690else
2691 echo "$as_me: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2693 # Broken: fails on valid input.
2694continue
2695fi
2696rm -f conftest.err conftest.$ac_ext
2697
2698 # OK, works on sane cases. Now check whether non-existent headers
2699 # can be detected and how.
2700 cat >conftest.$ac_ext <<_ACEOF
2701#line $LINENO "configure"
2702#include "confdefs.h"
2703#include <ac_nonexistent.h>
2704_ACEOF
2705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2707 ac_status=$?
2708 egrep -v '^ *\+' conftest.er1 >conftest.err
2709 rm -f conftest.er1
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } >/dev/null; then
2713 if test -s conftest.err; then
2714 ac_cpp_err=$ac_c_preproc_warn_flag
2715 else
2716 ac_cpp_err=
2717 fi
2718else
2719 ac_cpp_err=yes
2720fi
2721if test -z "$ac_cpp_err"; then
2722 # Broken: success on invalid input.
2723continue
2724else
2725 echo "$as_me: failed program was:" >&5
2726 cat conftest.$ac_ext >&5
2727 # Passes both tests.
2728ac_preproc_ok=:
2729break
2730fi
2731rm -f conftest.err conftest.$ac_ext
2732
2733done
2734# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2735rm -f conftest.err conftest.$ac_ext
2736if $ac_preproc_ok; then
2737 :
2738else
2739 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2740echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2741 { (exit 1); exit 1; }; }
2742fi
2743
2744ac_ext=c
2745ac_cpp='$CPP $CPPFLAGS'
2746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749
2750
2751for ac_prog in flex lex
2752do
2753 # Extract the first word of "$ac_prog", so it can be a program name with args.
2754set dummy $ac_prog; ac_word=$2
2755echo "$as_me:$LINENO: checking for $ac_word" >&5
2756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2757if test "${ac_cv_prog_LEX+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759else
2760 if test -n "$LEX"; then
2761 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2762else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770 ac_cv_prog_LEX="$ac_prog"
2771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774done
2775done
2776
2777fi
2778fi
2779LEX=$ac_cv_prog_LEX
2780if test -n "$LEX"; then
2781 echo "$as_me:$LINENO: result: $LEX" >&5
2782echo "${ECHO_T}$LEX" >&6
2783else
2784 echo "$as_me:$LINENO: result: no" >&5
2785echo "${ECHO_T}no" >&6
2786fi
2787
2788 test -n "$LEX" && break
2789done
2790test -n "$LEX" || LEX=":"
2791
2792if test -z "$LEXLIB"
2793then
2794 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2795echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2796if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2798else
2799 ac_check_lib_save_LIBS=$LIBS
2800LIBS="-lfl $LIBS"
2801cat >conftest.$ac_ext <<_ACEOF
2802#line $LINENO "configure"
2803#include "confdefs.h"
2804
2805/* Override any gcc2 internal prototype to avoid an error. */
2806#ifdef __cplusplus
2807extern "C"
2808#endif
2809/* We use char because int might match the return type of a gcc2
2810 builtin and then its argument prototype would still apply. */
2811char yywrap ();
2812#ifdef F77_DUMMY_MAIN
2813# ifdef __cplusplus
2814 extern "C"
2815# endif
2816 int F77_DUMMY_MAIN() { return 1; }
2817#endif
2818int
2819main ()
2820{
2821yywrap ();
2822 ;
2823 return 0;
2824}
2825_ACEOF
2826rm -f conftest.$ac_objext conftest$ac_exeext
2827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2828 (eval $ac_link) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
2832 { ac_try='test -s conftest$ac_exeext'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 (eval $ac_try) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; }; then
2838 ac_cv_lib_fl_yywrap=yes
2839else
2840 echo "$as_me: failed program was:" >&5
2841cat conftest.$ac_ext >&5
2842ac_cv_lib_fl_yywrap=no
2843fi
2844rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2845LIBS=$ac_check_lib_save_LIBS
2846fi
2847echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2848echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2849if test $ac_cv_lib_fl_yywrap = yes; then
2850 LEXLIB="-lfl"
2851else
2852 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2853echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2854if test "${ac_cv_lib_l_yywrap+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856else
2857 ac_check_lib_save_LIBS=$LIBS
2858LIBS="-ll $LIBS"
2859cat >conftest.$ac_ext <<_ACEOF
2860#line $LINENO "configure"
2861#include "confdefs.h"
2862
2863/* Override any gcc2 internal prototype to avoid an error. */
2864#ifdef __cplusplus
2865extern "C"
2866#endif
2867/* We use char because int might match the return type of a gcc2
2868 builtin and then its argument prototype would still apply. */
2869char yywrap ();
2870#ifdef F77_DUMMY_MAIN
2871# ifdef __cplusplus
2872 extern "C"
2873# endif
2874 int F77_DUMMY_MAIN() { return 1; }
2875#endif
2876int
2877main ()
2878{
2879yywrap ();
2880 ;
2881 return 0;
2882}
2883_ACEOF
2884rm -f conftest.$ac_objext conftest$ac_exeext
2885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2886 (eval $ac_link) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } &&
2890 { ac_try='test -s conftest$ac_exeext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 ac_cv_lib_l_yywrap=yes
2897else
2898 echo "$as_me: failed program was:" >&5
2899cat conftest.$ac_ext >&5
2900ac_cv_lib_l_yywrap=no
2901fi
2902rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2903LIBS=$ac_check_lib_save_LIBS
2904fi
2905echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2906echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2907if test $ac_cv_lib_l_yywrap = yes; then
2908 LEXLIB="-ll"
2909fi
2910
2911fi
2912
2913fi
2914
2915if test "x$LEX" != "x:"; then
2916 echo "$as_me:$LINENO: checking lex output file root" >&5
2917echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2918if test "${ac_cv_prog_lex_root+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921 # The minimal lex program is just a single line: %%. But some broken lexes
2922# (Solaris, I think it was) want two %% lines, so accommodate them.
2923cat >conftest.l <<_ACEOF
2924%%
2925%%
2926_ACEOF
2927{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2928 (eval $LEX conftest.l) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }
2932if test -f lex.yy.c; then
2933 ac_cv_prog_lex_root=lex.yy
2934elif test -f lexyy.c; then
2935 ac_cv_prog_lex_root=lexyy
2936else
2937 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2938echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2939 { (exit 1); exit 1; }; }
2940fi
2941fi
2942echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2943echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2944rm -f conftest.l
2945LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2946
2947echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2948echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2949if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951else
2952 # POSIX says lex can declare yytext either as a pointer or an array; the
2953# default is implementation-dependent. Figure out which it is, since
2954# not all implementations provide the %pointer and %array declarations.
2955ac_cv_prog_lex_yytext_pointer=no
2956echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2957ac_save_LIBS=$LIBS
2958LIBS="$LIBS $LEXLIB"
2959cat >conftest.$ac_ext <<_ACEOF
2960`cat $LEX_OUTPUT_ROOT.c`
2961_ACEOF
2962rm -f conftest.$ac_objext conftest$ac_exeext
2963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2964 (eval $ac_link) 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } &&
2968 { ac_try='test -s conftest$ac_exeext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 (eval $ac_try) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 ac_cv_prog_lex_yytext_pointer=yes
2975else
2976 echo "$as_me: failed program was:" >&5
2977cat conftest.$ac_ext >&5
2978fi
2979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2980LIBS=$ac_save_LIBS
2981rm -f "${LEX_OUTPUT_ROOT}.c"
2982
2983fi
2984echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2985echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2986if test $ac_cv_prog_lex_yytext_pointer = yes; then
2987
2988cat >>confdefs.h <<\_ACEOF
2989#define YYTEXT_POINTER 1
2990_ACEOF
2991
2992fi
2993
2994fi
2995if test "$LEX" = :; then
2996 LEX=${am_missing_run}flex
2997fi
2998# Find a good install program. We prefer a C program (faster),
2999# so one script is as good as another. But avoid the broken or
3000# incompatible versions:
3001# SysV /etc/install, /usr/sbin/install
3002# SunOS /usr/etc/install
3003# IRIX /sbin/install
3004# AIX /bin/install
3005# AmigaOS /C/install, which installs bootblocks on floppy discs
3006# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3007# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3008# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3009# ./install, which can be erroneously created by make from ./install.sh.
3010echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3011echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3012if test -z "$INSTALL"; then
3013if test "${ac_cv_path_install+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017for as_dir in $PATH
3018do
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 # Account for people who put trailing slashes in PATH elements.
3022case $as_dir/ in
3023 ./ | .// | /cC/* | \
3024 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3025 /usr/ucb/* ) ;;
3026 *)
3027 # OSF1 and SCO ODT 3.0 have their own names for install.
3028 # Don't use installbsd from OSF since it installs stuff as root
3029 # by default.
3030 for ac_prog in ginstall scoinst install; do
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3033 if test $ac_prog = install &&
3034 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3035 # AIX install. It has an incompatible calling convention.
3036 :
3037 elif test $ac_prog = install &&
3038 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3039 # program-specific install script used by HP pwplus--don't use.
3040 :
3041 else
3042 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3043 break 3
3044 fi
3045 fi
3046 done
3047 done
3048 ;;
3049esac
3050done
3051
3052
3053fi
3054 if test "${ac_cv_path_install+set}" = set; then
3055 INSTALL=$ac_cv_path_install
3056 else
3057 # As a last resort, use the slow shell script. We don't cache a
3058 # path for INSTALL within a source directory, because that will
3059 # break other packages using the cache if that directory is
3060 # removed, or if the path is relative.
3061 INSTALL=$ac_install_sh
3062 fi
3063fi
3064echo "$as_me:$LINENO: result: $INSTALL" >&5
3065echo "${ECHO_T}$INSTALL" >&6
3066
3067# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3068# It thinks the first close brace ends the variable substitution.
3069test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3070
3071test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3072
3073test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3074
3075echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
3076echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3077set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3078if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080else
3081 cat >conftest.make <<\_ACEOF
3082all:
3083 @echo 'ac_maketemp="${MAKE}"'
3084_ACEOF
3085# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3086eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3087if test -n "$ac_maketemp"; then
3088 eval ac_cv_prog_make_${ac_make}_set=yes
3089else
3090 eval ac_cv_prog_make_${ac_make}_set=no
3091fi
3092rm -f conftest.make
3093fi
3094if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3095 echo "$as_me:$LINENO: result: yes" >&5
3096echo "${ECHO_T}yes" >&6
3097 SET_MAKE=
3098else
3099 echo "$as_me:$LINENO: result: no" >&5
3100echo "${ECHO_T}no" >&6
3101 SET_MAKE="MAKE=${MAKE-make}"
3102fi
3103
3104echo "$as_me:$LINENO: checking whether ln -s works" >&5
3105echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3106LN_S=$as_ln_s
3107if test "$LN_S" = "ln -s"; then
3108 echo "$as_me:$LINENO: result: yes" >&5
3109echo "${ECHO_T}yes" >&6
3110else
3111 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3112echo "${ECHO_T}no, using $LN_S" >&6
3113fi
3114
3115# Extract the first word of "bison", so it can be a program name with args.
3116set dummy bison; ac_word=$2
3117echo "$as_me:$LINENO: checking for $ac_word" >&5
3118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3119if test "${ac_cv_prog_BISON+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121else
3122 if test -n "$BISON"; then
3123 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3124else
3125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126for as_dir in $PATH
3127do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_BISON="bison"
3133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3135 fi
3136done
3137done
3138
3139 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="no"
3140fi
3141fi
3142BISON=$ac_cv_prog_BISON
3143if test -n "$BISON"; then
3144 echo "$as_me:$LINENO: result: $BISON" >&5
3145echo "${ECHO_T}$BISON" >&6
3146else
3147 echo "$as_me:$LINENO: result: no" >&5
3148echo "${ECHO_T}no" >&6
3149fi
3150
3151# Extract the first word of "grep", so it can be a program name with args.
3152set dummy grep; ac_word=$2
3153echo "$as_me:$LINENO: checking for $ac_word" >&5
3154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3155if test "${ac_cv_prog_GREP+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3157else
3158 if test -n "$GREP"; then
3159 ac_cv_prog_GREP="$GREP" # Let the user override the test.
3160else
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_GREP="grep"
3169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 break 2
3171 fi
3172done
3173done
3174
3175 test -z "$ac_cv_prog_GREP" && ac_cv_prog_GREP="grep-is-missing"
3176fi
3177fi
3178GREP=$ac_cv_prog_GREP
3179if test -n "$GREP"; then
3180 echo "$as_me:$LINENO: result: $GREP" >&5
3181echo "${ECHO_T}$GREP" >&6
3182else
3183 echo "$as_me:$LINENO: result: no" >&5
3184echo "${ECHO_T}no" >&6
3185fi
3186
3187# Extract the first word of "diff", so it can be a program name with args.
3188set dummy diff; ac_word=$2
3189echo "$as_me:$LINENO: checking for $ac_word" >&5
3190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191if test "${ac_cv_prog_DIFF+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193else
3194 if test -n "$DIFF"; then
3195 ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
3196else
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_DIFF="diff"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3207 fi
3208done
3209done
3210
3211 test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff-is-missing"
3212fi
3213fi
3214DIFF=$ac_cv_prog_DIFF
3215if test -n "$DIFF"; then
3216 echo "$as_me:$LINENO: result: $DIFF" >&5
3217echo "${ECHO_T}$DIFF" >&6
3218else
3219 echo "$as_me:$LINENO: result: no" >&5
3220echo "${ECHO_T}no" >&6
3221fi
3222
3223# Extract the first word of "cat", so it can be a program name with args.
3224set dummy cat; ac_word=$2
3225echo "$as_me:$LINENO: checking for $ac_word" >&5
3226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3227if test "${ac_cv_prog_CAT+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229else
3230 if test -n "$CAT"; then
3231 ac_cv_prog_CAT="$CAT" # Let the user override the test.
3232else
3233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234for as_dir in $PATH
3235do
3236 IFS=$as_save_IFS
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240 ac_cv_prog_CAT="cat"
3241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 break 2
3243 fi
3244done
3245done
3246
3247 test -z "$ac_cv_prog_CAT" && ac_cv_prog_CAT="cat-is-missing"
3248fi
3249fi
3250CAT=$ac_cv_prog_CAT
3251if test -n "$CAT"; then
3252 echo "$as_me:$LINENO: result: $CAT" >&5
3253echo "${ECHO_T}$CAT" >&6
3254else
3255 echo "$as_me:$LINENO: result: no" >&5
3256echo "${ECHO_T}no" >&6
3257fi
3258
3259# Extract the first word of "rm", so it can be a program name with args.
3260set dummy rm; ac_word=$2
3261echo "$as_me:$LINENO: checking for $ac_word" >&5
3262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3263if test "${ac_cv_prog_RM+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3265else
3266 if test -n "$RM"; then
3267 ac_cv_prog_RM="$RM" # Let the user override the test.
3268else
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276 ac_cv_prog_RM="rm"
3277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280done
3281done
3282
3283 test -z "$ac_cv_prog_RM" && ac_cv_prog_RM="rm-is-missing"
3284fi
3285fi
3286RM=$ac_cv_prog_RM
3287if test -n "$RM"; then
3288 echo "$as_me:$LINENO: result: $RM" >&5
3289echo "${ECHO_T}$RM" >&6
3290else
3291 echo "$as_me:$LINENO: result: no" >&5
3292echo "${ECHO_T}no" >&6
3293fi
3294
3295# Extract the first word of "mv", so it can be a program name with args.
3296set dummy mv; ac_word=$2
3297echo "$as_me:$LINENO: checking for $ac_word" >&5
3298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3299if test "${ac_cv_prog_MV+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3301else
3302 if test -n "$MV"; then
3303 ac_cv_prog_MV="$MV" # Let the user override the test.
3304else
3305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306for as_dir in $PATH
3307do
3308 IFS=$as_save_IFS
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312 ac_cv_prog_MV="mv"
3313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 break 2
3315 fi
3316done
3317done
3318
3319 test -z "$ac_cv_prog_MV" && ac_cv_prog_MV="mv-is-missing"
3320fi
3321fi
3322MV=$ac_cv_prog_MV
3323if test -n "$MV"; then
3324 echo "$as_me:$LINENO: result: $MV" >&5
3325echo "${ECHO_T}$MV" >&6
3326else
3327 echo "$as_me:$LINENO: result: no" >&5
3328echo "${ECHO_T}no" >&6
3329fi
3330
3331# Extract the first word of "cp", so it can be a program name with args.
3332set dummy cp; ac_word=$2
3333echo "$as_me:$LINENO: checking for $ac_word" >&5
3334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335if test "${ac_cv_prog_CP+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338 if test -n "$CP"; then
3339 ac_cv_prog_CP="$CP" # Let the user override the test.
3340else
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_CP="cp"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352done
3353done
3354
3355 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP="cp-is-missing"
3356fi
3357fi
3358CP=$ac_cv_prog_CP
3359if test -n "$CP"; then
3360 echo "$as_me:$LINENO: result: $CP" >&5
3361echo "${ECHO_T}$CP" >&6
3362else
3363 echo "$as_me:$LINENO: result: no" >&5
3364echo "${ECHO_T}no" >&6
3365fi
3366
3367# Extract the first word of "sed", so it can be a program name with args.
3368set dummy sed; ac_word=$2
3369echo "$as_me:$LINENO: checking for $ac_word" >&5
3370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3371if test "${ac_cv_prog_SED+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3373else
3374 if test -n "$SED"; then
3375 ac_cv_prog_SED="$SED" # Let the user override the test.
3376else
3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 ac_cv_prog_SED="sed"
3385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3387 fi
3388done
3389done
3390
3391 test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="sed-is-missing"
3392fi
3393fi
3394SED=$ac_cv_prog_SED
3395if test -n "$SED"; then
3396 echo "$as_me:$LINENO: result: $SED" >&5
3397echo "${ECHO_T}$SED" >&6
3398else
3399 echo "$as_me:$LINENO: result: no" >&5
3400echo "${ECHO_T}no" >&6
3401fi
3402
3403
3404
3405
3406
3407
3408echo "$as_me:$LINENO: checking whether we need _ALL_SOURCE to expose mode_t" >&5
3409echo $ECHO_N "checking whether we need _ALL_SOURCE to expose mode_t... $ECHO_C" >&6
3410all=no
3411cat >conftest.$ac_ext <<_ACEOF
3412#line $LINENO "configure"
3413#include "confdefs.h"
3414
3415#include <stdio.h>
3416mode_t x;
3417
3418#ifdef F77_DUMMY_MAIN
3419# ifdef __cplusplus
3420 extern "C"
3421# endif
3422 int F77_DUMMY_MAIN() { return 1; }
3423#endif
3424int
3425main ()
3426{
3427
3428 ;
3429 return 0;
3430}
3431_ACEOF
3432rm -f conftest.$ac_objext
3433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try='test -s conftest.$ac_objext'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 (eval $ac_try) 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3444 :
3445else
3446 echo "$as_me: failed program was:" >&5
3447cat conftest.$ac_ext >&5
3448all=maybe
3449fi
3450rm -f conftest.$ac_objext conftest.$ac_ext
3451if test $all = maybe ; then
3452cat >conftest.$ac_ext <<_ACEOF
3453#line $LINENO "configure"
3454#include "confdefs.h"
3455
3456#define _ALL_SOURCE
3457#include <stdio.h>
3458mode_t x;
3459
3460#ifdef F77_DUMMY_MAIN
3461# ifdef __cplusplus
3462 extern "C"
3463# endif
3464 int F77_DUMMY_MAIN() { return 1; }
3465#endif
3466int
3467main ()
3468{
3469
3470 ;
3471 return 0;
3472}
3473_ACEOF
3474rm -f conftest.$ac_objext
3475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 cat >>confdefs.h <<\_ACEOF
3487#define _ALL_SOURCE 1
3488_ACEOF
3489 all=yes
3490else
3491 echo "$as_me: failed program was:" >&5
3492cat conftest.$ac_ext >&5
3493fi
3494rm -f conftest.$ac_objext conftest.$ac_ext
3495fi
3496if test $all = maybe ; then all=no ; fi
3497echo "$as_me:$LINENO: result: $all" >&5
3498echo "${ECHO_T}$all" >&6
3499
3500LCLOBJ='$(lcl_OBJECTS)'
3501
3502# Check whether --with-lcl or --without-lcl was given.
3503if test "${with_lcl+set}" = set; then
3504 withval="$with_lcl"
3505 ac_cv_use_lcl=$withval
3506else
3507 echo "$as_me:$LINENO: checking whether to include support for LCL files" >&5
3508echo $ECHO_N "checking whether to include support for LCL files... $ECHO_C" >&6
3509if test "${ac_cv_use_lcl+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512 ac_cv_use_lcl=yes
3513fi
3514echo "$as_me:$LINENO: result: $ac_cv_use_lcl" >&5
3515echo "${ECHO_T}$ac_cv_use_lcl" >&6
3516fi;
3517if test x$ac_cv_use_lcl != xyes; then
3518 LCLOBJ=
3519
3520cat >>confdefs.h <<\_ACEOF
3521#define NOLCL 1
3522_ACEOF
3523
3524fi
3525
3526
3527# Make sure we have an actual value for $prefix
3528myprefix=$prefix
3529test x$myprefix = xNONE && myprefix=$ac_default_prefix
3530
3531
3532### Yuck! This is really kludgey, but I don't understand autoconf well
3533### enough to do something simple that always works. Hopefully this does.
3534
3535# cpplib.h defines 2 include dirs; one is $includedir, the other is gcc's
3536# include dir. Not the most portable setup, but let's do our best.
3537
3538if test x$GCC = xyes; then
3539
3540# This breaks on gcc-3.0 on redhat fixing drl 11-15-2001
3541# GCC_INCLUDE_DIR=`LANGUAGE= LANG= $CC -v 2>&1 | sed -e '/^gcc/ d' -e 's/.* \(.*\)specs/\1include/'`
3542GCC_INCLUDE_DIR=/usr/include
3543# was /usr/lib/gcc-lib/i386-linux/2.7.2.1/include
3544# GCC_INCLUDE_DIR=`LANGUAGE= LANG= $CC -v 2>&1 | sed -n -e '/^gcc/ d' -e 's/.* \(.*\)specs/\1include/p'`
3545
3546cat >>confdefs.h <<_ACEOF
3547#define GCC_INCLUDE_DIR "$GCC_INCLUDE_DIR"
3548_ACEOF
3549
3550else
3551GCC_INCLUDE_DIR=/usr/include
3552
3553cat >>confdefs.h <<_ACEOF
3554#define GCC_INCLUDE_DIR "$GCC_INCLUDE_DIR"
3555_ACEOF
3556
3557fi
3558
3559
3560cat >>confdefs.h <<_ACEOF
3561#define GCC_INCLUDE_DIR2 "$myprefix/include"
3562_ACEOF
3563
3564
3565# These used to be in local_constants.h
3566
3567cat >>confdefs.h <<_ACEOF
3568#define SYSTEM_LIBDIR "$myprefix/include"
3569_ACEOF
3570
3571
3572cat >>confdefs.h <<_ACEOF
3573#define DEFAULT_LARCHPATH ".$PATH_SEPARATOR$myprefix/share/splint/lib$PATH_SEPARATOR`pwd`/lib$PATH_SEPARATOR"
3574_ACEOF
3575
3576
3577cat >>confdefs.h <<_ACEOF
3578#define DEFAULT_LCLIMPORTDIR ".$PATH_SEPARATOR$myprefix/share/splint/imports$PATH_SEPARATOR`pwd`/imports"
3579_ACEOF
3580
3581
3582# These used to be in herald.h
d767066b 3583LCL_PARSE_VERSION="Splint 3.1.0"
fbb86200 3584
3585cat >>confdefs.h <<_ACEOF
3586#define SPLINT_VERSION "$LCL_PARSE_VERSION --- `date +"%d %b %Y"`"
3587_ACEOF
3588
3589
3590cat >>confdefs.h <<_ACEOF
3591#define LCL_PARSE_VERSION "$LCL_PARSE_VERSION"
3592_ACEOF
3593
3594
3595cat >>confdefs.h <<_ACEOF
3596#define LCL_COMPILE "Compiled using $CC $CFLAGS on `uname -a` by `whoami`"
3597_ACEOF
3598
3599
3600
3601
3602cat >>confdefs.h <<\_ACEOF
3603#define UNIX 1
3604_ACEOF
3605
3606
3607#just define some Header constants for now...
3608
3609UNAME=`uname`
3610cat >>confdefs.h <<_ACEOF
3611#define UNAME "${UNAME}"
3612_ACEOF
3613
3614
3615cat >>confdefs.h <<_ACEOF
3616#define BUILD "${build}"
3617_ACEOF
3618
3619cat >>confdefs.h <<_ACEOF
3620#define HOST "${host}"
3621_ACEOF
3622
3623cat >>confdefs.h <<_ACEOF
3624#define TARGET "${target}"
3625_ACEOF
3626
3627
3628cat >>confdefs.h <<_ACEOF
3629#define BUILD_ALIAS "${build_alias}"
3630_ACEOF
3631
3632cat >>confdefs.h <<_ACEOF
3633#define HOST_ALIAS "${host_alias}"
3634_ACEOF
3635
3636cat >>confdefs.h <<_ACEOF
3637#define TARGET_ALIAS "${TARGET_ALIAS}"
3638_ACEOF
3639
3640
3641cat >>confdefs.h <<_ACEOF
3642#define BUILD_CPU "${build_cpu}"
3643_ACEOF
3644
3645cat >>confdefs.h <<_ACEOF
3646#define HOST_CPU "$host_cpu"
3647_ACEOF
508533c5 3648
fbb86200 3649cat >>confdefs.h <<_ACEOF
3650#define TARGET_CPU "${target_cpu}"
3651_ACEOF
508533c5 3652
508533c5 3653
fbb86200 3654cat >>confdefs.h <<_ACEOF
3655#define BUILD_VENDOR "${build_vendor}"
3656_ACEOF
508533c5 3657
fbb86200 3658cat >>confdefs.h <<_ACEOF
3659#define HOST_VENDOR "${host_vendor}"
3660_ACEOF
508533c5 3661
fbb86200 3662cat >>confdefs.h <<_ACEOF
3663#define TARGET_VENDOR "${target_vendor}"
3664_ACEOF
3665
3666
3667cat >>confdefs.h <<_ACEOF
3668#define BUILD_OS "${build_os}"
3669_ACEOF
3670
3671cat >>confdefs.h <<_ACEOF
3672#define HOST_OS "${host_os}"
3673_ACEOF
3674
3675cat >>confdefs.h <<_ACEOF
3676#define TARGET_OS "${target_os}"
3677_ACEOF
3678
3679
3680
3681
3682
3683ac_config_files="$ac_config_files Makefile imports/Makefile lib/Makefile src/Makefile test/Makefile doc/Makefile bin/Makefile"
3684
3685cat >confcache <<\_ACEOF
3686# This file is a shell script that caches the results of configure
3687# tests run on this system so they can be shared between configure
3688# scripts and configure runs, see configure's option --config-cache.
3689# It is not useful on other systems. If it contains results you don't
3690# want to keep, you may remove or edit it.
3691#
3692# config.status only pays attention to the cache file if you give it
3693# the --recheck option to rerun configure.
3694#
3695# `ac_cv_env_foo' variables (set or unset) will be overriden when
3696# loading this file, other *unset* `ac_cv_foo' will be assigned the
3697# following values.
3698
3699_ACEOF
3700
3701# The following way of writing the cache mishandles newlines in values,
3702# but we know of no workaround that is simple, portable, and efficient.
3703# So, don't put newlines in cache variables' values.
3704# Ultrix sh set writes to stderr and can't be redirected directly,
3705# and sets the high bit in the cache file unless we assign to the vars.
3706{
3707 (set) 2>&1 |
3708 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3709 *ac_space=\ *)
3710 # `set' does not quote correctly, so add quotes (double-quote
3711 # substitution turns \\\\ into \\, and sed turns \\ into \).
3712 sed -n \
3713 "s/'/'\\\\''/g;
3714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3715 ;;
3716 *)
3717 # `set' quotes correctly as required by POSIX, so do not add quotes.
3718 sed -n \
3719 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3720 ;;
3721 esac;
3722} |
3723 sed '
3724 t clear
3725 : clear
3726 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3727 t end
3728 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3729 : end' >>confcache
3730if cmp -s $cache_file confcache; then :; else
3731 if test -w $cache_file; then
3732 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3733 cat confcache >$cache_file
508533c5 3734 else
fbb86200 3735 echo "not updating unwritable cache $cache_file"
508533c5 3736 fi
508533c5 3737fi
fbb86200 3738rm -f confcache
508533c5 3739
fbb86200 3740test "x$prefix" = xNONE && prefix=$ac_default_prefix
3741# Let make expand exec_prefix.
3742test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
508533c5 3743
fbb86200 3744# VPATH may cause trouble with some makes, so we remove $(srcdir),
3745# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3746# trailing colons and then remove the whole line if VPATH becomes empty
3747# (actually we leave an empty line to preserve line numbers).
3748if test "x$srcdir" = x.; then
3749 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3750s/:*\$(srcdir):*/:/;
3751s/:*\${srcdir}:*/:/;
3752s/:*@srcdir@:*/:/;
3753s/^\([^=]*=[ ]*\):*/\1/;
3754s/:*$//;
3755s/^[^=]*=[ ]*$//;
3756}'
508533c5 3757fi
508533c5 3758
fbb86200 3759DEFS=-DHAVE_CONFIG_H
508533c5 3760
fbb86200 3761if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3762 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
3763Usually this means the macro was only invoked conditionally." >&5
3764echo "$as_me: error: conditional \"AMDEP\" was never defined.
3765Usually this means the macro was only invoked conditionally." >&2;}
3766 { (exit 1); exit 1; }; }
508533c5 3767fi
3768
fbb86200 3769: ${CONFIG_STATUS=./config.status}
3770ac_clean_files_save=$ac_clean_files
3771ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3772{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3773echo "$as_me: creating $CONFIG_STATUS" >&6;}
3774cat >$CONFIG_STATUS <<_ACEOF
3775#! $SHELL
3776# Generated by $as_me.
3777# Run this file to recreate the current configuration.
3778# Compiler output produced by configure, useful for debugging
3779# configure, is in config.log if it exists.
508533c5 3780
fbb86200 3781debug=false
3782SHELL=\${CONFIG_SHELL-$SHELL}
3783_ACEOF
3784
3785cat >>$CONFIG_STATUS <<\_ACEOF
508533c5 3786
fbb86200 3787## --------------------- ##
3788## M4sh Initialization. ##
3789## --------------------- ##
508533c5 3790
fbb86200 3791# Be Bourne compatible
3792if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3793 emulate sh
3794 NULLCMD=:
3795elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3796 set -o posix
508533c5 3797fi
3798
fbb86200 3799# NLS nuisances.
3800# Support unset when possible.
3801if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3802 as_unset=unset
508533c5 3803else
fbb86200 3804 as_unset=false
508533c5 3805fi
508533c5 3806
fbb86200 3807(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
3808 { $as_unset LANG || test "${LANG+set}" != set; } ||
3809 { LANG=C; export LANG; }
3810(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
3811 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
3812 { LC_ALL=C; export LC_ALL; }
3813(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
3814 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
3815 { LC_TIME=C; export LC_TIME; }
3816(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
3817 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
3818 { LC_CTYPE=C; export LC_CTYPE; }
3819(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
3820 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
3821 { LANGUAGE=C; export LANGUAGE; }
3822(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
3823 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
3824 { LC_COLLATE=C; export LC_COLLATE; }
3825(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
3826 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
3827 { LC_NUMERIC=C; export LC_NUMERIC; }
3828(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
3829 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
3830 { LC_MESSAGES=C; export LC_MESSAGES; }
3831
3832
3833# Name of the executable.
3834as_me=`(basename "$0") 2>/dev/null ||
3835$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3836 X"$0" : 'X\(//\)$' \| \
3837 X"$0" : 'X\(/\)$' \| \
3838 . : '\(.\)' 2>/dev/null ||
3839echo X/"$0" |
3840 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3841 /^X\/\(\/\/\)$/{ s//\1/; q; }
3842 /^X\/\(\/\).*/{ s//\1/; q; }
3843 s/.*/./; q'`
3844
3845# PATH needs CR, and LINENO needs CR and PATH.
3846# Avoid depending upon Character Ranges.
3847as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3848as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3849as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3850as_cr_digits='0123456789'
3851as_cr_alnum=$as_cr_Letters$as_cr_digits
3852
3853# The user is always right.
3854if test "${PATH_SEPARATOR+set}" != set; then
3855 echo "#! /bin/sh" >conftest.sh
3856 echo "exit 0" >>conftest.sh
3857 chmod +x conftest.sh
3858 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
3859 PATH_SEPARATOR=';'
3860 else
3861 PATH_SEPARATOR=:
3862 fi
3863 rm -f conftest.sh
508533c5 3864fi
508533c5 3865
fbb86200 3866
3867 as_lineno_1=$LINENO
3868 as_lineno_2=$LINENO
3869 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3870 test "x$as_lineno_1" != "x$as_lineno_2" &&
3871 test "x$as_lineno_3" = "x$as_lineno_2" || {
3872 # Find who we are. Look in the path if we contain no path at all
3873 # relative or not.
3874 case $0 in
3875 *[\\/]* ) as_myself=$0 ;;
3876 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3882done
3883
3884 ;;
3885 esac
3886 # We did not find ourselves, most probably we were run as `sh COMMAND'
3887 # in which case we are not to be found in the path.
3888 if test "x$as_myself" = x; then
3889 as_myself=$0
3890 fi
3891 if test ! -f "$as_myself"; then
3892 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3893echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3894 { (exit 1); exit 1; }; }
3895 fi
3896 case $CONFIG_SHELL in
3897 '')
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3900do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for as_base in sh bash ksh sh5; do
3904 case $as_dir in
3905 /*)
3906 if ("$as_dir/$as_base" -c '
3907 as_lineno_1=$LINENO
3908 as_lineno_2=$LINENO
3909 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3910 test "x$as_lineno_1" != "x$as_lineno_2" &&
3911 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3912 CONFIG_SHELL=$as_dir/$as_base
3913 export CONFIG_SHELL
3914 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3915 fi;;
3916 esac
3917 done
3918done
3919;;
3920 esac
3921
3922 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3923 # uniformly replaced by the line number. The first 'sed' inserts a
3924 # line-number line before each line; the second 'sed' does the real
3925 # work. The second script uses 'N' to pair each line-number line
3926 # with the numbered line, and appends trailing '-' during
3927 # substitution so that $LINENO is not a special case at line end.
3928 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3929 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3930 sed '=' <$as_myself |
3931 sed '
3932 N
3933 s,$,-,
3934 : loop
3935 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3936 t loop
3937 s,-$,,
3938 s,^['$as_cr_digits']*\n,,
3939 ' >$as_me.lineno &&
3940 chmod +x $as_me.lineno ||
3941 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3942echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3943 { (exit 1); exit 1; }; }
3944
3945 # Don't try to exec as it changes $[0], causing all sort of problems
3946 # (the dirname of $[0] is not the place where we might find the
3947 # original and so on. Autoconf is especially sensible to this).
3948 . ./$as_me.lineno
3949 # Exit status is that of the last command.
3950 exit
508533c5 3951}
3952
508533c5 3953
fbb86200 3954case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3955 *c*,-n*) ECHO_N= ECHO_C='
3956' ECHO_T=' ' ;;
3957 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3958 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3959esac
508533c5 3960
fbb86200 3961if expr a : '\(a\)' >/dev/null 2>&1; then
3962 as_expr=expr
508533c5 3963else
fbb86200 3964 as_expr=false
508533c5 3965fi
3966
fbb86200 3967rm -f conf$$ conf$$.exe conf$$.file
3968echo >conf$$.file
3969if ln -s conf$$.file conf$$ 2>/dev/null; then
3970 # We could just check for DJGPP; but this test a) works b) is more generic
3971 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3972 if test -f conf$$.exe; then
3973 # Don't use ln at all; we don't have any links
3974 as_ln_s='cp -p'
3975 else
3976 as_ln_s='ln -s'
3977 fi
3978elif ln conf$$.file conf$$ 2>/dev/null; then
3979 as_ln_s=ln
508533c5 3980else
fbb86200 3981 as_ln_s='cp -p'
508533c5 3982fi
fbb86200 3983rm -f conf$$ conf$$.exe conf$$.file
508533c5 3984
fbb86200 3985as_executable_p="test -f"
508533c5 3986
fbb86200 3987# Sed expression to map a string onto a valid CPP name.
3988as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
508533c5 3989
fbb86200 3990# Sed expression to map a string onto a valid variable name.
3991as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
508533c5 3992
508533c5 3993
fbb86200 3994# IFS
3995# We need space, tab and new line, in precisely that order.
3996as_nl='
3997'
3998IFS=" $as_nl"
3999
4000# CDPATH.
4001$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4002
4003exec 6>&1
4004
4005# Open the log real soon, to keep \$[0] and so on meaningful, and to
4006# report actual input values of CONFIG_FILES etc. instead of their
4007# values after options handling. Logging --version etc. is OK.
4008exec 5>>config.log
4009{
4010 echo
4011 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4012## Running $as_me. ##
4013_ASBOX
4014} >&5
4015cat >&5 <<_CSEOF
4016
d767066b 4017This file was extended by Splint $as_me 3.1.0, which was
fbb86200 4018generated by GNU Autoconf 2.53. Invocation command line was
4019
4020 CONFIG_FILES = $CONFIG_FILES
4021 CONFIG_HEADERS = $CONFIG_HEADERS
4022 CONFIG_LINKS = $CONFIG_LINKS
4023 CONFIG_COMMANDS = $CONFIG_COMMANDS
4024 $ $0 $@
4025
4026_CSEOF
4027echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4028echo >&5
4029_ACEOF
4030
4031# Files that config.status was made for.
4032if test -n "$ac_config_files"; then
4033 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
508533c5 4034fi
4035
fbb86200 4036if test -n "$ac_config_headers"; then
4037 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
508533c5 4038fi
4039
fbb86200 4040if test -n "$ac_config_links"; then
4041 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
508533c5 4042fi
4043
fbb86200 4044if test -n "$ac_config_commands"; then
4045 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
508533c5 4046fi
fbb86200 4047
4048cat >>$CONFIG_STATUS <<\_ACEOF
4049
4050ac_cs_usage="\
4051\`$as_me' instantiates files from templates according to the
4052current configuration.
4053
4054Usage: $0 [OPTIONS] [FILE]...
4055
4056 -h, --help print this help, then exit
4057 -V, --version print version number, then exit
4058 -d, --debug don't remove temporary files
4059 --recheck update $as_me by reconfiguring in the same conditions
4060 --file=FILE[:TEMPLATE]
4061 instantiate the configuration file FILE
4062 --header=FILE[:TEMPLATE]
4063 instantiate the configuration header FILE
4064
4065Configuration files:
4066$config_files
4067
4068Configuration headers:
4069$config_headers
4070
4071Configuration commands:
4072$config_commands
4073
4074Report bugs to <bug-autoconf@gnu.org>."
4075_ACEOF
4076
4077cat >>$CONFIG_STATUS <<_ACEOF
4078ac_cs_version="\\
d767066b 4079Splint config.status 3.1.0
fbb86200 4080configured by $0, generated by GNU Autoconf 2.53,
4081 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4082
4083Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4084Free Software Foundation, Inc.
4085This config.status script is free software; the Free Software Foundation
4086gives unlimited permission to copy, distribute and modify it."
4087srcdir=$srcdir
4088INSTALL="$INSTALL"
4089_ACEOF
4090
4091cat >>$CONFIG_STATUS <<\_ACEOF
4092# If no file are specified by the user, then we need to provide default
4093# value. By we need to know if files were specified by the user.
4094ac_need_defaults=:
4095while test $# != 0
4096do
4097 case $1 in
4098 --*=*)
4099 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4100 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4101 shift
4102 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4103 shift
4104 ;;
4105 -*);;
4106 *) # This is not an option, so the user has probably given explicit
4107 # arguments.
4108 ac_need_defaults=false;;
4109 esac
4110
4111 case $1 in
4112 # Handling of the options.
4113_ACEOF
4114cat >>$CONFIG_STATUS <<_ACEOF
4115 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4116 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4117 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4118_ACEOF
4119cat >>$CONFIG_STATUS <<\_ACEOF
4120 --version | --vers* | -V )
4121 echo "$ac_cs_version"; exit 0 ;;
4122 --he | --h)
4123 # Conflict between --help and --header
4124 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4125Try \`$0 --help' for more information." >&5
4126echo "$as_me: error: ambiguous option: $1
4127Try \`$0 --help' for more information." >&2;}
4128 { (exit 1); exit 1; }; };;
4129 --help | --hel | -h )
4130 echo "$ac_cs_usage"; exit 0 ;;
4131 --debug | --d* | -d )
4132 debug=: ;;
4133 --file | --fil | --fi | --f )
4134 shift
4135 CONFIG_FILES="$CONFIG_FILES $1"
4136 ac_need_defaults=false;;
4137 --header | --heade | --head | --hea )
4138 shift
4139 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4140 ac_need_defaults=false;;
4141
4142 # This is an error.
4143 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4144Try \`$0 --help' for more information." >&5
4145echo "$as_me: error: unrecognized option: $1
4146Try \`$0 --help' for more information." >&2;}
4147 { (exit 1); exit 1; }; } ;;
4148
4149 *) ac_config_targets="$ac_config_targets $1" ;;
4150
4151 esac
4152 shift
4153done
4154
4155_ACEOF
4156
4157cat >>$CONFIG_STATUS <<_ACEOF
4158#
4159# INIT-COMMANDS section.
4160#
4161
4162AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4163
4164_ACEOF
4165
4166
4167
4168cat >>$CONFIG_STATUS <<\_ACEOF
4169for ac_config_target in $ac_config_targets
4170do
4171 case "$ac_config_target" in
4172 # Handling of arguments.
4173 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4174 "imports/Makefile" ) CONFIG_FILES="$CONFIG_FILES imports/Makefile" ;;
4175 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
4176 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4177 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
4178 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
4179 "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
4180 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4181 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
4182 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4183echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4184 { (exit 1); exit 1; }; };;
4185 esac
4186done
4187
4188# If the user did not use the arguments to specify the items to instantiate,
4189# then the envvar interface is used. Set only those that are not.
4190# We use the long form for the default assignment because of an extremely
4191# bizarre bug on SunOS 4.1.3.
4192if $ac_need_defaults; then
4193 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4194 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4195 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
508533c5 4196fi
508533c5 4197
fbb86200 4198# Create a temporary directory, and hook for its removal unless debugging.
4199$debug ||
4200{
4201 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4202 trap '{ (exit 1); exit 1; }' 1 2 13 15
4203}
4204
4205# Create a (secure) tmp directory for tmp files.
4206: ${TMPDIR=/tmp}
4207{
4208 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4209 test -n "$tmp" && test -d "$tmp"
4210} ||
4211{
4212 tmp=$TMPDIR/cs$$-$RANDOM
4213 (umask 077 && mkdir $tmp)
4214} ||
4215{
4216 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4217 { (exit 1); exit 1; }
4218}
4219
4220_ACEOF
4221
4222cat >>$CONFIG_STATUS <<_ACEOF
4223
4224#
4225# CONFIG_FILES section.
4226#
4227
4228# No need to generate the scripts if there are no CONFIG_FILES.
4229# This happens for instance when ./config.status config.h
4230if test -n "\$CONFIG_FILES"; then
4231 # Protect against being on the right side of a sed subst in config.status.
4232 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4233 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4234s,@SHELL@,$SHELL,;t t
4235s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4236s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4237s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4238s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4239s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4240s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4241s,@exec_prefix@,$exec_prefix,;t t
4242s,@prefix@,$prefix,;t t
4243s,@program_transform_name@,$program_transform_name,;t t
4244s,@bindir@,$bindir,;t t
4245s,@sbindir@,$sbindir,;t t
4246s,@libexecdir@,$libexecdir,;t t
4247s,@datadir@,$datadir,;t t
4248s,@sysconfdir@,$sysconfdir,;t t
4249s,@sharedstatedir@,$sharedstatedir,;t t
4250s,@localstatedir@,$localstatedir,;t t
4251s,@libdir@,$libdir,;t t
4252s,@includedir@,$includedir,;t t
4253s,@oldincludedir@,$oldincludedir,;t t
4254s,@infodir@,$infodir,;t t
4255s,@mandir@,$mandir,;t t
4256s,@build_alias@,$build_alias,;t t
4257s,@host_alias@,$host_alias,;t t
4258s,@target_alias@,$target_alias,;t t
4259s,@DEFS@,$DEFS,;t t
4260s,@ECHO_C@,$ECHO_C,;t t
4261s,@ECHO_N@,$ECHO_N,;t t
4262s,@ECHO_T@,$ECHO_T,;t t
4263s,@LIBS@,$LIBS,;t t
4264s,@build@,$build,;t t
4265s,@build_cpu@,$build_cpu,;t t
4266s,@build_vendor@,$build_vendor,;t t
4267s,@build_os@,$build_os,;t t
4268s,@host@,$host,;t t
4269s,@host_cpu@,$host_cpu,;t t
4270s,@host_vendor@,$host_vendor,;t t
4271s,@host_os@,$host_os,;t t
4272s,@target@,$target,;t t
4273s,@target_cpu@,$target_cpu,;t t
4274s,@target_vendor@,$target_vendor,;t t
4275s,@target_os@,$target_os,;t t
4276s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4277s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4278s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4279s,@PACKAGE@,$PACKAGE,;t t
4280s,@VERSION@,$VERSION,;t t
4281s,@ACLOCAL@,$ACLOCAL,;t t
4282s,@AUTOCONF@,$AUTOCONF,;t t
4283s,@AUTOMAKE@,$AUTOMAKE,;t t
4284s,@AUTOHEADER@,$AUTOHEADER,;t t
4285s,@MAKEINFO@,$MAKEINFO,;t t
4286s,@AMTAR@,$AMTAR,;t t
4287s,@install_sh@,$install_sh,;t t
4288s,@STRIP@,$STRIP,;t t
4289s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4290s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4291s,@AWK@,$AWK,;t t
4292s,@SET_MAKE@,$SET_MAKE,;t t
4293s,@CC@,$CC,;t t
4294s,@CFLAGS@,$CFLAGS,;t t
4295s,@LDFLAGS@,$LDFLAGS,;t t
4296s,@CPPFLAGS@,$CPPFLAGS,;t t
4297s,@ac_ct_CC@,$ac_ct_CC,;t t
4298s,@EXEEXT@,$EXEEXT,;t t
4299s,@OBJEXT@,$OBJEXT,;t t
4300s,@DEPDIR@,$DEPDIR,;t t
4301s,@am__include@,$am__include,;t t
4302s,@am__quote@,$am__quote,;t t
4303s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4304s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4305s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4306s,@CCDEPMODE@,$CCDEPMODE,;t t
4307s,@CPP@,$CPP,;t t
4308s,@LEX@,$LEX,;t t
4309s,@LEXLIB@,$LEXLIB,;t t
4310s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
4311s,@LN_S@,$LN_S,;t t
4312s,@BISON@,$BISON,;t t
4313s,@GREP@,$GREP,;t t
4314s,@DIFF@,$DIFF,;t t
4315s,@CAT@,$CAT,;t t
4316s,@RM@,$RM,;t t
4317s,@MV@,$MV,;t t
4318s,@CP@,$CP,;t t
4319s,@SED@,$SED,;t t
4320s,@LCLOBJ@,$LCLOBJ,;t t
4321CEOF
4322
4323_ACEOF
4324
4325 cat >>$CONFIG_STATUS <<\_ACEOF
4326 # Split the substitutions into bite-sized pieces for seds with
4327 # small command number limits, like on Digital OSF/1 and HP-UX.
4328 ac_max_sed_lines=48
4329 ac_sed_frag=1 # Number of current file.
4330 ac_beg=1 # First line for current file.
4331 ac_end=$ac_max_sed_lines # Line after last line for current file.
4332 ac_more_lines=:
4333 ac_sed_cmds=
4334 while $ac_more_lines; do
4335 if test $ac_beg -gt 1; then
4336 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4337 else
4338 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4339 fi
4340 if test ! -s $tmp/subs.frag; then
4341 ac_more_lines=false
4342 else
4343 # The purpose of the label and of the branching condition is to
4344 # speed up the sed processing (if there are no `@' at all, there
4345 # is no need to browse any of the substitutions).
4346 # These are the two extra sed commands mentioned above.
4347 (echo ':t
4348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4349 if test -z "$ac_sed_cmds"; then
4350 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4351 else
4352 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4353 fi
4354 ac_sed_frag=`expr $ac_sed_frag + 1`
4355 ac_beg=$ac_end
4356 ac_end=`expr $ac_end + $ac_max_sed_lines`
4357 fi
4358 done
4359 if test -z "$ac_sed_cmds"; then
4360 ac_sed_cmds=cat
508533c5 4361 fi
fbb86200 4362fi # test -n "$CONFIG_FILES"
508533c5 4363
fbb86200 4364_ACEOF
4365cat >>$CONFIG_STATUS <<\_ACEOF
4366for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4368 case $ac_file in
4369 - | *:- | *:-:* ) # input from stdin
4370 cat >$tmp/stdin
4371 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4372 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4373 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4374 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4375 * ) ac_file_in=$ac_file.in ;;
4376 esac
4377
4378 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4379 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4380$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4381 X"$ac_file" : 'X\(//\)[^/]' \| \
4382 X"$ac_file" : 'X\(//\)$' \| \
4383 X"$ac_file" : 'X\(/\)' \| \
4384 . : '\(.\)' 2>/dev/null ||
4385echo X"$ac_file" |
4386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4388 /^X\(\/\/\)$/{ s//\1/; q; }
4389 /^X\(\/\).*/{ s//\1/; q; }
4390 s/.*/./; q'`
4391 { case "$ac_dir" in
4392 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4393 *) as_incr_dir=.;;
4394esac
4395as_dummy="$ac_dir"
4396for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4397 case $as_mkdir_dir in
4398 # Skip DOS drivespec
4399 ?:) as_incr_dir=$as_mkdir_dir ;;
4400 *)
4401 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4402 test -d "$as_incr_dir" ||
4403 mkdir "$as_incr_dir" ||
4404 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4405echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4406 { (exit 1); exit 1; }; }
4407 ;;
4408 esac
4409done; }
4410
4411 ac_builddir=.
508533c5 4412
fbb86200 4413if test "$ac_dir" != .; then
4414 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4415 # A "../" for each directory in $ac_dir_suffix.
4416 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4417else
4418 ac_dir_suffix= ac_top_builddir=
508533c5 4419fi
fbb86200 4420
4421case $srcdir in
4422 .) # No --srcdir option. We are building in place.
4423 ac_srcdir=.
4424 if test -z "$ac_top_builddir"; then
4425 ac_top_srcdir=.
4426 else
4427 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4428 fi ;;
4429 [\\/]* | ?:[\\/]* ) # Absolute path.
4430 ac_srcdir=$srcdir$ac_dir_suffix;
4431 ac_top_srcdir=$srcdir ;;
4432 *) # Relative path.
4433 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4434 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4435esac
4436# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4437# absolute.
4438ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4439ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4440ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4441ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4442
4443
4444 case $INSTALL in
4445 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4446 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4447 esac
4448
4449 if test x"$ac_file" != x-; then
4450 { echo "$as_me:$LINENO: creating $ac_file" >&5
4451echo "$as_me: creating $ac_file" >&6;}
4452 rm -f "$ac_file"
4453 fi
4454 # Let's still pretend it is `configure' which instantiates (i.e., don't
4455 # use $as_me), people would be surprised to read:
4456 # /* config.h. Generated by config.status. */
4457 if test x"$ac_file" = x-; then
4458 configure_input=
508533c5 4459 else
fbb86200 4460 configure_input="$ac_file. "
4461 fi
4462 configure_input=$configure_input"Generated from `echo $ac_file_in |
4463 sed 's,.*/,,'` by configure."
4464
4465 # First look for the input files in the build tree, otherwise in the
4466 # src tree.
4467 ac_file_inputs=`IFS=:
4468 for f in $ac_file_in; do
4469 case $f in
4470 -) echo $tmp/stdin ;;
4471 [\\/$]*)
4472 # Absolute (can't be DOS-style, as IFS=:)
4473 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4474echo "$as_me: error: cannot find input file: $f" >&2;}
4475 { (exit 1); exit 1; }; }
4476 echo $f;;
4477 *) # Relative
4478 if test -f "$f"; then
4479 # Build tree
4480 echo $f
4481 elif test -f "$srcdir/$f"; then
4482 # Source tree
4483 echo $srcdir/$f
4484 else
4485 # /dev/null tree
4486 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4487echo "$as_me: error: cannot find input file: $f" >&2;}
4488 { (exit 1); exit 1; }; }
4489 fi;;
4490 esac
4491 done` || { (exit 1); exit 1; }
4492_ACEOF
4493cat >>$CONFIG_STATUS <<_ACEOF
4494 sed "$ac_vpsub
4495$extrasub
4496_ACEOF
4497cat >>$CONFIG_STATUS <<\_ACEOF
4498:t
4499/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4500s,@configure_input@,$configure_input,;t t
4501s,@srcdir@,$ac_srcdir,;t t
4502s,@abs_srcdir@,$ac_abs_srcdir,;t t
4503s,@top_srcdir@,$ac_top_srcdir,;t t
4504s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4505s,@builddir@,$ac_builddir,;t t
4506s,@abs_builddir@,$ac_abs_builddir,;t t
4507s,@top_builddir@,$ac_top_builddir,;t t
4508s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4509s,@INSTALL@,$ac_INSTALL,;t t
4510" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4511 rm -f $tmp/stdin
4512 if test x"$ac_file" != x-; then
4513 mv $tmp/out $ac_file
4514 else
4515 cat $tmp/out
4516 rm -f $tmp/out
4517 fi
4518
4519done
4520_ACEOF
4521cat >>$CONFIG_STATUS <<\_ACEOF
4522
4523#
4524# CONFIG_HEADER section.
4525#
4526
4527# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4528# NAME is the cpp macro being defined and VALUE is the value it is being given.
508533c5 4529#
fbb86200 4530# ac_d sets the value in "#define NAME VALUE" lines.
4531ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4532ac_dB='[ ].*$,\1#\2'
4533ac_dC=' '
4534ac_dD=',;t'
4535# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4536ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4537ac_uB='$,\1#\2define\3'
4538ac_uC=' '
4539ac_uD=',;t'
4540
4541for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4542 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4543 case $ac_file in
4544 - | *:- | *:-:* ) # input from stdin
4545 cat >$tmp/stdin
4546 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4547 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4548 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4549 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4550 * ) ac_file_in=$ac_file.in ;;
4551 esac
4552
4553 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4554echo "$as_me: creating $ac_file" >&6;}
4555
4556 # First look for the input files in the build tree, otherwise in the
4557 # src tree.
4558 ac_file_inputs=`IFS=:
4559 for f in $ac_file_in; do
4560 case $f in
4561 -) echo $tmp/stdin ;;
4562 [\\/$]*)
4563 # Absolute (can't be DOS-style, as IFS=:)
4564 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4565echo "$as_me: error: cannot find input file: $f" >&2;}
4566 { (exit 1); exit 1; }; }
4567 echo $f;;
4568 *) # Relative
4569 if test -f "$f"; then
4570 # Build tree
4571 echo $f
4572 elif test -f "$srcdir/$f"; then
4573 # Source tree
4574 echo $srcdir/$f
4575 else
4576 # /dev/null tree
4577 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4578echo "$as_me: error: cannot find input file: $f" >&2;}
4579 { (exit 1); exit 1; }; }
4580 fi;;
4581 esac
4582 done` || { (exit 1); exit 1; }
4583 # Remove the trailing spaces.
4584 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4585
4586_ACEOF
4587
4588# Transform confdefs.h into two sed scripts, `conftest.defines' and
4589# `conftest.undefs', that substitutes the proper values into
4590# config.h.in to produce config.h. The first handles `#define'
4591# templates, and the second `#undef' templates.
4592# And first: Protect against being on the right side of a sed subst in
4593# config.status. Protect against being in an unquoted here document
4594# in config.status.
4595rm -f conftest.defines conftest.undefs
4596# Using a here document instead of a string reduces the quoting nightmare.
4597# Putting comments in sed scripts is not portable.
4598#
4599# `end' is used to avoid that the second main sed command (meant for
4600# 0-ary CPP macros) applies to n-ary macro definitions.
4601# See the Autoconf documentation for `clear'.
4602cat >confdef2sed.sed <<\_ACEOF
4603s/[\\&,]/\\&/g
4604s,[\\$`],\\&,g
4605t clear
4606: clear
4607s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4608t end
4609s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4610: end
4611_ACEOF
4612# If some macros were called several times there might be several times
4613# the same #defines, which is useless. Nevertheless, we may not want to
4614# sort them, since we want the *last* AC-DEFINE to be honored.
4615uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4616sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4617rm -f confdef2sed.sed
4618
4619# This sed command replaces #undef with comments. This is necessary, for
4620# example, in the case of _POSIX_SOURCE, which is predefined and required
4621# on some systems where configure will not decide to define it.
4622cat >>conftest.undefs <<\_ACEOF
4623s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4624_ACEOF
508533c5 4625
fbb86200 4626# Break up conftest.defines because some shells have a limit on the size
4627# of here documents, and old seds have small limits too (100 cmds).
4628echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4629echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4630echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4631echo ' :' >>$CONFIG_STATUS
4632rm -f conftest.tail
4633while grep . conftest.defines >/dev/null
508533c5 4634do
fbb86200 4635 # Write a limited-size here document to $tmp/defines.sed.
4636 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4637 # Speed up: don't consider the non `#define' lines.
4638 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4639 # Work around the forget-to-reset-the-flag bug.
4640 echo 't clr' >>$CONFIG_STATUS
4641 echo ': clr' >>$CONFIG_STATUS
4642 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4643 echo 'CEOF
4644 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4645 rm -f $tmp/in
4646 mv $tmp/out $tmp/in
4647' >>$CONFIG_STATUS
4648 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4649 rm -f conftest.defines
4650 mv conftest.tail conftest.defines
4651done
4652rm -f conftest.defines
4653echo ' fi # egrep' >>$CONFIG_STATUS
4654echo >>$CONFIG_STATUS
4655
4656# Break up conftest.undefs because some shells have a limit on the size
4657# of here documents, and old seds have small limits too (100 cmds).
4658echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4659rm -f conftest.tail
4660while grep . conftest.undefs >/dev/null
4661do
4662 # Write a limited-size here document to $tmp/undefs.sed.
4663 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4664 # Speed up: don't consider the non `#undef'
4665 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4666 # Work around the forget-to-reset-the-flag bug.
4667 echo 't clr' >>$CONFIG_STATUS
4668 echo ': clr' >>$CONFIG_STATUS
4669 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4670 echo 'CEOF
4671 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4672 rm -f $tmp/in
4673 mv $tmp/out $tmp/in
4674' >>$CONFIG_STATUS
4675 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4676 rm -f conftest.undefs
4677 mv conftest.tail conftest.undefs
4678done
4679rm -f conftest.undefs
4680
4681cat >>$CONFIG_STATUS <<\_ACEOF
4682 # Let's still pretend it is `configure' which instantiates (i.e., don't
4683 # use $as_me), people would be surprised to read:
4684 # /* config.h. Generated by config.status. */
4685 if test x"$ac_file" = x-; then
4686 echo "/* Generated by configure. */" >$tmp/config.h
4687 else
4688 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4689 fi
4690 cat $tmp/in >>$tmp/config.h
4691 rm -f $tmp/in
4692 if test x"$ac_file" != x-; then
4693 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4694 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4695echo "$as_me: $ac_file is unchanged" >&6;}
4696 else
4697 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4698$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4699 X"$ac_file" : 'X\(//\)[^/]' \| \
4700 X"$ac_file" : 'X\(//\)$' \| \
4701 X"$ac_file" : 'X\(/\)' \| \
4702 . : '\(.\)' 2>/dev/null ||
4703echo X"$ac_file" |
4704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4706 /^X\(\/\/\)$/{ s//\1/; q; }
4707 /^X\(\/\).*/{ s//\1/; q; }
4708 s/.*/./; q'`
4709 { case "$ac_dir" in
4710 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4711 *) as_incr_dir=.;;
4712esac
4713as_dummy="$ac_dir"
4714for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4715 case $as_mkdir_dir in
4716 # Skip DOS drivespec
4717 ?:) as_incr_dir=$as_mkdir_dir ;;
4718 *)
4719 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4720 test -d "$as_incr_dir" ||
4721 mkdir "$as_incr_dir" ||
4722 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4723echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4724 { (exit 1); exit 1; }; }
4725 ;;
4726 esac
4727done; }
4728
4729 rm -f $ac_file
4730 mv $tmp/config.h $ac_file
4731 fi
4732 else
4733 cat $tmp/config.h
4734 rm -f $tmp/config.h
4735 fi
4736 # Run the commands associated with the file.
4737 case $ac_file in
4738 config.h ) # update the timestamp
4739echo 'timestamp for config.h:config.hin' >"./stamp-h1"
4740 ;;
4741 esac
4742done
4743_ACEOF
4744cat >>$CONFIG_STATUS <<\_ACEOF
4745
4746#
4747# CONFIG_COMMANDS section.
4748#
4749for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4750 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4751 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4752 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4753$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4754 X"$ac_dest" : 'X\(//\)[^/]' \| \
4755 X"$ac_dest" : 'X\(//\)$' \| \
4756 X"$ac_dest" : 'X\(/\)' \| \
4757 . : '\(.\)' 2>/dev/null ||
4758echo X"$ac_dest" |
4759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4760 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4761 /^X\(\/\/\)$/{ s//\1/; q; }
4762 /^X\(\/\).*/{ s//\1/; q; }
4763 s/.*/./; q'`
4764 ac_builddir=.
4765
4766if test "$ac_dir" != .; then
4767 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4768 # A "../" for each directory in $ac_dir_suffix.
4769 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4770else
4771 ac_dir_suffix= ac_top_builddir=
4772fi
4773
4774case $srcdir in
4775 .) # No --srcdir option. We are building in place.
4776 ac_srcdir=.
4777 if test -z "$ac_top_builddir"; then
4778 ac_top_srcdir=.
4779 else
4780 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4781 fi ;;
4782 [\\/]* | ?:[\\/]* ) # Absolute path.
4783 ac_srcdir=$srcdir$ac_dir_suffix;
4784 ac_top_srcdir=$srcdir ;;
4785 *) # Relative path.
4786 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4787 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4788esac
4789# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4790# absolute.
4791ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4792ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4793ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4794ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4795
4796
4797 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4798echo "$as_me: executing $ac_dest commands" >&6;}
4799 case $ac_dest in
4800 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4801 # Strip MF so we end up with the name of the file.
4802 mf=`echo "$mf" | sed -e 's/:.*$//'`
4803 # Check whether this is an Automake generated Makefile or not.
4804 # We used to match only the files named `Makefile.in', but
4805 # some people rename them; so instead we look at the file content.
4806 # Grep'ing the first line is not enough: some people post-process
4807 # each Makefile.in and add a new line on top of each file to say so.
4808 # So let's grep whole file.
4809 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
4810 dirpart=`(dirname "$mf") 2>/dev/null ||
4811$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4812 X"$mf" : 'X\(//\)[^/]' \| \
4813 X"$mf" : 'X\(//\)$' \| \
4814 X"$mf" : 'X\(/\)' \| \
4815 . : '\(.\)' 2>/dev/null ||
4816echo X"$mf" |
4817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4819 /^X\(\/\/\)$/{ s//\1/; q; }
4820 /^X\(\/\).*/{ s//\1/; q; }
4821 s/.*/./; q'`
4822 else
4823 continue
4824 fi
4825 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
4826 # Extract the definition of DEP_FILES from the Makefile without
4827 # running `make'.
4828 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
4829 test -z "$DEPDIR" && continue
4830 # When using ansi2knr, U may be empty or an underscore; expand it
4831 U=`sed -n -e '/^U = / s///p' < "$mf"`
4832 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
4833 # We invoke sed twice because it is the simplest approach to
4834 # changing $(DEPDIR) to its actual value in the expansion.
4835 for file in `sed -n -e '
4836 /^DEP_FILES = .*\\\\$/ {
4837 s/^DEP_FILES = //
4838 :loop
4839 s/\\\\$//
4840 p
4841 n
4842 /\\\\$/ b loop
4843 p
4844 }
4845 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
4846 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4847 # Make sure the directory exists.
4848 test -f "$dirpart/$file" && continue
4849 fdir=`(dirname "$file") 2>/dev/null ||
4850$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4851 X"$file" : 'X\(//\)[^/]' \| \
4852 X"$file" : 'X\(//\)$' \| \
4853 X"$file" : 'X\(/\)' \| \
4854 . : '\(.\)' 2>/dev/null ||
4855echo X"$file" |
4856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4858 /^X\(\/\/\)$/{ s//\1/; q; }
4859 /^X\(\/\).*/{ s//\1/; q; }
4860 s/.*/./; q'`
4861 { case $dirpart/$fdir in
4862 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4863 *) as_incr_dir=.;;
4864esac
4865as_dummy=$dirpart/$fdir
4866for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4867 case $as_mkdir_dir in
4868 # Skip DOS drivespec
4869 ?:) as_incr_dir=$as_mkdir_dir ;;
4870 *)
4871 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4872 test -d "$as_incr_dir" ||
4873 mkdir "$as_incr_dir" ||
4874 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
4875echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
4876 { (exit 1); exit 1; }; }
4877 ;;
4878 esac
4879done; }
4880
4881 # echo "creating $dirpart/$file"
4882 echo '# dummy' > "$dirpart/$file"
4883 done
4884done
4885 ;;
508533c5 4886 esac
4887done
fbb86200 4888_ACEOF
4889
4890cat >>$CONFIG_STATUS <<\_ACEOF
4891
4892{ (exit 0); exit 0; }
4893_ACEOF
4894chmod +x $CONFIG_STATUS
4895ac_clean_files=$ac_clean_files_save
4896
4897
4898# configure is writing to config.log, and then calls config.status.
4899# config.status does its own redirection, appending to config.log.
4900# Unfortunately, on DOS this fails, as config.log is still kept open
4901# by configure, so config.status won't be able to write to it; its
4902# output is simply discarded. So we exec the FD to /dev/null,
4903# effectively closing config.log, so it can be properly (re)opened and
4904# appended to by config.status. When coming back to configure, we
4905# need to make the FD available again.
4906if test "$no_create" != yes; then
4907 ac_cs_success=:
4908 exec 5>/dev/null
4909 $SHELL $CONFIG_STATUS || ac_cs_success=false
4910 exec 5>>config.log
4911 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4912 # would make configure fail if this is the last instruction.
4913 $ac_cs_success || { (exit 1); exit 1; }
4914fi
4915
4916
4917
4918
4919
4920
4921
4922
508533c5 4923
508533c5 4924
This page took 0.789121 seconds and 5 git commands to generate.