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