2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for torrus 1.0.9.
5 # Report bugs to <ssinyagin@users.sourceforge.net>.
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 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
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 \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
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
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
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; }; }
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).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe 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
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
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'"
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'"
237 # We need space, tab and new line, in precisely that order.
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`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
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}
269 # Identity of this package.
270 PACKAGE_NAME='torrus'
271 PACKAGE_TARNAME='torrus'
272 PACKAGE_VERSION='1.0.9'
273 PACKAGE_STRING='torrus 1.0.9'
274 PACKAGE_BUGREPORT='ssinyagin@users.sourceforge.net'
276 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar PERL SU KILL SED FIND RM SLEEP POD2TEXT POD2TEXT_PRESENT_TRUE POD2TEXT_PRESENT_FALSE POD2MAN POD2MAN_PRESENT_TRUE POD2MAN_PRESENT_FALSE enable_pkgonly PERLINC perllibdirs perlithreads torrus_user var_user var_group var_mode enable_varperm pkghome pkgbindir cfgdefdir pkgdocdir exmpdir perllibdir pluginsdir plugtorruscfgdir plugdevdisccfgdir plugwrapperdir scriptsdir supdir webplaindir webscriptsdir tmpldir distxmldir sitedir siteconfdir tmpluserdir sitexmldir logdir piddir varprefix cachedir dbhome reportsdir seslockdir sesstordir wrapperdir mansec_usercmd mansec_misc defrrddir LIBOBJS LTLIBOBJS'
279 # Initialize some variables set by options.
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
291 program_transform_name=s,x,x,
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329 # Accept the important Cygnus configure options, so we can diagnose typos.
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
351 cache_file=config.cache ;;
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357 datadir=$ac_optarg ;;
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
379 eval "enable_$ac_feature='$ac_optarg'" ;;
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
394 -help | --help | --hel | --he | -h)
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
418 -libdir | --libdir | --libdi | --libd)
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
445 # Obsolete; use --without-fp.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
509 sbindir=$ac_optarg ;;
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
520 sharedstatedir=$ac_optarg ;;
522 -site | --site | --sit)
524 -site=* | --site=* | --sit=*)
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
547 -version | --version | --versio | --versi | --vers | -V)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 eval "with_$ac_package='$ac_optarg'" ;;
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
573 # Obsolete; use --with-x.
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
616 if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
625 eval ac_val=$`echo $ac_var`
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
637 eval ac_val=$`echo $ac_var`
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
666 test "$silent" = yes && exec 6>/dev/null
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
686 if test ! -r $srcdir/$ac_unique_file; then
690 ac_srcdir_defaulted=no
692 if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_PERLINC_set=${PERLINC+set}
718 ac_env_PERLINC_value=$PERLINC
719 ac_cv_env_PERLINC_set=${PERLINC+set}
720 ac_cv_env_PERLINC_value=$PERLINC
721 ac_env_torrus_user_set=${torrus_user+set}
722 ac_env_torrus_user_value=$torrus_user
723 ac_cv_env_torrus_user_set=${torrus_user+set}
724 ac_cv_env_torrus_user_value=$torrus_user
725 ac_env_var_user_set=${var_user+set}
726 ac_env_var_user_value=$var_user
727 ac_cv_env_var_user_set=${var_user+set}
728 ac_cv_env_var_user_value=$var_user
729 ac_env_var_group_set=${var_group+set}
730 ac_env_var_group_value=$var_group
731 ac_cv_env_var_group_set=${var_group+set}
732 ac_cv_env_var_group_value=$var_group
733 ac_env_var_mode_set=${var_mode+set}
734 ac_env_var_mode_value=$var_mode
735 ac_cv_env_var_mode_set=${var_mode+set}
736 ac_cv_env_var_mode_value=$var_mode
737 ac_env_pkghome_set=${pkghome+set}
738 ac_env_pkghome_value=$pkghome
739 ac_cv_env_pkghome_set=${pkghome+set}
740 ac_cv_env_pkghome_value=$pkghome
741 ac_env_pkgbindir_set=${pkgbindir+set}
742 ac_env_pkgbindir_value=$pkgbindir
743 ac_cv_env_pkgbindir_set=${pkgbindir+set}
744 ac_cv_env_pkgbindir_value=$pkgbindir
745 ac_env_cfgdefdir_set=${cfgdefdir+set}
746 ac_env_cfgdefdir_value=$cfgdefdir
747 ac_cv_env_cfgdefdir_set=${cfgdefdir+set}
748 ac_cv_env_cfgdefdir_value=$cfgdefdir
749 ac_env_pkgdocdir_set=${pkgdocdir+set}
750 ac_env_pkgdocdir_value=$pkgdocdir
751 ac_cv_env_pkgdocdir_set=${pkgdocdir+set}
752 ac_cv_env_pkgdocdir_value=$pkgdocdir
753 ac_env_exmpdir_set=${exmpdir+set}
754 ac_env_exmpdir_value=$exmpdir
755 ac_cv_env_exmpdir_set=${exmpdir+set}
756 ac_cv_env_exmpdir_value=$exmpdir
757 ac_env_perllibdir_set=${perllibdir+set}
758 ac_env_perllibdir_value=$perllibdir
759 ac_cv_env_perllibdir_set=${perllibdir+set}
760 ac_cv_env_perllibdir_value=$perllibdir
761 ac_env_pluginsdir_set=${pluginsdir+set}
762 ac_env_pluginsdir_value=$pluginsdir
763 ac_cv_env_pluginsdir_set=${pluginsdir+set}
764 ac_cv_env_pluginsdir_value=$pluginsdir
765 ac_env_plugtorruscfgdir_set=${plugtorruscfgdir+set}
766 ac_env_plugtorruscfgdir_value=$plugtorruscfgdir
767 ac_cv_env_plugtorruscfgdir_set=${plugtorruscfgdir+set}
768 ac_cv_env_plugtorruscfgdir_value=$plugtorruscfgdir
769 ac_env_plugdevdisccfgdir_set=${plugdevdisccfgdir+set}
770 ac_env_plugdevdisccfgdir_value=$plugdevdisccfgdir
771 ac_cv_env_plugdevdisccfgdir_set=${plugdevdisccfgdir+set}
772 ac_cv_env_plugdevdisccfgdir_value=$plugdevdisccfgdir
773 ac_env_plugwrapperdir_set=${plugwrapperdir+set}
774 ac_env_plugwrapperdir_value=$plugwrapperdir
775 ac_cv_env_plugwrapperdir_set=${plugwrapperdir+set}
776 ac_cv_env_plugwrapperdir_value=$plugwrapperdir
777 ac_env_scriptsdir_set=${scriptsdir+set}
778 ac_env_scriptsdir_value=$scriptsdir
779 ac_cv_env_scriptsdir_set=${scriptsdir+set}
780 ac_cv_env_scriptsdir_value=$scriptsdir
781 ac_env_supdir_set=${supdir+set}
782 ac_env_supdir_value=$supdir
783 ac_cv_env_supdir_set=${supdir+set}
784 ac_cv_env_supdir_value=$supdir
785 ac_env_webplaindir_set=${webplaindir+set}
786 ac_env_webplaindir_value=$webplaindir
787 ac_cv_env_webplaindir_set=${webplaindir+set}
788 ac_cv_env_webplaindir_value=$webplaindir
789 ac_env_webscriptsdir_set=${webscriptsdir+set}
790 ac_env_webscriptsdir_value=$webscriptsdir
791 ac_cv_env_webscriptsdir_set=${webscriptsdir+set}
792 ac_cv_env_webscriptsdir_value=$webscriptsdir
793 ac_env_tmpldir_set=${tmpldir+set}
794 ac_env_tmpldir_value=$tmpldir
795 ac_cv_env_tmpldir_set=${tmpldir+set}
796 ac_cv_env_tmpldir_value=$tmpldir
797 ac_env_distxmldir_set=${distxmldir+set}
798 ac_env_distxmldir_value=$distxmldir
799 ac_cv_env_distxmldir_set=${distxmldir+set}
800 ac_cv_env_distxmldir_value=$distxmldir
801 ac_env_sitedir_set=${sitedir+set}
802 ac_env_sitedir_value=$sitedir
803 ac_cv_env_sitedir_set=${sitedir+set}
804 ac_cv_env_sitedir_value=$sitedir
805 ac_env_siteconfdir_set=${siteconfdir+set}
806 ac_env_siteconfdir_value=$siteconfdir
807 ac_cv_env_siteconfdir_set=${siteconfdir+set}
808 ac_cv_env_siteconfdir_value=$siteconfdir
809 ac_env_tmpluserdir_set=${tmpluserdir+set}
810 ac_env_tmpluserdir_value=$tmpluserdir
811 ac_cv_env_tmpluserdir_set=${tmpluserdir+set}
812 ac_cv_env_tmpluserdir_value=$tmpluserdir
813 ac_env_sitexmldir_set=${sitexmldir+set}
814 ac_env_sitexmldir_value=$sitexmldir
815 ac_cv_env_sitexmldir_set=${sitexmldir+set}
816 ac_cv_env_sitexmldir_value=$sitexmldir
817 ac_env_logdir_set=${logdir+set}
818 ac_env_logdir_value=$logdir
819 ac_cv_env_logdir_set=${logdir+set}
820 ac_cv_env_logdir_value=$logdir
821 ac_env_piddir_set=${piddir+set}
822 ac_env_piddir_value=$piddir
823 ac_cv_env_piddir_set=${piddir+set}
824 ac_cv_env_piddir_value=$piddir
825 ac_env_varprefix_set=${varprefix+set}
826 ac_env_varprefix_value=$varprefix
827 ac_cv_env_varprefix_set=${varprefix+set}
828 ac_cv_env_varprefix_value=$varprefix
829 ac_env_cachedir_set=${cachedir+set}
830 ac_env_cachedir_value=$cachedir
831 ac_cv_env_cachedir_set=${cachedir+set}
832 ac_cv_env_cachedir_value=$cachedir
833 ac_env_dbhome_set=${dbhome+set}
834 ac_env_dbhome_value=$dbhome
835 ac_cv_env_dbhome_set=${dbhome+set}
836 ac_cv_env_dbhome_value=$dbhome
837 ac_env_reportsdir_set=${reportsdir+set}
838 ac_env_reportsdir_value=$reportsdir
839 ac_cv_env_reportsdir_set=${reportsdir+set}
840 ac_cv_env_reportsdir_value=$reportsdir
841 ac_env_seslockdir_set=${seslockdir+set}
842 ac_env_seslockdir_value=$seslockdir
843 ac_cv_env_seslockdir_set=${seslockdir+set}
844 ac_cv_env_seslockdir_value=$seslockdir
845 ac_env_sesstordir_set=${sesstordir+set}
846 ac_env_sesstordir_value=$sesstordir
847 ac_cv_env_sesstordir_set=${sesstordir+set}
848 ac_cv_env_sesstordir_value=$sesstordir
849 ac_env_wrapperdir_set=${wrapperdir+set}
850 ac_env_wrapperdir_value=$wrapperdir
851 ac_cv_env_wrapperdir_set=${wrapperdir+set}
852 ac_cv_env_wrapperdir_value=$wrapperdir
853 ac_env_mansec_usercmd_set=${mansec_usercmd+set}
854 ac_env_mansec_usercmd_value=$mansec_usercmd
855 ac_cv_env_mansec_usercmd_set=${mansec_usercmd+set}
856 ac_cv_env_mansec_usercmd_value=$mansec_usercmd
857 ac_env_mansec_misc_set=${mansec_misc+set}
858 ac_env_mansec_misc_value=$mansec_misc
859 ac_cv_env_mansec_misc_set=${mansec_misc+set}
860 ac_cv_env_mansec_misc_value=$mansec_misc
861 ac_env_defrrddir_set=${defrrddir+set}
862 ac_env_defrrddir_value=$defrrddir
863 ac_cv_env_defrrddir_set=${defrrddir+set}
864 ac_cv_env_defrrddir_value=$defrrddir
867 # Report the --help message.
869 if test "$ac_init_help" = "long"; then
870 # Omit some internal or obsolete options to make the list less imposing.
871 # This message is too long to be a string in the A/UX 3.1 sh.
873 \`configure' configures torrus 1.0.9 to adapt to many kinds of systems.
875 Usage: $0 [OPTION]... [VAR=VALUE]...
877 To assign environment variables (e.g., CC, CFLAGS...), specify them as
878 VAR=VALUE. See below for descriptions of some of the useful variables.
880 Defaults for the options are specified in brackets.
883 -h, --help display this help and exit
884 --help=short display options specific to this package
885 --help=recursive display the short help of all the included packages
886 -V, --version display version information and exit
887 -q, --quiet, --silent do not print \`checking...' messages
888 --cache-file=FILE cache test results in FILE [disabled]
889 -C, --config-cache alias for \`--cache-file=config.cache'
890 -n, --no-create do not create output files
891 --srcdir=DIR find the sources in DIR [configure dir or \`..']
896 Installation directories:
897 --prefix=PREFIX install architecture-independent files in PREFIX
899 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
902 By default, \`make install' will install all the files in
903 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
904 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
905 for instance \`--prefix=\$HOME'.
907 For better control, use the options below.
909 Fine tuning of the installation directories:
910 --bindir=DIR user executables [EPREFIX/bin]
911 --sbindir=DIR system admin executables [EPREFIX/sbin]
912 --libexecdir=DIR program executables [EPREFIX/libexec]
913 --datadir=DIR read-only architecture-independent data [PREFIX/share]
914 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
915 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
916 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
917 --libdir=DIR object code libraries [EPREFIX/lib]
918 --includedir=DIR C header files [PREFIX/include]
919 --oldincludedir=DIR C header files for non-gcc [/usr/include]
920 --infodir=DIR info documentation [PREFIX/info]
921 --mandir=DIR man documentation [PREFIX/man]
927 --program-prefix=PREFIX prepend PREFIX to installed program names
928 --program-suffix=SUFFIX append SUFFIX to installed program names
929 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
932 --build=BUILD configure for building on BUILD [guessed]
933 --host=HOST cross-compile to build programs to run on HOST [BUILD]
937 if test -n "$ac_init_help"; then
938 case $ac_init_help in
939 short | recursive ) echo "Configuration of torrus 1.0.9:";;
944 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
945 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
946 --enable-pkgonly Skip all checking
947 --disable-threads Disable Perl threads usage
948 --disable-varperm Disable db and cache access rights tuning
951 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
952 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
953 --with-rrdtool=DIR RRDTool location
955 Some influential environment variables:
956 PERLINC [] Additional space-separated Perl library paths
957 torrus_user [torrus] UID to run the daemons
958 var_user [TORRUS_USER] Owner of db and cache directories
959 var_group [torrus] Group of db and cache directories
960 var_mode [775] Mode of db and cache directories
961 pkghome [PREFIX/torrus] Place for Torrus static files
962 pkgbindir [PKGHOME/bin] Torrus executables
963 cfgdefdir [PKGHOME/conf_defaults] torrus-config.pl and others
964 pkgdocdir [PKGHOME/doc] Documentation files
965 exmpdir [PKGHOME/examples] Examples
966 perllibdir [PKGHOME/perllib] Torrus Perl libraries
967 pluginsdir [PKGHOME/plugins] Plugin configurations
969 [PLUGINSDIR/torrus-config]
971 [PLUGINSDIR/devdiscover-config]
974 scriptsdir [PKGHOME/scripts] Script files
975 supdir [PKGHOME/sup] Supplementary files
976 webplaindir [SUPDIR/webplain] Web interface plain files path
978 [SUPDIR/webscripts] Directory for optional web scripts
979 tmpldir [PKGHOME/templates] Template files
980 distxmldir [PKGHOME/xmlconfig] Distribution XML config files
981 sitedir [SYSCONFDIR/torrus] Site configuration files
982 siteconfdir [SITEDIR/conf] Site configuration files
983 tmpluserdir [SITEDIR/templates] User-defined Template files
984 sitexmldir [SITEDIR/xmlconfig] Site XML configs
985 logdir [/var/log/torrus] Log files
986 piddir [/var/run/torrus] PID files
987 varprefix [/var/torrus] Common prefix for runtime data
988 cachedir [VARPREFIX/cache] Renderer cache
989 dbhome [VARPREFIX/db] Berkeley DB files
990 reportsdir [VARPREFIX/reports] Reports output
991 seslockdir [VARPREFIX/session_data/lock] Web session locks
992 sesstordir [VARPREFIX/session_data/store] Web session storage
993 wrapperdir [BINDIR] CLI wrapper
995 [1] User commands man section
996 mansec_misc [7] Miscellaneous man section
997 defrrddir [/srv/torrus/collector_rrd] Default RRD storage path
999 Use these variables to override the choices made by `configure' or to help
1000 it to find libraries and programs with nonstandard names/locations.
1002 Report bugs to <ssinyagin@users.sourceforge.net>.
1006 if test "$ac_init_help" = "recursive"; then
1007 # If there are subdirs, report their specific --help.
1009 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1010 test -d $ac_dir || continue
1013 if test "$ac_dir" != .; then
1014 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1015 # A "../" for each directory in $ac_dir_suffix.
1016 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1018 ac_dir_suffix= ac_top_builddir=
1022 .) # No --srcdir option. We are building in place.
1024 if test -z "$ac_top_builddir"; then
1027 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1029 [\\/]* | ?:[\\/]* ) # Absolute path.
1030 ac_srcdir=$srcdir$ac_dir_suffix;
1031 ac_top_srcdir=$srcdir ;;
1033 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1034 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1037 # Do not use `cd foo && pwd` to compute absolute paths, because
1038 # the directories may not exist.
1040 .) ac_abs_builddir="$ac_dir";;
1043 .) ac_abs_builddir=`pwd`;;
1044 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1045 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1048 case $ac_abs_builddir in
1049 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1051 case ${ac_top_builddir}. in
1052 .) ac_abs_top_builddir=$ac_abs_builddir;;
1053 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1054 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1057 case $ac_abs_builddir in
1058 .) ac_abs_srcdir=$ac_srcdir;;
1061 .) ac_abs_srcdir=$ac_abs_builddir;;
1062 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1063 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1066 case $ac_abs_builddir in
1067 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1069 case $ac_top_srcdir in
1070 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1071 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1072 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1077 # Check for guested configure; otherwise get Cygnus style configure.
1078 if test -f $ac_srcdir/configure.gnu; then
1080 $SHELL $ac_srcdir/configure.gnu --help=recursive
1081 elif test -f $ac_srcdir/configure; then
1083 $SHELL $ac_srcdir/configure --help=recursive
1084 elif test -f $ac_srcdir/configure.ac ||
1085 test -f $ac_srcdir/configure.in; then
1087 $ac_configure --help
1089 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1095 test -n "$ac_init_help" && exit 0
1096 if $ac_init_version; then
1098 torrus configure 1.0.9
1099 generated by GNU Autoconf 2.59
1101 Copyright (C) 2003 Free Software Foundation, Inc.
1102 This configure script is free software; the Free Software Foundation
1103 gives unlimited permission to copy, distribute and modify it.
1109 This file contains any messages produced by compilers while
1110 running configure, to aid debugging if configure makes a mistake.
1112 It was created by torrus $as_me 1.0.9, which was
1113 generated by GNU Autoconf 2.59. Invocation command line was
1124 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1125 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1126 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1127 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1128 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1130 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1131 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1133 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1134 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1135 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1136 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1137 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1138 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1139 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1147 test -z "$as_dir" && as_dir=.
1148 echo "PATH: $as_dir"
1163 # Keep a trace of the command line.
1164 # Strip out --no-create and --no-recursion so they do not pile up.
1165 # Strip out --silent because we don't want to record it for future runs.
1166 # Also quote any args containing shell meta-characters.
1167 # Make two passes to allow for proper duplicate-argument suppression.
1172 ac_must_keep_next=false
1178 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180 | -silent | --silent | --silen | --sile | --sil)
1182 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1183 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1186 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1188 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1189 if test $ac_must_keep_next = true; then
1190 ac_must_keep_next=false # Got value, back to normal.
1193 *=* | --config-cache | -C | -disable-* | --disable-* \
1194 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1195 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1196 | -with-* | --with-* | -without-* | --without-* | --x)
1197 case "$ac_configure_args0 " in
1198 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1201 -* ) ac_must_keep_next=true ;;
1204 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1205 # Get rid of the leading space.
1211 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1212 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1214 # When interrupted or exit'd, cleanup temporary files, and complete
1215 # config.log. We remove comments because anyway the quotes in there
1216 # would cause problems or look ugly.
1217 # WARNING: Be sure not to use single quotes in there, as some shells,
1218 # such as our DU 5.0 friend, will then `close' the trap.
1219 trap 'exit_status=$?
1220 # Save into config.log some information that might help in debugging.
1225 ## ---------------- ##
1226 ## Cache variables. ##
1227 ## ---------------- ##
1230 # The following way of writing the cache mishandles newlines in values,
1233 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1236 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1241 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1248 ## ----------------- ##
1249 ## Output variables. ##
1250 ## ----------------- ##
1253 for ac_var in $ac_subst_vars
1255 eval ac_val=$`echo $ac_var`
1256 echo "$ac_var='"'"'$ac_val'"'"'"
1260 if test -n "$ac_subst_files"; then
1267 for ac_var in $ac_subst_files
1269 eval ac_val=$`echo $ac_var`
1270 echo "$ac_var='"'"'$ac_val'"'"'"
1275 if test -s confdefs.h; then
1282 sed "/^$/d" confdefs.h | sort
1285 test "$ac_signal" != 0 &&
1286 echo "$as_me: caught signal $ac_signal"
1287 echo "$as_me: exit $exit_status"
1289 rm -f core *.core &&
1290 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1293 for ac_signal in 1 2 13 15; do
1294 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1298 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1299 rm -rf conftest* confdefs.h
1300 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1303 # Predefined preprocessor variables.
1305 cat >>confdefs.h <<_ACEOF
1306 #define PACKAGE_NAME "$PACKAGE_NAME"
1310 cat >>confdefs.h <<_ACEOF
1311 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1315 cat >>confdefs.h <<_ACEOF
1316 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1320 cat >>confdefs.h <<_ACEOF
1321 #define PACKAGE_STRING "$PACKAGE_STRING"
1325 cat >>confdefs.h <<_ACEOF
1326 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1330 # Let the site file select an alternate cache file if it wants to.
1331 # Prefer explicitly selected file to automatically selected ones.
1332 if test -z "$CONFIG_SITE"; then
1333 if test "x$prefix" != xNONE; then
1334 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1336 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1339 for ac_site_file in $CONFIG_SITE; do
1340 if test -r "$ac_site_file"; then
1341 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1342 echo "$as_me: loading site script $ac_site_file" >&6;}
1343 sed 's/^/| /' "$ac_site_file" >&5
1348 if test -r "$cache_file"; then
1349 # Some versions of bash will fail to source /dev/null (special
1350 # files actually), so we avoid doing that.
1351 if test -f "$cache_file"; then
1352 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1353 echo "$as_me: loading cache $cache_file" >&6;}
1355 [\\/]* | ?:[\\/]* ) . $cache_file;;
1356 *) . ./$cache_file;;
1360 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1361 echo "$as_me: creating cache $cache_file" >&6;}
1365 # Check that the precious variables saved in the cache have kept the same
1367 ac_cache_corrupted=false
1368 for ac_var in `(set) 2>&1 |
1369 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1370 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1371 eval ac_new_set=\$ac_env_${ac_var}_set
1372 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1373 eval ac_new_val="\$ac_env_${ac_var}_value"
1374 case $ac_old_set,$ac_new_set in
1376 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1377 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1378 ac_cache_corrupted=: ;;
1380 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1381 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1382 ac_cache_corrupted=: ;;
1385 if test "x$ac_old_val" != "x$ac_new_val"; then
1386 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1387 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1388 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1389 echo "$as_me: former value: $ac_old_val" >&2;}
1390 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1391 echo "$as_me: current value: $ac_new_val" >&2;}
1392 ac_cache_corrupted=:
1395 # Pass precious variables to config.status.
1396 if test "$ac_new_set" = set; then
1398 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1399 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1400 *) ac_arg=$ac_var=$ac_new_val ;;
1402 case " $ac_configure_args " in
1403 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1404 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1408 if $ac_cache_corrupted; then
1409 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1410 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1411 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1412 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1413 { (exit 1); exit 1; }; }
1417 ac_cpp='$CPP $CPPFLAGS'
1418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1450 for ac_dir in conftools $srcdir/conftools; do
1451 if test -f $ac_dir/install-sh; then
1453 ac_install_sh="$ac_aux_dir/install-sh -c"
1455 elif test -f $ac_dir/install.sh; then
1457 ac_install_sh="$ac_aux_dir/install.sh -c"
1459 elif test -f $ac_dir/shtool; then
1461 ac_install_sh="$ac_aux_dir/shtool install -c"
1465 if test -z "$ac_aux_dir"; then
1466 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&5
1467 echo "$as_me: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&2;}
1468 { (exit 1); exit 1; }; }
1470 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1471 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1472 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1474 # Make sure we can run config.sub.
1475 $ac_config_sub sun4 >/dev/null 2>&1 ||
1476 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1477 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1478 { (exit 1); exit 1; }; }
1480 echo "$as_me:$LINENO: checking build system type" >&5
1481 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1482 if test "${ac_cv_build+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 ac_cv_build_alias=$build_alias
1486 test -z "$ac_cv_build_alias" &&
1487 ac_cv_build_alias=`$ac_config_guess`
1488 test -z "$ac_cv_build_alias" &&
1489 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1490 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1491 { (exit 1); exit 1; }; }
1492 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1493 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1495 { (exit 1); exit 1; }; }
1498 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1499 echo "${ECHO_T}$ac_cv_build" >&6
1501 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1506 echo "$as_me:$LINENO: checking host system type" >&5
1507 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1508 if test "${ac_cv_host+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 ac_cv_host_alias=$host_alias
1512 test -z "$ac_cv_host_alias" &&
1513 ac_cv_host_alias=$ac_cv_build_alias
1514 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1515 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1517 { (exit 1); exit 1; }; }
1520 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1521 echo "${ECHO_T}$ac_cv_host" >&6
1523 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1528 am__api_version="1.9"
1529 # Find a good install program. We prefer a C program (faster),
1530 # so one script is as good as another. But avoid the broken or
1531 # incompatible versions:
1532 # SysV /etc/install, /usr/sbin/install
1533 # SunOS /usr/etc/install
1534 # IRIX /sbin/install
1536 # AmigaOS /C/install, which installs bootblocks on floppy discs
1537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1540 # OS/2's system install, which has a completely different semantic
1541 # ./install, which can be erroneously created by make from ./install.sh.
1542 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1543 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1544 if test -z "$INSTALL"; then
1545 if test "${ac_cv_path_install+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 test -z "$as_dir" && as_dir=.
1553 # Account for people who put trailing slashes in PATH elements.
1555 ./ | .// | /cC/* | \
1556 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1557 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1560 # OSF1 and SCO ODT 3.0 have their own names for install.
1561 # Don't use installbsd from OSF since it installs stuff as root
1563 for ac_prog in ginstall scoinst install; do
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1566 if test $ac_prog = install &&
1567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1568 # AIX install. It has an incompatible calling convention.
1570 elif test $ac_prog = install &&
1571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1572 # program-specific install script used by HP pwplus--don't use.
1575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1587 if test "${ac_cv_path_install+set}" = set; then
1588 INSTALL=$ac_cv_path_install
1590 # As a last resort, use the slow shell script. We don't cache a
1591 # path for INSTALL within a source directory, because that will
1592 # break other packages using the cache if that directory is
1593 # removed, or if the path is relative.
1594 INSTALL=$ac_install_sh
1597 echo "$as_me:$LINENO: result: $INSTALL" >&5
1598 echo "${ECHO_T}$INSTALL" >&6
1600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1601 # It thinks the first close brace ends the variable substitution.
1602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1608 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1609 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1612 echo timestamp > conftest.file
1613 # Do `set' in a subshell so we don't clobber the current shell's
1614 # arguments. Must try -L first in case configure is actually a
1615 # symlink; some systems play weird games with the mod time of symlinks
1616 # (eg FreeBSD returns the mod time of the symlink's containing
1619 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1620 if test "$*" = "X"; then
1622 set X `ls -t $srcdir/configure conftest.file`
1625 if test "$*" != "X $srcdir/configure conftest.file" \
1626 && test "$*" != "X conftest.file $srcdir/configure"; then
1628 # If neither matched, then we have a broken ls. This can happen
1629 # if, for instance, CONFIG_SHELL is bash and it inherits a
1630 # broken ls alias from the environment. This has actually
1631 # happened. Such a system could not be considered "sane".
1632 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1633 alias in your environment" >&5
1634 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1635 alias in your environment" >&2;}
1636 { (exit 1); exit 1; }; }
1639 test "$2" = conftest.file
1645 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1646 Check your system clock" >&5
1647 echo "$as_me: error: newly created file is older than distributed files!
1648 Check your system clock" >&2;}
1649 { (exit 1); exit 1; }; }
1651 echo "$as_me:$LINENO: result: yes" >&5
1652 echo "${ECHO_T}yes" >&6
1653 test "$program_prefix" != NONE &&
1654 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1655 # Use a double $ so make ignores it.
1656 test "$program_suffix" != NONE &&
1657 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1658 # Double any \ or $. echo might interpret backslashes.
1659 # By default was `s,x,x', remove it if useless.
1660 cat <<\_ACEOF >conftest.sed
1661 s/[\\$]/&&/g;s/;s,x,x,$//
1663 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1666 # expand $ac_aux_dir to an absolute path
1667 am_aux_dir=`cd $ac_aux_dir && pwd`
1669 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1670 # Use eval to expand $SHELL
1671 if eval "$MISSING --run true"; then
1672 am_missing_run="$MISSING --run "
1675 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1676 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1679 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1680 # We used to keeping the `.' as first argument, in order to
1681 # allow $(mkdir_p) to be used without argument. As in
1682 # $(mkdir_p) $(somedir)
1683 # where $(somedir) is conditionally defined. However this is wrong
1685 # 1. if the package is installed by a user who cannot write `.'
1686 # make install will fail,
1687 # 2. the above comment should most certainly read
1688 # $(mkdir_p) $(DESTDIR)$(somedir)
1689 # so it does not work when $(somedir) is undefined and
1690 # $(DESTDIR) is not.
1691 # To support the latter case, we have to write
1692 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1693 # so the `.' trick is pointless.
1694 mkdir_p='mkdir -p --'
1696 # On NextStep and OpenStep, the `mkdir' command does not
1697 # recognize any option. It will interpret all options as
1698 # directories to create, and then abort because `.' already
1700 for d in ./-p ./--version;
1702 test -d $d && rmdir $d
1704 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1705 if test -f "$ac_aux_dir/mkinstalldirs"; then
1706 mkdir_p='$(mkinstalldirs)'
1708 mkdir_p='$(install_sh) -d'
1712 for ac_prog in gawk mawk nawk awk
1714 # Extract the first word of "$ac_prog", so it can be a program name with args.
1715 set dummy $ac_prog; ac_word=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_AWK+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 if test -n "$AWK"; then
1722 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 test -z "$as_dir" && as_dir=.
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731 ac_cv_prog_AWK="$ac_prog"
1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 if test -n "$AWK"; then
1742 echo "$as_me:$LINENO: result: $AWK" >&5
1743 echo "${ECHO_T}$AWK" >&6
1745 echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1749 test -n "$AWK" && break
1752 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1753 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1754 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1755 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 cat >conftest.make <<\_ACEOF
1760 @echo 'ac_maketemp="$(MAKE)"'
1762 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1763 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1764 if test -n "$ac_maketemp"; then
1765 eval ac_cv_prog_make_${ac_make}_set=yes
1767 eval ac_cv_prog_make_${ac_make}_set=no
1771 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1772 echo "$as_me:$LINENO: result: yes" >&5
1773 echo "${ECHO_T}yes" >&6
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778 SET_MAKE="MAKE=${MAKE-make}"
1781 rm -rf .tst 2>/dev/null
1782 mkdir .tst 2>/dev/null
1783 if test -d .tst; then
1788 rmdir .tst 2>/dev/null
1790 # test to see if srcdir already configured
1791 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1792 test -f $srcdir/config.status; then
1793 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1794 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1795 { (exit 1); exit 1; }; }
1798 # test whether we have cygpath
1799 if test -z "$CYGPATH_W"; then
1800 if (cygpath --version) >/dev/null 2>/dev/null; then
1801 CYGPATH_W='cygpath -w'
1808 # Define the identity of the package.
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE "$PACKAGE"
1818 cat >>confdefs.h <<_ACEOF
1819 #define VERSION "$VERSION"
1822 # Some tools Automake needs.
1824 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1827 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1830 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1833 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1836 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1838 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1840 # Installed binaries are usually stripped using `strip' when the user
1841 # run `make install-strip'. However `strip' might not be the right
1842 # tool to use in cross-compilation environments, therefore Automake
1843 # will honor the `STRIP' environment variable to overrule this program.
1844 if test "$cross_compiling" != no; then
1845 if test -n "$ac_tool_prefix"; then
1846 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1847 set dummy ${ac_tool_prefix}strip; ac_word=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_STRIP+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 if test -n "$STRIP"; then
1854 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872 STRIP=$ac_cv_prog_STRIP
1873 if test -n "$STRIP"; then
1874 echo "$as_me:$LINENO: result: $STRIP" >&5
1875 echo "${ECHO_T}$STRIP" >&6
1877 echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1882 if test -z "$ac_cv_prog_STRIP"; then
1884 # Extract the first word of "strip", so it can be a program name with args.
1885 set dummy strip; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 if test -n "$ac_ct_STRIP"; then
1892 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_ac_ct_STRIP="strip"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1911 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1912 if test -n "$ac_ct_STRIP"; then
1913 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1914 echo "${ECHO_T}$ac_ct_STRIP" >&6
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1922 STRIP="$ac_cv_prog_STRIP"
1926 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1928 # We need awk for the "check" target. The system "awk" is bad on
1930 # Always define AMTAR for backward compatibility.
1932 AMTAR=${AMTAR-"${am_missing_run}tar"}
1934 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1941 # Extract the first word of "perl", so it can be a program name with args.
1942 set dummy perl; ac_word=$2
1943 echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945 if test "${ac_cv_path_PERL+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
1971 PERL=$ac_cv_path_PERL
1973 if test -n "$PERL"; then
1974 echo "$as_me:$LINENO: result: $PERL" >&5
1975 echo "${ECHO_T}$PERL" >&6
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1982 # Need this for init.torrus
1983 # Extract the first word of "su", so it can be a program name with args.
1984 set dummy su; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_path_SU+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 ac_cv_path_SU="$SU" # Let the user override the test with a path.
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_path_SU="$as_dir/$ac_word$ac_exec_ext"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 test -z "$ac_cv_path_SU" && ac_cv_path_SU="no"
2015 if test -n "$SU"; then
2016 echo "$as_me:$LINENO: result: $SU" >&5
2017 echo "${ECHO_T}$SU" >&6
2019 echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6
2023 # Extract the first word of "kill", so it can be a program name with args.
2024 set dummy kill; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_path_KILL+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 test -z "$ac_cv_path_KILL" && ac_cv_path_KILL="no"
2053 KILL=$ac_cv_path_KILL
2055 if test -n "$KILL"; then
2056 echo "$as_me:$LINENO: result: $KILL" >&5
2057 echo "${ECHO_T}$KILL" >&6
2059 echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2063 # Extract the first word of "sed", so it can be a program name with args.
2064 set dummy sed; ac_word=$2
2065 echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067 if test "${ac_cv_path_SED+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 ac_cv_path_SED="$SED" # Let the user override the test with a path.
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 test -z "$ac_cv_path_SED" && ac_cv_path_SED="no"
2095 if test -n "$SED"; then
2096 echo "$as_me:$LINENO: result: $SED" >&5
2097 echo "${ECHO_T}$SED" >&6
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2103 # Extract the first word of "find", so it can be a program name with args.
2104 set dummy find; ac_word=$2
2105 echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2107 if test "${ac_cv_path_FIND+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 test -z "$as_dir" && as_dir=.
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2122 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
2123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="no"
2133 FIND=$ac_cv_path_FIND
2135 if test -n "$FIND"; then
2136 echo "$as_me:$LINENO: result: $FIND" >&5
2137 echo "${ECHO_T}$FIND" >&6
2139 echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6
2143 # Extract the first word of "rm", so it can be a program name with args.
2144 set dummy rm; ac_word=$2
2145 echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2147 if test "${ac_cv_path_RM+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 ac_cv_path_RM="$RM" # Let the user override the test with a path.
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2162 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169 test -z "$ac_cv_path_RM" && ac_cv_path_RM="no"
2175 if test -n "$RM"; then
2176 echo "$as_me:$LINENO: result: $RM" >&5
2177 echo "${ECHO_T}$RM" >&6
2179 echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6
2183 # Extract the first word of "sleep", so it can be a program name with args.
2184 set dummy sleep; ac_word=$2
2185 echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187 if test "${ac_cv_path_SLEEP+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 ac_cv_path_SLEEP="$SLEEP" # Let the user override the test with a path.
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 test -z "$as_dir" && as_dir=.
2200 for ac_exec_ext in '' $ac_executable_extensions; do
2201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2202 ac_cv_path_SLEEP="$as_dir/$ac_word$ac_exec_ext"
2203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209 test -z "$ac_cv_path_SLEEP" && ac_cv_path_SLEEP="no"
2213 SLEEP=$ac_cv_path_SLEEP
2215 if test -n "$SLEEP"; then
2216 echo "$as_me:$LINENO: result: $SLEEP" >&5
2217 echo "${ECHO_T}$SLEEP" >&6
2219 echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6
2225 # This will generate doc pages from POD sources
2226 # Extract the first word of "pod2text", so it can be a program name with args.
2227 set dummy pod2text; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_path_POD2TEXT+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 ac_cv_path_POD2TEXT="$POD2TEXT" # Let the user override the test with a path.
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2245 ac_cv_path_POD2TEXT="$as_dir/$ac_word$ac_exec_ext"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 test -z "$ac_cv_path_POD2TEXT" && ac_cv_path_POD2TEXT="no"
2256 POD2TEXT=$ac_cv_path_POD2TEXT
2258 if test -n "$POD2TEXT"; then
2259 echo "$as_me:$LINENO: result: $POD2TEXT" >&5
2260 echo "${ECHO_T}$POD2TEXT" >&6
2262 echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6
2268 if test "$POD2TEXT" != no; then
2269 POD2TEXT_PRESENT_TRUE=
2270 POD2TEXT_PRESENT_FALSE='#'
2272 POD2TEXT_PRESENT_TRUE='#'
2273 POD2TEXT_PRESENT_FALSE=
2276 # Extract the first word of "pod2man", so it can be a program name with args.
2277 set dummy pod2man; ac_word=$2
2278 echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280 if test "${ac_cv_path_POD2MAN+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
2306 POD2MAN=$ac_cv_path_POD2MAN
2308 if test -n "$POD2MAN"; then
2309 echo "$as_me:$LINENO: result: $POD2MAN" >&5
2310 echo "${ECHO_T}$POD2MAN" >&6
2312 echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6
2318 if test "$POD2MAN" != no; then
2319 POD2MAN_PRESENT_TRUE=
2320 POD2MAN_PRESENT_FALSE='#'
2322 POD2MAN_PRESENT_TRUE='#'
2323 POD2MAN_PRESENT_FALSE=
2327 # Check whether --enable-pkgonly or --disable-pkgonly was given.
2328 if test "${enable_pkgonly+set}" = set; then
2329 enableval="$enable_pkgonly"
2334 # Check whether --enable-threads or --disable-threads was given.
2335 if test "${enable_threads+set}" = set; then
2336 enableval="$enable_threads"
2340 perllibdirs="\'\${perllibdir}\'"
2344 if test ! -z "$PERLINC"; then
2345 for d in $PERLINC; do
2346 PERLOPTS="${PERLOPTS} -I${d}"
2347 perllibdirs=${perllibdirs}"\,\'"${d}"\'"
2352 if ${PERL} -e 'use RRDs' 2>/dev/null; then :; else
2353 if test "$enable_pkgonly" != yes; then
2354 { echo "$as_me:$LINENO: RRDs.pm is not in default Perl search paths." >&5
2355 echo "$as_me: RRDs.pm is not in default Perl search paths." >&6;}
2356 echo "$as_me:$LINENO: checking RRDtool in /usr/local/rrdtool*" >&5
2357 echo $ECHO_N "checking RRDtool in /usr/local/rrdtool*... $ECHO_C" >&6
2358 with_rrdtool=`ls -1dr /usr/local/rrdtool* | head -1`
2359 if test -d $with_rrdtool; then
2360 echo "$as_me:$LINENO: result: ${with_rrdtool}" >&5
2361 echo "${ECHO_T}${with_rrdtool}" >&6
2363 { { echo "$as_me:$LINENO: error: Cannot find RRDtool" >&5
2364 echo "$as_me: error: Cannot find RRDtool" >&2;}
2365 { (exit 1); exit 1; }; }
2369 with_rrdtool="/usr/local/rrdtool"
2375 if test "$enable_pkgonly" != yes; then
2376 if ${PERL} -I${with_rrdtool}/lib/perl -e 'use RRDs'; then :; else
2377 { { echo "$as_me:$LINENO: error: Could not find RRDs perl module in ${with_rrdtool}" >&5
2378 echo "$as_me: error: Could not find RRDs perl module in ${with_rrdtool}" >&2;}
2379 { (exit 1); exit 1; }; }
2382 perllibdirs=${perllibdirs}"\,\'"${with_rrdtool}"/lib/perl/\'"
2386 # Check whether --with-rrdtool or --without-rrdtool was given.
2387 if test "${with_rrdtool+set}" = set; then
2388 withval="$with_rrdtool"
2394 perllibdirs=${perllibdirs}
2398 # Check the necessary Perl modules
2400 if test "$enable_pkgonly" != yes; then
2402 for module in 'BerkeleyDB' 'XML::LibXML' 'Template' \
2403 'Proc::Daemon' 'Net::SNMP' 'URI::Escape' 'Apache::Session' \
2404 'Date::Parse' 'JSON'
2406 echo "$as_me:$LINENO: checking presence of $module" >&5
2407 echo $ECHO_N "checking presence of $module... $ECHO_C" >&6
2408 if ${PERL} ${PERLOPTS} -e 'use '$module 2>/dev/null; then
2409 echo "$as_me:$LINENO: result: Ok" >&5
2410 echo "${ECHO_T}Ok" >&6
2412 { { echo "$as_me:$LINENO: error: Perl cannot find $module" >&5
2413 echo "$as_me: error: Perl cannot find $module" >&2;}
2414 { (exit 1); exit 1; }; };
2418 # Check if Perl threads can be used.
2419 # Requirements are: perl 5.8.8 with threads compiled,
2420 # threads ver. 1.41 or higher, threads::shared ver. 1.03 or higher
2423 if test x"$enable_threads" = xno; then
2427 echo "$as_me:$LINENO: checking if Perl version is 5.8.8 or higher" >&5
2428 echo $ECHO_N "checking if Perl version is 5.8.8 or higher... $ECHO_C" >&6
2429 if ${PERL} ${PERLOPTS} -e 'use 5.8.8' 2>/dev/null; then
2430 echo "$as_me:$LINENO: result: Ok" >&5
2431 echo "${ECHO_T}Ok" >&6
2436 if test ${perlithreads} -eq 1; then
2437 echo "$as_me:$LINENO: checking threading support in Perl" >&5
2438 echo $ECHO_N "checking threading support in Perl... $ECHO_C" >&6
2439 if ${PERL} ${PERLOPTS} -e 'use threads' 2>/dev/null; then
2440 echo "$as_me:$LINENO: result: Ok" >&5
2441 echo "${ECHO_T}Ok" >&6
2447 if test ${perlithreads} -eq 1; then
2448 echo "$as_me:$LINENO: checking if threads module version is 1.41 or higher" >&5
2449 echo $ECHO_N "checking if threads module version is 1.41 or higher... $ECHO_C" >&6
2450 if ${PERL} ${PERLOPTS} -e \
2451 'use threads; exit($threads::VERSION >= 1.41 ? 0:1)'; then
2452 echo "$as_me:$LINENO: result: Ok" >&5
2453 echo "${ECHO_T}Ok" >&6
2459 if test ${perlithreads} -eq 1; then
2460 echo "$as_me:$LINENO: checking if threads::shared module version is 1.03 or higher" >&5
2461 echo $ECHO_N "checking if threads::shared module version is 1.03 or higher... $ECHO_C" >&6
2462 if ${PERL} ${PERLOPTS} -e \
2463 'use threads; use threads::shared;
2464 exit($threads::shared::VERSION >= 1.03 ? 0:1)'; then
2465 echo "$as_me:$LINENO: result: Ok" >&5
2466 echo "${ECHO_T}Ok" >&6
2472 if test ${perlithreads} -eq 0; then
2473 echo "$as_me:$LINENO: result: No. Multithreading will not be used." >&5
2474 echo "${ECHO_T}No. Multithreading will not be used." >&6
2478 perlithreads=${perlithreads}
2483 if test -z "$torrus_user"; then
2484 torrus_user=torrus; fi
2486 if test "$enable_pkgonly" != yes; then
2487 echo "$as_me:$LINENO: checking if user ${torrus_user} exists" >&5
2488 echo $ECHO_N "checking if user ${torrus_user} exists... $ECHO_C" >&6
2489 torrus_check_file=torrus_usercheck_$$
2490 torrus_check_error=no
2491 if ! touch ${torrus_check_file}; then
2492 { { echo "$as_me:$LINENO: error: Cannot create ${torrus_check_file}" >&5
2493 echo "$as_me: error: Cannot create ${torrus_check_file}" >&2;}
2494 { (exit 1); exit 1; }; }
2495 elif ! chown ${torrus_user} ${torrus_check_file}; then
2496 torrus_check_error=yes
2498 rm -f ${torrus_check_file}
2499 if test ${torrus_check_error} = yes; then
2500 { { echo "$as_me:$LINENO: error: User ${torrus_user} does not exist" >&5
2501 echo "$as_me: error: User ${torrus_user} does not exist" >&2;}
2502 { (exit 1); exit 1; }; }
2504 echo "$as_me:$LINENO: result: Ok" >&5
2505 echo "${ECHO_T}Ok" >&6
2510 # Set the var/db and var/cache ownership
2516 # Check whether --enable-varperm or --disable-varperm was given.
2517 if test "${enable_varperm+set}" = set; then
2518 enableval="$enable_varperm"
2521 enable_varperm="yes"
2526 if test -z "$pkghome"; then
2527 pkghome='${prefix}/torrus'; fi
2530 if test -z "$pkgbindir"; then
2531 pkgbindir='${pkghome}/bin'; fi
2534 if test -z "$cfgdefdir"; then
2535 cfgdefdir='${pkghome}/conf_defaults'; fi
2538 if test -z "$pkgdocdir"; then
2539 pkgdocdir='${pkghome}/doc'; fi
2542 if test -z "$exmpdir"; then
2543 exmpdir='${pkghome}/examples'; fi
2546 if test -z "$perllibdir"; then
2547 perllibdir='${pkghome}/perllib'; fi
2550 if test -z "$pluginsdir"; then
2551 pluginsdir='${pkghome}/plugins'; fi
2554 if test -z "$plugtorruscfgdir"; then
2555 plugtorruscfgdir='${pluginsdir}/torrus-config'; fi
2558 if test -z "$plugdevdisccfgdir"; then
2559 plugdevdisccfgdir='${pluginsdir}/devdiscover-config'; fi
2562 if test -z "$plugwrapperdir"; then
2563 plugwrapperdir='${pluginsdir}/wrapper'; fi
2567 if test -z "$scriptsdir"; then
2568 scriptsdir='${pkghome}/scripts'; fi
2571 if test -z "$supdir"; then
2572 supdir='${pkghome}/sup'; fi
2575 if test -z "$webplaindir"; then
2576 webplaindir='${supdir}/webplain'; fi
2579 if test -z "$webscriptsdir"; then
2580 webscriptsdir='${supdir}/webscripts'; fi
2583 if test -z "$tmpldir"; then
2584 tmpldir='${pkghome}/templates'; fi
2587 if test -z "$distxmldir"; then
2588 distxmldir='${pkghome}/xmlconfig'; fi
2591 if test -z "$sitedir"; then
2592 sitedir='${sysconfdir}/torrus'; fi
2595 if test -z "$siteconfdir"; then
2596 siteconfdir='${sitedir}/conf'; fi
2599 if test -z "$tmpluserdir"; then
2600 tmpluserdir='${sitedir}/templates'; fi
2603 if test -z "$sitexmldir"; then
2604 sitexmldir='${sitedir}/xmlconfig'; fi
2607 if test -z "$logdir"; then
2608 logdir='/var/log/torrus'; fi
2611 if test -z "$piddir"; then
2612 piddir='/var/run/torrus'; fi
2615 if test -z "$varprefix"; then
2616 varprefix='/var/torrus'; fi
2619 if test -z "$cachedir"; then
2620 cachedir='${varprefix}/cache'; fi
2623 if test -z "$dbhome"; then
2624 dbhome='${varprefix}/db'; fi
2627 if test -z "$reportsdir"; then
2628 reportsdir='${varprefix}/reports'; fi
2631 if test -z "$seslockdir"; then
2632 seslockdir='${varprefix}/session_data/lock'; fi
2635 if test -z "$sesstordir"; then
2636 sesstordir='${varprefix}/session_data/store'; fi
2639 if test -z "$wrapperdir"; then
2640 wrapperdir='${bindir}'; fi
2643 if test -z "$mansec_usercmd"; then
2644 mansec_usercmd='1'; fi
2647 if test -z "$mansec_misc"; then
2651 if test -z "$defrrddir"; then
2652 defrrddir='/srv/torrus/collector_rrd'; fi
2655 ac_config_files="$ac_config_files Makefile bin/Makefile configs/Makefile"
2657 ac_config_files="$ac_config_files doc/Makefile doc/manpages/Makefile"
2659 ac_config_files="$ac_config_files examples/Makefile perllib/Makefile"
2661 ac_config_files="$ac_config_files sup/Makefile xmlconfig/Makefile"
2664 ac_config_files="$ac_config_files setup_tools/substvars.sh"
2666 ac_config_files="$ac_config_files setup_tools/mkvardir.sh"
2668 ac_config_files="$ac_config_files init.d/torrus"
2673 cat >confcache <<\_ACEOF
2674 # This file is a shell script that caches the results of configure
2675 # tests run on this system so they can be shared between configure
2676 # scripts and configure runs, see configure's option --config-cache.
2677 # It is not useful on other systems. If it contains results you don't
2678 # want to keep, you may remove or edit it.
2680 # config.status only pays attention to the cache file if you give it
2681 # the --recheck option to rerun configure.
2683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2689 # The following way of writing the cache mishandles newlines in values,
2690 # but we know of no workaround that is simple, portable, and efficient.
2691 # So, don't put newlines in cache variables' values.
2692 # Ultrix sh set writes to stderr and can't be redirected directly,
2693 # and sets the high bit in the cache file unless we assign to the vars.
2696 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2698 # `set' does not quote correctly, so add quotes (double-quote
2699 # substitution turns \\\\ into \\, and sed turns \\ into \).
2702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2705 # `set' quotes correctly as required by POSIX, so do not add quotes.
2707 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2716 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2718 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2719 if test -w $cache_file; then
2720 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2721 cat confcache >$cache_file
2723 echo "not updating unwritable cache $cache_file"
2728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2729 # Let make expand exec_prefix.
2730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2732 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2733 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2734 # trailing colons and then remove the whole line if VPATH becomes empty
2735 # (actually we leave an empty line to preserve line numbers).
2736 if test "x$srcdir" = x.; then
2737 ac_vpsub='/^[ ]*VPATH[ ]*=/{
2738 s/:*\$(srcdir):*/:/;
2739 s/:*\${srcdir}:*/:/;
2741 s/^\([^=]*=[ ]*\):*/\1/;
2747 # Transform confdefs.h into DEFS.
2748 # Protect against shell expansion while executing Makefile rules.
2749 # Protect against Makefile macro expansion.
2751 # If the first sed substitution is executed (which looks for macros that
2752 # take arguments), then we branch to the quote section. Otherwise,
2753 # look for a macro that doesn't take arguments.
2754 cat >confdef2opt.sed <<\_ACEOF
2757 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
2759 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
2763 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
2769 # We use echo to avoid assuming a particular line-breaking character.
2770 # The extra dot is to prevent the shell from consuming trailing
2771 # line-breaks from the sub-command output. A line-break within
2772 # single-quotes doesn't work because, if this script is created in a
2773 # platform that uses two characters for line-breaks (e.g., DOS), tr
2775 ac_LF_and_DOT=`echo; echo .`
2776 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2777 rm -f confdef2opt.sed
2782 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2783 # 1. Remove the extension, and $U if already installed.
2784 ac_i=`echo "$ac_i" |
2785 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2787 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2788 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2792 LTLIBOBJS=$ac_ltlibobjs
2795 if test -z "${POD2TEXT_PRESENT_TRUE}" && test -z "${POD2TEXT_PRESENT_FALSE}"; then
2796 { { echo "$as_me:$LINENO: error: conditional \"POD2TEXT_PRESENT\" was never defined.
2797 Usually this means the macro was only invoked conditionally." >&5
2798 echo "$as_me: error: conditional \"POD2TEXT_PRESENT\" was never defined.
2799 Usually this means the macro was only invoked conditionally." >&2;}
2800 { (exit 1); exit 1; }; }
2802 if test -z "${POD2MAN_PRESENT_TRUE}" && test -z "${POD2MAN_PRESENT_FALSE}"; then
2803 { { echo "$as_me:$LINENO: error: conditional \"POD2MAN_PRESENT\" was never defined.
2804 Usually this means the macro was only invoked conditionally." >&5
2805 echo "$as_me: error: conditional \"POD2MAN_PRESENT\" was never defined.
2806 Usually this means the macro was only invoked conditionally." >&2;}
2807 { (exit 1); exit 1; }; }
2810 : ${CONFIG_STATUS=./config.status}
2811 ac_clean_files_save=$ac_clean_files
2812 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2813 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2814 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2815 cat >$CONFIG_STATUS <<_ACEOF
2817 # Generated by $as_me.
2818 # Run this file to recreate the current configuration.
2819 # Compiler output produced by configure, useful for debugging
2820 # configure, is in config.log if it exists.
2825 SHELL=\${CONFIG_SHELL-$SHELL}
2828 cat >>$CONFIG_STATUS <<\_ACEOF
2829 ## --------------------- ##
2830 ## M4sh Initialization. ##
2831 ## --------------------- ##
2833 # Be Bourne compatible
2834 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2837 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2838 # is contrary to our usage. Disable this feature.
2839 alias -g '${1+"$@"}'='"$@"'
2840 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2843 DUALCASE=1; export DUALCASE # for MKS sh
2845 # Support unset when possible.
2846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2853 # Work around bugs in pre-3.0 UWIN ksh.
2854 $as_unset ENV MAIL MAILPATH
2861 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2862 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2863 LC_TELEPHONE LC_TIME
2865 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2866 eval $as_var=C; export $as_var
2872 # Required to use basename.
2873 if expr a : '\(a\)' >/dev/null 2>&1; then
2879 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2880 as_basename=basename
2886 # Name of the executable.
2887 as_me=`$as_basename "$0" ||
2888 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2889 X"$0" : 'X\(//\)$' \| \
2890 X"$0" : 'X\(/\)$' \| \
2891 . : '\(.\)' 2>/dev/null ||
2893 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2894 /^X\/\(\/\/\)$/{ s//\1/; q; }
2895 /^X\/\(\/\).*/{ s//\1/; q; }
2899 # PATH needs CR, and LINENO needs CR and PATH.
2900 # Avoid depending upon Character Ranges.
2901 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2902 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2903 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2904 as_cr_digits='0123456789'
2905 as_cr_alnum=$as_cr_Letters$as_cr_digits
2907 # The user is always right.
2908 if test "${PATH_SEPARATOR+set}" != set; then
2909 echo "#! /bin/sh" >conf$$.sh
2910 echo "exit 0" >>conf$$.sh
2912 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2923 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2924 test "x$as_lineno_1" != "x$as_lineno_2" &&
2925 test "x$as_lineno_3" = "x$as_lineno_2" || {
2926 # Find who we are. Look in the path if we contain no path at all
2929 *[\\/]* ) as_myself=$0 ;;
2930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir=.
2935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2940 # We did not find ourselves, most probably we were run as `sh COMMAND'
2941 # in which case we are not to be found in the path.
2942 if test "x$as_myself" = x; then
2945 if test ! -f "$as_myself"; then
2946 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2947 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2948 { (exit 1); exit 1; }; }
2950 case $CONFIG_SHELL in
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2956 test -z "$as_dir" && as_dir=.
2957 for as_base in sh bash ksh sh5; do
2960 if ("$as_dir/$as_base" -c '
2963 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2964 test "x$as_lineno_1" != "x$as_lineno_2" &&
2965 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
2966 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2967 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2968 CONFIG_SHELL=$as_dir/$as_base
2970 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2978 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2979 # uniformly replaced by the line number. The first 'sed' inserts a
2980 # line-number line before each line; the second 'sed' does the real
2981 # work. The second script uses 'N' to pair each line-number line
2982 # with the numbered line, and appends trailing '-' during
2983 # substitution so that $LINENO is not a special case at line end.
2984 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2985 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
2986 sed '=' <$as_myself |
2991 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2994 s,^['$as_cr_digits']*\n,,
2996 chmod +x $as_me.lineno ||
2997 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2998 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2999 { (exit 1); exit 1; }; }
3001 # Don't try to exec as it changes $[0], causing all sort of problems
3002 # (the dirname of $[0] is not the place where we might find the
3003 # original and so on. Autoconf is especially sensible to this).
3005 # Exit status is that of the last command.
3010 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3011 *c*,-n*) ECHO_N= ECHO_C='
3013 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3014 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3017 if expr a : '\(a\)' >/dev/null 2>&1; then
3023 rm -f conf$$ conf$$.exe conf$$.file
3025 if ln -s conf$$.file conf$$ 2>/dev/null; then
3026 # We could just check for DJGPP; but this test a) works b) is more generic
3027 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3028 if test -f conf$$.exe; then
3029 # Don't use ln at all; we don't have any links
3034 elif ln conf$$.file conf$$ 2>/dev/null; then
3039 rm -f conf$$ conf$$.exe conf$$.file
3041 if mkdir -p . 2>/dev/null; then
3044 test -d ./-p && rmdir ./-p
3048 as_executable_p="test -f"
3050 # Sed expression to map a string onto a valid CPP name.
3051 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3053 # Sed expression to map a string onto a valid variable name.
3054 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3058 # We need space, tab and new line, in precisely that order.
3068 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3069 # report actual input values of CONFIG_FILES etc. instead of their
3070 # values after options handling. Logging --version etc. is OK.
3074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3075 ## Running $as_me. ##
3080 This file was extended by torrus $as_me 1.0.9, which was
3081 generated by GNU Autoconf 2.59. Invocation command line was
3083 CONFIG_FILES = $CONFIG_FILES
3084 CONFIG_HEADERS = $CONFIG_HEADERS
3085 CONFIG_LINKS = $CONFIG_LINKS
3086 CONFIG_COMMANDS = $CONFIG_COMMANDS
3090 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3094 # Files that config.status was made for.
3095 if test -n "$ac_config_files"; then
3096 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3099 if test -n "$ac_config_headers"; then
3100 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3103 if test -n "$ac_config_links"; then
3104 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3107 if test -n "$ac_config_commands"; then
3108 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3111 cat >>$CONFIG_STATUS <<\_ACEOF
3114 \`$as_me' instantiates files from templates according to the
3115 current configuration.
3117 Usage: $0 [OPTIONS] [FILE]...
3119 -h, --help print this help, then exit
3120 -V, --version print version number, then exit
3121 -q, --quiet do not print progress messages
3122 -d, --debug don't remove temporary files
3123 --recheck update $as_me by reconfiguring in the same conditions
3124 --file=FILE[:TEMPLATE]
3125 instantiate the configuration file FILE
3127 Configuration files:
3130 Report bugs to <bug-autoconf@gnu.org>."
3133 cat >>$CONFIG_STATUS <<_ACEOF
3135 torrus config.status 1.0.9
3136 configured by $0, generated by GNU Autoconf 2.59,
3137 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3139 Copyright (C) 2003 Free Software Foundation, Inc.
3140 This config.status script is free software; the Free Software Foundation
3141 gives unlimited permission to copy, distribute and modify it."
3146 cat >>$CONFIG_STATUS <<\_ACEOF
3147 # If no file are specified by the user, then we need to provide default
3148 # value. By we need to know if files were specified by the user.
3154 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3155 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3163 *) # This is not an option, so the user has probably given explicit
3166 ac_need_defaults=false;;
3170 # Handling of the options.
3172 cat >>$CONFIG_STATUS <<\_ACEOF
3173 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3175 --version | --vers* | -V )
3176 echo "$ac_cs_version"; exit 0 ;;
3178 # Conflict between --help and --header
3179 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3180 Try \`$0 --help' for more information." >&5
3181 echo "$as_me: error: ambiguous option: $1
3182 Try \`$0 --help' for more information." >&2;}
3183 { (exit 1); exit 1; }; };;
3184 --help | --hel | -h )
3185 echo "$ac_cs_usage"; exit 0 ;;
3186 --debug | --d* | -d )
3188 --file | --fil | --fi | --f )
3190 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3191 ac_need_defaults=false;;
3192 --header | --heade | --head | --hea )
3194 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3195 ac_need_defaults=false;;
3196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3197 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3201 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3202 Try \`$0 --help' for more information." >&5
3203 echo "$as_me: error: unrecognized option: $1
3204 Try \`$0 --help' for more information." >&2;}
3205 { (exit 1); exit 1; }; } ;;
3207 *) ac_config_targets="$ac_config_targets $1" ;;
3213 ac_configure_extra_args=
3215 if $ac_cs_silent; then
3217 ac_configure_extra_args="$ac_configure_extra_args --silent"
3221 cat >>$CONFIG_STATUS <<_ACEOF
3222 if \$ac_cs_recheck; then
3223 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3224 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3233 cat >>$CONFIG_STATUS <<\_ACEOF
3234 for ac_config_target in $ac_config_targets
3236 case "$ac_config_target" in
3237 # Handling of arguments.
3238 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3239 "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
3240 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
3241 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
3242 "doc/manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/manpages/Makefile" ;;
3243 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
3244 "perllib/Makefile" ) CONFIG_FILES="$CONFIG_FILES perllib/Makefile" ;;
3245 "sup/Makefile" ) CONFIG_FILES="$CONFIG_FILES sup/Makefile" ;;
3246 "xmlconfig/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmlconfig/Makefile" ;;
3247 "setup_tools/substvars.sh" ) CONFIG_FILES="$CONFIG_FILES setup_tools/substvars.sh" ;;
3248 "setup_tools/mkvardir.sh" ) CONFIG_FILES="$CONFIG_FILES setup_tools/mkvardir.sh" ;;
3249 "init.d/torrus" ) CONFIG_FILES="$CONFIG_FILES init.d/torrus" ;;
3250 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3251 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3252 { (exit 1); exit 1; }; };;
3256 # If the user did not use the arguments to specify the items to instantiate,
3257 # then the envvar interface is used. Set only those that are not.
3258 # We use the long form for the default assignment because of an extremely
3259 # bizarre bug on SunOS 4.1.3.
3260 if $ac_need_defaults; then
3261 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3264 # Have a temporary directory for convenience. Make it in the build tree
3265 # simply because there is no reason to put it here, and in addition,
3266 # creating and moving files from /tmp can sometimes cause problems.
3267 # Create a temporary directory, and hook for its removal unless debugging.
3270 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3271 trap '{ (exit 1); exit 1; }' 1 2 13 15
3274 # Create a (secure) tmp directory for tmp files.
3277 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3278 test -n "$tmp" && test -d "$tmp"
3281 tmp=./confstat$$-$RANDOM
3282 (umask 077 && mkdir $tmp)
3285 echo "$me: cannot create a temporary directory in ." >&2
3286 { (exit 1); exit 1; }
3291 cat >>$CONFIG_STATUS <<_ACEOF
3294 # CONFIG_FILES section.
3297 # No need to generate the scripts if there are no CONFIG_FILES.
3298 # This happens for instance when ./config.status config.h
3299 if test -n "\$CONFIG_FILES"; then
3300 # Protect against being on the right side of a sed subst in config.status.
3301 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3302 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3303 s,@SHELL@,$SHELL,;t t
3304 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3305 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3306 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3307 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3308 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3309 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3310 s,@exec_prefix@,$exec_prefix,;t t
3311 s,@prefix@,$prefix,;t t
3312 s,@program_transform_name@,$program_transform_name,;t t
3313 s,@bindir@,$bindir,;t t
3314 s,@sbindir@,$sbindir,;t t
3315 s,@libexecdir@,$libexecdir,;t t
3316 s,@datadir@,$datadir,;t t
3317 s,@sysconfdir@,$sysconfdir,;t t
3318 s,@sharedstatedir@,$sharedstatedir,;t t
3319 s,@localstatedir@,$localstatedir,;t t
3320 s,@libdir@,$libdir,;t t
3321 s,@includedir@,$includedir,;t t
3322 s,@oldincludedir@,$oldincludedir,;t t
3323 s,@infodir@,$infodir,;t t
3324 s,@mandir@,$mandir,;t t
3325 s,@build_alias@,$build_alias,;t t
3326 s,@host_alias@,$host_alias,;t t
3327 s,@target_alias@,$target_alias,;t t
3329 s,@ECHO_C@,$ECHO_C,;t t
3330 s,@ECHO_N@,$ECHO_N,;t t
3331 s,@ECHO_T@,$ECHO_T,;t t
3333 s,@build@,$build,;t t
3334 s,@build_cpu@,$build_cpu,;t t
3335 s,@build_vendor@,$build_vendor,;t t
3336 s,@build_os@,$build_os,;t t
3338 s,@host_cpu@,$host_cpu,;t t
3339 s,@host_vendor@,$host_vendor,;t t
3340 s,@host_os@,$host_os,;t t
3341 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3342 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3343 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3344 s,@CYGPATH_W@,$CYGPATH_W,;t t
3345 s,@PACKAGE@,$PACKAGE,;t t
3346 s,@VERSION@,$VERSION,;t t
3347 s,@ACLOCAL@,$ACLOCAL,;t t
3348 s,@AUTOCONF@,$AUTOCONF,;t t
3349 s,@AUTOMAKE@,$AUTOMAKE,;t t
3350 s,@AUTOHEADER@,$AUTOHEADER,;t t
3351 s,@MAKEINFO@,$MAKEINFO,;t t
3352 s,@install_sh@,$install_sh,;t t
3353 s,@STRIP@,$STRIP,;t t
3354 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
3355 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
3356 s,@mkdir_p@,$mkdir_p,;t t
3358 s,@SET_MAKE@,$SET_MAKE,;t t
3359 s,@am__leading_dot@,$am__leading_dot,;t t
3360 s,@AMTAR@,$AMTAR,;t t
3361 s,@am__tar@,$am__tar,;t t
3362 s,@am__untar@,$am__untar,;t t
3369 s,@SLEEP@,$SLEEP,;t t
3370 s,@POD2TEXT@,$POD2TEXT,;t t
3371 s,@POD2TEXT_PRESENT_TRUE@,$POD2TEXT_PRESENT_TRUE,;t t
3372 s,@POD2TEXT_PRESENT_FALSE@,$POD2TEXT_PRESENT_FALSE,;t t
3373 s,@POD2MAN@,$POD2MAN,;t t
3374 s,@POD2MAN_PRESENT_TRUE@,$POD2MAN_PRESENT_TRUE,;t t
3375 s,@POD2MAN_PRESENT_FALSE@,$POD2MAN_PRESENT_FALSE,;t t
3376 s,@enable_pkgonly@,$enable_pkgonly,;t t
3377 s,@PERLINC@,$PERLINC,;t t
3378 s,@perllibdirs@,$perllibdirs,;t t
3379 s,@perlithreads@,$perlithreads,;t t
3380 s,@torrus_user@,$torrus_user,;t t
3381 s,@var_user@,$var_user,;t t
3382 s,@var_group@,$var_group,;t t
3383 s,@var_mode@,$var_mode,;t t
3384 s,@enable_varperm@,$enable_varperm,;t t
3385 s,@pkghome@,$pkghome,;t t
3386 s,@pkgbindir@,$pkgbindir,;t t
3387 s,@cfgdefdir@,$cfgdefdir,;t t
3388 s,@pkgdocdir@,$pkgdocdir,;t t
3389 s,@exmpdir@,$exmpdir,;t t
3390 s,@perllibdir@,$perllibdir,;t t
3391 s,@pluginsdir@,$pluginsdir,;t t
3392 s,@plugtorruscfgdir@,$plugtorruscfgdir,;t t
3393 s,@plugdevdisccfgdir@,$plugdevdisccfgdir,;t t
3394 s,@plugwrapperdir@,$plugwrapperdir,;t t
3395 s,@scriptsdir@,$scriptsdir,;t t
3396 s,@supdir@,$supdir,;t t
3397 s,@webplaindir@,$webplaindir,;t t
3398 s,@webscriptsdir@,$webscriptsdir,;t t
3399 s,@tmpldir@,$tmpldir,;t t
3400 s,@distxmldir@,$distxmldir,;t t
3401 s,@sitedir@,$sitedir,;t t
3402 s,@siteconfdir@,$siteconfdir,;t t
3403 s,@tmpluserdir@,$tmpluserdir,;t t
3404 s,@sitexmldir@,$sitexmldir,;t t
3405 s,@logdir@,$logdir,;t t
3406 s,@piddir@,$piddir,;t t
3407 s,@varprefix@,$varprefix,;t t
3408 s,@cachedir@,$cachedir,;t t
3409 s,@dbhome@,$dbhome,;t t
3410 s,@reportsdir@,$reportsdir,;t t
3411 s,@seslockdir@,$seslockdir,;t t
3412 s,@sesstordir@,$sesstordir,;t t
3413 s,@wrapperdir@,$wrapperdir,;t t
3414 s,@mansec_usercmd@,$mansec_usercmd,;t t
3415 s,@mansec_misc@,$mansec_misc,;t t
3416 s,@defrrddir@,$defrrddir,;t t
3417 s,@LIBOBJS@,$LIBOBJS,;t t
3418 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3423 cat >>$CONFIG_STATUS <<\_ACEOF
3424 # Split the substitutions into bite-sized pieces for seds with
3425 # small command number limits, like on Digital OSF/1 and HP-UX.
3427 ac_sed_frag=1 # Number of current file.
3428 ac_beg=1 # First line for current file.
3429 ac_end=$ac_max_sed_lines # Line after last line for current file.
3432 while $ac_more_lines; do
3433 if test $ac_beg -gt 1; then
3434 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3436 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3438 if test ! -s $tmp/subs.frag; then
3441 # The purpose of the label and of the branching condition is to
3442 # speed up the sed processing (if there are no `@' at all, there
3443 # is no need to browse any of the substitutions).
3444 # These are the two extra sed commands mentioned above.
3446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3447 if test -z "$ac_sed_cmds"; then
3448 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3450 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3452 ac_sed_frag=`expr $ac_sed_frag + 1`
3454 ac_end=`expr $ac_end + $ac_max_sed_lines`
3457 if test -z "$ac_sed_cmds"; then
3460 fi # test -n "$CONFIG_FILES"
3463 cat >>$CONFIG_STATUS <<\_ACEOF
3464 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3465 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3467 - | *:- | *:-:* ) # input from stdin
3469 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3470 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3471 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3472 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3473 * ) ac_file_in=$ac_file.in ;;
3476 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3477 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3479 X"$ac_file" : 'X\(//\)[^/]' \| \
3480 X"$ac_file" : 'X\(//\)$' \| \
3481 X"$ac_file" : 'X\(/\)' \| \
3482 . : '\(.\)' 2>/dev/null ||
3484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3486 /^X\(\/\/\)$/{ s//\1/; q; }
3487 /^X\(\/\).*/{ s//\1/; q; }
3489 { if $as_mkdir_p; then
3494 while test ! -d "$as_dir"; do
3495 as_dirs="$as_dir $as_dirs"
3496 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3498 X"$as_dir" : 'X\(//\)[^/]' \| \
3499 X"$as_dir" : 'X\(//\)$' \| \
3500 X"$as_dir" : 'X\(/\)' \| \
3501 . : '\(.\)' 2>/dev/null ||
3503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3505 /^X\(\/\/\)$/{ s//\1/; q; }
3506 /^X\(\/\).*/{ s//\1/; q; }
3509 test ! -n "$as_dirs" || mkdir $as_dirs
3510 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3511 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3512 { (exit 1); exit 1; }; }; }
3516 if test "$ac_dir" != .; then
3517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3518 # A "../" for each directory in $ac_dir_suffix.
3519 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3521 ac_dir_suffix= ac_top_builddir=
3525 .) # No --srcdir option. We are building in place.
3527 if test -z "$ac_top_builddir"; then
3530 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3532 [\\/]* | ?:[\\/]* ) # Absolute path.
3533 ac_srcdir=$srcdir$ac_dir_suffix;
3534 ac_top_srcdir=$srcdir ;;
3536 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3537 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3540 # Do not use `cd foo && pwd` to compute absolute paths, because
3541 # the directories may not exist.
3543 .) ac_abs_builddir="$ac_dir";;
3546 .) ac_abs_builddir=`pwd`;;
3547 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3548 *) ac_abs_builddir=`pwd`/"$ac_dir";;
3551 case $ac_abs_builddir in
3552 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3554 case ${ac_top_builddir}. in
3555 .) ac_abs_top_builddir=$ac_abs_builddir;;
3556 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3557 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3560 case $ac_abs_builddir in
3561 .) ac_abs_srcdir=$ac_srcdir;;
3564 .) ac_abs_srcdir=$ac_abs_builddir;;
3565 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3566 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3569 case $ac_abs_builddir in
3570 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3572 case $ac_top_srcdir in
3573 .) ac_abs_top_srcdir=$ac_abs_builddir;;
3574 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3575 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3581 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3582 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3585 if test x"$ac_file" != x-; then
3586 { echo "$as_me:$LINENO: creating $ac_file" >&5
3587 echo "$as_me: creating $ac_file" >&6;}
3590 # Let's still pretend it is `configure' which instantiates (i.e., don't
3591 # use $as_me), people would be surprised to read:
3592 # /* config.h. Generated by config.status. */
3593 if test x"$ac_file" = x-; then
3596 configure_input="$ac_file. "
3598 configure_input=$configure_input"Generated from `echo $ac_file_in |
3599 sed 's,.*/,,'` by configure."
3601 # First look for the input files in the build tree, otherwise in the
3603 ac_file_inputs=`IFS=:
3604 for f in $ac_file_in; do
3606 -) echo $tmp/stdin ;;
3608 # Absolute (can't be DOS-style, as IFS=:)
3609 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3610 echo "$as_me: error: cannot find input file: $f" >&2;}
3611 { (exit 1); exit 1; }; }
3614 if test -f "$f"; then
3617 elif test -f "$srcdir/$f"; then
3622 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3623 echo "$as_me: error: cannot find input file: $f" >&2;}
3624 { (exit 1); exit 1; }; }
3627 done` || { (exit 1); exit 1; }
3629 cat >>$CONFIG_STATUS <<_ACEOF
3633 cat >>$CONFIG_STATUS <<\_ACEOF
3635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3636 s,@configure_input@,$configure_input,;t t
3637 s,@srcdir@,$ac_srcdir,;t t
3638 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3639 s,@top_srcdir@,$ac_top_srcdir,;t t
3640 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3641 s,@builddir@,$ac_builddir,;t t
3642 s,@abs_builddir@,$ac_abs_builddir,;t t
3643 s,@top_builddir@,$ac_top_builddir,;t t
3644 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3645 s,@INSTALL@,$ac_INSTALL,;t t
3646 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3648 if test x"$ac_file" != x-; then
3649 mv $tmp/out $ac_file
3655 # Run the commands associated with the file.
3657 setup_tools/substvars.sh ) chmod +x setup_tools/substvars.sh ;;
3658 setup_tools/mkvardir.sh ) chmod +x setup_tools/mkvardir.sh ;;
3659 init.d/torrus ) chmod +x init.d/torrus ;;
3664 cat >>$CONFIG_STATUS <<\_ACEOF
3666 { (exit 0); exit 0; }
3668 chmod +x $CONFIG_STATUS
3669 ac_clean_files=$ac_clean_files_save
3672 # configure is writing to config.log, and then calls config.status.
3673 # config.status does its own redirection, appending to config.log.
3674 # Unfortunately, on DOS this fails, as config.log is still kept open
3675 # by configure, so config.status won't be able to write to it; its
3676 # output is simply discarded. So we exec the FD to /dev/null,
3677 # effectively closing config.log, so it can be properly (re)opened and
3678 # appended to by config.status. When coming back to configure, we
3679 # need to make the FD available again.
3680 if test "$no_create" != yes; then
3682 ac_config_status_args=
3683 test "$silent" = yes &&
3684 ac_config_status_args="$ac_config_status_args --quiet"
3686 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3688 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3689 # would make configure fail if this is the last instruction.
3690 $ac_cs_success || { (exit 1); exit 1; }
3694 VARSAVE=configs/instvars
3695 echo creating $VARSAVE
3697 for VAR in $ac_subst_vars; do
3699 DEFS | PACKAGE* | INSTALL* | VERSION | ACLOCAL | AUTO* | MAKEINFO |\
3700 install_sh | AM* | am* | ac* | ECHO* | build* | host* | target* |\
3701 CYG* | PATH_SEPARATOR | AWK | STRIP | mkdir* |\
3705 eval 'VAL=${'$VAR'}'
3706 echo ${VAR}=\'${VAL}\' >>$VARSAVE