1177303434d708f20b6236af52f29daa9043c965
[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       # (even with -Werror).  So we grep stderr for any message
2495       # that says an option was ignored.
2496       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2497         am_cv_CXX_dependencies_compiler_type=$depmode
2498         break
2499       fi
2500     fi
2501   done
2502
2503   cd ..
2504   rm -rf conftest.dir
2505 else
2506   am_cv_CXX_dependencies_compiler_type=none
2507 fi
2508
2509 fi
2510 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2511 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2512 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2513
2514
2515
2516 if
2517   test "x$enable_dependency_tracking" != xno \
2518   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2519   am__fastdepCXX_TRUE=
2520   am__fastdepCXX_FALSE='#'
2521 else
2522   am__fastdepCXX_TRUE='#'
2523   am__fastdepCXX_FALSE=
2524 fi
2525
2526
2527 ac_ext=c
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532 if test -n "$ac_tool_prefix"; then
2533   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2535 echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540   if test -n "$CC"; then
2541   ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548   for ac_exec_ext in '' $ac_executable_extensions; do
2549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552     break 2
2553   fi
2554 done
2555 done
2556
2557 fi
2558 fi
2559 CC=$ac_cv_prog_CC
2560 if test -n "$CC"; then
2561   echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6
2563 else
2564   echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6
2566 fi
2567
2568 fi
2569 if test -z "$ac_cv_prog_CC"; then
2570   ac_ct_CC=$CC
2571   # Extract the first word of "gcc", so it can be a program name with args.
2572 set dummy gcc; ac_word=$2
2573 echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   if test -n "$ac_ct_CC"; then
2579   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584   IFS=$as_save_IFS
2585   test -z "$as_dir" && as_dir=.
2586   for ac_exec_ext in '' $ac_executable_extensions; do
2587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588     ac_cv_prog_ac_ct_CC="gcc"
2589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590     break 2
2591   fi
2592 done
2593 done
2594
2595 fi
2596 fi
2597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2598 if test -n "$ac_ct_CC"; then
2599   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2600 echo "${ECHO_T}$ac_ct_CC" >&6
2601 else
2602   echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6
2604 fi
2605
2606   CC=$ac_ct_CC
2607 else
2608   CC="$ac_cv_prog_CC"
2609 fi
2610
2611 if test -z "$CC"; then
2612   if test -n "$ac_tool_prefix"; then
2613   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2614 set dummy ${ac_tool_prefix}cc; ac_word=$2
2615 echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2617 if test "${ac_cv_prog_CC+set}" = set; then
2618   echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620   if test -n "$CC"; then
2621   ac_cv_prog_CC="$CC" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626   IFS=$as_save_IFS
2627   test -z "$as_dir" && as_dir=.
2628   for ac_exec_ext in '' $ac_executable_extensions; do
2629   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630     ac_cv_prog_CC="${ac_tool_prefix}cc"
2631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632     break 2
2633   fi
2634 done
2635 done
2636
2637 fi
2638 fi
2639 CC=$ac_cv_prog_CC
2640 if test -n "$CC"; then
2641   echo "$as_me:$LINENO: result: $CC" >&5
2642 echo "${ECHO_T}$CC" >&6
2643 else
2644   echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6
2646 fi
2647
2648 fi
2649 if test -z "$ac_cv_prog_CC"; then
2650   ac_ct_CC=$CC
2651   # Extract the first word of "cc", so it can be a program name with args.
2652 set dummy cc; ac_word=$2
2653 echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656   echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658   if test -n "$ac_ct_CC"; then
2659   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664   IFS=$as_save_IFS
2665   test -z "$as_dir" && as_dir=.
2666   for ac_exec_ext in '' $ac_executable_extensions; do
2667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668     ac_cv_prog_ac_ct_CC="cc"
2669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670     break 2
2671   fi
2672 done
2673 done
2674
2675 fi
2676 fi
2677 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2678 if test -n "$ac_ct_CC"; then
2679   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680 echo "${ECHO_T}$ac_ct_CC" >&6
2681 else
2682   echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6
2684 fi
2685
2686   CC=$ac_ct_CC
2687 else
2688   CC="$ac_cv_prog_CC"
2689 fi
2690
2691 fi
2692 if test -z "$CC"; then
2693   # Extract the first word of "cc", so it can be a program name with args.
2694 set dummy cc; ac_word=$2
2695 echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697 if test "${ac_cv_prog_CC+set}" = set; then
2698   echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700   if test -n "$CC"; then
2701   ac_cv_prog_CC="$CC" # Let the user override the test.
2702 else
2703   ac_prog_rejected=no
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707   IFS=$as_save_IFS
2708   test -z "$as_dir" && as_dir=.
2709   for ac_exec_ext in '' $ac_executable_extensions; do
2710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2712        ac_prog_rejected=yes
2713        continue
2714      fi
2715     ac_cv_prog_CC="cc"
2716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717     break 2
2718   fi
2719 done
2720 done
2721
2722 if test $ac_prog_rejected = yes; then
2723   # We found a bogon in the path, so make sure we never use it.
2724   set dummy $ac_cv_prog_CC
2725   shift
2726   if test $# != 0; then
2727     # We chose a different compiler from the bogus one.
2728     # However, it has the same basename, so the bogon will be chosen
2729     # first if we set CC to just the basename; use the full file name.
2730     shift
2731     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2732   fi
2733 fi
2734 fi
2735 fi
2736 CC=$ac_cv_prog_CC
2737 if test -n "$CC"; then
2738   echo "$as_me:$LINENO: result: $CC" >&5
2739 echo "${ECHO_T}$CC" >&6
2740 else
2741   echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6
2743 fi
2744
2745 fi
2746 if test -z "$CC"; then
2747   if test -n "$ac_tool_prefix"; then
2748   for ac_prog in cl
2749   do
2750     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2752 echo "$as_me:$LINENO: checking for $ac_word" >&5
2753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2754 if test "${ac_cv_prog_CC+set}" = set; then
2755   echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757   if test -n "$CC"; then
2758   ac_cv_prog_CC="$CC" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763   IFS=$as_save_IFS
2764   test -z "$as_dir" && as_dir=.
2765   for ac_exec_ext in '' $ac_executable_extensions; do
2766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769     break 2
2770   fi
2771 done
2772 done
2773
2774 fi
2775 fi
2776 CC=$ac_cv_prog_CC
2777 if test -n "$CC"; then
2778   echo "$as_me:$LINENO: result: $CC" >&5
2779 echo "${ECHO_T}$CC" >&6
2780 else
2781   echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6
2783 fi
2784
2785     test -n "$CC" && break
2786   done
2787 fi
2788 if test -z "$CC"; then
2789   ac_ct_CC=$CC
2790   for ac_prog in cl
2791 do
2792   # Extract the first word of "$ac_prog", so it can be a program name with args.
2793 set dummy $ac_prog; ac_word=$2
2794 echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2796 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2797   echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799   if test -n "$ac_ct_CC"; then
2800   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805   IFS=$as_save_IFS
2806   test -z "$as_dir" && as_dir=.
2807   for ac_exec_ext in '' $ac_executable_extensions; do
2808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809     ac_cv_prog_ac_ct_CC="$ac_prog"
2810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811     break 2
2812   fi
2813 done
2814 done
2815
2816 fi
2817 fi
2818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2819 if test -n "$ac_ct_CC"; then
2820   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2821 echo "${ECHO_T}$ac_ct_CC" >&6
2822 else
2823   echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2825 fi
2826
2827   test -n "$ac_ct_CC" && break
2828 done
2829
2830   CC=$ac_ct_CC
2831 fi
2832
2833 fi
2834
2835
2836 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2837 See \`config.log' for more details." >&5
2838 echo "$as_me: error: no acceptable C compiler found in \$PATH
2839 See \`config.log' for more details." >&2;}
2840    { (exit 1); exit 1; }; }
2841
2842 # Provide some information about the compiler.
2843 echo "$as_me:$LINENO:" \
2844      "checking for C compiler version" >&5
2845 ac_compiler=`set X $ac_compile; echo $2`
2846 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2847   (eval $ac_compiler --version </dev/null >&5) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }
2851 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2852   (eval $ac_compiler -v </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
2862 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2863 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2864 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2865   echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867   cat >conftest.$ac_ext <<_ACEOF
2868 /* confdefs.h.  */
2869 _ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h.  */
2873
2874 int
2875 main ()
2876 {
2877 #ifndef __GNUC__
2878        choke me
2879 #endif
2880
2881   ;
2882   return 0;
2883 }
2884 _ACEOF
2885 rm -f conftest.$ac_objext
2886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2887   (eval $ac_compile) 2>conftest.er1
2888   ac_status=$?
2889   grep -v '^ *+' conftest.er1 >conftest.err
2890   rm -f conftest.er1
2891   cat conftest.err >&5
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); } &&
2894          { ac_try='test -z "$ac_c_werror_flag"
2895                          || test ! -s conftest.err'
2896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897   (eval $ac_try) 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; } &&
2901          { ac_try='test -s conftest.$ac_objext'
2902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903   (eval $ac_try) 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); }; }; then
2907   ac_compiler_gnu=yes
2908 else
2909   echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 ac_compiler_gnu=no
2913 fi
2914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2915 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2916
2917 fi
2918 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2919 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2920 GCC=`test $ac_compiler_gnu = yes && echo yes`
2921 ac_test_CFLAGS=${CFLAGS+set}
2922 ac_save_CFLAGS=$CFLAGS
2923 CFLAGS="-g"
2924 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2925 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2926 if test "${ac_cv_prog_cc_g+set}" = set; then
2927   echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929   cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935
2936 int
2937 main ()
2938 {
2939
2940   ;
2941   return 0;
2942 }
2943 _ACEOF
2944 rm -f conftest.$ac_objext
2945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2946   (eval $ac_compile) 2>conftest.er1
2947   ac_status=$?
2948   grep -v '^ *+' conftest.er1 >conftest.err
2949   rm -f conftest.er1
2950   cat conftest.err >&5
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } &&
2953          { ac_try='test -z "$ac_c_werror_flag"
2954                          || test ! -s conftest.err'
2955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956   (eval $ac_try) 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }; } &&
2960          { ac_try='test -s conftest.$ac_objext'
2961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962   (eval $ac_try) 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); }; }; then
2966   ac_cv_prog_cc_g=yes
2967 else
2968   echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971 ac_cv_prog_cc_g=no
2972 fi
2973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2974 fi
2975 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2976 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2977 if test "$ac_test_CFLAGS" = set; then
2978   CFLAGS=$ac_save_CFLAGS
2979 elif test $ac_cv_prog_cc_g = yes; then
2980   if test "$GCC" = yes; then
2981     CFLAGS="-g -O2"
2982   else
2983     CFLAGS="-g"
2984   fi
2985 else
2986   if test "$GCC" = yes; then
2987     CFLAGS="-O2"
2988   else
2989     CFLAGS=
2990   fi
2991 fi
2992 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2993 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2994 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997   ac_cv_prog_cc_stdc=no
2998 ac_save_CC=$CC
2999 cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h.  */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h.  */
3005 #include <stdarg.h>
3006 #include <stdio.h>
3007 #include <sys/types.h>
3008 #include <sys/stat.h>
3009 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3010 struct buf { int x; };
3011 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3012 static char *e (p, i)
3013      char **p;
3014      int i;
3015 {
3016   return p[i];
3017 }
3018 static char *f (char * (*g) (char **, int), char **p, ...)
3019 {
3020   char *s;
3021   va_list v;
3022   va_start (v,p);
3023   s = g (p, va_arg (v,int));
3024   va_end (v);
3025   return s;
3026 }
3027
3028 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3029    function prototypes and stuff, but not '\xHH' hex character constants.
3030    These don't provoke an error unfortunately, instead are silently treated
3031    as 'x'.  The following induces an error, until -std1 is added to get
3032    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3033    array size at least.  It's necessary to write '\x00'==0 to get something
3034    that's true only with -std1.  */
3035 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3036
3037 int test (int i, double x);
3038 struct s1 {int (*f) (int a);};
3039 struct s2 {int (*f) (double a);};
3040 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3041 int argc;
3042 char **argv;
3043 int
3044 main ()
3045 {
3046 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3047   ;
3048   return 0;
3049 }
3050 _ACEOF
3051 # Don't try gcc -ansi; that turns off useful extensions and
3052 # breaks some systems' header files.
3053 # AIX                   -qlanglvl=ansi
3054 # Ultrix and OSF/1      -std1
3055 # HP-UX 10.20 and later -Ae
3056 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3057 # SVR4                  -Xc -D__EXTENSIONS__
3058 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3059 do
3060   CC="$ac_save_CC $ac_arg"
3061   rm -f conftest.$ac_objext
3062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3063   (eval $ac_compile) 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } &&
3070          { ac_try='test -z "$ac_c_werror_flag"
3071                          || test ! -s conftest.err'
3072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073   (eval $ac_try) 2>&5
3074   ac_status=$?
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); }; } &&
3077          { ac_try='test -s conftest.$ac_objext'
3078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079   (eval $ac_try) 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); }; }; then
3083   ac_cv_prog_cc_stdc=$ac_arg
3084 break
3085 else
3086   echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 fi
3090 rm -f conftest.err conftest.$ac_objext
3091 done
3092 rm -f conftest.$ac_ext conftest.$ac_objext
3093 CC=$ac_save_CC
3094
3095 fi
3096
3097 case "x$ac_cv_prog_cc_stdc" in
3098   x|xno)
3099     echo "$as_me:$LINENO: result: none needed" >&5
3100 echo "${ECHO_T}none needed" >&6 ;;
3101   *)
3102     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3103 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3104     CC="$CC $ac_cv_prog_cc_stdc" ;;
3105 esac
3106
3107 # Some people use a C++ compiler to compile C.  Since we use `exit',
3108 # in C++ we need to declare it.  In case someone uses the same compiler
3109 # for both compiling C and C++ we need to have the C++ compiler decide
3110 # the declaration of exit, since it's the most demanding environment.
3111 cat >conftest.$ac_ext <<_ACEOF
3112 #ifndef __cplusplus
3113   choke me
3114 #endif
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3118   (eval $ac_compile) 2>conftest.er1
3119   ac_status=$?
3120   grep -v '^ *+' conftest.er1 >conftest.err
3121   rm -f conftest.er1
3122   cat conftest.err >&5
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); } &&
3125          { ac_try='test -z "$ac_c_werror_flag"
3126                          || test ! -s conftest.err'
3127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128   (eval $ac_try) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; } &&
3132          { ac_try='test -s conftest.$ac_objext'
3133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134   (eval $ac_try) 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }; }; then
3138   for ac_declaration in \
3139    '' \
3140    'extern "C" void std::exit (int) throw (); using std::exit;' \
3141    'extern "C" void std::exit (int); using std::exit;' \
3142    'extern "C" void exit (int) throw ();' \
3143    'extern "C" void exit (int);' \
3144    'void exit (int);'
3145 do
3146   cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h.  */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h.  */
3152 $ac_declaration
3153 #include <stdlib.h>
3154 int
3155 main ()
3156 {
3157 exit (42);
3158   ;
3159   return 0;
3160 }
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164   (eval $ac_compile) 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } &&
3171          { ac_try='test -z "$ac_c_werror_flag"
3172                          || test ! -s conftest.err'
3173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174   (eval $ac_try) 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); }; } &&
3178          { ac_try='test -s conftest.$ac_objext'
3179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180   (eval $ac_try) 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; }; then
3184   :
3185 else
3186   echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 continue
3190 fi
3191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192   cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h.  */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h.  */
3198 $ac_declaration
3199 int
3200 main ()
3201 {
3202 exit (42);
3203   ;
3204   return 0;
3205 }
3206 _ACEOF
3207 rm -f conftest.$ac_objext
3208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209   (eval $ac_compile) 2>conftest.er1
3210   ac_status=$?
3211   grep -v '^ *+' conftest.er1 >conftest.err
3212   rm -f conftest.er1
3213   cat conftest.err >&5
3214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); } &&
3216          { ac_try='test -z "$ac_c_werror_flag"
3217                          || test ! -s conftest.err'
3218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219   (eval $ac_try) 2>&5
3220   ac_status=$?
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); }; } &&
3223          { ac_try='test -s conftest.$ac_objext'
3224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225   (eval $ac_try) 2>&5
3226   ac_status=$?
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); }; }; then
3229   break
3230 else
3231   echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234 fi
3235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3236 done
3237 rm -f conftest*
3238 if test -n "$ac_declaration"; then
3239   echo '#ifdef __cplusplus' >>confdefs.h
3240   echo $ac_declaration      >>confdefs.h
3241   echo '#endif'             >>confdefs.h
3242 fi
3243
3244 else
3245   echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 fi
3249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_ext=c
3251 ac_cpp='$CPP $CPPFLAGS'
3252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255
3256 depcc="$CC"   am_compiler_list=
3257
3258 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3259 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3260 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3261   echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3264   # We make a subdir and do the tests there.  Otherwise we can end up
3265   # making bogus files that we don't know about and never remove.  For
3266   # instance it was reported that on HP-UX the gcc test will end up
3267   # making a dummy file named `D' -- because `-MD' means `put the output
3268   # in D'.
3269   mkdir conftest.dir
3270   # Copy depcomp to subdir because otherwise we won't find it if we're
3271   # using a relative directory.
3272   cp "$am_depcomp" conftest.dir
3273   cd conftest.dir
3274   # We will build objects and dependencies in a subdirectory because
3275   # it helps to detect inapplicable dependency modes.  For instance
3276   # both Tru64's cc and ICC support -MD to output dependencies as a
3277   # side effect of compilation, but ICC will put the dependencies in
3278   # the current directory while Tru64 will put them in the object
3279   # directory.
3280   mkdir sub
3281
3282   am_cv_CC_dependencies_compiler_type=none
3283   if test "$am_compiler_list" = ""; then
3284      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3285   fi
3286   for depmode in $am_compiler_list; do
3287     # Setup a source with many dependencies, because some compilers
3288     # like to wrap large dependency lists on column 80 (with \), and
3289     # we should not choose a depcomp mode which is confused by this.
3290     #
3291     # We need to recreate these files for each test, as the compiler may
3292     # overwrite some of them when testing with obscure command lines.
3293     # This happens at least with the AIX C compiler.
3294     : > sub/conftest.c
3295     for i in 1 2 3 4 5 6; do
3296       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3297       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3298       # Solaris 8's {/usr,}/bin/sh.
3299       touch sub/conftst$i.h
3300     done
3301     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3302
3303     case $depmode in
3304     nosideeffect)
3305       # after this tag, mechanisms are not by side-effect, so they'll
3306       # only be used when explicitly requested
3307       if test "x$enable_dependency_tracking" = xyes; then
3308         continue
3309       else
3310         break
3311       fi
3312       ;;
3313     none) break ;;
3314     esac
3315     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3316     # mode.  It turns out that the SunPro C++ compiler does not properly
3317     # handle `-M -o', and we need to detect this.
3318     if depmode=$depmode \
3319        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3320        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3321        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3322          >/dev/null 2>conftest.err &&
3323        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3324        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3325        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3326       # icc doesn't choke on unknown options, it will just issue warnings
3327       # (even with -Werror).  So we grep stderr for any message
3328       # that says an option was ignored.
3329       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3330         am_cv_CC_dependencies_compiler_type=$depmode
3331         break
3332       fi
3333     fi
3334   done
3335
3336   cd ..
3337   rm -rf conftest.dir
3338 else
3339   am_cv_CC_dependencies_compiler_type=none
3340 fi
3341
3342 fi
3343 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3344 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3345 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3346
3347
3348
3349 if
3350   test "x$enable_dependency_tracking" != xno \
3351   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3352   am__fastdepCC_TRUE=
3353   am__fastdepCC_FALSE='#'
3354 else
3355   am__fastdepCC_TRUE='#'
3356   am__fastdepCC_FALSE=
3357 fi
3358
3359
3360 # Find a good install program.  We prefer a C program (faster),
3361 # so one script is as good as another.  But avoid the broken or
3362 # incompatible versions:
3363 # SysV /etc/install, /usr/sbin/install
3364 # SunOS /usr/etc/install
3365 # IRIX /sbin/install
3366 # AIX /bin/install
3367 # AmigaOS /C/install, which installs bootblocks on floppy discs
3368 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3369 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3370 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3371 # OS/2's system install, which has a completely different semantic
3372 # ./install, which can be erroneously created by make from ./install.sh.
3373 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3374 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3375 if test -z "$INSTALL"; then
3376 if test "${ac_cv_path_install+set}" = set; then
3377   echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382   IFS=$as_save_IFS
3383   test -z "$as_dir" && as_dir=.
3384   # Account for people who put trailing slashes in PATH elements.
3385 case $as_dir/ in
3386   ./ | .// | /cC/* | \
3387   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3388   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3389   /usr/ucb/* ) ;;
3390   *)
3391     # OSF1 and SCO ODT 3.0 have their own names for install.
3392     # Don't use installbsd from OSF since it installs stuff as root
3393     # by default.
3394     for ac_prog in ginstall scoinst install; do
3395       for ac_exec_ext in '' $ac_executable_extensions; do
3396         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3397           if test $ac_prog = install &&
3398             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3399             # AIX install.  It has an incompatible calling convention.
3400             :
3401           elif test $ac_prog = install &&
3402             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3403             # program-specific install script used by HP pwplus--don't use.
3404             :
3405           else
3406             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3407             break 3
3408           fi
3409         fi
3410       done
3411     done
3412     ;;
3413 esac
3414 done
3415
3416
3417 fi
3418   if test "${ac_cv_path_install+set}" = set; then
3419     INSTALL=$ac_cv_path_install
3420   else
3421     # As a last resort, use the slow shell script.  We don't cache a
3422     # path for INSTALL within a source directory, because that will
3423     # break other packages using the cache if that directory is
3424     # removed, or if the path is relative.
3425     INSTALL=$ac_install_sh
3426   fi
3427 fi
3428 echo "$as_me:$LINENO: result: $INSTALL" >&5
3429 echo "${ECHO_T}$INSTALL" >&6
3430
3431 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3432 # It thinks the first close brace ends the variable substitution.
3433 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3434
3435 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3436
3437 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3438
3439 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3440 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3441 LN_S=$as_ln_s
3442 if test "$LN_S" = "ln -s"; then
3443   echo "$as_me:$LINENO: result: yes" >&5
3444 echo "${ECHO_T}yes" >&6
3445 else
3446   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3447 echo "${ECHO_T}no, using $LN_S" >&6
3448 fi
3449
3450 if test -n "$ac_tool_prefix"; then
3451   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3452 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3453 echo "$as_me:$LINENO: checking for $ac_word" >&5
3454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3455 if test "${ac_cv_prog_RANLIB+set}" = set; then
3456   echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458   if test -n "$RANLIB"; then
3459   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464   IFS=$as_save_IFS
3465   test -z "$as_dir" && as_dir=.
3466   for ac_exec_ext in '' $ac_executable_extensions; do
3467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470     break 2
3471   fi
3472 done
3473 done
3474
3475 fi
3476 fi
3477 RANLIB=$ac_cv_prog_RANLIB
3478 if test -n "$RANLIB"; then
3479   echo "$as_me:$LINENO: result: $RANLIB" >&5
3480 echo "${ECHO_T}$RANLIB" >&6
3481 else
3482   echo "$as_me:$LINENO: result: no" >&5
3483 echo "${ECHO_T}no" >&6
3484 fi
3485
3486 fi
3487 if test -z "$ac_cv_prog_RANLIB"; then
3488   ac_ct_RANLIB=$RANLIB
3489   # Extract the first word of "ranlib", so it can be a program name with args.
3490 set dummy ranlib; ac_word=$2
3491 echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3494   echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496   if test -n "$ac_ct_RANLIB"; then
3497   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3501 do
3502   IFS=$as_save_IFS
3503   test -z "$as_dir" && as_dir=.
3504   for ac_exec_ext in '' $ac_executable_extensions; do
3505   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506     ac_cv_prog_ac_ct_RANLIB="ranlib"
3507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3508     break 2
3509   fi
3510 done
3511 done
3512
3513   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3514 fi
3515 fi
3516 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3517 if test -n "$ac_ct_RANLIB"; then
3518   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3519 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3520 else
3521   echo "$as_me:$LINENO: result: no" >&5
3522 echo "${ECHO_T}no" >&6
3523 fi
3524
3525   RANLIB=$ac_ct_RANLIB
3526 else
3527   RANLIB="$ac_cv_prog_RANLIB"
3528 fi
3529
3530 if test "x$CC" != xcc; then
3531   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3532 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3533 else
3534   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3535 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3536 fi
3537 set dummy $CC; ac_cc=`echo $2 |
3538                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3539 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h.  */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h.  */
3548
3549 int
3550 main ()
3551 {
3552
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 # Make sure it works both with $CC and with simple cc.
3558 # We do the test twice because some compilers refuse to overwrite an
3559 # existing .o file with -o, though they will create one.
3560 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3561 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562   (eval $ac_try) 2>&5
3563   ac_status=$?
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); } &&
3566    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567   (eval $ac_try) 2>&5
3568   ac_status=$?
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); };
3571 then
3572   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3573   if test "x$CC" != xcc; then
3574     # Test first that cc exists at all.
3575     if { ac_try='cc -c conftest.$ac_ext >&5'
3576   { (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); }; }; then
3581       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3582       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583   (eval $ac_try) 2>&5
3584   ac_status=$?
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); } &&
3587          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588   (eval $ac_try) 2>&5
3589   ac_status=$?
3590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591   (exit $ac_status); };
3592       then
3593         # cc works too.
3594         :
3595       else
3596         # cc exists but doesn't like -o.
3597         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3598       fi
3599     fi
3600   fi
3601 else
3602   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3603 fi
3604 rm -f conftest*
3605
3606 fi
3607 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3608   echo "$as_me:$LINENO: result: yes" >&5
3609 echo "${ECHO_T}yes" >&6
3610 else
3611   echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3613
3614 cat >>confdefs.h <<\_ACEOF
3615 #define NO_MINUS_C_MINUS_O 1
3616 _ACEOF
3617
3618 fi
3619
3620 # FIXME: we rely on the cache variable name because
3621 # there is no other way.
3622 set dummy $CC
3623 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3624 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3625    # Losing compiler, so override with the script.
3626    # FIXME: It is wrong to rewrite CC.
3627    # But if we don't then we get into trouble of one sort or another.
3628    # A longer-term fix would be to have automake use am__CC in this case,
3629    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3630    CC="$am_aux_dir/compile $CC"
3631 fi
3632
3633
3634
3635
3636
3637         warn_flags="-Werror -W"
3638         echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
3639 echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6
3640         ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
3646         __ensc_check_warnflags_old_CFLAGS="${CFLAGS}"
3647         CFLAGS="$warn_flags"
3648         cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h.  */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h.  */
3654 inline static void f(){}
3655 int
3656 main ()
3657 {
3658
3659   ;
3660   return 0;
3661 }
3662 _ACEOF
3663 rm -f conftest.$ac_objext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665   (eval $ac_compile) 2>conftest.er1
3666   ac_status=$?
3667   grep -v '^ *+' conftest.er1 >conftest.err
3668   rm -f conftest.er1
3669   cat conftest.err >&5
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); } &&
3672          { ac_try='test -z "$ac_c_werror_flag"
3673                          || test ! -s conftest.err'
3674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675   (eval $ac_try) 2>&5
3676   ac_status=$?
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); }; } &&
3679          { ac_try='test -s conftest.$ac_objext'
3680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681   (eval $ac_try) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; }; then
3685   ensc_sys_compilerwarnflags_C=${warn_flags}
3686 else
3687   echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690 ensc_sys_compilerwarnflags_C=
3691 fi
3692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3693         ac_ext=c
3694 ac_cpp='$CPP $CPPFLAGS'
3695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698
3699         CFLAGS="$__ensc_check_warnflags_old_CFLAGS"
3700
3701         if test x"${ensc_sys_compilerwarnflags_C}" = x; then
3702                 echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3704         else
3705                 echo "$as_me:$LINENO: result: yes" >&5
3706 echo "${ECHO_T}yes" >&6
3707         fi
3708
3709
3710
3711
3712
3713 echo 'void f(){}' > conftest.c
3714   for i in -std=c99 -Wall -pedantic -W -Wno-unused-parameter
3715   do
3716     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
3717 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
3718     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
3719     then
3720       CFLAGS="${CFLAGS} $i"
3721       echo "$as_me:$LINENO: result: yes" >&5
3722 echo "${ECHO_T}yes" >&6
3723     else
3724       echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6
3726     fi
3727   done
3728   rm -f conftest.c conftest.o
3729
3730
3731
3732
3733         warn_flags="-Werror -W"
3734         echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
3735 echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6
3736         ac_ext=cc
3737 ac_cpp='$CXXCPP $CPPFLAGS'
3738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3741
3742         __ensc_check_warnflags_old_CFLAGS="${CXXFLAGS}"
3743         CXXFLAGS="$warn_flags"
3744         cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h.  */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h.  */
3750 inline static void f(){}
3751 int
3752 main ()
3753 {
3754
3755   ;
3756   return 0;
3757 }
3758 _ACEOF
3759 rm -f conftest.$ac_objext
3760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3761   (eval $ac_compile) 2>conftest.er1
3762   ac_status=$?
3763   grep -v '^ *+' conftest.er1 >conftest.err
3764   rm -f conftest.er1
3765   cat conftest.err >&5
3766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767   (exit $ac_status); } &&
3768          { ac_try='test -z "$ac_cxx_werror_flag"
3769                          || test ! -s conftest.err'
3770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771   (eval $ac_try) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); }; } &&
3775          { ac_try='test -s conftest.$ac_objext'
3776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777   (eval $ac_try) 2>&5
3778   ac_status=$?
3779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); }; }; then
3781   ensc_sys_compilerwarnflags_CXX=${warn_flags}
3782 else
3783   echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3785
3786 ensc_sys_compilerwarnflags_CXX=
3787 fi
3788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3789         ac_ext=c
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794
3795         CXXFLAGS="$__ensc_check_warnflags_old_CFLAGS"
3796
3797         if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
3798                 echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6
3800         else
3801                 echo "$as_me:$LINENO: result: yes" >&5
3802 echo "${ECHO_T}yes" >&6
3803         fi
3804
3805
3806
3807
3808
3809   echo 'void f(){}' > conftest.cc
3810   for i in -ansi   -Wall -pedantic -W -fmessage-length=0
3811   do
3812     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
3813 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
3814     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
3815     then
3816       CXXFLAGS="${CXXFLAGS} $i"
3817       echo "$as_me:$LINENO: result: yes" >&5
3818 echo "${ECHO_T}yes" >&6
3819     else
3820       echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6
3822     fi
3823   done
3824   rm -f conftest.cc conftest.o
3825
3826
3827
3828
3829         echo "$as_me:$LINENO: checking for linux kernel dir" >&5
3830 echo $ECHO_N "checking for linux kernel dir... $ECHO_C" >&6
3831 if test "${ensc_cv_path_kerneldir+set}" = set; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834
3835
3836 # Check whether --with-kerneldir or --without-kerneldir was given.
3837 if test "${with_kerneldir+set}" = set; then
3838   withval="$with_kerneldir"
3839   case "$withval" in
3840                 yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for kerneldir" >&5
3841 echo "$as_me: error: '$withval' is not a valid value for kerneldir" >&2;}
3842    { (exit 1); exit 1; }; };;
3843                 *)      ensc_cv_path_kerneldir=$withval;;
3844              esac
3845 else
3846   ensc_cv_path_kerneldir=
3847              for i in /lib/modules/$(uname -r)/build /usr/src/linux /usr; do
3848                 test -e $i/include/linux/version.h && { ensc_cv_path_kerneldir=$i; break; }
3849              done
3850 fi;
3851
3852 fi
3853 echo "$as_me:$LINENO: result: $ensc_cv_path_kerneldir" >&5
3854 echo "${ECHO_T}$ensc_cv_path_kerneldir" >&6
3855
3856         test "$ensc_cv_path_kerneldir" -a -e "$ensc_cv_path_kerneldir"/include/linux/version.h || {
3857                 { { echo "$as_me:$LINENO: error: Can not find kernelsources" >&5
3858 echo "$as_me: error: Can not find kernelsources" >&2;}
3859    { (exit 1); exit 1; }; }
3860         }
3861
3862
3863
3864
3865         echo "$as_me:$LINENO: checking for linux kernel headers" >&5
3866 echo $ECHO_N "checking for linux kernel headers... $ECHO_C" >&6
3867 if test "${ensc_cv_path_kernelheaders+set}" = set; then
3868   echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870
3871                 ensc_cv_path_kernelheaders=$ensc_cv_path_kerneldir/include
3872
3873 fi
3874 echo "$as_me:$LINENO: result: $ensc_cv_path_kernelheaders" >&5
3875 echo "${ECHO_T}$ensc_cv_path_kernelheaders" >&6
3876
3877         if test x"kernelincludedir" != x; then
3878                 kernelincludedir=$ensc_cv_path_kernelheaders
3879
3880         fi
3881
3882
3883         echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
3884 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6
3885
3886 # Check whether --with-vrootdir or --without-vrootdir was given.
3887 if test "${with_vrootdir+set}" = set; then
3888   withval="$with_vrootdir"
3889   case "$withval" in
3890                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
3891 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
3892    { (exit 1); exit 1; }; };;
3893                         *)      ensc_uv_path_vrootdir=$withval;;
3894                      esac
3895 else
3896   ensc_uv_path_vrootdir=/vservers
3897 fi;
3898         echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
3899 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6
3900
3901         if test x"vserverdir" != x; then
3902                 vserverdir=$ensc_uv_path_vrootdir
3903
3904         fi
3905
3906
3907         if test x"SYSCALL_SWITCH" != x; then
3908                 CVS2CL_TAG='-F SYSCALL_SWITCH'
3909
3910         fi
3911
3912         for ac_prog in cvs2cl
3913 do
3914   # Extract the first word of "$ac_prog", so it can be a program name with args.
3915 set dummy $ac_prog; ac_word=$2
3916 echo "$as_me:$LINENO: checking for $ac_word" >&5
3917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3918 if test "${ac_cv_prog_CVS2CL+set}" = set; then
3919   echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921   if test -n "$CVS2CL"; then
3922   ac_cv_prog_CVS2CL="$CVS2CL" # Let the user override the test.
3923 else
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 for as_dir in $PATH
3926 do
3927   IFS=$as_save_IFS
3928   test -z "$as_dir" && as_dir=.
3929   for ac_exec_ext in '' $ac_executable_extensions; do
3930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3931     ac_cv_prog_CVS2CL="$ac_prog"
3932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3933     break 2
3934   fi
3935 done
3936 done
3937
3938 fi
3939 fi
3940 CVS2CL=$ac_cv_prog_CVS2CL
3941 if test -n "$CVS2CL"; then
3942   echo "$as_me:$LINENO: result: $CVS2CL" >&5
3943 echo "${ECHO_T}$CVS2CL" >&6
3944 else
3945   echo "$as_me:$LINENO: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3947 fi
3948
3949   test -n "$CVS2CL" && break
3950 done
3951
3952
3953
3954 if test x"$CVS2CL" != x; then
3955   HAVE_CVS2CL_TRUE=
3956   HAVE_CVS2CL_FALSE='#'
3957 else
3958   HAVE_CVS2CL_TRUE='#'
3959   HAVE_CVS2CL_FALSE=
3960 fi
3961
3962
3963         for ac_prog in rcs2log
3964 do
3965   # Extract the first word of "$ac_prog", so it can be a program name with args.
3966 set dummy $ac_prog; ac_word=$2
3967 echo "$as_me:$LINENO: checking for $ac_word" >&5
3968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3969 if test "${ac_cv_prog_RCS2LOG+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   if test -n "$RCS2LOG"; then
3973   ac_cv_prog_RCS2LOG="$RCS2LOG" # Let the user override the test.
3974 else
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3977 do
3978   IFS=$as_save_IFS
3979   test -z "$as_dir" && as_dir=.
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3982     ac_cv_prog_RCS2LOG="$ac_prog"
3983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984     break 2
3985   fi
3986 done
3987 done
3988
3989 fi
3990 fi
3991 RCS2LOG=$ac_cv_prog_RCS2LOG
3992 if test -n "$RCS2LOG"; then
3993   echo "$as_me:$LINENO: result: $RCS2LOG" >&5
3994 echo "${ECHO_T}$RCS2LOG" >&6
3995 else
3996   echo "$as_me:$LINENO: result: no" >&5
3997 echo "${ECHO_T}no" >&6
3998 fi
3999
4000   test -n "$RCS2LOG" && break
4001 done
4002
4003
4004
4005 if test x"$RCS2LOG" != x; then
4006   HAVE_RCS2LOG_TRUE=
4007   HAVE_RCS2LOG_FALSE='#'
4008 else
4009   HAVE_RCS2LOG_TRUE='#'
4010   HAVE_RCS2LOG_FALSE=
4011 fi
4012
4013
4014
4015 echo "$as_me:$LINENO: checking whether to enable linuxconf modules" >&5
4016 echo $ECHO_N "checking whether to enable linuxconf modules... $ECHO_C" >&6
4017 # Check whether --enable-linuxconf or --disable-linuxconf was given.
4018 if test "${enable_linuxconf+set}" = set; then
4019   enableval="$enable_linuxconf"
4020   case "$enableval" in
4021                   yes|no) ;;
4022                   *)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--enable-linuxconf'" >&5
4023 echo "$as_me: error: '$i' is not a supported value for '--enable-linuxconf'" >&2;}
4024    { (exit 1); exit 1; }; };;
4025                esac
4026 else
4027   enable_linuxconf=no
4028 fi;
4029
4030
4031
4032 if test x"$enable_linuxconf" = xyes; then
4033   ENSC_ENABLE_LINUXCONF_TRUE=
4034   ENSC_ENABLE_LINUXCONF_FALSE='#'
4035 else
4036   ENSC_ENABLE_LINUXCONF_TRUE='#'
4037   ENSC_ENABLE_LINUXCONF_FALSE=
4038 fi
4039
4040 echo "$as_me:$LINENO: result: $enable_linuxconf" >&5
4041 echo "${ECHO_T}$enable_linuxconf" >&6
4042
4043
4044 echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
4045 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6
4046 # Check whether --enable-internal-headers or --disable-internal-headers was given.
4047 if test "${enable_internal_headers+set}" = set; then
4048   enableval="$enable_internal_headers"
4049   case "$enableval" in
4050                   yes|no) ;;
4051                   *)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
4052 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
4053    { (exit 1); exit 1; }; };;
4054                esac
4055 else
4056   enable_internal_headers=yes
4057 fi;
4058
4059
4060
4061 if test x"$enable_internal_headers" = xyes; then
4062   ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
4063   ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
4064 else
4065   ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
4066   ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
4067 fi
4068
4069 echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
4070 echo "${ECHO_T}$enable_internal_headers" >&6
4071
4072
4073 echo "$as_me:$LINENO: checking for supported APIs" >&5
4074 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6
4075 # Check whether --enable-apis or --disable-apis was given.
4076 if test "${enable_apis+set}" = set; then
4077   enableval="$enable_apis"
4078
4079 else
4080   enable_apis=ALL
4081 fi;
4082
4083 test x"$enable_apis" != xALL || enable_apis='legacy,compat,v11'
4084 old_IFS=$IFS
4085 IFS=,;
4086 for i in $enable_apis; do
4087         case "$i" in
4088                 compat)
4089 cat >>confdefs.h <<\_ACEOF
4090 #define VC_ENABLE_API_COMPAT 1
4091 _ACEOF
4092 ;;
4093                 legacy)
4094 cat >>confdefs.h <<\_ACEOF
4095 #define VC_ENABLE_API_LEGACY 1
4096 _ACEOF
4097 ;;
4098                 v11)
4099 cat >>confdefs.h <<\_ACEOF
4100 #define VC_ENABLE_API_V11 1
4101 _ACEOF
4102 ;;
4103                 *)      { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
4104 echo "$as_me: error: '$i' is not a supported API" >&2;}
4105    { (exit 1); exit 1; }; };;
4106         esac
4107 done
4108 IFS=$old_IFS
4109 echo "$as_me:$LINENO: result: $enable_apis" >&5
4110 echo "${ECHO_T}$enable_apis" >&6
4111
4112 ac_ext=c
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4118 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4119 # On Suns, sometimes $CPP names a directory.
4120 if test -n "$CPP" && test -d "$CPP"; then
4121   CPP=
4122 fi
4123 if test -z "$CPP"; then
4124   if test "${ac_cv_prog_CPP+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127       # Double quotes because CPP needs to be expanded
4128     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4129     do
4130       ac_preproc_ok=false
4131 for ac_c_preproc_warn_flag in '' yes
4132 do
4133   # Use a header file that comes with gcc, so configuring glibc
4134   # with a fresh cross-compiler works.
4135   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4136   # <limits.h> exists even on freestanding compilers.
4137   # On the NeXT, cc -E runs the code through the compiler's parser,
4138   # not just through cpp. "Syntax error" is here to catch this case.
4139   cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h.  */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h.  */
4145 #ifdef __STDC__
4146 # include <limits.h>
4147 #else
4148 # include <assert.h>
4149 #endif
4150                      Syntax error
4151 _ACEOF
4152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4153   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4154   ac_status=$?
4155   grep -v '^ *+' conftest.er1 >conftest.err
4156   rm -f conftest.er1
4157   cat conftest.err >&5
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); } >/dev/null; then
4160   if test -s conftest.err; then
4161     ac_cpp_err=$ac_c_preproc_warn_flag
4162     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4163   else
4164     ac_cpp_err=
4165   fi
4166 else
4167   ac_cpp_err=yes
4168 fi
4169 if test -z "$ac_cpp_err"; then
4170   :
4171 else
4172   echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4174
4175   # Broken: fails on valid input.
4176 continue
4177 fi
4178 rm -f conftest.err conftest.$ac_ext
4179
4180   # OK, works on sane cases.  Now check whether non-existent headers
4181   # can be detected and how.
4182   cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h.  */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h.  */
4188 #include <ac_nonexistent.h>
4189 _ACEOF
4190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4192   ac_status=$?
4193   grep -v '^ *+' conftest.er1 >conftest.err
4194   rm -f conftest.er1
4195   cat conftest.err >&5
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); } >/dev/null; then
4198   if test -s conftest.err; then
4199     ac_cpp_err=$ac_c_preproc_warn_flag
4200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4201   else
4202     ac_cpp_err=
4203   fi
4204 else
4205   ac_cpp_err=yes
4206 fi
4207 if test -z "$ac_cpp_err"; then
4208   # Broken: success on invalid input.
4209 continue
4210 else
4211   echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214   # Passes both tests.
4215 ac_preproc_ok=:
4216 break
4217 fi
4218 rm -f conftest.err conftest.$ac_ext
4219
4220 done
4221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4222 rm -f conftest.err conftest.$ac_ext
4223 if $ac_preproc_ok; then
4224   break
4225 fi
4226
4227     done
4228     ac_cv_prog_CPP=$CPP
4229
4230 fi
4231   CPP=$ac_cv_prog_CPP
4232 else
4233   ac_cv_prog_CPP=$CPP
4234 fi
4235 echo "$as_me:$LINENO: result: $CPP" >&5
4236 echo "${ECHO_T}$CPP" >&6
4237 ac_preproc_ok=false
4238 for ac_c_preproc_warn_flag in '' yes
4239 do
4240   # Use a header file that comes with gcc, so configuring glibc
4241   # with a fresh cross-compiler works.
4242   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4243   # <limits.h> exists even on freestanding compilers.
4244   # On the NeXT, cc -E runs the code through the compiler's parser,
4245   # not just through cpp. "Syntax error" is here to catch this case.
4246   cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h.  */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h.  */
4252 #ifdef __STDC__
4253 # include <limits.h>
4254 #else
4255 # include <assert.h>
4256 #endif
4257                      Syntax error
4258 _ACEOF
4259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4261   ac_status=$?
4262   grep -v '^ *+' conftest.er1 >conftest.err
4263   rm -f conftest.er1
4264   cat conftest.err >&5
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); } >/dev/null; then
4267   if test -s conftest.err; then
4268     ac_cpp_err=$ac_c_preproc_warn_flag
4269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4270   else
4271     ac_cpp_err=
4272   fi
4273 else
4274   ac_cpp_err=yes
4275 fi
4276 if test -z "$ac_cpp_err"; then
4277   :
4278 else
4279   echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4281
4282   # Broken: fails on valid input.
4283 continue
4284 fi
4285 rm -f conftest.err conftest.$ac_ext
4286
4287   # OK, works on sane cases.  Now check whether non-existent headers
4288   # can be detected and how.
4289   cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h.  */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h.  */
4295 #include <ac_nonexistent.h>
4296 _ACEOF
4297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4298   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4299   ac_status=$?
4300   grep -v '^ *+' conftest.er1 >conftest.err
4301   rm -f conftest.er1
4302   cat conftest.err >&5
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); } >/dev/null; then
4305   if test -s conftest.err; then
4306     ac_cpp_err=$ac_c_preproc_warn_flag
4307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4308   else
4309     ac_cpp_err=
4310   fi
4311 else
4312   ac_cpp_err=yes
4313 fi
4314 if test -z "$ac_cpp_err"; then
4315   # Broken: success on invalid input.
4316 continue
4317 else
4318   echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4320
4321   # Passes both tests.
4322 ac_preproc_ok=:
4323 break
4324 fi
4325 rm -f conftest.err conftest.$ac_ext
4326
4327 done
4328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4329 rm -f conftest.err conftest.$ac_ext
4330 if $ac_preproc_ok; then
4331   :
4332 else
4333   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4334 See \`config.log' for more details." >&5
4335 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4336 See \`config.log' for more details." >&2;}
4337    { (exit 1); exit 1; }; }
4338 fi
4339
4340 ac_ext=c
4341 ac_cpp='$CPP $CPPFLAGS'
4342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4345
4346 echo "$as_me:$LINENO: checking for egrep" >&5
4347 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4348 if test "${ac_cv_prog_egrep+set}" = set; then
4349   echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4352     then ac_cv_prog_egrep='grep -E'
4353     else ac_cv_prog_egrep='egrep'
4354     fi
4355 fi
4356 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4357 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4358  EGREP=$ac_cv_prog_egrep
4359
4360
4361
4362
4363
4364
4365
4366         echo "$as_me:$LINENO: checking for number of syscall 'vserver'" >&5
4367 echo $ECHO_N "checking for number of syscall 'vserver'... $ECHO_C" >&6
4368 if test "${ensc_cv_value_syscall_vserver+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371
4372                 ac_ext=c
4373 ac_cpp='$CPP $CPPFLAGS'
4374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377
4378                 cat >conftest.$ac_ext <<_ACEOF
4379
4380 #include <asm/unistd.h>
4381 #ifdef __NR_vserver
4382 ensc_syscall_tmp_nr=__NR_vserver;
4383 ensc_syscall_tmp_src=ENSC_MARK
4384 #endif
4385
4386 _ACEOF
4387                 ensc_syscall_tmp_nr=
4388                 ensc_syscall_tmp_src=
4389                 test "$ensc_syscall_tmp_nr" || \
4390                         eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc'                                 conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
4391                 test "$ensc_syscall_tmp_nr" || \
4392                         eval $($CPP $CPPFLAGS -D ENSC_MARK='kernel' -I $ensc_cv_path_kernelheaders conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
4393                 test "$ensc_syscall_tmp_nr" || {
4394                         ensc_syscall_tmp_nr=273
4395                         ensc_syscall_tmp_src=default
4396                 }
4397
4398                 if test x"$ensc_syscall_tmp_nr" = x; then
4399                         { { 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
4400 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;}
4401    { (exit 1); exit 1; }; }
4402                 fi
4403                 ac_ext=c
4404 ac_cpp='$CPP $CPPFLAGS'
4405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4408
4409
4410                 ensc_cv_value_syscall_vserver="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
4411
4412 fi
4413 echo "$as_me:$LINENO: result: $ensc_cv_value_syscall_vserver" >&5
4414 echo "${ECHO_T}$ensc_cv_value_syscall_vserver" >&6
4415
4416         ensc_syscall_tmp_nr=${ensc_cv_value_syscall_vserver%/*}
4417         ensc_syscall_tmp_src=${ensc_cv_value_syscall_vserver#*/}
4418
4419         if test x"$ensc_syscall_tmp_src" != x'glibc'; then
4420
4421 cat >>confdefs.h <<_ACEOF
4422 #define ENSC_SYSCALL__NR_vserver $ensc_syscall_tmp_nr
4423 _ACEOF
4424
4425         fi
4426
4427
4428
4429         echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
4430 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6
4431
4432 # Check whether --with-syscall or --without-syscall was given.
4433 if test "${with_syscall+set}" = set; then
4434   withval="$with_syscall"
4435
4436 else
4437   with_syscall=auto
4438 fi;
4439         echo "$as_me:$LINENO: result: $with_syscall" >&5
4440 echo "${ECHO_T}$with_syscall" >&6
4441
4442         case x"$with_syscall" in
4443             xauto)
4444                 echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
4445 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6
4446 if test "${ensc_cv_test_syscall+set}" = set; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449
4450                                 ac_ext=c
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455
4456                                 cat >conftest.$ac_ext <<_ACEOF
4457
4458 #include <asm/unistd.h>
4459 #include <syscall.h>
4460 #include <errno.h>
4461 #define __NR_foo0       300
4462 #define __NR_foo1       301
4463 #define __NR_foo2       302
4464 #define __NR_foo3       303
4465 #define __NR_foo4       304
4466 #define __NR_foo5       305
4467 inline static _syscall0(int, foo0)
4468 inline static _syscall1(int, foo1, int, a)
4469 inline static _syscall2(int, foo2, int, a, int, b)
4470 inline static _syscall3(int, foo3, int, a, int, b, int, c)
4471 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
4472 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
4473
4474 int main() {
4475   return foo0() || \
4476          foo1(1) || \
4477          foo2(1,2) || \
4478          foo3(1,2,3) || \
4479          foo4(1,2,3,4) || \
4480          foo5(1,2,3,4,5);
4481 }
4482
4483 _ACEOF
4484 rm -f conftest.$ac_objext
4485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4486   (eval $ac_compile) 2>conftest.er1
4487   ac_status=$?
4488   grep -v '^ *+' conftest.er1 >conftest.err
4489   rm -f conftest.er1
4490   cat conftest.err >&5
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); } &&
4493          { ac_try='test -z "$ac_c_werror_flag"
4494                          || test ! -s conftest.err'
4495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496   (eval $ac_try) 2>&5
4497   ac_status=$?
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); }; } &&
4500          { ac_try='test -s conftest.$ac_objext'
4501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502   (eval $ac_try) 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }; }; then
4506   ensc_cv_test_syscall=fast
4507 else
4508   echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511 ensc_cv_test_syscall=traditional
4512 fi
4513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4514
4515                                 ac_ext=c
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520
4521
4522 fi
4523 echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
4524 echo "${ECHO_T}$ensc_cv_test_syscall" >&6
4525                 with_syscall=$ensc_cv_test_syscall
4526                 ;;
4527             xfast|xtraditional)
4528                 ;;
4529             *)
4530                 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
4531 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
4532    { (exit 1); exit 1; }; }
4533                 ;;
4534         esac
4535
4536         if test x"$with_syscall" = xtraditional; then
4537
4538 cat >>confdefs.h <<\_ACEOF
4539 #define ENSC_SYSCALL_TRADITIONAL 1
4540 _ACEOF
4541
4542         fi
4543
4544
4545
4546
4547 ac_ext=cc
4548 ac_cpp='$CXXCPP $CPPFLAGS'
4549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4552 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4553 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4554 if test -z "$CXXCPP"; then
4555   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558       # Double quotes because CXXCPP needs to be expanded
4559     for CXXCPP in "$CXX -E" "/lib/cpp"
4560     do
4561       ac_preproc_ok=false
4562 for ac_cxx_preproc_warn_flag in '' yes
4563 do
4564   # Use a header file that comes with gcc, so configuring glibc
4565   # with a fresh cross-compiler works.
4566   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4567   # <limits.h> exists even on freestanding compilers.
4568   # On the NeXT, cc -E runs the code through the compiler's parser,
4569   # not just through cpp. "Syntax error" is here to catch this case.
4570   cat >conftest.$ac_ext <<_ACEOF
4571 /* confdefs.h.  */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h.  */
4576 #ifdef __STDC__
4577 # include <limits.h>
4578 #else
4579 # include <assert.h>
4580 #endif
4581                      Syntax error
4582 _ACEOF
4583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4585   ac_status=$?
4586   grep -v '^ *+' conftest.er1 >conftest.err
4587   rm -f conftest.er1
4588   cat conftest.err >&5
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); } >/dev/null; then
4591   if test -s conftest.err; then
4592     ac_cpp_err=$ac_cxx_preproc_warn_flag
4593     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4594   else
4595     ac_cpp_err=
4596   fi
4597 else
4598   ac_cpp_err=yes
4599 fi
4600 if test -z "$ac_cpp_err"; then
4601   :
4602 else
4603   echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606   # Broken: fails on valid input.
4607 continue
4608 fi
4609 rm -f conftest.err conftest.$ac_ext
4610
4611   # OK, works on sane cases.  Now check whether non-existent headers
4612   # can be detected and how.
4613   cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h.  */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h.  */
4619 #include <ac_nonexistent.h>
4620 _ACEOF
4621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4623   ac_status=$?
4624   grep -v '^ *+' conftest.er1 >conftest.err
4625   rm -f conftest.er1
4626   cat conftest.err >&5
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); } >/dev/null; then
4629   if test -s conftest.err; then
4630     ac_cpp_err=$ac_cxx_preproc_warn_flag
4631     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4632   else
4633     ac_cpp_err=
4634   fi
4635 else
4636   ac_cpp_err=yes
4637 fi
4638 if test -z "$ac_cpp_err"; then
4639   # Broken: success on invalid input.
4640 continue
4641 else
4642   echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645   # Passes both tests.
4646 ac_preproc_ok=:
4647 break
4648 fi
4649 rm -f conftest.err conftest.$ac_ext
4650
4651 done
4652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4653 rm -f conftest.err conftest.$ac_ext
4654 if $ac_preproc_ok; then
4655   break
4656 fi
4657
4658     done
4659     ac_cv_prog_CXXCPP=$CXXCPP
4660
4661 fi
4662   CXXCPP=$ac_cv_prog_CXXCPP
4663 else
4664   ac_cv_prog_CXXCPP=$CXXCPP
4665 fi
4666 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4667 echo "${ECHO_T}$CXXCPP" >&6
4668 ac_preproc_ok=false
4669 for ac_cxx_preproc_warn_flag in '' yes
4670 do
4671   # Use a header file that comes with gcc, so configuring glibc
4672   # with a fresh cross-compiler works.
4673   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4674   # <limits.h> exists even on freestanding compilers.
4675   # On the NeXT, cc -E runs the code through the compiler's parser,
4676   # not just through cpp. "Syntax error" is here to catch this case.
4677   cat >conftest.$ac_ext <<_ACEOF
4678 /* confdefs.h.  */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h.  */
4683 #ifdef __STDC__
4684 # include <limits.h>
4685 #else
4686 # include <assert.h>
4687 #endif
4688                      Syntax error
4689 _ACEOF
4690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4691   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4692   ac_status=$?
4693   grep -v '^ *+' conftest.er1 >conftest.err
4694   rm -f conftest.er1
4695   cat conftest.err >&5
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); } >/dev/null; then
4698   if test -s conftest.err; then
4699     ac_cpp_err=$ac_cxx_preproc_warn_flag
4700     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4701   else
4702     ac_cpp_err=
4703   fi
4704 else
4705   ac_cpp_err=yes
4706 fi
4707 if test -z "$ac_cpp_err"; then
4708   :
4709 else
4710   echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4712
4713   # Broken: fails on valid input.
4714 continue
4715 fi
4716 rm -f conftest.err conftest.$ac_ext
4717
4718   # OK, works on sane cases.  Now check whether non-existent headers
4719   # can be detected and how.
4720   cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h.  */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h.  */
4726 #include <ac_nonexistent.h>
4727 _ACEOF
4728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4729   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4730   ac_status=$?
4731   grep -v '^ *+' conftest.er1 >conftest.err
4732   rm -f conftest.er1
4733   cat conftest.err >&5
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); } >/dev/null; then
4736   if test -s conftest.err; then
4737     ac_cpp_err=$ac_cxx_preproc_warn_flag
4738     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4739   else
4740     ac_cpp_err=
4741   fi
4742 else
4743   ac_cpp_err=yes
4744 fi
4745 if test -z "$ac_cpp_err"; then
4746   # Broken: success on invalid input.
4747 continue
4748 else
4749   echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4751
4752   # Passes both tests.
4753 ac_preproc_ok=:
4754 break
4755 fi
4756 rm -f conftest.err conftest.$ac_ext
4757
4758 done
4759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4760 rm -f conftest.err conftest.$ac_ext
4761 if $ac_preproc_ok; then
4762   :
4763 else
4764   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4765 See \`config.log' for more details." >&5
4766 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4767 See \`config.log' for more details." >&2;}
4768    { (exit 1); exit 1; }; }
4769 fi
4770
4771 ac_ext=cc
4772 ac_cpp='$CXXCPP $CPPFLAGS'
4773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4776
4777
4778 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4779 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4780 if test "${ac_cv_header_stdc+set}" = set; then
4781   echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783   cat >conftest.$ac_ext <<_ACEOF
4784 /* confdefs.h.  */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h.  */
4789 #include <stdlib.h>
4790 #include <stdarg.h>
4791 #include <string.h>
4792 #include <float.h>
4793
4794 int
4795 main ()
4796 {
4797
4798   ;
4799   return 0;
4800 }
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804   (eval $ac_compile) 2>conftest.er1
4805   ac_status=$?
4806   grep -v '^ *+' conftest.er1 >conftest.err
4807   rm -f conftest.er1
4808   cat conftest.err >&5
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); } &&
4811          { ac_try='test -z "$ac_cxx_werror_flag"
4812                          || test ! -s conftest.err'
4813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814   (eval $ac_try) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); }; } &&
4818          { ac_try='test -s conftest.$ac_objext'
4819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820   (eval $ac_try) 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); }; }; then
4824   ac_cv_header_stdc=yes
4825 else
4826   echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829 ac_cv_header_stdc=no
4830 fi
4831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4832
4833 if test $ac_cv_header_stdc = yes; then
4834   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4835   cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h.  */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h.  */
4841 #include <string.h>
4842
4843 _ACEOF
4844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4845   $EGREP "memchr" >/dev/null 2>&1; then
4846   :
4847 else
4848   ac_cv_header_stdc=no
4849 fi
4850 rm -f conftest*
4851
4852 fi
4853
4854 if test $ac_cv_header_stdc = yes; then
4855   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4856   cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h.  */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h.  */
4862 #include <stdlib.h>
4863
4864 _ACEOF
4865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4866   $EGREP "free" >/dev/null 2>&1; then
4867   :
4868 else
4869   ac_cv_header_stdc=no
4870 fi
4871 rm -f conftest*
4872
4873 fi
4874
4875 if test $ac_cv_header_stdc = yes; then
4876   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4877   if test "$cross_compiling" = yes; then
4878   :
4879 else
4880   cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h.  */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h.  */
4886 #include <ctype.h>
4887 #if ((' ' & 0x0FF) == 0x020)
4888 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4889 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4890 #else
4891 # define ISLOWER(c) \
4892                    (('a' <= (c) && (c) <= 'i') \
4893                      || ('j' <= (c) && (c) <= 'r') \
4894                      || ('s' <= (c) && (c) <= 'z'))
4895 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4896 #endif
4897
4898 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4899 int
4900 main ()
4901 {
4902   int i;
4903   for (i = 0; i < 256; i++)
4904     if (XOR (islower (i), ISLOWER (i))
4905         || toupper (i) != TOUPPER (i))
4906       exit(2);
4907   exit (0);
4908 }
4909 _ACEOF
4910 rm -f conftest$ac_exeext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4912   (eval $ac_link) 2>&5
4913   ac_status=$?
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917   (eval $ac_try) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); }; }; then
4921   :
4922 else
4923   echo "$as_me: program exited with status $ac_status" >&5
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4926
4927 ( exit $ac_status )
4928 ac_cv_header_stdc=no
4929 fi
4930 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4931 fi
4932 fi
4933 fi
4934 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4935 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4936 if test $ac_cv_header_stdc = yes; then
4937
4938 cat >>confdefs.h <<\_ACEOF
4939 #define STDC_HEADERS 1
4940 _ACEOF
4941
4942 fi
4943
4944 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4955                   inttypes.h stdint.h unistd.h
4956 do
4957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4958 echo "$as_me:$LINENO: checking for $ac_header" >&5
4959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4961   echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963   cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h.  */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h.  */
4969 $ac_includes_default
4970
4971 #include <$ac_header>
4972 _ACEOF
4973 rm -f conftest.$ac_objext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975   (eval $ac_compile) 2>conftest.er1
4976   ac_status=$?
4977   grep -v '^ *+' conftest.er1 >conftest.err
4978   rm -f conftest.er1
4979   cat conftest.err >&5
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); } &&
4982          { ac_try='test -z "$ac_cxx_werror_flag"
4983                          || test ! -s conftest.err'
4984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985   (eval $ac_try) 2>&5
4986   ac_status=$?
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); }; } &&
4989          { ac_try='test -s conftest.$ac_objext'
4990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991   (eval $ac_try) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); }; }; then
4995   eval "$as_ac_Header=yes"
4996 else
4997   echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
4999
5000 eval "$as_ac_Header=no"
5001 fi
5002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5003 fi
5004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5007   cat >>confdefs.h <<_ACEOF
5008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5009 _ACEOF
5010
5011 fi
5012
5013 done
5014
5015
5016
5017     ac_ext=cc
5018 ac_cpp='$CXXCPP $CPPFLAGS'
5019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5022
5023     echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
5024 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6
5025 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028
5029         cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h.  */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h.  */
5035 #include <ext2fs/ext2_fs.h>
5036                                           int main() { return 0; }
5037 _ACEOF
5038 rm -f conftest.$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040   (eval $ac_compile) 2>conftest.er1
5041   ac_status=$?
5042   grep -v '^ *+' conftest.er1 >conftest.err
5043   rm -f conftest.er1
5044   cat conftest.err >&5
5045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046   (exit $ac_status); } &&
5047          { ac_try='test -z "$ac_cxx_werror_flag"
5048                          || test ! -s conftest.err'
5049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050   (eval $ac_try) 2>&5
5051   ac_status=$?
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); }; } &&
5054          { ac_try='test -s conftest.$ac_objext'
5055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056   (eval $ac_try) 2>&5
5057   ac_status=$?
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); }; }; then
5060   ensc_cv_test_ext2fs_header=e2fsprogs
5061 else
5062   echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065
5066         cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072 #include <linux/ext2_fs.h>
5073                                           int main() { return 0; }
5074 _ACEOF
5075 rm -f conftest.$ac_objext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077   (eval $ac_compile) 2>conftest.er1
5078   ac_status=$?
5079   grep -v '^ *+' conftest.er1 >conftest.err
5080   rm -f conftest.er1
5081   cat conftest.err >&5
5082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083   (exit $ac_status); } &&
5084          { ac_try='test -z "$ac_cxx_werror_flag"
5085                          || test ! -s conftest.err'
5086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087   (eval $ac_try) 2>&5
5088   ac_status=$?
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); }; } &&
5091          { ac_try='test -s conftest.$ac_objext'
5092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093   (eval $ac_try) 2>&5
5094   ac_status=$?
5095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096   (exit $ac_status); }; }; then
5097   ensc_cv_test_ext2fs_header=kernel
5098 else
5099   echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102
5103         ensc_cv_test_ext2fs_header=none
5104 fi
5105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5106 fi
5107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5108 fi
5109 echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
5110 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6
5111
5112     case x"$ensc_cv_test_ext2fs_header" in
5113         (xe2fsprogs)
5114                 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
5115   echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
5116 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
5117 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
5118   echo $ECHO_N "(cached) $ECHO_C" >&6
5119 fi
5120 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
5121 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
5122 else
5123   # Is the header compilable?
5124 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
5125 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6
5126 cat >conftest.$ac_ext <<_ACEOF
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132 $ac_includes_default
5133 #include <ext2fs/ext2_fs.h>
5134 _ACEOF
5135 rm -f conftest.$ac_objext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137   (eval $ac_compile) 2>conftest.er1
5138   ac_status=$?
5139   grep -v '^ *+' conftest.er1 >conftest.err
5140   rm -f conftest.er1
5141   cat conftest.err >&5
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); } &&
5144          { ac_try='test -z "$ac_cxx_werror_flag"
5145                          || test ! -s conftest.err'
5146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147   (eval $ac_try) 2>&5
5148   ac_status=$?
5149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150   (exit $ac_status); }; } &&
5151          { ac_try='test -s conftest.$ac_objext'
5152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153   (eval $ac_try) 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); }; }; then
5157   ac_header_compiler=yes
5158 else
5159   echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5161
5162 ac_header_compiler=no
5163 fi
5164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5166 echo "${ECHO_T}$ac_header_compiler" >&6
5167
5168 # Is the header present?
5169 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
5170 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6
5171 cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h.  */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h.  */
5177 #include <ext2fs/ext2_fs.h>
5178 _ACEOF
5179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5181   ac_status=$?
5182   grep -v '^ *+' conftest.er1 >conftest.err
5183   rm -f conftest.er1
5184   cat conftest.err >&5
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); } >/dev/null; then
5187   if test -s conftest.err; then
5188     ac_cpp_err=$ac_cxx_preproc_warn_flag
5189     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5190   else
5191     ac_cpp_err=
5192   fi
5193 else
5194   ac_cpp_err=yes
5195 fi
5196 if test -z "$ac_cpp_err"; then
5197   ac_header_preproc=yes
5198 else
5199   echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5201
5202   ac_header_preproc=no
5203 fi
5204 rm -f conftest.err conftest.$ac_ext
5205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5206 echo "${ECHO_T}$ac_header_preproc" >&6
5207
5208 # So?  What about this header?
5209 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5210   yes:no: )
5211     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5212 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5213     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
5214 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
5215     ac_header_preproc=yes
5216     ;;
5217   no:yes:* )
5218     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
5219 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
5220     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&5
5221 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
5222     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
5223 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
5224     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
5225 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5226     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
5227 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
5228     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
5229 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
5230     (
5231       cat <<\_ASBOX
5232 ## ------------------------------------------------------ ##
5233 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
5234 ## ------------------------------------------------------ ##
5235 _ASBOX
5236     ) |
5237       sed "s/^/$as_me: WARNING:     /" >&2
5238     ;;
5239 esac
5240 echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
5241 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
5242 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
5243   echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245   ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
5246 fi
5247 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
5248 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
5249
5250 fi
5251 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
5252
5253 cat >>confdefs.h <<\_ACEOF
5254 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
5255 _ACEOF
5256
5257 else
5258   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
5259 See \`config.log' for more details." >&5
5260 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
5261 See \`config.log' for more details." >&2;}
5262    { (exit 1); exit 1; }; }
5263 fi
5264
5265
5266                 ;;
5267         (xkernel)
5268                 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
5269   echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
5270 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
5271 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
5272   echo $ECHO_N "(cached) $ECHO_C" >&6
5273 fi
5274 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
5275 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
5276 else
5277   # Is the header compilable?
5278 echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
5279 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6
5280 cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286 $ac_includes_default
5287 #include <linux/ext2_fs.h>
5288 _ACEOF
5289 rm -f conftest.$ac_objext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5291   (eval $ac_compile) 2>conftest.er1
5292   ac_status=$?
5293   grep -v '^ *+' conftest.er1 >conftest.err
5294   rm -f conftest.er1
5295   cat conftest.err >&5
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); } &&
5298          { ac_try='test -z "$ac_cxx_werror_flag"
5299                          || test ! -s conftest.err'
5300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301   (eval $ac_try) 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); }; } &&
5305          { ac_try='test -s conftest.$ac_objext'
5306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307   (eval $ac_try) 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); }; }; then
5311   ac_header_compiler=yes
5312 else
5313   echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5315
5316 ac_header_compiler=no
5317 fi
5318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5320 echo "${ECHO_T}$ac_header_compiler" >&6
5321
5322 # Is the header present?
5323 echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
5324 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6
5325 cat >conftest.$ac_ext <<_ACEOF
5326 /* confdefs.h.  */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h.  */
5331 #include <linux/ext2_fs.h>
5332 _ACEOF
5333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5335   ac_status=$?
5336   grep -v '^ *+' conftest.er1 >conftest.err
5337   rm -f conftest.er1
5338   cat conftest.err >&5
5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); } >/dev/null; then
5341   if test -s conftest.err; then
5342     ac_cpp_err=$ac_cxx_preproc_warn_flag
5343     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5344   else
5345     ac_cpp_err=
5346   fi
5347 else
5348   ac_cpp_err=yes
5349 fi
5350 if test -z "$ac_cpp_err"; then
5351   ac_header_preproc=yes
5352 else
5353   echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5355
5356   ac_header_preproc=no
5357 fi
5358 rm -f conftest.err conftest.$ac_ext
5359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5360 echo "${ECHO_T}$ac_header_preproc" >&6
5361
5362 # So?  What about this header?
5363 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5364   yes:no: )
5365     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5366 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5367     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
5368 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
5369     ac_header_preproc=yes
5370     ;;
5371   no:yes:* )
5372     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
5373 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
5374     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&5
5375 echo "$as_me: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
5376     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
5377 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
5378     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
5379 echo "$as_me: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5380     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
5381 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
5382     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
5383 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
5384     (
5385       cat <<\_ASBOX
5386 ## ------------------------------------------------------ ##
5387 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
5388 ## ------------------------------------------------------ ##
5389 _ASBOX
5390     ) |
5391       sed "s/^/$as_me: WARNING:     /" >&2
5392     ;;
5393 esac
5394 echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
5395 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
5396 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
5397   echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399   ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
5400 fi
5401 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
5402 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
5403
5404 fi
5405 if test $ac_cv_header_linux_ext2_fs_h = yes; then
5406
5407 cat >>confdefs.h <<\_ACEOF
5408 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
5409 _ACEOF
5410
5411 else
5412   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
5413 See \`config.log' for more details." >&5
5414 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
5415 See \`config.log' for more details." >&2;}
5416    { (exit 1); exit 1; }; }
5417 fi
5418
5419
5420                 ;;
5421         (*)
5422                 { { echo "$as_me:$LINENO: error:
5423 ext2fs headers were not found, or they are not usable. This can have
5424 the following reasons:
5425
5426 * you have neither the e2fsprogs nor the kernel headers installed
5427
5428 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
5429   and you do not have e2fsprogs headers installed; please try to install
5430   - e2fsprogs-devel (for Red Hat), or
5431   - libext2fs2-devel (for Mandrake), or
5432   - e2fslibs-dev (for Debian)
5433   in this case.
5434
5435 * kernel headers are broken and your e2fsprogs headers are too old;
5436   until version 1.27 (inclusive), they are using reserved C++ keywords
5437
5438 * kernel headers are broken and your e2fsprogs headers are too new;
5439   recent (January 2004) BK snapshots of e2fsprogs are unusable for
5440   C++, for details and a solution see
5441   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
5442
5443
5444 In the latter two cases you have the following options:
5445 * fix the headers manually, or
5446 * install a stable version of e2fsprogs (e.g. 1.34), or
5447 * use good kernel headers (from linux 2.4.x)
5448
5449 See \`config.log' for more details." >&5
5450 echo "$as_me: error:
5451 ext2fs headers were not found, or they are not usable. This can have
5452 the following reasons:
5453
5454 * you have neither the e2fsprogs nor the kernel headers installed
5455
5456 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
5457   and you do not have e2fsprogs headers installed; please try to install
5458   - e2fsprogs-devel (for Red Hat), or
5459   - libext2fs2-devel (for Mandrake), or
5460   - e2fslibs-dev (for Debian)
5461   in this case.
5462
5463 * kernel headers are broken and your e2fsprogs headers are too old;
5464   until version 1.27 (inclusive), they are using reserved C++ keywords
5465
5466 * kernel headers are broken and your e2fsprogs headers are too new;
5467   recent (January 2004) BK snapshots of e2fsprogs are unusable for
5468   C++, for details and a solution see
5469   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
5470
5471
5472 In the latter two cases you have the following options:
5473 * fix the headers manually, or
5474 * install a stable version of e2fsprogs (e.g. 1.34), or
5475 * use good kernel headers (from linux 2.4.x)
5476
5477 See \`config.log' for more details." >&2;}
5478    { (exit 1); exit 1; }; }
5479                 ;;
5480     esac
5481     ac_ext=c
5482 ac_cpp='$CPP $CPPFLAGS'
5483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5486
5487
5488
5489 for ac_func in vserver
5490 do
5491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5492 echo "$as_me:$LINENO: checking for $ac_func" >&5
5493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5494 if eval "test \"\${$as_ac_var+set}\" = set"; then
5495   echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497   cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h.  */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h.  */
5503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5505 #define $ac_func innocuous_$ac_func
5506
5507 /* System header to define __stub macros and hopefully few prototypes,
5508     which can conflict with char $ac_func (); below.
5509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5510     <limits.h> exists even on freestanding compilers.  */
5511
5512 #ifdef __STDC__
5513 # include <limits.h>
5514 #else
5515 # include <assert.h>
5516 #endif
5517
5518 #undef $ac_func
5519
5520 /* Override any gcc2 internal prototype to avoid an error.  */
5521 #ifdef __cplusplus
5522 extern "C"
5523 {
5524 #endif
5525 /* We use char because int might match the return type of a gcc2
5526    builtin and then its argument prototype would still apply.  */
5527 char $ac_func ();
5528 /* The GNU C library defines this for functions which it implements
5529     to always fail with ENOSYS.  Some functions are actually named
5530     something starting with __ and the normal name is an alias.  */
5531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5532 choke me
5533 #else
5534 char (*f) () = $ac_func;
5535 #endif
5536 #ifdef __cplusplus
5537 }
5538 #endif
5539
5540 int
5541 main ()
5542 {
5543 return f != $ac_func;
5544   ;
5545   return 0;
5546 }
5547 _ACEOF
5548 rm -f conftest.$ac_objext conftest$ac_exeext
5549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5550   (eval $ac_link) 2>conftest.er1
5551   ac_status=$?
5552   grep -v '^ *+' conftest.er1 >conftest.err
5553   rm -f conftest.er1
5554   cat conftest.err >&5
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); } &&
5557          { ac_try='test -z "$ac_c_werror_flag"
5558                          || test ! -s conftest.err'
5559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560   (eval $ac_try) 2>&5
5561   ac_status=$?
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); }; } &&
5564          { ac_try='test -s conftest$ac_exeext'
5565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566   (eval $ac_try) 2>&5
5567   ac_status=$?
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); }; }; then
5570   eval "$as_ac_var=yes"
5571 else
5572   echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5574
5575 eval "$as_ac_var=no"
5576 fi
5577 rm -f conftest.err conftest.$ac_objext \
5578       conftest$ac_exeext conftest.$ac_ext
5579 fi
5580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5582 if test `eval echo '${'$as_ac_var'}'` = yes; then
5583   cat >>confdefs.h <<_ACEOF
5584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5585 _ACEOF
5586
5587 fi
5588 done
5589
5590 echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
5591 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6
5592 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
5593   echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595   cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h.  */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h.  */
5601 #include <linux/fs.h>
5602
5603 int
5604 main ()
5605 {
5606 #ifndef MS_MOVE
5607   char *p = (char *) MS_MOVE;
5608 #endif
5609
5610   ;
5611   return 0;
5612 }
5613 _ACEOF
5614 rm -f conftest.$ac_objext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5616   (eval $ac_compile) 2>conftest.er1
5617   ac_status=$?
5618   grep -v '^ *+' conftest.er1 >conftest.err
5619   rm -f conftest.er1
5620   cat conftest.err >&5
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); } &&
5623          { ac_try='test -z "$ac_c_werror_flag"
5624                          || test ! -s conftest.err'
5625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626   (eval $ac_try) 2>&5
5627   ac_status=$?
5628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); }; } &&
5630          { ac_try='test -s conftest.$ac_objext'
5631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632   (eval $ac_try) 2>&5
5633   ac_status=$?
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); }; }; then
5636   ac_cv_have_decl_MS_MOVE=yes
5637 else
5638   echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5640
5641 ac_cv_have_decl_MS_MOVE=no
5642 fi
5643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5644 fi
5645 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
5646 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6
5647 if test $ac_cv_have_decl_MS_MOVE = yes; then
5648
5649 cat >>confdefs.h <<_ACEOF
5650 #define HAVE_DECL_MS_MOVE 1
5651 _ACEOF
5652
5653
5654 else
5655   cat >>confdefs.h <<_ACEOF
5656 #define HAVE_DECL_MS_MOVE 0
5657 _ACEOF
5658
5659
5660 fi
5661
5662
5663 echo "$as_me:$LINENO: checking for xid_t" >&5
5664 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6
5665 if test "${ac_cv_type_xid_t+set}" = set; then
5666   echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668   cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h.  */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h.  */
5674 #include <sys/types.h>
5675
5676 int
5677 main ()
5678 {
5679 if ((xid_t *) 0)
5680   return 0;
5681 if (sizeof (xid_t))
5682   return 0;
5683   ;
5684   return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5689   (eval $ac_compile) 2>conftest.er1
5690   ac_status=$?
5691   grep -v '^ *+' conftest.er1 >conftest.err
5692   rm -f conftest.er1
5693   cat conftest.err >&5
5694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695   (exit $ac_status); } &&
5696          { ac_try='test -z "$ac_c_werror_flag"
5697                          || test ! -s conftest.err'
5698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699   (eval $ac_try) 2>&5
5700   ac_status=$?
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); }; } &&
5703          { ac_try='test -s conftest.$ac_objext'
5704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705   (eval $ac_try) 2>&5
5706   ac_status=$?
5707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708   (exit $ac_status); }; }; then
5709   ac_cv_type_xid_t=yes
5710 else
5711   echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5713
5714 ac_cv_type_xid_t=no
5715 fi
5716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5717 fi
5718 echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
5719 echo "${ECHO_T}$ac_cv_type_xid_t" >&6
5720 if test $ac_cv_type_xid_t = yes; then
5721
5722 cat >>confdefs.h <<_ACEOF
5723 #define HAVE_XID_T 1
5724 _ACEOF
5725
5726
5727 fi
5728
5729
5730                     ac_config_files="$ac_config_files util-vserver.spec Makefile"
5731
5732 cat >confcache <<\_ACEOF
5733 # This file is a shell script that caches the results of configure
5734 # tests run on this system so they can be shared between configure
5735 # scripts and configure runs, see configure's option --config-cache.
5736 # It is not useful on other systems.  If it contains results you don't
5737 # want to keep, you may remove or edit it.
5738 #
5739 # config.status only pays attention to the cache file if you give it
5740 # the --recheck option to rerun configure.
5741 #
5742 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5743 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5744 # following values.
5745
5746 _ACEOF
5747
5748 # The following way of writing the cache mishandles newlines in values,
5749 # but we know of no workaround that is simple, portable, and efficient.
5750 # So, don't put newlines in cache variables' values.
5751 # Ultrix sh set writes to stderr and can't be redirected directly,
5752 # and sets the high bit in the cache file unless we assign to the vars.
5753 {
5754   (set) 2>&1 |
5755     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5756     *ac_space=\ *)
5757       # `set' does not quote correctly, so add quotes (double-quote
5758       # substitution turns \\\\ into \\, and sed turns \\ into \).
5759       sed -n \
5760         "s/'/'\\\\''/g;
5761           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5762       ;;
5763     *)
5764       # `set' quotes correctly as required by POSIX, so do not add quotes.
5765       sed -n \
5766         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5767       ;;
5768     esac;
5769 } |
5770   sed '
5771      t clear
5772      : clear
5773      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5774      t end
5775      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5776      : end' >>confcache
5777 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5778   if test -w $cache_file; then
5779     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5780     cat confcache >$cache_file
5781   else
5782     echo "not updating unwritable cache $cache_file"
5783   fi
5784 fi
5785 rm -f confcache
5786
5787 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5788 # Let make expand exec_prefix.
5789 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5790
5791 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5792 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5793 # trailing colons and then remove the whole line if VPATH becomes empty
5794 # (actually we leave an empty line to preserve line numbers).
5795 if test "x$srcdir" = x.; then
5796   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5797 s/:*\$(srcdir):*/:/;
5798 s/:*\${srcdir}:*/:/;
5799 s/:*@srcdir@:*/:/;
5800 s/^\([^=]*=[     ]*\):*/\1/;
5801 s/:*$//;
5802 s/^[^=]*=[       ]*$//;
5803 }'
5804 fi
5805
5806 DEFS=-DHAVE_CONFIG_H
5807
5808 ac_libobjs=
5809 ac_ltlibobjs=
5810 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5811   # 1. Remove the extension, and $U if already installed.
5812   ac_i=`echo "$ac_i" |
5813          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5814   # 2. Add them.
5815   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5816   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5817 done
5818 LIBOBJS=$ac_libobjs
5819
5820 LTLIBOBJS=$ac_ltlibobjs
5821
5822
5823 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5824   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5825 Usually this means the macro was only invoked conditionally." >&5
5826 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5827 Usually this means the macro was only invoked conditionally." >&2;}
5828    { (exit 1); exit 1; }; }
5829 fi
5830 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5831   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5832 Usually this means the macro was only invoked conditionally." >&5
5833 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5834 Usually this means the macro was only invoked conditionally." >&2;}
5835    { (exit 1); exit 1; }; }
5836 fi
5837 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5838   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
5839 Usually this means the macro was only invoked conditionally." >&5
5840 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
5841 Usually this means the macro was only invoked conditionally." >&2;}
5842    { (exit 1); exit 1; }; }
5843 fi
5844 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5845   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5846 Usually this means the macro was only invoked conditionally." >&5
5847 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5848 Usually this means the macro was only invoked conditionally." >&2;}
5849    { (exit 1); exit 1; }; }
5850 fi
5851 if test -z "${HAVE_CVS2CL_TRUE}" && test -z "${HAVE_CVS2CL_FALSE}"; then
5852   { { echo "$as_me:$LINENO: error: conditional \"HAVE_CVS2CL\" was never defined.
5853 Usually this means the macro was only invoked conditionally." >&5
5854 echo "$as_me: error: conditional \"HAVE_CVS2CL\" was never defined.
5855 Usually this means the macro was only invoked conditionally." >&2;}
5856    { (exit 1); exit 1; }; }
5857 fi
5858 if test -z "${HAVE_RCS2LOG_TRUE}" && test -z "${HAVE_RCS2LOG_FALSE}"; then
5859   { { echo "$as_me:$LINENO: error: conditional \"HAVE_RCS2LOG\" was never defined.
5860 Usually this means the macro was only invoked conditionally." >&5
5861 echo "$as_me: error: conditional \"HAVE_RCS2LOG\" was never defined.
5862 Usually this means the macro was only invoked conditionally." >&2;}
5863    { (exit 1); exit 1; }; }
5864 fi
5865 if test -z "${ENSC_ENABLE_LINUXCONF_TRUE}" && test -z "${ENSC_ENABLE_LINUXCONF_FALSE}"; then
5866   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_LINUXCONF\" was never defined.
5867 Usually this means the macro was only invoked conditionally." >&5
5868 echo "$as_me: error: conditional \"ENSC_ENABLE_LINUXCONF\" was never defined.
5869 Usually this means the macro was only invoked conditionally." >&2;}
5870    { (exit 1); exit 1; }; }
5871 fi
5872 if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
5873   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
5874 Usually this means the macro was only invoked conditionally." >&5
5875 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
5876 Usually this means the macro was only invoked conditionally." >&2;}
5877    { (exit 1); exit 1; }; }
5878 fi
5879
5880 : ${CONFIG_STATUS=./config.status}
5881 ac_clean_files_save=$ac_clean_files
5882 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5883 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5884 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5885 cat >$CONFIG_STATUS <<_ACEOF
5886 #! $SHELL
5887 # Generated by $as_me.
5888 # Run this file to recreate the current configuration.
5889 # Compiler output produced by configure, useful for debugging
5890 # configure, is in config.log if it exists.
5891
5892 debug=false
5893 ac_cs_recheck=false
5894 ac_cs_silent=false
5895 SHELL=\${CONFIG_SHELL-$SHELL}
5896 _ACEOF
5897
5898 cat >>$CONFIG_STATUS <<\_ACEOF
5899 ## --------------------- ##
5900 ## M4sh Initialization.  ##
5901 ## --------------------- ##
5902
5903 # Be Bourne compatible
5904 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5905   emulate sh
5906   NULLCMD=:
5907   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5908   # is contrary to our usage.  Disable this feature.
5909   alias -g '${1+"$@"}'='"$@"'
5910 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5911   set -o posix
5912 fi
5913 DUALCASE=1; export DUALCASE # for MKS sh
5914
5915 # Support unset when possible.
5916 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5917   as_unset=unset
5918 else
5919   as_unset=false
5920 fi
5921
5922
5923 # Work around bugs in pre-3.0 UWIN ksh.
5924 $as_unset ENV MAIL MAILPATH
5925 PS1='$ '
5926 PS2='> '
5927 PS4='+ '
5928
5929 # NLS nuisances.
5930 for as_var in \
5931   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5932   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5933   LC_TELEPHONE LC_TIME
5934 do
5935   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5936     eval $as_var=C; export $as_var
5937   else
5938     $as_unset $as_var
5939   fi
5940 done
5941
5942 # Required to use basename.
5943 if expr a : '\(a\)' >/dev/null 2>&1; then
5944   as_expr=expr
5945 else
5946   as_expr=false
5947 fi
5948
5949 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5950   as_basename=basename
5951 else
5952   as_basename=false
5953 fi
5954
5955
5956 # Name of the executable.
5957 as_me=`$as_basename "$0" ||
5958 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5959          X"$0" : 'X\(//\)$' \| \
5960          X"$0" : 'X\(/\)$' \| \
5961          .     : '\(.\)' 2>/dev/null ||
5962 echo X/"$0" |
5963     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5964           /^X\/\(\/\/\)$/{ s//\1/; q; }
5965           /^X\/\(\/\).*/{ s//\1/; q; }
5966           s/.*/./; q'`
5967
5968
5969 # PATH needs CR, and LINENO needs CR and PATH.
5970 # Avoid depending upon Character Ranges.
5971 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5972 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5973 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5974 as_cr_digits='0123456789'
5975 as_cr_alnum=$as_cr_Letters$as_cr_digits
5976
5977 # The user is always right.
5978 if test "${PATH_SEPARATOR+set}" != set; then
5979   echo "#! /bin/sh" >conf$$.sh
5980   echo  "exit 0"   >>conf$$.sh
5981   chmod +x conf$$.sh
5982   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5983     PATH_SEPARATOR=';'
5984   else
5985     PATH_SEPARATOR=:
5986   fi
5987   rm -f conf$$.sh
5988 fi
5989
5990
5991   as_lineno_1=$LINENO
5992   as_lineno_2=$LINENO
5993   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5994   test "x$as_lineno_1" != "x$as_lineno_2" &&
5995   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5996   # Find who we are.  Look in the path if we contain no path at all
5997   # relative or not.
5998   case $0 in
5999     *[\\/]* ) as_myself=$0 ;;
6000     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH
6002 do
6003   IFS=$as_save_IFS
6004   test -z "$as_dir" && as_dir=.
6005   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6006 done
6007
6008        ;;
6009   esac
6010   # We did not find ourselves, most probably we were run as `sh COMMAND'
6011   # in which case we are not to be found in the path.
6012   if test "x$as_myself" = x; then
6013     as_myself=$0
6014   fi
6015   if test ! -f "$as_myself"; then
6016     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6017 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6018    { (exit 1); exit 1; }; }
6019   fi
6020   case $CONFIG_SHELL in
6021   '')
6022     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6024 do
6025   IFS=$as_save_IFS
6026   test -z "$as_dir" && as_dir=.
6027   for as_base in sh bash ksh sh5; do
6028          case $as_dir in
6029          /*)
6030            if ("$as_dir/$as_base" -c '
6031   as_lineno_1=$LINENO
6032   as_lineno_2=$LINENO
6033   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6034   test "x$as_lineno_1" != "x$as_lineno_2" &&
6035   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6036              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6037              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6038              CONFIG_SHELL=$as_dir/$as_base
6039              export CONFIG_SHELL
6040              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6041            fi;;
6042          esac
6043        done
6044 done
6045 ;;
6046   esac
6047
6048   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6049   # uniformly replaced by the line number.  The first 'sed' inserts a
6050   # line-number line before each line; the second 'sed' does the real
6051   # work.  The second script uses 'N' to pair each line-number line
6052   # with the numbered line, and appends trailing '-' during
6053   # substitution so that $LINENO is not a special case at line end.
6054   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6055   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6056   sed '=' <$as_myself |
6057     sed '
6058       N
6059       s,$,-,
6060       : loop
6061       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6062       t loop
6063       s,-$,,
6064       s,^['$as_cr_digits']*\n,,
6065     ' >$as_me.lineno &&
6066   chmod +x $as_me.lineno ||
6067     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6068 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6069    { (exit 1); exit 1; }; }
6070
6071   # Don't try to exec as it changes $[0], causing all sort of problems
6072   # (the dirname of $[0] is not the place where we might find the
6073   # original and so on.  Autoconf is especially sensible to this).
6074   . ./$as_me.lineno
6075   # Exit status is that of the last command.
6076   exit
6077 }
6078
6079
6080 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6081   *c*,-n*) ECHO_N= ECHO_C='
6082 ' ECHO_T='      ' ;;
6083   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6084   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6085 esac
6086
6087 if expr a : '\(a\)' >/dev/null 2>&1; then
6088   as_expr=expr
6089 else
6090   as_expr=false
6091 fi
6092
6093 rm -f conf$$ conf$$.exe conf$$.file
6094 echo >conf$$.file
6095 if ln -s conf$$.file conf$$ 2>/dev/null; then
6096   # We could just check for DJGPP; but this test a) works b) is more generic
6097   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6098   if test -f conf$$.exe; then
6099     # Don't use ln at all; we don't have any links
6100     as_ln_s='cp -p'
6101   else
6102     as_ln_s='ln -s'
6103   fi
6104 elif ln conf$$.file conf$$ 2>/dev/null; then
6105   as_ln_s=ln
6106 else
6107   as_ln_s='cp -p'
6108 fi
6109 rm -f conf$$ conf$$.exe conf$$.file
6110
6111 if mkdir -p . 2>/dev/null; then
6112   as_mkdir_p=:
6113 else
6114   test -d ./-p && rmdir ./-p
6115   as_mkdir_p=false
6116 fi
6117
6118 as_executable_p="test -f"
6119
6120 # Sed expression to map a string onto a valid CPP name.
6121 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6122
6123 # Sed expression to map a string onto a valid variable name.
6124 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6125
6126
6127 # IFS
6128 # We need space, tab and new line, in precisely that order.
6129 as_nl='
6130 '
6131 IFS="   $as_nl"
6132
6133 # CDPATH.
6134 $as_unset CDPATH
6135
6136 exec 6>&1
6137
6138 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6139 # report actual input values of CONFIG_FILES etc. instead of their
6140 # values after options handling.  Logging --version etc. is OK.
6141 exec 5>>config.log
6142 {
6143   echo
6144   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6145 ## Running $as_me. ##
6146 _ASBOX
6147 } >&5
6148 cat >&5 <<_CSEOF
6149
6150 This file was extended by util-vserver $as_me 0.30, which was
6151 generated by GNU Autoconf 2.59.  Invocation command line was
6152
6153   CONFIG_FILES    = $CONFIG_FILES
6154   CONFIG_HEADERS  = $CONFIG_HEADERS
6155   CONFIG_LINKS    = $CONFIG_LINKS
6156   CONFIG_COMMANDS = $CONFIG_COMMANDS
6157   $ $0 $@
6158
6159 _CSEOF
6160 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6161 echo >&5
6162 _ACEOF
6163
6164 # Files that config.status was made for.
6165 if test -n "$ac_config_files"; then
6166   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6167 fi
6168
6169 if test -n "$ac_config_headers"; then
6170   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6171 fi
6172
6173 if test -n "$ac_config_links"; then
6174   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6175 fi
6176
6177 if test -n "$ac_config_commands"; then
6178   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6179 fi
6180
6181 cat >>$CONFIG_STATUS <<\_ACEOF
6182
6183 ac_cs_usage="\
6184 \`$as_me' instantiates files from templates according to the
6185 current configuration.
6186
6187 Usage: $0 [OPTIONS] [FILE]...
6188
6189   -h, --help       print this help, then exit
6190   -V, --version    print version number, then exit
6191   -q, --quiet      do not print progress messages
6192   -d, --debug      don't remove temporary files
6193       --recheck    update $as_me by reconfiguring in the same conditions
6194   --file=FILE[:TEMPLATE]
6195                    instantiate the configuration file FILE
6196   --header=FILE[:TEMPLATE]
6197                    instantiate the configuration header FILE
6198
6199 Configuration files:
6200 $config_files
6201
6202 Configuration headers:
6203 $config_headers
6204
6205 Configuration commands:
6206 $config_commands
6207
6208 Report bugs to <bug-autoconf@gnu.org>."
6209 _ACEOF
6210
6211 cat >>$CONFIG_STATUS <<_ACEOF
6212 ac_cs_version="\\
6213 util-vserver config.status 0.30
6214 configured by $0, generated by GNU Autoconf 2.59,
6215   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6216
6217 Copyright (C) 2003 Free Software Foundation, Inc.
6218 This config.status script is free software; the Free Software Foundation
6219 gives unlimited permission to copy, distribute and modify it."
6220 srcdir=$srcdir
6221 INSTALL="$INSTALL"
6222 _ACEOF
6223
6224 cat >>$CONFIG_STATUS <<\_ACEOF
6225 # If no file are specified by the user, then we need to provide default
6226 # value.  By we need to know if files were specified by the user.
6227 ac_need_defaults=:
6228 while test $# != 0
6229 do
6230   case $1 in
6231   --*=*)
6232     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6233     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6234     ac_shift=:
6235     ;;
6236   -*)
6237     ac_option=$1
6238     ac_optarg=$2
6239     ac_shift=shift
6240     ;;
6241   *) # This is not an option, so the user has probably given explicit
6242      # arguments.
6243      ac_option=$1
6244      ac_need_defaults=false;;
6245   esac
6246
6247   case $ac_option in
6248   # Handling of the options.
6249 _ACEOF
6250 cat >>$CONFIG_STATUS <<\_ACEOF
6251   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6252     ac_cs_recheck=: ;;
6253   --version | --vers* | -V )
6254     echo "$ac_cs_version"; exit 0 ;;
6255   --he | --h)
6256     # Conflict between --help and --header
6257     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6258 Try \`$0 --help' for more information." >&5
6259 echo "$as_me: error: ambiguous option: $1
6260 Try \`$0 --help' for more information." >&2;}
6261    { (exit 1); exit 1; }; };;
6262   --help | --hel | -h )
6263     echo "$ac_cs_usage"; exit 0 ;;
6264   --debug | --d* | -d )
6265     debug=: ;;
6266   --file | --fil | --fi | --f )
6267     $ac_shift
6268     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6269     ac_need_defaults=false;;
6270   --header | --heade | --head | --hea )
6271     $ac_shift
6272     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6273     ac_need_defaults=false;;
6274   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6275   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6276     ac_cs_silent=: ;;
6277
6278   # This is an error.
6279   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6280 Try \`$0 --help' for more information." >&5
6281 echo "$as_me: error: unrecognized option: $1
6282 Try \`$0 --help' for more information." >&2;}
6283    { (exit 1); exit 1; }; } ;;
6284
6285   *) ac_config_targets="$ac_config_targets $1" ;;
6286
6287   esac
6288   shift
6289 done
6290
6291 ac_configure_extra_args=
6292
6293 if $ac_cs_silent; then
6294   exec 6>/dev/null
6295   ac_configure_extra_args="$ac_configure_extra_args --silent"
6296 fi
6297
6298 _ACEOF
6299 cat >>$CONFIG_STATUS <<_ACEOF
6300 if \$ac_cs_recheck; then
6301   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6302   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6303 fi
6304
6305 _ACEOF
6306
6307 cat >>$CONFIG_STATUS <<_ACEOF
6308 #
6309 # INIT-COMMANDS section.
6310 #
6311
6312 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6313
6314 _ACEOF
6315
6316
6317
6318 cat >>$CONFIG_STATUS <<\_ACEOF
6319 for ac_config_target in $ac_config_targets
6320 do
6321   case "$ac_config_target" in
6322   # Handling of arguments.
6323   "util-vserver.spec" ) CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
6324   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6325   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6326   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6327   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6328 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6329    { (exit 1); exit 1; }; };;
6330   esac
6331 done
6332
6333 # If the user did not use the arguments to specify the items to instantiate,
6334 # then the envvar interface is used.  Set only those that are not.
6335 # We use the long form for the default assignment because of an extremely
6336 # bizarre bug on SunOS 4.1.3.
6337 if $ac_need_defaults; then
6338   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6339   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6340   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6341 fi
6342
6343 # Have a temporary directory for convenience.  Make it in the build tree
6344 # simply because there is no reason to put it here, and in addition,
6345 # creating and moving files from /tmp can sometimes cause problems.
6346 # Create a temporary directory, and hook for its removal unless debugging.
6347 $debug ||
6348 {
6349   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6350   trap '{ (exit 1); exit 1; }' 1 2 13 15
6351 }
6352
6353 # Create a (secure) tmp directory for tmp files.
6354
6355 {
6356   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6357   test -n "$tmp" && test -d "$tmp"
6358 }  ||
6359 {
6360   tmp=./confstat$$-$RANDOM
6361   (umask 077 && mkdir $tmp)
6362 } ||
6363 {
6364    echo "$me: cannot create a temporary directory in ." >&2
6365    { (exit 1); exit 1; }
6366 }
6367
6368 _ACEOF
6369
6370 cat >>$CONFIG_STATUS <<_ACEOF
6371
6372 #
6373 # CONFIG_FILES section.
6374 #
6375
6376 # No need to generate the scripts if there are no CONFIG_FILES.
6377 # This happens for instance when ./config.status config.h
6378 if test -n "\$CONFIG_FILES"; then
6379   # Protect against being on the right side of a sed subst in config.status.
6380   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6381    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6382 s,@SHELL@,$SHELL,;t t
6383 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6384 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6385 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6386 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6387 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6388 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6389 s,@exec_prefix@,$exec_prefix,;t t
6390 s,@prefix@,$prefix,;t t
6391 s,@program_transform_name@,$program_transform_name,;t t
6392 s,@bindir@,$bindir,;t t
6393 s,@sbindir@,$sbindir,;t t
6394 s,@libexecdir@,$libexecdir,;t t
6395 s,@datadir@,$datadir,;t t
6396 s,@sysconfdir@,$sysconfdir,;t t
6397 s,@sharedstatedir@,$sharedstatedir,;t t
6398 s,@localstatedir@,$localstatedir,;t t
6399 s,@libdir@,$libdir,;t t
6400 s,@includedir@,$includedir,;t t
6401 s,@oldincludedir@,$oldincludedir,;t t
6402 s,@infodir@,$infodir,;t t
6403 s,@mandir@,$mandir,;t t
6404 s,@build_alias@,$build_alias,;t t
6405 s,@host_alias@,$host_alias,;t t
6406 s,@target_alias@,$target_alias,;t t
6407 s,@DEFS@,$DEFS,;t t
6408 s,@ECHO_C@,$ECHO_C,;t t
6409 s,@ECHO_N@,$ECHO_N,;t t
6410 s,@ECHO_T@,$ECHO_T,;t t
6411 s,@LIBS@,$LIBS,;t t
6412 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6413 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6414 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6415 s,@CYGPATH_W@,$CYGPATH_W,;t t
6416 s,@PACKAGE@,$PACKAGE,;t t
6417 s,@VERSION@,$VERSION,;t t
6418 s,@ACLOCAL@,$ACLOCAL,;t t
6419 s,@AUTOCONF@,$AUTOCONF,;t t
6420 s,@AUTOMAKE@,$AUTOMAKE,;t t
6421 s,@AUTOHEADER@,$AUTOHEADER,;t t
6422 s,@MAKEINFO@,$MAKEINFO,;t t
6423 s,@AMTAR@,$AMTAR,;t t
6424 s,@install_sh@,$install_sh,;t t
6425 s,@STRIP@,$STRIP,;t t
6426 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6427 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6428 s,@mkdir_p@,$mkdir_p,;t t
6429 s,@AWK@,$AWK,;t t
6430 s,@SET_MAKE@,$SET_MAKE,;t t
6431 s,@am__leading_dot@,$am__leading_dot,;t t
6432 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6433 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6434 s,@MAINT@,$MAINT,;t t
6435 s,@CXX@,$CXX,;t t
6436 s,@CXXFLAGS@,$CXXFLAGS,;t t
6437 s,@LDFLAGS@,$LDFLAGS,;t t
6438 s,@CPPFLAGS@,$CPPFLAGS,;t t
6439 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6440 s,@EXEEXT@,$EXEEXT,;t t
6441 s,@OBJEXT@,$OBJEXT,;t t
6442 s,@DEPDIR@,$DEPDIR,;t t
6443 s,@am__include@,$am__include,;t t
6444 s,@am__quote@,$am__quote,;t t
6445 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6446 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6447 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6448 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
6449 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
6450 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
6451 s,@CC@,$CC,;t t
6452 s,@CFLAGS@,$CFLAGS,;t t
6453 s,@ac_ct_CC@,$ac_ct_CC,;t t
6454 s,@CCDEPMODE@,$CCDEPMODE,;t t
6455 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6456 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6457 s,@LN_S@,$LN_S,;t t
6458 s,@RANLIB@,$RANLIB,;t t
6459 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6460 s,@kernelincludedir@,$kernelincludedir,;t t
6461 s,@vserverdir@,$vserverdir,;t t
6462 s,@CVS2CL_TAG@,$CVS2CL_TAG,;t t
6463 s,@CVS2CL@,$CVS2CL,;t t
6464 s,@HAVE_CVS2CL_TRUE@,$HAVE_CVS2CL_TRUE,;t t
6465 s,@HAVE_CVS2CL_FALSE@,$HAVE_CVS2CL_FALSE,;t t
6466 s,@RCS2LOG@,$RCS2LOG,;t t
6467 s,@HAVE_RCS2LOG_TRUE@,$HAVE_RCS2LOG_TRUE,;t t
6468 s,@HAVE_RCS2LOG_FALSE@,$HAVE_RCS2LOG_FALSE,;t t
6469 s,@ENSC_ENABLE_LINUXCONF_TRUE@,$ENSC_ENABLE_LINUXCONF_TRUE,;t t
6470 s,@ENSC_ENABLE_LINUXCONF_FALSE@,$ENSC_ENABLE_LINUXCONF_FALSE,;t t
6471 s,@ENSC_ENABLE_INTERNAL_HEADERS_TRUE@,$ENSC_ENABLE_INTERNAL_HEADERS_TRUE,;t t
6472 s,@ENSC_ENABLE_INTERNAL_HEADERS_FALSE@,$ENSC_ENABLE_INTERNAL_HEADERS_FALSE,;t t
6473 s,@CPP@,$CPP,;t t
6474 s,@EGREP@,$EGREP,;t t
6475 s,@CXXCPP@,$CXXCPP,;t t
6476 s,@LIBOBJS@,$LIBOBJS,;t t
6477 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6478 CEOF
6479
6480 _ACEOF
6481
6482   cat >>$CONFIG_STATUS <<\_ACEOF
6483   # Split the substitutions into bite-sized pieces for seds with
6484   # small command number limits, like on Digital OSF/1 and HP-UX.
6485   ac_max_sed_lines=48
6486   ac_sed_frag=1 # Number of current file.
6487   ac_beg=1 # First line for current file.
6488   ac_end=$ac_max_sed_lines # Line after last line for current file.
6489   ac_more_lines=:
6490   ac_sed_cmds=
6491   while $ac_more_lines; do
6492     if test $ac_beg -gt 1; then
6493       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6494     else
6495       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6496     fi
6497     if test ! -s $tmp/subs.frag; then
6498       ac_more_lines=false
6499     else
6500       # The purpose of the label and of the branching condition is to
6501       # speed up the sed processing (if there are no `@' at all, there
6502       # is no need to browse any of the substitutions).
6503       # These are the two extra sed commands mentioned above.
6504       (echo ':t
6505   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6506       if test -z "$ac_sed_cmds"; then
6507         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6508       else
6509         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6510       fi
6511       ac_sed_frag=`expr $ac_sed_frag + 1`
6512       ac_beg=$ac_end
6513       ac_end=`expr $ac_end + $ac_max_sed_lines`
6514     fi
6515   done
6516   if test -z "$ac_sed_cmds"; then
6517     ac_sed_cmds=cat
6518   fi
6519 fi # test -n "$CONFIG_FILES"
6520
6521 _ACEOF
6522 cat >>$CONFIG_STATUS <<\_ACEOF
6523 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6524   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6525   case $ac_file in
6526   - | *:- | *:-:* ) # input from stdin
6527         cat >$tmp/stdin
6528         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6529         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6530   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6531         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6532   * )   ac_file_in=$ac_file.in ;;
6533   esac
6534
6535   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6536   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6537 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6538          X"$ac_file" : 'X\(//\)[^/]' \| \
6539          X"$ac_file" : 'X\(//\)$' \| \
6540          X"$ac_file" : 'X\(/\)' \| \
6541          .     : '\(.\)' 2>/dev/null ||
6542 echo X"$ac_file" |
6543     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6544           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6545           /^X\(\/\/\)$/{ s//\1/; q; }
6546           /^X\(\/\).*/{ s//\1/; q; }
6547           s/.*/./; q'`
6548   { if $as_mkdir_p; then
6549     mkdir -p "$ac_dir"
6550   else
6551     as_dir="$ac_dir"
6552     as_dirs=
6553     while test ! -d "$as_dir"; do
6554       as_dirs="$as_dir $as_dirs"
6555       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6557          X"$as_dir" : 'X\(//\)[^/]' \| \
6558          X"$as_dir" : 'X\(//\)$' \| \
6559          X"$as_dir" : 'X\(/\)' \| \
6560          .     : '\(.\)' 2>/dev/null ||
6561 echo X"$as_dir" |
6562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6563           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6564           /^X\(\/\/\)$/{ s//\1/; q; }
6565           /^X\(\/\).*/{ s//\1/; q; }
6566           s/.*/./; q'`
6567     done
6568     test ! -n "$as_dirs" || mkdir $as_dirs
6569   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6570 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6571    { (exit 1); exit 1; }; }; }
6572
6573   ac_builddir=.
6574
6575 if test "$ac_dir" != .; then
6576   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6577   # A "../" for each directory in $ac_dir_suffix.
6578   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6579 else
6580   ac_dir_suffix= ac_top_builddir=
6581 fi
6582
6583 case $srcdir in
6584   .)  # No --srcdir option.  We are building in place.
6585     ac_srcdir=.
6586     if test -z "$ac_top_builddir"; then
6587        ac_top_srcdir=.
6588     else
6589        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6590     fi ;;
6591   [\\/]* | ?:[\\/]* )  # Absolute path.
6592     ac_srcdir=$srcdir$ac_dir_suffix;
6593     ac_top_srcdir=$srcdir ;;
6594   *) # Relative path.
6595     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6596     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6597 esac
6598
6599 # Do not use `cd foo && pwd` to compute absolute paths, because
6600 # the directories may not exist.
6601 case `pwd` in
6602 .) ac_abs_builddir="$ac_dir";;
6603 *)
6604   case "$ac_dir" in
6605   .) ac_abs_builddir=`pwd`;;
6606   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6607   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6608   esac;;
6609 esac
6610 case $ac_abs_builddir in
6611 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6612 *)
6613   case ${ac_top_builddir}. in
6614   .) ac_abs_top_builddir=$ac_abs_builddir;;
6615   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6616   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6617   esac;;
6618 esac
6619 case $ac_abs_builddir in
6620 .) ac_abs_srcdir=$ac_srcdir;;
6621 *)
6622   case $ac_srcdir in
6623   .) ac_abs_srcdir=$ac_abs_builddir;;
6624   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6625   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6626   esac;;
6627 esac
6628 case $ac_abs_builddir in
6629 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6630 *)
6631   case $ac_top_srcdir in
6632   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6633   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6634   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6635   esac;;
6636 esac
6637
6638
6639   case $INSTALL in
6640   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6641   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6642   esac
6643
6644   if test x"$ac_file" != x-; then
6645     { echo "$as_me:$LINENO: creating $ac_file" >&5
6646 echo "$as_me: creating $ac_file" >&6;}
6647     rm -f "$ac_file"
6648   fi
6649   # Let's still pretend it is `configure' which instantiates (i.e., don't
6650   # use $as_me), people would be surprised to read:
6651   #    /* config.h.  Generated by config.status.  */
6652   if test x"$ac_file" = x-; then
6653     configure_input=
6654   else
6655     configure_input="$ac_file.  "
6656   fi
6657   configure_input=$configure_input"Generated from `echo $ac_file_in |
6658                                      sed 's,.*/,,'` by configure."
6659
6660   # First look for the input files in the build tree, otherwise in the
6661   # src tree.
6662   ac_file_inputs=`IFS=:
6663     for f in $ac_file_in; do
6664       case $f in
6665       -) echo $tmp/stdin ;;
6666       [\\/$]*)
6667          # Absolute (can't be DOS-style, as IFS=:)
6668          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6669 echo "$as_me: error: cannot find input file: $f" >&2;}
6670    { (exit 1); exit 1; }; }
6671          echo "$f";;
6672       *) # Relative
6673          if test -f "$f"; then
6674            # Build tree
6675            echo "$f"
6676          elif test -f "$srcdir/$f"; then
6677            # Source tree
6678            echo "$srcdir/$f"
6679          else
6680            # /dev/null tree
6681            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6682 echo "$as_me: error: cannot find input file: $f" >&2;}
6683    { (exit 1); exit 1; }; }
6684          fi;;
6685       esac
6686     done` || { (exit 1); exit 1; }
6687 _ACEOF
6688 cat >>$CONFIG_STATUS <<_ACEOF
6689   sed "$ac_vpsub
6690 $extrasub
6691 _ACEOF
6692 cat >>$CONFIG_STATUS <<\_ACEOF
6693 :t
6694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6695 s,@configure_input@,$configure_input,;t t
6696 s,@srcdir@,$ac_srcdir,;t t
6697 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6698 s,@top_srcdir@,$ac_top_srcdir,;t t
6699 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6700 s,@builddir@,$ac_builddir,;t t
6701 s,@abs_builddir@,$ac_abs_builddir,;t t
6702 s,@top_builddir@,$ac_top_builddir,;t t
6703 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6704 s,@INSTALL@,$ac_INSTALL,;t t
6705 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6706   rm -f $tmp/stdin
6707   if test x"$ac_file" != x-; then
6708     mv $tmp/out $ac_file
6709   else
6710     cat $tmp/out
6711     rm -f $tmp/out
6712   fi
6713
6714 done
6715 _ACEOF
6716 cat >>$CONFIG_STATUS <<\_ACEOF
6717
6718 #
6719 # CONFIG_HEADER section.
6720 #
6721
6722 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6723 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6724 #
6725 # ac_d sets the value in "#define NAME VALUE" lines.
6726 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
6727 ac_dB='[         ].*$,\1#\2'
6728 ac_dC=' '
6729 ac_dD=',;t'
6730 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6731 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6732 ac_uB='$,\1#\2define\3'
6733 ac_uC=' '
6734 ac_uD=',;t'
6735
6736 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6737   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6738   case $ac_file in
6739   - | *:- | *:-:* ) # input from stdin
6740         cat >$tmp/stdin
6741         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6742         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6743   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6744         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6745   * )   ac_file_in=$ac_file.in ;;
6746   esac
6747
6748   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6749 echo "$as_me: creating $ac_file" >&6;}
6750
6751   # First look for the input files in the build tree, otherwise in the
6752   # src tree.
6753   ac_file_inputs=`IFS=:
6754     for f in $ac_file_in; do
6755       case $f in
6756       -) echo $tmp/stdin ;;
6757       [\\/$]*)
6758          # Absolute (can't be DOS-style, as IFS=:)
6759          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6760 echo "$as_me: error: cannot find input file: $f" >&2;}
6761    { (exit 1); exit 1; }; }
6762          # Do quote $f, to prevent DOS paths from being IFS'd.
6763          echo "$f";;
6764       *) # Relative
6765          if test -f "$f"; then
6766            # Build tree
6767            echo "$f"
6768          elif test -f "$srcdir/$f"; then
6769            # Source tree
6770            echo "$srcdir/$f"
6771          else
6772            # /dev/null tree
6773            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6774 echo "$as_me: error: cannot find input file: $f" >&2;}
6775    { (exit 1); exit 1; }; }
6776          fi;;
6777       esac
6778     done` || { (exit 1); exit 1; }
6779   # Remove the trailing spaces.
6780   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
6781
6782 _ACEOF
6783
6784 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6785 # `conftest.undefs', that substitutes the proper values into
6786 # config.h.in to produce config.h.  The first handles `#define'
6787 # templates, and the second `#undef' templates.
6788 # And first: Protect against being on the right side of a sed subst in
6789 # config.status.  Protect against being in an unquoted here document
6790 # in config.status.
6791 rm -f conftest.defines conftest.undefs
6792 # Using a here document instead of a string reduces the quoting nightmare.
6793 # Putting comments in sed scripts is not portable.
6794 #
6795 # `end' is used to avoid that the second main sed command (meant for
6796 # 0-ary CPP macros) applies to n-ary macro definitions.
6797 # See the Autoconf documentation for `clear'.
6798 cat >confdef2sed.sed <<\_ACEOF
6799 s/[\\&,]/\\&/g
6800 s,[\\$`],\\&,g
6801 t clear
6802 : clear
6803 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6804 t end
6805 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6806 : end
6807 _ACEOF
6808 # If some macros were called several times there might be several times
6809 # the same #defines, which is useless.  Nevertheless, we may not want to
6810 # sort them, since we want the *last* AC-DEFINE to be honored.
6811 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6812 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6813 rm -f confdef2sed.sed
6814
6815 # This sed command replaces #undef with comments.  This is necessary, for
6816 # example, in the case of _POSIX_SOURCE, which is predefined and required
6817 # on some systems where configure will not decide to define it.
6818 cat >>conftest.undefs <<\_ACEOF
6819 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6820 _ACEOF
6821
6822 # Break up conftest.defines because some shells have a limit on the size
6823 # of here documents, and old seds have small limits too (100 cmds).
6824 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6825 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6826 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6827 echo '  :' >>$CONFIG_STATUS
6828 rm -f conftest.tail
6829 while grep . conftest.defines >/dev/null
6830 do
6831   # Write a limited-size here document to $tmp/defines.sed.
6832   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6833   # Speed up: don't consider the non `#define' lines.
6834   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
6835   # Work around the forget-to-reset-the-flag bug.
6836   echo 't clr' >>$CONFIG_STATUS
6837   echo ': clr' >>$CONFIG_STATUS
6838   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6839   echo 'CEOF
6840   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6841   rm -f $tmp/in
6842   mv $tmp/out $tmp/in
6843 ' >>$CONFIG_STATUS
6844   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6845   rm -f conftest.defines
6846   mv conftest.tail conftest.defines
6847 done
6848 rm -f conftest.defines
6849 echo '  fi # grep' >>$CONFIG_STATUS
6850 echo >>$CONFIG_STATUS
6851
6852 # Break up conftest.undefs because some shells have a limit on the size
6853 # of here documents, and old seds have small limits too (100 cmds).
6854 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6855 rm -f conftest.tail
6856 while grep . conftest.undefs >/dev/null
6857 do
6858   # Write a limited-size here document to $tmp/undefs.sed.
6859   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6860   # Speed up: don't consider the non `#undef'
6861   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6862   # Work around the forget-to-reset-the-flag bug.
6863   echo 't clr' >>$CONFIG_STATUS
6864   echo ': clr' >>$CONFIG_STATUS
6865   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6866   echo 'CEOF
6867   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6868   rm -f $tmp/in
6869   mv $tmp/out $tmp/in
6870 ' >>$CONFIG_STATUS
6871   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6872   rm -f conftest.undefs
6873   mv conftest.tail conftest.undefs
6874 done
6875 rm -f conftest.undefs
6876
6877 cat >>$CONFIG_STATUS <<\_ACEOF
6878   # Let's still pretend it is `configure' which instantiates (i.e., don't
6879   # use $as_me), people would be surprised to read:
6880   #    /* config.h.  Generated by config.status.  */
6881   if test x"$ac_file" = x-; then
6882     echo "/* Generated by configure.  */" >$tmp/config.h
6883   else
6884     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6885   fi
6886   cat $tmp/in >>$tmp/config.h
6887   rm -f $tmp/in
6888   if test x"$ac_file" != x-; then
6889     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6890       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6891 echo "$as_me: $ac_file is unchanged" >&6;}
6892     else
6893       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6894 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6895          X"$ac_file" : 'X\(//\)[^/]' \| \
6896          X"$ac_file" : 'X\(//\)$' \| \
6897          X"$ac_file" : 'X\(/\)' \| \
6898          .     : '\(.\)' 2>/dev/null ||
6899 echo X"$ac_file" |
6900     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6901           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6902           /^X\(\/\/\)$/{ s//\1/; q; }
6903           /^X\(\/\).*/{ s//\1/; q; }
6904           s/.*/./; q'`
6905       { if $as_mkdir_p; then
6906     mkdir -p "$ac_dir"
6907   else
6908     as_dir="$ac_dir"
6909     as_dirs=
6910     while test ! -d "$as_dir"; do
6911       as_dirs="$as_dir $as_dirs"
6912       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6914          X"$as_dir" : 'X\(//\)[^/]' \| \
6915          X"$as_dir" : 'X\(//\)$' \| \
6916          X"$as_dir" : 'X\(/\)' \| \
6917          .     : '\(.\)' 2>/dev/null ||
6918 echo X"$as_dir" |
6919     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6920           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6921           /^X\(\/\/\)$/{ s//\1/; q; }
6922           /^X\(\/\).*/{ s//\1/; q; }
6923           s/.*/./; q'`
6924     done
6925     test ! -n "$as_dirs" || mkdir $as_dirs
6926   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6927 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6928    { (exit 1); exit 1; }; }; }
6929
6930       rm -f $ac_file
6931       mv $tmp/config.h $ac_file
6932     fi
6933   else
6934     cat $tmp/config.h
6935     rm -f $tmp/config.h
6936   fi
6937 # Compute $ac_file's index in $config_headers.
6938 _am_stamp_count=1
6939 for _am_header in $config_headers :; do
6940   case $_am_header in
6941     $ac_file | $ac_file:* )
6942       break ;;
6943     * )
6944       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6945   esac
6946 done
6947 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6948 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6949          X$ac_file : 'X\(//\)[^/]' \| \
6950          X$ac_file : 'X\(//\)$' \| \
6951          X$ac_file : 'X\(/\)' \| \
6952          .     : '\(.\)' 2>/dev/null ||
6953 echo X$ac_file |
6954     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6955           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6956           /^X\(\/\/\)$/{ s//\1/; q; }
6957           /^X\(\/\).*/{ s//\1/; q; }
6958           s/.*/./; q'`/stamp-h$_am_stamp_count
6959 done
6960 _ACEOF
6961 cat >>$CONFIG_STATUS <<\_ACEOF
6962
6963 #
6964 # CONFIG_COMMANDS section.
6965 #
6966 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6967   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6968   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6969   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6970 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6971          X"$ac_dest" : 'X\(//\)[^/]' \| \
6972          X"$ac_dest" : 'X\(//\)$' \| \
6973          X"$ac_dest" : 'X\(/\)' \| \
6974          .     : '\(.\)' 2>/dev/null ||
6975 echo X"$ac_dest" |
6976     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6977           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6978           /^X\(\/\/\)$/{ s//\1/; q; }
6979           /^X\(\/\).*/{ s//\1/; q; }
6980           s/.*/./; q'`
6981   { if $as_mkdir_p; then
6982     mkdir -p "$ac_dir"
6983   else
6984     as_dir="$ac_dir"
6985     as_dirs=
6986     while test ! -d "$as_dir"; do
6987       as_dirs="$as_dir $as_dirs"
6988       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6989 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6990          X"$as_dir" : 'X\(//\)[^/]' \| \
6991          X"$as_dir" : 'X\(//\)$' \| \
6992          X"$as_dir" : 'X\(/\)' \| \
6993          .     : '\(.\)' 2>/dev/null ||
6994 echo X"$as_dir" |
6995     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6996           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6997           /^X\(\/\/\)$/{ s//\1/; q; }
6998           /^X\(\/\).*/{ s//\1/; q; }
6999           s/.*/./; q'`
7000     done
7001     test ! -n "$as_dirs" || mkdir $as_dirs
7002   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7003 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7004    { (exit 1); exit 1; }; }; }
7005
7006   ac_builddir=.
7007
7008 if test "$ac_dir" != .; then
7009   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7010   # A "../" for each directory in $ac_dir_suffix.
7011   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7012 else
7013   ac_dir_suffix= ac_top_builddir=
7014 fi
7015
7016 case $srcdir in
7017   .)  # No --srcdir option.  We are building in place.
7018     ac_srcdir=.
7019     if test -z "$ac_top_builddir"; then
7020        ac_top_srcdir=.
7021     else
7022        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7023     fi ;;
7024   [\\/]* | ?:[\\/]* )  # Absolute path.
7025     ac_srcdir=$srcdir$ac_dir_suffix;
7026     ac_top_srcdir=$srcdir ;;
7027   *) # Relative path.
7028     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7029     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7030 esac
7031
7032 # Do not use `cd foo && pwd` to compute absolute paths, because
7033 # the directories may not exist.
7034 case `pwd` in
7035 .) ac_abs_builddir="$ac_dir";;
7036 *)
7037   case "$ac_dir" in
7038   .) ac_abs_builddir=`pwd`;;
7039   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7040   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7041   esac;;
7042 esac
7043 case $ac_abs_builddir in
7044 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7045 *)
7046   case ${ac_top_builddir}. in
7047   .) ac_abs_top_builddir=$ac_abs_builddir;;
7048   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7049   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7050   esac;;
7051 esac
7052 case $ac_abs_builddir in
7053 .) ac_abs_srcdir=$ac_srcdir;;
7054 *)
7055   case $ac_srcdir in
7056   .) ac_abs_srcdir=$ac_abs_builddir;;
7057   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7058   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7059   esac;;
7060 esac
7061 case $ac_abs_builddir in
7062 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7063 *)
7064   case $ac_top_srcdir in
7065   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7066   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7067   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7068   esac;;
7069 esac
7070
7071
7072   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7073 echo "$as_me: executing $ac_dest commands" >&6;}
7074   case $ac_dest in
7075     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7076   # Strip MF so we end up with the name of the file.
7077   mf=`echo "$mf" | sed -e 's/:.*$//'`
7078   # Check whether this is an Automake generated Makefile or not.
7079   # We used to match only the files named `Makefile.in', but
7080   # some people rename them; so instead we look at the file content.
7081   # Grep'ing the first line is not enough: some people post-process
7082   # each Makefile.in and add a new line on top of each file to say so.
7083   # So let's grep whole file.
7084   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7085     dirpart=`(dirname "$mf") 2>/dev/null ||
7086 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7087          X"$mf" : 'X\(//\)[^/]' \| \
7088          X"$mf" : 'X\(//\)$' \| \
7089          X"$mf" : 'X\(/\)' \| \
7090          .     : '\(.\)' 2>/dev/null ||
7091 echo X"$mf" |
7092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7093           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7094           /^X\(\/\/\)$/{ s//\1/; q; }
7095           /^X\(\/\).*/{ s//\1/; q; }
7096           s/.*/./; q'`
7097   else
7098     continue
7099   fi
7100   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7101   # Extract the definition of DEP_FILES from the Makefile without
7102   # running `make'.
7103   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7104   test -z "$DEPDIR" && continue
7105   # When using ansi2knr, U may be empty or an underscore; expand it
7106   U=`sed -n 's/^U = //p' < "$mf"`
7107   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7108   # We invoke sed twice because it is the simplest approach to
7109   # changing $(DEPDIR) to its actual value in the expansion.
7110   for file in `sed -n '
7111     /^DEP_FILES = .*\\\\$/ {
7112       s/^DEP_FILES = //
7113       :loop
7114         s/\\\\$//
7115         p
7116         n
7117         /\\\\$/ b loop
7118       p
7119     }
7120     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7121        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7122     # Make sure the directory exists.
7123     test -f "$dirpart/$file" && continue
7124     fdir=`(dirname "$file") 2>/dev/null ||
7125 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7126          X"$file" : 'X\(//\)[^/]' \| \
7127          X"$file" : 'X\(//\)$' \| \
7128          X"$file" : 'X\(/\)' \| \
7129          .     : '\(.\)' 2>/dev/null ||
7130 echo X"$file" |
7131     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7132           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7133           /^X\(\/\/\)$/{ s//\1/; q; }
7134           /^X\(\/\).*/{ s//\1/; q; }
7135           s/.*/./; q'`
7136     { if $as_mkdir_p; then
7137     mkdir -p $dirpart/$fdir
7138   else
7139     as_dir=$dirpart/$fdir
7140     as_dirs=
7141     while test ! -d "$as_dir"; do
7142       as_dirs="$as_dir $as_dirs"
7143       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7145          X"$as_dir" : 'X\(//\)[^/]' \| \
7146          X"$as_dir" : 'X\(//\)$' \| \
7147          X"$as_dir" : 'X\(/\)' \| \
7148          .     : '\(.\)' 2>/dev/null ||
7149 echo X"$as_dir" |
7150     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7151           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7152           /^X\(\/\/\)$/{ s//\1/; q; }
7153           /^X\(\/\).*/{ s//\1/; q; }
7154           s/.*/./; q'`
7155     done
7156     test ! -n "$as_dirs" || mkdir $as_dirs
7157   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7158 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7159    { (exit 1); exit 1; }; }; }
7160
7161     # echo "creating $dirpart/$file"
7162     echo '# dummy' > "$dirpart/$file"
7163   done
7164 done
7165  ;;
7166   esac
7167 done
7168 _ACEOF
7169
7170 cat >>$CONFIG_STATUS <<\_ACEOF
7171
7172 { (exit 0); exit 0; }
7173 _ACEOF
7174 chmod +x $CONFIG_STATUS
7175 ac_clean_files=$ac_clean_files_save
7176
7177
7178 # configure is writing to config.log, and then calls config.status.
7179 # config.status does its own redirection, appending to config.log.
7180 # Unfortunately, on DOS this fails, as config.log is still kept open
7181 # by configure, so config.status won't be able to write to it; its
7182 # output is simply discarded.  So we exec the FD to /dev/null,
7183 # effectively closing config.log, so it can be properly (re)opened and
7184 # appended to by config.status.  When coming back to configure, we
7185 # need to make the FD available again.
7186 if test "$no_create" != yes; then
7187   ac_cs_success=:
7188   ac_config_status_args=
7189   test "$silent" = yes &&
7190     ac_config_status_args="$ac_config_status_args --quiet"
7191   exec 5>/dev/null
7192   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7193   exec 5>>config.log
7194   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7195   # would make configure fail if this is the last instruction.
7196   $ac_cs_success || { (exit 1); exit 1; }
7197 fi
7198