Debian Codegraph @

configure

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