Annotation of embedaddon/libnet/autom4te.cache/output.0, revision 1.1.1.1
1.1 misho 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/libnet_build_ip.c"
274: # Factoring default headers for most tests.
275: ac_includes_default="\
276: #include <stdio.h>
277: #if HAVE_SYS_TYPES_H
278: # include <sys/types.h>
279: #endif
280: #if HAVE_SYS_STAT_H
281: # include <sys/stat.h>
282: #endif
283: #if STDC_HEADERS
284: # include <stdlib.h>
285: # include <stddef.h>
286: #else
287: # if HAVE_STDLIB_H
288: # include <stdlib.h>
289: # endif
290: #endif
291: #if HAVE_STRING_H
292: # if !STDC_HEADERS && HAVE_MEMORY_H
293: # include <memory.h>
294: # endif
295: # include <string.h>
296: #endif
297: #if HAVE_STRINGS_H
298: # include <strings.h>
299: #endif
300: #if HAVE_INTTYPES_H
301: # include <inttypes.h>
302: #else
303: # if HAVE_STDINT_H
304: # include <stdint.h>
305: # endif
306: #endif
307: #if HAVE_UNISTD_H
308: # include <unistd.h>
309: #endif"
310:
311: ac_default_prefix=/usr
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE RANLIB ac_ct_RANLIB CPP EGREP ENDIANESS LIBNET_VERSION HAVE_PACKET_SOCKET ADDITIONAL_LIBS LIBNET_CONFIG_DEFINES LIBNET_CONFIG_LIBS LIBNET_CONFIG_CFLAGS LIB@&t@OBJS 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: --target=TARGET configure for building compilers for TARGET [HOST]
843: _ACEOF
844: fi
845:
846: if test -n "$ac_init_help"; then
847:
848: cat <<\_ACEOF
849:
850: Optional Features:
851: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853: --enable-maintainer-mode enable make rules and dependencies not useful
854: (and sometimes confusing) to the casual installer
855: --disable-dependency-tracking Speeds up one-time builds
856: --enable-dependency-tracking Do not reject slow dependency extractors
857:
858: Some influential environment variables:
859: CC C compiler command
860: CFLAGS C compiler flags
861: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
862: nonstandard directory <lib dir>
863: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
864: headers in a nonstandard directory <include dir>
865: CPP C preprocessor
866:
867: Use these variables to override the choices made by `configure' or to help
868: it to find libraries and programs with nonstandard names/locations.
869:
870: _ACEOF
871: fi
872:
873: if test "$ac_init_help" = "recursive"; then
874: # If there are subdirs, report their specific --help.
875: ac_popdir=`pwd`
876: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877: test -d $ac_dir || continue
878: ac_builddir=.
879:
880: if test "$ac_dir" != .; then
881: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882: # A "../" for each directory in $ac_dir_suffix.
883: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884: else
885: ac_dir_suffix= ac_top_builddir=
886: fi
887:
888: case $srcdir in
889: .) # No --srcdir option. We are building in place.
890: ac_srcdir=.
891: if test -z "$ac_top_builddir"; then
892: ac_top_srcdir=.
893: else
894: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895: fi ;;
896: [\\/]* | ?:[\\/]* ) # Absolute path.
897: ac_srcdir=$srcdir$ac_dir_suffix;
898: ac_top_srcdir=$srcdir ;;
899: *) # Relative path.
900: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901: ac_top_srcdir=$ac_top_builddir$srcdir ;;
902: esac
903: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
904: # absolute.
905: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
906: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
907: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
908: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
909:
910: cd $ac_dir
911: # Check for guested configure; otherwise get Cygnus style configure.
912: if test -f $ac_srcdir/configure.gnu; then
913: echo
914: $SHELL $ac_srcdir/configure.gnu --help=recursive
915: elif test -f $ac_srcdir/configure; then
916: echo
917: $SHELL $ac_srcdir/configure --help=recursive
918: elif test -f $ac_srcdir/configure.ac ||
919: test -f $ac_srcdir/configure.in; then
920: echo
921: $ac_configure --help
922: else
923: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
924: fi
925: cd $ac_popdir
926: done
927: fi
928:
929: test -n "$ac_init_help" && exit 0
930: if $ac_init_version; then
931: cat <<\_ACEOF
932:
933: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
934: Free Software Foundation, Inc.
935: This configure script is free software; the Free Software Foundation
936: gives unlimited permission to copy, distribute and modify it.
937: _ACEOF
938: exit 0
939: fi
940: exec 5>config.log
941: cat >&5 <<_ACEOF
942: This file contains any messages produced by compilers while
943: running configure, to aid debugging if configure makes a mistake.
944:
945: It was created by $as_me, which was
946: generated by GNU Autoconf 2.57. Invocation command line was
947:
948: $ $0 $@
949:
950: _ACEOF
951: {
952: cat <<_ASUNAME
953: @%:@@%:@ --------- @%:@@%:@
954: @%:@@%:@ Platform. @%:@@%:@
955: @%:@@%:@ --------- @%:@@%:@
956:
957: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
958: uname -m = `(uname -m) 2>/dev/null || echo unknown`
959: uname -r = `(uname -r) 2>/dev/null || echo unknown`
960: uname -s = `(uname -s) 2>/dev/null || echo unknown`
961: uname -v = `(uname -v) 2>/dev/null || echo unknown`
962:
963: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
964: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
965:
966: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
967: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
968: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
969: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
970: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
971: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
972: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
973:
974: _ASUNAME
975:
976: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
977: for as_dir in $PATH
978: do
979: IFS=$as_save_IFS
980: test -z "$as_dir" && as_dir=.
981: echo "PATH: $as_dir"
982: done
983:
984: } >&5
985:
986: cat >&5 <<_ACEOF
987:
988:
989: @%:@@%:@ ----------- @%:@@%:@
990: @%:@@%:@ Core tests. @%:@@%:@
991: @%:@@%:@ ----------- @%:@@%:@
992:
993: _ACEOF
994:
995:
996: # Keep a trace of the command line.
997: # Strip out --no-create and --no-recursion so they do not pile up.
998: # Strip out --silent because we don't want to record it for future runs.
999: # Also quote any args containing shell meta-characters.
1000: # Make two passes to allow for proper duplicate-argument suppression.
1001: ac_configure_args=
1002: ac_configure_args0=
1003: ac_configure_args1=
1004: ac_sep=
1005: ac_must_keep_next=false
1006: for ac_pass in 1 2
1007: do
1008: for ac_arg
1009: do
1010: case $ac_arg in
1011: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1012: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013: | -silent | --silent | --silen | --sile | --sil)
1014: continue ;;
1015: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1016: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1017: esac
1018: case $ac_pass in
1019: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1020: 2)
1021: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1022: if test $ac_must_keep_next = true; then
1023: ac_must_keep_next=false # Got value, back to normal.
1024: else
1025: case $ac_arg in
1026: *=* | --config-cache | -C | -disable-* | --disable-* \
1027: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1028: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1029: | -with-* | --with-* | -without-* | --without-* | --x)
1030: case "$ac_configure_args0 " in
1031: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1032: esac
1033: ;;
1034: -* ) ac_must_keep_next=true ;;
1035: esac
1036: fi
1037: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1038: # Get rid of the leading space.
1039: ac_sep=" "
1040: ;;
1041: esac
1042: done
1043: done
1044: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1045: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1046:
1047: # When interrupted or exit'd, cleanup temporary files, and complete
1048: # config.log. We remove comments because anyway the quotes in there
1049: # would cause problems or look ugly.
1050: # WARNING: Be sure not to use single quotes in there, as some shells,
1051: # such as our DU 5.0 friend, will then `close' the trap.
1052: trap 'exit_status=$?
1053: # Save into config.log some information that might help in debugging.
1054: {
1055: echo
1056:
1057: cat <<\_ASBOX
1058: @%:@@%:@ ---------------- @%:@@%:@
1059: @%:@@%:@ Cache variables. @%:@@%:@
1060: @%:@@%:@ ---------------- @%:@@%:@
1061: _ASBOX
1062: echo
1063: # The following way of writing the cache mishandles newlines in values,
1064: {
1065: (set) 2>&1 |
1066: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1067: *ac_space=\ *)
1068: sed -n \
1069: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1070: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071: ;;
1072: *)
1073: sed -n \
1074: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075: ;;
1076: esac;
1077: }
1078: echo
1079:
1080: cat <<\_ASBOX
1081: @%:@@%:@ ----------------- @%:@@%:@
1082: @%:@@%:@ Output variables. @%:@@%:@
1083: @%:@@%:@ ----------------- @%:@@%:@
1084: _ASBOX
1085: echo
1086: for ac_var in $ac_subst_vars
1087: do
1088: eval ac_val=$`echo $ac_var`
1089: echo "$ac_var='"'"'$ac_val'"'"'"
1090: done | sort
1091: echo
1092:
1093: if test -n "$ac_subst_files"; then
1094: cat <<\_ASBOX
1095: @%:@@%:@ ------------- @%:@@%:@
1096: @%:@@%:@ Output files. @%:@@%:@
1097: @%:@@%:@ ------------- @%:@@%:@
1098: _ASBOX
1099: echo
1100: for ac_var in $ac_subst_files
1101: do
1102: eval ac_val=$`echo $ac_var`
1103: echo "$ac_var='"'"'$ac_val'"'"'"
1104: done | sort
1105: echo
1106: fi
1107:
1108: if test -s confdefs.h; then
1109: cat <<\_ASBOX
1110: @%:@@%:@ ----------- @%:@@%:@
1111: @%:@@%:@ confdefs.h. @%:@@%:@
1112: @%:@@%:@ ----------- @%:@@%:@
1113: _ASBOX
1114: echo
1115: sed "/^$/d" confdefs.h | sort
1116: echo
1117: fi
1118: test "$ac_signal" != 0 &&
1119: echo "$as_me: caught signal $ac_signal"
1120: echo "$as_me: exit $exit_status"
1121: } >&5
1122: rm -f core core.* *.core &&
1123: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1124: exit $exit_status
1125: ' 0
1126: for ac_signal in 1 2 13 15; do
1127: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1128: done
1129: ac_signal=0
1130:
1131: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1132: rm -rf conftest* confdefs.h
1133: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1134: echo >confdefs.h
1135:
1136: # Predefined preprocessor variables.
1137:
1138: cat >>confdefs.h <<_ACEOF
1139: @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1140: _ACEOF
1141:
1142:
1143: cat >>confdefs.h <<_ACEOF
1144: @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1145: _ACEOF
1146:
1147:
1148: cat >>confdefs.h <<_ACEOF
1149: @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1150: _ACEOF
1151:
1152:
1153: cat >>confdefs.h <<_ACEOF
1154: @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1155: _ACEOF
1156:
1157:
1158: cat >>confdefs.h <<_ACEOF
1159: @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1160: _ACEOF
1161:
1162:
1163: # Let the site file select an alternate cache file if it wants to.
1164: # Prefer explicitly selected file to automatically selected ones.
1165: if test -z "$CONFIG_SITE"; then
1166: if test "x$prefix" != xNONE; then
1167: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1168: else
1169: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1170: fi
1171: fi
1172: for ac_site_file in $CONFIG_SITE; do
1173: if test -r "$ac_site_file"; then
1174: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1175: echo "$as_me: loading site script $ac_site_file" >&6;}
1176: sed 's/^/| /' "$ac_site_file" >&5
1177: . "$ac_site_file"
1178: fi
1179: done
1180:
1181: if test -r "$cache_file"; then
1182: # Some versions of bash will fail to source /dev/null (special
1183: # files actually), so we avoid doing that.
1184: if test -f "$cache_file"; then
1185: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1186: echo "$as_me: loading cache $cache_file" >&6;}
1187: case $cache_file in
1188: [\\/]* | ?:[\\/]* ) . $cache_file;;
1189: *) . ./$cache_file;;
1190: esac
1191: fi
1192: else
1193: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1194: echo "$as_me: creating cache $cache_file" >&6;}
1195: >$cache_file
1196: fi
1197:
1198: # Check that the precious variables saved in the cache have kept the same
1199: # value.
1200: ac_cache_corrupted=false
1201: for ac_var in `(set) 2>&1 |
1202: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1203: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1204: eval ac_new_set=\$ac_env_${ac_var}_set
1205: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1206: eval ac_new_val="\$ac_env_${ac_var}_value"
1207: case $ac_old_set,$ac_new_set in
1208: set,)
1209: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1210: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1211: ac_cache_corrupted=: ;;
1212: ,set)
1213: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1214: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1215: ac_cache_corrupted=: ;;
1216: ,);;
1217: *)
1218: if test "x$ac_old_val" != "x$ac_new_val"; then
1219: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1220: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1221: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1222: echo "$as_me: former value: $ac_old_val" >&2;}
1223: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1224: echo "$as_me: current value: $ac_new_val" >&2;}
1225: ac_cache_corrupted=:
1226: fi;;
1227: esac
1228: # Pass precious variables to config.status.
1229: if test "$ac_new_set" = set; then
1230: case $ac_new_val in
1231: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1233: *) ac_arg=$ac_var=$ac_new_val ;;
1234: esac
1235: case " $ac_configure_args " in
1236: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1237: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1238: esac
1239: fi
1240: done
1241: if $ac_cache_corrupted; then
1242: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1243: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1244: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1245: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1246: { (exit 1); exit 1; }; }
1247: fi
1248:
1249: ac_ext=c
1250: ac_cpp='$CPP $CPPFLAGS'
1251: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1252: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1253: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1254:
1255:
1256:
1257:
1258:
1259:
1260:
1261:
1262:
1263:
1264:
1265:
1266:
1267:
1268:
1269:
1270:
1271:
1272:
1273: LIBNET_VERSION=`cat VERSION`
1274: echo "$as_me:$LINENO: result: beginning autoconfiguration process for libnet-$LIBNET_VERSION..." >&5
1275: echo "${ECHO_T}beginning autoconfiguration process for libnet-$LIBNET_VERSION..." >&6
1276: ac_aux_dir=
1277: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1278: if test -f $ac_dir/install-sh; then
1279: ac_aux_dir=$ac_dir
1280: ac_install_sh="$ac_aux_dir/install-sh -c"
1281: break
1282: elif test -f $ac_dir/install.sh; then
1283: ac_aux_dir=$ac_dir
1284: ac_install_sh="$ac_aux_dir/install.sh -c"
1285: break
1286: elif test -f $ac_dir/shtool; then
1287: ac_aux_dir=$ac_dir
1288: ac_install_sh="$ac_aux_dir/shtool install -c"
1289: break
1290: fi
1291: done
1292: if test -z "$ac_aux_dir"; then
1293: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1294: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1295: { (exit 1); exit 1; }; }
1296: fi
1297: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1298: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1299: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1300:
1301: # Make sure we can run config.sub.
1302: $ac_config_sub sun4 >/dev/null 2>&1 ||
1303: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1304: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1305: { (exit 1); exit 1; }; }
1306:
1307: echo "$as_me:$LINENO: checking build system type" >&5
1308: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1309: if test "${ac_cv_build+set}" = set; then
1310: echo $ECHO_N "(cached) $ECHO_C" >&6
1311: else
1312: ac_cv_build_alias=$build_alias
1313: test -z "$ac_cv_build_alias" &&
1314: ac_cv_build_alias=`$ac_config_guess`
1315: test -z "$ac_cv_build_alias" &&
1316: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1317: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1318: { (exit 1); exit 1; }; }
1319: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1320: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1321: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1322: { (exit 1); exit 1; }; }
1323:
1324: fi
1325: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1326: echo "${ECHO_T}$ac_cv_build" >&6
1327: build=$ac_cv_build
1328: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1329: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1330: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1331:
1332:
1333: echo "$as_me:$LINENO: checking host system type" >&5
1334: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1335: if test "${ac_cv_host+set}" = set; then
1336: echo $ECHO_N "(cached) $ECHO_C" >&6
1337: else
1338: ac_cv_host_alias=$host_alias
1339: test -z "$ac_cv_host_alias" &&
1340: ac_cv_host_alias=$ac_cv_build_alias
1341: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1342: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1343: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1344: { (exit 1); exit 1; }; }
1345:
1346: fi
1347: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1348: echo "${ECHO_T}$ac_cv_host" >&6
1349: host=$ac_cv_host
1350: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1351: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1352: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1353:
1354:
1355: echo "$as_me:$LINENO: checking target system type" >&5
1356: echo $ECHO_N "checking target system type... $ECHO_C" >&6
1357: if test "${ac_cv_target+set}" = set; then
1358: echo $ECHO_N "(cached) $ECHO_C" >&6
1359: else
1360: ac_cv_target_alias=$target_alias
1361: test "x$ac_cv_target_alias" = "x" &&
1362: ac_cv_target_alias=$ac_cv_host_alias
1363: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1364: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1365: echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1366: { (exit 1); exit 1; }; }
1367:
1368: fi
1369: echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1370: echo "${ECHO_T}$ac_cv_target" >&6
1371: target=$ac_cv_target
1372: target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1373: target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1374: target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1375:
1376:
1377: # The aliases save the names the user supplied, while $host etc.
1378: # will get canonicalized.
1379: test -n "$target_alias" &&
1380: test "$program_prefix$program_suffix$program_transform_name" = \
1381: NONENONEs,x,x, &&
1382: program_prefix=${target_alias}-
1383:
1384: am__api_version="1.6"
1385: # Find a good install program. We prefer a C program (faster),
1386: # so one script is as good as another. But avoid the broken or
1387: # incompatible versions:
1388: # SysV /etc/install, /usr/sbin/install
1389: # SunOS /usr/etc/install
1390: # IRIX /sbin/install
1391: # AIX /bin/install
1392: # AmigaOS /C/install, which installs bootblocks on floppy discs
1393: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1394: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1395: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1396: # ./install, which can be erroneously created by make from ./install.sh.
1397: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1398: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1399: if test -z "$INSTALL"; then
1400: if test "${ac_cv_path_install+set}" = set; then
1401: echo $ECHO_N "(cached) $ECHO_C" >&6
1402: else
1403: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1404: for as_dir in $PATH
1405: do
1406: IFS=$as_save_IFS
1407: test -z "$as_dir" && as_dir=.
1408: # Account for people who put trailing slashes in PATH elements.
1409: case $as_dir/ in
1410: ./ | .// | /cC/* | \
1411: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1412: /usr/ucb/* ) ;;
1413: *)
1414: # OSF1 and SCO ODT 3.0 have their own names for install.
1415: # Don't use installbsd from OSF since it installs stuff as root
1416: # by default.
1417: for ac_prog in ginstall scoinst install; do
1418: for ac_exec_ext in '' $ac_executable_extensions; do
1419: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1420: if test $ac_prog = install &&
1421: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1422: # AIX install. It has an incompatible calling convention.
1423: :
1424: elif test $ac_prog = install &&
1425: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1426: # program-specific install script used by HP pwplus--don't use.
1427: :
1428: else
1429: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1430: break 3
1431: fi
1432: fi
1433: done
1434: done
1435: ;;
1436: esac
1437: done
1438:
1439:
1440: fi
1441: if test "${ac_cv_path_install+set}" = set; then
1442: INSTALL=$ac_cv_path_install
1443: else
1444: # As a last resort, use the slow shell script. We don't cache a
1445: # path for INSTALL within a source directory, because that will
1446: # break other packages using the cache if that directory is
1447: # removed, or if the path is relative.
1448: INSTALL=$ac_install_sh
1449: fi
1450: fi
1451: echo "$as_me:$LINENO: result: $INSTALL" >&5
1452: echo "${ECHO_T}$INSTALL" >&6
1453:
1454: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1455: # It thinks the first close brace ends the variable substitution.
1456: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1457:
1458: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1459:
1460: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1461:
1462: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1463: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1464: # Just in case
1465: sleep 1
1466: echo timestamp > conftest.file
1467: # Do `set' in a subshell so we don't clobber the current shell's
1468: # arguments. Must try -L first in case configure is actually a
1469: # symlink; some systems play weird games with the mod time of symlinks
1470: # (eg FreeBSD returns the mod time of the symlink's containing
1471: # directory).
1472: if (
1473: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1474: if test "$*" = "X"; then
1475: # -L didn't work.
1476: set X `ls -t $srcdir/configure conftest.file`
1477: fi
1478: rm -f conftest.file
1479: if test "$*" != "X $srcdir/configure conftest.file" \
1480: && test "$*" != "X conftest.file $srcdir/configure"; then
1481:
1482: # If neither matched, then we have a broken ls. This can happen
1483: # if, for instance, CONFIG_SHELL is bash and it inherits a
1484: # broken ls alias from the environment. This has actually
1485: # happened. Such a system could not be considered "sane".
1486: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1487: alias in your environment" >&5
1488: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1489: alias in your environment" >&2;}
1490: { (exit 1); exit 1; }; }
1491: fi
1492:
1493: test "$2" = conftest.file
1494: )
1495: then
1496: # Ok.
1497: :
1498: else
1499: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1500: Check your system clock" >&5
1501: echo "$as_me: error: newly created file is older than distributed files!
1502: Check your system clock" >&2;}
1503: { (exit 1); exit 1; }; }
1504: fi
1505: echo "$as_me:$LINENO: result: yes" >&5
1506: echo "${ECHO_T}yes" >&6
1507: test "$program_prefix" != NONE &&
1508: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1509: # Use a double $ so make ignores it.
1510: test "$program_suffix" != NONE &&
1511: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1512: # Double any \ or $. echo might interpret backslashes.
1513: # By default was `s,x,x', remove it if useless.
1514: cat <<\_ACEOF >conftest.sed
1515: s/[\\$]/&&/g;s/;s,x,x,$//
1516: _ACEOF
1517: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1518: rm conftest.sed
1519:
1520:
1521: # expand $ac_aux_dir to an absolute path
1522: am_aux_dir=`cd $ac_aux_dir && pwd`
1523:
1524: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1525: # Use eval to expand $SHELL
1526: if eval "$MISSING --run true"; then
1527: am_missing_run="$MISSING --run "
1528: else
1529: am_missing_run=
1530: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1531: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1532: fi
1533:
1534: for ac_prog in gawk mawk nawk awk
1535: do
1536: # Extract the first word of "$ac_prog", so it can be a program name with args.
1537: set dummy $ac_prog; ac_word=$2
1538: echo "$as_me:$LINENO: checking for $ac_word" >&5
1539: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540: if test "${ac_cv_prog_AWK+set}" = set; then
1541: echo $ECHO_N "(cached) $ECHO_C" >&6
1542: else
1543: if test -n "$AWK"; then
1544: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1545: else
1546: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547: for as_dir in $PATH
1548: do
1549: IFS=$as_save_IFS
1550: test -z "$as_dir" && as_dir=.
1551: for ac_exec_ext in '' $ac_executable_extensions; do
1552: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553: ac_cv_prog_AWK="$ac_prog"
1554: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555: break 2
1556: fi
1557: done
1558: done
1559:
1560: fi
1561: fi
1562: AWK=$ac_cv_prog_AWK
1563: if test -n "$AWK"; then
1564: echo "$as_me:$LINENO: result: $AWK" >&5
1565: echo "${ECHO_T}$AWK" >&6
1566: else
1567: echo "$as_me:$LINENO: result: no" >&5
1568: echo "${ECHO_T}no" >&6
1569: fi
1570:
1571: test -n "$AWK" && break
1572: done
1573:
1574: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1575: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1576: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1577: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1578: echo $ECHO_N "(cached) $ECHO_C" >&6
1579: else
1580: cat >conftest.make <<\_ACEOF
1581: all:
1582: @echo 'ac_maketemp="$(MAKE)"'
1583: _ACEOF
1584: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1585: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1586: if test -n "$ac_maketemp"; then
1587: eval ac_cv_prog_make_${ac_make}_set=yes
1588: else
1589: eval ac_cv_prog_make_${ac_make}_set=no
1590: fi
1591: rm -f conftest.make
1592: fi
1593: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1594: echo "$as_me:$LINENO: result: yes" >&5
1595: echo "${ECHO_T}yes" >&6
1596: SET_MAKE=
1597: else
1598: echo "$as_me:$LINENO: result: no" >&5
1599: echo "${ECHO_T}no" >&6
1600: SET_MAKE="MAKE=${MAKE-make}"
1601: fi
1602:
1603: # test to see if srcdir already configured
1604: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1605: test -f $srcdir/config.status; then
1606: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1607: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1608: { (exit 1); exit 1; }; }
1609: fi
1610:
1611: # Define the identity of the package.
1612: PACKAGE=libnet
1613: VERSION=$LIBNET_VERSION
1614:
1615:
1616: cat >>confdefs.h <<_ACEOF
1617: @%:@define PACKAGE "$PACKAGE"
1618: _ACEOF
1619:
1620:
1621: cat >>confdefs.h <<_ACEOF
1622: @%:@define VERSION "$VERSION"
1623: _ACEOF
1624:
1625: # Some tools Automake needs.
1626:
1627: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1628:
1629:
1630: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1631:
1632:
1633: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1634:
1635:
1636: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1637:
1638:
1639: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1640:
1641:
1642: AMTAR=${AMTAR-"${am_missing_run}tar"}
1643:
1644: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1645:
1646: # Installed binaries are usually stripped using `strip' when the user
1647: # run `make install-strip'. However `strip' might not be the right
1648: # tool to use in cross-compilation environments, therefore Automake
1649: # will honor the `STRIP' environment variable to overrule this program.
1650: if test "$cross_compiling" != no; then
1651: if test -n "$ac_tool_prefix"; then
1652: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1653: set dummy ${ac_tool_prefix}strip; ac_word=$2
1654: echo "$as_me:$LINENO: checking for $ac_word" >&5
1655: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656: if test "${ac_cv_prog_STRIP+set}" = set; then
1657: echo $ECHO_N "(cached) $ECHO_C" >&6
1658: else
1659: if test -n "$STRIP"; then
1660: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1661: else
1662: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663: for as_dir in $PATH
1664: do
1665: IFS=$as_save_IFS
1666: test -z "$as_dir" && as_dir=.
1667: for ac_exec_ext in '' $ac_executable_extensions; do
1668: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1670: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671: break 2
1672: fi
1673: done
1674: done
1675:
1676: fi
1677: fi
1678: STRIP=$ac_cv_prog_STRIP
1679: if test -n "$STRIP"; then
1680: echo "$as_me:$LINENO: result: $STRIP" >&5
1681: echo "${ECHO_T}$STRIP" >&6
1682: else
1683: echo "$as_me:$LINENO: result: no" >&5
1684: echo "${ECHO_T}no" >&6
1685: fi
1686:
1687: fi
1688: if test -z "$ac_cv_prog_STRIP"; then
1689: ac_ct_STRIP=$STRIP
1690: # Extract the first word of "strip", so it can be a program name with args.
1691: set dummy strip; ac_word=$2
1692: echo "$as_me:$LINENO: checking for $ac_word" >&5
1693: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1695: echo $ECHO_N "(cached) $ECHO_C" >&6
1696: else
1697: if test -n "$ac_ct_STRIP"; then
1698: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1699: else
1700: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701: for as_dir in $PATH
1702: do
1703: IFS=$as_save_IFS
1704: test -z "$as_dir" && as_dir=.
1705: for ac_exec_ext in '' $ac_executable_extensions; do
1706: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707: ac_cv_prog_ac_ct_STRIP="strip"
1708: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709: break 2
1710: fi
1711: done
1712: done
1713:
1714: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1715: fi
1716: fi
1717: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1718: if test -n "$ac_ct_STRIP"; then
1719: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1720: echo "${ECHO_T}$ac_ct_STRIP" >&6
1721: else
1722: echo "$as_me:$LINENO: result: no" >&5
1723: echo "${ECHO_T}no" >&6
1724: fi
1725:
1726: STRIP=$ac_ct_STRIP
1727: else
1728: STRIP="$ac_cv_prog_STRIP"
1729: fi
1730:
1731: fi
1732: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1733:
1734: # We need awk for the "check" target. The system "awk" is bad on
1735: # some platforms.
1736:
1737:
1738:
1739: # Add the stamp file to the list of files AC keeps track of,
1740: # along with our hook.
1741: ac_config_headers="$ac_config_headers include/config.h"
1742:
1743:
1744:
1745: echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1746: echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1747: # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1748: if test "${enable_maintainer_mode+set}" = set; then
1749: enableval="$enable_maintainer_mode"
1750: USE_MAINTAINER_MODE=$enableval
1751: else
1752: USE_MAINTAINER_MODE=no
1753: fi;
1754: echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1755: echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1756:
1757:
1758: if test $USE_MAINTAINER_MODE = yes; then
1759: MAINTAINER_MODE_TRUE=
1760: MAINTAINER_MODE_FALSE='#'
1761: else
1762: MAINTAINER_MODE_TRUE='#'
1763: MAINTAINER_MODE_FALSE=
1764: fi
1765:
1766: MAINT=$MAINTAINER_MODE_TRUE
1767:
1768:
1769:
1770: ac_ext=c
1771: ac_cpp='$CPP $CPPFLAGS'
1772: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1773: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1774: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1775: if test -n "$ac_tool_prefix"; then
1776: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1777: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1778: echo "$as_me:$LINENO: checking for $ac_word" >&5
1779: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780: if test "${ac_cv_prog_CC+set}" = set; then
1781: echo $ECHO_N "(cached) $ECHO_C" >&6
1782: else
1783: if test -n "$CC"; then
1784: ac_cv_prog_CC="$CC" # Let the user override the test.
1785: else
1786: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787: for as_dir in $PATH
1788: do
1789: IFS=$as_save_IFS
1790: test -z "$as_dir" && as_dir=.
1791: for ac_exec_ext in '' $ac_executable_extensions; do
1792: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1794: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795: break 2
1796: fi
1797: done
1798: done
1799:
1800: fi
1801: fi
1802: CC=$ac_cv_prog_CC
1803: if test -n "$CC"; then
1804: echo "$as_me:$LINENO: result: $CC" >&5
1805: echo "${ECHO_T}$CC" >&6
1806: else
1807: echo "$as_me:$LINENO: result: no" >&5
1808: echo "${ECHO_T}no" >&6
1809: fi
1810:
1811: fi
1812: if test -z "$ac_cv_prog_CC"; then
1813: ac_ct_CC=$CC
1814: # Extract the first word of "gcc", so it can be a program name with args.
1815: set dummy gcc; ac_word=$2
1816: echo "$as_me:$LINENO: checking for $ac_word" >&5
1817: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1819: echo $ECHO_N "(cached) $ECHO_C" >&6
1820: else
1821: if test -n "$ac_ct_CC"; then
1822: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1823: else
1824: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825: for as_dir in $PATH
1826: do
1827: IFS=$as_save_IFS
1828: test -z "$as_dir" && as_dir=.
1829: for ac_exec_ext in '' $ac_executable_extensions; do
1830: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831: ac_cv_prog_ac_ct_CC="gcc"
1832: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833: break 2
1834: fi
1835: done
1836: done
1837:
1838: fi
1839: fi
1840: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1841: if test -n "$ac_ct_CC"; then
1842: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1843: echo "${ECHO_T}$ac_ct_CC" >&6
1844: else
1845: echo "$as_me:$LINENO: result: no" >&5
1846: echo "${ECHO_T}no" >&6
1847: fi
1848:
1849: CC=$ac_ct_CC
1850: else
1851: CC="$ac_cv_prog_CC"
1852: fi
1853:
1854: if test -z "$CC"; then
1855: if test -n "$ac_tool_prefix"; then
1856: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1857: set dummy ${ac_tool_prefix}cc; ac_word=$2
1858: echo "$as_me:$LINENO: checking for $ac_word" >&5
1859: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860: if test "${ac_cv_prog_CC+set}" = set; then
1861: echo $ECHO_N "(cached) $ECHO_C" >&6
1862: else
1863: if test -n "$CC"; then
1864: ac_cv_prog_CC="$CC" # Let the user override the test.
1865: else
1866: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867: for as_dir in $PATH
1868: do
1869: IFS=$as_save_IFS
1870: test -z "$as_dir" && as_dir=.
1871: for ac_exec_ext in '' $ac_executable_extensions; do
1872: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873: ac_cv_prog_CC="${ac_tool_prefix}cc"
1874: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875: break 2
1876: fi
1877: done
1878: done
1879:
1880: fi
1881: fi
1882: CC=$ac_cv_prog_CC
1883: if test -n "$CC"; then
1884: echo "$as_me:$LINENO: result: $CC" >&5
1885: echo "${ECHO_T}$CC" >&6
1886: else
1887: echo "$as_me:$LINENO: result: no" >&5
1888: echo "${ECHO_T}no" >&6
1889: fi
1890:
1891: fi
1892: if test -z "$ac_cv_prog_CC"; then
1893: ac_ct_CC=$CC
1894: # Extract the first word of "cc", so it can be a program name with args.
1895: set dummy cc; 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_ac_ct_CC+set}" = set; then
1899: echo $ECHO_N "(cached) $ECHO_C" >&6
1900: else
1901: if test -n "$ac_ct_CC"; then
1902: ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="cc"
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: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921: if test -n "$ac_ct_CC"; then
1922: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923: echo "${ECHO_T}$ac_ct_CC" >&6
1924: else
1925: echo "$as_me:$LINENO: result: no" >&5
1926: echo "${ECHO_T}no" >&6
1927: fi
1928:
1929: CC=$ac_ct_CC
1930: else
1931: CC="$ac_cv_prog_CC"
1932: fi
1933:
1934: fi
1935: if test -z "$CC"; then
1936: # Extract the first word of "cc", so it can be a program name with args.
1937: set dummy cc; 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_CC+set}" = set; then
1941: echo $ECHO_N "(cached) $ECHO_C" >&6
1942: else
1943: if test -n "$CC"; then
1944: ac_cv_prog_CC="$CC" # Let the user override the test.
1945: else
1946: ac_prog_rejected=no
1947: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948: for as_dir in $PATH
1949: do
1950: IFS=$as_save_IFS
1951: test -z "$as_dir" && as_dir=.
1952: for ac_exec_ext in '' $ac_executable_extensions; do
1953: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1955: ac_prog_rejected=yes
1956: continue
1957: fi
1958: ac_cv_prog_CC="cc"
1959: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960: break 2
1961: fi
1962: done
1963: done
1964:
1965: if test $ac_prog_rejected = yes; then
1966: # We found a bogon in the path, so make sure we never use it.
1967: set dummy $ac_cv_prog_CC
1968: shift
1969: if test $@%:@ != 0; then
1970: # We chose a different compiler from the bogus one.
1971: # However, it has the same basename, so the bogon will be chosen
1972: # first if we set CC to just the basename; use the full file name.
1973: shift
1974: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1975: fi
1976: fi
1977: fi
1978: fi
1979: CC=$ac_cv_prog_CC
1980: if test -n "$CC"; then
1981: echo "$as_me:$LINENO: result: $CC" >&5
1982: echo "${ECHO_T}$CC" >&6
1983: else
1984: echo "$as_me:$LINENO: result: no" >&5
1985: echo "${ECHO_T}no" >&6
1986: fi
1987:
1988: fi
1989: if test -z "$CC"; then
1990: if test -n "$ac_tool_prefix"; then
1991: for ac_prog in cl
1992: do
1993: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1994: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1995: echo "$as_me:$LINENO: checking for $ac_word" >&5
1996: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997: if test "${ac_cv_prog_CC+set}" = set; then
1998: echo $ECHO_N "(cached) $ECHO_C" >&6
1999: else
2000: if test -n "$CC"; then
2001: ac_cv_prog_CC="$CC" # Let the user override the test.
2002: else
2003: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004: for as_dir in $PATH
2005: do
2006: IFS=$as_save_IFS
2007: test -z "$as_dir" && as_dir=.
2008: for ac_exec_ext in '' $ac_executable_extensions; do
2009: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2011: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012: break 2
2013: fi
2014: done
2015: done
2016:
2017: fi
2018: fi
2019: CC=$ac_cv_prog_CC
2020: if test -n "$CC"; then
2021: echo "$as_me:$LINENO: result: $CC" >&5
2022: echo "${ECHO_T}$CC" >&6
2023: else
2024: echo "$as_me:$LINENO: result: no" >&5
2025: echo "${ECHO_T}no" >&6
2026: fi
2027:
2028: test -n "$CC" && break
2029: done
2030: fi
2031: if test -z "$CC"; then
2032: ac_ct_CC=$CC
2033: for ac_prog in cl
2034: do
2035: # Extract the first word of "$ac_prog", so it can be a program name with args.
2036: set dummy $ac_prog; ac_word=$2
2037: echo "$as_me:$LINENO: checking for $ac_word" >&5
2038: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2040: echo $ECHO_N "(cached) $ECHO_C" >&6
2041: else
2042: if test -n "$ac_ct_CC"; then
2043: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2044: else
2045: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046: for as_dir in $PATH
2047: do
2048: IFS=$as_save_IFS
2049: test -z "$as_dir" && as_dir=.
2050: for ac_exec_ext in '' $ac_executable_extensions; do
2051: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052: ac_cv_prog_ac_ct_CC="$ac_prog"
2053: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054: break 2
2055: fi
2056: done
2057: done
2058:
2059: fi
2060: fi
2061: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2062: if test -n "$ac_ct_CC"; then
2063: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2064: echo "${ECHO_T}$ac_ct_CC" >&6
2065: else
2066: echo "$as_me:$LINENO: result: no" >&5
2067: echo "${ECHO_T}no" >&6
2068: fi
2069:
2070: test -n "$ac_ct_CC" && break
2071: done
2072:
2073: CC=$ac_ct_CC
2074: fi
2075:
2076: fi
2077:
2078:
2079: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2080: See \`config.log' for more details." >&5
2081: echo "$as_me: error: no acceptable C compiler found in \$PATH
2082: See \`config.log' for more details." >&2;}
2083: { (exit 1); exit 1; }; }
2084:
2085: # Provide some information about the compiler.
2086: echo "$as_me:$LINENO:" \
2087: "checking for C compiler version" >&5
2088: ac_compiler=`set X $ac_compile; echo $2`
2089: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2090: (eval $ac_compiler --version </dev/null >&5) 2>&5
2091: ac_status=$?
2092: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093: (exit $ac_status); }
2094: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2095: (eval $ac_compiler -v </dev/null >&5) 2>&5
2096: ac_status=$?
2097: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098: (exit $ac_status); }
2099: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2100: (eval $ac_compiler -V </dev/null >&5) 2>&5
2101: ac_status=$?
2102: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103: (exit $ac_status); }
2104:
2105: cat >conftest.$ac_ext <<_ACEOF
2106: #line $LINENO "configure"
2107: /* confdefs.h. */
2108: _ACEOF
2109: cat confdefs.h >>conftest.$ac_ext
2110: cat >>conftest.$ac_ext <<_ACEOF
2111: /* end confdefs.h. */
2112:
2113: int
2114: main ()
2115: {
2116:
2117: ;
2118: return 0;
2119: }
2120: _ACEOF
2121: ac_clean_files_save=$ac_clean_files
2122: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2123: # Try to create an executable without -o first, disregard a.out.
2124: # It will help us diagnose broken compilers, and finding out an intuition
2125: # of exeext.
2126: echo "$as_me:$LINENO: checking for C compiler default output" >&5
2127: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2128: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2129: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2130: (eval $ac_link_default) 2>&5
2131: ac_status=$?
2132: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133: (exit $ac_status); }; then
2134: # Find the output, starting from the most likely. This scheme is
2135: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2136: # resort.
2137:
2138: # Be careful to initialize this variable, since it used to be cached.
2139: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2140: ac_cv_exeext=
2141: # b.out is created by i960 compilers.
2142: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2143: do
2144: test -f "$ac_file" || continue
2145: case $ac_file in
2146: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2147: ;;
2148: conftest.$ac_ext )
2149: # This is the source file.
2150: ;;
2151: [ab].out )
2152: # We found the default executable, but exeext='' is most
2153: # certainly right.
2154: break;;
2155: *.* )
2156: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157: # FIXME: I believe we export ac_cv_exeext for Libtool,
2158: # but it would be cool to find out if it's true. Does anybody
2159: # maintain Libtool? --akim.
2160: export ac_cv_exeext
2161: break;;
2162: * )
2163: break;;
2164: esac
2165: done
2166: else
2167: echo "$as_me: failed program was:" >&5
2168: sed 's/^/| /' conftest.$ac_ext >&5
2169:
2170: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2171: See \`config.log' for more details." >&5
2172: echo "$as_me: error: C compiler cannot create executables
2173: See \`config.log' for more details." >&2;}
2174: { (exit 77); exit 77; }; }
2175: fi
2176:
2177: ac_exeext=$ac_cv_exeext
2178: echo "$as_me:$LINENO: result: $ac_file" >&5
2179: echo "${ECHO_T}$ac_file" >&6
2180:
2181: # Check the compiler produces executables we can run. If not, either
2182: # the compiler is broken, or we cross compile.
2183: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2184: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2185: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2186: # If not cross compiling, check that we can run a simple program.
2187: if test "$cross_compiling" != yes; then
2188: if { ac_try='./$ac_file'
2189: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190: (eval $ac_try) 2>&5
2191: ac_status=$?
2192: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193: (exit $ac_status); }; }; then
2194: cross_compiling=no
2195: else
2196: if test "$cross_compiling" = maybe; then
2197: cross_compiling=yes
2198: else
2199: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2200: If you meant to cross compile, use \`--host'.
2201: See \`config.log' for more details." >&5
2202: echo "$as_me: error: cannot run C compiled programs.
2203: If you meant to cross compile, use \`--host'.
2204: See \`config.log' for more details." >&2;}
2205: { (exit 1); exit 1; }; }
2206: fi
2207: fi
2208: fi
2209: echo "$as_me:$LINENO: result: yes" >&5
2210: echo "${ECHO_T}yes" >&6
2211:
2212: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2213: ac_clean_files=$ac_clean_files_save
2214: # Check the compiler produces executables we can run. If not, either
2215: # the compiler is broken, or we cross compile.
2216: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2217: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2218: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2219: echo "${ECHO_T}$cross_compiling" >&6
2220:
2221: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2222: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2223: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2224: (eval $ac_link) 2>&5
2225: ac_status=$?
2226: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227: (exit $ac_status); }; then
2228: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2229: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2230: # work properly (i.e., refer to `conftest.exe'), while it won't with
2231: # `rm'.
2232: for ac_file in conftest.exe conftest conftest.*; do
2233: test -f "$ac_file" || continue
2234: case $ac_file in
2235: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2236: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2237: export ac_cv_exeext
2238: break;;
2239: * ) break;;
2240: esac
2241: done
2242: else
2243: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2244: See \`config.log' for more details." >&5
2245: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2246: See \`config.log' for more details." >&2;}
2247: { (exit 1); exit 1; }; }
2248: fi
2249:
2250: rm -f conftest$ac_cv_exeext
2251: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2252: echo "${ECHO_T}$ac_cv_exeext" >&6
2253:
2254: rm -f conftest.$ac_ext
2255: EXEEXT=$ac_cv_exeext
2256: ac_exeext=$EXEEXT
2257: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2258: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2259: if test "${ac_cv_objext+set}" = set; then
2260: echo $ECHO_N "(cached) $ECHO_C" >&6
2261: else
2262: cat >conftest.$ac_ext <<_ACEOF
2263: #line $LINENO "configure"
2264: /* confdefs.h. */
2265: _ACEOF
2266: cat confdefs.h >>conftest.$ac_ext
2267: cat >>conftest.$ac_ext <<_ACEOF
2268: /* end confdefs.h. */
2269:
2270: int
2271: main ()
2272: {
2273:
2274: ;
2275: return 0;
2276: }
2277: _ACEOF
2278: rm -f conftest.o conftest.obj
2279: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2280: (eval $ac_compile) 2>&5
2281: ac_status=$?
2282: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283: (exit $ac_status); }; then
2284: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2285: case $ac_file in
2286: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2287: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2288: break;;
2289: esac
2290: done
2291: else
2292: echo "$as_me: failed program was:" >&5
2293: sed 's/^/| /' conftest.$ac_ext >&5
2294:
2295: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2296: See \`config.log' for more details." >&5
2297: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2298: See \`config.log' for more details." >&2;}
2299: { (exit 1); exit 1; }; }
2300: fi
2301:
2302: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2303: fi
2304: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2305: echo "${ECHO_T}$ac_cv_objext" >&6
2306: OBJEXT=$ac_cv_objext
2307: ac_objext=$OBJEXT
2308: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2309: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2310: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2311: echo $ECHO_N "(cached) $ECHO_C" >&6
2312: else
2313: cat >conftest.$ac_ext <<_ACEOF
2314: #line $LINENO "configure"
2315: /* confdefs.h. */
2316: _ACEOF
2317: cat confdefs.h >>conftest.$ac_ext
2318: cat >>conftest.$ac_ext <<_ACEOF
2319: /* end confdefs.h. */
2320:
2321: int
2322: main ()
2323: {
2324: #ifndef __GNUC__
2325: choke me
2326: #endif
2327:
2328: ;
2329: return 0;
2330: }
2331: _ACEOF
2332: rm -f conftest.$ac_objext
2333: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2334: (eval $ac_compile) 2>&5
2335: ac_status=$?
2336: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337: (exit $ac_status); } &&
2338: { ac_try='test -s conftest.$ac_objext'
2339: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340: (eval $ac_try) 2>&5
2341: ac_status=$?
2342: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343: (exit $ac_status); }; }; then
2344: ac_compiler_gnu=yes
2345: else
2346: echo "$as_me: failed program was:" >&5
2347: sed 's/^/| /' conftest.$ac_ext >&5
2348:
2349: ac_compiler_gnu=no
2350: fi
2351: rm -f conftest.$ac_objext conftest.$ac_ext
2352: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2353:
2354: fi
2355: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357: GCC=`test $ac_compiler_gnu = yes && echo yes`
2358: ac_test_CFLAGS=${CFLAGS+set}
2359: ac_save_CFLAGS=$CFLAGS
2360: CFLAGS="-g"
2361: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363: if test "${ac_cv_prog_cc_g+set}" = set; then
2364: echo $ECHO_N "(cached) $ECHO_C" >&6
2365: else
2366: cat >conftest.$ac_ext <<_ACEOF
2367: #line $LINENO "configure"
2368: /* confdefs.h. */
2369: _ACEOF
2370: cat confdefs.h >>conftest.$ac_ext
2371: cat >>conftest.$ac_ext <<_ACEOF
2372: /* end confdefs.h. */
2373:
2374: int
2375: main ()
2376: {
2377:
2378: ;
2379: return 0;
2380: }
2381: _ACEOF
2382: rm -f conftest.$ac_objext
2383: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384: (eval $ac_compile) 2>&5
2385: ac_status=$?
2386: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387: (exit $ac_status); } &&
2388: { ac_try='test -s conftest.$ac_objext'
2389: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390: (eval $ac_try) 2>&5
2391: ac_status=$?
2392: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393: (exit $ac_status); }; }; then
2394: ac_cv_prog_cc_g=yes
2395: else
2396: echo "$as_me: failed program was:" >&5
2397: sed 's/^/| /' conftest.$ac_ext >&5
2398:
2399: ac_cv_prog_cc_g=no
2400: fi
2401: rm -f conftest.$ac_objext conftest.$ac_ext
2402: fi
2403: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2404: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2405: if test "$ac_test_CFLAGS" = set; then
2406: CFLAGS=$ac_save_CFLAGS
2407: elif test $ac_cv_prog_cc_g = yes; then
2408: if test "$GCC" = yes; then
2409: CFLAGS="-g -O2"
2410: else
2411: CFLAGS="-g"
2412: fi
2413: else
2414: if test "$GCC" = yes; then
2415: CFLAGS="-O2"
2416: else
2417: CFLAGS=
2418: fi
2419: fi
2420: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2421: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2422: if test "${ac_cv_prog_cc_stdc+set}" = set; then
2423: echo $ECHO_N "(cached) $ECHO_C" >&6
2424: else
2425: ac_cv_prog_cc_stdc=no
2426: ac_save_CC=$CC
2427: cat >conftest.$ac_ext <<_ACEOF
2428: #line $LINENO "configure"
2429: /* confdefs.h. */
2430: _ACEOF
2431: cat confdefs.h >>conftest.$ac_ext
2432: cat >>conftest.$ac_ext <<_ACEOF
2433: /* end confdefs.h. */
2434: #include <stdarg.h>
2435: #include <stdio.h>
2436: #include <sys/types.h>
2437: #include <sys/stat.h>
2438: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2439: struct buf { int x; };
2440: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2441: static char *e (p, i)
2442: char **p;
2443: int i;
2444: {
2445: return p[i];
2446: }
2447: static char *f (char * (*g) (char **, int), char **p, ...)
2448: {
2449: char *s;
2450: va_list v;
2451: va_start (v,p);
2452: s = g (p, va_arg (v,int));
2453: va_end (v);
2454: return s;
2455: }
2456: int test (int i, double x);
2457: struct s1 {int (*f) (int a);};
2458: struct s2 {int (*f) (double a);};
2459: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2460: int argc;
2461: char **argv;
2462: int
2463: main ()
2464: {
2465: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2466: ;
2467: return 0;
2468: }
2469: _ACEOF
2470: # Don't try gcc -ansi; that turns off useful extensions and
2471: # breaks some systems' header files.
2472: # AIX -qlanglvl=ansi
2473: # Ultrix and OSF/1 -std1
2474: # HP-UX 10.20 and later -Ae
2475: # HP-UX older versions -Aa -D_HPUX_SOURCE
2476: # SVR4 -Xc -D__EXTENSIONS__
2477: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2478: do
2479: CC="$ac_save_CC $ac_arg"
2480: rm -f conftest.$ac_objext
2481: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2482: (eval $ac_compile) 2>&5
2483: ac_status=$?
2484: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485: (exit $ac_status); } &&
2486: { ac_try='test -s conftest.$ac_objext'
2487: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488: (eval $ac_try) 2>&5
2489: ac_status=$?
2490: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491: (exit $ac_status); }; }; then
2492: ac_cv_prog_cc_stdc=$ac_arg
2493: break
2494: else
2495: echo "$as_me: failed program was:" >&5
2496: sed 's/^/| /' conftest.$ac_ext >&5
2497:
2498: fi
2499: rm -f conftest.$ac_objext
2500: done
2501: rm -f conftest.$ac_ext conftest.$ac_objext
2502: CC=$ac_save_CC
2503:
2504: fi
2505:
2506: case "x$ac_cv_prog_cc_stdc" in
2507: x|xno)
2508: echo "$as_me:$LINENO: result: none needed" >&5
2509: echo "${ECHO_T}none needed" >&6 ;;
2510: *)
2511: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2512: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2513: CC="$CC $ac_cv_prog_cc_stdc" ;;
2514: esac
2515:
2516: # Some people use a C++ compiler to compile C. Since we use `exit',
2517: # in C++ we need to declare it. In case someone uses the same compiler
2518: # for both compiling C and C++ we need to have the C++ compiler decide
2519: # the declaration of exit, since it's the most demanding environment.
2520: cat >conftest.$ac_ext <<_ACEOF
2521: @%:@ifndef __cplusplus
2522: choke me
2523: @%:@endif
2524: _ACEOF
2525: rm -f conftest.$ac_objext
2526: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527: (eval $ac_compile) 2>&5
2528: ac_status=$?
2529: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530: (exit $ac_status); } &&
2531: { ac_try='test -s conftest.$ac_objext'
2532: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533: (eval $ac_try) 2>&5
2534: ac_status=$?
2535: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536: (exit $ac_status); }; }; then
2537: for ac_declaration in \
2538: ''\
2539: '#include <stdlib.h>' \
2540: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2541: 'extern "C" void std::exit (int); using std::exit;' \
2542: 'extern "C" void exit (int) throw ();' \
2543: 'extern "C" void exit (int);' \
2544: 'void exit (int);'
2545: do
2546: cat >conftest.$ac_ext <<_ACEOF
2547: #line $LINENO "configure"
2548: /* confdefs.h. */
2549: _ACEOF
2550: cat confdefs.h >>conftest.$ac_ext
2551: cat >>conftest.$ac_ext <<_ACEOF
2552: /* end confdefs.h. */
2553: @%:@include <stdlib.h>
2554: $ac_declaration
2555: int
2556: main ()
2557: {
2558: exit (42);
2559: ;
2560: return 0;
2561: }
2562: _ACEOF
2563: rm -f conftest.$ac_objext
2564: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2565: (eval $ac_compile) 2>&5
2566: ac_status=$?
2567: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568: (exit $ac_status); } &&
2569: { ac_try='test -s conftest.$ac_objext'
2570: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571: (eval $ac_try) 2>&5
2572: ac_status=$?
2573: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574: (exit $ac_status); }; }; then
2575: :
2576: else
2577: echo "$as_me: failed program was:" >&5
2578: sed 's/^/| /' conftest.$ac_ext >&5
2579:
2580: continue
2581: fi
2582: rm -f conftest.$ac_objext conftest.$ac_ext
2583: cat >conftest.$ac_ext <<_ACEOF
2584: #line $LINENO "configure"
2585: /* confdefs.h. */
2586: _ACEOF
2587: cat confdefs.h >>conftest.$ac_ext
2588: cat >>conftest.$ac_ext <<_ACEOF
2589: /* end confdefs.h. */
2590: $ac_declaration
2591: int
2592: main ()
2593: {
2594: exit (42);
2595: ;
2596: return 0;
2597: }
2598: _ACEOF
2599: rm -f conftest.$ac_objext
2600: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601: (eval $ac_compile) 2>&5
2602: ac_status=$?
2603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604: (exit $ac_status); } &&
2605: { ac_try='test -s conftest.$ac_objext'
2606: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607: (eval $ac_try) 2>&5
2608: ac_status=$?
2609: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610: (exit $ac_status); }; }; then
2611: break
2612: else
2613: echo "$as_me: failed program was:" >&5
2614: sed 's/^/| /' conftest.$ac_ext >&5
2615:
2616: fi
2617: rm -f conftest.$ac_objext conftest.$ac_ext
2618: done
2619: rm -f conftest*
2620: if test -n "$ac_declaration"; then
2621: echo '#ifdef __cplusplus' >>confdefs.h
2622: echo $ac_declaration >>confdefs.h
2623: echo '#endif' >>confdefs.h
2624: fi
2625:
2626: else
2627: echo "$as_me: failed program was:" >&5
2628: sed 's/^/| /' conftest.$ac_ext >&5
2629:
2630: fi
2631: rm -f conftest.$ac_objext conftest.$ac_ext
2632: ac_ext=c
2633: ac_cpp='$CPP $CPPFLAGS'
2634: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637: rm -f .deps 2>/dev/null
2638: mkdir .deps 2>/dev/null
2639: if test -d .deps; then
2640: DEPDIR=.deps
2641: else
2642: # MS-DOS does not allow filenames that begin with a dot.
2643: DEPDIR=_deps
2644: fi
2645: rmdir .deps 2>/dev/null
2646:
2647:
2648: ac_config_commands="$ac_config_commands depfiles"
2649:
2650:
2651: am_make=${MAKE-make}
2652: cat > confinc << 'END'
2653: doit:
2654: @echo done
2655: END
2656: # If we don't find an include directive, just comment out the code.
2657: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2658: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2659: am__include="#"
2660: am__quote=
2661: _am_result=none
2662: # First try GNU make style include.
2663: echo "include confinc" > confmf
2664: # We grep out `Entering directory' and `Leaving directory'
2665: # messages which can occur if `w' ends up in MAKEFLAGS.
2666: # In particular we don't look at `^make:' because GNU make might
2667: # be invoked under some other name (usually "gmake"), in which
2668: # case it prints its new name instead of `make'.
2669: if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2670: am__include=include
2671: am__quote=
2672: _am_result=GNU
2673: fi
2674: # Now try BSD make style include.
2675: if test "$am__include" = "#"; then
2676: echo '.include "confinc"' > confmf
2677: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2678: am__include=.include
2679: am__quote="\""
2680: _am_result=BSD
2681: fi
2682: fi
2683:
2684:
2685: echo "$as_me:$LINENO: result: $_am_result" >&5
2686: echo "${ECHO_T}$_am_result" >&6
2687: rm -f confinc confmf
2688:
2689: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2690: if test "${enable_dependency_tracking+set}" = set; then
2691: enableval="$enable_dependency_tracking"
2692:
2693: fi;
2694: if test "x$enable_dependency_tracking" != xno; then
2695: am_depcomp="$ac_aux_dir/depcomp"
2696: AMDEPBACKSLASH='\'
2697: fi
2698:
2699:
2700: if test "x$enable_dependency_tracking" != xno; then
2701: AMDEP_TRUE=
2702: AMDEP_FALSE='#'
2703: else
2704: AMDEP_TRUE='#'
2705: AMDEP_FALSE=
2706: fi
2707:
2708:
2709:
2710:
2711: depcc="$CC" am_compiler_list=
2712:
2713: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2714: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2715: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2716: echo $ECHO_N "(cached) $ECHO_C" >&6
2717: else
2718: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2719: # We make a subdir and do the tests there. Otherwise we can end up
2720: # making bogus files that we don't know about and never remove. For
2721: # instance it was reported that on HP-UX the gcc test will end up
2722: # making a dummy file named `D' -- because `-MD' means `put the output
2723: # in D'.
2724: mkdir conftest.dir
2725: # Copy depcomp to subdir because otherwise we won't find it if we're
2726: # using a relative directory.
2727: cp "$am_depcomp" conftest.dir
2728: cd conftest.dir
2729:
2730: am_cv_CC_dependencies_compiler_type=none
2731: if test "$am_compiler_list" = ""; then
2732: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2733: fi
2734: for depmode in $am_compiler_list; do
2735: # We need to recreate these files for each test, as the compiler may
2736: # overwrite some of them when testing with obscure command lines.
2737: # This happens at least with the AIX C compiler.
2738: echo '#include "conftest.h"' > conftest.c
2739: echo 'int i;' > conftest.h
2740: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2741:
2742: case $depmode in
2743: nosideeffect)
2744: # after this tag, mechanisms are not by side-effect, so they'll
2745: # only be used when explicitly requested
2746: if test "x$enable_dependency_tracking" = xyes; then
2747: continue
2748: else
2749: break
2750: fi
2751: ;;
2752: none) break ;;
2753: esac
2754: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2755: # mode. It turns out that the SunPro C++ compiler does not properly
2756: # handle `-M -o', and we need to detect this.
2757: if depmode=$depmode \
2758: source=conftest.c object=conftest.o \
2759: depfile=conftest.Po tmpdepfile=conftest.TPo \
2760: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2761: grep conftest.h conftest.Po > /dev/null 2>&1 &&
2762: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2763: am_cv_CC_dependencies_compiler_type=$depmode
2764: break
2765: fi
2766: done
2767:
2768: cd ..
2769: rm -rf conftest.dir
2770: else
2771: am_cv_CC_dependencies_compiler_type=none
2772: fi
2773:
2774: fi
2775: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2776: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2777: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2778:
2779:
2780: # Find a good install program. We prefer a C program (faster),
2781: # so one script is as good as another. But avoid the broken or
2782: # incompatible versions:
2783: # SysV /etc/install, /usr/sbin/install
2784: # SunOS /usr/etc/install
2785: # IRIX /sbin/install
2786: # AIX /bin/install
2787: # AmigaOS /C/install, which installs bootblocks on floppy discs
2788: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2789: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2790: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2791: # ./install, which can be erroneously created by make from ./install.sh.
2792: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2793: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2794: if test -z "$INSTALL"; then
2795: if test "${ac_cv_path_install+set}" = set; then
2796: echo $ECHO_N "(cached) $ECHO_C" >&6
2797: else
2798: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799: for as_dir in $PATH
2800: do
2801: IFS=$as_save_IFS
2802: test -z "$as_dir" && as_dir=.
2803: # Account for people who put trailing slashes in PATH elements.
2804: case $as_dir/ in
2805: ./ | .// | /cC/* | \
2806: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2807: /usr/ucb/* ) ;;
2808: *)
2809: # OSF1 and SCO ODT 3.0 have their own names for install.
2810: # Don't use installbsd from OSF since it installs stuff as root
2811: # by default.
2812: for ac_prog in ginstall scoinst install; do
2813: for ac_exec_ext in '' $ac_executable_extensions; do
2814: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2815: if test $ac_prog = install &&
2816: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2817: # AIX install. It has an incompatible calling convention.
2818: :
2819: elif test $ac_prog = install &&
2820: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2821: # program-specific install script used by HP pwplus--don't use.
2822: :
2823: else
2824: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2825: break 3
2826: fi
2827: fi
2828: done
2829: done
2830: ;;
2831: esac
2832: done
2833:
2834:
2835: fi
2836: if test "${ac_cv_path_install+set}" = set; then
2837: INSTALL=$ac_cv_path_install
2838: else
2839: # As a last resort, use the slow shell script. We don't cache a
2840: # path for INSTALL within a source directory, because that will
2841: # break other packages using the cache if that directory is
2842: # removed, or if the path is relative.
2843: INSTALL=$ac_install_sh
2844: fi
2845: fi
2846: echo "$as_me:$LINENO: result: $INSTALL" >&5
2847: echo "${ECHO_T}$INSTALL" >&6
2848:
2849: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2850: # It thinks the first close brace ends the variable substitution.
2851: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2852:
2853: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2854:
2855: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2856:
2857: if test -n "$ac_tool_prefix"; then
2858: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2859: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2860: echo "$as_me:$LINENO: checking for $ac_word" >&5
2861: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2862: if test "${ac_cv_prog_RANLIB+set}" = set; then
2863: echo $ECHO_N "(cached) $ECHO_C" >&6
2864: else
2865: if test -n "$RANLIB"; then
2866: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2867: else
2868: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869: for as_dir in $PATH
2870: do
2871: IFS=$as_save_IFS
2872: test -z "$as_dir" && as_dir=.
2873: for ac_exec_ext in '' $ac_executable_extensions; do
2874: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2876: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877: break 2
2878: fi
2879: done
2880: done
2881:
2882: fi
2883: fi
2884: RANLIB=$ac_cv_prog_RANLIB
2885: if test -n "$RANLIB"; then
2886: echo "$as_me:$LINENO: result: $RANLIB" >&5
2887: echo "${ECHO_T}$RANLIB" >&6
2888: else
2889: echo "$as_me:$LINENO: result: no" >&5
2890: echo "${ECHO_T}no" >&6
2891: fi
2892:
2893: fi
2894: if test -z "$ac_cv_prog_RANLIB"; then
2895: ac_ct_RANLIB=$RANLIB
2896: # Extract the first word of "ranlib", so it can be a program name with args.
2897: set dummy ranlib; ac_word=$2
2898: echo "$as_me:$LINENO: checking for $ac_word" >&5
2899: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2901: echo $ECHO_N "(cached) $ECHO_C" >&6
2902: else
2903: if test -n "$ac_ct_RANLIB"; then
2904: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2905: else
2906: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907: for as_dir in $PATH
2908: do
2909: IFS=$as_save_IFS
2910: test -z "$as_dir" && as_dir=.
2911: for ac_exec_ext in '' $ac_executable_extensions; do
2912: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913: ac_cv_prog_ac_ct_RANLIB="ranlib"
2914: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915: break 2
2916: fi
2917: done
2918: done
2919:
2920: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2921: fi
2922: fi
2923: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2924: if test -n "$ac_ct_RANLIB"; then
2925: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2926: echo "${ECHO_T}$ac_ct_RANLIB" >&6
2927: else
2928: echo "$as_me:$LINENO: result: no" >&5
2929: echo "${ECHO_T}no" >&6
2930: fi
2931:
2932: RANLIB=$ac_ct_RANLIB
2933: else
2934: RANLIB="$ac_cv_prog_RANLIB"
2935: fi
2936:
2937:
2938:
2939: ac_ext=c
2940: ac_cpp='$CPP $CPPFLAGS'
2941: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2945: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2946: # On Suns, sometimes $CPP names a directory.
2947: if test -n "$CPP" && test -d "$CPP"; then
2948: CPP=
2949: fi
2950: if test -z "$CPP"; then
2951: if test "${ac_cv_prog_CPP+set}" = set; then
2952: echo $ECHO_N "(cached) $ECHO_C" >&6
2953: else
2954: # Double quotes because CPP needs to be expanded
2955: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2956: do
2957: ac_preproc_ok=false
2958: for ac_c_preproc_warn_flag in '' yes
2959: do
2960: # Use a header file that comes with gcc, so configuring glibc
2961: # with a fresh cross-compiler works.
2962: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2963: # <limits.h> exists even on freestanding compilers.
2964: # On the NeXT, cc -E runs the code through the compiler's parser,
2965: # not just through cpp. "Syntax error" is here to catch this case.
2966: cat >conftest.$ac_ext <<_ACEOF
2967: #line $LINENO "configure"
2968: /* confdefs.h. */
2969: _ACEOF
2970: cat confdefs.h >>conftest.$ac_ext
2971: cat >>conftest.$ac_ext <<_ACEOF
2972: /* end confdefs.h. */
2973: @%:@ifdef __STDC__
2974: @%:@ include <limits.h>
2975: @%:@else
2976: @%:@ include <assert.h>
2977: @%:@endif
2978: Syntax error
2979: _ACEOF
2980: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2981: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2982: ac_status=$?
2983: grep -v '^ *+' conftest.er1 >conftest.err
2984: rm -f conftest.er1
2985: cat conftest.err >&5
2986: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987: (exit $ac_status); } >/dev/null; then
2988: if test -s conftest.err; then
2989: ac_cpp_err=$ac_c_preproc_warn_flag
2990: else
2991: ac_cpp_err=
2992: fi
2993: else
2994: ac_cpp_err=yes
2995: fi
2996: if test -z "$ac_cpp_err"; then
2997: :
2998: else
2999: echo "$as_me: failed program was:" >&5
3000: sed 's/^/| /' conftest.$ac_ext >&5
3001:
3002: # Broken: fails on valid input.
3003: continue
3004: fi
3005: rm -f conftest.err conftest.$ac_ext
3006:
3007: # OK, works on sane cases. Now check whether non-existent headers
3008: # can be detected and how.
3009: cat >conftest.$ac_ext <<_ACEOF
3010: #line $LINENO "configure"
3011: /* confdefs.h. */
3012: _ACEOF
3013: cat confdefs.h >>conftest.$ac_ext
3014: cat >>conftest.$ac_ext <<_ACEOF
3015: /* end confdefs.h. */
3016: @%:@include <ac_nonexistent.h>
3017: _ACEOF
3018: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3019: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3020: ac_status=$?
3021: grep -v '^ *+' conftest.er1 >conftest.err
3022: rm -f conftest.er1
3023: cat conftest.err >&5
3024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025: (exit $ac_status); } >/dev/null; then
3026: if test -s conftest.err; then
3027: ac_cpp_err=$ac_c_preproc_warn_flag
3028: else
3029: ac_cpp_err=
3030: fi
3031: else
3032: ac_cpp_err=yes
3033: fi
3034: if test -z "$ac_cpp_err"; then
3035: # Broken: success on invalid input.
3036: continue
3037: else
3038: echo "$as_me: failed program was:" >&5
3039: sed 's/^/| /' conftest.$ac_ext >&5
3040:
3041: # Passes both tests.
3042: ac_preproc_ok=:
3043: break
3044: fi
3045: rm -f conftest.err conftest.$ac_ext
3046:
3047: done
3048: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3049: rm -f conftest.err conftest.$ac_ext
3050: if $ac_preproc_ok; then
3051: break
3052: fi
3053:
3054: done
3055: ac_cv_prog_CPP=$CPP
3056:
3057: fi
3058: CPP=$ac_cv_prog_CPP
3059: else
3060: ac_cv_prog_CPP=$CPP
3061: fi
3062: echo "$as_me:$LINENO: result: $CPP" >&5
3063: echo "${ECHO_T}$CPP" >&6
3064: ac_preproc_ok=false
3065: for ac_c_preproc_warn_flag in '' yes
3066: do
3067: # Use a header file that comes with gcc, so configuring glibc
3068: # with a fresh cross-compiler works.
3069: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3070: # <limits.h> exists even on freestanding compilers.
3071: # On the NeXT, cc -E runs the code through the compiler's parser,
3072: # not just through cpp. "Syntax error" is here to catch this case.
3073: cat >conftest.$ac_ext <<_ACEOF
3074: #line $LINENO "configure"
3075: /* confdefs.h. */
3076: _ACEOF
3077: cat confdefs.h >>conftest.$ac_ext
3078: cat >>conftest.$ac_ext <<_ACEOF
3079: /* end confdefs.h. */
3080: @%:@ifdef __STDC__
3081: @%:@ include <limits.h>
3082: @%:@else
3083: @%:@ include <assert.h>
3084: @%:@endif
3085: Syntax error
3086: _ACEOF
3087: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3088: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3089: ac_status=$?
3090: grep -v '^ *+' conftest.er1 >conftest.err
3091: rm -f conftest.er1
3092: cat conftest.err >&5
3093: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094: (exit $ac_status); } >/dev/null; then
3095: if test -s conftest.err; then
3096: ac_cpp_err=$ac_c_preproc_warn_flag
3097: else
3098: ac_cpp_err=
3099: fi
3100: else
3101: ac_cpp_err=yes
3102: fi
3103: if test -z "$ac_cpp_err"; then
3104: :
3105: else
3106: echo "$as_me: failed program was:" >&5
3107: sed 's/^/| /' conftest.$ac_ext >&5
3108:
3109: # Broken: fails on valid input.
3110: continue
3111: fi
3112: rm -f conftest.err conftest.$ac_ext
3113:
3114: # OK, works on sane cases. Now check whether non-existent headers
3115: # can be detected and how.
3116: cat >conftest.$ac_ext <<_ACEOF
3117: #line $LINENO "configure"
3118: /* confdefs.h. */
3119: _ACEOF
3120: cat confdefs.h >>conftest.$ac_ext
3121: cat >>conftest.$ac_ext <<_ACEOF
3122: /* end confdefs.h. */
3123: @%:@include <ac_nonexistent.h>
3124: _ACEOF
3125: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3126: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3127: ac_status=$?
3128: grep -v '^ *+' conftest.er1 >conftest.err
3129: rm -f conftest.er1
3130: cat conftest.err >&5
3131: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132: (exit $ac_status); } >/dev/null; then
3133: if test -s conftest.err; then
3134: ac_cpp_err=$ac_c_preproc_warn_flag
3135: else
3136: ac_cpp_err=
3137: fi
3138: else
3139: ac_cpp_err=yes
3140: fi
3141: if test -z "$ac_cpp_err"; then
3142: # Broken: success on invalid input.
3143: continue
3144: else
3145: echo "$as_me: failed program was:" >&5
3146: sed 's/^/| /' conftest.$ac_ext >&5
3147:
3148: # Passes both tests.
3149: ac_preproc_ok=:
3150: break
3151: fi
3152: rm -f conftest.err conftest.$ac_ext
3153:
3154: done
3155: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3156: rm -f conftest.err conftest.$ac_ext
3157: if $ac_preproc_ok; then
3158: :
3159: else
3160: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3161: See \`config.log' for more details." >&5
3162: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3163: See \`config.log' for more details." >&2;}
3164: { (exit 1); exit 1; }; }
3165: fi
3166:
3167: ac_ext=c
3168: ac_cpp='$CPP $CPPFLAGS'
3169: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172:
3173:
3174: echo "$as_me:$LINENO: checking for egrep" >&5
3175: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3176: if test "${ac_cv_prog_egrep+set}" = set; then
3177: echo $ECHO_N "(cached) $ECHO_C" >&6
3178: else
3179: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3180: then ac_cv_prog_egrep='grep -E'
3181: else ac_cv_prog_egrep='egrep'
3182: fi
3183: fi
3184: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3185: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3186: EGREP=$ac_cv_prog_egrep
3187:
3188:
3189: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3190: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3191: if test "${ac_cv_header_stdc+set}" = set; then
3192: echo $ECHO_N "(cached) $ECHO_C" >&6
3193: else
3194: cat >conftest.$ac_ext <<_ACEOF
3195: #line $LINENO "configure"
3196: /* confdefs.h. */
3197: _ACEOF
3198: cat confdefs.h >>conftest.$ac_ext
3199: cat >>conftest.$ac_ext <<_ACEOF
3200: /* end confdefs.h. */
3201: #include <stdlib.h>
3202: #include <stdarg.h>
3203: #include <string.h>
3204: #include <float.h>
3205:
3206: int
3207: main ()
3208: {
3209:
3210: ;
3211: return 0;
3212: }
3213: _ACEOF
3214: rm -f conftest.$ac_objext
3215: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3216: (eval $ac_compile) 2>&5
3217: ac_status=$?
3218: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219: (exit $ac_status); } &&
3220: { ac_try='test -s conftest.$ac_objext'
3221: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222: (eval $ac_try) 2>&5
3223: ac_status=$?
3224: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225: (exit $ac_status); }; }; then
3226: ac_cv_header_stdc=yes
3227: else
3228: echo "$as_me: failed program was:" >&5
3229: sed 's/^/| /' conftest.$ac_ext >&5
3230:
3231: ac_cv_header_stdc=no
3232: fi
3233: rm -f conftest.$ac_objext conftest.$ac_ext
3234:
3235: if test $ac_cv_header_stdc = yes; then
3236: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3237: cat >conftest.$ac_ext <<_ACEOF
3238: #line $LINENO "configure"
3239: /* confdefs.h. */
3240: _ACEOF
3241: cat confdefs.h >>conftest.$ac_ext
3242: cat >>conftest.$ac_ext <<_ACEOF
3243: /* end confdefs.h. */
3244: #include <string.h>
3245:
3246: _ACEOF
3247: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3248: $EGREP "memchr" >/dev/null 2>&1; then
3249: :
3250: else
3251: ac_cv_header_stdc=no
3252: fi
3253: rm -f conftest*
3254:
3255: fi
3256:
3257: if test $ac_cv_header_stdc = yes; then
3258: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3259: cat >conftest.$ac_ext <<_ACEOF
3260: #line $LINENO "configure"
3261: /* confdefs.h. */
3262: _ACEOF
3263: cat confdefs.h >>conftest.$ac_ext
3264: cat >>conftest.$ac_ext <<_ACEOF
3265: /* end confdefs.h. */
3266: #include <stdlib.h>
3267:
3268: _ACEOF
3269: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3270: $EGREP "free" >/dev/null 2>&1; then
3271: :
3272: else
3273: ac_cv_header_stdc=no
3274: fi
3275: rm -f conftest*
3276:
3277: fi
3278:
3279: if test $ac_cv_header_stdc = yes; then
3280: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3281: if test "$cross_compiling" = yes; then
3282: :
3283: else
3284: cat >conftest.$ac_ext <<_ACEOF
3285: #line $LINENO "configure"
3286: /* confdefs.h. */
3287: _ACEOF
3288: cat confdefs.h >>conftest.$ac_ext
3289: cat >>conftest.$ac_ext <<_ACEOF
3290: /* end confdefs.h. */
3291: #include <ctype.h>
3292: #if ((' ' & 0x0FF) == 0x020)
3293: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3294: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3295: #else
3296: # define ISLOWER(c) \
3297: (('a' <= (c) && (c) <= 'i') \
3298: || ('j' <= (c) && (c) <= 'r') \
3299: || ('s' <= (c) && (c) <= 'z'))
3300: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3301: #endif
3302:
3303: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3304: int
3305: main ()
3306: {
3307: int i;
3308: for (i = 0; i < 256; i++)
3309: if (XOR (islower (i), ISLOWER (i))
3310: || toupper (i) != TOUPPER (i))
3311: exit(2);
3312: exit (0);
3313: }
3314: _ACEOF
3315: rm -f conftest$ac_exeext
3316: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3317: (eval $ac_link) 2>&5
3318: ac_status=$?
3319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3321: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322: (eval $ac_try) 2>&5
3323: ac_status=$?
3324: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325: (exit $ac_status); }; }; then
3326: :
3327: else
3328: echo "$as_me: program exited with status $ac_status" >&5
3329: echo "$as_me: failed program was:" >&5
3330: sed 's/^/| /' conftest.$ac_ext >&5
3331:
3332: ( exit $ac_status )
3333: ac_cv_header_stdc=no
3334: fi
3335: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3336: fi
3337: fi
3338: fi
3339: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3340: echo "${ECHO_T}$ac_cv_header_stdc" >&6
3341: if test $ac_cv_header_stdc = yes; then
3342:
3343: cat >>confdefs.h <<\_ACEOF
3344: @%:@define STDC_HEADERS 1
3345: _ACEOF
3346:
3347: fi
3348:
3349: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3350:
3351:
3352:
3353:
3354:
3355:
3356:
3357:
3358:
3359: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3360: inttypes.h stdint.h unistd.h
3361: do
3362: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3363: echo "$as_me:$LINENO: checking for $ac_header" >&5
3364: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3365: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3366: echo $ECHO_N "(cached) $ECHO_C" >&6
3367: else
3368: cat >conftest.$ac_ext <<_ACEOF
3369: #line $LINENO "configure"
3370: /* confdefs.h. */
3371: _ACEOF
3372: cat confdefs.h >>conftest.$ac_ext
3373: cat >>conftest.$ac_ext <<_ACEOF
3374: /* end confdefs.h. */
3375: $ac_includes_default
3376:
3377: @%:@include <$ac_header>
3378: _ACEOF
3379: rm -f conftest.$ac_objext
3380: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381: (eval $ac_compile) 2>&5
3382: ac_status=$?
3383: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384: (exit $ac_status); } &&
3385: { ac_try='test -s conftest.$ac_objext'
3386: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387: (eval $ac_try) 2>&5
3388: ac_status=$?
3389: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390: (exit $ac_status); }; }; then
3391: eval "$as_ac_Header=yes"
3392: else
3393: echo "$as_me: failed program was:" >&5
3394: sed 's/^/| /' conftest.$ac_ext >&5
3395:
3396: eval "$as_ac_Header=no"
3397: fi
3398: rm -f conftest.$ac_objext conftest.$ac_ext
3399: fi
3400: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3401: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3402: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3403: cat >>confdefs.h <<_ACEOF
3404: @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3405: _ACEOF
3406:
3407: fi
3408:
3409: done
3410:
3411:
3412:
3413: for ac_header in sys/sockio.h
3414: do
3415: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3416: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3417: echo "$as_me:$LINENO: checking for $ac_header" >&5
3418: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3419: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3420: echo $ECHO_N "(cached) $ECHO_C" >&6
3421: fi
3422: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3423: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3424: else
3425: # Is the header compilable?
3426: echo "$as_me:$LINENO: checking $ac_header usability" >&5
3427: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3428: cat >conftest.$ac_ext <<_ACEOF
3429: #line $LINENO "configure"
3430: /* confdefs.h. */
3431: _ACEOF
3432: cat confdefs.h >>conftest.$ac_ext
3433: cat >>conftest.$ac_ext <<_ACEOF
3434: /* end confdefs.h. */
3435: $ac_includes_default
3436: @%:@include <$ac_header>
3437: _ACEOF
3438: rm -f conftest.$ac_objext
3439: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3440: (eval $ac_compile) 2>&5
3441: ac_status=$?
3442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443: (exit $ac_status); } &&
3444: { ac_try='test -s conftest.$ac_objext'
3445: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446: (eval $ac_try) 2>&5
3447: ac_status=$?
3448: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449: (exit $ac_status); }; }; then
3450: ac_header_compiler=yes
3451: else
3452: echo "$as_me: failed program was:" >&5
3453: sed 's/^/| /' conftest.$ac_ext >&5
3454:
3455: ac_header_compiler=no
3456: fi
3457: rm -f conftest.$ac_objext conftest.$ac_ext
3458: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3459: echo "${ECHO_T}$ac_header_compiler" >&6
3460:
3461: # Is the header present?
3462: echo "$as_me:$LINENO: checking $ac_header presence" >&5
3463: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3464: cat >conftest.$ac_ext <<_ACEOF
3465: #line $LINENO "configure"
3466: /* confdefs.h. */
3467: _ACEOF
3468: cat confdefs.h >>conftest.$ac_ext
3469: cat >>conftest.$ac_ext <<_ACEOF
3470: /* end confdefs.h. */
3471: @%:@include <$ac_header>
3472: _ACEOF
3473: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3474: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3475: ac_status=$?
3476: grep -v '^ *+' conftest.er1 >conftest.err
3477: rm -f conftest.er1
3478: cat conftest.err >&5
3479: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480: (exit $ac_status); } >/dev/null; then
3481: if test -s conftest.err; then
3482: ac_cpp_err=$ac_c_preproc_warn_flag
3483: else
3484: ac_cpp_err=
3485: fi
3486: else
3487: ac_cpp_err=yes
3488: fi
3489: if test -z "$ac_cpp_err"; then
3490: ac_header_preproc=yes
3491: else
3492: echo "$as_me: failed program was:" >&5
3493: sed 's/^/| /' conftest.$ac_ext >&5
3494:
3495: ac_header_preproc=no
3496: fi
3497: rm -f conftest.err conftest.$ac_ext
3498: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3499: echo "${ECHO_T}$ac_header_preproc" >&6
3500:
3501: # So? What about this header?
3502: case $ac_header_compiler:$ac_header_preproc in
3503: yes:no )
3504: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3505: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3506: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3507: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3508: (
3509: cat <<\_ASBOX
3510: @%:@@%:@ ------------------------------------ @%:@@%:@
3511: @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
3512: @%:@@%:@ ------------------------------------ @%:@@%:@
3513: _ASBOX
3514: ) |
3515: sed "s/^/$as_me: WARNING: /" >&2
3516: ;;
3517: no:yes )
3518: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3519: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3520: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3521: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3522: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3523: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3524: (
3525: cat <<\_ASBOX
3526: @%:@@%:@ ------------------------------------ @%:@@%:@
3527: @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
3528: @%:@@%:@ ------------------------------------ @%:@@%:@
3529: _ASBOX
3530: ) |
3531: sed "s/^/$as_me: WARNING: /" >&2
3532: ;;
3533: esac
3534: echo "$as_me:$LINENO: checking for $ac_header" >&5
3535: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3536: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3537: echo $ECHO_N "(cached) $ECHO_C" >&6
3538: else
3539: eval "$as_ac_Header=$ac_header_preproc"
3540: fi
3541: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3542: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3543:
3544: fi
3545: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3546: cat >>confdefs.h <<_ACEOF
3547: @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3548: _ACEOF
3549:
3550: fi
3551:
3552: done
3553:
3554:
3555:
3556: echo "$as_me:$LINENO: checking machine endianess" >&5
3557: echo $ECHO_N "checking machine endianess... $ECHO_C" >&6
3558:
3559: cat > conftest.c << EOF
3560: # include <stdio.h>
3561: # include <stdlib.h>
3562:
3563: int main()
3564: {
3565: union
3566: {
3567: short s;
3568: char c[sizeof(short)];
3569: } un;
3570:
3571: un.s = 0x0102;
3572: if (sizeof (short) == 2)
3573: {
3574: if (un.c [0] == 1 && un.c [1] == 2)
3575: {
3576: printf("B\n");
3577: }
3578: else
3579: {
3580: if (un.c [0] == 2 && un.c [1] == 1)
3581: {
3582: printf("L\n");
3583: }
3584: }
3585: }
3586: else
3587: {
3588: printf("?\n");
3589: }
3590: return (EXIT_SUCCESS);
3591: }
3592: EOF
3593: ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS > /dev/null 2>&1
3594: # Oopz 4.3 BSD doesn't have this. Sorry.
3595: if test ! -x conftest ; then
3596: ac_cv_libnet_endianess=unknown
3597: else
3598: ./conftest > conftest.out
3599: result=`cat conftest.out`
3600: if test $result = "B"; then
3601: ac_cv_libnet_endianess=big
3602: elif test $result = "L"; then
3603: ac_cv_libnet_endianess=lil
3604: else
3605: ac_cv_libnet_endianess=unknown
3606: fi
3607: fi
3608: rm -f conftest* core core.conftest
3609:
3610: echo "$as_me:$LINENO: result: $ac_cv_libnet_endianess" >&5
3611: echo "${ECHO_T}$ac_cv_libnet_endianess" >&6
3612:
3613: if test $ac_cv_libnet_endianess = big ; then
3614: cat >>confdefs.h <<\_ACEOF
3615: @%:@define LIBNET_BIG_ENDIAN 1
3616: _ACEOF
3617:
3618: ENDIANESS="LIBNET_BIG_ENDIAN"
3619: LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
3620: elif test $ac_cv_libnet_endianess = lil ; then
3621: cat >>confdefs.h <<\_ACEOF
3622: @%:@define LIBNET_LIL_ENDIAN 1
3623: _ACEOF
3624:
3625: ENDIANESS="LIBNET_LIL_ENDIAN"
3626: LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
3627: fi
3628:
3629: echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
3630: echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
3631: if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
3632: echo $ECHO_N "(cached) $ECHO_C" >&6
3633: else
3634: case "$target_cpu" in
3635:
3636: alpha|hp*|mips|sparc)
3637: ac_cv_lbl_unaligned_fail=yes
3638: ;;
3639:
3640: *)
3641: cat >conftest.c <<EOF
3642: # include <sys/types.h>
3643: # include <sys/wait.h>
3644: # include <stdio.h>
3645: unsigned char a[5] = { 1, 2, 3, 4, 5 };
3646: main()
3647: {
3648: unsigned int i;
3649: pid_t pid;
3650: int status;
3651: /* avoid "core dumped" message */
3652: pid = fork();
3653: if (pid < 0)
3654: {
3655: exit(2);
3656: }
3657: if (pid > 0)
3658: {
3659: /* parent */
3660: pid = waitpid(pid, &status, 0);
3661: if (pid < 0)
3662: {
3663: exit(3);
3664: }
3665: exit(!WIFEXITED(status));
3666: }
3667: /* child */
3668: i = *(unsigned int *)&a[1];
3669: printf("%d\n", i);
3670: exit(0);
3671: }
3672: EOF
3673: ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
3674: conftest.c $LIBS > /dev/null 2>&1
3675: # Oopz 4.3 BSD doesn't have this. Sorry.
3676: if test ! -x conftest ; then
3677: ac_cv_lbl_unaligned_fail=yes
3678: else
3679: ./conftest > conftest.out
3680: if test ! -s conftest.out ; then
3681: ac_cv_lbl_unaligned_fail=yes
3682: else
3683: ac_cv_lbl_unaligned_fail=no
3684: fi
3685: fi
3686: rm -f conftest* core core.conftest
3687: ;;
3688: esac
3689: fi
3690:
3691: echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
3692: echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
3693: if test $ac_cv_lbl_unaligned_fail = yes ; then
3694: cat >>confdefs.h <<\_ACEOF
3695: @%:@define LBL_ALIGN 1
3696: _ACEOF
3697:
3698: fi
3699:
3700:
3701:
3702:
3703:
3704:
3705:
3706:
3707:
3708:
3709: if test $ac_cv_c_compiler_gnu = yes; then
3710: echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3711: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3712: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3713: echo $ECHO_N "(cached) $ECHO_C" >&6
3714: else
3715: ac_pattern="Autoconf.*'x'"
3716: cat >conftest.$ac_ext <<_ACEOF
3717: #line $LINENO "configure"
3718: /* confdefs.h. */
3719: _ACEOF
3720: cat confdefs.h >>conftest.$ac_ext
3721: cat >>conftest.$ac_ext <<_ACEOF
3722: /* end confdefs.h. */
3723: #include <sgtty.h>
3724: Autoconf TIOCGETP
3725: _ACEOF
3726: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3727: $EGREP "$ac_pattern" >/dev/null 2>&1; then
3728: ac_cv_prog_gcc_traditional=yes
3729: else
3730: ac_cv_prog_gcc_traditional=no
3731: fi
3732: rm -f conftest*
3733:
3734:
3735: if test $ac_cv_prog_gcc_traditional = no; then
3736: cat >conftest.$ac_ext <<_ACEOF
3737: #line $LINENO "configure"
3738: /* confdefs.h. */
3739: _ACEOF
3740: cat confdefs.h >>conftest.$ac_ext
3741: cat >>conftest.$ac_ext <<_ACEOF
3742: /* end confdefs.h. */
3743: #include <termio.h>
3744: Autoconf TCGETA
3745: _ACEOF
3746: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3747: $EGREP "$ac_pattern" >/dev/null 2>&1; then
3748: ac_cv_prog_gcc_traditional=yes
3749: fi
3750: rm -f conftest*
3751:
3752: fi
3753: fi
3754: echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3755: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3756: if test $ac_cv_prog_gcc_traditional = yes; then
3757: CC="$CC -traditional"
3758: fi
3759: fi
3760:
3761: if test "$GCC" = yes ; then
3762: CFLAGS="$CFLAGS -Wall"
3763: fi
3764:
3765:
3766:
3767:
3768: for ac_func in strerror
3769: do
3770: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3771: echo "$as_me:$LINENO: checking for $ac_func" >&5
3772: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3773: if eval "test \"\${$as_ac_var+set}\" = set"; then
3774: echo $ECHO_N "(cached) $ECHO_C" >&6
3775: else
3776: cat >conftest.$ac_ext <<_ACEOF
3777: #line $LINENO "configure"
3778: /* confdefs.h. */
3779: _ACEOF
3780: cat confdefs.h >>conftest.$ac_ext
3781: cat >>conftest.$ac_ext <<_ACEOF
3782: /* end confdefs.h. */
3783: /* System header to define __stub macros and hopefully few prototypes,
3784: which can conflict with char $ac_func (); below.
3785: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786: <limits.h> exists even on freestanding compilers. */
3787: #ifdef __STDC__
3788: # include <limits.h>
3789: #else
3790: # include <assert.h>
3791: #endif
3792: /* Override any gcc2 internal prototype to avoid an error. */
3793: #ifdef __cplusplus
3794: extern "C"
3795: {
3796: #endif
3797: /* We use char because int might match the return type of a gcc2
3798: builtin and then its argument prototype would still apply. */
3799: char $ac_func ();
3800: /* The GNU C library defines this for functions which it implements
3801: to always fail with ENOSYS. Some functions are actually named
3802: something starting with __ and the normal name is an alias. */
3803: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3804: choke me
3805: #else
3806: char (*f) () = $ac_func;
3807: #endif
3808: #ifdef __cplusplus
3809: }
3810: #endif
3811:
3812: int
3813: main ()
3814: {
3815: return f != $ac_func;
3816: ;
3817: return 0;
3818: }
3819: _ACEOF
3820: rm -f conftest.$ac_objext conftest$ac_exeext
3821: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3822: (eval $ac_link) 2>&5
3823: ac_status=$?
3824: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825: (exit $ac_status); } &&
3826: { ac_try='test -s conftest$ac_exeext'
3827: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828: (eval $ac_try) 2>&5
3829: ac_status=$?
3830: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831: (exit $ac_status); }; }; then
3832: eval "$as_ac_var=yes"
3833: else
3834: echo "$as_me: failed program was:" >&5
3835: sed 's/^/| /' conftest.$ac_ext >&5
3836:
3837: eval "$as_ac_var=no"
3838: fi
3839: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3840: fi
3841: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3842: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3843: if test `eval echo '${'$as_ac_var'}'` = yes; then
3844: cat >>confdefs.h <<_ACEOF
3845: @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3846: _ACEOF
3847:
3848: fi
3849: done
3850:
3851:
3852: echo "$as_me:$LINENO: checking link-layer packet interface type" >&5
3853: echo $ECHO_N "checking link-layer packet interface type... $ECHO_C" >&6
3854:
3855: if test -r /dev/bpf0 ; then
3856: LIB@&t@OBJS="$LIB@&t@OBJS libnet_link_bpf.$ac_objext"
3857: echo "$as_me:$LINENO: result: found bpf" >&5
3858: echo "${ECHO_T}found bpf" >&6
3859: elif test -r /usr/include/net/pfilt.h ; then
3860: LIB@&t@OBJS="$LIB@&t@OBJS libnet_link_pf.$ac_objext"
3861: echo "$as_me:$LINENO: result: found pf" >&5
3862: echo "${ECHO_T}found pf" >&6
3863: elif test -r /dev/nit ; then
3864: LIB@&t@OBJS="$LIB@&t@OBJS libnet_link_snit.$ac_objext"
3865: echo "$as_me:$LINENO: result: found snit" >&5
3866: echo "${ECHO_T}found snit" >&6
3867: elif test -r /usr/include/sys/net/nit.h ; then
3868: LIB@&t@OBJS="$LIB@&t@OBJS libnet_link_nit.$ac_objext"
3869: echo "$as_me:$LINENO: result: found nit" >&5
3870: echo "${ECHO_T}found nit" >&6
3871: elif test -r /usr/include/net/raw.h ; then
3872: LIB@&t@OBJS="$LIB@&t@OBJS libnet_link_snoop.$ac_objext"
3873: echo "$as_me:$LINENO: result: found snoop" >&5
3874: echo "${ECHO_T}found snoop" >&6
3875: elif test -r /usr/include/sys/dlpi.h ; then
3876: LIB@&t@OBJS="$LIB@&t@OBJS libnet_link_dlpi.$ac_objext"
3877: echo "$as_me:$LINENO: result: found dlpi" >&5
3878: echo "${ECHO_T}found dlpi" >&6
3879: cat >>confdefs.h <<\_ACEOF
3880: @%:@define HAVE_DLPI 1
3881: _ACEOF
3882:
3883: elif test -r /usr/include/linux/socket.h ; then
3884: LIB@&t@OBJS="$LIB@&t@OBJS libnet_link_linux.$ac_objext"
3885: echo "$as_me:$LINENO: result: found linux primitives" >&5
3886: echo "${ECHO_T}found linux primitives" >&6
3887:
3888: echo "$as_me:$LINENO: checking for packet socket (PF_SOCKET)" >&5
3889: echo $ECHO_N "checking for packet socket (PF_SOCKET)... $ECHO_C" >&6
3890: if test "${ac_libnet_have_packet_socket+set}" = set; then
3891: echo $ECHO_N "(cached) $ECHO_C" >&6
3892: else
3893: case "$target_os" in
3894:
3895: linux)
3896: ac_libnet_have_packet_socket = no
3897: ;;
3898: *)
3899:
3900: cat > pf_packet-test.c << EOF
3901: #include <stdio.h>
3902: #include <errno.h>
3903: #include <stdlib.h>
3904: #include <netinet/in.h>
3905: #include <sys/socket.h>
3906: #include <features.h> /* for the glibc version number */
3907: #if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
3908: #include <netpacket/packet.h>
3909: #include <net/ethernet.h> /* the L2 protocols */
3910: #else
3911: #include <asm/types.h>
3912: #include <linux/if_packet.h>
3913: #include <linux/if_ether.h> /* The L2 protocols */
3914: #endif
3915:
3916: #ifndef SOL_PACKET
3917: #define SOL_PACKET 263
3918: #endif /* SOL_PACKET */
3919:
3920: int
3921: main(int argc, char **argv)
3922: {
3923: int fd;
3924:
3925: fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
3926: if (fd == -1)
3927: {
3928: if (errno == EPERM)
3929: {
3930: /* user's UID != 0 */
3931: printf("probably");
3932: exit (EXIT_FAILURE);
3933: }
3934: printf("no");
3935: exit (EXIT_FAILURE);
3936: }
3937: printf("yes");
3938: exit (EXIT_SUCCESS);
3939: }
3940: EOF
3941: ${CC-cc} -o pf_packet-test $CFLAGS pf_packet-test.c >/dev/null 2>&1
3942:
3943: # Oopz 4.3 BSD doesn't have this. Sorry.
3944: if test ! -x ./pf_packet-test ; then
3945: ac_libnet_have_packet_socket=choked
3946: else
3947: ac_libnet_have_packet_socket=`./pf_packet-test`;
3948: fi
3949: if test $ac_libnet_have_packet_socket = choked; then
3950: echo "$as_me:$LINENO: result: test program compile choked... assuming no" >&5
3951: echo "${ECHO_T}test program compile choked... assuming no" >&6
3952: elif test $ac_libnet_have_packet_socket = yes; then
3953: echo "$as_me:$LINENO: result: yes" >&5
3954: echo "${ECHO_T}yes" >&6
3955: elif test $ac_libnet_have_packet_socket = probably; then
3956: echo "$as_me:$LINENO: result: test program got EPERM... assuming yes" >&5
3957: echo "${ECHO_T}test program got EPERM... assuming yes" >&6
3958: elif test $ac_libnet_have_packet_socket = no; then
3959: echo "$as_me:$LINENO: result: no" >&5
3960: echo "${ECHO_T}no" >&6
3961: fi
3962:
3963: rm -f pf_packet-test* core core.pf_packet-test
3964: ;;
3965: esac
3966: fi
3967:
3968:
3969: if test $ac_libnet_have_packet_socket = yes -o $ac_libnet_have_packet_socket = probably; then
3970: cat >>confdefs.h <<\_ACEOF
3971: @%:@define HAVE_PACKET_SOCKET 1
3972: _ACEOF
3973:
3974: fi
3975:
3976: echo "$as_me:$LINENO: checking for Linux proc filesystem" >&5
3977: echo $ECHO_N "checking for Linux proc filesystem... $ECHO_C" >&6
3978: if test "${ac_cv_libnet_linux_procfs+set}" = set; then
3979: echo $ECHO_N "(cached) $ECHO_C" >&6
3980: else
3981: if test "x`cat /proc/sys/kernel/ostype 2>&-`" = "xLinux" ; then
3982: ac_cv_libnet_linux_procfs=yes
3983: else
3984: ac_cv_libnet_linux_procfs=no
3985: fi
3986: fi
3987:
3988: echo "$as_me:$LINENO: result: $ac_cv_libnet_linux_procfs" >&5
3989: echo "${ECHO_T}$ac_cv_libnet_linux_procfs" >&6
3990: if test $ac_cv_libnet_linux_procfs = yes ; then
3991:
3992: cat >>confdefs.h <<\_ACEOF
3993: @%:@define HAVE_LINUX_PROCFS 1
3994: _ACEOF
3995:
3996: fi
3997: elif test -c /dev/bpf0 ; then # check again in case not readable
3998: LIB@&t@OBJS="$LIB@&t@OBJS libnet_link_bpf.$ac_objext"
3999: echo "$as_me:$LINENO: result: found bpf" >&5
4000: echo "${ECHO_T}found bpf" >&6
4001: elif test -c /dev/nit ; then # check again in case not readable
4002: LIB@&t@OBJS="$LIB@&t@OBJS libnet_link_snit.$ac_objext"
4003: echo "$as_me:$LINENO: result: found snit" >&5
4004: echo "${ECHO_T}found snit" >&6
4005: elif test "$target_os" = "cygwin" ; then
4006: LIB@&t@OBJS="$LIB@&t@OBJS libnet_link_win32.$ac_objext"
4007: echo "$as_me:$LINENO: result: found win32 wpcap" >&5
4008: echo "${ECHO_T}found win32 wpcap" >&6
4009: else
4010: LIB@&t@OBJS="$LIB@&t@OBJS libnet_link_none.$ac_objext"
4011: { echo "$as_me:$LINENO: WARNING: could not find a link-layer packet interface" >&5
4012: echo "$as_me: WARNING: could not find a link-layer packet interface" >&2;}
4013: { echo "$as_me:$LINENO: WARNING: link-layer packet injection will not be available" >&5
4014: echo "$as_me: WARNING: link-layer packet injection will not be available" >&2;}
4015: fi
4016:
4017: echo -n "scanning available packet construction modules: "
4018: for dir in src/*build*c ; do
4019: echo $dir | sed -e /src\\/libnet_build_/s/// | sed -e /\\.c/s/// | tr \\n \\040
4020: done
4021: echo ""
4022:
4023:
4024: case "$target_os" in
4025:
4026: *linux*)
4027: cat >>confdefs.h <<\_ACEOF
4028: @%:@define _BSD_SOURCE 1
4029: _ACEOF
4030:
4031: cat >>confdefs.h <<\_ACEOF
4032: @%:@define __BSD_SOURCE 1
4033: _ACEOF
4034:
4035: cat >>confdefs.h <<\_ACEOF
4036: @%:@define __FAVOR_BSD 1
4037: _ACEOF
4038:
4039: LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
4040:
4041: for ac_header in net/ethernet.h
4042: do
4043: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4044: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4045: echo "$as_me:$LINENO: checking for $ac_header" >&5
4046: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4047: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4048: echo $ECHO_N "(cached) $ECHO_C" >&6
4049: fi
4050: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4051: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4052: else
4053: # Is the header compilable?
4054: echo "$as_me:$LINENO: checking $ac_header usability" >&5
4055: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4056: cat >conftest.$ac_ext <<_ACEOF
4057: #line $LINENO "configure"
4058: /* confdefs.h. */
4059: _ACEOF
4060: cat confdefs.h >>conftest.$ac_ext
4061: cat >>conftest.$ac_ext <<_ACEOF
4062: /* end confdefs.h. */
4063: $ac_includes_default
4064: @%:@include <$ac_header>
4065: _ACEOF
4066: rm -f conftest.$ac_objext
4067: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068: (eval $ac_compile) 2>&5
4069: ac_status=$?
4070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071: (exit $ac_status); } &&
4072: { ac_try='test -s conftest.$ac_objext'
4073: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074: (eval $ac_try) 2>&5
4075: ac_status=$?
4076: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077: (exit $ac_status); }; }; then
4078: ac_header_compiler=yes
4079: else
4080: echo "$as_me: failed program was:" >&5
4081: sed 's/^/| /' conftest.$ac_ext >&5
4082:
4083: ac_header_compiler=no
4084: fi
4085: rm -f conftest.$ac_objext conftest.$ac_ext
4086: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4087: echo "${ECHO_T}$ac_header_compiler" >&6
4088:
4089: # Is the header present?
4090: echo "$as_me:$LINENO: checking $ac_header presence" >&5
4091: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4092: cat >conftest.$ac_ext <<_ACEOF
4093: #line $LINENO "configure"
4094: /* confdefs.h. */
4095: _ACEOF
4096: cat confdefs.h >>conftest.$ac_ext
4097: cat >>conftest.$ac_ext <<_ACEOF
4098: /* end confdefs.h. */
4099: @%:@include <$ac_header>
4100: _ACEOF
4101: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4102: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4103: ac_status=$?
4104: grep -v '^ *+' conftest.er1 >conftest.err
4105: rm -f conftest.er1
4106: cat conftest.err >&5
4107: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108: (exit $ac_status); } >/dev/null; then
4109: if test -s conftest.err; then
4110: ac_cpp_err=$ac_c_preproc_warn_flag
4111: else
4112: ac_cpp_err=
4113: fi
4114: else
4115: ac_cpp_err=yes
4116: fi
4117: if test -z "$ac_cpp_err"; then
4118: ac_header_preproc=yes
4119: else
4120: echo "$as_me: failed program was:" >&5
4121: sed 's/^/| /' conftest.$ac_ext >&5
4122:
4123: ac_header_preproc=no
4124: fi
4125: rm -f conftest.err conftest.$ac_ext
4126: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4127: echo "${ECHO_T}$ac_header_preproc" >&6
4128:
4129: # So? What about this header?
4130: case $ac_header_compiler:$ac_header_preproc in
4131: yes:no )
4132: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4133: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4134: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4135: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4136: (
4137: cat <<\_ASBOX
4138: @%:@@%:@ ------------------------------------ @%:@@%:@
4139: @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4140: @%:@@%:@ ------------------------------------ @%:@@%:@
4141: _ASBOX
4142: ) |
4143: sed "s/^/$as_me: WARNING: /" >&2
4144: ;;
4145: no:yes )
4146: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4147: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4148: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4149: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4150: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4151: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4152: (
4153: cat <<\_ASBOX
4154: @%:@@%:@ ------------------------------------ @%:@@%:@
4155: @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4156: @%:@@%:@ ------------------------------------ @%:@@%:@
4157: _ASBOX
4158: ) |
4159: sed "s/^/$as_me: WARNING: /" >&2
4160: ;;
4161: esac
4162: echo "$as_me:$LINENO: checking for $ac_header" >&5
4163: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4164: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4165: echo $ECHO_N "(cached) $ECHO_C" >&6
4166: else
4167: eval "$as_ac_Header=$ac_header_preproc"
4168: fi
4169: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4170: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4171:
4172: fi
4173: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4174: cat >>confdefs.h <<_ACEOF
4175: @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4176: _ACEOF
4177: \
4178: LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H"
4179: fi
4180:
4181: done
4182:
4183: ;;
4184:
4185: *freebsd*)
4186: cat >>confdefs.h <<\_ACEOF
4187: @%:@define LIBNET_BSDISH_OS 1
4188: _ACEOF
4189:
4190: cat >>confdefs.h <<\_ACEOF
4191: @%:@define LIBNET_BSD_BYTE_SWAP 1
4192: _ACEOF
4193:
4194: cat >>confdefs.h <<\_ACEOF
4195: @%:@define HAVE_SOCKADDR_SA_LEN 1
4196: _ACEOF
4197:
4198: LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DHAVE_SOCKADDR_SA_LEN"
4199: ;;
4200:
4201: *netbsd*)
4202: cat >>confdefs.h <<\_ACEOF
4203: @%:@define LIBNET_BSDISH_OS 1
4204: _ACEOF
4205:
4206: cat >>confdefs.h <<\_ACEOF
4207: @%:@define LIBNET_BSD_BYTE_SWAP 1
4208: _ACEOF
4209:
4210: LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
4211: ;;
4212:
4213: *openbsd*)
4214: cat >>confdefs.h <<\_ACEOF
4215: @%:@define LIBNET_BSDISH_OS 1
4216: _ACEOF
4217:
4218: cat >>confdefs.h <<\_ACEOF
4219: @%:@define HAVE_SOCKADDR_SA_LEN 1
4220: _ACEOF
4221:
4222: LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS"
4223: ;;
4224:
4225: *bsdi*)
4226: cat >>confdefs.h <<\_ACEOF
4227: @%:@define LIBNET_BSDISH_OS 1
4228: _ACEOF
4229:
4230: cat >>confdefs.h <<\_ACEOF
4231: @%:@define LIBNET_BSD_BYTE_SWAP 1
4232: _ACEOF
4233:
4234: LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
4235: ;;
4236:
4237: *darwin*)
4238: cat >>confdefs.h <<\_ACEOF
4239: @%:@define HAVE_SOCKADDR_SA_LEN 1
4240: _ACEOF
4241:
4242: LIBNET_CONFIG_DEFINES="-DHAVE_SOCKADDR_SA_LEN"
4243: ;;
4244:
4245: *solaris*)
4246: cat >>confdefs.h <<\_ACEOF
4247: @%:@define HAVE_SOLARIS 1
4248: _ACEOF
4249:
4250:
4251:
4252: for ac_header in sys/bufmod.h sys/dlpi_ext.h
4253: do
4254: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4255: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4256: echo "$as_me:$LINENO: checking for $ac_header" >&5
4257: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4258: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4259: echo $ECHO_N "(cached) $ECHO_C" >&6
4260: fi
4261: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4262: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4263: else
4264: # Is the header compilable?
4265: echo "$as_me:$LINENO: checking $ac_header usability" >&5
4266: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4267: cat >conftest.$ac_ext <<_ACEOF
4268: #line $LINENO "configure"
4269: /* confdefs.h. */
4270: _ACEOF
4271: cat confdefs.h >>conftest.$ac_ext
4272: cat >>conftest.$ac_ext <<_ACEOF
4273: /* end confdefs.h. */
4274: $ac_includes_default
4275: @%:@include <$ac_header>
4276: _ACEOF
4277: rm -f conftest.$ac_objext
4278: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279: (eval $ac_compile) 2>&5
4280: ac_status=$?
4281: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282: (exit $ac_status); } &&
4283: { ac_try='test -s conftest.$ac_objext'
4284: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285: (eval $ac_try) 2>&5
4286: ac_status=$?
4287: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288: (exit $ac_status); }; }; then
4289: ac_header_compiler=yes
4290: else
4291: echo "$as_me: failed program was:" >&5
4292: sed 's/^/| /' conftest.$ac_ext >&5
4293:
4294: ac_header_compiler=no
4295: fi
4296: rm -f conftest.$ac_objext conftest.$ac_ext
4297: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4298: echo "${ECHO_T}$ac_header_compiler" >&6
4299:
4300: # Is the header present?
4301: echo "$as_me:$LINENO: checking $ac_header presence" >&5
4302: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4303: cat >conftest.$ac_ext <<_ACEOF
4304: #line $LINENO "configure"
4305: /* confdefs.h. */
4306: _ACEOF
4307: cat confdefs.h >>conftest.$ac_ext
4308: cat >>conftest.$ac_ext <<_ACEOF
4309: /* end confdefs.h. */
4310: @%:@include <$ac_header>
4311: _ACEOF
4312: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4313: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4314: ac_status=$?
4315: grep -v '^ *+' conftest.er1 >conftest.err
4316: rm -f conftest.er1
4317: cat conftest.err >&5
4318: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319: (exit $ac_status); } >/dev/null; then
4320: if test -s conftest.err; then
4321: ac_cpp_err=$ac_c_preproc_warn_flag
4322: else
4323: ac_cpp_err=
4324: fi
4325: else
4326: ac_cpp_err=yes
4327: fi
4328: if test -z "$ac_cpp_err"; then
4329: ac_header_preproc=yes
4330: else
4331: echo "$as_me: failed program was:" >&5
4332: sed 's/^/| /' conftest.$ac_ext >&5
4333:
4334: ac_header_preproc=no
4335: fi
4336: rm -f conftest.err conftest.$ac_ext
4337: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4338: echo "${ECHO_T}$ac_header_preproc" >&6
4339:
4340: # So? What about this header?
4341: case $ac_header_compiler:$ac_header_preproc in
4342: yes:no )
4343: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4344: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4345: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4346: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4347: (
4348: cat <<\_ASBOX
4349: @%:@@%:@ ------------------------------------ @%:@@%:@
4350: @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4351: @%:@@%:@ ------------------------------------ @%:@@%:@
4352: _ASBOX
4353: ) |
4354: sed "s/^/$as_me: WARNING: /" >&2
4355: ;;
4356: no:yes )
4357: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4358: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4359: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4360: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4361: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4362: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4363: (
4364: cat <<\_ASBOX
4365: @%:@@%:@ ------------------------------------ @%:@@%:@
4366: @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4367: @%:@@%:@ ------------------------------------ @%:@@%:@
4368: _ASBOX
4369: ) |
4370: sed "s/^/$as_me: WARNING: /" >&2
4371: ;;
4372: esac
4373: echo "$as_me:$LINENO: checking for $ac_header" >&5
4374: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4375: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4376: echo $ECHO_N "(cached) $ECHO_C" >&6
4377: else
4378: eval "$as_ac_Header=$ac_header_preproc"
4379: fi
4380: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4381: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4382:
4383: fi
4384: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4385: cat >>confdefs.h <<_ACEOF
4386: @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4387: _ACEOF
4388:
4389: fi
4390:
4391: done
4392:
4393: echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
4394: echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6
4395: if test -c /dev/dlpi; then
4396: echo "$as_me:$LINENO: result: yes" >&5
4397: echo "${ECHO_T}yes" >&6
4398: cat >>confdefs.h <<\_ACEOF
4399: @%:@define HAVE_DEV_DLPI 1
4400: _ACEOF
4401:
4402: else
4403: echo "$as_me:$LINENO: result: no" >&5
4404: echo "${ECHO_T}no" >&6
4405: dir="/dev/dlpi"
4406: echo "$as_me:$LINENO: checking for $dir directory" >&5
4407: echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6
4408: if test -d $dir ; then
4409: echo "$as_me:$LINENO: result: yes" >&5
4410: echo "${ECHO_T}yes" >&6
4411: cat >>confdefs.h <<_ACEOF
4412: @%:@define DLPI_DEV_PREFIX "$dir"
4413: _ACEOF
4414:
4415: else
4416: echo "$as_me:$LINENO: result: no" >&5
4417: echo "${ECHO_T}no" >&6
4418: fi
4419: fi
4420:
4421: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4422: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4423: if test "${ac_cv_lib_socket_socket+set}" = set; then
4424: echo $ECHO_N "(cached) $ECHO_C" >&6
4425: else
4426: ac_check_lib_save_LIBS=$LIBS
4427: LIBS="-lsocket $LIBS"
4428: cat >conftest.$ac_ext <<_ACEOF
4429: #line $LINENO "configure"
4430: /* confdefs.h. */
4431: _ACEOF
4432: cat confdefs.h >>conftest.$ac_ext
4433: cat >>conftest.$ac_ext <<_ACEOF
4434: /* end confdefs.h. */
4435:
4436: /* Override any gcc2 internal prototype to avoid an error. */
4437: #ifdef __cplusplus
4438: extern "C"
4439: #endif
4440: /* We use char because int might match the return type of a gcc2
4441: builtin and then its argument prototype would still apply. */
4442: char socket ();
4443: int
4444: main ()
4445: {
4446: socket ();
4447: ;
4448: return 0;
4449: }
4450: _ACEOF
4451: rm -f conftest.$ac_objext conftest$ac_exeext
4452: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4453: (eval $ac_link) 2>&5
4454: ac_status=$?
4455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456: (exit $ac_status); } &&
4457: { ac_try='test -s conftest$ac_exeext'
4458: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459: (eval $ac_try) 2>&5
4460: ac_status=$?
4461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462: (exit $ac_status); }; }; then
4463: ac_cv_lib_socket_socket=yes
4464: else
4465: echo "$as_me: failed program was:" >&5
4466: sed 's/^/| /' conftest.$ac_ext >&5
4467:
4468: ac_cv_lib_socket_socket=no
4469: fi
4470: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4471: LIBS=$ac_check_lib_save_LIBS
4472: fi
4473: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4474: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4475: if test $ac_cv_lib_socket_socket = yes; then
4476: cat >>confdefs.h <<_ACEOF
4477: @%:@define HAVE_LIBSOCKET 1
4478: _ACEOF
4479:
4480: LIBS="-lsocket $LIBS"
4481:
4482: else
4483: { { echo "$as_me:$LINENO: error: libsocket not found." >&5
4484: echo "$as_me: error: libsocket not found." >&2;}
4485: { (exit 1); exit 1; }; }
4486: fi
4487:
4488:
4489: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4490: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4491: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4492: echo $ECHO_N "(cached) $ECHO_C" >&6
4493: else
4494: ac_check_lib_save_LIBS=$LIBS
4495: LIBS="-lnsl $LIBS"
4496: cat >conftest.$ac_ext <<_ACEOF
4497: #line $LINENO "configure"
4498: /* confdefs.h. */
4499: _ACEOF
4500: cat confdefs.h >>conftest.$ac_ext
4501: cat >>conftest.$ac_ext <<_ACEOF
4502: /* end confdefs.h. */
4503:
4504: /* Override any gcc2 internal prototype to avoid an error. */
4505: #ifdef __cplusplus
4506: extern "C"
4507: #endif
4508: /* We use char because int might match the return type of a gcc2
4509: builtin and then its argument prototype would still apply. */
4510: char gethostbyname ();
4511: int
4512: main ()
4513: {
4514: gethostbyname ();
4515: ;
4516: return 0;
4517: }
4518: _ACEOF
4519: rm -f conftest.$ac_objext conftest$ac_exeext
4520: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4521: (eval $ac_link) 2>&5
4522: ac_status=$?
4523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524: (exit $ac_status); } &&
4525: { ac_try='test -s conftest$ac_exeext'
4526: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527: (eval $ac_try) 2>&5
4528: ac_status=$?
4529: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530: (exit $ac_status); }; }; then
4531: ac_cv_lib_nsl_gethostbyname=yes
4532: else
4533: echo "$as_me: failed program was:" >&5
4534: sed 's/^/| /' conftest.$ac_ext >&5
4535:
4536: ac_cv_lib_nsl_gethostbyname=no
4537: fi
4538: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4539: LIBS=$ac_check_lib_save_LIBS
4540: fi
4541: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4542: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4543: if test $ac_cv_lib_nsl_gethostbyname = yes; then
4544: cat >>confdefs.h <<_ACEOF
4545: @%:@define HAVE_LIBNSL 1
4546: _ACEOF
4547:
4548: LIBS="-lnsl $LIBS"
4549:
4550: else
4551: { { echo "$as_me:$LINENO: error: libnsl not found." >&5
4552: echo "$as_me: error: libnsl not found." >&2;}
4553: { (exit 1); exit 1; }; }
4554: fi
4555:
4556:
4557: case "`uname -r`" in
4558: 5.4)
4559: cat >>confdefs.h <<\_ACEOF
4560: @%:@define STUPID_SOLARIS_CHECKSUM_BUG 1
4561: _ACEOF
4562:
4563: ;;
4564: 5.5*)
4565: cat >>confdefs.h <<\_ACEOF
4566: @%:@define STUPID_SOLARIS_CHECKSUM_BUG 1
4567: _ACEOF
4568:
4569: ;;
4570: 5.8)
4571: cat >>confdefs.h <<\_ACEOF
4572: @%:@define STUPID_SOLARIS_CHECKSUM_BUG 1
4573: _ACEOF
4574:
4575: cat >>confdefs.h <<\_ACEOF
4576: @%:@define HAVE_SOLARIS_IPV6 1
4577: _ACEOF
4578:
4579: ;;
4580: 5.9)
4581: cat >>confdefs.h <<\_ACEOF
4582: @%:@define STUPID_SOLARIS_CHECKSUM_BUG 1
4583: _ACEOF
4584:
4585: cat >>confdefs.h <<\_ACEOF
4586: @%:@define HAVE_SOLARIS_IPV6 1
4587: _ACEOF
4588:
4589: ;;
4590:
4591: esac
4592:
4593: ADDITIONAL_LIBS='-lsocket -lnsl'
4594: LIBNET_CONFIG_LIBS="$LIBNET_CONFIG_LIBS -lsocket -lnsl"
4595: ;;
4596:
4597: *hpux11*)
4598: cat >>confdefs.h <<\_ACEOF
4599: @%:@define HAVE_HPUX11 1
4600: _ACEOF
4601:
4602:
4603: for ac_header in sys/dlpi_ext.h
4604: do
4605: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4606: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4607: echo "$as_me:$LINENO: checking for $ac_header" >&5
4608: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4609: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4610: echo $ECHO_N "(cached) $ECHO_C" >&6
4611: fi
4612: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4613: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4614: else
4615: # Is the header compilable?
4616: echo "$as_me:$LINENO: checking $ac_header usability" >&5
4617: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4618: cat >conftest.$ac_ext <<_ACEOF
4619: #line $LINENO "configure"
4620: /* confdefs.h. */
4621: _ACEOF
4622: cat confdefs.h >>conftest.$ac_ext
4623: cat >>conftest.$ac_ext <<_ACEOF
4624: /* end confdefs.h. */
4625: $ac_includes_default
4626: @%:@include <$ac_header>
4627: _ACEOF
4628: rm -f conftest.$ac_objext
4629: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630: (eval $ac_compile) 2>&5
4631: ac_status=$?
4632: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633: (exit $ac_status); } &&
4634: { ac_try='test -s conftest.$ac_objext'
4635: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636: (eval $ac_try) 2>&5
4637: ac_status=$?
4638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639: (exit $ac_status); }; }; then
4640: ac_header_compiler=yes
4641: else
4642: echo "$as_me: failed program was:" >&5
4643: sed 's/^/| /' conftest.$ac_ext >&5
4644:
4645: ac_header_compiler=no
4646: fi
4647: rm -f conftest.$ac_objext conftest.$ac_ext
4648: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4649: echo "${ECHO_T}$ac_header_compiler" >&6
4650:
4651: # Is the header present?
4652: echo "$as_me:$LINENO: checking $ac_header presence" >&5
4653: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4654: cat >conftest.$ac_ext <<_ACEOF
4655: #line $LINENO "configure"
4656: /* confdefs.h. */
4657: _ACEOF
4658: cat confdefs.h >>conftest.$ac_ext
4659: cat >>conftest.$ac_ext <<_ACEOF
4660: /* end confdefs.h. */
4661: @%:@include <$ac_header>
4662: _ACEOF
4663: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4664: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4665: ac_status=$?
4666: grep -v '^ *+' conftest.er1 >conftest.err
4667: rm -f conftest.er1
4668: cat conftest.err >&5
4669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670: (exit $ac_status); } >/dev/null; then
4671: if test -s conftest.err; then
4672: ac_cpp_err=$ac_c_preproc_warn_flag
4673: else
4674: ac_cpp_err=
4675: fi
4676: else
4677: ac_cpp_err=yes
4678: fi
4679: if test -z "$ac_cpp_err"; then
4680: ac_header_preproc=yes
4681: else
4682: echo "$as_me: failed program was:" >&5
4683: sed 's/^/| /' conftest.$ac_ext >&5
4684:
4685: ac_header_preproc=no
4686: fi
4687: rm -f conftest.err conftest.$ac_ext
4688: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4689: echo "${ECHO_T}$ac_header_preproc" >&6
4690:
4691: # So? What about this header?
4692: case $ac_header_compiler:$ac_header_preproc in
4693: yes:no )
4694: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4695: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4696: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4697: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4698: (
4699: cat <<\_ASBOX
4700: @%:@@%:@ ------------------------------------ @%:@@%:@
4701: @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4702: @%:@@%:@ ------------------------------------ @%:@@%:@
4703: _ASBOX
4704: ) |
4705: sed "s/^/$as_me: WARNING: /" >&2
4706: ;;
4707: no:yes )
4708: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4709: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4710: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4711: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4712: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4713: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4714: (
4715: cat <<\_ASBOX
4716: @%:@@%:@ ------------------------------------ @%:@@%:@
4717: @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4718: @%:@@%:@ ------------------------------------ @%:@@%:@
4719: _ASBOX
4720: ) |
4721: sed "s/^/$as_me: WARNING: /" >&2
4722: ;;
4723: esac
4724: echo "$as_me:$LINENO: checking for $ac_header" >&5
4725: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4726: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4727: echo $ECHO_N "(cached) $ECHO_C" >&6
4728: else
4729: eval "$as_ac_Header=$ac_header_preproc"
4730: fi
4731: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4732: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4733:
4734: fi
4735: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4736: cat >>confdefs.h <<_ACEOF
4737: @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4738: _ACEOF
4739:
4740: fi
4741:
4742: done
4743:
4744: ;;
4745:
4746: *cygwin*)
4747: cat >>confdefs.h <<\_ACEOF
4748: @%:@define LIBNET_BSDISH_OS 1
4749: _ACEOF
4750:
4751: cat >>confdefs.h <<\_ACEOF
4752: @%:@define NO_SNPRINTF 1
4753: _ACEOF
4754:
4755: LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DNO_SNPRINTF"
4756: CFLAGS="$CFLAGS -mno-cygwin -O0 -fnative-struct -DNO_SNPRINTF -I/usr/include/pcap"
4757:
4758: echo "$as_me:$LINENO: checking for PacketSetMode in -lpacket" >&5
4759: echo $ECHO_N "checking for PacketSetMode in -lpacket... $ECHO_C" >&6
4760: if test "${ac_cv_lib_packet_PacketSetMode+set}" = set; then
4761: echo $ECHO_N "(cached) $ECHO_C" >&6
4762: else
4763: ac_check_lib_save_LIBS=$LIBS
4764: LIBS="-lpacket $LIBS"
4765: cat >conftest.$ac_ext <<_ACEOF
4766: #line $LINENO "configure"
4767: /* confdefs.h. */
4768: _ACEOF
4769: cat confdefs.h >>conftest.$ac_ext
4770: cat >>conftest.$ac_ext <<_ACEOF
4771: /* end confdefs.h. */
4772:
4773: /* Override any gcc2 internal prototype to avoid an error. */
4774: #ifdef __cplusplus
4775: extern "C"
4776: #endif
4777: /* We use char because int might match the return type of a gcc2
4778: builtin and then its argument prototype would still apply. */
4779: char PacketSetMode ();
4780: int
4781: main ()
4782: {
4783: PacketSetMode ();
4784: ;
4785: return 0;
4786: }
4787: _ACEOF
4788: rm -f conftest.$ac_objext conftest$ac_exeext
4789: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790: (eval $ac_link) 2>&5
4791: ac_status=$?
4792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793: (exit $ac_status); } &&
4794: { ac_try='test -s conftest$ac_exeext'
4795: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796: (eval $ac_try) 2>&5
4797: ac_status=$?
4798: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799: (exit $ac_status); }; }; then
4800: ac_cv_lib_packet_PacketSetMode=yes
4801: else
4802: echo "$as_me: failed program was:" >&5
4803: sed 's/^/| /' conftest.$ac_ext >&5
4804:
4805: ac_cv_lib_packet_PacketSetMode=no
4806: fi
4807: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4808: LIBS=$ac_check_lib_save_LIBS
4809: fi
4810: echo "$as_me:$LINENO: result: $ac_cv_lib_packet_PacketSetMode" >&5
4811: echo "${ECHO_T}$ac_cv_lib_packet_PacketSetMode" >&6
4812: if test $ac_cv_lib_packet_PacketSetMode = yes; then
4813: cat >>confdefs.h <<_ACEOF
4814: @%:@define HAVE_LIBPACKET 1
4815: _ACEOF
4816:
4817: LIBS="-lpacket $LIBS"
4818:
4819: else
4820: { { echo "$as_me:$LINENO: error: packet lib not found." >&5
4821: echo "$as_me: error: packet lib not found." >&2;}
4822: { (exit 1); exit 1; }; }
4823: fi
4824:
4825:
4826: echo "$as_me:$LINENO: checking for pcap_setmode in -lwpcap" >&5
4827: echo $ECHO_N "checking for pcap_setmode in -lwpcap... $ECHO_C" >&6
4828: if test "${ac_cv_lib_wpcap_pcap_setmode+set}" = set; then
4829: echo $ECHO_N "(cached) $ECHO_C" >&6
4830: else
4831: ac_check_lib_save_LIBS=$LIBS
4832: LIBS="-lwpcap $LIBS"
4833: cat >conftest.$ac_ext <<_ACEOF
4834: #line $LINENO "configure"
4835: /* confdefs.h. */
4836: _ACEOF
4837: cat confdefs.h >>conftest.$ac_ext
4838: cat >>conftest.$ac_ext <<_ACEOF
4839: /* end confdefs.h. */
4840:
4841: /* Override any gcc2 internal prototype to avoid an error. */
4842: #ifdef __cplusplus
4843: extern "C"
4844: #endif
4845: /* We use char because int might match the return type of a gcc2
4846: builtin and then its argument prototype would still apply. */
4847: char pcap_setmode ();
4848: int
4849: main ()
4850: {
4851: pcap_setmode ();
4852: ;
4853: return 0;
4854: }
4855: _ACEOF
4856: rm -f conftest.$ac_objext conftest$ac_exeext
4857: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4858: (eval $ac_link) 2>&5
4859: ac_status=$?
4860: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861: (exit $ac_status); } &&
4862: { ac_try='test -s conftest$ac_exeext'
4863: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864: (eval $ac_try) 2>&5
4865: ac_status=$?
4866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867: (exit $ac_status); }; }; then
4868: ac_cv_lib_wpcap_pcap_setmode=yes
4869: else
4870: echo "$as_me: failed program was:" >&5
4871: sed 's/^/| /' conftest.$ac_ext >&5
4872:
4873: ac_cv_lib_wpcap_pcap_setmode=no
4874: fi
4875: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4876: LIBS=$ac_check_lib_save_LIBS
4877: fi
4878: echo "$as_me:$LINENO: result: $ac_cv_lib_wpcap_pcap_setmode" >&5
4879: echo "${ECHO_T}$ac_cv_lib_wpcap_pcap_setmode" >&6
4880: if test $ac_cv_lib_wpcap_pcap_setmode = yes; then
4881: cat >>confdefs.h <<_ACEOF
4882: @%:@define HAVE_LIBWPCAP 1
4883: _ACEOF
4884:
4885: LIBS="-lwpcap $LIBS"
4886:
4887: else
4888: { { echo "$as_me:$LINENO: error: pcap lib not found." >&5
4889: echo "$as_me: error: pcap lib not found." >&2;}
4890: { (exit 1); exit 1; }; }
4891: fi
4892:
4893: LIBS="$LIBS -lws2_32"
4894: ;;
4895:
4896: *)
4897: { echo "$as_me:$LINENO: WARNING: apparently your OS is not officially supported yet" >&5
4898: echo "$as_me: WARNING: apparently your OS is not officially supported yet" >&2;}
4899: { echo "$as_me:$LINENO: WARNING: this may not work" >&5
4900: echo "$as_me: WARNING: this may not work" >&2;}
4901: echo "$as_me:$LINENO: result: please send diffs to mike@infonexus.com" >&5
4902: echo "${ECHO_T}please send diffs to mike@infonexus.com" >&6
4903: ;;
4904:
4905: esac
4906:
4907: ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile include/libnet/Makefile sample/Makefile version.h include/libnet.h libnet-config"
4908: ac_config_commands="$ac_config_commands default"
4909: cat >confcache <<\_ACEOF
4910: # This file is a shell script that caches the results of configure
4911: # tests run on this system so they can be shared between configure
4912: # scripts and configure runs, see configure's option --config-cache.
4913: # It is not useful on other systems. If it contains results you don't
4914: # want to keep, you may remove or edit it.
4915: #
4916: # config.status only pays attention to the cache file if you give it
4917: # the --recheck option to rerun configure.
4918: #
4919: # `ac_cv_env_foo' variables (set or unset) will be overridden when
4920: # loading this file, other *unset* `ac_cv_foo' will be assigned the
4921: # following values.
4922:
4923: _ACEOF
4924:
4925: # The following way of writing the cache mishandles newlines in values,
4926: # but we know of no workaround that is simple, portable, and efficient.
4927: # So, don't put newlines in cache variables' values.
4928: # Ultrix sh set writes to stderr and can't be redirected directly,
4929: # and sets the high bit in the cache file unless we assign to the vars.
4930: {
4931: (set) 2>&1 |
4932: case `(ac_space=' '; set | grep ac_space) 2>&1` in
4933: *ac_space=\ *)
4934: # `set' does not quote correctly, so add quotes (double-quote
4935: # substitution turns \\\\ into \\, and sed turns \\ into \).
4936: sed -n \
4937: "s/'/'\\\\''/g;
4938: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4939: ;;
4940: *)
4941: # `set' quotes correctly as required by POSIX, so do not add quotes.
4942: sed -n \
4943: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4944: ;;
4945: esac;
4946: } |
4947: sed '
4948: t clear
4949: : clear
4950: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4951: t end
4952: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4953: : end' >>confcache
4954: if diff $cache_file confcache >/dev/null 2>&1; then :; else
4955: if test -w $cache_file; then
4956: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4957: cat confcache >$cache_file
4958: else
4959: echo "not updating unwritable cache $cache_file"
4960: fi
4961: fi
4962: rm -f confcache
4963:
4964: test "x$prefix" = xNONE && prefix=$ac_default_prefix
4965: # Let make expand exec_prefix.
4966: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4967:
4968: # VPATH may cause trouble with some makes, so we remove $(srcdir),
4969: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4970: # trailing colons and then remove the whole line if VPATH becomes empty
4971: # (actually we leave an empty line to preserve line numbers).
4972: if test "x$srcdir" = x.; then
4973: ac_vpsub='/^[ ]*VPATH[ ]*=/{
4974: s/:*\$(srcdir):*/:/;
4975: s/:*\${srcdir}:*/:/;
4976: s/:*@srcdir@:*/:/;
4977: s/^\([^=]*=[ ]*\):*/\1/;
4978: s/:*$//;
4979: s/^[^=]*=[ ]*$//;
4980: }'
4981: fi
4982:
4983: DEFS=-DHAVE_CONFIG_H
4984:
4985: ac_libobjs=
4986: ac_ltlibobjs=
4987: for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
4988: # 1. Remove the extension, and $U if already installed.
4989: ac_i=`echo "$ac_i" |
4990: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4991: # 2. Add them.
4992: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4993: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4994: done
4995: LIB@&t@OBJS=$ac_libobjs
4996:
4997: LTLIBOBJS=$ac_ltlibobjs
4998:
4999:
5000: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5001: { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5002: Usually this means the macro was only invoked conditionally." >&5
5003: echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5004: Usually this means the macro was only invoked conditionally." >&2;}
5005: { (exit 1); exit 1; }; }
5006: fi
5007: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5008: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5009: Usually this means the macro was only invoked conditionally." >&5
5010: echo "$as_me: error: conditional \"AMDEP\" was never defined.
5011: Usually this means the macro was only invoked conditionally." >&2;}
5012: { (exit 1); exit 1; }; }
5013: fi
5014:
5015: : ${CONFIG_STATUS=./config.status}
5016: ac_clean_files_save=$ac_clean_files
5017: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5018: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5019: echo "$as_me: creating $CONFIG_STATUS" >&6;}
5020: cat >$CONFIG_STATUS <<_ACEOF
5021: #! $SHELL
5022: # Generated by $as_me.
5023: # Run this file to recreate the current configuration.
5024: # Compiler output produced by configure, useful for debugging
5025: # configure, is in config.log if it exists.
5026:
5027: debug=false
5028: ac_cs_recheck=false
5029: ac_cs_silent=false
5030: SHELL=\${CONFIG_SHELL-$SHELL}
5031: _ACEOF
5032:
5033: cat >>$CONFIG_STATUS <<\_ACEOF
5034: ## --------------------- ##
5035: ## M4sh Initialization. ##
5036: ## --------------------- ##
5037:
5038: # Be Bourne compatible
5039: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5040: emulate sh
5041: NULLCMD=:
5042: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5043: # is contrary to our usage. Disable this feature.
5044: alias -g '${1+"$@"}'='"$@"'
5045: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5046: set -o posix
5047: fi
5048:
5049: # Support unset when possible.
5050: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5051: as_unset=unset
5052: else
5053: as_unset=false
5054: fi
5055:
5056:
5057: # Work around bugs in pre-3.0 UWIN ksh.
5058: $as_unset ENV MAIL MAILPATH
5059: PS1='$ '
5060: PS2='> '
5061: PS4='+ '
5062:
5063: # NLS nuisances.
5064: for as_var in \
5065: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5066: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5067: LC_TELEPHONE LC_TIME
5068: do
5069: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5070: eval $as_var=C; export $as_var
5071: else
5072: $as_unset $as_var
5073: fi
5074: done
5075:
5076: # Required to use basename.
5077: if expr a : '\(a\)' >/dev/null 2>&1; then
5078: as_expr=expr
5079: else
5080: as_expr=false
5081: fi
5082:
5083: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5084: as_basename=basename
5085: else
5086: as_basename=false
5087: fi
5088:
5089:
5090: # Name of the executable.
5091: as_me=`$as_basename "$0" ||
5092: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5093: X"$0" : 'X\(//\)$' \| \
5094: X"$0" : 'X\(/\)$' \| \
5095: . : '\(.\)' 2>/dev/null ||
5096: echo X/"$0" |
5097: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5098: /^X\/\(\/\/\)$/{ s//\1/; q; }
5099: /^X\/\(\/\).*/{ s//\1/; q; }
5100: s/.*/./; q'`
5101:
5102:
5103: # PATH needs CR, and LINENO needs CR and PATH.
5104: # Avoid depending upon Character Ranges.
5105: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5106: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5107: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5108: as_cr_digits='0123456789'
5109: as_cr_alnum=$as_cr_Letters$as_cr_digits
5110:
5111: # The user is always right.
5112: if test "${PATH_SEPARATOR+set}" != set; then
5113: echo "#! /bin/sh" >conf$$.sh
5114: echo "exit 0" >>conf$$.sh
5115: chmod +x conf$$.sh
5116: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5117: PATH_SEPARATOR=';'
5118: else
5119: PATH_SEPARATOR=:
5120: fi
5121: rm -f conf$$.sh
5122: fi
5123:
5124:
5125: as_lineno_1=$LINENO
5126: as_lineno_2=$LINENO
5127: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5128: test "x$as_lineno_1" != "x$as_lineno_2" &&
5129: test "x$as_lineno_3" = "x$as_lineno_2" || {
5130: # Find who we are. Look in the path if we contain no path at all
5131: # relative or not.
5132: case $0 in
5133: *[\\/]* ) as_myself=$0 ;;
5134: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135: for as_dir in $PATH
5136: do
5137: IFS=$as_save_IFS
5138: test -z "$as_dir" && as_dir=.
5139: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5140: done
5141:
5142: ;;
5143: esac
5144: # We did not find ourselves, most probably we were run as `sh COMMAND'
5145: # in which case we are not to be found in the path.
5146: if test "x$as_myself" = x; then
5147: as_myself=$0
5148: fi
5149: if test ! -f "$as_myself"; then
5150: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5151: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5152: { (exit 1); exit 1; }; }
5153: fi
5154: case $CONFIG_SHELL in
5155: '')
5156: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5158: do
5159: IFS=$as_save_IFS
5160: test -z "$as_dir" && as_dir=.
5161: for as_base in sh bash ksh sh5; do
5162: case $as_dir in
5163: /*)
5164: if ("$as_dir/$as_base" -c '
5165: as_lineno_1=$LINENO
5166: as_lineno_2=$LINENO
5167: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5168: test "x$as_lineno_1" != "x$as_lineno_2" &&
5169: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5170: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5171: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5172: CONFIG_SHELL=$as_dir/$as_base
5173: export CONFIG_SHELL
5174: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5175: fi;;
5176: esac
5177: done
5178: done
5179: ;;
5180: esac
5181:
5182: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5183: # uniformly replaced by the line number. The first 'sed' inserts a
5184: # line-number line before each line; the second 'sed' does the real
5185: # work. The second script uses 'N' to pair each line-number line
5186: # with the numbered line, and appends trailing '-' during
5187: # substitution so that $LINENO is not a special case at line end.
5188: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5189: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5190: sed '=' <$as_myself |
5191: sed '
5192: N
5193: s,$,-,
5194: : loop
5195: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5196: t loop
5197: s,-$,,
5198: s,^['$as_cr_digits']*\n,,
5199: ' >$as_me.lineno &&
5200: chmod +x $as_me.lineno ||
5201: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5202: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5203: { (exit 1); exit 1; }; }
5204:
5205: # Don't try to exec as it changes $[0], causing all sort of problems
5206: # (the dirname of $[0] is not the place where we might find the
5207: # original and so on. Autoconf is especially sensible to this).
5208: . ./$as_me.lineno
5209: # Exit status is that of the last command.
5210: exit
5211: }
5212:
5213:
5214: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5215: *c*,-n*) ECHO_N= ECHO_C='
5216: ' ECHO_T=' ' ;;
5217: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5218: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5219: esac
5220:
5221: if expr a : '\(a\)' >/dev/null 2>&1; then
5222: as_expr=expr
5223: else
5224: as_expr=false
5225: fi
5226:
5227: rm -f conf$$ conf$$.exe conf$$.file
5228: echo >conf$$.file
5229: if ln -s conf$$.file conf$$ 2>/dev/null; then
5230: # We could just check for DJGPP; but this test a) works b) is more generic
5231: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5232: if test -f conf$$.exe; then
5233: # Don't use ln at all; we don't have any links
5234: as_ln_s='cp -p'
5235: else
5236: as_ln_s='ln -s'
5237: fi
5238: elif ln conf$$.file conf$$ 2>/dev/null; then
5239: as_ln_s=ln
5240: else
5241: as_ln_s='cp -p'
5242: fi
5243: rm -f conf$$ conf$$.exe conf$$.file
5244:
5245: if mkdir -p . 2>/dev/null; then
5246: as_mkdir_p=:
5247: else
5248: as_mkdir_p=false
5249: fi
5250:
5251: as_executable_p="test -f"
5252:
5253: # Sed expression to map a string onto a valid CPP name.
5254: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5255:
5256: # Sed expression to map a string onto a valid variable name.
5257: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5258:
5259:
5260: # IFS
5261: # We need space, tab and new line, in precisely that order.
5262: as_nl='
5263: '
5264: IFS=" $as_nl"
5265:
5266: # CDPATH.
5267: $as_unset CDPATH
5268:
5269: exec 6>&1
5270:
5271: # Open the log real soon, to keep \$[0] and so on meaningful, and to
5272: # report actual input values of CONFIG_FILES etc. instead of their
5273: # values after options handling. Logging --version etc. is OK.
5274: exec 5>>config.log
5275: {
5276: echo
5277: sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
5278: @%:@@%:@ Running $as_me. @%:@@%:@
5279: _ASBOX
5280: } >&5
5281: cat >&5 <<_CSEOF
5282:
5283: This file was extended by $as_me, which was
5284: generated by GNU Autoconf 2.57. Invocation command line was
5285:
5286: CONFIG_FILES = $CONFIG_FILES
5287: CONFIG_HEADERS = $CONFIG_HEADERS
5288: CONFIG_LINKS = $CONFIG_LINKS
5289: CONFIG_COMMANDS = $CONFIG_COMMANDS
5290: $ $0 $@
5291:
5292: _CSEOF
5293: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5294: echo >&5
5295: _ACEOF
5296:
5297: # Files that config.status was made for.
5298: if test -n "$ac_config_files"; then
5299: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5300: fi
5301:
5302: if test -n "$ac_config_headers"; then
5303: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5304: fi
5305:
5306: if test -n "$ac_config_links"; then
5307: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5308: fi
5309:
5310: if test -n "$ac_config_commands"; then
5311: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5312: fi
5313:
5314: cat >>$CONFIG_STATUS <<\_ACEOF
5315:
5316: ac_cs_usage="\
5317: \`$as_me' instantiates files from templates according to the
5318: current configuration.
5319:
5320: Usage: $0 [OPTIONS] [FILE]...
5321:
5322: -h, --help print this help, then exit
5323: -V, --version print version number, then exit
5324: -q, --quiet do not print progress messages
5325: -d, --debug don't remove temporary files
5326: --recheck update $as_me by reconfiguring in the same conditions
5327: --file=FILE[:TEMPLATE]
5328: instantiate the configuration file FILE
5329: --header=FILE[:TEMPLATE]
5330: instantiate the configuration header FILE
5331:
5332: Configuration files:
5333: $config_files
5334:
5335: Configuration headers:
5336: $config_headers
5337:
5338: Configuration commands:
5339: $config_commands
5340:
5341: Report bugs to <bug-autoconf@gnu.org>."
5342: _ACEOF
5343:
5344: cat >>$CONFIG_STATUS <<_ACEOF
5345: ac_cs_version="\\
5346: config.status
5347: configured by $0, generated by GNU Autoconf 2.57,
5348: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5349:
5350: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5351: Free Software Foundation, Inc.
5352: This config.status script is free software; the Free Software Foundation
5353: gives unlimited permission to copy, distribute and modify it."
5354: srcdir=$srcdir
5355: INSTALL="$INSTALL"
5356: _ACEOF
5357:
5358: cat >>$CONFIG_STATUS <<\_ACEOF
5359: # If no file are specified by the user, then we need to provide default
5360: # value. By we need to know if files were specified by the user.
5361: ac_need_defaults=:
5362: while test $# != 0
5363: do
5364: case $1 in
5365: --*=*)
5366: ac_option=`expr "x$1" : 'x\([^=]*\)='`
5367: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5368: ac_shift=:
5369: ;;
5370: -*)
5371: ac_option=$1
5372: ac_optarg=$2
5373: ac_shift=shift
5374: ;;
5375: *) # This is not an option, so the user has probably given explicit
5376: # arguments.
5377: ac_option=$1
5378: ac_need_defaults=false;;
5379: esac
5380:
5381: case $ac_option in
5382: # Handling of the options.
5383: _ACEOF
5384: cat >>$CONFIG_STATUS <<\_ACEOF
5385: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5386: ac_cs_recheck=: ;;
5387: --version | --vers* | -V )
5388: echo "$ac_cs_version"; exit 0 ;;
5389: --he | --h)
5390: # Conflict between --help and --header
5391: { { echo "$as_me:$LINENO: error: ambiguous option: $1
5392: Try \`$0 --help' for more information." >&5
5393: echo "$as_me: error: ambiguous option: $1
5394: Try \`$0 --help' for more information." >&2;}
5395: { (exit 1); exit 1; }; };;
5396: --help | --hel | -h )
5397: echo "$ac_cs_usage"; exit 0 ;;
5398: --debug | --d* | -d )
5399: debug=: ;;
5400: --file | --fil | --fi | --f )
5401: $ac_shift
5402: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5403: ac_need_defaults=false;;
5404: --header | --heade | --head | --hea )
5405: $ac_shift
5406: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5407: ac_need_defaults=false;;
5408: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5409: | -silent | --silent | --silen | --sile | --sil | --si | --s)
5410: ac_cs_silent=: ;;
5411:
5412: # This is an error.
5413: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5414: Try \`$0 --help' for more information." >&5
5415: echo "$as_me: error: unrecognized option: $1
5416: Try \`$0 --help' for more information." >&2;}
5417: { (exit 1); exit 1; }; } ;;
5418:
5419: *) ac_config_targets="$ac_config_targets $1" ;;
5420:
5421: esac
5422: shift
5423: done
5424:
5425: ac_configure_extra_args=
5426:
5427: if $ac_cs_silent; then
5428: exec 6>/dev/null
5429: ac_configure_extra_args="$ac_configure_extra_args --silent"
5430: fi
5431:
5432: _ACEOF
5433: cat >>$CONFIG_STATUS <<_ACEOF
5434: if \$ac_cs_recheck; then
5435: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5436: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5437: fi
5438:
5439: _ACEOF
5440:
5441: cat >>$CONFIG_STATUS <<_ACEOF
5442: #
5443: # INIT-COMMANDS section.
5444: #
5445:
5446: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5447:
5448: _ACEOF
5449:
5450:
5451:
5452: cat >>$CONFIG_STATUS <<\_ACEOF
5453: for ac_config_target in $ac_config_targets
5454: do
5455: case "$ac_config_target" in
5456: # Handling of arguments.
5457: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5458: "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5459: "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
5460: "include/libnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/libnet/Makefile" ;;
5461: "sample/Makefile" ) CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
5462: "version.h" ) CONFIG_FILES="$CONFIG_FILES version.h" ;;
5463: "include/libnet.h" ) CONFIG_FILES="$CONFIG_FILES include/libnet.h" ;;
5464: "libnet-config" ) CONFIG_FILES="$CONFIG_FILES libnet-config" ;;
5465: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5466: "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5467: "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
5468: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5469: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5470: { (exit 1); exit 1; }; };;
5471: esac
5472: done
5473:
5474: # If the user did not use the arguments to specify the items to instantiate,
5475: # then the envvar interface is used. Set only those that are not.
5476: # We use the long form for the default assignment because of an extremely
5477: # bizarre bug on SunOS 4.1.3.
5478: if $ac_need_defaults; then
5479: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5480: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5481: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5482: fi
5483:
5484: # Have a temporary directory for convenience. Make it in the build tree
5485: # simply because there is no reason to put it here, and in addition,
5486: # creating and moving files from /tmp can sometimes cause problems.
5487: # Create a temporary directory, and hook for its removal unless debugging.
5488: $debug ||
5489: {
5490: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5491: trap '{ (exit 1); exit 1; }' 1 2 13 15
5492: }
5493:
5494: # Create a (secure) tmp directory for tmp files.
5495:
5496: {
5497: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5498: test -n "$tmp" && test -d "$tmp"
5499: } ||
5500: {
5501: tmp=./confstat$$-$RANDOM
5502: (umask 077 && mkdir $tmp)
5503: } ||
5504: {
5505: echo "$me: cannot create a temporary directory in ." >&2
5506: { (exit 1); exit 1; }
5507: }
5508:
5509: _ACEOF
5510:
5511: cat >>$CONFIG_STATUS <<_ACEOF
5512:
5513: #
5514: # CONFIG_FILES section.
5515: #
5516:
5517: # No need to generate the scripts if there are no CONFIG_FILES.
5518: # This happens for instance when ./config.status config.h
5519: if test -n "\$CONFIG_FILES"; then
5520: # Protect against being on the right side of a sed subst in config.status.
5521: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5522: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5523: s,@SHELL@,$SHELL,;t t
5524: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5525: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5526: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5527: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5528: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5529: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5530: s,@exec_prefix@,$exec_prefix,;t t
5531: s,@prefix@,$prefix,;t t
5532: s,@program_transform_name@,$program_transform_name,;t t
5533: s,@bindir@,$bindir,;t t
5534: s,@sbindir@,$sbindir,;t t
5535: s,@libexecdir@,$libexecdir,;t t
5536: s,@datadir@,$datadir,;t t
5537: s,@sysconfdir@,$sysconfdir,;t t
5538: s,@sharedstatedir@,$sharedstatedir,;t t
5539: s,@localstatedir@,$localstatedir,;t t
5540: s,@libdir@,$libdir,;t t
5541: s,@includedir@,$includedir,;t t
5542: s,@oldincludedir@,$oldincludedir,;t t
5543: s,@infodir@,$infodir,;t t
5544: s,@mandir@,$mandir,;t t
5545: s,@build_alias@,$build_alias,;t t
5546: s,@host_alias@,$host_alias,;t t
5547: s,@target_alias@,$target_alias,;t t
5548: s,@DEFS@,$DEFS,;t t
5549: s,@ECHO_C@,$ECHO_C,;t t
5550: s,@ECHO_N@,$ECHO_N,;t t
5551: s,@ECHO_T@,$ECHO_T,;t t
5552: s,@LIBS@,$LIBS,;t t
5553: s,@build@,$build,;t t
5554: s,@build_cpu@,$build_cpu,;t t
5555: s,@build_vendor@,$build_vendor,;t t
5556: s,@build_os@,$build_os,;t t
5557: s,@host@,$host,;t t
5558: s,@host_cpu@,$host_cpu,;t t
5559: s,@host_vendor@,$host_vendor,;t t
5560: s,@host_os@,$host_os,;t t
5561: s,@target@,$target,;t t
5562: s,@target_cpu@,$target_cpu,;t t
5563: s,@target_vendor@,$target_vendor,;t t
5564: s,@target_os@,$target_os,;t t
5565: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5566: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5567: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5568: s,@PACKAGE@,$PACKAGE,;t t
5569: s,@VERSION@,$VERSION,;t t
5570: s,@ACLOCAL@,$ACLOCAL,;t t
5571: s,@AUTOCONF@,$AUTOCONF,;t t
5572: s,@AUTOMAKE@,$AUTOMAKE,;t t
5573: s,@AUTOHEADER@,$AUTOHEADER,;t t
5574: s,@MAKEINFO@,$MAKEINFO,;t t
5575: s,@AMTAR@,$AMTAR,;t t
5576: s,@install_sh@,$install_sh,;t t
5577: s,@STRIP@,$STRIP,;t t
5578: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5579: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5580: s,@AWK@,$AWK,;t t
5581: s,@SET_MAKE@,$SET_MAKE,;t t
5582: s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5583: s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5584: s,@MAINT@,$MAINT,;t t
5585: s,@CC@,$CC,;t t
5586: s,@CFLAGS@,$CFLAGS,;t t
5587: s,@LDFLAGS@,$LDFLAGS,;t t
5588: s,@CPPFLAGS@,$CPPFLAGS,;t t
5589: s,@ac_ct_CC@,$ac_ct_CC,;t t
5590: s,@EXEEXT@,$EXEEXT,;t t
5591: s,@OBJEXT@,$OBJEXT,;t t
5592: s,@DEPDIR@,$DEPDIR,;t t
5593: s,@am__include@,$am__include,;t t
5594: s,@am__quote@,$am__quote,;t t
5595: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5596: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5597: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5598: s,@CCDEPMODE@,$CCDEPMODE,;t t
5599: s,@RANLIB@,$RANLIB,;t t
5600: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5601: s,@CPP@,$CPP,;t t
5602: s,@EGREP@,$EGREP,;t t
5603: s,@ENDIANESS@,$ENDIANESS,;t t
5604: s,@LIBNET_VERSION@,$LIBNET_VERSION,;t t
5605: s,@HAVE_PACKET_SOCKET@,$HAVE_PACKET_SOCKET,;t t
5606: s,@ADDITIONAL_LIBS@,$ADDITIONAL_LIBS,;t t
5607: s,@LIBNET_CONFIG_DEFINES@,$LIBNET_CONFIG_DEFINES,;t t
5608: s,@LIBNET_CONFIG_LIBS@,$LIBNET_CONFIG_LIBS,;t t
5609: s,@LIBNET_CONFIG_CFLAGS@,$LIBNET_CONFIG_CFLAGS,;t t
5610: s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
5611: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5612: CEOF
5613:
5614: _ACEOF
5615:
5616: cat >>$CONFIG_STATUS <<\_ACEOF
5617: # Split the substitutions into bite-sized pieces for seds with
5618: # small command number limits, like on Digital OSF/1 and HP-UX.
5619: ac_max_sed_lines=48
5620: ac_sed_frag=1 # Number of current file.
5621: ac_beg=1 # First line for current file.
5622: ac_end=$ac_max_sed_lines # Line after last line for current file.
5623: ac_more_lines=:
5624: ac_sed_cmds=
5625: while $ac_more_lines; do
5626: if test $ac_beg -gt 1; then
5627: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5628: else
5629: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5630: fi
5631: if test ! -s $tmp/subs.frag; then
5632: ac_more_lines=false
5633: else
5634: # The purpose of the label and of the branching condition is to
5635: # speed up the sed processing (if there are no `@' at all, there
5636: # is no need to browse any of the substitutions).
5637: # These are the two extra sed commands mentioned above.
5638: (echo ':t
5639: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5640: if test -z "$ac_sed_cmds"; then
5641: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5642: else
5643: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5644: fi
5645: ac_sed_frag=`expr $ac_sed_frag + 1`
5646: ac_beg=$ac_end
5647: ac_end=`expr $ac_end + $ac_max_sed_lines`
5648: fi
5649: done
5650: if test -z "$ac_sed_cmds"; then
5651: ac_sed_cmds=cat
5652: fi
5653: fi # test -n "$CONFIG_FILES"
5654:
5655: _ACEOF
5656: cat >>$CONFIG_STATUS <<\_ACEOF
5657: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5658: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5659: case $ac_file in
5660: - | *:- | *:-:* ) # input from stdin
5661: cat >$tmp/stdin
5662: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5663: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5664: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5665: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5666: * ) ac_file_in=$ac_file.in ;;
5667: esac
5668:
5669: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5670: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5671: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5672: X"$ac_file" : 'X\(//\)[^/]' \| \
5673: X"$ac_file" : 'X\(//\)$' \| \
5674: X"$ac_file" : 'X\(/\)' \| \
5675: . : '\(.\)' 2>/dev/null ||
5676: echo X"$ac_file" |
5677: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5678: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5679: /^X\(\/\/\)$/{ s//\1/; q; }
5680: /^X\(\/\).*/{ s//\1/; q; }
5681: s/.*/./; q'`
5682: { if $as_mkdir_p; then
5683: mkdir -p "$ac_dir"
5684: else
5685: as_dir="$ac_dir"
5686: as_dirs=
5687: while test ! -d "$as_dir"; do
5688: as_dirs="$as_dir $as_dirs"
5689: as_dir=`(dirname "$as_dir") 2>/dev/null ||
5690: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5691: X"$as_dir" : 'X\(//\)[^/]' \| \
5692: X"$as_dir" : 'X\(//\)$' \| \
5693: X"$as_dir" : 'X\(/\)' \| \
5694: . : '\(.\)' 2>/dev/null ||
5695: echo X"$as_dir" |
5696: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5697: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5698: /^X\(\/\/\)$/{ s//\1/; q; }
5699: /^X\(\/\).*/{ s//\1/; q; }
5700: s/.*/./; q'`
5701: done
5702: test ! -n "$as_dirs" || mkdir $as_dirs
5703: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5704: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5705: { (exit 1); exit 1; }; }; }
5706:
5707: ac_builddir=.
5708:
5709: if test "$ac_dir" != .; then
5710: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5711: # A "../" for each directory in $ac_dir_suffix.
5712: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5713: else
5714: ac_dir_suffix= ac_top_builddir=
5715: fi
5716:
5717: case $srcdir in
5718: .) # No --srcdir option. We are building in place.
5719: ac_srcdir=.
5720: if test -z "$ac_top_builddir"; then
5721: ac_top_srcdir=.
5722: else
5723: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5724: fi ;;
5725: [\\/]* | ?:[\\/]* ) # Absolute path.
5726: ac_srcdir=$srcdir$ac_dir_suffix;
5727: ac_top_srcdir=$srcdir ;;
5728: *) # Relative path.
5729: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5730: ac_top_srcdir=$ac_top_builddir$srcdir ;;
5731: esac
5732: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5733: # absolute.
5734: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5735: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5736: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5737: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5738:
5739:
5740: case $INSTALL in
5741: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5742: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5743: esac
5744:
5745: if test x"$ac_file" != x-; then
5746: { echo "$as_me:$LINENO: creating $ac_file" >&5
5747: echo "$as_me: creating $ac_file" >&6;}
5748: rm -f "$ac_file"
5749: fi
5750: # Let's still pretend it is `configure' which instantiates (i.e., don't
5751: # use $as_me), people would be surprised to read:
5752: # /* config.h. Generated by config.status. */
5753: if test x"$ac_file" = x-; then
5754: configure_input=
5755: else
5756: configure_input="$ac_file. "
5757: fi
5758: configure_input=$configure_input"Generated from `echo $ac_file_in |
5759: sed 's,.*/,,'` by configure."
5760:
5761: # First look for the input files in the build tree, otherwise in the
5762: # src tree.
5763: ac_file_inputs=`IFS=:
5764: for f in $ac_file_in; do
5765: case $f in
5766: -) echo $tmp/stdin ;;
5767: [\\/$]*)
5768: # Absolute (can't be DOS-style, as IFS=:)
5769: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5770: echo "$as_me: error: cannot find input file: $f" >&2;}
5771: { (exit 1); exit 1; }; }
5772: echo $f;;
5773: *) # Relative
5774: if test -f "$f"; then
5775: # Build tree
5776: echo $f
5777: elif test -f "$srcdir/$f"; then
5778: # Source tree
5779: echo $srcdir/$f
5780: else
5781: # /dev/null tree
5782: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5783: echo "$as_me: error: cannot find input file: $f" >&2;}
5784: { (exit 1); exit 1; }; }
5785: fi;;
5786: esac
5787: done` || { (exit 1); exit 1; }
5788: _ACEOF
5789: cat >>$CONFIG_STATUS <<_ACEOF
5790: sed "$ac_vpsub
5791: $extrasub
5792: _ACEOF
5793: cat >>$CONFIG_STATUS <<\_ACEOF
5794: :t
5795: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5796: s,@configure_input@,$configure_input,;t t
5797: s,@srcdir@,$ac_srcdir,;t t
5798: s,@abs_srcdir@,$ac_abs_srcdir,;t t
5799: s,@top_srcdir@,$ac_top_srcdir,;t t
5800: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5801: s,@builddir@,$ac_builddir,;t t
5802: s,@abs_builddir@,$ac_abs_builddir,;t t
5803: s,@top_builddir@,$ac_top_builddir,;t t
5804: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5805: s,@INSTALL@,$ac_INSTALL,;t t
5806: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5807: rm -f $tmp/stdin
5808: if test x"$ac_file" != x-; then
5809: mv $tmp/out $ac_file
5810: else
5811: cat $tmp/out
5812: rm -f $tmp/out
5813: fi
5814:
5815: done
5816: _ACEOF
5817: cat >>$CONFIG_STATUS <<\_ACEOF
5818:
5819: #
5820: # CONFIG_HEADER section.
5821: #
5822:
5823: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5824: # NAME is the cpp macro being defined and VALUE is the value it is being given.
5825: #
5826: # ac_d sets the value in "#define NAME VALUE" lines.
5827: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5828: ac_dB='[ ].*$,\1#\2'
5829: ac_dC=' '
5830: ac_dD=',;t'
5831: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5832: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5833: ac_uB='$,\1#\2define\3'
5834: ac_uC=' '
5835: ac_uD=',;t'
5836:
5837: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5838: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5839: case $ac_file in
5840: - | *:- | *:-:* ) # input from stdin
5841: cat >$tmp/stdin
5842: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5843: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5844: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5845: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5846: * ) ac_file_in=$ac_file.in ;;
5847: esac
5848:
5849: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5850: echo "$as_me: creating $ac_file" >&6;}
5851:
5852: # First look for the input files in the build tree, otherwise in the
5853: # src tree.
5854: ac_file_inputs=`IFS=:
5855: for f in $ac_file_in; do
5856: case $f in
5857: -) echo $tmp/stdin ;;
5858: [\\/$]*)
5859: # Absolute (can't be DOS-style, as IFS=:)
5860: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5861: echo "$as_me: error: cannot find input file: $f" >&2;}
5862: { (exit 1); exit 1; }; }
5863: echo $f;;
5864: *) # Relative
5865: if test -f "$f"; then
5866: # Build tree
5867: echo $f
5868: elif test -f "$srcdir/$f"; then
5869: # Source tree
5870: echo $srcdir/$f
5871: else
5872: # /dev/null tree
5873: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5874: echo "$as_me: error: cannot find input file: $f" >&2;}
5875: { (exit 1); exit 1; }; }
5876: fi;;
5877: esac
5878: done` || { (exit 1); exit 1; }
5879: # Remove the trailing spaces.
5880: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5881:
5882: _ACEOF
5883:
5884: # Transform confdefs.h into two sed scripts, `conftest.defines' and
5885: # `conftest.undefs', that substitutes the proper values into
5886: # config.h.in to produce config.h. The first handles `#define'
5887: # templates, and the second `#undef' templates.
5888: # And first: Protect against being on the right side of a sed subst in
5889: # config.status. Protect against being in an unquoted here document
5890: # in config.status.
5891: rm -f conftest.defines conftest.undefs
5892: # Using a here document instead of a string reduces the quoting nightmare.
5893: # Putting comments in sed scripts is not portable.
5894: #
5895: # `end' is used to avoid that the second main sed command (meant for
5896: # 0-ary CPP macros) applies to n-ary macro definitions.
5897: # See the Autoconf documentation for `clear'.
5898: cat >confdef2sed.sed <<\_ACEOF
5899: s/[\\&,]/\\&/g
5900: s,[\\$`],\\&,g
5901: t clear
5902: : clear
5903: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5904: t end
5905: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5906: : end
5907: _ACEOF
5908: # If some macros were called several times there might be several times
5909: # the same #defines, which is useless. Nevertheless, we may not want to
5910: # sort them, since we want the *last* AC-DEFINE to be honored.
5911: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5912: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5913: rm -f confdef2sed.sed
5914:
5915: # This sed command replaces #undef with comments. This is necessary, for
5916: # example, in the case of _POSIX_SOURCE, which is predefined and required
5917: # on some systems where configure will not decide to define it.
5918: cat >>conftest.undefs <<\_ACEOF
5919: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5920: _ACEOF
5921:
5922: # Break up conftest.defines because some shells have a limit on the size
5923: # of here documents, and old seds have small limits too (100 cmds).
5924: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5925: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5926: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5927: echo ' :' >>$CONFIG_STATUS
5928: rm -f conftest.tail
5929: while grep . conftest.defines >/dev/null
5930: do
5931: # Write a limited-size here document to $tmp/defines.sed.
5932: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5933: # Speed up: don't consider the non `#define' lines.
5934: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5935: # Work around the forget-to-reset-the-flag bug.
5936: echo 't clr' >>$CONFIG_STATUS
5937: echo ': clr' >>$CONFIG_STATUS
5938: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5939: echo 'CEOF
5940: sed -f $tmp/defines.sed $tmp/in >$tmp/out
5941: rm -f $tmp/in
5942: mv $tmp/out $tmp/in
5943: ' >>$CONFIG_STATUS
5944: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5945: rm -f conftest.defines
5946: mv conftest.tail conftest.defines
5947: done
5948: rm -f conftest.defines
5949: echo ' fi # grep' >>$CONFIG_STATUS
5950: echo >>$CONFIG_STATUS
5951:
5952: # Break up conftest.undefs because some shells have a limit on the size
5953: # of here documents, and old seds have small limits too (100 cmds).
5954: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5955: rm -f conftest.tail
5956: while grep . conftest.undefs >/dev/null
5957: do
5958: # Write a limited-size here document to $tmp/undefs.sed.
5959: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5960: # Speed up: don't consider the non `#undef'
5961: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5962: # Work around the forget-to-reset-the-flag bug.
5963: echo 't clr' >>$CONFIG_STATUS
5964: echo ': clr' >>$CONFIG_STATUS
5965: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5966: echo 'CEOF
5967: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5968: rm -f $tmp/in
5969: mv $tmp/out $tmp/in
5970: ' >>$CONFIG_STATUS
5971: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5972: rm -f conftest.undefs
5973: mv conftest.tail conftest.undefs
5974: done
5975: rm -f conftest.undefs
5976:
5977: cat >>$CONFIG_STATUS <<\_ACEOF
5978: # Let's still pretend it is `configure' which instantiates (i.e., don't
5979: # use $as_me), people would be surprised to read:
5980: # /* config.h. Generated by config.status. */
5981: if test x"$ac_file" = x-; then
5982: echo "/* Generated by configure. */" >$tmp/config.h
5983: else
5984: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5985: fi
5986: cat $tmp/in >>$tmp/config.h
5987: rm -f $tmp/in
5988: if test x"$ac_file" != x-; then
5989: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5990: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5991: echo "$as_me: $ac_file is unchanged" >&6;}
5992: else
5993: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5994: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5995: X"$ac_file" : 'X\(//\)[^/]' \| \
5996: X"$ac_file" : 'X\(//\)$' \| \
5997: X"$ac_file" : 'X\(/\)' \| \
5998: . : '\(.\)' 2>/dev/null ||
5999: echo X"$ac_file" |
6000: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6001: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6002: /^X\(\/\/\)$/{ s//\1/; q; }
6003: /^X\(\/\).*/{ s//\1/; q; }
6004: s/.*/./; q'`
6005: { if $as_mkdir_p; then
6006: mkdir -p "$ac_dir"
6007: else
6008: as_dir="$ac_dir"
6009: as_dirs=
6010: while test ! -d "$as_dir"; do
6011: as_dirs="$as_dir $as_dirs"
6012: as_dir=`(dirname "$as_dir") 2>/dev/null ||
6013: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6014: X"$as_dir" : 'X\(//\)[^/]' \| \
6015: X"$as_dir" : 'X\(//\)$' \| \
6016: X"$as_dir" : 'X\(/\)' \| \
6017: . : '\(.\)' 2>/dev/null ||
6018: echo X"$as_dir" |
6019: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6020: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6021: /^X\(\/\/\)$/{ s//\1/; q; }
6022: /^X\(\/\).*/{ s//\1/; q; }
6023: s/.*/./; q'`
6024: done
6025: test ! -n "$as_dirs" || mkdir $as_dirs
6026: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6027: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6028: { (exit 1); exit 1; }; }; }
6029:
6030: rm -f $ac_file
6031: mv $tmp/config.h $ac_file
6032: fi
6033: else
6034: cat $tmp/config.h
6035: rm -f $tmp/config.h
6036: fi
6037: # Run the commands associated with the file.
6038: case $ac_file in
6039: include/config.h ) # update the timestamp
6040: echo 'timestamp for include/config.h' >"include/stamp-h1"
6041: ;;
6042: esac
6043: done
6044: _ACEOF
6045: cat >>$CONFIG_STATUS <<\_ACEOF
6046:
6047: #
6048: # CONFIG_COMMANDS section.
6049: #
6050: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6051: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6052: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6053: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6054: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6055: X"$ac_dest" : 'X\(//\)[^/]' \| \
6056: X"$ac_dest" : 'X\(//\)$' \| \
6057: X"$ac_dest" : 'X\(/\)' \| \
6058: . : '\(.\)' 2>/dev/null ||
6059: echo X"$ac_dest" |
6060: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6061: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6062: /^X\(\/\/\)$/{ s//\1/; q; }
6063: /^X\(\/\).*/{ s//\1/; q; }
6064: s/.*/./; q'`
6065: ac_builddir=.
6066:
6067: if test "$ac_dir" != .; then
6068: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6069: # A "../" for each directory in $ac_dir_suffix.
6070: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6071: else
6072: ac_dir_suffix= ac_top_builddir=
6073: fi
6074:
6075: case $srcdir in
6076: .) # No --srcdir option. We are building in place.
6077: ac_srcdir=.
6078: if test -z "$ac_top_builddir"; then
6079: ac_top_srcdir=.
6080: else
6081: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6082: fi ;;
6083: [\\/]* | ?:[\\/]* ) # Absolute path.
6084: ac_srcdir=$srcdir$ac_dir_suffix;
6085: ac_top_srcdir=$srcdir ;;
6086: *) # Relative path.
6087: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6088: ac_top_srcdir=$ac_top_builddir$srcdir ;;
6089: esac
6090: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6091: # absolute.
6092: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6093: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6094: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6095: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6096:
6097:
6098: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6099: echo "$as_me: executing $ac_dest commands" >&6;}
6100: case $ac_dest in
6101: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6102: # Strip MF so we end up with the name of the file.
6103: mf=`echo "$mf" | sed -e 's/:.*$//'`
6104: # Check whether this is an Automake generated Makefile or not.
6105: # We used to match only the files named `Makefile.in', but
6106: # some people rename them; so instead we look at the file content.
6107: # Grep'ing the first line is not enough: some people post-process
6108: # each Makefile.in and add a new line on top of each file to say so.
6109: # So let's grep whole file.
6110: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6111: dirpart=`(dirname "$mf") 2>/dev/null ||
6112: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6113: X"$mf" : 'X\(//\)[^/]' \| \
6114: X"$mf" : 'X\(//\)$' \| \
6115: X"$mf" : 'X\(/\)' \| \
6116: . : '\(.\)' 2>/dev/null ||
6117: echo X"$mf" |
6118: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6119: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6120: /^X\(\/\/\)$/{ s//\1/; q; }
6121: /^X\(\/\).*/{ s//\1/; q; }
6122: s/.*/./; q'`
6123: else
6124: continue
6125: fi
6126: grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
6127: # Extract the definition of DEP_FILES from the Makefile without
6128: # running `make'.
6129: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6130: test -z "$DEPDIR" && continue
6131: # When using ansi2knr, U may be empty or an underscore; expand it
6132: U=`sed -n -e '/^U = / s///p' < "$mf"`
6133: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6134: # We invoke sed twice because it is the simplest approach to
6135: # changing $(DEPDIR) to its actual value in the expansion.
6136: for file in `sed -n -e '
6137: /^DEP_FILES = .*\\\\$/ {
6138: s/^DEP_FILES = //
6139: :loop
6140: s/\\\\$//
6141: p
6142: n
6143: /\\\\$/ b loop
6144: p
6145: }
6146: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6147: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6148: # Make sure the directory exists.
6149: test -f "$dirpart/$file" && continue
6150: fdir=`(dirname "$file") 2>/dev/null ||
6151: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6152: X"$file" : 'X\(//\)[^/]' \| \
6153: X"$file" : 'X\(//\)$' \| \
6154: X"$file" : 'X\(/\)' \| \
6155: . : '\(.\)' 2>/dev/null ||
6156: echo X"$file" |
6157: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6158: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6159: /^X\(\/\/\)$/{ s//\1/; q; }
6160: /^X\(\/\).*/{ s//\1/; q; }
6161: s/.*/./; q'`
6162: { if $as_mkdir_p; then
6163: mkdir -p $dirpart/$fdir
6164: else
6165: as_dir=$dirpart/$fdir
6166: as_dirs=
6167: while test ! -d "$as_dir"; do
6168: as_dirs="$as_dir $as_dirs"
6169: as_dir=`(dirname "$as_dir") 2>/dev/null ||
6170: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6171: X"$as_dir" : 'X\(//\)[^/]' \| \
6172: X"$as_dir" : 'X\(//\)$' \| \
6173: X"$as_dir" : 'X\(/\)' \| \
6174: . : '\(.\)' 2>/dev/null ||
6175: echo X"$as_dir" |
6176: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6177: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6178: /^X\(\/\/\)$/{ s//\1/; q; }
6179: /^X\(\/\).*/{ s//\1/; q; }
6180: s/.*/./; q'`
6181: done
6182: test ! -n "$as_dirs" || mkdir $as_dirs
6183: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6184: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6185: { (exit 1); exit 1; }; }; }
6186:
6187: # echo "creating $dirpart/$file"
6188: echo '# dummy' > "$dirpart/$file"
6189: done
6190: done
6191: ;;
6192: default ) chmod +x libnet-config ;;
6193: esac
6194: done
6195: _ACEOF
6196:
6197: cat >>$CONFIG_STATUS <<\_ACEOF
6198:
6199: { (exit 0); exit 0; }
6200: _ACEOF
6201: chmod +x $CONFIG_STATUS
6202: ac_clean_files=$ac_clean_files_save
6203:
6204:
6205: # configure is writing to config.log, and then calls config.status.
6206: # config.status does its own redirection, appending to config.log.
6207: # Unfortunately, on DOS this fails, as config.log is still kept open
6208: # by configure, so config.status won't be able to write to it; its
6209: # output is simply discarded. So we exec the FD to /dev/null,
6210: # effectively closing config.log, so it can be properly (re)opened and
6211: # appended to by config.status. When coming back to configure, we
6212: # need to make the FD available again.
6213: if test "$no_create" != yes; then
6214: ac_cs_success=:
6215: ac_config_status_args=
6216: test "$silent" = yes &&
6217: ac_config_status_args="$ac_config_status_args --quiet"
6218: exec 5>/dev/null
6219: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6220: exec 5>>config.log
6221: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6222: # would make configure fail if this is the last instruction.
6223: $ac_cs_success || { (exit 1); exit 1; }
6224: fi
6225:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>