Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / bridge / configure
blob813612865c8aaa21edf3b479a9202508ff83040b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
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
22 DUALCASE=1; export DUALCASE # for MKS sh
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
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
225 as_executable_p="test -f"
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'"
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
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`
249 exec 6>&1
252 # Initializations.
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}
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}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="brctl/brctl.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"
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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS KERNEL_HEADERS LTLIBOBJS'
313 ac_subst_files=''
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
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'
353 ac_prev=
354 for ac_option
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
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
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 ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
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 ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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 ;;
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 ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
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 ;;
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 ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
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 ;;
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 ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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 ;;
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 ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
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'" ;;
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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 ;;
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 ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
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 ;;
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}
649 esac
650 done
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; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
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
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
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
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
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
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
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=..
725 else
726 ac_srcdir_defaulted=no
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; }; }
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
775 # Report the --help message.
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.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
788 Defaults for the options are specified in brackets.
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 \`..']
801 _ACEOF
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]
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'.
815 For better control, use the options below.
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
832 cat <<\_ACEOF
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
841 if test -n "$ac_init_help"; then
843 cat <<\_ACEOF
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
851 Optional Packages:
852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-linux-headers Location of the linux headers to use
856 Some influential environment variables:
857 CC C compiler command
858 CFLAGS C compiler flags
859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
860 nonstandard directory <lib dir>
861 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
862 headers in a nonstandard directory <include dir>
863 CPP C preprocessor
865 Use these variables to override the choices made by `configure' or to help
866 it to find libraries and programs with nonstandard names/locations.
868 _ACEOF
871 if test "$ac_init_help" = "recursive"; then
872 # If there are subdirs, report their specific --help.
873 ac_popdir=`pwd`
874 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
875 test -d $ac_dir || continue
876 ac_builddir=.
878 if test "$ac_dir" != .; then
879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
880 # A "../" for each directory in $ac_dir_suffix.
881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
882 else
883 ac_dir_suffix= ac_top_builddir=
886 case $srcdir in
887 .) # No --srcdir option. We are building in place.
888 ac_srcdir=.
889 if test -z "$ac_top_builddir"; then
890 ac_top_srcdir=.
891 else
892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
893 fi ;;
894 [\\/]* | ?:[\\/]* ) # Absolute path.
895 ac_srcdir=$srcdir$ac_dir_suffix;
896 ac_top_srcdir=$srcdir ;;
897 *) # Relative path.
898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
900 esac
902 # Do not use `cd foo && pwd` to compute absolute paths, because
903 # the directories may not exist.
904 case `pwd` in
905 .) ac_abs_builddir="$ac_dir";;
907 case "$ac_dir" in
908 .) ac_abs_builddir=`pwd`;;
909 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
910 *) ac_abs_builddir=`pwd`/"$ac_dir";;
911 esac;;
912 esac
913 case $ac_abs_builddir in
914 .) ac_abs_top_builddir=${ac_top_builddir}.;;
916 case ${ac_top_builddir}. in
917 .) ac_abs_top_builddir=$ac_abs_builddir;;
918 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
919 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
920 esac;;
921 esac
922 case $ac_abs_builddir in
923 .) ac_abs_srcdir=$ac_srcdir;;
925 case $ac_srcdir in
926 .) ac_abs_srcdir=$ac_abs_builddir;;
927 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
928 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_srcdir=$ac_top_srcdir;;
934 case $ac_top_srcdir in
935 .) ac_abs_top_srcdir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
937 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
938 esac;;
939 esac
941 cd $ac_dir
942 # Check for guested configure; otherwise get Cygnus style configure.
943 if test -f $ac_srcdir/configure.gnu; then
944 echo
945 $SHELL $ac_srcdir/configure.gnu --help=recursive
946 elif test -f $ac_srcdir/configure; then
947 echo
948 $SHELL $ac_srcdir/configure --help=recursive
949 elif test -f $ac_srcdir/configure.ac ||
950 test -f $ac_srcdir/configure.in; then
951 echo
952 $ac_configure --help
953 else
954 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
956 cd $ac_popdir
957 done
960 test -n "$ac_init_help" && exit 0
961 if $ac_init_version; then
962 cat <<\_ACEOF
964 Copyright (C) 2003 Free Software Foundation, Inc.
965 This configure script is free software; the Free Software Foundation
966 gives unlimited permission to copy, distribute and modify it.
967 _ACEOF
968 exit 0
970 exec 5>config.log
971 cat >&5 <<_ACEOF
972 This file contains any messages produced by compilers while
973 running configure, to aid debugging if configure makes a mistake.
975 It was created by $as_me, which was
976 generated by GNU Autoconf 2.59. Invocation command line was
978 $ $0 $@
980 _ACEOF
982 cat <<_ASUNAME
983 ## --------- ##
984 ## Platform. ##
985 ## --------- ##
987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
999 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1004 _ASUNAME
1006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1007 for as_dir in $PATH
1009 IFS=$as_save_IFS
1010 test -z "$as_dir" && as_dir=.
1011 echo "PATH: $as_dir"
1012 done
1014 } >&5
1016 cat >&5 <<_ACEOF
1019 ## ----------- ##
1020 ## Core tests. ##
1021 ## ----------- ##
1023 _ACEOF
1026 # Keep a trace of the command line.
1027 # Strip out --no-create and --no-recursion so they do not pile up.
1028 # Strip out --silent because we don't want to record it for future runs.
1029 # Also quote any args containing shell meta-characters.
1030 # Make two passes to allow for proper duplicate-argument suppression.
1031 ac_configure_args=
1032 ac_configure_args0=
1033 ac_configure_args1=
1034 ac_sep=
1035 ac_must_keep_next=false
1036 for ac_pass in 1 2
1038 for ac_arg
1040 case $ac_arg in
1041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1044 continue ;;
1045 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1046 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1047 esac
1048 case $ac_pass in
1049 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1051 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1052 if test $ac_must_keep_next = true; then
1053 ac_must_keep_next=false # Got value, back to normal.
1054 else
1055 case $ac_arg in
1056 *=* | --config-cache | -C | -disable-* | --disable-* \
1057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1059 | -with-* | --with-* | -without-* | --without-* | --x)
1060 case "$ac_configure_args0 " in
1061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1062 esac
1064 -* ) ac_must_keep_next=true ;;
1065 esac
1067 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1068 # Get rid of the leading space.
1069 ac_sep=" "
1071 esac
1072 done
1073 done
1074 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1075 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1077 # When interrupted or exit'd, cleanup temporary files, and complete
1078 # config.log. We remove comments because anyway the quotes in there
1079 # would cause problems or look ugly.
1080 # WARNING: Be sure not to use single quotes in there, as some shells,
1081 # such as our DU 5.0 friend, will then `close' the trap.
1082 trap 'exit_status=$?
1083 # Save into config.log some information that might help in debugging.
1085 echo
1087 cat <<\_ASBOX
1088 ## ---------------- ##
1089 ## Cache variables. ##
1090 ## ---------------- ##
1091 _ASBOX
1092 echo
1093 # The following way of writing the cache mishandles newlines in values,
1095 (set) 2>&1 |
1096 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1097 *ac_space=\ *)
1098 sed -n \
1099 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103 sed -n \
1104 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1106 esac;
1108 echo
1110 cat <<\_ASBOX
1111 ## ----------------- ##
1112 ## Output variables. ##
1113 ## ----------------- ##
1114 _ASBOX
1115 echo
1116 for ac_var in $ac_subst_vars
1118 eval ac_val=$`echo $ac_var`
1119 echo "$ac_var='"'"'$ac_val'"'"'"
1120 done | sort
1121 echo
1123 if test -n "$ac_subst_files"; then
1124 cat <<\_ASBOX
1125 ## ------------- ##
1126 ## Output files. ##
1127 ## ------------- ##
1128 _ASBOX
1129 echo
1130 for ac_var in $ac_subst_files
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1134 done | sort
1135 echo
1138 if test -s confdefs.h; then
1139 cat <<\_ASBOX
1140 ## ----------- ##
1141 ## confdefs.h. ##
1142 ## ----------- ##
1143 _ASBOX
1144 echo
1145 sed "/^$/d" confdefs.h | sort
1146 echo
1148 test "$ac_signal" != 0 &&
1149 echo "$as_me: caught signal $ac_signal"
1150 echo "$as_me: exit $exit_status"
1151 } >&5
1152 rm -f core *.core &&
1153 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1154 exit $exit_status
1156 for ac_signal in 1 2 13 15; do
1157 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1158 done
1159 ac_signal=0
1161 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1162 rm -rf conftest* confdefs.h
1163 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1164 echo >confdefs.h
1166 # Predefined preprocessor variables.
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_NAME "$PACKAGE_NAME"
1170 _ACEOF
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1175 _ACEOF
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1180 _ACEOF
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_STRING "$PACKAGE_STRING"
1185 _ACEOF
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1190 _ACEOF
1193 # Let the site file select an alternate cache file if it wants to.
1194 # Prefer explicitly selected file to automatically selected ones.
1195 if test -z "$CONFIG_SITE"; then
1196 if test "x$prefix" != xNONE; then
1197 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1198 else
1199 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202 for ac_site_file in $CONFIG_SITE; do
1203 if test -r "$ac_site_file"; then
1204 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1205 echo "$as_me: loading site script $ac_site_file" >&6;}
1206 sed 's/^/| /' "$ac_site_file" >&5
1207 . "$ac_site_file"
1209 done
1211 if test -r "$cache_file"; then
1212 # Some versions of bash will fail to source /dev/null (special
1213 # files actually), so we avoid doing that.
1214 if test -f "$cache_file"; then
1215 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1216 echo "$as_me: loading cache $cache_file" >&6;}
1217 case $cache_file in
1218 [\\/]* | ?:[\\/]* ) . $cache_file;;
1219 *) . ./$cache_file;;
1220 esac
1222 else
1223 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1224 echo "$as_me: creating cache $cache_file" >&6;}
1225 >$cache_file
1228 # Check that the precious variables saved in the cache have kept the same
1229 # value.
1230 ac_cache_corrupted=false
1231 for ac_var in `(set) 2>&1 |
1232 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1233 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1234 eval ac_new_set=\$ac_env_${ac_var}_set
1235 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1236 eval ac_new_val="\$ac_env_${ac_var}_value"
1237 case $ac_old_set,$ac_new_set in
1238 set,)
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1242 ,set)
1243 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1244 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1245 ac_cache_corrupted=: ;;
1246 ,);;
1248 if test "x$ac_old_val" != "x$ac_new_val"; then
1249 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1250 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1251 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1252 echo "$as_me: former value: $ac_old_val" >&2;}
1253 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1254 echo "$as_me: current value: $ac_new_val" >&2;}
1255 ac_cache_corrupted=:
1256 fi;;
1257 esac
1258 # Pass precious variables to config.status.
1259 if test "$ac_new_set" = set; then
1260 case $ac_new_val in
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1263 *) ac_arg=$ac_var=$ac_new_val ;;
1264 esac
1265 case " $ac_configure_args " in
1266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1267 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1268 esac
1270 done
1271 if $ac_cache_corrupted; then
1272 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1273 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1274 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1275 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1276 { (exit 1); exit 1; }; }
1279 ac_ext=c
1280 ac_cpp='$CPP $CPPFLAGS'
1281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303 ac_config_headers="$ac_config_headers libbridge/config.h"
1305 am__api_version="1.9"
1306 ac_aux_dir=
1307 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1308 if test -f $ac_dir/install-sh; then
1309 ac_aux_dir=$ac_dir
1310 ac_install_sh="$ac_aux_dir/install-sh -c"
1311 break
1312 elif test -f $ac_dir/install.sh; then
1313 ac_aux_dir=$ac_dir
1314 ac_install_sh="$ac_aux_dir/install.sh -c"
1315 break
1316 elif test -f $ac_dir/shtool; then
1317 ac_aux_dir=$ac_dir
1318 ac_install_sh="$ac_aux_dir/shtool install -c"
1319 break
1321 done
1322 if test -z "$ac_aux_dir"; then
1323 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1324 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1325 { (exit 1); exit 1; }; }
1327 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1328 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1329 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1331 # Find a good install program. We prefer a C program (faster),
1332 # so one script is as good as another. But avoid the broken or
1333 # incompatible versions:
1334 # SysV /etc/install, /usr/sbin/install
1335 # SunOS /usr/etc/install
1336 # IRIX /sbin/install
1337 # AIX /bin/install
1338 # AmigaOS /C/install, which installs bootblocks on floppy discs
1339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1342 # OS/2's system install, which has a completely different semantic
1343 # ./install, which can be erroneously created by make from ./install.sh.
1344 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1345 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1346 if test -z "$INSTALL"; then
1347 if test "${ac_cv_path_install+set}" = set; then
1348 echo $ECHO_N "(cached) $ECHO_C" >&6
1349 else
1350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1351 for as_dir in $PATH
1353 IFS=$as_save_IFS
1354 test -z "$as_dir" && as_dir=.
1355 # Account for people who put trailing slashes in PATH elements.
1356 case $as_dir/ in
1357 ./ | .// | /cC/* | \
1358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1359 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1360 /usr/ucb/* ) ;;
1362 # OSF1 and SCO ODT 3.0 have their own names for install.
1363 # Don't use installbsd from OSF since it installs stuff as root
1364 # by default.
1365 for ac_prog in ginstall scoinst install; do
1366 for ac_exec_ext in '' $ac_executable_extensions; do
1367 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1368 if test $ac_prog = install &&
1369 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1370 # AIX install. It has an incompatible calling convention.
1372 elif test $ac_prog = install &&
1373 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1374 # program-specific install script used by HP pwplus--don't use.
1376 else
1377 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1378 break 3
1381 done
1382 done
1384 esac
1385 done
1389 if test "${ac_cv_path_install+set}" = set; then
1390 INSTALL=$ac_cv_path_install
1391 else
1392 # As a last resort, use the slow shell script. We don't cache a
1393 # path for INSTALL within a source directory, because that will
1394 # break other packages using the cache if that directory is
1395 # removed, or if the path is relative.
1396 INSTALL=$ac_install_sh
1399 echo "$as_me:$LINENO: result: $INSTALL" >&5
1400 echo "${ECHO_T}$INSTALL" >&6
1402 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1403 # It thinks the first close brace ends the variable substitution.
1404 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1406 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1408 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1410 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1411 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1412 # Just in case
1413 sleep 1
1414 echo timestamp > conftest.file
1415 # Do `set' in a subshell so we don't clobber the current shell's
1416 # arguments. Must try -L first in case configure is actually a
1417 # symlink; some systems play weird games with the mod time of symlinks
1418 # (eg FreeBSD returns the mod time of the symlink's containing
1419 # directory).
1420 if (
1421 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1422 if test "$*" = "X"; then
1423 # -L didn't work.
1424 set X `ls -t $srcdir/configure conftest.file`
1426 rm -f conftest.file
1427 if test "$*" != "X $srcdir/configure conftest.file" \
1428 && test "$*" != "X conftest.file $srcdir/configure"; then
1430 # If neither matched, then we have a broken ls. This can happen
1431 # if, for instance, CONFIG_SHELL is bash and it inherits a
1432 # broken ls alias from the environment. This has actually
1433 # happened. Such a system could not be considered "sane".
1434 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1435 alias in your environment" >&5
1436 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1437 alias in your environment" >&2;}
1438 { (exit 1); exit 1; }; }
1441 test "$2" = conftest.file
1443 then
1444 # Ok.
1446 else
1447 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1448 Check your system clock" >&5
1449 echo "$as_me: error: newly created file is older than distributed files!
1450 Check your system clock" >&2;}
1451 { (exit 1); exit 1; }; }
1453 echo "$as_me:$LINENO: result: yes" >&5
1454 echo "${ECHO_T}yes" >&6
1455 test "$program_prefix" != NONE &&
1456 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1457 # Use a double $ so make ignores it.
1458 test "$program_suffix" != NONE &&
1459 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1460 # Double any \ or $. echo might interpret backslashes.
1461 # By default was `s,x,x', remove it if useless.
1462 cat <<\_ACEOF >conftest.sed
1463 s/[\\$]/&&/g;s/;s,x,x,$//
1464 _ACEOF
1465 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1466 rm conftest.sed
1468 # expand $ac_aux_dir to an absolute path
1469 am_aux_dir=`cd $ac_aux_dir && pwd`
1471 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1472 # Use eval to expand $SHELL
1473 if eval "$MISSING --run true"; then
1474 am_missing_run="$MISSING --run "
1475 else
1476 am_missing_run=
1477 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1478 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1481 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1482 # We used to keeping the `.' as first argument, in order to
1483 # allow $(mkdir_p) to be used without argument. As in
1484 # $(mkdir_p) $(somedir)
1485 # where $(somedir) is conditionally defined. However this is wrong
1486 # for two reasons:
1487 # 1. if the package is installed by a user who cannot write `.'
1488 # make install will fail,
1489 # 2. the above comment should most certainly read
1490 # $(mkdir_p) $(DESTDIR)$(somedir)
1491 # so it does not work when $(somedir) is undefined and
1492 # $(DESTDIR) is not.
1493 # To support the latter case, we have to write
1494 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1495 # so the `.' trick is pointless.
1496 mkdir_p='mkdir -p --'
1497 else
1498 # On NextStep and OpenStep, the `mkdir' command does not
1499 # recognize any option. It will interpret all options as
1500 # directories to create, and then abort because `.' already
1501 # exists.
1502 for d in ./-p ./--version;
1504 test -d $d && rmdir $d
1505 done
1506 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1507 if test -f "$ac_aux_dir/mkinstalldirs"; then
1508 mkdir_p='$(mkinstalldirs)'
1509 else
1510 mkdir_p='$(install_sh) -d'
1514 for ac_prog in gawk mawk nawk awk
1516 # Extract the first word of "$ac_prog", so it can be a program name with args.
1517 set dummy $ac_prog; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_AWK+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$AWK"; then
1524 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_AWK="$ac_prog"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1537 done
1538 done
1542 AWK=$ac_cv_prog_AWK
1543 if test -n "$AWK"; then
1544 echo "$as_me:$LINENO: result: $AWK" >&5
1545 echo "${ECHO_T}$AWK" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1551 test -n "$AWK" && break
1552 done
1554 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1555 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1556 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1557 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560 cat >conftest.make <<\_ACEOF
1561 all:
1562 @echo 'ac_maketemp="$(MAKE)"'
1563 _ACEOF
1564 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1565 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1566 if test -n "$ac_maketemp"; then
1567 eval ac_cv_prog_make_${ac_make}_set=yes
1568 else
1569 eval ac_cv_prog_make_${ac_make}_set=no
1571 rm -f conftest.make
1573 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1574 echo "$as_me:$LINENO: result: yes" >&5
1575 echo "${ECHO_T}yes" >&6
1576 SET_MAKE=
1577 else
1578 echo "$as_me:$LINENO: result: no" >&5
1579 echo "${ECHO_T}no" >&6
1580 SET_MAKE="MAKE=${MAKE-make}"
1583 rm -rf .tst 2>/dev/null
1584 mkdir .tst 2>/dev/null
1585 if test -d .tst; then
1586 am__leading_dot=.
1587 else
1588 am__leading_dot=_
1590 rmdir .tst 2>/dev/null
1592 # test to see if srcdir already configured
1593 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1594 test -f $srcdir/config.status; then
1595 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1596 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1597 { (exit 1); exit 1; }; }
1600 # test whether we have cygpath
1601 if test -z "$CYGPATH_W"; then
1602 if (cygpath --version) >/dev/null 2>/dev/null; then
1603 CYGPATH_W='cygpath -w'
1604 else
1605 CYGPATH_W=echo
1610 # Define the identity of the package.
1611 PACKAGE=bridge-utils
1612 VERSION=1.0.6
1615 cat >>confdefs.h <<_ACEOF
1616 #define PACKAGE "$PACKAGE"
1617 _ACEOF
1620 cat >>confdefs.h <<_ACEOF
1621 #define VERSION "$VERSION"
1622 _ACEOF
1624 # Some tools Automake needs.
1626 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1629 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1632 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1635 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1638 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1640 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1642 # Installed binaries are usually stripped using `strip' when the user
1643 # run `make install-strip'. However `strip' might not be the right
1644 # tool to use in cross-compilation environments, therefore Automake
1645 # will honor the `STRIP' environment variable to overrule this program.
1646 if test "$cross_compiling" != no; then
1647 if test -n "$ac_tool_prefix"; then
1648 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1649 set dummy ${ac_tool_prefix}strip; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_STRIP+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655 if test -n "$STRIP"; then
1656 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
1669 done
1670 done
1674 STRIP=$ac_cv_prog_STRIP
1675 if test -n "$STRIP"; then
1676 echo "$as_me:$LINENO: result: $STRIP" >&5
1677 echo "${ECHO_T}$STRIP" >&6
1678 else
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1684 if test -z "$ac_cv_prog_STRIP"; then
1685 ac_ct_STRIP=$STRIP
1686 # Extract the first word of "strip", so it can be a program name with args.
1687 set dummy strip; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693 if test -n "$ac_ct_STRIP"; then
1694 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_ac_ct_STRIP="strip"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1707 done
1708 done
1710 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1713 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1714 if test -n "$ac_ct_STRIP"; then
1715 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1716 echo "${ECHO_T}$ac_ct_STRIP" >&6
1717 else
1718 echo "$as_me:$LINENO: result: no" >&5
1719 echo "${ECHO_T}no" >&6
1722 STRIP=$ac_ct_STRIP
1723 else
1724 STRIP="$ac_cv_prog_STRIP"
1728 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1730 # We need awk for the "check" target. The system "awk" is bad on
1731 # some platforms.
1732 # Always define AMTAR for backward compatibility.
1734 AMTAR=${AMTAR-"${am_missing_run}tar"}
1736 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1744 # Check whether --with-linux-headers or --without-linux-headers was given.
1745 if test "${with_linux_headers+set}" = set; then
1746 withval="$with_linux_headers"
1747 KERNEL_HEADERS=$withval
1748 else
1749 KERNEL_HEADERS="/usr/src/linux/include"
1752 ac_ext=c
1753 ac_cpp='$CPP $CPPFLAGS'
1754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1757 if test -n "$ac_tool_prefix"; then
1758 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1759 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765 if test -n "$CC"; then
1766 ac_cv_prog_CC="$CC" # Let the user override the test.
1767 else
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 break 2
1779 done
1780 done
1784 CC=$ac_cv_prog_CC
1785 if test -n "$CC"; then
1786 echo "$as_me:$LINENO: result: $CC" >&5
1787 echo "${ECHO_T}$CC" >&6
1788 else
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1794 if test -z "$ac_cv_prog_CC"; then
1795 ac_ct_CC=$CC
1796 # Extract the first word of "gcc", so it can be a program name with args.
1797 set dummy gcc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803 if test -n "$ac_ct_CC"; then
1804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1805 else
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1809 IFS=$as_save_IFS
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 ac_cv_prog_ac_ct_CC="gcc"
1814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815 break 2
1817 done
1818 done
1822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1823 if test -n "$ac_ct_CC"; then
1824 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1825 echo "${ECHO_T}$ac_ct_CC" >&6
1826 else
1827 echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1831 CC=$ac_ct_CC
1832 else
1833 CC="$ac_cv_prog_CC"
1836 if test -z "$CC"; then
1837 if test -n "$ac_tool_prefix"; then
1838 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1839 set dummy ${ac_tool_prefix}cc; ac_word=$2
1840 echo "$as_me:$LINENO: checking for $ac_word" >&5
1841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842 if test "${ac_cv_prog_CC+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845 if test -n "$CC"; then
1846 ac_cv_prog_CC="$CC" # Let the user override the test.
1847 else
1848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 for as_dir in $PATH
1851 IFS=$as_save_IFS
1852 test -z "$as_dir" && as_dir=.
1853 for ac_exec_ext in '' $ac_executable_extensions; do
1854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 ac_cv_prog_CC="${ac_tool_prefix}cc"
1856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 break 2
1859 done
1860 done
1864 CC=$ac_cv_prog_CC
1865 if test -n "$CC"; then
1866 echo "$as_me:$LINENO: result: $CC" >&5
1867 echo "${ECHO_T}$CC" >&6
1868 else
1869 echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1874 if test -z "$ac_cv_prog_CC"; then
1875 ac_ct_CC=$CC
1876 # Extract the first word of "cc", so it can be a program name with args.
1877 set dummy cc; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883 if test -n "$ac_ct_CC"; then
1884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893 ac_cv_prog_ac_ct_CC="cc"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895 break 2
1897 done
1898 done
1902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1903 if test -n "$ac_ct_CC"; then
1904 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1905 echo "${ECHO_T}$ac_ct_CC" >&6
1906 else
1907 echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1911 CC=$ac_ct_CC
1912 else
1913 CC="$ac_cv_prog_CC"
1917 if test -z "$CC"; then
1918 # Extract the first word of "cc", so it can be a program name with args.
1919 set dummy cc; ac_word=$2
1920 echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922 if test "${ac_cv_prog_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925 if test -n "$CC"; then
1926 ac_cv_prog_CC="$CC" # Let the user override the test.
1927 else
1928 ac_prog_rejected=no
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1932 IFS=$as_save_IFS
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1937 ac_prog_rejected=yes
1938 continue
1940 ac_cv_prog_CC="cc"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 break 2
1944 done
1945 done
1947 if test $ac_prog_rejected = yes; then
1948 # We found a bogon in the path, so make sure we never use it.
1949 set dummy $ac_cv_prog_CC
1950 shift
1951 if test $# != 0; then
1952 # We chose a different compiler from the bogus one.
1953 # However, it has the same basename, so the bogon will be chosen
1954 # first if we set CC to just the basename; use the full file name.
1955 shift
1956 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1961 CC=$ac_cv_prog_CC
1962 if test -n "$CC"; then
1963 echo "$as_me:$LINENO: result: $CC" >&5
1964 echo "${ECHO_T}$CC" >&6
1965 else
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1971 if test -z "$CC"; then
1972 if test -n "$ac_tool_prefix"; then
1973 for ac_prog in cl
1975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1984 else
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 break 2
1996 done
1997 done
2001 CC=$ac_cv_prog_CC
2002 if test -n "$CC"; then
2003 echo "$as_me:$LINENO: result: $CC" >&5
2004 echo "${ECHO_T}$CC" >&6
2005 else
2006 echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2010 test -n "$CC" && break
2011 done
2013 if test -z "$CC"; then
2014 ac_ct_CC=$CC
2015 for ac_prog in cl
2017 # Extract the first word of "$ac_prog", so it can be a program name with args.
2018 set dummy $ac_prog; ac_word=$2
2019 echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024 if test -n "$ac_ct_CC"; then
2025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2026 else
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2030 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=.
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034 ac_cv_prog_ac_ct_CC="$ac_prog"
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 break 2
2038 done
2039 done
2043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044 if test -n "$ac_ct_CC"; then
2045 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046 echo "${ECHO_T}$ac_ct_CC" >&6
2047 else
2048 echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2052 test -n "$ac_ct_CC" && break
2053 done
2055 CC=$ac_ct_CC
2061 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO:" \
2069 "checking for C compiler version" >&5
2070 ac_compiler=`set X $ac_compile; echo $2`
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2072 (eval $ac_compiler --version </dev/null >&5) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2076 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2077 (eval $ac_compiler -v </dev/null >&5) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }
2081 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2082 (eval $ac_compiler -V </dev/null >&5) 2>&5
2083 ac_status=$?
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }
2087 cat >conftest.$ac_ext <<_ACEOF
2088 /* confdefs.h. */
2089 _ACEOF
2090 cat confdefs.h >>conftest.$ac_ext
2091 cat >>conftest.$ac_ext <<_ACEOF
2092 /* end confdefs.h. */
2095 main ()
2099 return 0;
2101 _ACEOF
2102 ac_clean_files_save=$ac_clean_files
2103 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2104 # Try to create an executable without -o first, disregard a.out.
2105 # It will help us diagnose broken compilers, and finding out an intuition
2106 # of exeext.
2107 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2108 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2109 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2110 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2111 (eval $ac_link_default) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; then
2115 # Find the output, starting from the most likely. This scheme is
2116 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2117 # resort.
2119 # Be careful to initialize this variable, since it used to be cached.
2120 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2121 ac_cv_exeext=
2122 # b.out is created by i960 compilers.
2123 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2125 test -f "$ac_file" || continue
2126 case $ac_file in
2127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2129 conftest.$ac_ext )
2130 # This is the source file.
2132 [ab].out )
2133 # We found the default executable, but exeext='' is most
2134 # certainly right.
2135 break;;
2136 *.* )
2137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2138 # FIXME: I believe we export ac_cv_exeext for Libtool,
2139 # but it would be cool to find out if it's true. Does anybody
2140 # maintain Libtool? --akim.
2141 export ac_cv_exeext
2142 break;;
2144 break;;
2145 esac
2146 done
2147 else
2148 echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2151 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2152 See \`config.log' for more details." >&5
2153 echo "$as_me: error: C compiler cannot create executables
2154 See \`config.log' for more details." >&2;}
2155 { (exit 77); exit 77; }; }
2158 ac_exeext=$ac_cv_exeext
2159 echo "$as_me:$LINENO: result: $ac_file" >&5
2160 echo "${ECHO_T}$ac_file" >&6
2162 # Check the compiler produces executables we can run. If not, either
2163 # the compiler is broken, or we cross compile.
2164 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2165 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2166 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2167 # If not cross compiling, check that we can run a simple program.
2168 if test "$cross_compiling" != yes; then
2169 if { ac_try='./$ac_file'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2175 cross_compiling=no
2176 else
2177 if test "$cross_compiling" = maybe; then
2178 cross_compiling=yes
2179 else
2180 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2181 If you meant to cross compile, use \`--host'.
2182 See \`config.log' for more details." >&5
2183 echo "$as_me: error: cannot run C compiled programs.
2184 If you meant to cross compile, use \`--host'.
2185 See \`config.log' for more details." >&2;}
2186 { (exit 1); exit 1; }; }
2190 echo "$as_me:$LINENO: result: yes" >&5
2191 echo "${ECHO_T}yes" >&6
2193 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2194 ac_clean_files=$ac_clean_files_save
2195 # Check the compiler produces executables we can run. If not, either
2196 # the compiler is broken, or we cross compile.
2197 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2198 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2199 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2200 echo "${ECHO_T}$cross_compiling" >&6
2202 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2203 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2205 (eval $ac_link) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; then
2209 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2210 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2211 # work properly (i.e., refer to `conftest.exe'), while it won't with
2212 # `rm'.
2213 for ac_file in conftest.exe conftest conftest.*; do
2214 test -f "$ac_file" || continue
2215 case $ac_file in
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2217 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2218 export ac_cv_exeext
2219 break;;
2220 * ) break;;
2221 esac
2222 done
2223 else
2224 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2227 See \`config.log' for more details." >&2;}
2228 { (exit 1); exit 1; }; }
2231 rm -f conftest$ac_cv_exeext
2232 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2233 echo "${ECHO_T}$ac_cv_exeext" >&6
2235 rm -f conftest.$ac_ext
2236 EXEEXT=$ac_cv_exeext
2237 ac_exeext=$EXEEXT
2238 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2239 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2240 if test "${ac_cv_objext+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 cat >conftest.$ac_ext <<_ACEOF
2244 /* confdefs.h. */
2245 _ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h. */
2251 main ()
2255 return 0;
2257 _ACEOF
2258 rm -f conftest.o conftest.obj
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
2264 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2265 case $ac_file in
2266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2268 break;;
2269 esac
2270 done
2271 else
2272 echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2275 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2278 See \`config.log' for more details." >&2;}
2279 { (exit 1); exit 1; }; }
2282 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2284 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2285 echo "${ECHO_T}$ac_cv_objext" >&6
2286 OBJEXT=$ac_cv_objext
2287 ac_objext=$OBJEXT
2288 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2289 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2290 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293 cat >conftest.$ac_ext <<_ACEOF
2294 /* confdefs.h. */
2295 _ACEOF
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h. */
2301 main ()
2303 #ifndef __GNUC__
2304 choke me
2305 #endif
2308 return 0;
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 ac_compiler_gnu=yes
2334 else
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2338 ac_compiler_gnu=no
2340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2344 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2345 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2346 GCC=`test $ac_compiler_gnu = yes && echo yes`
2347 ac_test_CFLAGS=${CFLAGS+set}
2348 ac_save_CFLAGS=$CFLAGS
2349 CFLAGS="-g"
2350 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2351 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2352 if test "${ac_cv_prog_cc_g+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355 cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2363 main ()
2367 return 0;
2369 _ACEOF
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2373 ac_status=$?
2374 grep -v '^ *+' conftest.er1 >conftest.err
2375 rm -f conftest.er1
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -z "$ac_c_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2392 ac_cv_prog_cc_g=yes
2393 else
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2397 ac_cv_prog_cc_g=no
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2401 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2402 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2403 if test "$ac_test_CFLAGS" = set; then
2404 CFLAGS=$ac_save_CFLAGS
2405 elif test $ac_cv_prog_cc_g = yes; then
2406 if test "$GCC" = yes; then
2407 CFLAGS="-g -O2"
2408 else
2409 CFLAGS="-g"
2411 else
2412 if test "$GCC" = yes; then
2413 CFLAGS="-O2"
2414 else
2415 CFLAGS=
2418 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2419 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2420 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423 ac_cv_prog_cc_stdc=no
2424 ac_save_CC=$CC
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2431 #include <stdarg.h>
2432 #include <stdio.h>
2433 #include <sys/types.h>
2434 #include <sys/stat.h>
2435 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2436 struct buf { int x; };
2437 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2438 static char *e (p, i)
2439 char **p;
2440 int i;
2442 return p[i];
2444 static char *f (char * (*g) (char **, int), char **p, ...)
2446 char *s;
2447 va_list v;
2448 va_start (v,p);
2449 s = g (p, va_arg (v,int));
2450 va_end (v);
2451 return s;
2454 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2455 function prototypes and stuff, but not '\xHH' hex character constants.
2456 These don't provoke an error unfortunately, instead are silently treated
2457 as 'x'. The following induces an error, until -std1 is added to get
2458 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2459 array size at least. It's necessary to write '\x00'==0 to get something
2460 that's true only with -std1. */
2461 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2463 int test (int i, double x);
2464 struct s1 {int (*f) (int a);};
2465 struct s2 {int (*f) (double a);};
2466 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2467 int argc;
2468 char **argv;
2470 main ()
2472 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2474 return 0;
2476 _ACEOF
2477 # Don't try gcc -ansi; that turns off useful extensions and
2478 # breaks some systems' header files.
2479 # AIX -qlanglvl=ansi
2480 # Ultrix and OSF/1 -std1
2481 # HP-UX 10.20 and later -Ae
2482 # HP-UX older versions -Aa -D_HPUX_SOURCE
2483 # SVR4 -Xc -D__EXTENSIONS__
2484 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2486 CC="$ac_save_CC $ac_arg"
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489 (eval $ac_compile) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try='test -z "$ac_c_werror_flag"
2497 || test ! -s conftest.err'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 (eval $ac_try) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; } &&
2503 { ac_try='test -s conftest.$ac_objext'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; }; then
2509 ac_cv_prog_cc_stdc=$ac_arg
2510 break
2511 else
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2516 rm -f conftest.err conftest.$ac_objext
2517 done
2518 rm -f conftest.$ac_ext conftest.$ac_objext
2519 CC=$ac_save_CC
2523 case "x$ac_cv_prog_cc_stdc" in
2524 x|xno)
2525 echo "$as_me:$LINENO: result: none needed" >&5
2526 echo "${ECHO_T}none needed" >&6 ;;
2528 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2529 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2530 CC="$CC $ac_cv_prog_cc_stdc" ;;
2531 esac
2533 # Some people use a C++ compiler to compile C. Since we use `exit',
2534 # in C++ we need to declare it. In case someone uses the same compiler
2535 # for both compiling C and C++ we need to have the C++ compiler decide
2536 # the declaration of exit, since it's the most demanding environment.
2537 cat >conftest.$ac_ext <<_ACEOF
2538 #ifndef __cplusplus
2539 choke me
2540 #endif
2541 _ACEOF
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>conftest.er1
2545 ac_status=$?
2546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 for ac_declaration in \
2565 '' \
2566 'extern "C" void std::exit (int) throw (); using std::exit;' \
2567 'extern "C" void std::exit (int); using std::exit;' \
2568 'extern "C" void exit (int) throw ();' \
2569 'extern "C" void exit (int);' \
2570 'void exit (int);'
2572 cat >conftest.$ac_ext <<_ACEOF
2573 /* confdefs.h. */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2578 $ac_declaration
2579 #include <stdlib.h>
2581 main ()
2583 exit (42);
2585 return 0;
2587 _ACEOF
2588 rm -f conftest.$ac_objext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590 (eval $ac_compile) 2>conftest.er1
2591 ac_status=$?
2592 grep -v '^ *+' conftest.er1 >conftest.err
2593 rm -f conftest.er1
2594 cat conftest.err >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } &&
2597 { ac_try='test -z "$ac_c_werror_flag"
2598 || test ! -s conftest.err'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 (eval $ac_try) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; } &&
2604 { ac_try='test -s conftest.$ac_objext'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 (eval $ac_try) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2611 else
2612 echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2615 continue
2617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2618 cat >conftest.$ac_ext <<_ACEOF
2619 /* confdefs.h. */
2620 _ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2624 $ac_declaration
2626 main ()
2628 exit (42);
2630 return 0;
2632 _ACEOF
2633 rm -f conftest.$ac_objext
2634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635 (eval $ac_compile) 2>conftest.er1
2636 ac_status=$?
2637 grep -v '^ *+' conftest.er1 >conftest.err
2638 rm -f conftest.er1
2639 cat conftest.err >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } &&
2642 { ac_try='test -z "$ac_c_werror_flag"
2643 || test ! -s conftest.err'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; } &&
2649 { ac_try='test -s conftest.$ac_objext'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; }; then
2655 break
2656 else
2657 echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2662 done
2663 rm -f conftest*
2664 if test -n "$ac_declaration"; then
2665 echo '#ifdef __cplusplus' >>confdefs.h
2666 echo $ac_declaration >>confdefs.h
2667 echo '#endif' >>confdefs.h
2670 else
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676 ac_ext=c
2677 ac_cpp='$CPP $CPPFLAGS'
2678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681 DEPDIR="${am__leading_dot}deps"
2683 ac_config_commands="$ac_config_commands depfiles"
2686 am_make=${MAKE-make}
2687 cat > confinc << 'END'
2688 am__doit:
2689 @echo done
2690 .PHONY: am__doit
2692 # If we don't find an include directive, just comment out the code.
2693 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2694 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2695 am__include="#"
2696 am__quote=
2697 _am_result=none
2698 # First try GNU make style include.
2699 echo "include confinc" > confmf
2700 # We grep out `Entering directory' and `Leaving directory'
2701 # messages which can occur if `w' ends up in MAKEFLAGS.
2702 # In particular we don't look at `^make:' because GNU make might
2703 # be invoked under some other name (usually "gmake"), in which
2704 # case it prints its new name instead of `make'.
2705 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2706 am__include=include
2707 am__quote=
2708 _am_result=GNU
2710 # Now try BSD make style include.
2711 if test "$am__include" = "#"; then
2712 echo '.include "confinc"' > confmf
2713 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2714 am__include=.include
2715 am__quote="\""
2716 _am_result=BSD
2721 echo "$as_me:$LINENO: result: $_am_result" >&5
2722 echo "${ECHO_T}$_am_result" >&6
2723 rm -f confinc confmf
2725 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2726 if test "${enable_dependency_tracking+set}" = set; then
2727 enableval="$enable_dependency_tracking"
2730 if test "x$enable_dependency_tracking" != xno; then
2731 am_depcomp="$ac_aux_dir/depcomp"
2732 AMDEPBACKSLASH='\'
2736 if test "x$enable_dependency_tracking" != xno; then
2737 AMDEP_TRUE=
2738 AMDEP_FALSE='#'
2739 else
2740 AMDEP_TRUE='#'
2741 AMDEP_FALSE=
2747 depcc="$CC" am_compiler_list=
2749 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2750 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2751 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2755 # We make a subdir and do the tests there. Otherwise we can end up
2756 # making bogus files that we don't know about and never remove. For
2757 # instance it was reported that on HP-UX the gcc test will end up
2758 # making a dummy file named `D' -- because `-MD' means `put the output
2759 # in D'.
2760 mkdir conftest.dir
2761 # Copy depcomp to subdir because otherwise we won't find it if we're
2762 # using a relative directory.
2763 cp "$am_depcomp" conftest.dir
2764 cd conftest.dir
2765 # We will build objects and dependencies in a subdirectory because
2766 # it helps to detect inapplicable dependency modes. For instance
2767 # both Tru64's cc and ICC support -MD to output dependencies as a
2768 # side effect of compilation, but ICC will put the dependencies in
2769 # the current directory while Tru64 will put them in the object
2770 # directory.
2771 mkdir sub
2773 am_cv_CC_dependencies_compiler_type=none
2774 if test "$am_compiler_list" = ""; then
2775 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2777 for depmode in $am_compiler_list; do
2778 # Setup a source with many dependencies, because some compilers
2779 # like to wrap large dependency lists on column 80 (with \), and
2780 # we should not choose a depcomp mode which is confused by this.
2782 # We need to recreate these files for each test, as the compiler may
2783 # overwrite some of them when testing with obscure command lines.
2784 # This happens at least with the AIX C compiler.
2785 : > sub/conftest.c
2786 for i in 1 2 3 4 5 6; do
2787 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2788 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2789 # Solaris 8's {/usr,}/bin/sh.
2790 touch sub/conftst$i.h
2791 done
2792 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2794 case $depmode in
2795 nosideeffect)
2796 # after this tag, mechanisms are not by side-effect, so they'll
2797 # only be used when explicitly requested
2798 if test "x$enable_dependency_tracking" = xyes; then
2799 continue
2800 else
2801 break
2804 none) break ;;
2805 esac
2806 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2807 # mode. It turns out that the SunPro C++ compiler does not properly
2808 # handle `-M -o', and we need to detect this.
2809 if depmode=$depmode \
2810 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2811 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2812 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2813 >/dev/null 2>conftest.err &&
2814 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2815 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2816 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2817 # icc doesn't choke on unknown options, it will just issue warnings
2818 # or remarks (even with -Werror). So we grep stderr for any message
2819 # that says an option was ignored or not supported.
2820 # When given -MP, icc 7.0 and 7.1 complain thusly:
2821 # icc: Command line warning: ignoring option '-M'; no argument required
2822 # The diagnosis changed in icc 8.0:
2823 # icc: Command line remark: option '-MP' not supported
2824 if (grep 'ignoring option' conftest.err ||
2825 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2826 am_cv_CC_dependencies_compiler_type=$depmode
2827 break
2830 done
2832 cd ..
2833 rm -rf conftest.dir
2834 else
2835 am_cv_CC_dependencies_compiler_type=none
2839 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2840 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2841 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2846 test "x$enable_dependency_tracking" != xno \
2847 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2848 am__fastdepCC_TRUE=
2849 am__fastdepCC_FALSE='#'
2850 else
2851 am__fastdepCC_TRUE='#'
2852 am__fastdepCC_FALSE=
2856 # Find a good install program. We prefer a C program (faster),
2857 # so one script is as good as another. But avoid the broken or
2858 # incompatible versions:
2859 # SysV /etc/install, /usr/sbin/install
2860 # SunOS /usr/etc/install
2861 # IRIX /sbin/install
2862 # AIX /bin/install
2863 # AmigaOS /C/install, which installs bootblocks on floppy discs
2864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2867 # OS/2's system install, which has a completely different semantic
2868 # ./install, which can be erroneously created by make from ./install.sh.
2869 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2870 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2871 if test -z "$INSTALL"; then
2872 if test "${ac_cv_path_install+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 # Account for people who put trailing slashes in PATH elements.
2881 case $as_dir/ in
2882 ./ | .// | /cC/* | \
2883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2884 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2885 /usr/ucb/* ) ;;
2887 # OSF1 and SCO ODT 3.0 have their own names for install.
2888 # Don't use installbsd from OSF since it installs stuff as root
2889 # by default.
2890 for ac_prog in ginstall scoinst install; do
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2893 if test $ac_prog = install &&
2894 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2895 # AIX install. It has an incompatible calling convention.
2897 elif test $ac_prog = install &&
2898 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899 # program-specific install script used by HP pwplus--don't use.
2901 else
2902 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2903 break 3
2906 done
2907 done
2909 esac
2910 done
2914 if test "${ac_cv_path_install+set}" = set; then
2915 INSTALL=$ac_cv_path_install
2916 else
2917 # As a last resort, use the slow shell script. We don't cache a
2918 # path for INSTALL within a source directory, because that will
2919 # break other packages using the cache if that directory is
2920 # removed, or if the path is relative.
2921 INSTALL=$ac_install_sh
2924 echo "$as_me:$LINENO: result: $INSTALL" >&5
2925 echo "${ECHO_T}$INSTALL" >&6
2927 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2928 # It thinks the first close brace ends the variable substitution.
2929 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2931 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2933 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2935 if test -n "$ac_tool_prefix"; then
2936 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2937 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2938 echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940 if test "${ac_cv_prog_RANLIB+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943 if test -n "$RANLIB"; then
2944 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2957 done
2958 done
2962 RANLIB=$ac_cv_prog_RANLIB
2963 if test -n "$RANLIB"; then
2964 echo "$as_me:$LINENO: result: $RANLIB" >&5
2965 echo "${ECHO_T}$RANLIB" >&6
2966 else
2967 echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6
2972 if test -z "$ac_cv_prog_RANLIB"; then
2973 ac_ct_RANLIB=$RANLIB
2974 # Extract the first word of "ranlib", so it can be a program name with args.
2975 set dummy ranlib; ac_word=$2
2976 echo "$as_me:$LINENO: checking for $ac_word" >&5
2977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2978 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981 if test -n "$ac_ct_RANLIB"; then
2982 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_prog_ac_ct_RANLIB="ranlib"
2992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2995 done
2996 done
2998 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3001 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3002 if test -n "$ac_ct_RANLIB"; then
3003 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3004 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3005 else
3006 echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6
3010 RANLIB=$ac_ct_RANLIB
3011 else
3012 RANLIB="$ac_cv_prog_RANLIB"
3017 ac_ext=c
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3023 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3024 # On Suns, sometimes $CPP names a directory.
3025 if test -n "$CPP" && test -d "$CPP"; then
3026 CPP=
3028 if test -z "$CPP"; then
3029 if test "${ac_cv_prog_CPP+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 # Double quotes because CPP needs to be expanded
3033 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3035 ac_preproc_ok=false
3036 for ac_c_preproc_warn_flag in '' yes
3038 # Use a header file that comes with gcc, so configuring glibc
3039 # with a fresh cross-compiler works.
3040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3041 # <limits.h> exists even on freestanding compilers.
3042 # On the NeXT, cc -E runs the code through the compiler's parser,
3043 # not just through cpp. "Syntax error" is here to catch this case.
3044 cat >conftest.$ac_ext <<_ACEOF
3045 /* confdefs.h. */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3050 #ifdef __STDC__
3051 # include <limits.h>
3052 #else
3053 # include <assert.h>
3054 #endif
3055 Syntax error
3056 _ACEOF
3057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059 ac_status=$?
3060 grep -v '^ *+' conftest.er1 >conftest.err
3061 rm -f conftest.er1
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } >/dev/null; then
3065 if test -s conftest.err; then
3066 ac_cpp_err=$ac_c_preproc_warn_flag
3067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3068 else
3069 ac_cpp_err=
3071 else
3072 ac_cpp_err=yes
3074 if test -z "$ac_cpp_err"; then
3076 else
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3080 # Broken: fails on valid input.
3081 continue
3083 rm -f conftest.err conftest.$ac_ext
3085 # OK, works on sane cases. Now check whether non-existent headers
3086 # can be detected and how.
3087 cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h. */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3093 #include <ac_nonexistent.h>
3094 _ACEOF
3095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3097 ac_status=$?
3098 grep -v '^ *+' conftest.er1 >conftest.err
3099 rm -f conftest.er1
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } >/dev/null; then
3103 if test -s conftest.err; then
3104 ac_cpp_err=$ac_c_preproc_warn_flag
3105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3106 else
3107 ac_cpp_err=
3109 else
3110 ac_cpp_err=yes
3112 if test -z "$ac_cpp_err"; then
3113 # Broken: success on invalid input.
3114 continue
3115 else
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 # Passes both tests.
3120 ac_preproc_ok=:
3121 break
3123 rm -f conftest.err conftest.$ac_ext
3125 done
3126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3127 rm -f conftest.err conftest.$ac_ext
3128 if $ac_preproc_ok; then
3129 break
3132 done
3133 ac_cv_prog_CPP=$CPP
3136 CPP=$ac_cv_prog_CPP
3137 else
3138 ac_cv_prog_CPP=$CPP
3140 echo "$as_me:$LINENO: result: $CPP" >&5
3141 echo "${ECHO_T}$CPP" >&6
3142 ac_preproc_ok=false
3143 for ac_c_preproc_warn_flag in '' yes
3145 # Use a header file that comes with gcc, so configuring glibc
3146 # with a fresh cross-compiler works.
3147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3148 # <limits.h> exists even on freestanding compilers.
3149 # On the NeXT, cc -E runs the code through the compiler's parser,
3150 # not just through cpp. "Syntax error" is here to catch this case.
3151 cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h. */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3157 #ifdef __STDC__
3158 # include <limits.h>
3159 #else
3160 # include <assert.h>
3161 #endif
3162 Syntax error
3163 _ACEOF
3164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3166 ac_status=$?
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } >/dev/null; then
3172 if test -s conftest.err; then
3173 ac_cpp_err=$ac_c_preproc_warn_flag
3174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3175 else
3176 ac_cpp_err=
3178 else
3179 ac_cpp_err=yes
3181 if test -z "$ac_cpp_err"; then
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 # Broken: fails on valid input.
3188 continue
3190 rm -f conftest.err conftest.$ac_ext
3192 # OK, works on sane cases. Now check whether non-existent headers
3193 # can be detected and how.
3194 cat >conftest.$ac_ext <<_ACEOF
3195 /* confdefs.h. */
3196 _ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h. */
3200 #include <ac_nonexistent.h>
3201 _ACEOF
3202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3204 ac_status=$?
3205 grep -v '^ *+' conftest.er1 >conftest.err
3206 rm -f conftest.er1
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } >/dev/null; then
3210 if test -s conftest.err; then
3211 ac_cpp_err=$ac_c_preproc_warn_flag
3212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3213 else
3214 ac_cpp_err=
3216 else
3217 ac_cpp_err=yes
3219 if test -z "$ac_cpp_err"; then
3220 # Broken: success on invalid input.
3221 continue
3222 else
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3226 # Passes both tests.
3227 ac_preproc_ok=:
3228 break
3230 rm -f conftest.err conftest.$ac_ext
3232 done
3233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3234 rm -f conftest.err conftest.$ac_ext
3235 if $ac_preproc_ok; then
3237 else
3238 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3239 See \`config.log' for more details." >&5
3240 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3241 See \`config.log' for more details." >&2;}
3242 { (exit 1); exit 1; }; }
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252 echo "$as_me:$LINENO: checking for egrep" >&5
3253 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3254 if test "${ac_cv_prog_egrep+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3258 then ac_cv_prog_egrep='grep -E'
3259 else ac_cv_prog_egrep='egrep'
3262 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3263 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3264 EGREP=$ac_cv_prog_egrep
3267 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3268 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3269 if test "${ac_cv_header_stdc+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272 cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h. */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3278 #include <stdlib.h>
3279 #include <stdarg.h>
3280 #include <string.h>
3281 #include <float.h>
3284 main ()
3288 return 0;
3290 _ACEOF
3291 rm -f conftest.$ac_objext
3292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3293 (eval $ac_compile) 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -z "$ac_c_werror_flag"
3301 || test ! -s conftest.err'
3302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 (eval $ac_try) 2>&5
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; } &&
3307 { ac_try='test -s conftest.$ac_objext'
3308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309 (eval $ac_try) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; }; then
3313 ac_cv_header_stdc=yes
3314 else
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 ac_cv_header_stdc=no
3320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3322 if test $ac_cv_header_stdc = yes; then
3323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3324 cat >conftest.$ac_ext <<_ACEOF
3325 /* confdefs.h. */
3326 _ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3330 #include <string.h>
3332 _ACEOF
3333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3334 $EGREP "memchr" >/dev/null 2>&1; then
3336 else
3337 ac_cv_header_stdc=no
3339 rm -f conftest*
3343 if test $ac_cv_header_stdc = yes; then
3344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3345 cat >conftest.$ac_ext <<_ACEOF
3346 /* confdefs.h. */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3351 #include <stdlib.h>
3353 _ACEOF
3354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3355 $EGREP "free" >/dev/null 2>&1; then
3357 else
3358 ac_cv_header_stdc=no
3360 rm -f conftest*
3364 if test $ac_cv_header_stdc = yes; then
3365 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3366 if test "$cross_compiling" = yes; then
3368 else
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h. */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375 #include <ctype.h>
3376 #if ((' ' & 0x0FF) == 0x020)
3377 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3378 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3379 #else
3380 # define ISLOWER(c) \
3381 (('a' <= (c) && (c) <= 'i') \
3382 || ('j' <= (c) && (c) <= 'r') \
3383 || ('s' <= (c) && (c) <= 'z'))
3384 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3385 #endif
3387 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3389 main ()
3391 int i;
3392 for (i = 0; i < 256; i++)
3393 if (XOR (islower (i), ISLOWER (i))
3394 || toupper (i) != TOUPPER (i))
3395 exit(2);
3396 exit (0);
3398 _ACEOF
3399 rm -f conftest$ac_exeext
3400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3401 (eval $ac_link) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406 (eval $ac_try) 2>&5
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; }; then
3411 else
3412 echo "$as_me: program exited with status $ac_status" >&5
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 ( exit $ac_status )
3417 ac_cv_header_stdc=no
3419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3423 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3424 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3425 if test $ac_cv_header_stdc = yes; then
3427 cat >>confdefs.h <<\_ACEOF
3428 #define STDC_HEADERS 1
3429 _ACEOF
3433 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3443 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3444 inttypes.h stdint.h unistd.h
3446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3447 echo "$as_me:$LINENO: checking for $ac_header" >&5
3448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h. */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3458 $ac_includes_default
3460 #include <$ac_header>
3461 _ACEOF
3462 rm -f conftest.$ac_objext
3463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3464 (eval $ac_compile) 2>conftest.er1
3465 ac_status=$?
3466 grep -v '^ *+' conftest.er1 >conftest.err
3467 rm -f conftest.er1
3468 cat conftest.err >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } &&
3471 { ac_try='test -z "$ac_c_werror_flag"
3472 || test ! -s conftest.err'
3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474 (eval $ac_try) 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; } &&
3478 { ac_try='test -s conftest.$ac_objext'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 (eval $ac_try) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3484 eval "$as_ac_Header=yes"
3485 else
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 eval "$as_ac_Header=no"
3491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3496 cat >>confdefs.h <<_ACEOF
3497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3498 _ACEOF
3502 done
3507 for ac_header in sys/ioctl.h sys/time.h
3509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3511 echo "$as_me:$LINENO: checking for $ac_header" >&5
3512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3518 else
3519 # Is the header compilable?
3520 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h. */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 $ac_includes_default
3529 #include <$ac_header>
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>conftest.er1
3534 ac_status=$?
3535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 { ac_try='test -z "$ac_c_werror_flag"
3541 || test ! -s conftest.err'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 (eval $ac_try) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try='test -s conftest.$ac_objext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 ac_header_compiler=yes
3554 else
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3558 ac_header_compiler=no
3560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3562 echo "${ECHO_T}$ac_header_compiler" >&6
3564 # Is the header present?
3565 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3567 cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h. */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573 #include <$ac_header>
3574 _ACEOF
3575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } >/dev/null; then
3583 if test -s conftest.err; then
3584 ac_cpp_err=$ac_c_preproc_warn_flag
3585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3586 else
3587 ac_cpp_err=
3589 else
3590 ac_cpp_err=yes
3592 if test -z "$ac_cpp_err"; then
3593 ac_header_preproc=yes
3594 else
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3598 ac_header_preproc=no
3600 rm -f conftest.err conftest.$ac_ext
3601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3602 echo "${ECHO_T}$ac_header_preproc" >&6
3604 # So? What about this header?
3605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3606 yes:no: )
3607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3611 ac_header_preproc=yes
3613 no:yes:* )
3614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3627 cat <<\_ASBOX
3628 ## ------------------------------------------ ##
3629 ## Report this to the AC_PACKAGE_NAME lists. ##
3630 ## ------------------------------------------ ##
3631 _ASBOX
3633 sed "s/^/$as_me: WARNING: /" >&2
3635 esac
3636 echo "$as_me:$LINENO: checking for $ac_header" >&5
3637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641 eval "$as_ac_Header=\$ac_header_preproc"
3643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3648 cat >>confdefs.h <<_ACEOF
3649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3650 _ACEOF
3654 done
3657 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3658 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3659 if test "${ac_cv_c_const+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h. */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3670 main ()
3672 /* FIXME: Include the comments suggested by Paul. */
3673 #ifndef __cplusplus
3674 /* Ultrix mips cc rejects this. */
3675 typedef int charset[2];
3676 const charset x;
3677 /* SunOS 4.1.1 cc rejects this. */
3678 char const *const *ccp;
3679 char **p;
3680 /* NEC SVR4.0.2 mips cc rejects this. */
3681 struct point {int x, y;};
3682 static struct point const zero = {0,0};
3683 /* AIX XL C 1.02.0.0 rejects this.
3684 It does not let you subtract one const X* pointer from another in
3685 an arm of an if-expression whose if-part is not a constant
3686 expression */
3687 const char *g = "string";
3688 ccp = &g + (g ? g-g : 0);
3689 /* HPUX 7.0 cc rejects these. */
3690 ++ccp;
3691 p = (char**) ccp;
3692 ccp = (char const *const *) p;
3693 { /* SCO 3.2v4 cc rejects this. */
3694 char *t;
3695 char const *s = 0 ? (char *) 0 : (char const *) 0;
3697 *t++ = 0;
3699 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3700 int x[] = {25, 17};
3701 const int *foo = &x[0];
3702 ++foo;
3704 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3705 typedef const int *iptr;
3706 iptr p = 0;
3707 ++p;
3709 { /* AIX XL C 1.02.0.0 rejects this saying
3710 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3711 struct s { int j; const int *ap[3]; };
3712 struct s *b; b->j = 5;
3714 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3715 const int foo = 10;
3717 #endif
3720 return 0;
3722 _ACEOF
3723 rm -f conftest.$ac_objext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3725 (eval $ac_compile) 2>conftest.er1
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } &&
3732 { ac_try='test -z "$ac_c_werror_flag"
3733 || test ! -s conftest.err'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; } &&
3739 { ac_try='test -s conftest.$ac_objext'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3745 ac_cv_c_const=yes
3746 else
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3750 ac_cv_c_const=no
3752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3754 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3755 echo "${ECHO_T}$ac_cv_c_const" >&6
3756 if test $ac_cv_c_const = no; then
3758 cat >>confdefs.h <<\_ACEOF
3759 #define const
3760 _ACEOF
3764 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3765 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3766 if test "${ac_cv_header_time+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h. */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3775 #include <sys/types.h>
3776 #include <sys/time.h>
3777 #include <time.h>
3780 main ()
3782 if ((struct tm *) 0)
3783 return 0;
3785 return 0;
3787 _ACEOF
3788 rm -f conftest.$ac_objext
3789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3790 (eval $ac_compile) 2>conftest.er1
3791 ac_status=$?
3792 grep -v '^ *+' conftest.er1 >conftest.err
3793 rm -f conftest.er1
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } &&
3797 { ac_try='test -z "$ac_c_werror_flag"
3798 || test ! -s conftest.err'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 (eval $ac_try) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; } &&
3804 { ac_try='test -s conftest.$ac_objext'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3810 ac_cv_header_time=yes
3811 else
3812 echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 ac_cv_header_time=no
3817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3819 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3820 echo "${ECHO_T}$ac_cv_header_time" >&6
3821 if test $ac_cv_header_time = yes; then
3823 cat >>confdefs.h <<\_ACEOF
3824 #define TIME_WITH_SYS_TIME 1
3825 _ACEOF
3830 if test $ac_cv_c_compiler_gnu = yes; then
3831 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3832 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3833 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836 ac_pattern="Autoconf.*'x'"
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h. */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 #include <sgtty.h>
3844 Autoconf TIOCGETP
3845 _ACEOF
3846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3847 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3848 ac_cv_prog_gcc_traditional=yes
3849 else
3850 ac_cv_prog_gcc_traditional=no
3852 rm -f conftest*
3855 if test $ac_cv_prog_gcc_traditional = no; then
3856 cat >conftest.$ac_ext <<_ACEOF
3857 /* confdefs.h. */
3858 _ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3862 #include <termio.h>
3863 Autoconf TCGETA
3864 _ACEOF
3865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3866 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3867 ac_cv_prog_gcc_traditional=yes
3869 rm -f conftest*
3873 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3874 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3875 if test $ac_cv_prog_gcc_traditional = yes; then
3876 CC="$CC -traditional"
3880 echo "$as_me:$LINENO: checking for working memcmp" >&5
3881 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
3882 if test "${ac_cv_func_memcmp_working+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885 if test "$cross_compiling" = yes; then
3886 ac_cv_func_memcmp_working=no
3887 else
3888 cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h. */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3894 $ac_includes_default
3896 main ()
3899 /* Some versions of memcmp are not 8-bit clean. */
3900 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3901 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3902 exit (1);
3904 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3905 or more and with at least one buffer not starting on a 4-byte boundary.
3906 William Lewis provided this test program. */
3908 char foo[21];
3909 char bar[21];
3910 int i;
3911 for (i = 0; i < 4; i++)
3913 char *a = foo + i;
3914 char *b = bar + i;
3915 strcpy (a, "--------01111111");
3916 strcpy (b, "--------10000000");
3917 if (memcmp (a, b, 16) >= 0)
3918 exit (1);
3920 exit (0);
3924 return 0;
3926 _ACEOF
3927 rm -f conftest$ac_exeext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3929 (eval $ac_link) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_cv_func_memcmp_working=yes
3939 else
3940 echo "$as_me: program exited with status $ac_status" >&5
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 ( exit $ac_status )
3945 ac_cv_func_memcmp_working=no
3947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3950 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
3951 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
3952 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
3953 "memcmp.$ac_objext" | \
3954 *" memcmp.$ac_objext" | \
3955 "memcmp.$ac_objext "* | \
3956 *" memcmp.$ac_objext "* ) ;;
3957 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
3958 esac
3965 for ac_func in gethostname socket strdup uname
3967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3968 echo "$as_me:$LINENO: checking for $ac_func" >&5
3969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3970 if eval "test \"\${$as_ac_var+set}\" = set"; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973 cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h. */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3981 #define $ac_func innocuous_$ac_func
3983 /* System header to define __stub macros and hopefully few prototypes,
3984 which can conflict with char $ac_func (); below.
3985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3986 <limits.h> exists even on freestanding compilers. */
3988 #ifdef __STDC__
3989 # include <limits.h>
3990 #else
3991 # include <assert.h>
3992 #endif
3994 #undef $ac_func
3996 /* Override any gcc2 internal prototype to avoid an error. */
3997 #ifdef __cplusplus
3998 extern "C"
4000 #endif
4001 /* We use char because int might match the return type of a gcc2
4002 builtin and then its argument prototype would still apply. */
4003 char $ac_func ();
4004 /* The GNU C library defines this for functions which it implements
4005 to always fail with ENOSYS. Some functions are actually named
4006 something starting with __ and the normal name is an alias. */
4007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4008 choke me
4009 #else
4010 char (*f) () = $ac_func;
4011 #endif
4012 #ifdef __cplusplus
4014 #endif
4017 main ()
4019 return f != $ac_func;
4021 return 0;
4023 _ACEOF
4024 rm -f conftest.$ac_objext conftest$ac_exeext
4025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4026 (eval $ac_link) 2>conftest.er1
4027 ac_status=$?
4028 grep -v '^ *+' conftest.er1 >conftest.err
4029 rm -f conftest.er1
4030 cat conftest.err >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } &&
4033 { ac_try='test -z "$ac_c_werror_flag"
4034 || test ! -s conftest.err'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 (eval $ac_try) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; } &&
4040 { ac_try='test -s conftest$ac_exeext'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 (eval $ac_try) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 eval "$as_ac_var=yes"
4047 else
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 eval "$as_ac_var=no"
4053 rm -f conftest.err conftest.$ac_objext \
4054 conftest$ac_exeext conftest.$ac_ext
4056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4058 if test `eval echo '${'$as_ac_var'}'` = yes; then
4059 cat >>confdefs.h <<_ACEOF
4060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4061 _ACEOF
4064 done
4068 for ac_func in if_nametoindex if_indextoname
4070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4071 echo "$as_me:$LINENO: checking for $ac_func" >&5
4072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4073 if eval "test \"\${$as_ac_var+set}\" = set"; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076 cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h. */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4084 #define $ac_func innocuous_$ac_func
4086 /* System header to define __stub macros and hopefully few prototypes,
4087 which can conflict with char $ac_func (); below.
4088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4089 <limits.h> exists even on freestanding compilers. */
4091 #ifdef __STDC__
4092 # include <limits.h>
4093 #else
4094 # include <assert.h>
4095 #endif
4097 #undef $ac_func
4099 /* Override any gcc2 internal prototype to avoid an error. */
4100 #ifdef __cplusplus
4101 extern "C"
4103 #endif
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4106 char $ac_func ();
4107 /* The GNU C library defines this for functions which it implements
4108 to always fail with ENOSYS. Some functions are actually named
4109 something starting with __ and the normal name is an alias. */
4110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4111 choke me
4112 #else
4113 char (*f) () = $ac_func;
4114 #endif
4115 #ifdef __cplusplus
4117 #endif
4120 main ()
4122 return f != $ac_func;
4124 return 0;
4126 _ACEOF
4127 rm -f conftest.$ac_objext conftest$ac_exeext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4129 (eval $ac_link) 2>conftest.er1
4130 ac_status=$?
4131 grep -v '^ *+' conftest.er1 >conftest.err
4132 rm -f conftest.er1
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag"
4137 || test ! -s conftest.err'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest$ac_exeext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 eval "$as_ac_var=yes"
4150 else
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 eval "$as_ac_var=no"
4156 rm -f conftest.err conftest.$ac_objext \
4157 conftest$ac_exeext conftest.$ac_ext
4159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4161 if test `eval echo '${'$as_ac_var'}'` = yes; then
4162 cat >>confdefs.h <<_ACEOF
4163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4164 _ACEOF
4167 done
4170 if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
4171 echo "$as_me:$LINENO: checking for sysfs/libsysfs.h" >&5
4172 echo $ECHO_N "checking for sysfs/libsysfs.h... $ECHO_C" >&6
4173 if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 echo "$as_me:$LINENO: result: $ac_cv_header_sysfs_libsysfs_h" >&5
4177 echo "${ECHO_T}$ac_cv_header_sysfs_libsysfs_h" >&6
4178 else
4179 # Is the header compilable?
4180 echo "$as_me:$LINENO: checking sysfs/libsysfs.h usability" >&5
4181 echo $ECHO_N "checking sysfs/libsysfs.h usability... $ECHO_C" >&6
4182 cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h. */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 $ac_includes_default
4189 #include <sysfs/libsysfs.h>
4190 _ACEOF
4191 rm -f conftest.$ac_objext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193 (eval $ac_compile) 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } &&
4200 { ac_try='test -z "$ac_c_werror_flag"
4201 || test ! -s conftest.err'
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 (eval $ac_try) 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 (eval $ac_try) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 ac_header_compiler=yes
4214 else
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4218 ac_header_compiler=no
4220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4222 echo "${ECHO_T}$ac_header_compiler" >&6
4224 # Is the header present?
4225 echo "$as_me:$LINENO: checking sysfs/libsysfs.h presence" >&5
4226 echo $ECHO_N "checking sysfs/libsysfs.h presence... $ECHO_C" >&6
4227 cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h. */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4233 #include <sysfs/libsysfs.h>
4234 _ACEOF
4235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4237 ac_status=$?
4238 grep -v '^ *+' conftest.er1 >conftest.err
4239 rm -f conftest.er1
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } >/dev/null; then
4243 if test -s conftest.err; then
4244 ac_cpp_err=$ac_c_preproc_warn_flag
4245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4246 else
4247 ac_cpp_err=
4249 else
4250 ac_cpp_err=yes
4252 if test -z "$ac_cpp_err"; then
4253 ac_header_preproc=yes
4254 else
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 ac_header_preproc=no
4260 rm -f conftest.err conftest.$ac_ext
4261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4262 echo "${ECHO_T}$ac_header_preproc" >&6
4264 # So? What about this header?
4265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4266 yes:no: )
4267 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
4268 echo "$as_me: WARNING: sysfs/libsysfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4269 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: proceeding with the compiler's result" >&5
4270 echo "$as_me: WARNING: sysfs/libsysfs.h: proceeding with the compiler's result" >&2;}
4271 ac_header_preproc=yes
4273 no:yes:* )
4274 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: present but cannot be compiled" >&5
4275 echo "$as_me: WARNING: sysfs/libsysfs.h: present but cannot be compiled" >&2;}
4276 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: check for missing prerequisite headers?" >&5
4277 echo "$as_me: WARNING: sysfs/libsysfs.h: check for missing prerequisite headers?" >&2;}
4278 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: see the Autoconf documentation" >&5
4279 echo "$as_me: WARNING: sysfs/libsysfs.h: see the Autoconf documentation" >&2;}
4280 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: section \"Present But Cannot Be Compiled\"" >&5
4281 echo "$as_me: WARNING: sysfs/libsysfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
4282 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: proceeding with the preprocessor's result" >&5
4283 echo "$as_me: WARNING: sysfs/libsysfs.h: proceeding with the preprocessor's result" >&2;}
4284 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: in the future, the compiler will take precedence" >&5
4285 echo "$as_me: WARNING: sysfs/libsysfs.h: in the future, the compiler will take precedence" >&2;}
4287 cat <<\_ASBOX
4288 ## ------------------------------------------ ##
4289 ## Report this to the AC_PACKAGE_NAME lists. ##
4290 ## ------------------------------------------ ##
4291 _ASBOX
4293 sed "s/^/$as_me: WARNING: /" >&2
4295 esac
4296 echo "$as_me:$LINENO: checking for sysfs/libsysfs.h" >&5
4297 echo $ECHO_N "checking for sysfs/libsysfs.h... $ECHO_C" >&6
4298 if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 ac_cv_header_sysfs_libsysfs_h=$ac_header_preproc
4303 echo "$as_me:$LINENO: result: $ac_cv_header_sysfs_libsysfs_h" >&5
4304 echo "${ECHO_T}$ac_cv_header_sysfs_libsysfs_h" >&6
4307 if test $ac_cv_header_sysfs_libsysfs_h = yes; then
4308 echo "$as_me:$LINENO: checking for sysfs_open_directory in -lsysfs" >&5
4309 echo $ECHO_N "checking for sysfs_open_directory in -lsysfs... $ECHO_C" >&6
4310 if test "${ac_cv_lib_sysfs_sysfs_open_directory+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313 ac_check_lib_save_LIBS=$LIBS
4314 LIBS="-lsysfs $LIBS"
4315 cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h. */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4322 /* Override any gcc2 internal prototype to avoid an error. */
4323 #ifdef __cplusplus
4324 extern "C"
4325 #endif
4326 /* We use char because int might match the return type of a gcc2
4327 builtin and then its argument prototype would still apply. */
4328 char sysfs_open_directory ();
4330 main ()
4332 sysfs_open_directory ();
4334 return 0;
4336 _ACEOF
4337 rm -f conftest.$ac_objext conftest$ac_exeext
4338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4339 (eval $ac_link) 2>conftest.er1
4340 ac_status=$?
4341 grep -v '^ *+' conftest.er1 >conftest.err
4342 rm -f conftest.er1
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } &&
4346 { ac_try='test -z "$ac_c_werror_flag"
4347 || test ! -s conftest.err'
4348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 (eval $ac_try) 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; } &&
4353 { ac_try='test -s conftest$ac_exeext'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 ac_cv_lib_sysfs_sysfs_open_directory=yes
4360 else
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4364 ac_cv_lib_sysfs_sysfs_open_directory=no
4366 rm -f conftest.err conftest.$ac_objext \
4367 conftest$ac_exeext conftest.$ac_ext
4368 LIBS=$ac_check_lib_save_LIBS
4370 echo "$as_me:$LINENO: result: $ac_cv_lib_sysfs_sysfs_open_directory" >&5
4371 echo "${ECHO_T}$ac_cv_lib_sysfs_sysfs_open_directory" >&6
4372 if test $ac_cv_lib_sysfs_sysfs_open_directory = yes; then
4373 cat >>confdefs.h <<\_ACEOF
4374 #define HAVE_LIBSYSFS 1
4375 _ACEOF
4377 LIBS="$LIBS -lsysfs"
4378 else
4379 { echo "$as_me:$LINENO: WARNING: Missing sysfs library!" >&5
4380 echo "$as_me: WARNING: Missing sysfs library!" >&2;}
4383 else
4384 { echo "$as_me:$LINENO: WARNING: Missing /usr/include/sysfs/libsysfs.h" >&5
4385 echo "$as_me: WARNING: Missing /usr/include/sysfs/libsysfs.h" >&2;}
4393 ac_config_files="$ac_config_files doc/Makefile libbridge/Makefile brctl/Makefile Makefile bridge-utils.spec"
4394 cat >confcache <<\_ACEOF
4395 # This file is a shell script that caches the results of configure
4396 # tests run on this system so they can be shared between configure
4397 # scripts and configure runs, see configure's option --config-cache.
4398 # It is not useful on other systems. If it contains results you don't
4399 # want to keep, you may remove or edit it.
4401 # config.status only pays attention to the cache file if you give it
4402 # the --recheck option to rerun configure.
4404 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4405 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4406 # following values.
4408 _ACEOF
4410 # The following way of writing the cache mishandles newlines in values,
4411 # but we know of no workaround that is simple, portable, and efficient.
4412 # So, don't put newlines in cache variables' values.
4413 # Ultrix sh set writes to stderr and can't be redirected directly,
4414 # and sets the high bit in the cache file unless we assign to the vars.
4416 (set) 2>&1 |
4417 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4418 *ac_space=\ *)
4419 # `set' does not quote correctly, so add quotes (double-quote
4420 # substitution turns \\\\ into \\, and sed turns \\ into \).
4421 sed -n \
4422 "s/'/'\\\\''/g;
4423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4426 # `set' quotes correctly as required by POSIX, so do not add quotes.
4427 sed -n \
4428 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4430 esac;
4432 sed '
4433 t clear
4434 : clear
4435 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4436 t end
4437 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4438 : end' >>confcache
4439 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4440 if test -w $cache_file; then
4441 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4442 cat confcache >$cache_file
4443 else
4444 echo "not updating unwritable cache $cache_file"
4447 rm -f confcache
4449 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4450 # Let make expand exec_prefix.
4451 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4453 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4454 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4455 # trailing colons and then remove the whole line if VPATH becomes empty
4456 # (actually we leave an empty line to preserve line numbers).
4457 if test "x$srcdir" = x.; then
4458 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4459 s/:*\$(srcdir):*/:/;
4460 s/:*\${srcdir}:*/:/;
4461 s/:*@srcdir@:*/:/;
4462 s/^\([^=]*=[ ]*\):*/\1/;
4463 s/:*$//;
4464 s/^[^=]*=[ ]*$//;
4468 DEFS=-DHAVE_CONFIG_H
4470 ac_libobjs=
4471 ac_ltlibobjs=
4472 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4473 # 1. Remove the extension, and $U if already installed.
4474 ac_i=`echo "$ac_i" |
4475 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4476 # 2. Add them.
4477 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4478 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4479 done
4480 LIBOBJS=$ac_libobjs
4482 LTLIBOBJS=$ac_ltlibobjs
4485 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4486 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4487 Usually this means the macro was only invoked conditionally." >&5
4488 echo "$as_me: error: conditional \"AMDEP\" was never defined.
4489 Usually this means the macro was only invoked conditionally." >&2;}
4490 { (exit 1); exit 1; }; }
4492 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4493 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4494 Usually this means the macro was only invoked conditionally." >&5
4495 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4496 Usually this means the macro was only invoked conditionally." >&2;}
4497 { (exit 1); exit 1; }; }
4500 : ${CONFIG_STATUS=./config.status}
4501 ac_clean_files_save=$ac_clean_files
4502 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4503 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4504 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4505 cat >$CONFIG_STATUS <<_ACEOF
4506 #! $SHELL
4507 # Generated by $as_me.
4508 # Run this file to recreate the current configuration.
4509 # Compiler output produced by configure, useful for debugging
4510 # configure, is in config.log if it exists.
4512 debug=false
4513 ac_cs_recheck=false
4514 ac_cs_silent=false
4515 SHELL=\${CONFIG_SHELL-$SHELL}
4516 _ACEOF
4518 cat >>$CONFIG_STATUS <<\_ACEOF
4519 ## --------------------- ##
4520 ## M4sh Initialization. ##
4521 ## --------------------- ##
4523 # Be Bourne compatible
4524 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4525 emulate sh
4526 NULLCMD=:
4527 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4528 # is contrary to our usage. Disable this feature.
4529 alias -g '${1+"$@"}'='"$@"'
4530 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4531 set -o posix
4533 DUALCASE=1; export DUALCASE # for MKS sh
4535 # Support unset when possible.
4536 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4537 as_unset=unset
4538 else
4539 as_unset=false
4543 # Work around bugs in pre-3.0 UWIN ksh.
4544 $as_unset ENV MAIL MAILPATH
4545 PS1='$ '
4546 PS2='> '
4547 PS4='+ '
4549 # NLS nuisances.
4550 for as_var in \
4551 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4552 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4553 LC_TELEPHONE LC_TIME
4555 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4556 eval $as_var=C; export $as_var
4557 else
4558 $as_unset $as_var
4560 done
4562 # Required to use basename.
4563 if expr a : '\(a\)' >/dev/null 2>&1; then
4564 as_expr=expr
4565 else
4566 as_expr=false
4569 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4570 as_basename=basename
4571 else
4572 as_basename=false
4576 # Name of the executable.
4577 as_me=`$as_basename "$0" ||
4578 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4579 X"$0" : 'X\(//\)$' \| \
4580 X"$0" : 'X\(/\)$' \| \
4581 . : '\(.\)' 2>/dev/null ||
4582 echo X/"$0" |
4583 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4584 /^X\/\(\/\/\)$/{ s//\1/; q; }
4585 /^X\/\(\/\).*/{ s//\1/; q; }
4586 s/.*/./; q'`
4589 # PATH needs CR, and LINENO needs CR and PATH.
4590 # Avoid depending upon Character Ranges.
4591 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4592 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4593 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4594 as_cr_digits='0123456789'
4595 as_cr_alnum=$as_cr_Letters$as_cr_digits
4597 # The user is always right.
4598 if test "${PATH_SEPARATOR+set}" != set; then
4599 echo "#! /bin/sh" >conf$$.sh
4600 echo "exit 0" >>conf$$.sh
4601 chmod +x conf$$.sh
4602 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4603 PATH_SEPARATOR=';'
4604 else
4605 PATH_SEPARATOR=:
4607 rm -f conf$$.sh
4611 as_lineno_1=$LINENO
4612 as_lineno_2=$LINENO
4613 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4614 test "x$as_lineno_1" != "x$as_lineno_2" &&
4615 test "x$as_lineno_3" = "x$as_lineno_2" || {
4616 # Find who we are. Look in the path if we contain no path at all
4617 # relative or not.
4618 case $0 in
4619 *[\\/]* ) as_myself=$0 ;;
4620 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4626 done
4629 esac
4630 # We did not find ourselves, most probably we were run as `sh COMMAND'
4631 # in which case we are not to be found in the path.
4632 if test "x$as_myself" = x; then
4633 as_myself=$0
4635 if test ! -f "$as_myself"; then
4636 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4637 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4638 { (exit 1); exit 1; }; }
4640 case $CONFIG_SHELL in
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for as_base in sh bash ksh sh5; do
4648 case $as_dir in
4650 if ("$as_dir/$as_base" -c '
4651 as_lineno_1=$LINENO
4652 as_lineno_2=$LINENO
4653 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4654 test "x$as_lineno_1" != "x$as_lineno_2" &&
4655 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4656 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4657 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4658 CONFIG_SHELL=$as_dir/$as_base
4659 export CONFIG_SHELL
4660 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4661 fi;;
4662 esac
4663 done
4664 done
4666 esac
4668 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4669 # uniformly replaced by the line number. The first 'sed' inserts a
4670 # line-number line before each line; the second 'sed' does the real
4671 # work. The second script uses 'N' to pair each line-number line
4672 # with the numbered line, and appends trailing '-' during
4673 # substitution so that $LINENO is not a special case at line end.
4674 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4675 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4676 sed '=' <$as_myself |
4677 sed '
4679 s,$,-,
4680 : loop
4681 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4682 t loop
4683 s,-$,,
4684 s,^['$as_cr_digits']*\n,,
4685 ' >$as_me.lineno &&
4686 chmod +x $as_me.lineno ||
4687 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4688 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4689 { (exit 1); exit 1; }; }
4691 # Don't try to exec as it changes $[0], causing all sort of problems
4692 # (the dirname of $[0] is not the place where we might find the
4693 # original and so on. Autoconf is especially sensible to this).
4694 . ./$as_me.lineno
4695 # Exit status is that of the last command.
4696 exit
4700 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4701 *c*,-n*) ECHO_N= ECHO_C='
4702 ' ECHO_T=' ' ;;
4703 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4704 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4705 esac
4707 if expr a : '\(a\)' >/dev/null 2>&1; then
4708 as_expr=expr
4709 else
4710 as_expr=false
4713 rm -f conf$$ conf$$.exe conf$$.file
4714 echo >conf$$.file
4715 if ln -s conf$$.file conf$$ 2>/dev/null; then
4716 # We could just check for DJGPP; but this test a) works b) is more generic
4717 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4718 if test -f conf$$.exe; then
4719 # Don't use ln at all; we don't have any links
4720 as_ln_s='cp -p'
4721 else
4722 as_ln_s='ln -s'
4724 elif ln conf$$.file conf$$ 2>/dev/null; then
4725 as_ln_s=ln
4726 else
4727 as_ln_s='cp -p'
4729 rm -f conf$$ conf$$.exe conf$$.file
4731 if mkdir -p . 2>/dev/null; then
4732 as_mkdir_p=:
4733 else
4734 test -d ./-p && rmdir ./-p
4735 as_mkdir_p=false
4738 as_executable_p="test -f"
4740 # Sed expression to map a string onto a valid CPP name.
4741 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4743 # Sed expression to map a string onto a valid variable name.
4744 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4747 # IFS
4748 # We need space, tab and new line, in precisely that order.
4749 as_nl='
4751 IFS=" $as_nl"
4753 # CDPATH.
4754 $as_unset CDPATH
4756 exec 6>&1
4758 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4759 # report actual input values of CONFIG_FILES etc. instead of their
4760 # values after options handling. Logging --version etc. is OK.
4761 exec 5>>config.log
4763 echo
4764 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4765 ## Running $as_me. ##
4766 _ASBOX
4767 } >&5
4768 cat >&5 <<_CSEOF
4770 This file was extended by $as_me, which was
4771 generated by GNU Autoconf 2.59. Invocation command line was
4773 CONFIG_FILES = $CONFIG_FILES
4774 CONFIG_HEADERS = $CONFIG_HEADERS
4775 CONFIG_LINKS = $CONFIG_LINKS
4776 CONFIG_COMMANDS = $CONFIG_COMMANDS
4777 $ $0 $@
4779 _CSEOF
4780 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4781 echo >&5
4782 _ACEOF
4784 # Files that config.status was made for.
4785 if test -n "$ac_config_files"; then
4786 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4789 if test -n "$ac_config_headers"; then
4790 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4793 if test -n "$ac_config_links"; then
4794 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4797 if test -n "$ac_config_commands"; then
4798 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4801 cat >>$CONFIG_STATUS <<\_ACEOF
4803 ac_cs_usage="\
4804 \`$as_me' instantiates files from templates according to the
4805 current configuration.
4807 Usage: $0 [OPTIONS] [FILE]...
4809 -h, --help print this help, then exit
4810 -V, --version print version number, then exit
4811 -q, --quiet do not print progress messages
4812 -d, --debug don't remove temporary files
4813 --recheck update $as_me by reconfiguring in the same conditions
4814 --file=FILE[:TEMPLATE]
4815 instantiate the configuration file FILE
4816 --header=FILE[:TEMPLATE]
4817 instantiate the configuration header FILE
4819 Configuration files:
4820 $config_files
4822 Configuration headers:
4823 $config_headers
4825 Configuration commands:
4826 $config_commands
4828 Report bugs to <bug-autoconf@gnu.org>."
4829 _ACEOF
4831 cat >>$CONFIG_STATUS <<_ACEOF
4832 ac_cs_version="\\
4833 config.status
4834 configured by $0, generated by GNU Autoconf 2.59,
4835 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4837 Copyright (C) 2003 Free Software Foundation, Inc.
4838 This config.status script is free software; the Free Software Foundation
4839 gives unlimited permission to copy, distribute and modify it."
4840 srcdir=$srcdir
4841 INSTALL="$INSTALL"
4842 _ACEOF
4844 cat >>$CONFIG_STATUS <<\_ACEOF
4845 # If no file are specified by the user, then we need to provide default
4846 # value. By we need to know if files were specified by the user.
4847 ac_need_defaults=:
4848 while test $# != 0
4850 case $1 in
4851 --*=*)
4852 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4853 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4854 ac_shift=:
4857 ac_option=$1
4858 ac_optarg=$2
4859 ac_shift=shift
4861 *) # This is not an option, so the user has probably given explicit
4862 # arguments.
4863 ac_option=$1
4864 ac_need_defaults=false;;
4865 esac
4867 case $ac_option in
4868 # Handling of the options.
4869 _ACEOF
4870 cat >>$CONFIG_STATUS <<\_ACEOF
4871 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4872 ac_cs_recheck=: ;;
4873 --version | --vers* | -V )
4874 echo "$ac_cs_version"; exit 0 ;;
4875 --he | --h)
4876 # Conflict between --help and --header
4877 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4878 Try \`$0 --help' for more information." >&5
4879 echo "$as_me: error: ambiguous option: $1
4880 Try \`$0 --help' for more information." >&2;}
4881 { (exit 1); exit 1; }; };;
4882 --help | --hel | -h )
4883 echo "$ac_cs_usage"; exit 0 ;;
4884 --debug | --d* | -d )
4885 debug=: ;;
4886 --file | --fil | --fi | --f )
4887 $ac_shift
4888 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4889 ac_need_defaults=false;;
4890 --header | --heade | --head | --hea )
4891 $ac_shift
4892 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4893 ac_need_defaults=false;;
4894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4895 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4896 ac_cs_silent=: ;;
4898 # This is an error.
4899 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4900 Try \`$0 --help' for more information." >&5
4901 echo "$as_me: error: unrecognized option: $1
4902 Try \`$0 --help' for more information." >&2;}
4903 { (exit 1); exit 1; }; } ;;
4905 *) ac_config_targets="$ac_config_targets $1" ;;
4907 esac
4908 shift
4909 done
4911 ac_configure_extra_args=
4913 if $ac_cs_silent; then
4914 exec 6>/dev/null
4915 ac_configure_extra_args="$ac_configure_extra_args --silent"
4918 _ACEOF
4919 cat >>$CONFIG_STATUS <<_ACEOF
4920 if \$ac_cs_recheck; then
4921 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4922 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4925 _ACEOF
4927 cat >>$CONFIG_STATUS <<_ACEOF
4929 # INIT-COMMANDS section.
4932 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4934 _ACEOF
4938 cat >>$CONFIG_STATUS <<\_ACEOF
4939 for ac_config_target in $ac_config_targets
4941 case "$ac_config_target" in
4942 # Handling of arguments.
4943 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
4944 "libbridge/Makefile" ) CONFIG_FILES="$CONFIG_FILES libbridge/Makefile" ;;
4945 "brctl/Makefile" ) CONFIG_FILES="$CONFIG_FILES brctl/Makefile" ;;
4946 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4947 "bridge-utils.spec" ) CONFIG_FILES="$CONFIG_FILES bridge-utils.spec" ;;
4948 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4949 "libbridge/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libbridge/config.h" ;;
4950 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4951 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4952 { (exit 1); exit 1; }; };;
4953 esac
4954 done
4956 # If the user did not use the arguments to specify the items to instantiate,
4957 # then the envvar interface is used. Set only those that are not.
4958 # We use the long form for the default assignment because of an extremely
4959 # bizarre bug on SunOS 4.1.3.
4960 if $ac_need_defaults; then
4961 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4962 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4963 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4966 # Have a temporary directory for convenience. Make it in the build tree
4967 # simply because there is no reason to put it here, and in addition,
4968 # creating and moving files from /tmp can sometimes cause problems.
4969 # Create a temporary directory, and hook for its removal unless debugging.
4970 $debug ||
4972 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4973 trap '{ (exit 1); exit 1; }' 1 2 13 15
4976 # Create a (secure) tmp directory for tmp files.
4979 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4980 test -n "$tmp" && test -d "$tmp"
4981 } ||
4983 tmp=./confstat$$-$RANDOM
4984 (umask 077 && mkdir $tmp)
4985 } ||
4987 echo "$me: cannot create a temporary directory in ." >&2
4988 { (exit 1); exit 1; }
4991 _ACEOF
4993 cat >>$CONFIG_STATUS <<_ACEOF
4996 # CONFIG_FILES section.
4999 # No need to generate the scripts if there are no CONFIG_FILES.
5000 # This happens for instance when ./config.status config.h
5001 if test -n "\$CONFIG_FILES"; then
5002 # Protect against being on the right side of a sed subst in config.status.
5003 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5004 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5005 s,@SHELL@,$SHELL,;t t
5006 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5007 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5008 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5009 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5010 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5011 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5012 s,@exec_prefix@,$exec_prefix,;t t
5013 s,@prefix@,$prefix,;t t
5014 s,@program_transform_name@,$program_transform_name,;t t
5015 s,@bindir@,$bindir,;t t
5016 s,@sbindir@,$sbindir,;t t
5017 s,@libexecdir@,$libexecdir,;t t
5018 s,@datadir@,$datadir,;t t
5019 s,@sysconfdir@,$sysconfdir,;t t
5020 s,@sharedstatedir@,$sharedstatedir,;t t
5021 s,@localstatedir@,$localstatedir,;t t
5022 s,@libdir@,$libdir,;t t
5023 s,@includedir@,$includedir,;t t
5024 s,@oldincludedir@,$oldincludedir,;t t
5025 s,@infodir@,$infodir,;t t
5026 s,@mandir@,$mandir,;t t
5027 s,@build_alias@,$build_alias,;t t
5028 s,@host_alias@,$host_alias,;t t
5029 s,@target_alias@,$target_alias,;t t
5030 s,@DEFS@,$DEFS,;t t
5031 s,@ECHO_C@,$ECHO_C,;t t
5032 s,@ECHO_N@,$ECHO_N,;t t
5033 s,@ECHO_T@,$ECHO_T,;t t
5034 s,@LIBS@,$LIBS,;t t
5035 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5036 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5037 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5038 s,@CYGPATH_W@,$CYGPATH_W,;t t
5039 s,@PACKAGE@,$PACKAGE,;t t
5040 s,@VERSION@,$VERSION,;t t
5041 s,@ACLOCAL@,$ACLOCAL,;t t
5042 s,@AUTOCONF@,$AUTOCONF,;t t
5043 s,@AUTOMAKE@,$AUTOMAKE,;t t
5044 s,@AUTOHEADER@,$AUTOHEADER,;t t
5045 s,@MAKEINFO@,$MAKEINFO,;t t
5046 s,@install_sh@,$install_sh,;t t
5047 s,@STRIP@,$STRIP,;t t
5048 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5049 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5050 s,@mkdir_p@,$mkdir_p,;t t
5051 s,@AWK@,$AWK,;t t
5052 s,@SET_MAKE@,$SET_MAKE,;t t
5053 s,@am__leading_dot@,$am__leading_dot,;t t
5054 s,@AMTAR@,$AMTAR,;t t
5055 s,@am__tar@,$am__tar,;t t
5056 s,@am__untar@,$am__untar,;t t
5057 s,@CC@,$CC,;t t
5058 s,@CFLAGS@,$CFLAGS,;t t
5059 s,@LDFLAGS@,$LDFLAGS,;t t
5060 s,@CPPFLAGS@,$CPPFLAGS,;t t
5061 s,@ac_ct_CC@,$ac_ct_CC,;t t
5062 s,@EXEEXT@,$EXEEXT,;t t
5063 s,@OBJEXT@,$OBJEXT,;t t
5064 s,@DEPDIR@,$DEPDIR,;t t
5065 s,@am__include@,$am__include,;t t
5066 s,@am__quote@,$am__quote,;t t
5067 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5068 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5069 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5070 s,@CCDEPMODE@,$CCDEPMODE,;t t
5071 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5072 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5073 s,@RANLIB@,$RANLIB,;t t
5074 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5075 s,@CPP@,$CPP,;t t
5076 s,@EGREP@,$EGREP,;t t
5077 s,@LIBOBJS@,$LIBOBJS,;t t
5078 s,@KERNEL_HEADERS@,$KERNEL_HEADERS,;t t
5079 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5080 CEOF
5082 _ACEOF
5084 cat >>$CONFIG_STATUS <<\_ACEOF
5085 # Split the substitutions into bite-sized pieces for seds with
5086 # small command number limits, like on Digital OSF/1 and HP-UX.
5087 ac_max_sed_lines=48
5088 ac_sed_frag=1 # Number of current file.
5089 ac_beg=1 # First line for current file.
5090 ac_end=$ac_max_sed_lines # Line after last line for current file.
5091 ac_more_lines=:
5092 ac_sed_cmds=
5093 while $ac_more_lines; do
5094 if test $ac_beg -gt 1; then
5095 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5096 else
5097 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5099 if test ! -s $tmp/subs.frag; then
5100 ac_more_lines=false
5101 else
5102 # The purpose of the label and of the branching condition is to
5103 # speed up the sed processing (if there are no `@' at all, there
5104 # is no need to browse any of the substitutions).
5105 # These are the two extra sed commands mentioned above.
5106 (echo ':t
5107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5108 if test -z "$ac_sed_cmds"; then
5109 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5110 else
5111 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5113 ac_sed_frag=`expr $ac_sed_frag + 1`
5114 ac_beg=$ac_end
5115 ac_end=`expr $ac_end + $ac_max_sed_lines`
5117 done
5118 if test -z "$ac_sed_cmds"; then
5119 ac_sed_cmds=cat
5121 fi # test -n "$CONFIG_FILES"
5123 _ACEOF
5124 cat >>$CONFIG_STATUS <<\_ACEOF
5125 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5126 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5127 case $ac_file in
5128 - | *:- | *:-:* ) # input from stdin
5129 cat >$tmp/stdin
5130 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5131 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5132 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5133 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5134 * ) ac_file_in=$ac_file.in ;;
5135 esac
5137 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5138 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5139 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5140 X"$ac_file" : 'X\(//\)[^/]' \| \
5141 X"$ac_file" : 'X\(//\)$' \| \
5142 X"$ac_file" : 'X\(/\)' \| \
5143 . : '\(.\)' 2>/dev/null ||
5144 echo X"$ac_file" |
5145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5147 /^X\(\/\/\)$/{ s//\1/; q; }
5148 /^X\(\/\).*/{ s//\1/; q; }
5149 s/.*/./; q'`
5150 { if $as_mkdir_p; then
5151 mkdir -p "$ac_dir"
5152 else
5153 as_dir="$ac_dir"
5154 as_dirs=
5155 while test ! -d "$as_dir"; do
5156 as_dirs="$as_dir $as_dirs"
5157 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5159 X"$as_dir" : 'X\(//\)[^/]' \| \
5160 X"$as_dir" : 'X\(//\)$' \| \
5161 X"$as_dir" : 'X\(/\)' \| \
5162 . : '\(.\)' 2>/dev/null ||
5163 echo X"$as_dir" |
5164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5166 /^X\(\/\/\)$/{ s//\1/; q; }
5167 /^X\(\/\).*/{ s//\1/; q; }
5168 s/.*/./; q'`
5169 done
5170 test ! -n "$as_dirs" || mkdir $as_dirs
5171 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5172 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5173 { (exit 1); exit 1; }; }; }
5175 ac_builddir=.
5177 if test "$ac_dir" != .; then
5178 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5179 # A "../" for each directory in $ac_dir_suffix.
5180 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5181 else
5182 ac_dir_suffix= ac_top_builddir=
5185 case $srcdir in
5186 .) # No --srcdir option. We are building in place.
5187 ac_srcdir=.
5188 if test -z "$ac_top_builddir"; then
5189 ac_top_srcdir=.
5190 else
5191 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5192 fi ;;
5193 [\\/]* | ?:[\\/]* ) # Absolute path.
5194 ac_srcdir=$srcdir$ac_dir_suffix;
5195 ac_top_srcdir=$srcdir ;;
5196 *) # Relative path.
5197 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5198 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5199 esac
5201 # Do not use `cd foo && pwd` to compute absolute paths, because
5202 # the directories may not exist.
5203 case `pwd` in
5204 .) ac_abs_builddir="$ac_dir";;
5206 case "$ac_dir" in
5207 .) ac_abs_builddir=`pwd`;;
5208 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5209 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5210 esac;;
5211 esac
5212 case $ac_abs_builddir in
5213 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5215 case ${ac_top_builddir}. in
5216 .) ac_abs_top_builddir=$ac_abs_builddir;;
5217 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5218 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5219 esac;;
5220 esac
5221 case $ac_abs_builddir in
5222 .) ac_abs_srcdir=$ac_srcdir;;
5224 case $ac_srcdir in
5225 .) ac_abs_srcdir=$ac_abs_builddir;;
5226 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5227 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5228 esac;;
5229 esac
5230 case $ac_abs_builddir in
5231 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5233 case $ac_top_srcdir in
5234 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5235 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5236 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5237 esac;;
5238 esac
5241 case $INSTALL in
5242 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5243 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5244 esac
5246 if test x"$ac_file" != x-; then
5247 { echo "$as_me:$LINENO: creating $ac_file" >&5
5248 echo "$as_me: creating $ac_file" >&6;}
5249 rm -f "$ac_file"
5251 # Let's still pretend it is `configure' which instantiates (i.e., don't
5252 # use $as_me), people would be surprised to read:
5253 # /* config.h. Generated by config.status. */
5254 if test x"$ac_file" = x-; then
5255 configure_input=
5256 else
5257 configure_input="$ac_file. "
5259 configure_input=$configure_input"Generated from `echo $ac_file_in |
5260 sed 's,.*/,,'` by configure."
5262 # First look for the input files in the build tree, otherwise in the
5263 # src tree.
5264 ac_file_inputs=`IFS=:
5265 for f in $ac_file_in; do
5266 case $f in
5267 -) echo $tmp/stdin ;;
5268 [\\/$]*)
5269 # Absolute (can't be DOS-style, as IFS=:)
5270 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5271 echo "$as_me: error: cannot find input file: $f" >&2;}
5272 { (exit 1); exit 1; }; }
5273 echo "$f";;
5274 *) # Relative
5275 if test -f "$f"; then
5276 # Build tree
5277 echo "$f"
5278 elif test -f "$srcdir/$f"; then
5279 # Source tree
5280 echo "$srcdir/$f"
5281 else
5282 # /dev/null tree
5283 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5284 echo "$as_me: error: cannot find input file: $f" >&2;}
5285 { (exit 1); exit 1; }; }
5286 fi;;
5287 esac
5288 done` || { (exit 1); exit 1; }
5289 _ACEOF
5290 cat >>$CONFIG_STATUS <<_ACEOF
5291 sed "$ac_vpsub
5292 $extrasub
5293 _ACEOF
5294 cat >>$CONFIG_STATUS <<\_ACEOF
5296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5297 s,@configure_input@,$configure_input,;t t
5298 s,@srcdir@,$ac_srcdir,;t t
5299 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5300 s,@top_srcdir@,$ac_top_srcdir,;t t
5301 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5302 s,@builddir@,$ac_builddir,;t t
5303 s,@abs_builddir@,$ac_abs_builddir,;t t
5304 s,@top_builddir@,$ac_top_builddir,;t t
5305 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5306 s,@INSTALL@,$ac_INSTALL,;t t
5307 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5308 rm -f $tmp/stdin
5309 if test x"$ac_file" != x-; then
5310 mv $tmp/out $ac_file
5311 else
5312 cat $tmp/out
5313 rm -f $tmp/out
5316 done
5317 _ACEOF
5318 cat >>$CONFIG_STATUS <<\_ACEOF
5321 # CONFIG_HEADER section.
5324 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5325 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5327 # ac_d sets the value in "#define NAME VALUE" lines.
5328 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5329 ac_dB='[ ].*$,\1#\2'
5330 ac_dC=' '
5331 ac_dD=',;t'
5332 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5333 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5334 ac_uB='$,\1#\2define\3'
5335 ac_uC=' '
5336 ac_uD=',;t'
5338 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5339 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5340 case $ac_file in
5341 - | *:- | *:-:* ) # input from stdin
5342 cat >$tmp/stdin
5343 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5344 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5345 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5346 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5347 * ) ac_file_in=$ac_file.in ;;
5348 esac
5350 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5351 echo "$as_me: creating $ac_file" >&6;}
5353 # First look for the input files in the build tree, otherwise in the
5354 # src tree.
5355 ac_file_inputs=`IFS=:
5356 for f in $ac_file_in; do
5357 case $f in
5358 -) echo $tmp/stdin ;;
5359 [\\/$]*)
5360 # Absolute (can't be DOS-style, as IFS=:)
5361 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5362 echo "$as_me: error: cannot find input file: $f" >&2;}
5363 { (exit 1); exit 1; }; }
5364 # Do quote $f, to prevent DOS paths from being IFS'd.
5365 echo "$f";;
5366 *) # Relative
5367 if test -f "$f"; then
5368 # Build tree
5369 echo "$f"
5370 elif test -f "$srcdir/$f"; then
5371 # Source tree
5372 echo "$srcdir/$f"
5373 else
5374 # /dev/null tree
5375 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5376 echo "$as_me: error: cannot find input file: $f" >&2;}
5377 { (exit 1); exit 1; }; }
5378 fi;;
5379 esac
5380 done` || { (exit 1); exit 1; }
5381 # Remove the trailing spaces.
5382 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5384 _ACEOF
5386 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5387 # `conftest.undefs', that substitutes the proper values into
5388 # config.h.in to produce config.h. The first handles `#define'
5389 # templates, and the second `#undef' templates.
5390 # And first: Protect against being on the right side of a sed subst in
5391 # config.status. Protect against being in an unquoted here document
5392 # in config.status.
5393 rm -f conftest.defines conftest.undefs
5394 # Using a here document instead of a string reduces the quoting nightmare.
5395 # Putting comments in sed scripts is not portable.
5397 # `end' is used to avoid that the second main sed command (meant for
5398 # 0-ary CPP macros) applies to n-ary macro definitions.
5399 # See the Autoconf documentation for `clear'.
5400 cat >confdef2sed.sed <<\_ACEOF
5401 s/[\\&,]/\\&/g
5402 s,[\\$`],\\&,g
5403 t clear
5404 : clear
5405 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5406 t end
5407 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5408 : end
5409 _ACEOF
5410 # If some macros were called several times there might be several times
5411 # the same #defines, which is useless. Nevertheless, we may not want to
5412 # sort them, since we want the *last* AC-DEFINE to be honored.
5413 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5414 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5415 rm -f confdef2sed.sed
5417 # This sed command replaces #undef with comments. This is necessary, for
5418 # example, in the case of _POSIX_SOURCE, which is predefined and required
5419 # on some systems where configure will not decide to define it.
5420 cat >>conftest.undefs <<\_ACEOF
5421 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5422 _ACEOF
5424 # Break up conftest.defines because some shells have a limit on the size
5425 # of here documents, and old seds have small limits too (100 cmds).
5426 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5427 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5428 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5429 echo ' :' >>$CONFIG_STATUS
5430 rm -f conftest.tail
5431 while grep . conftest.defines >/dev/null
5433 # Write a limited-size here document to $tmp/defines.sed.
5434 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5435 # Speed up: don't consider the non `#define' lines.
5436 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5437 # Work around the forget-to-reset-the-flag bug.
5438 echo 't clr' >>$CONFIG_STATUS
5439 echo ': clr' >>$CONFIG_STATUS
5440 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5441 echo 'CEOF
5442 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5443 rm -f $tmp/in
5444 mv $tmp/out $tmp/in
5445 ' >>$CONFIG_STATUS
5446 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5447 rm -f conftest.defines
5448 mv conftest.tail conftest.defines
5449 done
5450 rm -f conftest.defines
5451 echo ' fi # grep' >>$CONFIG_STATUS
5452 echo >>$CONFIG_STATUS
5454 # Break up conftest.undefs because some shells have a limit on the size
5455 # of here documents, and old seds have small limits too (100 cmds).
5456 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5457 rm -f conftest.tail
5458 while grep . conftest.undefs >/dev/null
5460 # Write a limited-size here document to $tmp/undefs.sed.
5461 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5462 # Speed up: don't consider the non `#undef'
5463 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5464 # Work around the forget-to-reset-the-flag bug.
5465 echo 't clr' >>$CONFIG_STATUS
5466 echo ': clr' >>$CONFIG_STATUS
5467 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5468 echo 'CEOF
5469 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5470 rm -f $tmp/in
5471 mv $tmp/out $tmp/in
5472 ' >>$CONFIG_STATUS
5473 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5474 rm -f conftest.undefs
5475 mv conftest.tail conftest.undefs
5476 done
5477 rm -f conftest.undefs
5479 cat >>$CONFIG_STATUS <<\_ACEOF
5480 # Let's still pretend it is `configure' which instantiates (i.e., don't
5481 # use $as_me), people would be surprised to read:
5482 # /* config.h. Generated by config.status. */
5483 if test x"$ac_file" = x-; then
5484 echo "/* Generated by configure. */" >$tmp/config.h
5485 else
5486 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5488 cat $tmp/in >>$tmp/config.h
5489 rm -f $tmp/in
5490 if test x"$ac_file" != x-; then
5491 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5492 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5493 echo "$as_me: $ac_file is unchanged" >&6;}
5494 else
5495 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5496 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5497 X"$ac_file" : 'X\(//\)[^/]' \| \
5498 X"$ac_file" : 'X\(//\)$' \| \
5499 X"$ac_file" : 'X\(/\)' \| \
5500 . : '\(.\)' 2>/dev/null ||
5501 echo X"$ac_file" |
5502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5504 /^X\(\/\/\)$/{ s//\1/; q; }
5505 /^X\(\/\).*/{ s//\1/; q; }
5506 s/.*/./; q'`
5507 { if $as_mkdir_p; then
5508 mkdir -p "$ac_dir"
5509 else
5510 as_dir="$ac_dir"
5511 as_dirs=
5512 while test ! -d "$as_dir"; do
5513 as_dirs="$as_dir $as_dirs"
5514 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5515 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5516 X"$as_dir" : 'X\(//\)[^/]' \| \
5517 X"$as_dir" : 'X\(//\)$' \| \
5518 X"$as_dir" : 'X\(/\)' \| \
5519 . : '\(.\)' 2>/dev/null ||
5520 echo X"$as_dir" |
5521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5523 /^X\(\/\/\)$/{ s//\1/; q; }
5524 /^X\(\/\).*/{ s//\1/; q; }
5525 s/.*/./; q'`
5526 done
5527 test ! -n "$as_dirs" || mkdir $as_dirs
5528 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5529 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5530 { (exit 1); exit 1; }; }; }
5532 rm -f $ac_file
5533 mv $tmp/config.h $ac_file
5535 else
5536 cat $tmp/config.h
5537 rm -f $tmp/config.h
5539 # Compute $ac_file's index in $config_headers.
5540 _am_stamp_count=1
5541 for _am_header in $config_headers :; do
5542 case $_am_header in
5543 $ac_file | $ac_file:* )
5544 break ;;
5546 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5547 esac
5548 done
5549 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
5550 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5551 X$ac_file : 'X\(//\)[^/]' \| \
5552 X$ac_file : 'X\(//\)$' \| \
5553 X$ac_file : 'X\(/\)' \| \
5554 . : '\(.\)' 2>/dev/null ||
5555 echo X$ac_file |
5556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5558 /^X\(\/\/\)$/{ s//\1/; q; }
5559 /^X\(\/\).*/{ s//\1/; q; }
5560 s/.*/./; q'`/stamp-h$_am_stamp_count
5561 done
5562 _ACEOF
5563 cat >>$CONFIG_STATUS <<\_ACEOF
5566 # CONFIG_COMMANDS section.
5568 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5569 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5570 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5571 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5572 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5573 X"$ac_dest" : 'X\(//\)[^/]' \| \
5574 X"$ac_dest" : 'X\(//\)$' \| \
5575 X"$ac_dest" : 'X\(/\)' \| \
5576 . : '\(.\)' 2>/dev/null ||
5577 echo X"$ac_dest" |
5578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5580 /^X\(\/\/\)$/{ s//\1/; q; }
5581 /^X\(\/\).*/{ s//\1/; q; }
5582 s/.*/./; q'`
5583 { if $as_mkdir_p; then
5584 mkdir -p "$ac_dir"
5585 else
5586 as_dir="$ac_dir"
5587 as_dirs=
5588 while test ! -d "$as_dir"; do
5589 as_dirs="$as_dir $as_dirs"
5590 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5591 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5592 X"$as_dir" : 'X\(//\)[^/]' \| \
5593 X"$as_dir" : 'X\(//\)$' \| \
5594 X"$as_dir" : 'X\(/\)' \| \
5595 . : '\(.\)' 2>/dev/null ||
5596 echo X"$as_dir" |
5597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5598 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5599 /^X\(\/\/\)$/{ s//\1/; q; }
5600 /^X\(\/\).*/{ s//\1/; q; }
5601 s/.*/./; q'`
5602 done
5603 test ! -n "$as_dirs" || mkdir $as_dirs
5604 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5605 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5606 { (exit 1); exit 1; }; }; }
5608 ac_builddir=.
5610 if test "$ac_dir" != .; then
5611 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5612 # A "../" for each directory in $ac_dir_suffix.
5613 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5614 else
5615 ac_dir_suffix= ac_top_builddir=
5618 case $srcdir in
5619 .) # No --srcdir option. We are building in place.
5620 ac_srcdir=.
5621 if test -z "$ac_top_builddir"; then
5622 ac_top_srcdir=.
5623 else
5624 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5625 fi ;;
5626 [\\/]* | ?:[\\/]* ) # Absolute path.
5627 ac_srcdir=$srcdir$ac_dir_suffix;
5628 ac_top_srcdir=$srcdir ;;
5629 *) # Relative path.
5630 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5631 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5632 esac
5634 # Do not use `cd foo && pwd` to compute absolute paths, because
5635 # the directories may not exist.
5636 case `pwd` in
5637 .) ac_abs_builddir="$ac_dir";;
5639 case "$ac_dir" in
5640 .) ac_abs_builddir=`pwd`;;
5641 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5642 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5643 esac;;
5644 esac
5645 case $ac_abs_builddir in
5646 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5648 case ${ac_top_builddir}. in
5649 .) ac_abs_top_builddir=$ac_abs_builddir;;
5650 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5651 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5652 esac;;
5653 esac
5654 case $ac_abs_builddir in
5655 .) ac_abs_srcdir=$ac_srcdir;;
5657 case $ac_srcdir in
5658 .) ac_abs_srcdir=$ac_abs_builddir;;
5659 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5660 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5661 esac;;
5662 esac
5663 case $ac_abs_builddir in
5664 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5666 case $ac_top_srcdir in
5667 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5668 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5669 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5670 esac;;
5671 esac
5674 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5675 echo "$as_me: executing $ac_dest commands" >&6;}
5676 case $ac_dest in
5677 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5678 # Strip MF so we end up with the name of the file.
5679 mf=`echo "$mf" | sed -e 's/:.*$//'`
5680 # Check whether this is an Automake generated Makefile or not.
5681 # We used to match only the files named `Makefile.in', but
5682 # some people rename them; so instead we look at the file content.
5683 # Grep'ing the first line is not enough: some people post-process
5684 # each Makefile.in and add a new line on top of each file to say so.
5685 # So let's grep whole file.
5686 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5687 dirpart=`(dirname "$mf") 2>/dev/null ||
5688 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5689 X"$mf" : 'X\(//\)[^/]' \| \
5690 X"$mf" : 'X\(//\)$' \| \
5691 X"$mf" : 'X\(/\)' \| \
5692 . : '\(.\)' 2>/dev/null ||
5693 echo X"$mf" |
5694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5696 /^X\(\/\/\)$/{ s//\1/; q; }
5697 /^X\(\/\).*/{ s//\1/; q; }
5698 s/.*/./; q'`
5699 else
5700 continue
5702 # Extract the definition of DEPDIR, am__include, and am__quote
5703 # from the Makefile without running `make'.
5704 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5705 test -z "$DEPDIR" && continue
5706 am__include=`sed -n 's/^am__include = //p' < "$mf"`
5707 test -z "am__include" && continue
5708 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5709 # When using ansi2knr, U may be empty or an underscore; expand it
5710 U=`sed -n 's/^U = //p' < "$mf"`
5711 # Find all dependency output files, they are included files with
5712 # $(DEPDIR) in their names. We invoke sed twice because it is the
5713 # simplest approach to changing $(DEPDIR) to its actual value in the
5714 # expansion.
5715 for file in `sed -n "
5716 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5717 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5718 # Make sure the directory exists.
5719 test -f "$dirpart/$file" && continue
5720 fdir=`(dirname "$file") 2>/dev/null ||
5721 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5722 X"$file" : 'X\(//\)[^/]' \| \
5723 X"$file" : 'X\(//\)$' \| \
5724 X"$file" : 'X\(/\)' \| \
5725 . : '\(.\)' 2>/dev/null ||
5726 echo X"$file" |
5727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5729 /^X\(\/\/\)$/{ s//\1/; q; }
5730 /^X\(\/\).*/{ s//\1/; q; }
5731 s/.*/./; q'`
5732 { if $as_mkdir_p; then
5733 mkdir -p $dirpart/$fdir
5734 else
5735 as_dir=$dirpart/$fdir
5736 as_dirs=
5737 while test ! -d "$as_dir"; do
5738 as_dirs="$as_dir $as_dirs"
5739 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5741 X"$as_dir" : 'X\(//\)[^/]' \| \
5742 X"$as_dir" : 'X\(//\)$' \| \
5743 X"$as_dir" : 'X\(/\)' \| \
5744 . : '\(.\)' 2>/dev/null ||
5745 echo X"$as_dir" |
5746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5748 /^X\(\/\/\)$/{ s//\1/; q; }
5749 /^X\(\/\).*/{ s//\1/; q; }
5750 s/.*/./; q'`
5751 done
5752 test ! -n "$as_dirs" || mkdir $as_dirs
5753 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5754 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5755 { (exit 1); exit 1; }; }; }
5757 # echo "creating $dirpart/$file"
5758 echo '# dummy' > "$dirpart/$file"
5759 done
5760 done
5762 esac
5763 done
5764 _ACEOF
5766 cat >>$CONFIG_STATUS <<\_ACEOF
5768 { (exit 0); exit 0; }
5769 _ACEOF
5770 chmod +x $CONFIG_STATUS
5771 ac_clean_files=$ac_clean_files_save
5774 # configure is writing to config.log, and then calls config.status.
5775 # config.status does its own redirection, appending to config.log.
5776 # Unfortunately, on DOS this fails, as config.log is still kept open
5777 # by configure, so config.status won't be able to write to it; its
5778 # output is simply discarded. So we exec the FD to /dev/null,
5779 # effectively closing config.log, so it can be properly (re)opened and
5780 # appended to by config.status. When coming back to configure, we
5781 # need to make the FD available again.
5782 if test "$no_create" != yes; then
5783 ac_cs_success=:
5784 ac_config_status_args=
5785 test "$silent" = yes &&
5786 ac_config_status_args="$ac_config_status_args --quiet"
5787 exec 5>/dev/null
5788 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5789 exec 5>>config.log
5790 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5791 # would make configure fail if this is the last instruction.
5792 $ac_cs_success || { (exit 1); exit 1; }