Debian Codegraph @

configure

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