Debian Codegraph @

configure

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