Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / libpcap / config.status
blob31c2695d6b45ae3293379fcb2cc7d61027d7d01b
1 #! /bin/sh
2 # Generated by configure.
3 # Run this file to recreate the current configuration.
4 # Compiler output produced by configure, useful for debugging
5 # configure, is in config.log if it exists.
7 debug=false
8 ac_cs_recheck=false
9 ac_cs_silent=false
11 SHELL=${CONFIG_SHELL-/bin/sh}
12 export SHELL
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # as_fn_error STATUS ERROR [LINENO LOG_FD]
138 # ----------------------------------------
139 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
140 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
141 # script with STATUS, using 1 if that was 0.
142 as_fn_error ()
144 as_status=$1; test $as_status -eq 0 && as_status=1
145 if test "$4"; then
146 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
147 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
149 $as_echo "$as_me: error: $2" >&2
150 as_fn_exit $as_status
151 } # as_fn_error
154 # as_fn_set_status STATUS
155 # -----------------------
156 # Set $? to STATUS, without forking.
157 as_fn_set_status ()
159 return $1
160 } # as_fn_set_status
162 # as_fn_exit STATUS
163 # -----------------
164 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
165 as_fn_exit ()
167 set +e
168 as_fn_set_status $1
169 exit $1
170 } # as_fn_exit
172 # as_fn_unset VAR
173 # ---------------
174 # Portably unset VAR.
175 as_fn_unset ()
177 { eval $1=; unset $1;}
179 as_unset=as_fn_unset
180 # as_fn_append VAR VALUE
181 # ----------------------
182 # Append the text in VALUE to the end of the definition contained in VAR. Take
183 # advantage of any shell optimizations that allow amortized linear growth over
184 # repeated appends, instead of the typical quadratic growth present in naive
185 # implementations.
186 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
187 eval 'as_fn_append ()
189 eval $1+=\$2
191 else
192 as_fn_append ()
194 eval $1=\$$1\$2
196 fi # as_fn_append
198 # as_fn_arith ARG...
199 # ------------------
200 # Perform arithmetic evaluation on the ARGs, and store the result in the
201 # global $as_val. Take advantage of shells that can avoid forks. The arguments
202 # must be portable across $(()) and expr.
203 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
204 eval 'as_fn_arith ()
206 as_val=$(( $* ))
208 else
209 as_fn_arith ()
211 as_val=`expr "$@" || test $? -eq 1`
213 fi # as_fn_arith
216 if expr a : '\(a\)' >/dev/null 2>&1 &&
217 test "X`expr 00001 : '.*\(...\)'`" = X001; then
218 as_expr=expr
219 else
220 as_expr=false
223 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
224 as_basename=basename
225 else
226 as_basename=false
229 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
230 as_dirname=dirname
231 else
232 as_dirname=false
235 as_me=`$as_basename -- "$0" ||
236 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
237 X"$0" : 'X\(//\)$' \| \
238 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
239 $as_echo X/"$0" |
240 sed '/^.*\/\([^/][^/]*\)\/*$/{
241 s//\1/
244 /^X\/\(\/\/\)$/{
245 s//\1/
248 /^X\/\(\/\).*/{
249 s//\1/
252 s/.*/./; q'`
254 # Avoid depending upon Character Ranges.
255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
258 as_cr_digits='0123456789'
259 as_cr_alnum=$as_cr_Letters$as_cr_digits
261 ECHO_C= ECHO_N= ECHO_T=
262 case `echo -n x` in #(((((
263 -n*)
264 case `echo 'xy\c'` in
265 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
266 xy) ECHO_C='\c';;
267 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
268 ECHO_T=' ';;
269 esac;;
271 ECHO_N='-n';;
272 esac
274 rm -f conf$$ conf$$.exe conf$$.file
275 if test -d conf$$.dir; then
276 rm -f conf$$.dir/conf$$.file
277 else
278 rm -f conf$$.dir
279 mkdir conf$$.dir 2>/dev/null
281 if (echo >conf$$.file) 2>/dev/null; then
282 if ln -s conf$$.file conf$$ 2>/dev/null; then
283 as_ln_s='ln -s'
284 # ... but there are two gotchas:
285 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
286 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
287 # In both cases, we have to default to `cp -p'.
288 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
289 as_ln_s='cp -p'
290 elif ln conf$$.file conf$$ 2>/dev/null; then
291 as_ln_s=ln
292 else
293 as_ln_s='cp -p'
295 else
296 as_ln_s='cp -p'
298 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
299 rmdir conf$$.dir 2>/dev/null
302 # as_fn_mkdir_p
303 # -------------
304 # Create "$as_dir" as a directory, including parents if necessary.
305 as_fn_mkdir_p ()
308 case $as_dir in #(
309 -*) as_dir=./$as_dir;;
310 esac
311 test -d "$as_dir" || eval $as_mkdir_p || {
312 as_dirs=
313 while :; do
314 case $as_dir in #(
315 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
316 *) as_qdir=$as_dir;;
317 esac
318 as_dirs="'$as_qdir' $as_dirs"
319 as_dir=`$as_dirname -- "$as_dir" ||
320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
321 X"$as_dir" : 'X\(//\)[^/]' \| \
322 X"$as_dir" : 'X\(//\)$' \| \
323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
324 $as_echo X"$as_dir" |
325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
326 s//\1/
329 /^X\(\/\/\)[^/].*/{
330 s//\1/
333 /^X\(\/\/\)$/{
334 s//\1/
337 /^X\(\/\).*/{
338 s//\1/
341 s/.*/./; q'`
342 test -d "$as_dir" && break
343 done
344 test -z "$as_dirs" || eval "mkdir $as_dirs"
345 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
348 } # as_fn_mkdir_p
349 if mkdir -p . 2>/dev/null; then
350 as_mkdir_p='mkdir -p "$as_dir"'
351 else
352 test -d ./-p && rmdir ./-p
353 as_mkdir_p=false
356 if test -x / >/dev/null 2>&1; then
357 as_test_x='test -x'
358 else
359 if ls -dL / >/dev/null 2>&1; then
360 as_ls_L_option=L
361 else
362 as_ls_L_option=
364 as_test_x='
365 eval sh -c '\''
366 if test -d "$1"; then
367 test -d "$1/.";
368 else
369 case $1 in #(
370 -*)set "./$1";;
371 esac;
372 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
373 ???[sx]*):;;*)false;;esac;fi
374 '\'' sh
377 as_executable_p=$as_test_x
379 # Sed expression to map a string onto a valid CPP name.
380 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
382 # Sed expression to map a string onto a valid variable name.
383 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
386 exec 6>&1
387 ## ----------------------------------- ##
388 ## Main body of $CONFIG_STATUS script. ##
389 ## ----------------------------------- ##
390 # Save the log message, to keep $0 and so on meaningful, and to
391 # report actual input values of CONFIG_FILES etc. instead of their
392 # values after options handling.
393 ac_log="
394 This file was extended by $as_me, which was
395 generated by GNU Autoconf 2.67. Invocation command line was
397 CONFIG_FILES = $CONFIG_FILES
398 CONFIG_HEADERS = $CONFIG_HEADERS
399 CONFIG_LINKS = $CONFIG_LINKS
400 CONFIG_COMMANDS = $CONFIG_COMMANDS
401 $ $0 $@
403 on `(hostname || uname -n) 2>/dev/null | sed 1q`
406 # Files that config.status was made for.
407 config_files=" Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_type.3pcap"
408 config_headers=" config.h"
410 ac_cs_usage="\
411 \`$as_me' instantiates files and other configuration actions
412 from templates according to the current configuration. Unless the files
413 and actions are specified as TAGs, all are instantiated by default.
415 Usage: $0 [OPTION]... [TAG]...
417 -h, --help print this help, then exit
418 -V, --version print version number and configuration settings, then exit
419 --config print configuration, then exit
420 -q, --quiet, --silent
421 do not print progress messages
422 -d, --debug don't remove temporary files
423 --recheck update $as_me by reconfiguring in the same conditions
424 --file=FILE[:TEMPLATE]
425 instantiate the configuration file FILE
426 --header=FILE[:TEMPLATE]
427 instantiate the configuration header FILE
429 Configuration files:
430 $config_files
432 Configuration headers:
433 $config_headers
435 Report bugs to the package provider."
437 ac_cs_config="'--host=mipsel-linux' '--build=x86_64-linux-gnu' '--prefix=/usr' '--with-pcap=linux' '--enable-ipv6' 'build_alias=x86_64-linux-gnu' 'host_alias=mipsel-linux' 'CC=mipsel-uclibc-gcc' 'CFLAGS=-Os -Wall -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32 '"
438 ac_cs_version="\
439 config.status
440 configured by ./configure, generated by GNU Autoconf 2.67,
441 with options \"$ac_cs_config\"
443 Copyright (C) 2010 Free Software Foundation, Inc.
444 This config.status script is free software; the Free Software Foundation
445 gives unlimited permission to copy, distribute and modify it."
447 ac_pwd='/home/vicente/tomato/release/src/router/libpcap'
448 srcdir='.'
449 INSTALL='/usr/bin/install -c'
450 test -n "$AWK" || AWK=awk
451 # The default lists apply if the user does not specify any file.
452 ac_need_defaults=:
453 while test $# != 0
455 case $1 in
456 --*=?*)
457 ac_option=`expr "X$1" : 'X\([^=]*\)='`
458 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
459 ac_shift=:
461 --*=)
462 ac_option=`expr "X$1" : 'X\([^=]*\)='`
463 ac_optarg=
464 ac_shift=:
467 ac_option=$1
468 ac_optarg=$2
469 ac_shift=shift
471 esac
473 case $ac_option in
474 # Handling of the options.
475 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
476 ac_cs_recheck=: ;;
477 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
478 $as_echo "$ac_cs_version"; exit ;;
479 --config | --confi | --conf | --con | --co | --c )
480 $as_echo "$ac_cs_config"; exit ;;
481 --debug | --debu | --deb | --de | --d | -d )
482 debug=: ;;
483 --file | --fil | --fi | --f )
484 $ac_shift
485 case $ac_optarg in
486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
487 '') as_fn_error $? "missing file argument" ;;
488 esac
489 as_fn_append CONFIG_FILES " '$ac_optarg'"
490 ac_need_defaults=false;;
491 --header | --heade | --head | --hea )
492 $ac_shift
493 case $ac_optarg in
494 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
495 esac
496 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
497 ac_need_defaults=false;;
498 --he | --h)
499 # Conflict between --help and --header
500 as_fn_error $? "ambiguous option: \`$1'
501 Try \`$0 --help' for more information.";;
502 --help | --hel | -h )
503 $as_echo "$ac_cs_usage"; exit ;;
504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
505 | -silent | --silent | --silen | --sile | --sil | --si | --s)
506 ac_cs_silent=: ;;
508 # This is an error.
509 -*) as_fn_error $? "unrecognized option: \`$1'
510 Try \`$0 --help' for more information." ;;
512 *) as_fn_append ac_config_targets " $1"
513 ac_need_defaults=false ;;
515 esac
516 shift
517 done
519 ac_configure_extra_args=
521 if $ac_cs_silent; then
522 exec 6>/dev/null
523 ac_configure_extra_args="$ac_configure_extra_args --silent"
526 if $ac_cs_recheck; then
527 set X '/bin/sh' './configure' '--host=mipsel-linux' '--build=x86_64-linux-gnu' '--prefix=/usr' '--with-pcap=linux' '--enable-ipv6' 'build_alias=x86_64-linux-gnu' 'host_alias=mipsel-linux' 'CC=mipsel-uclibc-gcc' 'CFLAGS=-Os -Wall -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32 ' $ac_configure_extra_args --no-create --no-recursion
528 shift
529 $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
530 CONFIG_SHELL='/bin/sh'
531 export CONFIG_SHELL
532 exec "$@"
535 exec 5>>config.log
537 echo
538 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
539 ## Running $as_me. ##
540 _ASBOX
541 $as_echo "$ac_log"
542 } >&5
545 # Handling of arguments.
546 for ac_config_target in $ac_config_targets
548 case $ac_config_target in
549 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
550 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
551 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
552 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
553 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
554 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
555 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
556 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
557 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
558 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
559 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
560 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
561 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
562 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
563 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
565 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
566 esac
567 done
570 # If the user did not use the arguments to specify the items to instantiate,
571 # then the envvar interface is used. Set only those that are not.
572 # We use the long form for the default assignment because of an extremely
573 # bizarre bug on SunOS 4.1.3.
574 if $ac_need_defaults; then
575 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
576 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
579 # Have a temporary directory for convenience. Make it in the build tree
580 # simply because there is no reason against having it here, and in addition,
581 # creating and moving files from /tmp can sometimes cause problems.
582 # Hook for its removal unless debugging.
583 # Note that there is a small window in which the directory will not be cleaned:
584 # after its creation but before its name has been assigned to `$tmp'.
585 $debug ||
587 tmp=
588 trap 'exit_status=$?
589 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
591 trap 'as_fn_exit 1' 1 2 13 15
593 # Create a (secure) tmp directory for tmp files.
596 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
597 test -n "$tmp" && test -d "$tmp"
598 } ||
600 tmp=./conf$$-$RANDOM
601 (umask 077 && mkdir "$tmp")
602 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
604 # Set up the scripts for CONFIG_FILES section.
605 # No need to generate them if there are no CONFIG_FILES.
606 # This happens for instance with `./config.status config.h'.
607 if test -n "$CONFIG_FILES"; then
610 ac_cr=`echo X | tr X '\015'`
611 # On cygwin, bash can eat \r inside `` if the user requested igncr.
612 # But we know of no other shell where ac_cr would be empty at this
613 # point, so we can use a bashism as a fallback.
614 if test "x$ac_cr" = x; then
615 eval ac_cr=\$\'\\r\'
617 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
618 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
619 ac_cs_awk_cr='\\r'
620 else
621 ac_cs_awk_cr=$ac_cr
624 echo 'BEGIN {' >"$tmp/subs1.awk" &&
625 cat >>"$tmp/subs1.awk" <<\_ACAWK &&
626 S["LTLIBOBJS"]=""
627 S["INSTALL_DATA"]="${INSTALL} -m 644"
628 S["INSTALL_SCRIPT"]="${INSTALL}"
629 S["INSTALL_PROGRAM"]="${INSTALL}"
630 S["CAN_SRC"]=""
631 S["PCAP_SUPPORT_CAN"]=""
632 S["CANUSB_SRC"]=""
633 S["PCAP_SUPPORT_CANUSB"]=""
634 S["BT_SRC"]=""
635 S["PCAP_SUPPORT_BT"]=""
636 S["NETFILTER_SRC"]=""
637 S["PCAP_SUPPORT_NETFILTER"]=""
638 S["USB_SRC"]="pcap-usb-linux.c"
639 S["PCAP_SUPPORT_USB"]=""
640 S["MAN_MISC_INFO"]="7"
641 S["MAN_FILE_FORMATS"]="5"
642 S["DYEXT"]="so"
643 S["SSRC"]=""
644 S["ADDLARCHIVEOBJS"]=""
645 S["ADDLOBJS"]=""
646 S["V_RPATH_OPT"]="-Wl,-rpath,"
647 S["V_SONAME_OPT"]="-Wl,-soname,"
648 S["V_SHLIB_OPT"]="-shared"
649 S["V_SHLIB_CMD"]="$(CC)"
650 S["V_PCAP"]="linux"
651 S["V_INCLS"]=""
652 S["V_FINDALLDEVS"]="getad"
653 S["V_DEFS"]=" -D_U_=\"__attribute__((unused))\""
654 S["V_CCOPT"]="-O2 -fpic -Os -Wall -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32 "
655 S["AR"]="mipsel-uclibc-ar"
656 S["RANLIB"]="mipsel-uclibc-ranlib"
657 S["V_YACC"]="bison -y -p pcap_"
658 S["V_LEX"]="flex -Ppcap_"
659 S["HAVE_LINUX_TPACKET_AUXDATA"]=""
660 S["LIBOBJS"]=""
661 S["EGREP"]="/bin/grep -E"
662 S["GREP"]="/bin/grep"
663 S["CPP"]="mipsel-uclibc-gcc -E"
664 S["OBJEXT"]="o"
665 S["EXEEXT"]=""
666 S["ac_ct_CC"]=""
667 S["CPPFLAGS"]=""
668 S["LDFLAGS"]=""
669 S["CFLAGS"]="-Os -Wall -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32 "
670 S["CC"]="mipsel-uclibc-gcc"
671 S["SHLICC2"]=""
672 S["target_os"]="linux-gnu"
673 S["target_vendor"]="unknown"
674 S["target_cpu"]="mipsel"
675 S["target"]="mipsel-unknown-linux-gnu"
676 S["host_os"]="linux-gnu"
677 S["host_vendor"]="unknown"
678 S["host_cpu"]="mipsel"
679 S["host"]="mipsel-unknown-linux-gnu"
680 S["build_os"]="linux-gnu"
681 S["build_vendor"]="pc"
682 S["build_cpu"]="x86_64"
683 S["build"]="x86_64-pc-linux-gnu"
684 S["target_alias"]=""
685 S["host_alias"]="mipsel-linux"
686 S["build_alias"]="x86_64-linux-gnu"
687 S["LIBS"]=""
688 S["ECHO_T"]=""
689 S["ECHO_N"]="-n"
690 S["ECHO_C"]=""
691 S["DEFS"]="-DHAVE_CONFIG_H"
692 S["mandir"]="${datarootdir}/man"
693 S["localedir"]="${datarootdir}/locale"
694 S["libdir"]="${exec_prefix}/lib"
695 S["psdir"]="${docdir}"
696 S["pdfdir"]="${docdir}"
697 S["dvidir"]="${docdir}"
698 S["htmldir"]="${docdir}"
699 S["infodir"]="${datarootdir}/info"
700 S["docdir"]="${datarootdir}/doc/${PACKAGE}"
701 S["oldincludedir"]="/usr/include"
702 S["includedir"]="${prefix}/include"
703 S["localstatedir"]="${prefix}/var"
704 S["sharedstatedir"]="${prefix}/com"
705 S["sysconfdir"]="${prefix}/etc"
706 S["datadir"]="${datarootdir}"
707 S["datarootdir"]="${prefix}/share"
708 S["libexecdir"]="${exec_prefix}/libexec"
709 S["sbindir"]="${exec_prefix}/sbin"
710 S["bindir"]="${exec_prefix}/bin"
711 S["program_transform_name"]="s,x,x,"
712 S["prefix"]="/usr"
713 S["exec_prefix"]="${prefix}"
714 S["PACKAGE_URL"]=""
715 S["PACKAGE_BUGREPORT"]=""
716 S["PACKAGE_STRING"]=""
717 S["PACKAGE_VERSION"]=""
718 S["PACKAGE_TARNAME"]=""
719 S["PACKAGE_NAME"]=""
720 S["PATH_SEPARATOR"]=":"
721 S["SHELL"]="/bin/sh"
722 _ACAWK
723 cat >>"$tmp/subs1.awk" <<_ACAWK &&
724 for (key in S) S_is_set[key] = 1
725 FS = "\a"
729 line = $ 0
730 nfields = split(line, field, "@")
731 substed = 0
732 len = length(field[1])
733 for (i = 2; i < nfields; i++) {
734 key = field[i]
735 keylen = length(key)
736 if (S_is_set[key]) {
737 value = S[key]
738 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
739 len += length(value) + length(field[++i])
740 substed = 1
741 } else
742 len += 1 + keylen
745 print line
748 _ACAWK
749 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
750 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
751 else
753 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
754 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
755 fi # test -n "$CONFIG_FILES"
757 # Set up the scripts for CONFIG_HEADERS section.
758 # No need to generate them if there are no CONFIG_HEADERS.
759 # This happens for instance with `./config.status Makefile'.
760 if test -n "$CONFIG_HEADERS"; then
761 cat >"$tmp/defines.awk" <<\_ACAWK ||
762 BEGIN {
763 D["PACKAGE_NAME"]=" \"\""
764 D["PACKAGE_TARNAME"]=" \"\""
765 D["PACKAGE_VERSION"]=" \"\""
766 D["PACKAGE_STRING"]=" \"\""
767 D["PACKAGE_BUGREPORT"]=" \"\""
768 D["PACKAGE_URL"]=" \"\""
769 D["inline"]=" inline"
770 D["HAVE___ATTRIBUTE__"]=" 1"
771 D["STDC_HEADERS"]=" 1"
772 D["HAVE_SYS_TYPES_H"]=" 1"
773 D["HAVE_SYS_STAT_H"]=" 1"
774 D["HAVE_STDLIB_H"]=" 1"
775 D["HAVE_STRING_H"]=" 1"
776 D["HAVE_MEMORY_H"]=" 1"
777 D["HAVE_STRINGS_H"]=" 1"
778 D["HAVE_INTTYPES_H"]=" 1"
779 D["HAVE_STDINT_H"]=" 1"
780 D["HAVE_UNISTD_H"]=" 1"
781 D["HAVE_SYS_BITYPES_H"]=" 1"
782 D["_FILE_OFFSET_BITS"]=" 64"
783 D["_LARGEFILE_SOURCE"]=" 1"
784 D["HAVE_FSEEKO"]=" 1"
785 D["HAVE_LIMITS_H"]=" 1"
786 D["HAVE_PATHS_H"]=" 1"
787 D["HAVE_LINUX_TYPES_H"]=" 1"
788 D["HAVE_LINUX_IF_PACKET_H"]=" 1"
789 D["HAVE_NETPACKET_PACKET_H"]=" 1"
790 D["HAVE_NETINET_IF_ETHER_H"]=" 1"
791 D["HAVE_STRERROR"]=" 1"
792 D["HAVE_STRLCPY"]=" 1"
793 D["HAVE_VSNPRINTF"]=" 1"
794 D["HAVE_SNPRINTF"]=" 1"
795 D["HAVE_ETHER_HOSTTON"]=" 1"
796 D["HAVE_NETINET_ETHER_H"]=" 1"
797 D["NETINET_ETHER_H_DECLARES_ETHER_HOSTTON"]=" /**/"
798 D["HAVE_DECL_ETHER_HOSTTON"]=" 1"
799 D["HAVE_LINUX_WIRELESS_H"]=" 1"
800 D["HAVE_LINUX_ETHTOOL_H"]=" 1"
801 D["HAVE_TPACKET_STATS"]=" 1"
802 D["HAVE_SOCKLEN_T"]=" 1"
803 D["INET6"]=" 1"
804 D["HAVE_SOCKADDR_STORAGE"]=" 1"
805 D["LBL_ALIGN"]=" 1"
806 D["HAVE_VERSION_H"]=" 1"
807 D["PCAP_SUPPORT_USB"]=" 1"
808 D["LINUX_USB_MON_DEV"]=" \"/dev/usbmon\""
809 D["HAVE_LINUX_COMPILER_H"]=" 1"
810 D["HAVE_LINUX_USBDEVICE_FS_H"]=" 1"
811 D["HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE"]=" 1"
812 for (key in D) D_is_set[key] = 1
813 FS = "\a"
815 /^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ {
816 line = $ 0
817 split(line, arg, " ")
818 if (arg[1] == "#") {
819 defundef = arg[2]
820 mac1 = arg[3]
821 } else {
822 defundef = substr(arg[1], 2)
823 mac1 = arg[2]
825 split(mac1, mac2, "(") #)
826 macro = mac2[1]
827 prefix = substr(line, 1, index(line, defundef) - 1)
828 if (D_is_set[macro]) {
829 # Preserve the white space surrounding the "#".
830 print prefix "define", macro P[macro] D[macro]
831 next
832 } else {
833 # Replace #undef with comments. This is necessary, for example,
834 # in the case of _POSIX_SOURCE, which is predefined and required
835 # on some systems where configure will not decide to define it.
836 if (defundef == "undef") {
837 print "/*", prefix defundef, macro, "*/"
838 next
842 { print }
843 _ACAWK
844 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
845 fi # test -n "$CONFIG_HEADERS"
848 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
849 shift
850 for ac_tag
852 case $ac_tag in
853 :[FHLC]) ac_mode=$ac_tag; continue;;
854 esac
855 case $ac_mode$ac_tag in
856 :[FHL]*:*);;
857 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
858 :[FH]-) ac_tag=-:-;;
859 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
860 esac
861 ac_save_IFS=$IFS
862 IFS=:
863 set x $ac_tag
864 IFS=$ac_save_IFS
865 shift
866 ac_file=$1
867 shift
869 case $ac_mode in
870 :L) ac_source=$1;;
871 :[FH])
872 ac_file_inputs=
873 for ac_f
875 case $ac_f in
876 -) ac_f="$tmp/stdin";;
877 *) # Look for the file first in the build tree, then in the source tree
878 # (if the path is not absolute). The absolute path cannot be DOS-style,
879 # because $ac_f cannot contain `:'.
880 test -f "$ac_f" ||
881 case $ac_f in
882 [\\/$]*) false;;
883 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
884 esac ||
885 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
886 esac
887 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
888 as_fn_append ac_file_inputs " '$ac_f'"
889 done
891 # Let's still pretend it is `configure' which instantiates (i.e., don't
892 # use $as_me), people would be surprised to read:
893 # /* config.h. Generated by config.status. */
894 configure_input='Generated from '`
895 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
896 `' by configure.'
897 if test x"$ac_file" != x-; then
898 configure_input="$ac_file. $configure_input"
899 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
900 $as_echo "$as_me: creating $ac_file" >&6;}
902 # Neutralize special characters interpreted by sed in replacement strings.
903 case $configure_input in #(
904 *\&* | *\|* | *\\* )
905 ac_sed_conf_input=`$as_echo "$configure_input" |
906 sed 's/[\\\\&|]/\\\\&/g'`;; #(
907 *) ac_sed_conf_input=$configure_input;;
908 esac
910 case $ac_tag in
911 *:-:* | *:-) cat >"$tmp/stdin" \
912 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
913 esac
915 esac
917 ac_dir=`$as_dirname -- "$ac_file" ||
918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
919 X"$ac_file" : 'X\(//\)[^/]' \| \
920 X"$ac_file" : 'X\(//\)$' \| \
921 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
922 $as_echo X"$ac_file" |
923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
924 s//\1/
927 /^X\(\/\/\)[^/].*/{
928 s//\1/
931 /^X\(\/\/\)$/{
932 s//\1/
935 /^X\(\/\).*/{
936 s//\1/
939 s/.*/./; q'`
940 as_dir="$ac_dir"; as_fn_mkdir_p
941 ac_builddir=.
943 case "$ac_dir" in
944 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
946 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
947 # A ".." for each directory in $ac_dir_suffix.
948 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
949 case $ac_top_builddir_sub in
950 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
951 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
952 esac ;;
953 esac
954 ac_abs_top_builddir=$ac_pwd
955 ac_abs_builddir=$ac_pwd$ac_dir_suffix
956 # for backward compatibility:
957 ac_top_builddir=$ac_top_build_prefix
959 case $srcdir in
960 .) # We are building in place.
961 ac_srcdir=.
962 ac_top_srcdir=$ac_top_builddir_sub
963 ac_abs_top_srcdir=$ac_pwd ;;
964 [\\/]* | ?:[\\/]* ) # Absolute name.
965 ac_srcdir=$srcdir$ac_dir_suffix;
966 ac_top_srcdir=$srcdir
967 ac_abs_top_srcdir=$srcdir ;;
968 *) # Relative name.
969 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
970 ac_top_srcdir=$ac_top_build_prefix$srcdir
971 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
972 esac
973 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
976 case $ac_mode in
979 # CONFIG_FILE
982 case $INSTALL in
983 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
984 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
985 esac
986 # If the template does not know about datarootdir, expand it.
987 # FIXME: This hack should be removed a few years after 2.60.
988 ac_datarootdir_hack=; ac_datarootdir_seen=
989 ac_sed_dataroot='
990 /datarootdir/ {
994 /@datadir@/p
995 /@docdir@/p
996 /@infodir@/p
997 /@localedir@/p
998 /@mandir@/p'
999 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1000 *datarootdir*) ac_datarootdir_seen=yes;;
1001 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
1003 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1004 ac_datarootdir_hack='
1005 s&@datadir@&${datarootdir}&g
1006 s&@docdir@&${datarootdir}/doc/${PACKAGE}&g
1007 s&@infodir@&${datarootdir}/info&g
1008 s&@localedir@&${datarootdir}/locale&g
1009 s&@mandir@&${datarootdir}/man&g
1010 s&\${datarootdir}&${prefix}/share&g' ;;
1011 esac
1012 ac_sed_extra="/^[ ]*VPATH[ ]*=[ ]*/{
1014 s///
1015 s/^/:/
1016 s/[ ]*$/:/
1017 s/:\$(srcdir):/:/g
1018 s/:\${srcdir}:/:/g
1019 s/:@srcdir@:/:/g
1020 s/^:*//
1021 s/:*$//
1023 s/\(=[ ]*\).*/\1/
1025 s/\n//
1026 s/^[^=]*=[ ]*$//
1030 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1031 s|@configure_input@|$ac_sed_conf_input|;t t
1032 s&@top_builddir@&$ac_top_builddir_sub&;t t
1033 s&@top_build_prefix@&$ac_top_build_prefix&;t t
1034 s&@srcdir@&$ac_srcdir&;t t
1035 s&@abs_srcdir@&$ac_abs_srcdir&;t t
1036 s&@top_srcdir@&$ac_top_srcdir&;t t
1037 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
1038 s&@builddir@&$ac_builddir&;t t
1039 s&@abs_builddir@&$ac_abs_builddir&;t t
1040 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1041 s&@INSTALL@&$ac_INSTALL&;t t
1042 $ac_datarootdir_hack
1044 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
1045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1047 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1048 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
1049 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1051 which seems to be undefined. Please make sure it is defined" >&5
1052 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1053 which seems to be undefined. Please make sure it is defined" >&2;}
1055 rm -f "$tmp/stdin"
1056 case $ac_file in
1057 -) cat "$tmp/out" && rm -f "$tmp/out";;
1058 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
1059 esac \
1060 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1064 # CONFIG_HEADER
1066 if test x"$ac_file" != x-; then
1068 $as_echo "/* $configure_input */" \
1069 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
1070 } >"$tmp/config.h" \
1071 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1072 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
1073 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1074 $as_echo "$as_me: $ac_file is unchanged" >&6;}
1075 else
1076 rm -f "$ac_file"
1077 mv "$tmp/config.h" "$ac_file" \
1078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1080 else
1081 $as_echo "/* $configure_input */" \
1082 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
1083 || as_fn_error $? "could not create -" "$LINENO" 5
1088 esac
1090 done # for ac_tag
1093 as_fn_exit 0