This commit was generated by cvs2svn to compensate for changes in r6255,
[freeside.git] / rt / configure
1 #! /bin/sh
2 # From configure.ac Revision: 6876 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for RT 3.6.6.
5 #
6 # Report bugs to <rt-bugs@bestpractical.com>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete.  It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='RT'
272 PACKAGE_TARNAME='rt'
273 PACKAGE_VERSION='3.6.6'
274 PACKAGE_STRING='RT 3.6.6'
275 PACKAGE_BUGREPORT='rt-bugs@bestpractical.com'
276
277 ac_unique_file="lib/RT.pm.in"
278 ac_default_prefix=/opt/rt3
279 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 rt_version_major rt_version_minor rt_version_patch INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK PERL SPEEDY_BIN exp_prefix exp_exec_prefix exp_bindir exp_sbindir exp_sysconfdir exp_mandir exp_libdir exp_datadir htmldir exp_htmldir manualdir exp_manualdir exp_localstatedir logfiledir exp_logfiledir masonstatedir exp_masonstatedir sessionstatedir exp_sessionstatedir customdir exp_customdir custometcdir exp_custometcdir customhtmldir exp_customhtmldir customlexdir exp_customlexdir customlibdir exp_customlibdir rt_layout_name BIN_OWNER LIBS_OWNER LIBS_GROUP DB_TYPE DATABASE_ENV_PREF DB_HOST DB_PORT DB_RT_HOST DB_DBA DB_DATABASE DB_RT_USER DB_RT_PASS WEB_USER WEB_GROUP RTGROUP APACHECTL RT_STANDALONE RT_DEVEL_MODE RT_VERSION_MAJOR RT_VERSION_MINOR RT_VERSION_PATCH RT_PATH RT_DOC_PATH RT_LOCAL_PATH RT_LIB_PATH RT_ETC_PATH CONFIG_FILE_PATH RT_BIN_PATH RT_SBIN_PATH RT_VAR_PATH RT_MAN_PATH MASON_DATA_PATH MASON_SESSION_PATH MASON_HTML_PATH LOCAL_ETC_PATH MASON_LOCAL_HTML_PATH LOCAL_LEXICON_PATH LOCAL_LIB_PATH DESTDIR RT_LOG_PATH LIBOBJS LTLIBOBJS'
280 ac_subst_files=''
281
282 # Initialize some variables set by options.
283 ac_init_help=
284 ac_init_version=false
285 # The variables have the same names as the options, with
286 # dashes changed to underlines.
287 cache_file=/dev/null
288 exec_prefix=NONE
289 no_create=
290 no_recursion=
291 prefix=NONE
292 program_prefix=NONE
293 program_suffix=NONE
294 program_transform_name=s,x,x,
295 silent=
296 site=
297 srcdir=
298 verbose=
299 x_includes=NONE
300 x_libraries=NONE
301
302 # Installation directory options.
303 # These are left unexpanded so users can "make install exec_prefix=/foo"
304 # and all the variables that are supposed to be based on exec_prefix
305 # by default will actually change.
306 # Use braces instead of parens because sh, perl, etc. also accept them.
307 bindir='${exec_prefix}/bin'
308 sbindir='${exec_prefix}/sbin'
309 libexecdir='${exec_prefix}/libexec'
310 datadir='${prefix}/share'
311 sysconfdir='${prefix}/etc'
312 sharedstatedir='${prefix}/com'
313 localstatedir='${prefix}/var'
314 libdir='${exec_prefix}/lib'
315 includedir='${prefix}/include'
316 oldincludedir='/usr/include'
317 infodir='${prefix}/info'
318 mandir='${prefix}/man'
319
320 ac_prev=
321 for ac_option
322 do
323   # If the previous option needs an argument, assign it.
324   if test -n "$ac_prev"; then
325     eval "$ac_prev=\$ac_option"
326     ac_prev=
327     continue
328   fi
329
330   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
331
332   # Accept the important Cygnus configure options, so we can diagnose typos.
333
334   case $ac_option in
335
336   -bindir | --bindir | --bindi | --bind | --bin | --bi)
337     ac_prev=bindir ;;
338   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
339     bindir=$ac_optarg ;;
340
341   -build | --build | --buil | --bui | --bu)
342     ac_prev=build_alias ;;
343   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
344     build_alias=$ac_optarg ;;
345
346   -cache-file | --cache-file | --cache-fil | --cache-fi \
347   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
348     ac_prev=cache_file ;;
349   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
350   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
351     cache_file=$ac_optarg ;;
352
353   --config-cache | -C)
354     cache_file=config.cache ;;
355
356   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
357     ac_prev=datadir ;;
358   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
359   | --da=*)
360     datadir=$ac_optarg ;;
361
362   -disable-* | --disable-*)
363     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
364     # Reject names that are not valid shell variable names.
365     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
366       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
367    { (exit 1); exit 1; }; }
368     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
369     eval "enable_$ac_feature=no" ;;
370
371   -enable-* | --enable-*)
372     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
373     # Reject names that are not valid shell variable names.
374     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
375       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
376    { (exit 1); exit 1; }; }
377     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
378     case $ac_option in
379       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
380       *) ac_optarg=yes ;;
381     esac
382     eval "enable_$ac_feature='$ac_optarg'" ;;
383
384   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
385   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
386   | --exec | --exe | --ex)
387     ac_prev=exec_prefix ;;
388   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
389   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
390   | --exec=* | --exe=* | --ex=*)
391     exec_prefix=$ac_optarg ;;
392
393   -gas | --gas | --ga | --g)
394     # Obsolete; use --with-gas.
395     with_gas=yes ;;
396
397   -help | --help | --hel | --he | -h)
398     ac_init_help=long ;;
399   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
400     ac_init_help=recursive ;;
401   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
402     ac_init_help=short ;;
403
404   -host | --host | --hos | --ho)
405     ac_prev=host_alias ;;
406   -host=* | --host=* | --hos=* | --ho=*)
407     host_alias=$ac_optarg ;;
408
409   -includedir | --includedir | --includedi | --included | --include \
410   | --includ | --inclu | --incl | --inc)
411     ac_prev=includedir ;;
412   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
413   | --includ=* | --inclu=* | --incl=* | --inc=*)
414     includedir=$ac_optarg ;;
415
416   -infodir | --infodir | --infodi | --infod | --info | --inf)
417     ac_prev=infodir ;;
418   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
419     infodir=$ac_optarg ;;
420
421   -libdir | --libdir | --libdi | --libd)
422     ac_prev=libdir ;;
423   -libdir=* | --libdir=* | --libdi=* | --libd=*)
424     libdir=$ac_optarg ;;
425
426   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
427   | --libexe | --libex | --libe)
428     ac_prev=libexecdir ;;
429   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
430   | --libexe=* | --libex=* | --libe=*)
431     libexecdir=$ac_optarg ;;
432
433   -localstatedir | --localstatedir | --localstatedi | --localstated \
434   | --localstate | --localstat | --localsta | --localst \
435   | --locals | --local | --loca | --loc | --lo)
436     ac_prev=localstatedir ;;
437   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
438   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
439   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
440     localstatedir=$ac_optarg ;;
441
442   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
443     ac_prev=mandir ;;
444   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
445     mandir=$ac_optarg ;;
446
447   -nfp | --nfp | --nf)
448     # Obsolete; use --without-fp.
449     with_fp=no ;;
450
451   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452   | --no-cr | --no-c | -n)
453     no_create=yes ;;
454
455   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
457     no_recursion=yes ;;
458
459   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
460   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
461   | --oldin | --oldi | --old | --ol | --o)
462     ac_prev=oldincludedir ;;
463   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
464   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
465   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
466     oldincludedir=$ac_optarg ;;
467
468   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
469     ac_prev=prefix ;;
470   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
471     prefix=$ac_optarg ;;
472
473   -program-prefix | --program-prefix | --program-prefi | --program-pref \
474   | --program-pre | --program-pr | --program-p)
475     ac_prev=program_prefix ;;
476   -program-prefix=* | --program-prefix=* | --program-prefi=* \
477   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
478     program_prefix=$ac_optarg ;;
479
480   -program-suffix | --program-suffix | --program-suffi | --program-suff \
481   | --program-suf | --program-su | --program-s)
482     ac_prev=program_suffix ;;
483   -program-suffix=* | --program-suffix=* | --program-suffi=* \
484   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
485     program_suffix=$ac_optarg ;;
486
487   -program-transform-name | --program-transform-name \
488   | --program-transform-nam | --program-transform-na \
489   | --program-transform-n | --program-transform- \
490   | --program-transform | --program-transfor \
491   | --program-transfo | --program-transf \
492   | --program-trans | --program-tran \
493   | --progr-tra | --program-tr | --program-t)
494     ac_prev=program_transform_name ;;
495   -program-transform-name=* | --program-transform-name=* \
496   | --program-transform-nam=* | --program-transform-na=* \
497   | --program-transform-n=* | --program-transform-=* \
498   | --program-transform=* | --program-transfor=* \
499   | --program-transfo=* | --program-transf=* \
500   | --program-trans=* | --program-tran=* \
501   | --progr-tra=* | --program-tr=* | --program-t=*)
502     program_transform_name=$ac_optarg ;;
503
504   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
505   | -silent | --silent | --silen | --sile | --sil)
506     silent=yes ;;
507
508   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
509     ac_prev=sbindir ;;
510   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
511   | --sbi=* | --sb=*)
512     sbindir=$ac_optarg ;;
513
514   -sharedstatedir | --sharedstatedir | --sharedstatedi \
515   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
516   | --sharedst | --shareds | --shared | --share | --shar \
517   | --sha | --sh)
518     ac_prev=sharedstatedir ;;
519   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
520   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
521   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
522   | --sha=* | --sh=*)
523     sharedstatedir=$ac_optarg ;;
524
525   -site | --site | --sit)
526     ac_prev=site ;;
527   -site=* | --site=* | --sit=*)
528     site=$ac_optarg ;;
529
530   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
531     ac_prev=srcdir ;;
532   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
533     srcdir=$ac_optarg ;;
534
535   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
536   | --syscon | --sysco | --sysc | --sys | --sy)
537     ac_prev=sysconfdir ;;
538   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
539   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
540     sysconfdir=$ac_optarg ;;
541
542   -target | --target | --targe | --targ | --tar | --ta | --t)
543     ac_prev=target_alias ;;
544   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
545     target_alias=$ac_optarg ;;
546
547   -v | -verbose | --verbose | --verbos | --verbo | --verb)
548     verbose=yes ;;
549
550   -version | --version | --versio | --versi | --vers | -V)
551     ac_init_version=: ;;
552
553   -with-* | --with-*)
554     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid package name: $ac_package" >&2
558    { (exit 1); exit 1; }; }
559     ac_package=`echo $ac_package| sed 's/-/_/g'`
560     case $ac_option in
561       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "with_$ac_package='$ac_optarg'" ;;
565
566   -without-* | --without-*)
567     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
568     # Reject names that are not valid shell variable names.
569     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
570       { echo "$as_me: error: invalid package name: $ac_package" >&2
571    { (exit 1); exit 1; }; }
572     ac_package=`echo $ac_package | sed 's/-/_/g'`
573     eval "with_$ac_package=no" ;;
574
575   --x)
576     # Obsolete; use --with-x.
577     with_x=yes ;;
578
579   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
580   | --x-incl | --x-inc | --x-in | --x-i)
581     ac_prev=x_includes ;;
582   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
583   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
584     x_includes=$ac_optarg ;;
585
586   -x-libraries | --x-libraries | --x-librarie | --x-librari \
587   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
588     ac_prev=x_libraries ;;
589   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
590   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
591     x_libraries=$ac_optarg ;;
592
593   -*) { echo "$as_me: error: unrecognized option: $ac_option
594 Try \`$0 --help' for more information." >&2
595    { (exit 1); exit 1; }; }
596     ;;
597
598   *=*)
599     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
603    { (exit 1); exit 1; }; }
604     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
605     eval "$ac_envvar='$ac_optarg'"
606     export $ac_envvar ;;
607
608   *)
609     # FIXME: should be removed in autoconf 3.0.
610     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
611     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
612       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
613     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
614     ;;
615
616   esac
617 done
618
619 if test -n "$ac_prev"; then
620   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
621   { echo "$as_me: error: missing argument to $ac_option" >&2
622    { (exit 1); exit 1; }; }
623 fi
624
625 # Be sure to have absolute paths.
626 for ac_var in exec_prefix prefix
627 do
628   eval ac_val=$`echo $ac_var`
629   case $ac_val in
630     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
631     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
632    { (exit 1); exit 1; }; };;
633   esac
634 done
635
636 # Be sure to have absolute paths.
637 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
638               localstatedir libdir includedir oldincludedir infodir mandir
639 do
640   eval ac_val=$`echo $ac_var`
641   case $ac_val in
642     [\\/$]* | ?:[\\/]* ) ;;
643     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
644    { (exit 1); exit 1; }; };;
645   esac
646 done
647
648 # There might be people who depend on the old broken behavior: `$host'
649 # used to hold the argument of --host etc.
650 # FIXME: To remove some day.
651 build=$build_alias
652 host=$host_alias
653 target=$target_alias
654
655 # FIXME: To remove some day.
656 if test "x$host_alias" != x; then
657   if test "x$build_alias" = x; then
658     cross_compiling=maybe
659     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
660     If a cross compiler is detected then cross compile mode will be used." >&2
661   elif test "x$build_alias" != "x$host_alias"; then
662     cross_compiling=yes
663   fi
664 fi
665
666 ac_tool_prefix=
667 test -n "$host_alias" && ac_tool_prefix=$host_alias-
668
669 test "$silent" = yes && exec 6>/dev/null
670
671
672 # Find the source files, if location was not specified.
673 if test -z "$srcdir"; then
674   ac_srcdir_defaulted=yes
675   # Try the directory containing this script, then its parent.
676   ac_confdir=`(dirname "$0") 2>/dev/null ||
677 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
678          X"$0" : 'X\(//\)[^/]' \| \
679          X"$0" : 'X\(//\)$' \| \
680          X"$0" : 'X\(/\)' \| \
681          .     : '\(.\)' 2>/dev/null ||
682 echo X"$0" |
683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
684           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
685           /^X\(\/\/\)$/{ s//\1/; q; }
686           /^X\(\/\).*/{ s//\1/; q; }
687           s/.*/./; q'`
688   srcdir=$ac_confdir
689   if test ! -r $srcdir/$ac_unique_file; then
690     srcdir=..
691   fi
692 else
693   ac_srcdir_defaulted=no
694 fi
695 if test ! -r $srcdir/$ac_unique_file; then
696   if test "$ac_srcdir_defaulted" = yes; then
697     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
698    { (exit 1); exit 1; }; }
699   else
700     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
701    { (exit 1); exit 1; }; }
702   fi
703 fi
704 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
705   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
706    { (exit 1); exit 1; }; }
707 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
708 ac_env_build_alias_set=${build_alias+set}
709 ac_env_build_alias_value=$build_alias
710 ac_cv_env_build_alias_set=${build_alias+set}
711 ac_cv_env_build_alias_value=$build_alias
712 ac_env_host_alias_set=${host_alias+set}
713 ac_env_host_alias_value=$host_alias
714 ac_cv_env_host_alias_set=${host_alias+set}
715 ac_cv_env_host_alias_value=$host_alias
716 ac_env_target_alias_set=${target_alias+set}
717 ac_env_target_alias_value=$target_alias
718 ac_cv_env_target_alias_set=${target_alias+set}
719 ac_cv_env_target_alias_value=$target_alias
720 ac_env_PERL_set=${PERL+set}
721 ac_env_PERL_value=$PERL
722 ac_cv_env_PERL_set=${PERL+set}
723 ac_cv_env_PERL_value=$PERL
724
725 #
726 # Report the --help message.
727 #
728 if test "$ac_init_help" = "long"; then
729   # Omit some internal or obsolete options to make the list less imposing.
730   # This message is too long to be a string in the A/UX 3.1 sh.
731   cat <<_ACEOF
732 \`configure' configures RT 3.6.6 to adapt to many kinds of systems.
733
734 Usage: $0 [OPTION]... [VAR=VALUE]...
735
736 To assign environment variables (e.g., CC, CFLAGS...), specify them as
737 VAR=VALUE.  See below for descriptions of some of the useful variables.
738
739 Defaults for the options are specified in brackets.
740
741 Configuration:
742   -h, --help              display this help and exit
743       --help=short        display options specific to this package
744       --help=recursive    display the short help of all the included packages
745   -V, --version           display version information and exit
746   -q, --quiet, --silent   do not print \`checking...' messages
747       --cache-file=FILE   cache test results in FILE [disabled]
748   -C, --config-cache      alias for \`--cache-file=config.cache'
749   -n, --no-create         do not create output files
750       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
751
752 _ACEOF
753
754   cat <<_ACEOF
755 Installation directories:
756   --prefix=PREFIX         install architecture-independent files in PREFIX
757                           [$ac_default_prefix]
758   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
759                           [PREFIX]
760
761 By default, \`make install' will install all the files in
762 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
763 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
764 for instance \`--prefix=\$HOME'.
765
766 For better control, use the options below.
767
768 Fine tuning of the installation directories:
769   --bindir=DIR           user executables [EPREFIX/bin]
770   --sbindir=DIR          system admin executables [EPREFIX/sbin]
771   --libexecdir=DIR       program executables [EPREFIX/libexec]
772   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
773   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
774   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
775   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
776   --libdir=DIR           object code libraries [EPREFIX/lib]
777   --includedir=DIR       C header files [PREFIX/include]
778   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
779   --infodir=DIR          info documentation [PREFIX/info]
780   --mandir=DIR           man documentation [PREFIX/man]
781 _ACEOF
782
783   cat <<\_ACEOF
784 _ACEOF
785 fi
786
787 if test -n "$ac_init_help"; then
788   case $ac_init_help in
789      short | recursive ) echo "Configuration of RT 3.6.6:";;
790    esac
791   cat <<\_ACEOF
792
793 Optional Features:
794   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
795   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
796   --enable-layout=LAYOUT  Use a specific directory layout (Default: RT3)
797
798 Optional Packages:
799   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
800   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
801   --with-speedycgi=/path/to/speedy
802                           path to your speedycgi binary, if it exists
803   --with-bin-owner=OWNER  user that will own RT binaries (default root)
804   --with-libs-owner=OWNER user that will own RT libraries (default root)
805   --with-libs-group=GROUP group that will own RT binaries (default bin)
806   --with-db-type=TYPE     sort of database RT will use (default: mysql)
807                           (mysql, Pg, Oracle, Informix and SQLite are valid)
808   --with-db-host=HOSTNAME FQDN of database server (default: localhost)
809   --with-db-port=PORT     port on which the database listens on
810   --with-db-rt-host=HOSTNAME
811                           FQDN of RT server which talks to the database server
812                           (default: localhost)
813   --with-db-dba=DBA       name of database administrator (default: root)
814   --with-db-database=DBNAME
815                           name of the database to use (default: rt3)
816   --with-db-rt-user=DBUSER
817                           name of database user (default: rt_user)
818   --with-db-rt-pass=PASSWORD
819                           password for database user (default: rt_pass)
820   --with-web-user=USER    user the web server runs as (default: www)
821   --with-web-group=GROUP  group the web server runs as (default: www)
822   --with-rt-group=GROUP   group to own all files (default: rt)
823   --with-my-user-group    set all users and groups to current user/group
824   --with-apachectl        instruct RT where to find your apachectl
825   --with-standalone       Install modules for pure perl standalone server
826   --with-devel-mode       Turn on development aids that might hurt you in
827                           production
828
829 Some influential environment variables:
830   PERL        Perl interpreter command
831
832 Use these variables to override the choices made by `configure' or to help
833 it to find libraries and programs with nonstandard names/locations.
834
835 Report bugs to <rt-bugs@bestpractical.com>.
836 _ACEOF
837 fi
838
839 if test "$ac_init_help" = "recursive"; then
840   # If there are subdirs, report their specific --help.
841   ac_popdir=`pwd`
842   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
843     test -d $ac_dir || continue
844     ac_builddir=.
845
846 if test "$ac_dir" != .; then
847   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
848   # A "../" for each directory in $ac_dir_suffix.
849   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
850 else
851   ac_dir_suffix= ac_top_builddir=
852 fi
853
854 case $srcdir in
855   .)  # No --srcdir option.  We are building in place.
856     ac_srcdir=.
857     if test -z "$ac_top_builddir"; then
858        ac_top_srcdir=.
859     else
860        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
861     fi ;;
862   [\\/]* | ?:[\\/]* )  # Absolute path.
863     ac_srcdir=$srcdir$ac_dir_suffix;
864     ac_top_srcdir=$srcdir ;;
865   *) # Relative path.
866     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
867     ac_top_srcdir=$ac_top_builddir$srcdir ;;
868 esac
869
870 # Do not use `cd foo && pwd` to compute absolute paths, because
871 # the directories may not exist.
872 case `pwd` in
873 .) ac_abs_builddir="$ac_dir";;
874 *)
875   case "$ac_dir" in
876   .) ac_abs_builddir=`pwd`;;
877   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
878   *) ac_abs_builddir=`pwd`/"$ac_dir";;
879   esac;;
880 esac
881 case $ac_abs_builddir in
882 .) ac_abs_top_builddir=${ac_top_builddir}.;;
883 *)
884   case ${ac_top_builddir}. in
885   .) ac_abs_top_builddir=$ac_abs_builddir;;
886   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
887   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
888   esac;;
889 esac
890 case $ac_abs_builddir in
891 .) ac_abs_srcdir=$ac_srcdir;;
892 *)
893   case $ac_srcdir in
894   .) ac_abs_srcdir=$ac_abs_builddir;;
895   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
896   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
897   esac;;
898 esac
899 case $ac_abs_builddir in
900 .) ac_abs_top_srcdir=$ac_top_srcdir;;
901 *)
902   case $ac_top_srcdir in
903   .) ac_abs_top_srcdir=$ac_abs_builddir;;
904   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
905   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
906   esac;;
907 esac
908
909     cd $ac_dir
910     # Check for guested configure; otherwise get Cygnus style configure.
911     if test -f $ac_srcdir/configure.gnu; then
912       echo
913       $SHELL $ac_srcdir/configure.gnu  --help=recursive
914     elif test -f $ac_srcdir/configure; then
915       echo
916       $SHELL $ac_srcdir/configure  --help=recursive
917     elif test -f $ac_srcdir/configure.ac ||
918            test -f $ac_srcdir/configure.in; then
919       echo
920       $ac_configure --help
921     else
922       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
923     fi
924     cd "$ac_popdir"
925   done
926 fi
927
928 test -n "$ac_init_help" && exit 0
929 if $ac_init_version; then
930   cat <<\_ACEOF
931 RT configure 3.6.6
932 generated by GNU Autoconf 2.59
933
934 Copyright (C) 2003 Free Software Foundation, Inc.
935 This configure script is free software; the Free Software Foundation
936 gives unlimited permission to copy, distribute and modify it.
937 _ACEOF
938   exit 0
939 fi
940 exec 5>config.log
941 cat >&5 <<_ACEOF
942 This file contains any messages produced by compilers while
943 running configure, to aid debugging if configure makes a mistake.
944
945 It was created by RT $as_me 3.6.6, which was
946 generated by GNU Autoconf 2.59.  Invocation command line was
947
948   $ $0 $@
949
950 _ACEOF
951 {
952 cat <<_ASUNAME
953 ## --------- ##
954 ## Platform. ##
955 ## --------- ##
956
957 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
958 uname -m = `(uname -m) 2>/dev/null || echo unknown`
959 uname -r = `(uname -r) 2>/dev/null || echo unknown`
960 uname -s = `(uname -s) 2>/dev/null || echo unknown`
961 uname -v = `(uname -v) 2>/dev/null || echo unknown`
962
963 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
964 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
965
966 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
967 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
968 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
969 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
970 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
971 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
972 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
973
974 _ASUNAME
975
976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
977 for as_dir in $PATH
978 do
979   IFS=$as_save_IFS
980   test -z "$as_dir" && as_dir=.
981   echo "PATH: $as_dir"
982 done
983
984 } >&5
985
986 cat >&5 <<_ACEOF
987
988
989 ## ----------- ##
990 ## Core tests. ##
991 ## ----------- ##
992
993 _ACEOF
994
995
996 # Keep a trace of the command line.
997 # Strip out --no-create and --no-recursion so they do not pile up.
998 # Strip out --silent because we don't want to record it for future runs.
999 # Also quote any args containing shell meta-characters.
1000 # Make two passes to allow for proper duplicate-argument suppression.
1001 ac_configure_args=
1002 ac_configure_args0=
1003 ac_configure_args1=
1004 ac_sep=
1005 ac_must_keep_next=false
1006 for ac_pass in 1 2
1007 do
1008   for ac_arg
1009   do
1010     case $ac_arg in
1011     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1012     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013     | -silent | --silent | --silen | --sile | --sil)
1014       continue ;;
1015     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1016       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1017     esac
1018     case $ac_pass in
1019     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1020     2)
1021       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1022       if test $ac_must_keep_next = true; then
1023         ac_must_keep_next=false # Got value, back to normal.
1024       else
1025         case $ac_arg in
1026           *=* | --config-cache | -C | -disable-* | --disable-* \
1027           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1028           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1029           | -with-* | --with-* | -without-* | --without-* | --x)
1030             case "$ac_configure_args0 " in
1031               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1032             esac
1033             ;;
1034           -* ) ac_must_keep_next=true ;;
1035         esac
1036       fi
1037       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1038       # Get rid of the leading space.
1039       ac_sep=" "
1040       ;;
1041     esac
1042   done
1043 done
1044 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1045 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1046
1047 # When interrupted or exit'd, cleanup temporary files, and complete
1048 # config.log.  We remove comments because anyway the quotes in there
1049 # would cause problems or look ugly.
1050 # WARNING: Be sure not to use single quotes in there, as some shells,
1051 # such as our DU 5.0 friend, will then `close' the trap.
1052 trap 'exit_status=$?
1053   # Save into config.log some information that might help in debugging.
1054   {
1055     echo
1056
1057     cat <<\_ASBOX
1058 ## ---------------- ##
1059 ## Cache variables. ##
1060 ## ---------------- ##
1061 _ASBOX
1062     echo
1063     # The following way of writing the cache mishandles newlines in values,
1064 {
1065   (set) 2>&1 |
1066     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1067     *ac_space=\ *)
1068       sed -n \
1069         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1070           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071       ;;
1072     *)
1073       sed -n \
1074         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075       ;;
1076     esac;
1077 }
1078     echo
1079
1080     cat <<\_ASBOX
1081 ## ----------------- ##
1082 ## Output variables. ##
1083 ## ----------------- ##
1084 _ASBOX
1085     echo
1086     for ac_var in $ac_subst_vars
1087     do
1088       eval ac_val=$`echo $ac_var`
1089       echo "$ac_var='"'"'$ac_val'"'"'"
1090     done | sort
1091     echo
1092
1093     if test -n "$ac_subst_files"; then
1094       cat <<\_ASBOX
1095 ## ------------- ##
1096 ## Output files. ##
1097 ## ------------- ##
1098 _ASBOX
1099       echo
1100       for ac_var in $ac_subst_files
1101       do
1102         eval ac_val=$`echo $ac_var`
1103         echo "$ac_var='"'"'$ac_val'"'"'"
1104       done | sort
1105       echo
1106     fi
1107
1108     if test -s confdefs.h; then
1109       cat <<\_ASBOX
1110 ## ----------- ##
1111 ## confdefs.h. ##
1112 ## ----------- ##
1113 _ASBOX
1114       echo
1115       sed "/^$/d" confdefs.h | sort
1116       echo
1117     fi
1118     test "$ac_signal" != 0 &&
1119       echo "$as_me: caught signal $ac_signal"
1120     echo "$as_me: exit $exit_status"
1121   } >&5
1122   rm -f core *.core &&
1123   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1124     exit $exit_status
1125      ' 0
1126 for ac_signal in 1 2 13 15; do
1127   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1128 done
1129 ac_signal=0
1130
1131 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1132 rm -rf conftest* confdefs.h
1133 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1134 echo >confdefs.h
1135
1136 # Predefined preprocessor variables.
1137
1138 cat >>confdefs.h <<_ACEOF
1139 #define PACKAGE_NAME "$PACKAGE_NAME"
1140 _ACEOF
1141
1142
1143 cat >>confdefs.h <<_ACEOF
1144 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1145 _ACEOF
1146
1147
1148 cat >>confdefs.h <<_ACEOF
1149 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1150 _ACEOF
1151
1152
1153 cat >>confdefs.h <<_ACEOF
1154 #define PACKAGE_STRING "$PACKAGE_STRING"
1155 _ACEOF
1156
1157
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1160 _ACEOF
1161
1162
1163 # Let the site file select an alternate cache file if it wants to.
1164 # Prefer explicitly selected file to automatically selected ones.
1165 if test -z "$CONFIG_SITE"; then
1166   if test "x$prefix" != xNONE; then
1167     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1168   else
1169     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1170   fi
1171 fi
1172 for ac_site_file in $CONFIG_SITE; do
1173   if test -r "$ac_site_file"; then
1174     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1175 echo "$as_me: loading site script $ac_site_file" >&6;}
1176     sed 's/^/| /' "$ac_site_file" >&5
1177     . "$ac_site_file"
1178   fi
1179 done
1180
1181 if test -r "$cache_file"; then
1182   # Some versions of bash will fail to source /dev/null (special
1183   # files actually), so we avoid doing that.
1184   if test -f "$cache_file"; then
1185     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1186 echo "$as_me: loading cache $cache_file" >&6;}
1187     case $cache_file in
1188       [\\/]* | ?:[\\/]* ) . $cache_file;;
1189       *)                      . ./$cache_file;;
1190     esac
1191   fi
1192 else
1193   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1194 echo "$as_me: creating cache $cache_file" >&6;}
1195   >$cache_file
1196 fi
1197
1198 # Check that the precious variables saved in the cache have kept the same
1199 # value.
1200 ac_cache_corrupted=false
1201 for ac_var in `(set) 2>&1 |
1202                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1203   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1204   eval ac_new_set=\$ac_env_${ac_var}_set
1205   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1206   eval ac_new_val="\$ac_env_${ac_var}_value"
1207   case $ac_old_set,$ac_new_set in
1208     set,)
1209       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1210 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1211       ac_cache_corrupted=: ;;
1212     ,set)
1213       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1215       ac_cache_corrupted=: ;;
1216     ,);;
1217     *)
1218       if test "x$ac_old_val" != "x$ac_new_val"; then
1219         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1220 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1221         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1222 echo "$as_me:   former value:  $ac_old_val" >&2;}
1223         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1224 echo "$as_me:   current value: $ac_new_val" >&2;}
1225         ac_cache_corrupted=:
1226       fi;;
1227   esac
1228   # Pass precious variables to config.status.
1229   if test "$ac_new_set" = set; then
1230     case $ac_new_val in
1231     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1233     *) ac_arg=$ac_var=$ac_new_val ;;
1234     esac
1235     case " $ac_configure_args " in
1236       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1237       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1238     esac
1239   fi
1240 done
1241 if $ac_cache_corrupted; then
1242   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1243 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1244   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1245 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1246    { (exit 1); exit 1; }; }
1247 fi
1248
1249 ac_ext=c
1250 ac_cpp='$CPP $CPPFLAGS'
1251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283 rt_version_major=3
1284
1285 rt_version_minor=6
1286
1287 rt_version_patch=6
1288
1289 test "x$rt_version_major" = 'x' && rt_version_major=0
1290 test "x$rt_version_minor" = 'x' && rt_version_minor=0
1291 test "x$rt_version_patch" = 'x' && rt_version_patch=0
1292
1293 ac_aux_dir=
1294 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1295   if test -f $ac_dir/install-sh; then
1296     ac_aux_dir=$ac_dir
1297     ac_install_sh="$ac_aux_dir/install-sh -c"
1298     break
1299   elif test -f $ac_dir/install.sh; then
1300     ac_aux_dir=$ac_dir
1301     ac_install_sh="$ac_aux_dir/install.sh -c"
1302     break
1303   elif test -f $ac_dir/shtool; then
1304     ac_aux_dir=$ac_dir
1305     ac_install_sh="$ac_aux_dir/shtool install -c"
1306     break
1307   fi
1308 done
1309 if test -z "$ac_aux_dir"; then
1310   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1311 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1312    { (exit 1); exit 1; }; }
1313 fi
1314 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1315 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1316 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1317
1318 # Find a good install program.  We prefer a C program (faster),
1319 # so one script is as good as another.  But avoid the broken or
1320 # incompatible versions:
1321 # SysV /etc/install, /usr/sbin/install
1322 # SunOS /usr/etc/install
1323 # IRIX /sbin/install
1324 # AIX /bin/install
1325 # AmigaOS /C/install, which installs bootblocks on floppy discs
1326 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1327 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1328 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1329 # OS/2's system install, which has a completely different semantic
1330 # ./install, which can be erroneously created by make from ./install.sh.
1331 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1332 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1333 if test -z "$INSTALL"; then
1334 if test "${ac_cv_path_install+set}" = set; then
1335   echo $ECHO_N "(cached) $ECHO_C" >&6
1336 else
1337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1338 for as_dir in $PATH
1339 do
1340   IFS=$as_save_IFS
1341   test -z "$as_dir" && as_dir=.
1342   # Account for people who put trailing slashes in PATH elements.
1343 case $as_dir/ in
1344   ./ | .// | /cC/* | \
1345   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1346   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1347   /usr/ucb/* ) ;;
1348   *)
1349     # OSF1 and SCO ODT 3.0 have their own names for install.
1350     # Don't use installbsd from OSF since it installs stuff as root
1351     # by default.
1352     for ac_prog in ginstall scoinst install; do
1353       for ac_exec_ext in '' $ac_executable_extensions; do
1354         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1355           if test $ac_prog = install &&
1356             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1357             # AIX install.  It has an incompatible calling convention.
1358             :
1359           elif test $ac_prog = install &&
1360             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1361             # program-specific install script used by HP pwplus--don't use.
1362             :
1363           else
1364             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1365             break 3
1366           fi
1367         fi
1368       done
1369     done
1370     ;;
1371 esac
1372 done
1373
1374
1375 fi
1376   if test "${ac_cv_path_install+set}" = set; then
1377     INSTALL=$ac_cv_path_install
1378   else
1379     # As a last resort, use the slow shell script.  We don't cache a
1380     # path for INSTALL within a source directory, because that will
1381     # break other packages using the cache if that directory is
1382     # removed, or if the path is relative.
1383     INSTALL=$ac_install_sh
1384   fi
1385 fi
1386 echo "$as_me:$LINENO: result: $INSTALL" >&5
1387 echo "${ECHO_T}$INSTALL" >&6
1388
1389 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1390 # It thinks the first close brace ends the variable substitution.
1391 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1392
1393 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1394
1395 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1396
1397 for ac_prog in gawk mawk nawk awk
1398 do
1399   # Extract the first word of "$ac_prog", so it can be a program name with args.
1400 set dummy $ac_prog; ac_word=$2
1401 echo "$as_me:$LINENO: checking for $ac_word" >&5
1402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1403 if test "${ac_cv_prog_AWK+set}" = set; then
1404   echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406   if test -n "$AWK"; then
1407   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1408 else
1409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410 for as_dir in $PATH
1411 do
1412   IFS=$as_save_IFS
1413   test -z "$as_dir" && as_dir=.
1414   for ac_exec_ext in '' $ac_executable_extensions; do
1415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1416     ac_cv_prog_AWK="$ac_prog"
1417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1418     break 2
1419   fi
1420 done
1421 done
1422
1423 fi
1424 fi
1425 AWK=$ac_cv_prog_AWK
1426 if test -n "$AWK"; then
1427   echo "$as_me:$LINENO: result: $AWK" >&5
1428 echo "${ECHO_T}$AWK" >&6
1429 else
1430   echo "$as_me:$LINENO: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1432 fi
1433
1434   test -n "$AWK" && break
1435 done
1436
1437
1438 # Extract the first word of "perl", so it can be a program name with args.
1439 set dummy perl; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_path_PERL+set}" = set; then
1443   echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445   case $PERL in
1446   [\\/]* | ?:[\\/]*)
1447   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1448   ;;
1449   *)
1450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1452 do
1453   IFS=$as_save_IFS
1454   test -z "$as_dir" && as_dir=.
1455   for ac_exec_ext in '' $ac_executable_extensions; do
1456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
1458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459     break 2
1460   fi
1461 done
1462 done
1463
1464   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="not found"
1465   ;;
1466 esac
1467 fi
1468 PERL=$ac_cv_path_PERL
1469
1470 if test -n "$PERL"; then
1471   echo "$as_me:$LINENO: result: $PERL" >&5
1472 echo "${ECHO_T}$PERL" >&6
1473 else
1474   echo "$as_me:$LINENO: result: no" >&5
1475 echo "${ECHO_T}no" >&6
1476 fi
1477
1478 if test "$PERL" = 'not found'; then
1479         { { echo "$as_me:$LINENO: error: cannot use $PACKAGE_NAME without perl" >&5
1480 echo "$as_me: error: cannot use $PACKAGE_NAME without perl" >&2;}
1481    { (exit 1); exit 1; }; }
1482 fi
1483
1484
1485
1486 # Check whether --with-speedycgi or --without-speedycgi was given.
1487 if test "${with_speedycgi+set}" = set; then
1488   withval="$with_speedycgi"
1489   SPEEDY_BIN=$withval
1490 else
1491   SPEEDY_BIN=/usr/local/bin/speedy
1492 fi;
1493
1494
1495
1496
1497
1498 # Check whether --enable-layout or --disable-layout was given.
1499 if test "${enable_layout+set}" = set; then
1500   enableval="$enable_layout"
1501   LAYOUT=$enableval
1502 fi;
1503
1504 if test "x$LAYOUT" = "x"; then
1505         LAYOUT="RT3"
1506 fi
1507
1508         if test ! -f $srcdir/config.layout; then
1509                 { echo "$as_me:$LINENO: WARNING: Layout file $srcdir/config.layout not found" >&5
1510 echo "$as_me: WARNING: Layout file $srcdir/config.layout not found" >&2;}
1511                 rt_layout_name=no
1512         else
1513                 pldconf=./config.pld
1514                 $PERL  -0777 -p -e "\$layout = '$LAYOUT';"  -e '
1515                 s/.*<Layout\s+$layout>//gims;
1516                 s/\<\/Layout\>.*//s;
1517                 s/^#.*$//m;
1518                 s/^\s+//gim;
1519                 s/\s+$/\n/gim;
1520                 s/\+$/\/rt3/gim;
1521                 # m4 will not let us just use $srcdir/config.layout, we need $1
1522                 s/^\s*((?:bin|sbin|libexec|data|sysconf|sharedstate|localstate|lib|include|oldinclude|info|man|html)dir)\s*:\s*(.*)$/$1=$2/gim;
1523                 s/^\s*(.*?)\s*:\s*(.*)$/\(test "x\$$1" = "xNONE" || test "x\$$1" = "x") && $1=$2/gim;
1524                  ' < $srcdir/config.layout > $pldconf
1525
1526                 if test -s $pldconf; then
1527                         rt_layout_name=$LAYOUT
1528                         . $pldconf
1529
1530                         for var in prefix exec_prefix bindir sbindir \
1531                                  sysconfdir mandir libdir datadir htmldir \
1532                                  localstatedir logfiledir masonstatedir \
1533                                  sessionstatedir customdir custometcdir customhtmldir \
1534                                  customlexdir customlibdir manualdir; do
1535                                 eval "val=\"\$$var\""
1536                                 val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
1537                                 val=`echo $val |
1538                                         sed -e 's:[\$]\([a-z_]*\):$\1:g'`
1539                                 eval "$var='$val'"
1540                         done
1541
1542                 else
1543                         rt_layout_name=no
1544                 fi
1545                 #rm $pldconf
1546         fi
1547
1548
1549         ap_last=''
1550         ap_cur='$prefix'
1551         while test "x${ap_cur}" != "x${ap_last}"; do
1552                 ap_last="${ap_cur}"
1553                 ap_cur=`eval "echo ${ap_cur}"`
1554         done
1555         exp_prefix="${ap_cur}"
1556
1557
1558
1559
1560
1561
1562         ap_last=''
1563         ap_cur='$exec_prefix'
1564         while test "x${ap_cur}" != "x${ap_last}"; do
1565                 ap_last="${ap_cur}"
1566                 ap_cur=`eval "echo ${ap_cur}"`
1567         done
1568         exp_exec_prefix="${ap_cur}"
1569
1570
1571
1572
1573
1574
1575         ap_last=''
1576         ap_cur='$bindir'
1577         while test "x${ap_cur}" != "x${ap_last}"; do
1578                 ap_last="${ap_cur}"
1579                 ap_cur=`eval "echo ${ap_cur}"`
1580         done
1581         exp_bindir="${ap_cur}"
1582
1583
1584
1585
1586
1587
1588         ap_last=''
1589         ap_cur='$sbindir'
1590         while test "x${ap_cur}" != "x${ap_last}"; do
1591                 ap_last="${ap_cur}"
1592                 ap_cur=`eval "echo ${ap_cur}"`
1593         done
1594         exp_sbindir="${ap_cur}"
1595
1596
1597
1598
1599
1600
1601         ap_last=''
1602         ap_cur='$sysconfdir'
1603         while test "x${ap_cur}" != "x${ap_last}"; do
1604                 ap_last="${ap_cur}"
1605                 ap_cur=`eval "echo ${ap_cur}"`
1606         done
1607         exp_sysconfdir="${ap_cur}"
1608
1609
1610
1611
1612
1613
1614         ap_last=''
1615         ap_cur='$mandir'
1616         while test "x${ap_cur}" != "x${ap_last}"; do
1617                 ap_last="${ap_cur}"
1618                 ap_cur=`eval "echo ${ap_cur}"`
1619         done
1620         exp_mandir="${ap_cur}"
1621
1622
1623
1624
1625
1626
1627         ap_last=''
1628         ap_cur='$libdir'
1629         while test "x${ap_cur}" != "x${ap_last}"; do
1630                 ap_last="${ap_cur}"
1631                 ap_cur=`eval "echo ${ap_cur}"`
1632         done
1633         exp_libdir="${ap_cur}"
1634
1635
1636
1637
1638
1639
1640         ap_last=''
1641         ap_cur='$datadir'
1642         while test "x${ap_cur}" != "x${ap_last}"; do
1643                 ap_last="${ap_cur}"
1644                 ap_cur=`eval "echo ${ap_cur}"`
1645         done
1646         exp_datadir="${ap_cur}"
1647
1648
1649
1650
1651
1652
1653         ap_last=''
1654         ap_cur='$htmldir'
1655         while test "x${ap_cur}" != "x${ap_last}"; do
1656                 ap_last="${ap_cur}"
1657                 ap_cur=`eval "echo ${ap_cur}"`
1658         done
1659         exp_htmldir="${ap_cur}"
1660
1661
1662
1663
1664
1665
1666         ap_last=''
1667         ap_cur='$manualdir'
1668         while test "x${ap_cur}" != "x${ap_last}"; do
1669                 ap_last="${ap_cur}"
1670                 ap_cur=`eval "echo ${ap_cur}"`
1671         done
1672         exp_manualdir="${ap_cur}"
1673
1674
1675
1676
1677
1678
1679         ap_last=''
1680         ap_cur='$localstatedir'
1681         while test "x${ap_cur}" != "x${ap_last}"; do
1682                 ap_last="${ap_cur}"
1683                 ap_cur=`eval "echo ${ap_cur}"`
1684         done
1685         exp_localstatedir="${ap_cur}"
1686
1687
1688
1689
1690
1691
1692         ap_last=''
1693         ap_cur='$logfiledir'
1694         while test "x${ap_cur}" != "x${ap_last}"; do
1695                 ap_last="${ap_cur}"
1696                 ap_cur=`eval "echo ${ap_cur}"`
1697         done
1698         exp_logfiledir="${ap_cur}"
1699
1700
1701
1702
1703
1704
1705         ap_last=''
1706         ap_cur='$masonstatedir'
1707         while test "x${ap_cur}" != "x${ap_last}"; do
1708                 ap_last="${ap_cur}"
1709                 ap_cur=`eval "echo ${ap_cur}"`
1710         done
1711         exp_masonstatedir="${ap_cur}"
1712
1713
1714
1715
1716
1717
1718         ap_last=''
1719         ap_cur='$sessionstatedir'
1720         while test "x${ap_cur}" != "x${ap_last}"; do
1721                 ap_last="${ap_cur}"
1722                 ap_cur=`eval "echo ${ap_cur}"`
1723         done
1724         exp_sessionstatedir="${ap_cur}"
1725
1726
1727
1728
1729
1730
1731         ap_last=''
1732         ap_cur='$customdir'
1733         while test "x${ap_cur}" != "x${ap_last}"; do
1734                 ap_last="${ap_cur}"
1735                 ap_cur=`eval "echo ${ap_cur}"`
1736         done
1737         exp_customdir="${ap_cur}"
1738
1739
1740
1741
1742
1743
1744         ap_last=''
1745         ap_cur='$custometcdir'
1746         while test "x${ap_cur}" != "x${ap_last}"; do
1747                 ap_last="${ap_cur}"
1748                 ap_cur=`eval "echo ${ap_cur}"`
1749         done
1750         exp_custometcdir="${ap_cur}"
1751
1752
1753
1754
1755
1756
1757         ap_last=''
1758         ap_cur='$customhtmldir'
1759         while test "x${ap_cur}" != "x${ap_last}"; do
1760                 ap_last="${ap_cur}"
1761                 ap_cur=`eval "echo ${ap_cur}"`
1762         done
1763         exp_customhtmldir="${ap_cur}"
1764
1765
1766
1767
1768
1769
1770         ap_last=''
1771         ap_cur='$customlexdir'
1772         while test "x${ap_cur}" != "x${ap_last}"; do
1773                 ap_last="${ap_cur}"
1774                 ap_cur=`eval "echo ${ap_cur}"`
1775         done
1776         exp_customlexdir="${ap_cur}"
1777
1778
1779
1780
1781
1782
1783         ap_last=''
1784         ap_cur='$customlibdir'
1785         while test "x${ap_cur}" != "x${ap_last}"; do
1786                 ap_last="${ap_cur}"
1787                 ap_cur=`eval "echo ${ap_cur}"`
1788         done
1789         exp_customlibdir="${ap_cur}"
1790
1791
1792
1793
1794
1795 echo "$as_me:$LINENO: checking for chosen layout" >&5
1796 echo $ECHO_N "checking for chosen layout... $ECHO_C" >&6
1797 if test "x$rt_layout_name" = "xno"; then
1798         if test "x$LAYOUT" = "xno"; then
1799                 echo "$as_me:$LINENO: result: none" >&5
1800 echo "${ECHO_T}none" >&6
1801         else
1802                 echo "$as_me:$LINENO: result: $LAYOUT" >&5
1803 echo "${ECHO_T}$LAYOUT" >&6
1804         fi
1805         { { echo "$as_me:$LINENO: error: a valid layout must be specified (or the default used)" >&5
1806 echo "$as_me: error: a valid layout must be specified (or the default used)" >&2;}
1807    { (exit 1); exit 1; }; }
1808 else
1809
1810         echo "$as_me:$LINENO: result: $rt_layout_name" >&5
1811 echo "${ECHO_T}$rt_layout_name" >&6
1812 fi
1813
1814
1815
1816 # ACRT_USER_EXISTS( users, variable, default )
1817 # - users is a list of users [www apache www-docs]
1818 #    from highest to lowest priority to high priority (i.e. first match)
1819 # - variable is what you set with the result
1820 #
1821
1822
1823
1824
1825
1826 # Check whether --with-bin-owner or --without-bin-owner was given.
1827 if test "${with_bin_owner+set}" = set; then
1828   withval="$with_bin_owner"
1829   BIN_OWNER=$withval
1830 else
1831   BIN_OWNER=root
1832 fi;
1833
1834
1835
1836 # Check whether --with-libs-owner or --without-libs-owner was given.
1837 if test "${with_libs_owner+set}" = set; then
1838   withval="$with_libs_owner"
1839   LIBS_OWNER=$withval
1840 else
1841   LIBS_OWNER=root
1842 fi;
1843
1844
1845
1846 # Check whether --with-libs-group or --without-libs-group was given.
1847 if test "${with_libs_group+set}" = set; then
1848   withval="$with_libs_group"
1849   LIBS_GROUP=$withval
1850 else
1851   LIBS_GROUP=bin
1852 fi;
1853
1854
1855
1856 # Check whether --with-db-type or --without-db-type was given.
1857 if test "${with_db_type+set}" = set; then
1858   withval="$with_db_type"
1859   DB_TYPE=$withval
1860 else
1861   DB_TYPE=mysql
1862 fi;
1863 if test "$DB_TYPE" != 'mysql' -a "$DB_TYPE" != 'Pg' -a "$DB_TYPE" != 'SQLite' -a "$DB_TYPE" != 'Oracle' -a "$DB_TYPE" != 'Informix' -a "$DB_TYPE" != 'Sybase' ; then
1864         { { echo "$as_me:$LINENO: error: Only Oracle, Informix, Pg, mysql and SQLite are valid db types" >&5
1865 echo "$as_me: error: Only Oracle, Informix, Pg, mysql and SQLite are valid db types" >&2;}
1866    { (exit 1); exit 1; }; }
1867 fi
1868
1869
1870 if test "$DB_TYPE" = 'Oracle'; then
1871         test "x$ORACLE_HOME" = 'x' && { { echo "$as_me:$LINENO: error: Please declare the ORACLE_HOME environment variable" >&5
1872 echo "$as_me: error: Please declare the ORACLE_HOME environment variable" >&2;}
1873    { (exit 1); exit 1; }; }
1874         DATABASE_ENV_PREF="\$ENV{'ORACLE_HOME'} = '$ORACLE_HOME';"
1875 fi
1876
1877 if test "$DB_TYPE" = 'Sybase'; then
1878         test "x$SYBASE" = 'x' && { { echo "$as_me:$LINENO: error: Please declare the SYBASE_HOME environment variable" >&5
1879 echo "$as_me: error: Please declare the SYBASE_HOME environment variable" >&2;}
1880    { (exit 1); exit 1; }; }
1881         DATABASE_ENV_PREF="\$ENV{'SYBASE'} = '$SYBASE';"
1882 fi
1883
1884
1885
1886 # Check whether --with-db-host or --without-db-host was given.
1887 if test "${with_db_host+set}" = set; then
1888   withval="$with_db_host"
1889   DB_HOST=$withval
1890 else
1891   DB_HOST=localhost
1892 fi;
1893
1894
1895
1896 # Check whether --with-db-port or --without-db-port was given.
1897 if test "${with_db_port+set}" = set; then
1898   withval="$with_db_port"
1899   DB_PORT=$withval
1900 else
1901   DB_PORT=
1902 fi;
1903
1904
1905
1906 # Check whether --with-db-rt-host or --without-db-rt-host was given.
1907 if test "${with_db_rt_host+set}" = set; then
1908   withval="$with_db_rt_host"
1909   DB_RT_HOST=$withval
1910 else
1911   DB_RT_HOST=localhost
1912 fi;
1913
1914
1915
1916 # Check whether --with-db-dba or --without-db-dba was given.
1917 if test "${with_db_dba+set}" = set; then
1918   withval="$with_db_dba"
1919   DB_DBA=$withval
1920 else
1921   DB_DBA=root
1922 fi;
1923
1924
1925
1926 # Check whether --with-db-database or --without-db-database was given.
1927 if test "${with_db_database+set}" = set; then
1928   withval="$with_db_database"
1929   DB_DATABASE=$withval
1930 else
1931   DB_DATABASE=rt3
1932 fi;
1933
1934
1935
1936 # Check whether --with-db-rt-user or --without-db-rt-user was given.
1937 if test "${with_db_rt_user+set}" = set; then
1938   withval="$with_db_rt_user"
1939   DB_RT_USER=$withval
1940 else
1941   DB_RT_USER=rt_user
1942 fi;
1943
1944
1945
1946 # Check whether --with-db-rt-pass or --without-db-rt-pass was given.
1947 if test "${with_db_rt_pass+set}" = set; then
1948   withval="$with_db_rt_pass"
1949   DB_RT_PASS=$withval
1950 else
1951   DB_RT_PASS=rt_pass
1952 fi;
1953
1954
1955
1956 # Check whether --with-web-user or --without-web-user was given.
1957 if test "${with_web_user+set}" = set; then
1958   withval="$with_web_user"
1959   WEB_USER=$withval
1960 else
1961
1962    WEB_USER=www
1963    for x in www www-data apache httpd nobody; do
1964     echo "$as_me:$LINENO: checking if user $x exists" >&5
1965 echo $ECHO_N "checking if user $x exists... $ECHO_C" >&6
1966      if  $PERL -e"exit( defined getpwnam('$x') ? 0 : 1)" ; then
1967    echo "$as_me:$LINENO: result: found" >&5
1968 echo "${ECHO_T}found" >&6; WEB_USER=$x ; break
1969 else
1970    echo "$as_me:$LINENO: result: not found" >&5
1971 echo "${ECHO_T}not found" >&6
1972 fi
1973
1974    done
1975
1976
1977 fi;
1978
1979
1980
1981 # Check whether --with-web-group or --without-web-group was given.
1982 if test "${with_web_group+set}" = set; then
1983   withval="$with_web_group"
1984   WEB_GROUP=$withval
1985 else
1986
1987    WEB_GROUP=www
1988    for x in www www-data apache httpd nogroup nobody; do
1989     echo "$as_me:$LINENO: checking if group $x exists" >&5
1990 echo $ECHO_N "checking if group $x exists... $ECHO_C" >&6
1991      if  $PERL -e"exit( defined getgrnam('$x') ? 0 : 1)" ; then
1992    echo "$as_me:$LINENO: result: found" >&5
1993 echo "${ECHO_T}found" >&6; WEB_GROUP=$x ; break
1994 else
1995    echo "$as_me:$LINENO: result: not found" >&5
1996 echo "${ECHO_T}not found" >&6
1997 fi
1998
1999    done
2000
2001 fi;
2002
2003
2004
2005 # Check whether --with-rt-group or --without-rt-group was given.
2006 if test "${with_rt_group+set}" = set; then
2007   withval="$with_rt_group"
2008   RTGROUP=$withval
2009 else
2010
2011    RTGROUP=rt
2012    for x in rt3 rt $WEB_GROUP; do
2013     echo "$as_me:$LINENO: checking if group $x exists" >&5
2014 echo $ECHO_N "checking if group $x exists... $ECHO_C" >&6
2015      if  $PERL -e"exit( defined getgrnam('$x') ? 0 : 1)" ; then
2016    echo "$as_me:$LINENO: result: found" >&5
2017 echo "${ECHO_T}found" >&6; RTGROUP=$x ; break
2018 else
2019    echo "$as_me:$LINENO: result: not found" >&5
2020 echo "${ECHO_T}not found" >&6
2021 fi
2022
2023    done
2024
2025 fi;
2026
2027
2028 # XXX TODO: The command below to figure out the group brokenly relies on
2029 # output order (and "id -gn" doesn't work on all platforms).
2030 my_group=$(groups|cut -f1 -d' ')
2031 my_user=${USER:-$LOGNAME}
2032
2033 # Check whether --with-my-user-group or --without-my-user-group was given.
2034 if test "${with_my_user_group+set}" = set; then
2035   withval="$with_my_user_group"
2036   RTGROUP=$my_group
2037             BIN_OWNER=$my_user
2038             LIBS_OWNER=$my_user
2039             LIBS_GROUP=$my_group
2040             WEB_USER=$my_user
2041             WEB_GROUP=$my_group
2042 fi;
2043
2044 # Test for valid database names
2045 if  test "$DB_TYPE" == "mysql" ; then
2046    echo "$as_me:$LINENO: checking if database name is valid" >&5
2047 echo $ECHO_N "checking if database name is valid... $ECHO_C" >&6
2048           if  echo $DB_DATABASE | $AWK '/-/ { exit 1 }' ; then
2049    echo "$as_me:$LINENO: result: yes" >&5
2050 echo "${ECHO_T}yes" >&6
2051 else
2052    { { echo "$as_me:$LINENO: error: no.  database name ($DB_DATABASE) contains '-' which is not valid for mysql" >&5
2053 echo "$as_me: error: no.  database name ($DB_DATABASE) contains '-' which is not valid for mysql" >&2;}
2054    { (exit 1); exit 1; }; }
2055
2056 fi
2057
2058
2059
2060 fi
2061
2062
2063
2064
2065 # Check whether --with-apachectl or --without-apachectl was given.
2066 if test "${with_apachectl+set}" = set; then
2067   withval="$with_apachectl"
2068   APACHECTL=$withval
2069 else
2070   APACHECTL=`which apachectl`
2071 fi;
2072
2073
2074
2075 # Check whether --with-devel-mode or --without-devel-mode was given.
2076 if test "${with_devel_mode+set}" = set; then
2077   withval="$with_devel_mode"
2078   RT_STANDALONE="1"
2079 else
2080   RT_STANDALONE="0"
2081 fi;
2082
2083
2084
2085 # Check whether --with-devel-mode or --without-devel-mode was given.
2086 if test "${with_devel_mode+set}" = set; then
2087   withval="$with_devel_mode"
2088   RT_DEVEL_MODE="1"
2089 else
2090   RT_DEVEL_MODE="0"
2091 fi;
2092
2093
2094 RT_VERSION_MAJOR=${rt_version_major}
2095
2096 RT_VERSION_MINOR=${rt_version_minor}
2097
2098 RT_VERSION_PATCH=${rt_version_patch}
2099
2100
2101 RT_PATH=${exp_prefix}
2102
2103 RT_DOC_PATH=${exp_manualdir}
2104
2105 RT_LOCAL_PATH=${exp_customdir}
2106
2107 RT_LIB_PATH=${exp_libdir}
2108
2109 RT_ETC_PATH=${exp_sysconfdir}
2110
2111 CONFIG_FILE_PATH=${exp_sysconfdir}
2112
2113 RT_BIN_PATH=${exp_bindir}
2114
2115 RT_SBIN_PATH=${exp_sbindir}
2116
2117 RT_VAR_PATH=${exp_localstatedir}
2118
2119 RT_MAN_PATH=${exp_mandir}
2120
2121 MASON_DATA_PATH=${exp_masonstatedir}
2122
2123 MASON_SESSION_PATH=${exp_sessionstatedir}
2124
2125 MASON_HTML_PATH=${exp_htmldir}
2126
2127 LOCAL_ETC_PATH=${exp_custometcdir}
2128
2129 MASON_LOCAL_HTML_PATH=${exp_customhtmldir}
2130
2131 LOCAL_LEXICON_PATH=${exp_customlexdir}
2132
2133 LOCAL_LIB_PATH=${exp_customlibdir}
2134
2135 DESTDIR=${exp_prefix}
2136
2137 RT_LOG_PATH=${exp_logfiledir}
2138
2139
2140
2141                                                                                           ac_config_files="$ac_config_files sbin/rt-dump-database sbin/rt-setup-database sbin/rt-test-dependencies bin/mason_handler.fcgi bin/mason_handler.scgi bin/standalone_httpd bin/rt-crontool bin/rt-mailgate bin/rt"
2142
2143
2144                                                   ac_config_files="$ac_config_files Makefile etc/RT_Config.pm lib/RT.pm bin/mason_handler.svc bin/webmux.pl"
2145
2146 cat >confcache <<\_ACEOF
2147 # This file is a shell script that caches the results of configure
2148 # tests run on this system so they can be shared between configure
2149 # scripts and configure runs, see configure's option --config-cache.
2150 # It is not useful on other systems.  If it contains results you don't
2151 # want to keep, you may remove or edit it.
2152 #
2153 # config.status only pays attention to the cache file if you give it
2154 # the --recheck option to rerun configure.
2155 #
2156 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2157 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2158 # following values.
2159
2160 _ACEOF
2161
2162 # The following way of writing the cache mishandles newlines in values,
2163 # but we know of no workaround that is simple, portable, and efficient.
2164 # So, don't put newlines in cache variables' values.
2165 # Ultrix sh set writes to stderr and can't be redirected directly,
2166 # and sets the high bit in the cache file unless we assign to the vars.
2167 {
2168   (set) 2>&1 |
2169     case `(ac_space=' '; set | grep ac_space) 2>&1` in
2170     *ac_space=\ *)
2171       # `set' does not quote correctly, so add quotes (double-quote
2172       # substitution turns \\\\ into \\, and sed turns \\ into \).
2173       sed -n \
2174         "s/'/'\\\\''/g;
2175           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2176       ;;
2177     *)
2178       # `set' quotes correctly as required by POSIX, so do not add quotes.
2179       sed -n \
2180         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2181       ;;
2182     esac;
2183 } |
2184   sed '
2185      t clear
2186      : clear
2187      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2188      t end
2189      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2190      : end' >>confcache
2191 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2192   if test -w $cache_file; then
2193     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2194     cat confcache >$cache_file
2195   else
2196     echo "not updating unwritable cache $cache_file"
2197   fi
2198 fi
2199 rm -f confcache
2200
2201 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2202 # Let make expand exec_prefix.
2203 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2204
2205 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2206 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2207 # trailing colons and then remove the whole line if VPATH becomes empty
2208 # (actually we leave an empty line to preserve line numbers).
2209 if test "x$srcdir" = x.; then
2210   ac_vpsub='/^[  ]*VPATH[        ]*=/{
2211 s/:*\$(srcdir):*/:/;
2212 s/:*\${srcdir}:*/:/;
2213 s/:*@srcdir@:*/:/;
2214 s/^\([^=]*=[     ]*\):*/\1/;
2215 s/:*$//;
2216 s/^[^=]*=[       ]*$//;
2217 }'
2218 fi
2219
2220 # Transform confdefs.h into DEFS.
2221 # Protect against shell expansion while executing Makefile rules.
2222 # Protect against Makefile macro expansion.
2223 #
2224 # If the first sed substitution is executed (which looks for macros that
2225 # take arguments), then we branch to the quote section.  Otherwise,
2226 # look for a macro that doesn't take arguments.
2227 cat >confdef2opt.sed <<\_ACEOF
2228 t clear
2229 : clear
2230 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
2231 t quote
2232 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
2233 t quote
2234 d
2235 : quote
2236 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
2237 s,\[,\\&,g
2238 s,\],\\&,g
2239 s,\$,$$,g
2240 p
2241 _ACEOF
2242 # We use echo to avoid assuming a particular line-breaking character.
2243 # The extra dot is to prevent the shell from consuming trailing
2244 # line-breaks from the sub-command output.  A line-break within
2245 # single-quotes doesn't work because, if this script is created in a
2246 # platform that uses two characters for line-breaks (e.g., DOS), tr
2247 # would break.
2248 ac_LF_and_DOT=`echo; echo .`
2249 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2250 rm -f confdef2opt.sed
2251
2252
2253 ac_libobjs=
2254 ac_ltlibobjs=
2255 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2256   # 1. Remove the extension, and $U if already installed.
2257   ac_i=`echo "$ac_i" |
2258          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2259   # 2. Add them.
2260   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2261   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2262 done
2263 LIBOBJS=$ac_libobjs
2264
2265 LTLIBOBJS=$ac_ltlibobjs
2266
2267
2268
2269 : ${CONFIG_STATUS=./config.status}
2270 ac_clean_files_save=$ac_clean_files
2271 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2272 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2273 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2274 cat >$CONFIG_STATUS <<_ACEOF
2275 #! $SHELL
2276 # Generated by $as_me.
2277 # Run this file to recreate the current configuration.
2278 # Compiler output produced by configure, useful for debugging
2279 # configure, is in config.log if it exists.
2280
2281 debug=false
2282 ac_cs_recheck=false
2283 ac_cs_silent=false
2284 SHELL=\${CONFIG_SHELL-$SHELL}
2285 _ACEOF
2286
2287 cat >>$CONFIG_STATUS <<\_ACEOF
2288 ## --------------------- ##
2289 ## M4sh Initialization.  ##
2290 ## --------------------- ##
2291
2292 # Be Bourne compatible
2293 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2294   emulate sh
2295   NULLCMD=:
2296   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2297   # is contrary to our usage.  Disable this feature.
2298   alias -g '${1+"$@"}'='"$@"'
2299 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2300   set -o posix
2301 fi
2302 DUALCASE=1; export DUALCASE # for MKS sh
2303
2304 # Support unset when possible.
2305 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2306   as_unset=unset
2307 else
2308   as_unset=false
2309 fi
2310
2311
2312 # Work around bugs in pre-3.0 UWIN ksh.
2313 $as_unset ENV MAIL MAILPATH
2314 PS1='$ '
2315 PS2='> '
2316 PS4='+ '
2317
2318 # NLS nuisances.
2319 for as_var in \
2320   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2321   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2322   LC_TELEPHONE LC_TIME
2323 do
2324   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2325     eval $as_var=C; export $as_var
2326   else
2327     $as_unset $as_var
2328   fi
2329 done
2330
2331 # Required to use basename.
2332 if expr a : '\(a\)' >/dev/null 2>&1; then
2333   as_expr=expr
2334 else
2335   as_expr=false
2336 fi
2337
2338 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2339   as_basename=basename
2340 else
2341   as_basename=false
2342 fi
2343
2344
2345 # Name of the executable.
2346 as_me=`$as_basename "$0" ||
2347 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2348          X"$0" : 'X\(//\)$' \| \
2349          X"$0" : 'X\(/\)$' \| \
2350          .     : '\(.\)' 2>/dev/null ||
2351 echo X/"$0" |
2352     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2353           /^X\/\(\/\/\)$/{ s//\1/; q; }
2354           /^X\/\(\/\).*/{ s//\1/; q; }
2355           s/.*/./; q'`
2356
2357
2358 # PATH needs CR, and LINENO needs CR and PATH.
2359 # Avoid depending upon Character Ranges.
2360 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2361 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2362 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2363 as_cr_digits='0123456789'
2364 as_cr_alnum=$as_cr_Letters$as_cr_digits
2365
2366 # The user is always right.
2367 if test "${PATH_SEPARATOR+set}" != set; then
2368   echo "#! /bin/sh" >conf$$.sh
2369   echo  "exit 0"   >>conf$$.sh
2370   chmod +x conf$$.sh
2371   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2372     PATH_SEPARATOR=';'
2373   else
2374     PATH_SEPARATOR=:
2375   fi
2376   rm -f conf$$.sh
2377 fi
2378
2379
2380   as_lineno_1=$LINENO
2381   as_lineno_2=$LINENO
2382   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2383   test "x$as_lineno_1" != "x$as_lineno_2" &&
2384   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
2385   # Find who we are.  Look in the path if we contain no path at all
2386   # relative or not.
2387   case $0 in
2388     *[\\/]* ) as_myself=$0 ;;
2389     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392   IFS=$as_save_IFS
2393   test -z "$as_dir" && as_dir=.
2394   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2395 done
2396
2397        ;;
2398   esac
2399   # We did not find ourselves, most probably we were run as `sh COMMAND'
2400   # in which case we are not to be found in the path.
2401   if test "x$as_myself" = x; then
2402     as_myself=$0
2403   fi
2404   if test ! -f "$as_myself"; then
2405     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2406 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2407    { (exit 1); exit 1; }; }
2408   fi
2409   case $CONFIG_SHELL in
2410   '')
2411     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2413 do
2414   IFS=$as_save_IFS
2415   test -z "$as_dir" && as_dir=.
2416   for as_base in sh bash ksh sh5; do
2417          case $as_dir in
2418          /*)
2419            if ("$as_dir/$as_base" -c '
2420   as_lineno_1=$LINENO
2421   as_lineno_2=$LINENO
2422   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2423   test "x$as_lineno_1" != "x$as_lineno_2" &&
2424   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
2425              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2426              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2427              CONFIG_SHELL=$as_dir/$as_base
2428              export CONFIG_SHELL
2429              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2430            fi;;
2431          esac
2432        done
2433 done
2434 ;;
2435   esac
2436
2437   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2438   # uniformly replaced by the line number.  The first 'sed' inserts a
2439   # line-number line before each line; the second 'sed' does the real
2440   # work.  The second script uses 'N' to pair each line-number line
2441   # with the numbered line, and appends trailing '-' during
2442   # substitution so that $LINENO is not a special case at line end.
2443   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2444   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
2445   sed '=' <$as_myself |
2446     sed '
2447       N
2448       s,$,-,
2449       : loop
2450       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2451       t loop
2452       s,-$,,
2453       s,^['$as_cr_digits']*\n,,
2454     ' >$as_me.lineno &&
2455   chmod +x $as_me.lineno ||
2456     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2457 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2458    { (exit 1); exit 1; }; }
2459
2460   # Don't try to exec as it changes $[0], causing all sort of problems
2461   # (the dirname of $[0] is not the place where we might find the
2462   # original and so on.  Autoconf is especially sensible to this).
2463   . ./$as_me.lineno
2464   # Exit status is that of the last command.
2465   exit
2466 }
2467
2468
2469 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2470   *c*,-n*) ECHO_N= ECHO_C='
2471 ' ECHO_T='      ' ;;
2472   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2473   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
2474 esac
2475
2476 if expr a : '\(a\)' >/dev/null 2>&1; then
2477   as_expr=expr
2478 else
2479   as_expr=false
2480 fi
2481
2482 rm -f conf$$ conf$$.exe conf$$.file
2483 echo >conf$$.file
2484 if ln -s conf$$.file conf$$ 2>/dev/null; then
2485   # We could just check for DJGPP; but this test a) works b) is more generic
2486   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2487   if test -f conf$$.exe; then
2488     # Don't use ln at all; we don't have any links
2489     as_ln_s='cp -p'
2490   else
2491     as_ln_s='ln -s'
2492   fi
2493 elif ln conf$$.file conf$$ 2>/dev/null; then
2494   as_ln_s=ln
2495 else
2496   as_ln_s='cp -p'
2497 fi
2498 rm -f conf$$ conf$$.exe conf$$.file
2499
2500 if mkdir -p . 2>/dev/null; then
2501   as_mkdir_p=:
2502 else
2503   test -d ./-p && rmdir ./-p
2504   as_mkdir_p=false
2505 fi
2506
2507 as_executable_p="test -f"
2508
2509 # Sed expression to map a string onto a valid CPP name.
2510 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2511
2512 # Sed expression to map a string onto a valid variable name.
2513 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2514
2515
2516 # IFS
2517 # We need space, tab and new line, in precisely that order.
2518 as_nl='
2519 '
2520 IFS="   $as_nl"
2521
2522 # CDPATH.
2523 $as_unset CDPATH
2524
2525 exec 6>&1
2526
2527 # Open the log real soon, to keep \$[0] and so on meaningful, and to
2528 # report actual input values of CONFIG_FILES etc. instead of their
2529 # values after options handling.  Logging --version etc. is OK.
2530 exec 5>>config.log
2531 {
2532   echo
2533   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2534 ## Running $as_me. ##
2535 _ASBOX
2536 } >&5
2537 cat >&5 <<_CSEOF
2538
2539 This file was extended by RT $as_me 3.6.6, which was
2540 generated by GNU Autoconf 2.59.  Invocation command line was
2541
2542   CONFIG_FILES    = $CONFIG_FILES
2543   CONFIG_HEADERS  = $CONFIG_HEADERS
2544   CONFIG_LINKS    = $CONFIG_LINKS
2545   CONFIG_COMMANDS = $CONFIG_COMMANDS
2546   $ $0 $@
2547
2548 _CSEOF
2549 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2550 echo >&5
2551 _ACEOF
2552
2553 # Files that config.status was made for.
2554 if test -n "$ac_config_files"; then
2555   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2556 fi
2557
2558 if test -n "$ac_config_headers"; then
2559   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2560 fi
2561
2562 if test -n "$ac_config_links"; then
2563   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2564 fi
2565
2566 if test -n "$ac_config_commands"; then
2567   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2568 fi
2569
2570 cat >>$CONFIG_STATUS <<\_ACEOF
2571
2572 ac_cs_usage="\
2573 \`$as_me' instantiates files from templates according to the
2574 current configuration.
2575
2576 Usage: $0 [OPTIONS] [FILE]...
2577
2578   -h, --help       print this help, then exit
2579   -V, --version    print version number, then exit
2580   -q, --quiet      do not print progress messages
2581   -d, --debug      don't remove temporary files
2582       --recheck    update $as_me by reconfiguring in the same conditions
2583   --file=FILE[:TEMPLATE]
2584                    instantiate the configuration file FILE
2585
2586 Configuration files:
2587 $config_files
2588
2589 Report bugs to <bug-autoconf@gnu.org>."
2590 _ACEOF
2591
2592 cat >>$CONFIG_STATUS <<_ACEOF
2593 ac_cs_version="\\
2594 RT config.status 3.6.6
2595 configured by $0, generated by GNU Autoconf 2.59,
2596   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2597
2598 Copyright (C) 2003 Free Software Foundation, Inc.
2599 This config.status script is free software; the Free Software Foundation
2600 gives unlimited permission to copy, distribute and modify it."
2601 srcdir=$srcdir
2602 INSTALL="$INSTALL"
2603 _ACEOF
2604
2605 cat >>$CONFIG_STATUS <<\_ACEOF
2606 # If no file are specified by the user, then we need to provide default
2607 # value.  By we need to know if files were specified by the user.
2608 ac_need_defaults=:
2609 while test $# != 0
2610 do
2611   case $1 in
2612   --*=*)
2613     ac_option=`expr "x$1" : 'x\([^=]*\)='`
2614     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2615     ac_shift=:
2616     ;;
2617   -*)
2618     ac_option=$1
2619     ac_optarg=$2
2620     ac_shift=shift
2621     ;;
2622   *) # This is not an option, so the user has probably given explicit
2623      # arguments.
2624      ac_option=$1
2625      ac_need_defaults=false;;
2626   esac
2627
2628   case $ac_option in
2629   # Handling of the options.
2630 _ACEOF
2631 cat >>$CONFIG_STATUS <<\_ACEOF
2632   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2633     ac_cs_recheck=: ;;
2634   --version | --vers* | -V )
2635     echo "$ac_cs_version"; exit 0 ;;
2636   --he | --h)
2637     # Conflict between --help and --header
2638     { { echo "$as_me:$LINENO: error: ambiguous option: $1
2639 Try \`$0 --help' for more information." >&5
2640 echo "$as_me: error: ambiguous option: $1
2641 Try \`$0 --help' for more information." >&2;}
2642    { (exit 1); exit 1; }; };;
2643   --help | --hel | -h )
2644     echo "$ac_cs_usage"; exit 0 ;;
2645   --debug | --d* | -d )
2646     debug=: ;;
2647   --file | --fil | --fi | --f )
2648     $ac_shift
2649     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2650     ac_need_defaults=false;;
2651   --header | --heade | --head | --hea )
2652     $ac_shift
2653     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2654     ac_need_defaults=false;;
2655   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2656   | -silent | --silent | --silen | --sile | --sil | --si | --s)
2657     ac_cs_silent=: ;;
2658
2659   # This is an error.
2660   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
2661 Try \`$0 --help' for more information." >&5
2662 echo "$as_me: error: unrecognized option: $1
2663 Try \`$0 --help' for more information." >&2;}
2664    { (exit 1); exit 1; }; } ;;
2665
2666   *) ac_config_targets="$ac_config_targets $1" ;;
2667
2668   esac
2669   shift
2670 done
2671
2672 ac_configure_extra_args=
2673
2674 if $ac_cs_silent; then
2675   exec 6>/dev/null
2676   ac_configure_extra_args="$ac_configure_extra_args --silent"
2677 fi
2678
2679 _ACEOF
2680 cat >>$CONFIG_STATUS <<_ACEOF
2681 if \$ac_cs_recheck; then
2682   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2683   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2684 fi
2685
2686 _ACEOF
2687
2688
2689
2690
2691
2692 cat >>$CONFIG_STATUS <<\_ACEOF
2693 for ac_config_target in $ac_config_targets
2694 do
2695   case "$ac_config_target" in
2696   # Handling of arguments.
2697   "sbin/rt-dump-database" ) CONFIG_FILES="$CONFIG_FILES sbin/rt-dump-database" ;;
2698   "sbin/rt-setup-database" ) CONFIG_FILES="$CONFIG_FILES sbin/rt-setup-database" ;;
2699   "sbin/rt-test-dependencies" ) CONFIG_FILES="$CONFIG_FILES sbin/rt-test-dependencies" ;;
2700   "bin/mason_handler.fcgi" ) CONFIG_FILES="$CONFIG_FILES bin/mason_handler.fcgi" ;;
2701   "bin/mason_handler.scgi" ) CONFIG_FILES="$CONFIG_FILES bin/mason_handler.scgi" ;;
2702   "bin/standalone_httpd" ) CONFIG_FILES="$CONFIG_FILES bin/standalone_httpd" ;;
2703   "bin/rt-crontool" ) CONFIG_FILES="$CONFIG_FILES bin/rt-crontool" ;;
2704   "bin/rt-mailgate" ) CONFIG_FILES="$CONFIG_FILES bin/rt-mailgate" ;;
2705   "bin/rt" ) CONFIG_FILES="$CONFIG_FILES bin/rt" ;;
2706   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2707   "etc/RT_Config.pm" ) CONFIG_FILES="$CONFIG_FILES etc/RT_Config.pm" ;;
2708   "lib/RT.pm" ) CONFIG_FILES="$CONFIG_FILES lib/RT.pm" ;;
2709   "bin/mason_handler.svc" ) CONFIG_FILES="$CONFIG_FILES bin/mason_handler.svc" ;;
2710   "bin/webmux.pl" ) CONFIG_FILES="$CONFIG_FILES bin/webmux.pl" ;;
2711   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2712 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2713    { (exit 1); exit 1; }; };;
2714   esac
2715 done
2716
2717 # If the user did not use the arguments to specify the items to instantiate,
2718 # then the envvar interface is used.  Set only those that are not.
2719 # We use the long form for the default assignment because of an extremely
2720 # bizarre bug on SunOS 4.1.3.
2721 if $ac_need_defaults; then
2722   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2723 fi
2724
2725 # Have a temporary directory for convenience.  Make it in the build tree
2726 # simply because there is no reason to put it here, and in addition,
2727 # creating and moving files from /tmp can sometimes cause problems.
2728 # Create a temporary directory, and hook for its removal unless debugging.
2729 $debug ||
2730 {
2731   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2732   trap '{ (exit 1); exit 1; }' 1 2 13 15
2733 }
2734
2735 # Create a (secure) tmp directory for tmp files.
2736
2737 {
2738   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
2739   test -n "$tmp" && test -d "$tmp"
2740 }  ||
2741 {
2742   tmp=./confstat$$-$RANDOM
2743   (umask 077 && mkdir $tmp)
2744 } ||
2745 {
2746    echo "$me: cannot create a temporary directory in ." >&2
2747    { (exit 1); exit 1; }
2748 }
2749
2750 _ACEOF
2751
2752 cat >>$CONFIG_STATUS <<_ACEOF
2753
2754 #
2755 # CONFIG_FILES section.
2756 #
2757
2758 # No need to generate the scripts if there are no CONFIG_FILES.
2759 # This happens for instance when ./config.status config.h
2760 if test -n "\$CONFIG_FILES"; then
2761   # Protect against being on the right side of a sed subst in config.status.
2762   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2763    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2764 s,@SHELL@,$SHELL,;t t
2765 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2766 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2767 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2768 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2769 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2770 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2771 s,@exec_prefix@,$exec_prefix,;t t
2772 s,@prefix@,$prefix,;t t
2773 s,@program_transform_name@,$program_transform_name,;t t
2774 s,@bindir@,$bindir,;t t
2775 s,@sbindir@,$sbindir,;t t
2776 s,@libexecdir@,$libexecdir,;t t
2777 s,@datadir@,$datadir,;t t
2778 s,@sysconfdir@,$sysconfdir,;t t
2779 s,@sharedstatedir@,$sharedstatedir,;t t
2780 s,@localstatedir@,$localstatedir,;t t
2781 s,@libdir@,$libdir,;t t
2782 s,@includedir@,$includedir,;t t
2783 s,@oldincludedir@,$oldincludedir,;t t
2784 s,@infodir@,$infodir,;t t
2785 s,@mandir@,$mandir,;t t
2786 s,@build_alias@,$build_alias,;t t
2787 s,@host_alias@,$host_alias,;t t
2788 s,@target_alias@,$target_alias,;t t
2789 s,@DEFS@,$DEFS,;t t
2790 s,@ECHO_C@,$ECHO_C,;t t
2791 s,@ECHO_N@,$ECHO_N,;t t
2792 s,@ECHO_T@,$ECHO_T,;t t
2793 s,@LIBS@,$LIBS,;t t
2794 s,@rt_version_major@,$rt_version_major,;t t
2795 s,@rt_version_minor@,$rt_version_minor,;t t
2796 s,@rt_version_patch@,$rt_version_patch,;t t
2797 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
2798 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
2799 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
2800 s,@AWK@,$AWK,;t t
2801 s,@PERL@,$PERL,;t t
2802 s,@SPEEDY_BIN@,$SPEEDY_BIN,;t t
2803 s,@exp_prefix@,$exp_prefix,;t t
2804 s,@exp_exec_prefix@,$exp_exec_prefix,;t t
2805 s,@exp_bindir@,$exp_bindir,;t t
2806 s,@exp_sbindir@,$exp_sbindir,;t t
2807 s,@exp_sysconfdir@,$exp_sysconfdir,;t t
2808 s,@exp_mandir@,$exp_mandir,;t t
2809 s,@exp_libdir@,$exp_libdir,;t t
2810 s,@exp_datadir@,$exp_datadir,;t t
2811 s,@htmldir@,$htmldir,;t t
2812 s,@exp_htmldir@,$exp_htmldir,;t t
2813 s,@manualdir@,$manualdir,;t t
2814 s,@exp_manualdir@,$exp_manualdir,;t t
2815 s,@exp_localstatedir@,$exp_localstatedir,;t t
2816 s,@logfiledir@,$logfiledir,;t t
2817 s,@exp_logfiledir@,$exp_logfiledir,;t t
2818 s,@masonstatedir@,$masonstatedir,;t t
2819 s,@exp_masonstatedir@,$exp_masonstatedir,;t t
2820 s,@sessionstatedir@,$sessionstatedir,;t t
2821 s,@exp_sessionstatedir@,$exp_sessionstatedir,;t t
2822 s,@customdir@,$customdir,;t t
2823 s,@exp_customdir@,$exp_customdir,;t t
2824 s,@custometcdir@,$custometcdir,;t t
2825 s,@exp_custometcdir@,$exp_custometcdir,;t t
2826 s,@customhtmldir@,$customhtmldir,;t t
2827 s,@exp_customhtmldir@,$exp_customhtmldir,;t t
2828 s,@customlexdir@,$customlexdir,;t t
2829 s,@exp_customlexdir@,$exp_customlexdir,;t t
2830 s,@customlibdir@,$customlibdir,;t t
2831 s,@exp_customlibdir@,$exp_customlibdir,;t t
2832 s,@rt_layout_name@,$rt_layout_name,;t t
2833 s,@BIN_OWNER@,$BIN_OWNER,;t t
2834 s,@LIBS_OWNER@,$LIBS_OWNER,;t t
2835 s,@LIBS_GROUP@,$LIBS_GROUP,;t t
2836 s,@DB_TYPE@,$DB_TYPE,;t t
2837 s,@DATABASE_ENV_PREF@,$DATABASE_ENV_PREF,;t t
2838 s,@DB_HOST@,$DB_HOST,;t t
2839 s,@DB_PORT@,$DB_PORT,;t t
2840 s,@DB_RT_HOST@,$DB_RT_HOST,;t t
2841 s,@DB_DBA@,$DB_DBA,;t t
2842 s,@DB_DATABASE@,$DB_DATABASE,;t t
2843 s,@DB_RT_USER@,$DB_RT_USER,;t t
2844 s,@DB_RT_PASS@,$DB_RT_PASS,;t t
2845 s,@WEB_USER@,$WEB_USER,;t t
2846 s,@WEB_GROUP@,$WEB_GROUP,;t t
2847 s,@RTGROUP@,$RTGROUP,;t t
2848 s,@APACHECTL@,$APACHECTL,;t t
2849 s,@RT_STANDALONE@,$RT_STANDALONE,;t t
2850 s,@RT_DEVEL_MODE@,$RT_DEVEL_MODE,;t t
2851 s,@RT_VERSION_MAJOR@,$RT_VERSION_MAJOR,;t t
2852 s,@RT_VERSION_MINOR@,$RT_VERSION_MINOR,;t t
2853 s,@RT_VERSION_PATCH@,$RT_VERSION_PATCH,;t t
2854 s,@RT_PATH@,$RT_PATH,;t t
2855 s,@RT_DOC_PATH@,$RT_DOC_PATH,;t t
2856 s,@RT_LOCAL_PATH@,$RT_LOCAL_PATH,;t t
2857 s,@RT_LIB_PATH@,$RT_LIB_PATH,;t t
2858 s,@RT_ETC_PATH@,$RT_ETC_PATH,;t t
2859 s,@CONFIG_FILE_PATH@,$CONFIG_FILE_PATH,;t t
2860 s,@RT_BIN_PATH@,$RT_BIN_PATH,;t t
2861 s,@RT_SBIN_PATH@,$RT_SBIN_PATH,;t t
2862 s,@RT_VAR_PATH@,$RT_VAR_PATH,;t t
2863 s,@RT_MAN_PATH@,$RT_MAN_PATH,;t t
2864 s,@MASON_DATA_PATH@,$MASON_DATA_PATH,;t t
2865 s,@MASON_SESSION_PATH@,$MASON_SESSION_PATH,;t t
2866 s,@MASON_HTML_PATH@,$MASON_HTML_PATH,;t t
2867 s,@LOCAL_ETC_PATH@,$LOCAL_ETC_PATH,;t t
2868 s,@MASON_LOCAL_HTML_PATH@,$MASON_LOCAL_HTML_PATH,;t t
2869 s,@LOCAL_LEXICON_PATH@,$LOCAL_LEXICON_PATH,;t t
2870 s,@LOCAL_LIB_PATH@,$LOCAL_LIB_PATH,;t t
2871 s,@DESTDIR@,$DESTDIR,;t t
2872 s,@RT_LOG_PATH@,$RT_LOG_PATH,;t t
2873 s,@LIBOBJS@,$LIBOBJS,;t t
2874 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
2875 CEOF
2876
2877 _ACEOF
2878
2879   cat >>$CONFIG_STATUS <<\_ACEOF
2880   # Split the substitutions into bite-sized pieces for seds with
2881   # small command number limits, like on Digital OSF/1 and HP-UX.
2882   ac_max_sed_lines=48
2883   ac_sed_frag=1 # Number of current file.
2884   ac_beg=1 # First line for current file.
2885   ac_end=$ac_max_sed_lines # Line after last line for current file.
2886   ac_more_lines=:
2887   ac_sed_cmds=
2888   while $ac_more_lines; do
2889     if test $ac_beg -gt 1; then
2890       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2891     else
2892       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2893     fi
2894     if test ! -s $tmp/subs.frag; then
2895       ac_more_lines=false
2896     else
2897       # The purpose of the label and of the branching condition is to
2898       # speed up the sed processing (if there are no `@' at all, there
2899       # is no need to browse any of the substitutions).
2900       # These are the two extra sed commands mentioned above.
2901       (echo ':t
2902   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2903       if test -z "$ac_sed_cmds"; then
2904         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2905       else
2906         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2907       fi
2908       ac_sed_frag=`expr $ac_sed_frag + 1`
2909       ac_beg=$ac_end
2910       ac_end=`expr $ac_end + $ac_max_sed_lines`
2911     fi
2912   done
2913   if test -z "$ac_sed_cmds"; then
2914     ac_sed_cmds=cat
2915   fi
2916 fi # test -n "$CONFIG_FILES"
2917
2918 _ACEOF
2919 cat >>$CONFIG_STATUS <<\_ACEOF
2920 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2921   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2922   case $ac_file in
2923   - | *:- | *:-:* ) # input from stdin
2924         cat >$tmp/stdin
2925         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2926         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2927   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2928         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2929   * )   ac_file_in=$ac_file.in ;;
2930   esac
2931
2932   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2933   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
2934 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2935          X"$ac_file" : 'X\(//\)[^/]' \| \
2936          X"$ac_file" : 'X\(//\)$' \| \
2937          X"$ac_file" : 'X\(/\)' \| \
2938          .     : '\(.\)' 2>/dev/null ||
2939 echo X"$ac_file" |
2940     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2941           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2942           /^X\(\/\/\)$/{ s//\1/; q; }
2943           /^X\(\/\).*/{ s//\1/; q; }
2944           s/.*/./; q'`
2945   { if $as_mkdir_p; then
2946     mkdir -p "$ac_dir"
2947   else
2948     as_dir="$ac_dir"
2949     as_dirs=
2950     while test ! -d "$as_dir"; do
2951       as_dirs="$as_dir $as_dirs"
2952       as_dir=`(dirname "$as_dir") 2>/dev/null ||
2953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2954          X"$as_dir" : 'X\(//\)[^/]' \| \
2955          X"$as_dir" : 'X\(//\)$' \| \
2956          X"$as_dir" : 'X\(/\)' \| \
2957          .     : '\(.\)' 2>/dev/null ||
2958 echo X"$as_dir" |
2959     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2960           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2961           /^X\(\/\/\)$/{ s//\1/; q; }
2962           /^X\(\/\).*/{ s//\1/; q; }
2963           s/.*/./; q'`
2964     done
2965     test ! -n "$as_dirs" || mkdir $as_dirs
2966   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
2967 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
2968    { (exit 1); exit 1; }; }; }
2969
2970   ac_builddir=.
2971
2972 if test "$ac_dir" != .; then
2973   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2974   # A "../" for each directory in $ac_dir_suffix.
2975   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
2976 else
2977   ac_dir_suffix= ac_top_builddir=
2978 fi
2979
2980 case $srcdir in
2981   .)  # No --srcdir option.  We are building in place.
2982     ac_srcdir=.
2983     if test -z "$ac_top_builddir"; then
2984        ac_top_srcdir=.
2985     else
2986        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
2987     fi ;;
2988   [\\/]* | ?:[\\/]* )  # Absolute path.
2989     ac_srcdir=$srcdir$ac_dir_suffix;
2990     ac_top_srcdir=$srcdir ;;
2991   *) # Relative path.
2992     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
2993     ac_top_srcdir=$ac_top_builddir$srcdir ;;
2994 esac
2995
2996 # Do not use `cd foo && pwd` to compute absolute paths, because
2997 # the directories may not exist.
2998 case `pwd` in
2999 .) ac_abs_builddir="$ac_dir";;
3000 *)
3001   case "$ac_dir" in
3002   .) ac_abs_builddir=`pwd`;;
3003   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3004   *) ac_abs_builddir=`pwd`/"$ac_dir";;
3005   esac;;
3006 esac
3007 case $ac_abs_builddir in
3008 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3009 *)
3010   case ${ac_top_builddir}. in
3011   .) ac_abs_top_builddir=$ac_abs_builddir;;
3012   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3013   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3014   esac;;
3015 esac
3016 case $ac_abs_builddir in
3017 .) ac_abs_srcdir=$ac_srcdir;;
3018 *)
3019   case $ac_srcdir in
3020   .) ac_abs_srcdir=$ac_abs_builddir;;
3021   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3022   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3023   esac;;
3024 esac
3025 case $ac_abs_builddir in
3026 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3027 *)
3028   case $ac_top_srcdir in
3029   .) ac_abs_top_srcdir=$ac_abs_builddir;;
3030   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3031   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3032   esac;;
3033 esac
3034
3035
3036   case $INSTALL in
3037   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3038   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3039   esac
3040
3041   # Let's still pretend it is `configure' which instantiates (i.e., don't
3042   # use $as_me), people would be surprised to read:
3043   #    /* config.h.  Generated by config.status.  */
3044   if test x"$ac_file" = x-; then
3045     configure_input=
3046   else
3047     configure_input="$ac_file.  "
3048   fi
3049   configure_input=$configure_input"Generated from `echo $ac_file_in |
3050                                      sed 's,.*/,,'` by configure."
3051
3052   # First look for the input files in the build tree, otherwise in the
3053   # src tree.
3054   ac_file_inputs=`IFS=:
3055     for f in $ac_file_in; do
3056       case $f in
3057       -) echo $tmp/stdin ;;
3058       [\\/$]*)
3059          # Absolute (can't be DOS-style, as IFS=:)
3060          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3061 echo "$as_me: error: cannot find input file: $f" >&2;}
3062    { (exit 1); exit 1; }; }
3063          echo "$f";;
3064       *) # Relative
3065          if test -f "$f"; then
3066            # Build tree
3067            echo "$f"
3068          elif test -f "$srcdir/$f"; then
3069            # Source tree
3070            echo "$srcdir/$f"
3071          else
3072            # /dev/null tree
3073            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3074 echo "$as_me: error: cannot find input file: $f" >&2;}
3075    { (exit 1); exit 1; }; }
3076          fi;;
3077       esac
3078     done` || { (exit 1); exit 1; }
3079
3080   if test x"$ac_file" != x-; then
3081     { echo "$as_me:$LINENO: creating $ac_file" >&5
3082 echo "$as_me: creating $ac_file" >&6;}
3083     rm -f "$ac_file"
3084   fi
3085 _ACEOF
3086 cat >>$CONFIG_STATUS <<_ACEOF
3087   sed "$ac_vpsub
3088 $extrasub
3089 _ACEOF
3090 cat >>$CONFIG_STATUS <<\_ACEOF
3091 :t
3092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3093 s,@configure_input@,$configure_input,;t t
3094 s,@srcdir@,$ac_srcdir,;t t
3095 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3096 s,@top_srcdir@,$ac_top_srcdir,;t t
3097 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3098 s,@builddir@,$ac_builddir,;t t
3099 s,@abs_builddir@,$ac_abs_builddir,;t t
3100 s,@top_builddir@,$ac_top_builddir,;t t
3101 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3102 s,@INSTALL@,$ac_INSTALL,;t t
3103 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3104   rm -f $tmp/stdin
3105   if test x"$ac_file" != x-; then
3106     mv $tmp/out $ac_file
3107   else
3108     cat $tmp/out
3109     rm -f $tmp/out
3110   fi
3111
3112   # Run the commands associated with the file.
3113   case $ac_file in
3114     sbin/rt-dump-database ) chmod ug+x $ac_file
3115                 ;;
3116     sbin/rt-setup-database ) chmod ug+x $ac_file
3117                 ;;
3118     sbin/rt-test-dependencies ) chmod ug+x $ac_file
3119                 ;;
3120     bin/mason_handler.fcgi ) chmod ug+x $ac_file
3121                 ;;
3122     bin/mason_handler.scgi ) chmod ug+x $ac_file
3123                 ;;
3124     bin/standalone_httpd ) chmod ug+x $ac_file
3125                 ;;
3126     bin/rt-crontool ) chmod ug+x $ac_file
3127                 ;;
3128     bin/rt-mailgate ) chmod ug+x $ac_file
3129                 ;;
3130     bin/rt ) chmod ug+x $ac_file
3131                 ;;
3132   esac
3133 done
3134 _ACEOF
3135
3136 cat >>$CONFIG_STATUS <<\_ACEOF
3137
3138 { (exit 0); exit 0; }
3139 _ACEOF
3140 chmod +x $CONFIG_STATUS
3141 ac_clean_files=$ac_clean_files_save
3142
3143
3144 # configure is writing to config.log, and then calls config.status.
3145 # config.status does its own redirection, appending to config.log.
3146 # Unfortunately, on DOS this fails, as config.log is still kept open
3147 # by configure, so config.status won't be able to write to it; its
3148 # output is simply discarded.  So we exec the FD to /dev/null,
3149 # effectively closing config.log, so it can be properly (re)opened and
3150 # appended to by config.status.  When coming back to configure, we
3151 # need to make the FD available again.
3152 if test "$no_create" != yes; then
3153   ac_cs_success=:
3154   ac_config_status_args=
3155   test "$silent" = yes &&
3156     ac_config_status_args="$ac_config_status_args --quiet"
3157   exec 5>/dev/null
3158   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3159   exec 5>>config.log
3160   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3161   # would make configure fail if this is the last instruction.
3162   $ac_cs_success || { (exit 1); exit 1; }
3163 fi
3164