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