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