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