Debian Codegraph @

configure

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