Debian Codegraph @

configure

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