Debian Codegraph @

configure

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