planet telecom rate import, RT#83146
[freeside.git] / rt / configure
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for RT rt-4.2.14.
5 #
6 # Report bugs to <rt-bugs@bestpractical.com>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='print -r --'
49   as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='printf %s\n'
52   as_echo_n='printf %s'
53 else
54   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57   else
58     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60       arg=$1;
61       case $arg in #(
62       *"$as_nl"*)
63         expr "X$arg" : "X\\(.*\\)$as_nl";
64         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65       esac;
66       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70   fi
71   export as_echo_body
72   as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order.  Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" ""        $as_nl"
91
92 # Find who we are.  Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139   # into an infinite loop, continuously re-executing ourselves.
140   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141     _as_can_reexec=no; export _as_can_reexec;
142     # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150   *v*x* | *x*v* ) as_opts=-vx ;;
151   *v* ) as_opts=-v ;;
152   *x* ) as_opts=-x ;;
153   * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160   fi
161   # We don't want this to propagate to other subprocesses.
162           { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165   emulate sh
166   NULLCMD=:
167   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168   # is contrary to our usage.  Disable this feature.
169   alias -g '\${1+\"\$@\"}'='\"\$@\"'
170   setopt NO_GLOB_SUBST
171 else
172   case \`(set -o) 2>/dev/null\` in #(
173   *posix*) :
174     set -o posix ;; #(
175   *) :
176      ;;
177 esac
178 fi
179 "
180   as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194   exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: rt-bugs@bestpractical.com about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='RT'
582 PACKAGE_TARNAME='rt'
583 PACKAGE_VERSION='rt-4.2.14'
584 PACKAGE_STRING='RT rt-4.2.14'
585 PACKAGE_BUGREPORT='rt-bugs@bestpractical.com'
586 PACKAGE_URL=''
587
588 ac_unique_file="lib/RT.pm"
589 ac_default_prefix=/opt/rt4
590 ac_subst_vars='LTLIBOBJS
591 LIBOBJS
592 RT_LOG_PATH_R
593 LOCAL_PLUGIN_PATH_R
594 LOCAL_LIB_PATH_R
595 LOCAL_STATIC_PATH_R
596 LOCAL_LEXICON_PATH_R
597 MASON_LOCAL_HTML_PATH_R
598 LOCAL_ETC_PATH_R
599 MASON_HTML_PATH_R
600 MASON_SESSION_PATH_R
601 MASON_DATA_PATH_R
602 RT_PLUGIN_PATH_R
603 RT_STATIC_PATH_R
604 RT_LEXICON_PATH_R
605 RT_FONT_PATH_R
606 RT_MAN_PATH_R
607 RT_VAR_PATH_R
608 RT_SBIN_PATH_R
609 RT_BIN_PATH_R
610 CONFIG_FILE_PATH_R
611 RT_ETC_PATH_R
612 RT_LIB_PATH_R
613 RT_LOCAL_PATH_R
614 RT_DOC_PATH_R
615 RT_PATH_R
616 RT_LOG_PATH
617 LOCAL_PLUGIN_PATH
618 LOCAL_LIB_PATH
619 LOCAL_STATIC_PATH
620 LOCAL_LEXICON_PATH
621 MASON_LOCAL_HTML_PATH
622 LOCAL_ETC_PATH
623 MASON_HTML_PATH
624 MASON_SESSION_PATH
625 MASON_DATA_PATH
626 RT_PLUGIN_PATH
627 RT_FONT_PATH
628 RT_MAN_PATH
629 RT_VAR_PATH
630 RT_SBIN_PATH
631 RT_BIN_PATH
632 CONFIG_FILE_PATH
633 RT_ETC_PATH
634 RT_STATIC_PATH
635 RT_LEXICON_PATH
636 RT_LIB_PATH
637 RT_LOCAL_PATH
638 RT_DOC_PATH
639 RT_PATH
640 RT_VERSION_PATCH
641 RT_VERSION_MINOR
642 RT_VERSION_MAJOR
643 RT_SMIME
644 RT_SMIME_DEPS
645 RT_GPG
646 RT_GPG_DEPS
647 RT_GD
648 RT_GRAPHVIZ
649 RT_DEVELOPER
650 RTGROUP
651 WEB_GROUP
652 WEB_USER
653 DB_RT_PASS
654 DB_RT_USER
655 DB_DATABASE
656 DB_DBA
657 DB_RT_HOST
658 DB_PORT
659 DB_HOST
660 DATABASE_ENV_PREF
661 DB_TYPE
662 LIBS_GROUP
663 LIBS_OWNER
664 BIN_OWNER
665 COMMENT_INPLACE_LAYOUT
666 rt_layout_name
667 exp_customlibdir
668 customlibdir
669 exp_customstaticdir
670 customstaticdir
671 exp_customlexdir
672 customlexdir
673 exp_customhtmldir
674 customhtmldir
675 exp_customplugindir
676 customplugindir
677 exp_custometcdir
678 custometcdir
679 exp_customdir
680 customdir
681 exp_sessionstatedir
682 sessionstatedir
683 exp_masonstatedir
684 masonstatedir
685 exp_logfiledir
686 logfiledir
687 exp_localstatedir
688 exp_plugindir
689 plugindir
690 exp_manualdir
691 manualdir
692 exp_fontdir
693 fontdir
694 exp_htmldir
695 exp_datadir
696 exp_staticdir
697 staticdir
698 exp_lexdir
699 lexdir
700 exp_libdir
701 exp_mandir
702 exp_sysconfdir
703 exp_sbindir
704 exp_bindir
705 exp_exec_prefix
706 exp_prefix
707 WEB_HANDLER
708 FINDPERM
709 PERL
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 rt_version_patch
714 rt_version_minor
715 rt_version_major
716 CONFIGURE_INCANT
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 with_web_handler
759 enable_layout
760 with_bin_owner
761 with_libs_owner
762 with_libs_group
763 with_db_type
764 with_db_host
765 with_db_port
766 with_db_rt_host
767 with_db_dba
768 with_db_database
769 with_db_rt_user
770 with_db_rt_pass
771 with_web_user
772 with_web_group
773 with_rt_group
774 with_my_user_group
775 with_developer
776 enable_developer
777 with_graphviz
778 enable_graphviz
779 with_gd
780 enable_gd
781 enable_gpg
782 enable_smime
783 '
784       ac_precious_vars='build_alias
785 host_alias
786 target_alias
787 PERL'
788
789
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
811
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
837
838 ac_prev=
839 ac_dashdash=
840 for ac_option
841 do
842   # If the previous option needs an argument, assign it.
843   if test -n "$ac_prev"; then
844     eval $ac_prev=\$ac_option
845     ac_prev=
846     continue
847   fi
848
849   case $ac_option in
850   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851   *=)   ac_optarg= ;;
852   *)    ac_optarg=yes ;;
853   esac
854
855   # Accept the important Cygnus configure options, so we can diagnose typos.
856
857   case $ac_dashdash$ac_option in
858   --)
859     ac_dashdash=yes ;;
860
861   -bindir | --bindir | --bindi | --bind | --bin | --bi)
862     ac_prev=bindir ;;
863   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864     bindir=$ac_optarg ;;
865
866   -build | --build | --buil | --bui | --bu)
867     ac_prev=build_alias ;;
868   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869     build_alias=$ac_optarg ;;
870
871   -cache-file | --cache-file | --cache-fil | --cache-fi \
872   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873     ac_prev=cache_file ;;
874   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876     cache_file=$ac_optarg ;;
877
878   --config-cache | -C)
879     cache_file=config.cache ;;
880
881   -datadir | --datadir | --datadi | --datad)
882     ac_prev=datadir ;;
883   -datadir=* | --datadir=* | --datadi=* | --datad=*)
884     datadir=$ac_optarg ;;
885
886   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887   | --dataroo | --dataro | --datar)
888     ac_prev=datarootdir ;;
889   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891     datarootdir=$ac_optarg ;;
892
893   -disable-* | --disable-*)
894     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895     # Reject names that are not valid shell variable names.
896     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897       as_fn_error $? "invalid feature name: $ac_useropt"
898     ac_useropt_orig=$ac_useropt
899     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900     case $ac_user_opts in
901       *"
902 "enable_$ac_useropt"
903 "*) ;;
904       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905          ac_unrecognized_sep=', ';;
906     esac
907     eval enable_$ac_useropt=no ;;
908
909   -docdir | --docdir | --docdi | --doc | --do)
910     ac_prev=docdir ;;
911   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912     docdir=$ac_optarg ;;
913
914   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915     ac_prev=dvidir ;;
916   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917     dvidir=$ac_optarg ;;
918
919   -enable-* | --enable-*)
920     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921     # Reject names that are not valid shell variable names.
922     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923       as_fn_error $? "invalid feature name: $ac_useropt"
924     ac_useropt_orig=$ac_useropt
925     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926     case $ac_user_opts in
927       *"
928 "enable_$ac_useropt"
929 "*) ;;
930       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931          ac_unrecognized_sep=', ';;
932     esac
933     eval enable_$ac_useropt=\$ac_optarg ;;
934
935   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937   | --exec | --exe | --ex)
938     ac_prev=exec_prefix ;;
939   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941   | --exec=* | --exe=* | --ex=*)
942     exec_prefix=$ac_optarg ;;
943
944   -gas | --gas | --ga | --g)
945     # Obsolete; use --with-gas.
946     with_gas=yes ;;
947
948   -help | --help | --hel | --he | -h)
949     ac_init_help=long ;;
950   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951     ac_init_help=recursive ;;
952   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953     ac_init_help=short ;;
954
955   -host | --host | --hos | --ho)
956     ac_prev=host_alias ;;
957   -host=* | --host=* | --hos=* | --ho=*)
958     host_alias=$ac_optarg ;;
959
960   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961     ac_prev=htmldir ;;
962   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963   | --ht=*)
964     htmldir=$ac_optarg ;;
965
966   -includedir | --includedir | --includedi | --included | --include \
967   | --includ | --inclu | --incl | --inc)
968     ac_prev=includedir ;;
969   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970   | --includ=* | --inclu=* | --incl=* | --inc=*)
971     includedir=$ac_optarg ;;
972
973   -infodir | --infodir | --infodi | --infod | --info | --inf)
974     ac_prev=infodir ;;
975   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976     infodir=$ac_optarg ;;
977
978   -libdir | --libdir | --libdi | --libd)
979     ac_prev=libdir ;;
980   -libdir=* | --libdir=* | --libdi=* | --libd=*)
981     libdir=$ac_optarg ;;
982
983   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984   | --libexe | --libex | --libe)
985     ac_prev=libexecdir ;;
986   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987   | --libexe=* | --libex=* | --libe=*)
988     libexecdir=$ac_optarg ;;
989
990   -localedir | --localedir | --localedi | --localed | --locale)
991     ac_prev=localedir ;;
992   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993     localedir=$ac_optarg ;;
994
995   -localstatedir | --localstatedir | --localstatedi | --localstated \
996   | --localstate | --localstat | --localsta | --localst | --locals)
997     ac_prev=localstatedir ;;
998   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000     localstatedir=$ac_optarg ;;
1001
1002   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003     ac_prev=mandir ;;
1004   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005     mandir=$ac_optarg ;;
1006
1007   -nfp | --nfp | --nf)
1008     # Obsolete; use --without-fp.
1009     with_fp=no ;;
1010
1011   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012   | --no-cr | --no-c | -n)
1013     no_create=yes ;;
1014
1015   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017     no_recursion=yes ;;
1018
1019   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021   | --oldin | --oldi | --old | --ol | --o)
1022     ac_prev=oldincludedir ;;
1023   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026     oldincludedir=$ac_optarg ;;
1027
1028   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029     ac_prev=prefix ;;
1030   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031     prefix=$ac_optarg ;;
1032
1033   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034   | --program-pre | --program-pr | --program-p)
1035     ac_prev=program_prefix ;;
1036   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038     program_prefix=$ac_optarg ;;
1039
1040   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041   | --program-suf | --program-su | --program-s)
1042     ac_prev=program_suffix ;;
1043   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045     program_suffix=$ac_optarg ;;
1046
1047   -program-transform-name | --program-transform-name \
1048   | --program-transform-nam | --program-transform-na \
1049   | --program-transform-n | --program-transform- \
1050   | --program-transform | --program-transfor \
1051   | --program-transfo | --program-transf \
1052   | --program-trans | --program-tran \
1053   | --progr-tra | --program-tr | --program-t)
1054     ac_prev=program_transform_name ;;
1055   -program-transform-name=* | --program-transform-name=* \
1056   | --program-transform-nam=* | --program-transform-na=* \
1057   | --program-transform-n=* | --program-transform-=* \
1058   | --program-transform=* | --program-transfor=* \
1059   | --program-transfo=* | --program-transf=* \
1060   | --program-trans=* | --program-tran=* \
1061   | --progr-tra=* | --program-tr=* | --program-t=*)
1062     program_transform_name=$ac_optarg ;;
1063
1064   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065     ac_prev=pdfdir ;;
1066   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067     pdfdir=$ac_optarg ;;
1068
1069   -psdir | --psdir | --psdi | --psd | --ps)
1070     ac_prev=psdir ;;
1071   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072     psdir=$ac_optarg ;;
1073
1074   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075   | -silent | --silent | --silen | --sile | --sil)
1076     silent=yes ;;
1077
1078   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079     ac_prev=sbindir ;;
1080   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081   | --sbi=* | --sb=*)
1082     sbindir=$ac_optarg ;;
1083
1084   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086   | --sharedst | --shareds | --shared | --share | --shar \
1087   | --sha | --sh)
1088     ac_prev=sharedstatedir ;;
1089   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092   | --sha=* | --sh=*)
1093     sharedstatedir=$ac_optarg ;;
1094
1095   -site | --site | --sit)
1096     ac_prev=site ;;
1097   -site=* | --site=* | --sit=*)
1098     site=$ac_optarg ;;
1099
1100   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101     ac_prev=srcdir ;;
1102   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103     srcdir=$ac_optarg ;;
1104
1105   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106   | --syscon | --sysco | --sysc | --sys | --sy)
1107     ac_prev=sysconfdir ;;
1108   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110     sysconfdir=$ac_optarg ;;
1111
1112   -target | --target | --targe | --targ | --tar | --ta | --t)
1113     ac_prev=target_alias ;;
1114   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115     target_alias=$ac_optarg ;;
1116
1117   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118     verbose=yes ;;
1119
1120   -version | --version | --versio | --versi | --vers | -V)
1121     ac_init_version=: ;;
1122
1123   -with-* | --with-*)
1124     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125     # Reject names that are not valid shell variable names.
1126     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127       as_fn_error $? "invalid package name: $ac_useropt"
1128     ac_useropt_orig=$ac_useropt
1129     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130     case $ac_user_opts in
1131       *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135          ac_unrecognized_sep=', ';;
1136     esac
1137     eval with_$ac_useropt=\$ac_optarg ;;
1138
1139   -without-* | --without-*)
1140     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143       as_fn_error $? "invalid package name: $ac_useropt"
1144     ac_useropt_orig=$ac_useropt
1145     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146     case $ac_user_opts in
1147       *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151          ac_unrecognized_sep=', ';;
1152     esac
1153     eval with_$ac_useropt=no ;;
1154
1155   --x)
1156     # Obsolete; use --with-x.
1157     with_x=yes ;;
1158
1159   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160   | --x-incl | --x-inc | --x-in | --x-i)
1161     ac_prev=x_includes ;;
1162   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164     x_includes=$ac_optarg ;;
1165
1166   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168     ac_prev=x_libraries ;;
1169   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171     x_libraries=$ac_optarg ;;
1172
1173   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1175     ;;
1176
1177   *=*)
1178     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179     # Reject names that are not valid shell variable names.
1180     case $ac_envvar in #(
1181       '' | [0-9]* | *[!_$as_cr_alnum]* )
1182       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183     esac
1184     eval $ac_envvar=\$ac_optarg
1185     export $ac_envvar ;;
1186
1187   *)
1188     # FIXME: should be removed in autoconf 3.0.
1189     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193     ;;
1194
1195   esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200   as_fn_error $? "missing argument to $ac_option"
1201 fi
1202
1203 if test -n "$ac_unrecognized_opts"; then
1204   case $enable_option_checking in
1205     no) ;;
1206     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208   esac
1209 fi
1210
1211 # Check all directory arguments for consistency.
1212 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213                 datadir sysconfdir sharedstatedir localstatedir includedir \
1214                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215                 libdir localedir mandir
1216 do
1217   eval ac_val=\$$ac_var
1218   # Remove trailing slashes.
1219   case $ac_val in
1220     */ )
1221       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222       eval $ac_var=\$ac_val;;
1223   esac
1224   # Be sure to have absolute directory names.
1225   case $ac_val in
1226     [\\/$]* | ?:[\\/]* )  continue;;
1227     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228   esac
1229   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241   if test "x$build_alias" = x; then
1242     cross_compiling=maybe
1243   elif test "x$build_alias" != "x$host_alias"; then
1244     cross_compiling=yes
1245   fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257   as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259   as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264   ac_srcdir_defaulted=yes
1265   # Try the directory containing this script, then the parent directory.
1266   ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268          X"$as_myself" : 'X\(//\)[^/]' \| \
1269          X"$as_myself" : 'X\(//\)$' \| \
1270          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\/\)[^/].*/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)$/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\).*/{
1285             s//\1/
1286             q
1287           }
1288           s/.*/./; q'`
1289   srcdir=$ac_confdir
1290   if test ! -r "$srcdir/$ac_unique_file"; then
1291     srcdir=..
1292   fi
1293 else
1294   ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303         pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306   srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316   eval ac_env_${ac_var}_value=\$${ac_var}
1317   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325   # Omit some internal or obsolete options to make the list less imposing.
1326   # This message is too long to be a string in the A/UX 3.1 sh.
1327   cat <<_ACEOF
1328 \`configure' configures RT rt-4.2.14 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE.  See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338   -h, --help              display this help and exit
1339       --help=short        display options specific to this package
1340       --help=recursive    display the short help of all the included packages
1341   -V, --version           display version information and exit
1342   -q, --quiet, --silent   do not print \`checking ...' messages
1343       --cache-file=FILE   cache test results in FILE [disabled]
1344   -C, --config-cache      alias for \`--cache-file=config.cache'
1345   -n, --no-create         do not create output files
1346       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349   --prefix=PREFIX         install architecture-independent files in PREFIX
1350                           [$ac_default_prefix]
1351   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1352                           [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362   --bindir=DIR            user executables [EPREFIX/bin]
1363   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1364   --libexecdir=DIR        program executables [EPREFIX/libexec]
1365   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1366   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1367   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1368   --libdir=DIR            object code libraries [EPREFIX/lib]
1369   --includedir=DIR        C header files [PREFIX/include]
1370   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1371   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1372   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1373   --infodir=DIR           info documentation [DATAROOTDIR/info]
1374   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1375   --mandir=DIR            man documentation [DATAROOTDIR/man]
1376   --docdir=DIR            documentation root [DATAROOTDIR/doc/rt]
1377   --htmldir=DIR           html documentation [DOCDIR]
1378   --dvidir=DIR            dvi documentation [DOCDIR]
1379   --pdfdir=DIR            pdf documentation [DOCDIR]
1380   --psdir=DIR             ps documentation [DOCDIR]
1381 _ACEOF
1382
1383   cat <<\_ACEOF
1384 _ACEOF
1385 fi
1386
1387 if test -n "$ac_init_help"; then
1388   case $ac_init_help in
1389      short | recursive ) echo "Configuration of RT rt-4.2.14:";;
1390    esac
1391   cat <<\_ACEOF
1392
1393 Optional Features:
1394   --disable-option-checking  ignore unrecognized --enable/--with options
1395   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1396   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1397   --enable-layout=LAYOUT  Use a specific directory layout (Default: relative)
1398   --enable-developer      Add dependencies needed for testing and developing
1399                           RT
1400   --enable-graphviz       Turns on support for RT's GraphViz dependency charts
1401   --enable-gd             Turns on support for RT's GD pie and bar charts
1402   --enable-gpg            Turns on GNU Privacy Guard (GPG) support
1403   --enable-smime          Turns on Secure MIME (SMIME) support
1404
1405 Optional Packages:
1406   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1407   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1408   --with-web-handler=LIST comma separated list of web-handlers RT will be able
1409                           to use. Default is fastcgi. Valid values are
1410                           modperl1, modperl2, fastcgi and standalone. To
1411                           successfully run RT you need only one.
1412   --with-bin-owner=OWNER  user that will own RT binaries (default root)
1413   --with-libs-owner=OWNER user that will own RT libraries (default root)
1414   --with-libs-group=GROUP group that will own RT binaries (default bin)
1415   --with-db-type=TYPE     sort of database RT will use (default: mysql)
1416                           (mysql, Pg, Oracle and SQLite are valid)
1417   --with-db-host=HOSTNAME FQDN of database server (default: localhost)
1418   --with-db-port=PORT     port on which the database listens on
1419   --with-db-rt-host=HOSTNAME
1420                           FQDN of RT server which talks to the database server
1421                           (default: localhost)
1422   --with-db-dba=DBA       name of database administrator (default: root or
1423                           postgres)
1424   --with-db-database=DBNAME
1425                           name of the database to use (default: rt4)
1426   --with-db-rt-user=DBUSER
1427                           name of database user (default: rt_user)
1428   --with-db-rt-pass=PASSWORD
1429                           password for database user (default: rt_pass)
1430   --with-web-user=USER    user the web server runs as (default: www)
1431   --with-web-group=GROUP  group the web server runs as (default: www)
1432   --with-rt-group=GROUP   group to own all files (default: rt)
1433   --with-my-user-group    set all users and groups to current user/group
1434
1435
1436 Some influential environment variables:
1437   PERL        Perl interpreter command
1438
1439 Use these variables to override the choices made by `configure' or to help
1440 it to find libraries and programs with nonstandard names/locations.
1441
1442 Report bugs to <rt-bugs@bestpractical.com>.
1443 _ACEOF
1444 ac_status=$?
1445 fi
1446
1447 if test "$ac_init_help" = "recursive"; then
1448   # If there are subdirs, report their specific --help.
1449   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1450     test -d "$ac_dir" ||
1451       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452       continue
1453     ac_builddir=.
1454
1455 case "$ac_dir" in
1456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *)
1458   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1459   # A ".." for each directory in $ac_dir_suffix.
1460   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461   case $ac_top_builddir_sub in
1462   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464   esac ;;
1465 esac
1466 ac_abs_top_builddir=$ac_pwd
1467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468 # for backward compatibility:
1469 ac_top_builddir=$ac_top_build_prefix
1470
1471 case $srcdir in
1472   .)  # We are building in place.
1473     ac_srcdir=.
1474     ac_top_srcdir=$ac_top_builddir_sub
1475     ac_abs_top_srcdir=$ac_pwd ;;
1476   [\\/]* | ?:[\\/]* )  # Absolute name.
1477     ac_srcdir=$srcdir$ac_dir_suffix;
1478     ac_top_srcdir=$srcdir
1479     ac_abs_top_srcdir=$srcdir ;;
1480   *) # Relative name.
1481     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482     ac_top_srcdir=$ac_top_build_prefix$srcdir
1483     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484 esac
1485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486
1487     cd "$ac_dir" || { ac_status=$?; continue; }
1488     # Check for guested configure.
1489     if test -f "$ac_srcdir/configure.gnu"; then
1490       echo &&
1491       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492     elif test -f "$ac_srcdir/configure"; then
1493       echo &&
1494       $SHELL "$ac_srcdir/configure" --help=recursive
1495     else
1496       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497     fi || ac_status=$?
1498     cd "$ac_pwd" || { ac_status=$?; break; }
1499   done
1500 fi
1501
1502 test -n "$ac_init_help" && exit $ac_status
1503 if $ac_init_version; then
1504   cat <<\_ACEOF
1505 RT configure rt-4.2.14
1506 generated by GNU Autoconf 2.69
1507
1508 Copyright (C) 2012 Free Software Foundation, Inc.
1509 This configure script is free software; the Free Software Foundation
1510 gives unlimited permission to copy, distribute and modify it.
1511 _ACEOF
1512   exit
1513 fi
1514
1515 ## ------------------------ ##
1516 ## Autoconf initialization. ##
1517 ## ------------------------ ##
1518 cat >config.log <<_ACEOF
1519 This file contains any messages produced by compilers while
1520 running configure, to aid debugging if configure makes a mistake.
1521
1522 It was created by RT $as_me rt-4.2.14, which was
1523 generated by GNU Autoconf 2.69.  Invocation command line was
1524
1525   $ $0 $@
1526
1527 _ACEOF
1528 exec 5>>config.log
1529 {
1530 cat <<_ASUNAME
1531 ## --------- ##
1532 ## Platform. ##
1533 ## --------- ##
1534
1535 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1536 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1537 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1538 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1539 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1540
1541 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1542 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1543
1544 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1545 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1546 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1547 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1548 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1549 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1550 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1551
1552 _ASUNAME
1553
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1556 do
1557   IFS=$as_save_IFS
1558   test -z "$as_dir" && as_dir=.
1559     $as_echo "PATH: $as_dir"
1560   done
1561 IFS=$as_save_IFS
1562
1563 } >&5
1564
1565 cat >&5 <<_ACEOF
1566
1567
1568 ## ----------- ##
1569 ## Core tests. ##
1570 ## ----------- ##
1571
1572 _ACEOF
1573
1574
1575 # Keep a trace of the command line.
1576 # Strip out --no-create and --no-recursion so they do not pile up.
1577 # Strip out --silent because we don't want to record it for future runs.
1578 # Also quote any args containing shell meta-characters.
1579 # Make two passes to allow for proper duplicate-argument suppression.
1580 ac_configure_args=
1581 ac_configure_args0=
1582 ac_configure_args1=
1583 ac_must_keep_next=false
1584 for ac_pass in 1 2
1585 do
1586   for ac_arg
1587   do
1588     case $ac_arg in
1589     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1590     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1591     | -silent | --silent | --silen | --sile | --sil)
1592       continue ;;
1593     *\'*)
1594       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1595     esac
1596     case $ac_pass in
1597     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1598     2)
1599       as_fn_append ac_configure_args1 " '$ac_arg'"
1600       if test $ac_must_keep_next = true; then
1601         ac_must_keep_next=false # Got value, back to normal.
1602       else
1603         case $ac_arg in
1604           *=* | --config-cache | -C | -disable-* | --disable-* \
1605           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1606           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1607           | -with-* | --with-* | -without-* | --without-* | --x)
1608             case "$ac_configure_args0 " in
1609               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1610             esac
1611             ;;
1612           -* ) ac_must_keep_next=true ;;
1613         esac
1614       fi
1615       as_fn_append ac_configure_args " '$ac_arg'"
1616       ;;
1617     esac
1618   done
1619 done
1620 { ac_configure_args0=; unset ac_configure_args0;}
1621 { ac_configure_args1=; unset ac_configure_args1;}
1622
1623 # When interrupted or exit'd, cleanup temporary files, and complete
1624 # config.log.  We remove comments because anyway the quotes in there
1625 # would cause problems or look ugly.
1626 # WARNING: Use '\'' to represent an apostrophe within the trap.
1627 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1628 trap 'exit_status=$?
1629   # Save into config.log some information that might help in debugging.
1630   {
1631     echo
1632
1633     $as_echo "## ---------------- ##
1634 ## Cache variables. ##
1635 ## ---------------- ##"
1636     echo
1637     # The following way of writing the cache mishandles newlines in values,
1638 (
1639   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1640     eval ac_val=\$$ac_var
1641     case $ac_val in #(
1642     *${as_nl}*)
1643       case $ac_var in #(
1644       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1645 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1646       esac
1647       case $ac_var in #(
1648       _ | IFS | as_nl) ;; #(
1649       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1650       *) { eval $ac_var=; unset $ac_var;} ;;
1651       esac ;;
1652     esac
1653   done
1654   (set) 2>&1 |
1655     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1656     *${as_nl}ac_space=\ *)
1657       sed -n \
1658         "s/'\''/'\''\\\\'\'''\''/g;
1659           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1660       ;; #(
1661     *)
1662       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1663       ;;
1664     esac |
1665     sort
1666 )
1667     echo
1668
1669     $as_echo "## ----------------- ##
1670 ## Output variables. ##
1671 ## ----------------- ##"
1672     echo
1673     for ac_var in $ac_subst_vars
1674     do
1675       eval ac_val=\$$ac_var
1676       case $ac_val in
1677       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1678       esac
1679       $as_echo "$ac_var='\''$ac_val'\''"
1680     done | sort
1681     echo
1682
1683     if test -n "$ac_subst_files"; then
1684       $as_echo "## ------------------- ##
1685 ## File substitutions. ##
1686 ## ------------------- ##"
1687       echo
1688       for ac_var in $ac_subst_files
1689       do
1690         eval ac_val=\$$ac_var
1691         case $ac_val in
1692         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1693         esac
1694         $as_echo "$ac_var='\''$ac_val'\''"
1695       done | sort
1696       echo
1697     fi
1698
1699     if test -s confdefs.h; then
1700       $as_echo "## ----------- ##
1701 ## confdefs.h. ##
1702 ## ----------- ##"
1703       echo
1704       cat confdefs.h
1705       echo
1706     fi
1707     test "$ac_signal" != 0 &&
1708       $as_echo "$as_me: caught signal $ac_signal"
1709     $as_echo "$as_me: exit $exit_status"
1710   } >&5
1711   rm -f core *.core core.conftest.* &&
1712     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1713     exit $exit_status
1714 ' 0
1715 for ac_signal in 1 2 13 15; do
1716   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1717 done
1718 ac_signal=0
1719
1720 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1721 rm -f -r conftest* confdefs.h
1722
1723 $as_echo "/* confdefs.h */" > confdefs.h
1724
1725 # Predefined preprocessor variables.
1726
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_NAME "$PACKAGE_NAME"
1729 _ACEOF
1730
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1733 _ACEOF
1734
1735 cat >>confdefs.h <<_ACEOF
1736 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1737 _ACEOF
1738
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE_STRING "$PACKAGE_STRING"
1741 _ACEOF
1742
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1745 _ACEOF
1746
1747 cat >>confdefs.h <<_ACEOF
1748 #define PACKAGE_URL "$PACKAGE_URL"
1749 _ACEOF
1750
1751
1752 # Let the site file select an alternate cache file if it wants to.
1753 # Prefer an explicitly selected file to automatically selected ones.
1754 ac_site_file1=NONE
1755 ac_site_file2=NONE
1756 if test -n "$CONFIG_SITE"; then
1757   # We do not want a PATH search for config.site.
1758   case $CONFIG_SITE in #((
1759     -*)  ac_site_file1=./$CONFIG_SITE;;
1760     */*) ac_site_file1=$CONFIG_SITE;;
1761     *)   ac_site_file1=./$CONFIG_SITE;;
1762   esac
1763 elif test "x$prefix" != xNONE; then
1764   ac_site_file1=$prefix/share/config.site
1765   ac_site_file2=$prefix/etc/config.site
1766 else
1767   ac_site_file1=$ac_default_prefix/share/config.site
1768   ac_site_file2=$ac_default_prefix/etc/config.site
1769 fi
1770 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1771 do
1772   test "x$ac_site_file" = xNONE && continue
1773   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1774     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1775 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1776     sed 's/^/| /' "$ac_site_file" >&5
1777     . "$ac_site_file" \
1778       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1780 as_fn_error $? "failed to load site script $ac_site_file
1781 See \`config.log' for more details" "$LINENO" 5; }
1782   fi
1783 done
1784
1785 if test -r "$cache_file"; then
1786   # Some versions of bash will fail to source /dev/null (special files
1787   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1788   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1789     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1790 $as_echo "$as_me: loading cache $cache_file" >&6;}
1791     case $cache_file in
1792       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1793       *)                      . "./$cache_file";;
1794     esac
1795   fi
1796 else
1797   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1798 $as_echo "$as_me: creating cache $cache_file" >&6;}
1799   >$cache_file
1800 fi
1801
1802 # Check that the precious variables saved in the cache have kept the same
1803 # value.
1804 ac_cache_corrupted=false
1805 for ac_var in $ac_precious_vars; do
1806   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1807   eval ac_new_set=\$ac_env_${ac_var}_set
1808   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1809   eval ac_new_val=\$ac_env_${ac_var}_value
1810   case $ac_old_set,$ac_new_set in
1811     set,)
1812       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1813 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1814       ac_cache_corrupted=: ;;
1815     ,set)
1816       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1817 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1818       ac_cache_corrupted=: ;;
1819     ,);;
1820     *)
1821       if test "x$ac_old_val" != "x$ac_new_val"; then
1822         # differences in whitespace do not lead to failure.
1823         ac_old_val_w=`echo x $ac_old_val`
1824         ac_new_val_w=`echo x $ac_new_val`
1825         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1826           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1827 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1828           ac_cache_corrupted=:
1829         else
1830           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1831 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1832           eval $ac_var=\$ac_old_val
1833         fi
1834         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1835 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1836         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1837 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1838       fi;;
1839   esac
1840   # Pass precious variables to config.status.
1841   if test "$ac_new_set" = set; then
1842     case $ac_new_val in
1843     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1844     *) ac_arg=$ac_var=$ac_new_val ;;
1845     esac
1846     case " $ac_configure_args " in
1847       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1848       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1849     esac
1850   fi
1851 done
1852 if $ac_cache_corrupted; then
1853   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1855   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1856 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1857   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1858 fi
1859 ## -------------------- ##
1860 ## Main body of script. ##
1861 ## -------------------- ##
1862
1863 ac_ext=c
1864 ac_cpp='$CPP $CPPFLAGS'
1865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1868
1869
1870
1871
1872 CONFIGURE_INCANT="$0 $@"
1873
1874
1875 rt_version_major=4
1876
1877 rt_version_minor=2
1878
1879 rt_version_patch=14
1880
1881 test "x$rt_version_major" = 'x' && rt_version_major=0
1882 test "x$rt_version_minor" = 'x' && rt_version_minor=0
1883 test "x$rt_version_patch" = 'x' && rt_version_patch=0
1884
1885 ac_aux_dir=
1886 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1887   if test -f "$ac_dir/install-sh"; then
1888     ac_aux_dir=$ac_dir
1889     ac_install_sh="$ac_aux_dir/install-sh -c"
1890     break
1891   elif test -f "$ac_dir/install.sh"; then
1892     ac_aux_dir=$ac_dir
1893     ac_install_sh="$ac_aux_dir/install.sh -c"
1894     break
1895   elif test -f "$ac_dir/shtool"; then
1896     ac_aux_dir=$ac_dir
1897     ac_install_sh="$ac_aux_dir/shtool install -c"
1898     break
1899   fi
1900 done
1901 if test -z "$ac_aux_dir"; then
1902   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1903 fi
1904
1905 # These three variables are undocumented and unsupported,
1906 # and are intended to be withdrawn in a future Autoconf release.
1907 # They can cause serious problems if a builder's source tree is in a directory
1908 # whose full name contains unusual characters.
1909 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1910 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1911 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1912
1913
1914 # Find a good install program.  We prefer a C program (faster),
1915 # so one script is as good as another.  But avoid the broken or
1916 # incompatible versions:
1917 # SysV /etc/install, /usr/sbin/install
1918 # SunOS /usr/etc/install
1919 # IRIX /sbin/install
1920 # AIX /bin/install
1921 # AmigaOS /C/install, which installs bootblocks on floppy discs
1922 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1923 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1924 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1925 # OS/2's system install, which has a completely different semantic
1926 # ./install, which can be erroneously created by make from ./install.sh.
1927 # Reject install programs that cannot install multiple files.
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1929 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1930 if test -z "$INSTALL"; then
1931 if ${ac_cv_path_install+:} false; then :
1932   $as_echo_n "(cached) " >&6
1933 else
1934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 for as_dir in $PATH
1936 do
1937   IFS=$as_save_IFS
1938   test -z "$as_dir" && as_dir=.
1939     # Account for people who put trailing slashes in PATH elements.
1940 case $as_dir/ in #((
1941   ./ | .// | /[cC]/* | \
1942   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1943   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1944   /usr/ucb/* ) ;;
1945   *)
1946     # OSF1 and SCO ODT 3.0 have their own names for install.
1947     # Don't use installbsd from OSF since it installs stuff as root
1948     # by default.
1949     for ac_prog in ginstall scoinst install; do
1950       for ac_exec_ext in '' $ac_executable_extensions; do
1951         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1952           if test $ac_prog = install &&
1953             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1954             # AIX install.  It has an incompatible calling convention.
1955             :
1956           elif test $ac_prog = install &&
1957             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1958             # program-specific install script used by HP pwplus--don't use.
1959             :
1960           else
1961             rm -rf conftest.one conftest.two conftest.dir
1962             echo one > conftest.one
1963             echo two > conftest.two
1964             mkdir conftest.dir
1965             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1966               test -s conftest.one && test -s conftest.two &&
1967               test -s conftest.dir/conftest.one &&
1968               test -s conftest.dir/conftest.two
1969             then
1970               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1971               break 3
1972             fi
1973           fi
1974         fi
1975       done
1976     done
1977     ;;
1978 esac
1979
1980   done
1981 IFS=$as_save_IFS
1982
1983 rm -rf conftest.one conftest.two conftest.dir
1984
1985 fi
1986   if test "${ac_cv_path_install+set}" = set; then
1987     INSTALL=$ac_cv_path_install
1988   else
1989     # As a last resort, use the slow shell script.  Don't cache a
1990     # value for INSTALL within a source directory, because that will
1991     # break other packages using the cache if that directory is
1992     # removed, or if the value is a relative name.
1993     INSTALL=$ac_install_sh
1994   fi
1995 fi
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1997 $as_echo "$INSTALL" >&6; }
1998
1999 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2000 # It thinks the first close brace ends the variable substitution.
2001 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2002
2003 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2004
2005 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2006
2007
2008 # Extract the first word of "perl", so it can be a program name with args.
2009 set dummy perl; ac_word=$2
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2011 $as_echo_n "checking for $ac_word... " >&6; }
2012 if ${ac_cv_path_PERL+:} false; then :
2013   $as_echo_n "(cached) " >&6
2014 else
2015   case $PERL in
2016   [\\/]* | ?:[\\/]*)
2017   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2018   ;;
2019   *)
2020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023   IFS=$as_save_IFS
2024   test -z "$as_dir" && as_dir=.
2025     for ac_exec_ext in '' $ac_executable_extensions; do
2026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2027     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2029     break 2
2030   fi
2031 done
2032   done
2033 IFS=$as_save_IFS
2034
2035   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="not found"
2036   ;;
2037 esac
2038 fi
2039 PERL=$ac_cv_path_PERL
2040 if test -n "$PERL"; then
2041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
2042 $as_echo "$PERL" >&6; }
2043 else
2044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2045 $as_echo "no" >&6; }
2046 fi
2047
2048
2049 if test "$PERL" = 'not found'; then
2050         as_fn_error $? "cannot use $PACKAGE_NAME without perl" "$LINENO" 5
2051 fi
2052
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking version of find" >&5
2054 $as_echo_n "checking checking version of find... " >&6; }
2055 if find --version 2>&1 | grep 'GNU'; then :
2056      FINDPERM="/"
2057           { $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring for GNU find" >&5
2058 $as_echo "configuring for GNU find" >&6; }
2059 else
2060      FINDPERM="+"
2061           { $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring for BSD find" >&5
2062 $as_echo "configuring for BSD find" >&6; }
2063 fi
2064
2065
2066
2067
2068 # Check whether --with-web-handler was given.
2069 if test "${with_web_handler+set}" = set; then :
2070   withval=$with_web_handler; WEB_HANDLER=$withval
2071 else
2072   WEB_HANDLER=fastcgi
2073 fi
2074
2075 my_web_handler_test=$($PERL -e 'print "ok" unless grep $_ !~ /^(modperl1|modperl2|fastcgi|standalone)$/i, grep defined && length, split /\s*,\s*/, $ARGV[0]' $WEB_HANDLER)
2076 if test "$my_web_handler_test" != "ok"; then
2077         as_fn_error $? "Only modperl1, modperl2, fastcgi and standalone are valid web-handlers" "$LINENO" 5
2078 fi
2079
2080
2081
2082
2083 # Check whether --enable-layout was given.
2084 if test "${enable_layout+set}" = set; then :
2085   enableval=$enable_layout; LAYOUT=$enableval
2086 fi
2087
2088
2089 if test "x$LAYOUT" = "x"; then
2090         LAYOUT="relative"
2091 fi
2092
2093         if test ! -f $srcdir/config.layout; then
2094                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Layout file $srcdir/config.layout not found" >&5
2095 $as_echo "$as_me: WARNING: Layout file $srcdir/config.layout not found" >&2;}
2096                 rt_layout_name=no
2097         else
2098                 pldconf=./config.pld
2099                 $PERL  -0777 -p -e "\$layout = '$LAYOUT';"  -e '
2100                 s/.*<Layout\s+$layout>//gims;
2101                 s/\<\/Layout\>.*//s;
2102                 s/^#.*$//m;
2103                 s/^\s+//gim;
2104                 s/\s+$/\n/gim;
2105                 s/\+$/\/rt3/gim;
2106                 # m4 will not let us just use $srcdir/config.layout, we need $1
2107                 s/^\s*((?:bin|sbin|libexec|data|sysconf|sharedstate|localstate|lib|include|oldinclude|info|man|html)dir)\s*:\s*(.*)$/$1=$2/gim;
2108                 s/^\s*(.*?)\s*:\s*(.*)$/\(test "x\$$1" = "xNONE" || test "x\$$1" = "x") && $1=$2/gim;
2109                  ' < $srcdir/config.layout > $pldconf
2110
2111                 if test -s $pldconf; then
2112                         rt_layout_name=$LAYOUT
2113                         . $pldconf
2114
2115                         for var in prefix exec_prefix bindir sbindir \
2116                                  sysconfdir mandir libdir datadir htmldir fontdir\
2117                                  lexdir staticdir localstatedir logfiledir masonstatedir \
2118                                  sessionstatedir customdir custometcdir customhtmldir \
2119                                  customlexdir customstaticdir customplugindir customlibdir manualdir; do
2120                                 eval "val=\"\$$var\""
2121                                 val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
2122                                 val=`echo $val |
2123                                         sed -e 's:[\$]\([a-z_]*\):$\1:g'`
2124                                 eval "$var='$val'"
2125                         done
2126
2127                 else
2128                         rt_layout_name=no
2129                 fi
2130                 #rm $pldconf
2131         fi
2132
2133
2134         ap_last=''
2135         ap_cur='$prefix'
2136         while test "x${ap_cur}" != "x${ap_last}"; do
2137                 ap_last="${ap_cur}"
2138                 ap_cur=`eval "echo ${ap_cur}"`
2139         done
2140         exp_prefix="${ap_cur}"
2141
2142
2143
2144
2145
2146
2147         ap_last=''
2148         ap_cur='$exec_prefix'
2149         while test "x${ap_cur}" != "x${ap_last}"; do
2150                 ap_last="${ap_cur}"
2151                 ap_cur=`eval "echo ${ap_cur}"`
2152         done
2153         exp_exec_prefix="${ap_cur}"
2154
2155
2156
2157
2158
2159
2160         ap_last=''
2161         ap_cur='$bindir'
2162         while test "x${ap_cur}" != "x${ap_last}"; do
2163                 ap_last="${ap_cur}"
2164                 ap_cur=`eval "echo ${ap_cur}"`
2165         done
2166         exp_bindir="${ap_cur}"
2167
2168
2169
2170
2171
2172
2173         ap_last=''
2174         ap_cur='$sbindir'
2175         while test "x${ap_cur}" != "x${ap_last}"; do
2176                 ap_last="${ap_cur}"
2177                 ap_cur=`eval "echo ${ap_cur}"`
2178         done
2179         exp_sbindir="${ap_cur}"
2180
2181
2182
2183
2184
2185
2186         ap_last=''
2187         ap_cur='$sysconfdir'
2188         while test "x${ap_cur}" != "x${ap_last}"; do
2189                 ap_last="${ap_cur}"
2190                 ap_cur=`eval "echo ${ap_cur}"`
2191         done
2192         exp_sysconfdir="${ap_cur}"
2193
2194
2195
2196
2197
2198
2199         ap_last=''
2200         ap_cur='$mandir'
2201         while test "x${ap_cur}" != "x${ap_last}"; do
2202                 ap_last="${ap_cur}"
2203                 ap_cur=`eval "echo ${ap_cur}"`
2204         done
2205         exp_mandir="${ap_cur}"
2206
2207
2208
2209
2210
2211
2212         ap_last=''
2213         ap_cur='$libdir'
2214         while test "x${ap_cur}" != "x${ap_last}"; do
2215                 ap_last="${ap_cur}"
2216                 ap_cur=`eval "echo ${ap_cur}"`
2217         done
2218         exp_libdir="${ap_cur}"
2219
2220
2221
2222
2223
2224
2225         ap_last=''
2226         ap_cur='$lexdir'
2227         while test "x${ap_cur}" != "x${ap_last}"; do
2228                 ap_last="${ap_cur}"
2229                 ap_cur=`eval "echo ${ap_cur}"`
2230         done
2231         exp_lexdir="${ap_cur}"
2232
2233
2234
2235
2236
2237
2238         ap_last=''
2239         ap_cur='$staticdir'
2240         while test "x${ap_cur}" != "x${ap_last}"; do
2241                 ap_last="${ap_cur}"
2242                 ap_cur=`eval "echo ${ap_cur}"`
2243         done
2244         exp_staticdir="${ap_cur}"
2245
2246
2247
2248
2249
2250
2251         ap_last=''
2252         ap_cur='$datadir'
2253         while test "x${ap_cur}" != "x${ap_last}"; do
2254                 ap_last="${ap_cur}"
2255                 ap_cur=`eval "echo ${ap_cur}"`
2256         done
2257         exp_datadir="${ap_cur}"
2258
2259
2260
2261
2262
2263
2264         ap_last=''
2265         ap_cur='$htmldir'
2266         while test "x${ap_cur}" != "x${ap_last}"; do
2267                 ap_last="${ap_cur}"
2268                 ap_cur=`eval "echo ${ap_cur}"`
2269         done
2270         exp_htmldir="${ap_cur}"
2271
2272
2273
2274
2275
2276
2277         ap_last=''
2278         ap_cur='$fontdir'
2279         while test "x${ap_cur}" != "x${ap_last}"; do
2280                 ap_last="${ap_cur}"
2281                 ap_cur=`eval "echo ${ap_cur}"`
2282         done
2283         exp_fontdir="${ap_cur}"
2284
2285
2286
2287
2288
2289
2290         ap_last=''
2291         ap_cur='$manualdir'
2292         while test "x${ap_cur}" != "x${ap_last}"; do
2293                 ap_last="${ap_cur}"
2294                 ap_cur=`eval "echo ${ap_cur}"`
2295         done
2296         exp_manualdir="${ap_cur}"
2297
2298
2299
2300
2301
2302
2303         ap_last=''
2304         ap_cur='$plugindir'
2305         while test "x${ap_cur}" != "x${ap_last}"; do
2306                 ap_last="${ap_cur}"
2307                 ap_cur=`eval "echo ${ap_cur}"`
2308         done
2309         exp_plugindir="${ap_cur}"
2310
2311
2312
2313
2314
2315
2316         ap_last=''
2317         ap_cur='$localstatedir'
2318         while test "x${ap_cur}" != "x${ap_last}"; do
2319                 ap_last="${ap_cur}"
2320                 ap_cur=`eval "echo ${ap_cur}"`
2321         done
2322         exp_localstatedir="${ap_cur}"
2323
2324
2325
2326
2327
2328
2329         ap_last=''
2330         ap_cur='$logfiledir'
2331         while test "x${ap_cur}" != "x${ap_last}"; do
2332                 ap_last="${ap_cur}"
2333                 ap_cur=`eval "echo ${ap_cur}"`
2334         done
2335         exp_logfiledir="${ap_cur}"
2336
2337
2338
2339
2340
2341
2342         ap_last=''
2343         ap_cur='$masonstatedir'
2344         while test "x${ap_cur}" != "x${ap_last}"; do
2345                 ap_last="${ap_cur}"
2346                 ap_cur=`eval "echo ${ap_cur}"`
2347         done
2348         exp_masonstatedir="${ap_cur}"
2349
2350
2351
2352
2353
2354
2355         ap_last=''
2356         ap_cur='$sessionstatedir'
2357         while test "x${ap_cur}" != "x${ap_last}"; do
2358                 ap_last="${ap_cur}"
2359                 ap_cur=`eval "echo ${ap_cur}"`
2360         done
2361         exp_sessionstatedir="${ap_cur}"
2362
2363
2364
2365
2366
2367
2368         ap_last=''
2369         ap_cur='$customdir'
2370         while test "x${ap_cur}" != "x${ap_last}"; do
2371                 ap_last="${ap_cur}"
2372                 ap_cur=`eval "echo ${ap_cur}"`
2373         done
2374         exp_customdir="${ap_cur}"
2375
2376
2377
2378
2379
2380
2381         ap_last=''
2382         ap_cur='$custometcdir'
2383         while test "x${ap_cur}" != "x${ap_last}"; do
2384                 ap_last="${ap_cur}"
2385                 ap_cur=`eval "echo ${ap_cur}"`
2386         done
2387         exp_custometcdir="${ap_cur}"
2388
2389
2390
2391
2392
2393
2394         ap_last=''
2395         ap_cur='$customplugindir'
2396         while test "x${ap_cur}" != "x${ap_last}"; do
2397                 ap_last="${ap_cur}"
2398                 ap_cur=`eval "echo ${ap_cur}"`
2399         done
2400         exp_customplugindir="${ap_cur}"
2401
2402
2403
2404
2405
2406
2407         ap_last=''
2408         ap_cur='$customhtmldir'
2409         while test "x${ap_cur}" != "x${ap_last}"; do
2410                 ap_last="${ap_cur}"
2411                 ap_cur=`eval "echo ${ap_cur}"`
2412         done
2413         exp_customhtmldir="${ap_cur}"
2414
2415
2416
2417
2418
2419
2420         ap_last=''
2421         ap_cur='$customlexdir'
2422         while test "x${ap_cur}" != "x${ap_last}"; do
2423                 ap_last="${ap_cur}"
2424                 ap_cur=`eval "echo ${ap_cur}"`
2425         done
2426         exp_customlexdir="${ap_cur}"
2427
2428
2429
2430
2431
2432
2433         ap_last=''
2434         ap_cur='$customstaticdir'
2435         while test "x${ap_cur}" != "x${ap_last}"; do
2436                 ap_last="${ap_cur}"
2437                 ap_cur=`eval "echo ${ap_cur}"`
2438         done
2439         exp_customstaticdir="${ap_cur}"
2440
2441
2442
2443
2444
2445
2446         ap_last=''
2447         ap_cur='$customlibdir'
2448         while test "x${ap_cur}" != "x${ap_last}"; do
2449                 ap_last="${ap_cur}"
2450                 ap_cur=`eval "echo ${ap_cur}"`
2451         done
2452         exp_customlibdir="${ap_cur}"
2453
2454
2455
2456
2457
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
2459 $as_echo_n "checking for chosen layout... " >&6; }
2460 if test "x$rt_layout_name" = "xno"; then
2461         if test "x$LAYOUT" = "xno"; then
2462                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
2463 $as_echo "none" >&6; }
2464         else
2465                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAYOUT" >&5
2466 $as_echo "$LAYOUT" >&6; }
2467         fi
2468         as_fn_error $? "a valid layout must be specified (or the default used)" "$LINENO" 5
2469 else
2470
2471         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rt_layout_name" >&5
2472 $as_echo "$rt_layout_name" >&6; }
2473 fi
2474 if test "x$rt_layout_name" != "xinplace" ; then
2475         COMMENT_INPLACE_LAYOUT=""
2476
2477 else
2478         COMMENT_INPLACE_LAYOUT=#
2479
2480 fi
2481
2482
2483
2484 # ACRT_USER_EXISTS( users, variable, default )
2485 # - users is a list of users [www apache www-docs]
2486 #    from highest to lowest priority to high priority (i.e. first match)
2487 # - variable is what you set with the result
2488 #
2489
2490
2491
2492
2493
2494 # Check whether --with-bin-owner was given.
2495 if test "${with_bin_owner+set}" = set; then :
2496   withval=$with_bin_owner; BIN_OWNER=$withval
2497 else
2498   BIN_OWNER=root
2499 fi
2500
2501
2502
2503
2504 # Check whether --with-libs-owner was given.
2505 if test "${with_libs_owner+set}" = set; then :
2506   withval=$with_libs_owner; LIBS_OWNER=$withval
2507 else
2508   LIBS_OWNER=root
2509 fi
2510
2511
2512
2513
2514 # Check whether --with-libs-group was given.
2515 if test "${with_libs_group+set}" = set; then :
2516   withval=$with_libs_group; LIBS_GROUP=$withval
2517 else
2518   LIBS_GROUP=bin
2519 fi
2520
2521
2522
2523
2524 # Check whether --with-db-type was given.
2525 if test "${with_db_type+set}" = set; then :
2526   withval=$with_db_type; DB_TYPE=$withval
2527 else
2528   DB_TYPE=mysql
2529 fi
2530
2531 if test "$DB_TYPE" != 'mysql' -a "$DB_TYPE" != 'Pg' -a "$DB_TYPE" != 'SQLite' -a "$DB_TYPE" != 'Oracle' ; then
2532         as_fn_error $? "Only Oracle, Pg, mysql and SQLite are valid db types" "$LINENO" 5
2533 fi
2534
2535
2536 if test "$DB_TYPE" = 'Oracle'; then
2537         test "x$ORACLE_HOME" = 'x' && as_fn_error $? "Please declare the ORACLE_HOME environment variable" "$LINENO" 5
2538         DATABASE_ENV_PREF="\$ENV{'ORACLE_HOME'} = '$ORACLE_HOME';"
2539 fi
2540
2541
2542
2543
2544 # Check whether --with-db-host was given.
2545 if test "${with_db_host+set}" = set; then :
2546   withval=$with_db_host; DB_HOST=$withval
2547 else
2548   DB_HOST=localhost
2549 fi
2550
2551
2552
2553
2554 # Check whether --with-db-port was given.
2555 if test "${with_db_port+set}" = set; then :
2556   withval=$with_db_port; DB_PORT=$withval
2557 else
2558   DB_PORT=
2559 fi
2560
2561
2562
2563
2564 # Check whether --with-db-rt-host was given.
2565 if test "${with_db_rt_host+set}" = set; then :
2566   withval=$with_db_rt_host; DB_RT_HOST=$withval
2567 else
2568   DB_RT_HOST=localhost
2569 fi
2570
2571
2572
2573 if test "$DB_TYPE" = "Pg" ; then
2574         DB_DBA="postgres"
2575 else
2576         DB_DBA="root"
2577 fi
2578
2579 # Check whether --with-db-dba was given.
2580 if test "${with_db_dba+set}" = set; then :
2581   withval=$with_db_dba; DB_DBA=$withval
2582 else
2583   DB_DBA="$DB_DBA"
2584 fi
2585
2586
2587
2588
2589 # Check whether --with-db-database was given.
2590 if test "${with_db_database+set}" = set; then :
2591   withval=$with_db_database; DB_DATABASE=$withval
2592 else
2593   DB_DATABASE=rt4
2594 fi
2595
2596
2597
2598
2599 # Check whether --with-db-rt-user was given.
2600 if test "${with_db_rt_user+set}" = set; then :
2601   withval=$with_db_rt_user; DB_RT_USER=$withval
2602 else
2603   DB_RT_USER=rt_user
2604 fi
2605
2606
2607
2608
2609 # Check whether --with-db-rt-pass was given.
2610 if test "${with_db_rt_pass+set}" = set; then :
2611   withval=$with_db_rt_pass; DB_RT_PASS=$withval
2612 else
2613   DB_RT_PASS=rt_pass
2614 fi
2615
2616
2617
2618
2619 # Check whether --with-web-user was given.
2620 if test "${with_web_user+set}" = set; then :
2621   withval=$with_web_user; WEB_USER=$withval
2622 else
2623
2624    WEB_USER=www
2625    for x in www www-data apache httpd nobody; do
2626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if user $x exists" >&5
2627 $as_echo_n "checking if user $x exists... " >&6; }
2628      if  $PERL -e"exit( defined getpwnam('$x') ? 0 : 1)" ; then :
2629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
2630 $as_echo "found" >&6; }; WEB_USER=$x ; break
2631 else
2632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2633 $as_echo "not found" >&6; }
2634 fi
2635    done
2636
2637
2638 fi
2639
2640
2641
2642
2643 # Check whether --with-web-group was given.
2644 if test "${with_web_group+set}" = set; then :
2645   withval=$with_web_group; WEB_GROUP=$withval
2646 else
2647
2648    WEB_GROUP=www
2649    for x in www www-data apache httpd nogroup nobody; do
2650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if group $x exists" >&5
2651 $as_echo_n "checking if group $x exists... " >&6; }
2652      if  $PERL -e"exit( defined getgrnam('$x') ? 0 : 1)" ; then :
2653    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
2654 $as_echo "found" >&6; }; WEB_GROUP=$x ; break
2655 else
2656    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2657 $as_echo "not found" >&6; }
2658 fi
2659    done
2660
2661 fi
2662
2663
2664
2665
2666 # Check whether --with-rt-group was given.
2667 if test "${with_rt_group+set}" = set; then :
2668   withval=$with_rt_group; RTGROUP=$withval
2669 else
2670
2671    RTGROUP=rt
2672    for x in rt3 rt $WEB_GROUP; do
2673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if group $x exists" >&5
2674 $as_echo_n "checking if group $x exists... " >&6; }
2675      if  $PERL -e"exit( defined getgrnam('$x') ? 0 : 1)" ; then :
2676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
2677 $as_echo "found" >&6; }; RTGROUP=$x ; break
2678 else
2679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2680 $as_echo "not found" >&6; }
2681 fi
2682    done
2683
2684 fi
2685
2686
2687
2688 my_group=$($PERL -MPOSIX=getgid -le 'print scalar getgrgid getgid')
2689 my_user=${USER:-$LOGNAME}
2690
2691 # Check whether --with-my-user-group was given.
2692 if test "${with_my_user_group+set}" = set; then :
2693   withval=$with_my_user_group; RTGROUP=$my_group
2694             BIN_OWNER=$my_user
2695             LIBS_OWNER=$my_user
2696             LIBS_GROUP=$my_group
2697             WEB_USER=$my_user
2698             WEB_GROUP=$my_group
2699 fi
2700
2701
2702 # Test for valid database names
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if database name is set" >&5
2704 $as_echo_n "checking if database name is set... " >&6; }
2705           if  echo $DB_DATABASE | $PERL -e 'exit(1) unless <> =~ /\S/' ; then :
2706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2707 $as_echo "yes" >&6; }
2708 else
2709    as_fn_error $? "no.  database name is not set" "$LINENO" 5
2710
2711 fi
2712
2713
2714 # Check whether --with-developer was given.
2715 if test "${with_developer+set}" = set; then :
2716   withval=$with_developer; RT_DEVELOPER=$withval
2717 else
2718   RT_DEVELOPER="0"
2719 fi
2720
2721 # Check whether --enable-developer was given.
2722 if test "${enable_developer+set}" = set; then :
2723   enableval=$enable_developer; RT_DEVELOPER=$enableval
2724 else
2725   RT_DEVELOPER=$RT_DEVELOPER
2726 fi
2727
2728 if test "$RT_DEVELOPER" = yes; then
2729         RT_DEVELOPER="1"
2730 else
2731         RT_DEVELOPER="0"
2732 fi
2733
2734
2735 # Extract the first word of "dot", so it can be a program name with args.
2736 set dummy dot; ac_word=$2
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if ${ac_cv_prog_RT_GRAPHVIZ+:} false; then :
2740   $as_echo_n "(cached) " >&6
2741 else
2742   if test -n "$RT_GRAPHVIZ"; then
2743   ac_cv_prog_RT_GRAPHVIZ="$RT_GRAPHVIZ" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748   IFS=$as_save_IFS
2749   test -z "$as_dir" && as_dir=.
2750     for ac_exec_ext in '' $ac_executable_extensions; do
2751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752     ac_cv_prog_RT_GRAPHVIZ=""yes""
2753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754     break 2
2755   fi
2756 done
2757   done
2758 IFS=$as_save_IFS
2759
2760   test -z "$ac_cv_prog_RT_GRAPHVIZ" && ac_cv_prog_RT_GRAPHVIZ=""no""
2761 fi
2762 fi
2763 RT_GRAPHVIZ=$ac_cv_prog_RT_GRAPHVIZ
2764 if test -n "$RT_GRAPHVIZ"; then
2765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RT_GRAPHVIZ" >&5
2766 $as_echo "$RT_GRAPHVIZ" >&6; }
2767 else
2768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770 fi
2771
2772
2773
2774 # Check whether --with-graphviz was given.
2775 if test "${with_graphviz+set}" = set; then :
2776   withval=$with_graphviz; RT_GRAPHVIZ=$withval
2777 fi
2778
2779 # Check whether --enable-graphviz was given.
2780 if test "${enable_graphviz+set}" = set; then :
2781   enableval=$enable_graphviz; RT_GRAPHVIZ=$enableval
2782 fi
2783
2784 if test "$RT_GRAPHVIZ" = yes; then
2785         RT_GRAPHVIZ="1"
2786 else
2787         RT_GRAPHVIZ="0"
2788 fi
2789
2790
2791 # Extract the first word of "gdlib-config", so it can be a program name with args.
2792 set dummy gdlib-config; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if ${ac_cv_prog_RT_GD+:} false; then :
2796   $as_echo_n "(cached) " >&6
2797 else
2798   if test -n "$RT_GD"; then
2799   ac_cv_prog_RT_GD="$RT_GD" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804   IFS=$as_save_IFS
2805   test -z "$as_dir" && as_dir=.
2806     for ac_exec_ext in '' $ac_executable_extensions; do
2807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808     ac_cv_prog_RT_GD=""yes""
2809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810     break 2
2811   fi
2812 done
2813   done
2814 IFS=$as_save_IFS
2815
2816   test -z "$ac_cv_prog_RT_GD" && ac_cv_prog_RT_GD=""no""
2817 fi
2818 fi
2819 RT_GD=$ac_cv_prog_RT_GD
2820 if test -n "$RT_GD"; then
2821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RT_GD" >&5
2822 $as_echo "$RT_GD" >&6; }
2823 else
2824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826 fi
2827
2828
2829
2830 # Check whether --with-gd was given.
2831 if test "${with_gd+set}" = set; then :
2832   withval=$with_gd; RT_GD=$withval
2833 fi
2834
2835 # Check whether --enable-gd was given.
2836 if test "${enable_gd+set}" = set; then :
2837   enableval=$enable_gd; RT_GD=$enableval
2838 fi
2839
2840 if test "$RT_GD" = yes; then
2841         RT_GD="1"
2842 else
2843         RT_GD="0"
2844 fi
2845
2846
2847 # Extract the first word of "gpg", so it can be a program name with args.
2848 set dummy gpg; ac_word=$2
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850 $as_echo_n "checking for $ac_word... " >&6; }
2851 if ${ac_cv_prog_RT_GPG_DEPS+:} false; then :
2852   $as_echo_n "(cached) " >&6
2853 else
2854   if test -n "$RT_GPG_DEPS"; then
2855   ac_cv_prog_RT_GPG_DEPS="$RT_GPG_DEPS" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860   IFS=$as_save_IFS
2861   test -z "$as_dir" && as_dir=.
2862     for ac_exec_ext in '' $ac_executable_extensions; do
2863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864     ac_cv_prog_RT_GPG_DEPS=""yes""
2865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866     break 2
2867   fi
2868 done
2869   done
2870 IFS=$as_save_IFS
2871
2872   test -z "$ac_cv_prog_RT_GPG_DEPS" && ac_cv_prog_RT_GPG_DEPS=""no""
2873 fi
2874 fi
2875 RT_GPG_DEPS=$ac_cv_prog_RT_GPG_DEPS
2876 if test -n "$RT_GPG_DEPS"; then
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RT_GPG_DEPS" >&5
2878 $as_echo "$RT_GPG_DEPS" >&6; }
2879 else
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 fi
2883
2884
2885 if test "$RT_GPG_DEPS" = yes; then
2886         RT_GPG_DEPS="1"
2887 else
2888         RT_GPG_DEPS="0"
2889 fi
2890 # Check whether --enable-gpg was given.
2891 if test "${enable_gpg+set}" = set; then :
2892   enableval=$enable_gpg; RT_GPG=$enableval
2893 fi
2894
2895 if test "$RT_GPG" = yes; then
2896         RT_GPG="1"
2897         RT_GPG_DEPS="1"
2898 else
2899         if test "$RT_GPG" = no; then
2900                 RT_GPG="0"
2901                 RT_GPG_DEPS="0"
2902         else
2903                 RT_GPG="0"
2904         fi
2905 fi
2906
2907
2908
2909
2910 # Extract the first word of "openssl", so it can be a program name with args.
2911 set dummy openssl; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_RT_SMIME_DEPS+:} false; then :
2915   $as_echo_n "(cached) " >&6
2916 else
2917   if test -n "$RT_SMIME_DEPS"; then
2918   ac_cv_prog_RT_SMIME_DEPS="$RT_SMIME_DEPS" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923   IFS=$as_save_IFS
2924   test -z "$as_dir" && as_dir=.
2925     for ac_exec_ext in '' $ac_executable_extensions; do
2926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927     ac_cv_prog_RT_SMIME_DEPS=""yes""
2928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929     break 2
2930   fi
2931 done
2932   done
2933 IFS=$as_save_IFS
2934
2935   test -z "$ac_cv_prog_RT_SMIME_DEPS" && ac_cv_prog_RT_SMIME_DEPS=""no""
2936 fi
2937 fi
2938 RT_SMIME_DEPS=$ac_cv_prog_RT_SMIME_DEPS
2939 if test -n "$RT_SMIME_DEPS"; then
2940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RT_SMIME_DEPS" >&5
2941 $as_echo "$RT_SMIME_DEPS" >&6; }
2942 else
2943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2945 fi
2946
2947
2948 if test "$RT_SMIME_DEPS" = yes; then
2949         RT_SMIME_DEPS="1"
2950 else
2951         RT_SMIME_DEPS="0"
2952 fi
2953 # Check whether --enable-smime was given.
2954 if test "${enable_smime+set}" = set; then :
2955   enableval=$enable_smime; RT_SMIME=$enableval
2956 fi
2957
2958 if test "$RT_SMIME" = yes; then
2959         RT_SMIME="1"
2960         RT_SMIME_DEPS="1"
2961 else
2962         if test "$RT_SMIME" = no; then
2963                 RT_SMIME="0"
2964                 RT_SMIME_DEPS="0"
2965         else
2966                 RT_SMIME="0"
2967         fi
2968 fi
2969
2970
2971
2972
2973
2974 RT_VERSION_MAJOR=${rt_version_major}
2975
2976 RT_VERSION_MINOR=${rt_version_minor}
2977
2978 RT_VERSION_PATCH=${rt_version_patch}
2979
2980
2981 RT_PATH=${exp_prefix}
2982
2983 RT_DOC_PATH=${exp_manualdir}
2984
2985 RT_LOCAL_PATH=${exp_customdir}
2986
2987 RT_LIB_PATH=${exp_libdir}
2988
2989 RT_LEXICON_PATH=${exp_lexdir}
2990
2991 RT_STATIC_PATH=${exp_staticdir}
2992
2993 RT_ETC_PATH=${exp_sysconfdir}
2994
2995 CONFIG_FILE_PATH=${exp_sysconfdir}
2996
2997 RT_BIN_PATH=${exp_bindir}
2998
2999 RT_SBIN_PATH=${exp_sbindir}
3000
3001 RT_VAR_PATH=${exp_localstatedir}
3002
3003 RT_MAN_PATH=${exp_mandir}
3004
3005 RT_FONT_PATH=${exp_fontdir}
3006
3007 RT_PLUGIN_PATH=${exp_plugindir}
3008
3009 MASON_DATA_PATH=${exp_masonstatedir}
3010
3011 MASON_SESSION_PATH=${exp_sessionstatedir}
3012
3013 MASON_HTML_PATH=${exp_htmldir}
3014
3015 LOCAL_ETC_PATH=${exp_custometcdir}
3016
3017 MASON_LOCAL_HTML_PATH=${exp_customhtmldir}
3018
3019 LOCAL_LEXICON_PATH=${exp_customlexdir}
3020
3021 LOCAL_STATIC_PATH=${exp_customstaticdir}
3022
3023 LOCAL_LIB_PATH=${exp_customlibdir}
3024
3025 LOCAL_PLUGIN_PATH=${exp_customplugindir}
3026
3027 RT_LOG_PATH=${exp_logfiledir}
3028
3029
3030 if test ${exp_sysconfdir} = "etc" -o ${exp_sysconfdir} = "etc/rt"; then
3031 RT_PATH_R=${exp_prefix}
3032
3033 RT_DOC_PATH_R=${exp_prefix}/${exp_manualdir}
3034
3035 RT_LOCAL_PATH_R=${exp_prefix}/${exp_customdir}
3036
3037 RT_LIB_PATH_R=${exp_prefix}/${exp_libdir}
3038
3039 RT_ETC_PATH_R=${exp_prefix}/${exp_sysconfdir}
3040
3041 CONFIG_FILE_PATH_R=${exp_prefix}/${exp_sysconfdir}
3042
3043 RT_BIN_PATH_R=${exp_prefix}/${exp_bindir}
3044
3045 RT_SBIN_PATH_R=${exp_prefix}/${exp_sbindir}
3046
3047 RT_VAR_PATH_R=${exp_prefix}/${exp_localstatedir}
3048
3049 RT_MAN_PATH_R=${exp_prefix}/${exp_mandir}
3050
3051 RT_FONT_PATH_R=${exp_prefix}/${exp_fontdir}
3052
3053 RT_LEXICON_PATH_R=${exp_prefix}/${exp_lexdir}
3054
3055 RT_STATIC_PATH_R=${exp_prefix}/${exp_staticdir}
3056
3057 RT_PLUGIN_PATH_R=${exp_prefix}/${exp_plugindir}
3058
3059 MASON_DATA_PATH_R=${exp_prefix}/${exp_masonstatedir}
3060
3061 MASON_SESSION_PATH_R=${exp_prefix}/${exp_sessionstatedir}
3062
3063 MASON_HTML_PATH_R=${exp_prefix}/${exp_htmldir}
3064
3065 LOCAL_ETC_PATH_R=${exp_prefix}/${exp_custometcdir}
3066
3067 MASON_LOCAL_HTML_PATH_R=${exp_prefix}/${exp_customhtmldir}
3068
3069 LOCAL_LEXICON_PATH_R=${exp_prefix}/${exp_customlexdir}
3070
3071 LOCAL_STATIC_PATH_R=${exp_prefix}/${exp_customstaticdir}
3072
3073 LOCAL_LIB_PATH_R=${exp_prefix}/${exp_customlibdir}
3074
3075 LOCAL_PLUGIN_PATH_R=${exp_prefix}/${exp_customplugindir}
3076
3077 RT_LOG_PATH_R=${exp_prefix}/${exp_logfiledir}
3078
3079 else
3080 RT_PATH_R=${exp_prefix}
3081
3082 RT_DOC_PATH_R=${exp_manualdir}
3083
3084 RT_LOCAL_PATH_R=${exp_customdir}
3085
3086 RT_LIB_PATH_R=${exp_libdir}
3087
3088 RT_LEXICON_PATH_R=${exp_lexdir}
3089
3090 RT_STATIC_PATH_R=${exp_staticdir}
3091
3092 RT_ETC_PATH_R=${exp_sysconfdir}
3093
3094 RT_PLUGIN_PATH_R=${exp_plugindir}
3095
3096 CONFIG_FILE_PATH_R=${exp_sysconfdir}
3097
3098 RT_BIN_PATH_R=${exp_bindir}
3099
3100 RT_SBIN_PATH_R=${exp_sbindir}
3101
3102 RT_VAR_PATH_R=${exp_localstatedir}
3103
3104 RT_MAN_PATH_R=${exp_mandir}
3105
3106 RT_FONT_PATH_R=${exp_fontdir}
3107
3108 MASON_DATA_PATH_R=${exp_masonstatedir}
3109
3110 MASON_SESSION_PATH_R=${exp_sessionstatedir}
3111
3112 MASON_HTML_PATH_R=${exp_htmldir}
3113
3114 LOCAL_ETC_PATH_R=${exp_custometcdir}
3115
3116 MASON_LOCAL_HTML_PATH_R=${exp_customhtmldir}
3117
3118 LOCAL_LEXICON_PATH_R=${exp_customlexdir}
3119
3120 LOCAL_STATIC_PATH_R=${exp_customstaticdir}
3121
3122 LOCAL_PLUGIN_PATH_R=${exp_customplugindir}
3123
3124 LOCAL_LIB_PATH_R=${exp_customlibdir}
3125
3126 RT_LOG_PATH_R=${exp_logfiledir}
3127
3128
3129 fi
3130
3131
3132 ac_config_files="$ac_config_files etc/upgrade/3.8-ical-extension etc/upgrade/4.0-customfield-checkbox-extension etc/upgrade/generate-rtaddressregexp etc/upgrade/sanity-check-stylesheets etc/upgrade/shrink-cgm-table etc/upgrade/shrink-transactions-table etc/upgrade/split-out-cf-categories etc/upgrade/switch-templates-to etc/upgrade/time-worked-history etc/upgrade/upgrade-articles etc/upgrade/vulnerable-passwords sbin/rt-attributes-viewer sbin/rt-preferences-viewer sbin/rt-session-viewer sbin/rt-dump-metadata sbin/rt-setup-database sbin/rt-test-dependencies sbin/rt-email-digest sbin/rt-email-dashboards sbin/rt-clean-sessions sbin/rt-shredder sbin/rt-validator sbin/rt-validate-aliases sbin/rt-email-group-admin sbin/rt-server sbin/rt-server.fcgi sbin/standalone_httpd sbin/rt-setup-fulltext-index sbin/rt-fulltext-indexer sbin/rt-serializer sbin/rt-importer bin/rt-crontool bin/rt-mailgate bin/rt"
3133
3134
3135 ac_config_files="$ac_config_files Makefile etc/RT_Config.pm lib/RT/Generated.pm t/data/configs/apache2.2+mod_perl.conf t/data/configs/apache2.2+fastcgi.conf t/data/configs/apache2.4+mod_perl.conf t/data/configs/apache2.4+fastcgi.conf"
3136
3137 cat >confcache <<\_ACEOF
3138 # This file is a shell script that caches the results of configure
3139 # tests run on this system so they can be shared between configure
3140 # scripts and configure runs, see configure's option --config-cache.
3141 # It is not useful on other systems.  If it contains results you don't
3142 # want to keep, you may remove or edit it.
3143 #
3144 # config.status only pays attention to the cache file if you give it
3145 # the --recheck option to rerun configure.
3146 #
3147 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3148 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3149 # following values.
3150
3151 _ACEOF
3152
3153 # The following way of writing the cache mishandles newlines in values,
3154 # but we know of no workaround that is simple, portable, and efficient.
3155 # So, we kill variables containing newlines.
3156 # Ultrix sh set writes to stderr and can't be redirected directly,
3157 # and sets the high bit in the cache file unless we assign to the vars.
3158 (
3159   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3160     eval ac_val=\$$ac_var
3161     case $ac_val in #(
3162     *${as_nl}*)
3163       case $ac_var in #(
3164       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3165 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3166       esac
3167       case $ac_var in #(
3168       _ | IFS | as_nl) ;; #(
3169       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3170       *) { eval $ac_var=; unset $ac_var;} ;;
3171       esac ;;
3172     esac
3173   done
3174
3175   (set) 2>&1 |
3176     case $as_nl`(ac_space=' '; set) 2>&1` in #(
3177     *${as_nl}ac_space=\ *)
3178       # `set' does not quote correctly, so add quotes: double-quote
3179       # substitution turns \\\\ into \\, and sed turns \\ into \.
3180       sed -n \
3181         "s/'/'\\\\''/g;
3182           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3183       ;; #(
3184     *)
3185       # `set' quotes correctly as required by POSIX, so do not add quotes.
3186       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3187       ;;
3188     esac |
3189     sort
3190 ) |
3191   sed '
3192      /^ac_cv_env_/b end
3193      t clear
3194      :clear
3195      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3196      t end
3197      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3198      :end' >>confcache
3199 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3200   if test -w "$cache_file"; then
3201     if test "x$cache_file" != "x/dev/null"; then
3202       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3203 $as_echo "$as_me: updating cache $cache_file" >&6;}
3204       if test ! -f "$cache_file" || test -h "$cache_file"; then
3205         cat confcache >"$cache_file"
3206       else
3207         case $cache_file in #(
3208         */* | ?:*)
3209           mv -f confcache "$cache_file"$$ &&
3210           mv -f "$cache_file"$$ "$cache_file" ;; #(
3211         *)
3212           mv -f confcache "$cache_file" ;;
3213         esac
3214       fi
3215     fi
3216   else
3217     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3218 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3219   fi
3220 fi
3221 rm -f confcache
3222
3223 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3224 # Let make expand exec_prefix.
3225 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3226
3227 # Transform confdefs.h into DEFS.
3228 # Protect against shell expansion while executing Makefile rules.
3229 # Protect against Makefile macro expansion.
3230 #
3231 # If the first sed substitution is executed (which looks for macros that
3232 # take arguments), then branch to the quote section.  Otherwise,
3233 # look for a macro that doesn't take arguments.
3234 ac_script='
3235 :mline
3236 /\\$/{
3237  N
3238  s,\\\n,,
3239  b mline
3240 }
3241 t clear
3242 :clear
3243 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
3244 t quote
3245 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
3246 t quote
3247 b any
3248 :quote
3249 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3250 s/\[/\\&/g
3251 s/\]/\\&/g
3252 s/\$/$$/g
3253 H
3254 :any
3255 ${
3256         g
3257         s/^\n//
3258         s/\n/ /g
3259         p
3260 }
3261 '
3262 DEFS=`sed -n "$ac_script" confdefs.h`
3263
3264
3265 ac_libobjs=
3266 ac_ltlibobjs=
3267 U=
3268 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3269   # 1. Remove the extension, and $U if already installed.
3270   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3271   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3272   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3273   #    will be set to the directory where LIBOBJS objects are built.
3274   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3275   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3276 done
3277 LIBOBJS=$ac_libobjs
3278
3279 LTLIBOBJS=$ac_ltlibobjs
3280
3281
3282
3283 : "${CONFIG_STATUS=./config.status}"
3284 ac_write_fail=0
3285 ac_clean_files_save=$ac_clean_files
3286 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3288 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3289 as_write_fail=0
3290 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3291 #! $SHELL
3292 # Generated by $as_me.
3293 # Run this file to recreate the current configuration.
3294 # Compiler output produced by configure, useful for debugging
3295 # configure, is in config.log if it exists.
3296
3297 debug=false
3298 ac_cs_recheck=false
3299 ac_cs_silent=false
3300
3301 SHELL=\${CONFIG_SHELL-$SHELL}
3302 export SHELL
3303 _ASEOF
3304 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3305 ## -------------------- ##
3306 ## M4sh Initialization. ##
3307 ## -------------------- ##
3308
3309 # Be more Bourne compatible
3310 DUALCASE=1; export DUALCASE # for MKS sh
3311 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3312   emulate sh
3313   NULLCMD=:
3314   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3315   # is contrary to our usage.  Disable this feature.
3316   alias -g '${1+"$@"}'='"$@"'
3317   setopt NO_GLOB_SUBST
3318 else
3319   case `(set -o) 2>/dev/null` in #(
3320   *posix*) :
3321     set -o posix ;; #(
3322   *) :
3323      ;;
3324 esac
3325 fi
3326
3327
3328 as_nl='
3329 '
3330 export as_nl
3331 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3332 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3333 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3334 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3335 # Prefer a ksh shell builtin over an external printf program on Solaris,
3336 # but without wasting forks for bash or zsh.
3337 if test -z "$BASH_VERSION$ZSH_VERSION" \
3338     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3339   as_echo='print -r --'
3340   as_echo_n='print -rn --'
3341 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3342   as_echo='printf %s\n'
3343   as_echo_n='printf %s'
3344 else
3345   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3346     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3347     as_echo_n='/usr/ucb/echo -n'
3348   else
3349     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3350     as_echo_n_body='eval
3351       arg=$1;
3352       case $arg in #(
3353       *"$as_nl"*)
3354         expr "X$arg" : "X\\(.*\\)$as_nl";
3355         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3356       esac;
3357       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3358     '
3359     export as_echo_n_body
3360     as_echo_n='sh -c $as_echo_n_body as_echo'
3361   fi
3362   export as_echo_body
3363   as_echo='sh -c $as_echo_body as_echo'
3364 fi
3365
3366 # The user is always right.
3367 if test "${PATH_SEPARATOR+set}" != set; then
3368   PATH_SEPARATOR=:
3369   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3370     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3371       PATH_SEPARATOR=';'
3372   }
3373 fi
3374
3375
3376 # IFS
3377 # We need space, tab and new line, in precisely that order.  Quoting is
3378 # there to prevent editors from complaining about space-tab.
3379 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3380 # splitting by setting IFS to empty value.)
3381 IFS=" ""        $as_nl"
3382
3383 # Find who we are.  Look in the path if we contain no directory separator.
3384 as_myself=
3385 case $0 in #((
3386   *[\\/]* ) as_myself=$0 ;;
3387   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390   IFS=$as_save_IFS
3391   test -z "$as_dir" && as_dir=.
3392     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3393   done
3394 IFS=$as_save_IFS
3395
3396      ;;
3397 esac
3398 # We did not find ourselves, most probably we were run as `sh COMMAND'
3399 # in which case we are not to be found in the path.
3400 if test "x$as_myself" = x; then
3401   as_myself=$0
3402 fi
3403 if test ! -f "$as_myself"; then
3404   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3405   exit 1
3406 fi
3407
3408 # Unset variables that we do not need and which cause bugs (e.g. in
3409 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3410 # suppresses any "Segmentation fault" message there.  '((' could
3411 # trigger a bug in pdksh 5.2.14.
3412 for as_var in BASH_ENV ENV MAIL MAILPATH
3413 do eval test x\${$as_var+set} = xset \
3414   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3415 done
3416 PS1='$ '
3417 PS2='> '
3418 PS4='+ '
3419
3420 # NLS nuisances.
3421 LC_ALL=C
3422 export LC_ALL
3423 LANGUAGE=C
3424 export LANGUAGE
3425
3426 # CDPATH.
3427 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3428
3429
3430 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3431 # ----------------------------------------
3432 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3433 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3434 # script with STATUS, using 1 if that was 0.
3435 as_fn_error ()
3436 {
3437   as_status=$1; test $as_status -eq 0 && as_status=1
3438   if test "$4"; then
3439     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3440     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3441   fi
3442   $as_echo "$as_me: error: $2" >&2
3443   as_fn_exit $as_status
3444 } # as_fn_error
3445
3446
3447 # as_fn_set_status STATUS
3448 # -----------------------
3449 # Set $? to STATUS, without forking.
3450 as_fn_set_status ()
3451 {
3452   return $1
3453 } # as_fn_set_status
3454
3455 # as_fn_exit STATUS
3456 # -----------------
3457 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3458 as_fn_exit ()
3459 {
3460   set +e
3461   as_fn_set_status $1
3462   exit $1
3463 } # as_fn_exit
3464
3465 # as_fn_unset VAR
3466 # ---------------
3467 # Portably unset VAR.
3468 as_fn_unset ()
3469 {
3470   { eval $1=; unset $1;}
3471 }
3472 as_unset=as_fn_unset
3473 # as_fn_append VAR VALUE
3474 # ----------------------
3475 # Append the text in VALUE to the end of the definition contained in VAR. Take
3476 # advantage of any shell optimizations that allow amortized linear growth over
3477 # repeated appends, instead of the typical quadratic growth present in naive
3478 # implementations.
3479 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3480   eval 'as_fn_append ()
3481   {
3482     eval $1+=\$2
3483   }'
3484 else
3485   as_fn_append ()
3486   {
3487     eval $1=\$$1\$2
3488   }
3489 fi # as_fn_append
3490
3491 # as_fn_arith ARG...
3492 # ------------------
3493 # Perform arithmetic evaluation on the ARGs, and store the result in the
3494 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3495 # must be portable across $(()) and expr.
3496 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3497   eval 'as_fn_arith ()
3498   {
3499     as_val=$(( $* ))
3500   }'
3501 else
3502   as_fn_arith ()
3503   {
3504     as_val=`expr "$@" || test $? -eq 1`
3505   }
3506 fi # as_fn_arith
3507
3508
3509 if expr a : '\(a\)' >/dev/null 2>&1 &&
3510    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3511   as_expr=expr
3512 else
3513   as_expr=false
3514 fi
3515
3516 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3517   as_basename=basename
3518 else
3519   as_basename=false
3520 fi
3521
3522 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3523   as_dirname=dirname
3524 else
3525   as_dirname=false
3526 fi
3527
3528 as_me=`$as_basename -- "$0" ||
3529 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3530          X"$0" : 'X\(//\)$' \| \
3531          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3532 $as_echo X/"$0" |
3533     sed '/^.*\/\([^/][^/]*\)\/*$/{
3534             s//\1/
3535             q
3536           }
3537           /^X\/\(\/\/\)$/{
3538             s//\1/
3539             q
3540           }
3541           /^X\/\(\/\).*/{
3542             s//\1/
3543             q
3544           }
3545           s/.*/./; q'`
3546
3547 # Avoid depending upon Character Ranges.
3548 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3549 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3550 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3551 as_cr_digits='0123456789'
3552 as_cr_alnum=$as_cr_Letters$as_cr_digits
3553
3554 ECHO_C= ECHO_N= ECHO_T=
3555 case `echo -n x` in #(((((
3556 -n*)
3557   case `echo 'xy\c'` in
3558   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
3559   xy)  ECHO_C='\c';;
3560   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3561        ECHO_T=' ';;
3562   esac;;
3563 *)
3564   ECHO_N='-n';;
3565 esac
3566
3567 rm -f conf$$ conf$$.exe conf$$.file
3568 if test -d conf$$.dir; then
3569   rm -f conf$$.dir/conf$$.file
3570 else
3571   rm -f conf$$.dir
3572   mkdir conf$$.dir 2>/dev/null
3573 fi
3574 if (echo >conf$$.file) 2>/dev/null; then
3575   if ln -s conf$$.file conf$$ 2>/dev/null; then
3576     as_ln_s='ln -s'
3577     # ... but there are two gotchas:
3578     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3579     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3580     # In both cases, we have to default to `cp -pR'.
3581     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3582       as_ln_s='cp -pR'
3583   elif ln conf$$.file conf$$ 2>/dev/null; then
3584     as_ln_s=ln
3585   else
3586     as_ln_s='cp -pR'
3587   fi
3588 else
3589   as_ln_s='cp -pR'
3590 fi
3591 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3592 rmdir conf$$.dir 2>/dev/null
3593
3594
3595 # as_fn_mkdir_p
3596 # -------------
3597 # Create "$as_dir" as a directory, including parents if necessary.
3598 as_fn_mkdir_p ()
3599 {
3600
3601   case $as_dir in #(
3602   -*) as_dir=./$as_dir;;
3603   esac
3604   test -d "$as_dir" || eval $as_mkdir_p || {
3605     as_dirs=
3606     while :; do
3607       case $as_dir in #(
3608       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3609       *) as_qdir=$as_dir;;
3610       esac
3611       as_dirs="'$as_qdir' $as_dirs"
3612       as_dir=`$as_dirname -- "$as_dir" ||
3613 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3614          X"$as_dir" : 'X\(//\)[^/]' \| \
3615          X"$as_dir" : 'X\(//\)$' \| \
3616          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3617 $as_echo X"$as_dir" |
3618     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3619             s//\1/
3620             q
3621           }
3622           /^X\(\/\/\)[^/].*/{
3623             s//\1/
3624             q
3625           }
3626           /^X\(\/\/\)$/{
3627             s//\1/
3628             q
3629           }
3630           /^X\(\/\).*/{
3631             s//\1/
3632             q
3633           }
3634           s/.*/./; q'`
3635       test -d "$as_dir" && break
3636     done
3637     test -z "$as_dirs" || eval "mkdir $as_dirs"
3638   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3639
3640
3641 } # as_fn_mkdir_p
3642 if mkdir -p . 2>/dev/null; then
3643   as_mkdir_p='mkdir -p "$as_dir"'
3644 else
3645   test -d ./-p && rmdir ./-p
3646   as_mkdir_p=false
3647 fi
3648
3649
3650 # as_fn_executable_p FILE
3651 # -----------------------
3652 # Test if FILE is an executable regular file.
3653 as_fn_executable_p ()
3654 {
3655   test -f "$1" && test -x "$1"
3656 } # as_fn_executable_p
3657 as_test_x='test -x'
3658 as_executable_p=as_fn_executable_p
3659
3660 # Sed expression to map a string onto a valid CPP name.
3661 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3662
3663 # Sed expression to map a string onto a valid variable name.
3664 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3665
3666
3667 exec 6>&1
3668 ## ----------------------------------- ##
3669 ## Main body of $CONFIG_STATUS script. ##
3670 ## ----------------------------------- ##
3671 _ASEOF
3672 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3673
3674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3675 # Save the log message, to keep $0 and so on meaningful, and to
3676 # report actual input values of CONFIG_FILES etc. instead of their
3677 # values after options handling.
3678 ac_log="
3679 This file was extended by RT $as_me rt-4.2.14, which was
3680 generated by GNU Autoconf 2.69.  Invocation command line was
3681
3682   CONFIG_FILES    = $CONFIG_FILES
3683   CONFIG_HEADERS  = $CONFIG_HEADERS
3684   CONFIG_LINKS    = $CONFIG_LINKS
3685   CONFIG_COMMANDS = $CONFIG_COMMANDS
3686   $ $0 $@
3687
3688 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3689 "
3690
3691 _ACEOF
3692
3693 case $ac_config_files in *"
3694 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3695 esac
3696
3697
3698
3699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3700 # Files that config.status was made for.
3701 config_files="$ac_config_files"
3702
3703 _ACEOF
3704
3705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3706 ac_cs_usage="\
3707 \`$as_me' instantiates files and other configuration actions
3708 from templates according to the current configuration.  Unless the files
3709 and actions are specified as TAGs, all are instantiated by default.
3710
3711 Usage: $0 [OPTION]... [TAG]...
3712
3713   -h, --help       print this help, then exit
3714   -V, --version    print version number and configuration settings, then exit
3715       --config     print configuration, then exit
3716   -q, --quiet, --silent
3717                    do not print progress messages
3718   -d, --debug      don't remove temporary files
3719       --recheck    update $as_me by reconfiguring in the same conditions
3720       --file=FILE[:TEMPLATE]
3721                    instantiate the configuration file FILE
3722
3723 Configuration files:
3724 $config_files
3725
3726 Report bugs to <rt-bugs@bestpractical.com>."
3727
3728 _ACEOF
3729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3730 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3731 ac_cs_version="\\
3732 RT config.status rt-4.2.14
3733 configured by $0, generated by GNU Autoconf 2.69,
3734   with options \\"\$ac_cs_config\\"
3735
3736 Copyright (C) 2012 Free Software Foundation, Inc.
3737 This config.status script is free software; the Free Software Foundation
3738 gives unlimited permission to copy, distribute and modify it."
3739
3740 ac_pwd='$ac_pwd'
3741 srcdir='$srcdir'
3742 INSTALL='$INSTALL'
3743 test -n "\$AWK" || AWK=awk
3744 _ACEOF
3745
3746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3747 # The default lists apply if the user does not specify any file.
3748 ac_need_defaults=:
3749 while test $# != 0
3750 do
3751   case $1 in
3752   --*=?*)
3753     ac_option=`expr "X$1" : 'X\([^=]*\)='`
3754     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3755     ac_shift=:
3756     ;;
3757   --*=)
3758     ac_option=`expr "X$1" : 'X\([^=]*\)='`
3759     ac_optarg=
3760     ac_shift=:
3761     ;;
3762   *)
3763     ac_option=$1
3764     ac_optarg=$2
3765     ac_shift=shift
3766     ;;
3767   esac
3768
3769   case $ac_option in
3770   # Handling of the options.
3771   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3772     ac_cs_recheck=: ;;
3773   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3774     $as_echo "$ac_cs_version"; exit ;;
3775   --config | --confi | --conf | --con | --co | --c )
3776     $as_echo "$ac_cs_config"; exit ;;
3777   --debug | --debu | --deb | --de | --d | -d )
3778     debug=: ;;
3779   --file | --fil | --fi | --f )
3780     $ac_shift
3781     case $ac_optarg in
3782     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3783     '') as_fn_error $? "missing file argument" ;;
3784     esac
3785     as_fn_append CONFIG_FILES " '$ac_optarg'"
3786     ac_need_defaults=false;;
3787   --he | --h |  --help | --hel | -h )
3788     $as_echo "$ac_cs_usage"; exit ;;
3789   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3790   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3791     ac_cs_silent=: ;;
3792
3793   # This is an error.
3794   -*) as_fn_error $? "unrecognized option: \`$1'
3795 Try \`$0 --help' for more information." ;;
3796
3797   *) as_fn_append ac_config_targets " $1"
3798      ac_need_defaults=false ;;
3799
3800   esac
3801   shift
3802 done
3803
3804 ac_configure_extra_args=
3805
3806 if $ac_cs_silent; then
3807   exec 6>/dev/null
3808   ac_configure_extra_args="$ac_configure_extra_args --silent"
3809 fi
3810
3811 _ACEOF
3812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3813 if \$ac_cs_recheck; then
3814   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3815   shift
3816   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3817   CONFIG_SHELL='$SHELL'
3818   export CONFIG_SHELL
3819   exec "\$@"
3820 fi
3821
3822 _ACEOF
3823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3824 exec 5>>config.log
3825 {
3826   echo
3827   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3828 ## Running $as_me. ##
3829 _ASBOX
3830   $as_echo "$ac_log"
3831 } >&5
3832
3833 _ACEOF
3834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3835 _ACEOF
3836
3837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3838
3839 # Handling of arguments.
3840 for ac_config_target in $ac_config_targets
3841 do
3842   case $ac_config_target in
3843     "etc/upgrade/3.8-ical-extension") CONFIG_FILES="$CONFIG_FILES etc/upgrade/3.8-ical-extension" ;;
3844     "etc/upgrade/4.0-customfield-checkbox-extension") CONFIG_FILES="$CONFIG_FILES etc/upgrade/4.0-customfield-checkbox-extension" ;;
3845     "etc/upgrade/generate-rtaddressregexp") CONFIG_FILES="$CONFIG_FILES etc/upgrade/generate-rtaddressregexp" ;;
3846     "etc/upgrade/sanity-check-stylesheets") CONFIG_FILES="$CONFIG_FILES etc/upgrade/sanity-check-stylesheets" ;;
3847     "etc/upgrade/shrink-cgm-table") CONFIG_FILES="$CONFIG_FILES etc/upgrade/shrink-cgm-table" ;;
3848     "etc/upgrade/shrink-transactions-table") CONFIG_FILES="$CONFIG_FILES etc/upgrade/shrink-transactions-table" ;;
3849     "etc/upgrade/split-out-cf-categories") CONFIG_FILES="$CONFIG_FILES etc/upgrade/split-out-cf-categories" ;;
3850     "etc/upgrade/switch-templates-to") CONFIG_FILES="$CONFIG_FILES etc/upgrade/switch-templates-to" ;;
3851     "etc/upgrade/time-worked-history") CONFIG_FILES="$CONFIG_FILES etc/upgrade/time-worked-history" ;;
3852     "etc/upgrade/upgrade-articles") CONFIG_FILES="$CONFIG_FILES etc/upgrade/upgrade-articles" ;;
3853     "etc/upgrade/vulnerable-passwords") CONFIG_FILES="$CONFIG_FILES etc/upgrade/vulnerable-passwords" ;;
3854     "sbin/rt-attributes-viewer") CONFIG_FILES="$CONFIG_FILES sbin/rt-attributes-viewer" ;;
3855     "sbin/rt-preferences-viewer") CONFIG_FILES="$CONFIG_FILES sbin/rt-preferences-viewer" ;;
3856     "sbin/rt-session-viewer") CONFIG_FILES="$CONFIG_FILES sbin/rt-session-viewer" ;;
3857     "sbin/rt-dump-metadata") CONFIG_FILES="$CONFIG_FILES sbin/rt-dump-metadata" ;;
3858     "sbin/rt-setup-database") CONFIG_FILES="$CONFIG_FILES sbin/rt-setup-database" ;;
3859     "sbin/rt-test-dependencies") CONFIG_FILES="$CONFIG_FILES sbin/rt-test-dependencies" ;;
3860     "sbin/rt-email-digest") CONFIG_FILES="$CONFIG_FILES sbin/rt-email-digest" ;;
3861     "sbin/rt-email-dashboards") CONFIG_FILES="$CONFIG_FILES sbin/rt-email-dashboards" ;;
3862     "sbin/rt-clean-sessions") CONFIG_FILES="$CONFIG_FILES sbin/rt-clean-sessions" ;;
3863     "sbin/rt-shredder") CONFIG_FILES="$CONFIG_FILES sbin/rt-shredder" ;;
3864     "sbin/rt-validator") CONFIG_FILES="$CONFIG_FILES sbin/rt-validator" ;;
3865     "sbin/rt-validate-aliases") CONFIG_FILES="$CONFIG_FILES sbin/rt-validate-aliases" ;;
3866     "sbin/rt-email-group-admin") CONFIG_FILES="$CONFIG_FILES sbin/rt-email-group-admin" ;;
3867     "sbin/rt-server") CONFIG_FILES="$CONFIG_FILES sbin/rt-server" ;;
3868     "sbin/rt-server.fcgi") CONFIG_FILES="$CONFIG_FILES sbin/rt-server.fcgi" ;;
3869     "sbin/standalone_httpd") CONFIG_FILES="$CONFIG_FILES sbin/standalone_httpd" ;;
3870     "sbin/rt-setup-fulltext-index") CONFIG_FILES="$CONFIG_FILES sbin/rt-setup-fulltext-index" ;;
3871     "sbin/rt-fulltext-indexer") CONFIG_FILES="$CONFIG_FILES sbin/rt-fulltext-indexer" ;;
3872     "sbin/rt-serializer") CONFIG_FILES="$CONFIG_FILES sbin/rt-serializer" ;;
3873     "sbin/rt-importer") CONFIG_FILES="$CONFIG_FILES sbin/rt-importer" ;;
3874     "bin/rt-crontool") CONFIG_FILES="$CONFIG_FILES bin/rt-crontool" ;;
3875     "bin/rt-mailgate") CONFIG_FILES="$CONFIG_FILES bin/rt-mailgate" ;;
3876     "bin/rt") CONFIG_FILES="$CONFIG_FILES bin/rt" ;;
3877     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3878     "etc/RT_Config.pm") CONFIG_FILES="$CONFIG_FILES etc/RT_Config.pm" ;;
3879     "lib/RT/Generated.pm") CONFIG_FILES="$CONFIG_FILES lib/RT/Generated.pm" ;;
3880     "t/data/configs/apache2.2+mod_perl.conf") CONFIG_FILES="$CONFIG_FILES t/data/configs/apache2.2+mod_perl.conf" ;;
3881     "t/data/configs/apache2.2+fastcgi.conf") CONFIG_FILES="$CONFIG_FILES t/data/configs/apache2.2+fastcgi.conf" ;;
3882     "t/data/configs/apache2.4+mod_perl.conf") CONFIG_FILES="$CONFIG_FILES t/data/configs/apache2.4+mod_perl.conf" ;;
3883     "t/data/configs/apache2.4+fastcgi.conf") CONFIG_FILES="$CONFIG_FILES t/data/configs/apache2.4+fastcgi.conf" ;;
3884
3885   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3886   esac
3887 done
3888
3889
3890 # If the user did not use the arguments to specify the items to instantiate,
3891 # then the envvar interface is used.  Set only those that are not.
3892 # We use the long form for the default assignment because of an extremely
3893 # bizarre bug on SunOS 4.1.3.
3894 if $ac_need_defaults; then
3895   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3896 fi
3897
3898 # Have a temporary directory for convenience.  Make it in the build tree
3899 # simply because there is no reason against having it here, and in addition,
3900 # creating and moving files from /tmp can sometimes cause problems.
3901 # Hook for its removal unless debugging.
3902 # Note that there is a small window in which the directory will not be cleaned:
3903 # after its creation but before its name has been assigned to `$tmp'.
3904 $debug ||
3905 {
3906   tmp= ac_tmp=
3907   trap 'exit_status=$?
3908   : "${ac_tmp:=$tmp}"
3909   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3910 ' 0
3911   trap 'as_fn_exit 1' 1 2 13 15
3912 }
3913 # Create a (secure) tmp directory for tmp files.
3914
3915 {
3916   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3917   test -d "$tmp"
3918 }  ||
3919 {
3920   tmp=./conf$$-$RANDOM
3921   (umask 077 && mkdir "$tmp")
3922 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3923 ac_tmp=$tmp
3924
3925 # Set up the scripts for CONFIG_FILES section.
3926 # No need to generate them if there are no CONFIG_FILES.
3927 # This happens for instance with `./config.status config.h'.
3928 if test -n "$CONFIG_FILES"; then
3929
3930
3931 ac_cr=`echo X | tr X '\015'`
3932 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3933 # But we know of no other shell where ac_cr would be empty at this
3934 # point, so we can use a bashism as a fallback.
3935 if test "x$ac_cr" = x; then
3936   eval ac_cr=\$\'\\r\'
3937 fi
3938 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3939 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3940   ac_cs_awk_cr='\\r'
3941 else
3942   ac_cs_awk_cr=$ac_cr
3943 fi
3944
3945 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3946 _ACEOF
3947
3948
3949 {
3950   echo "cat >conf$$subs.awk <<_ACEOF" &&
3951   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3952   echo "_ACEOF"
3953 } >conf$$subs.sh ||
3954   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3955 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3956 ac_delim='%!_!# '
3957 for ac_last_try in false false false false false :; do
3958   . ./conf$$subs.sh ||
3959     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3960
3961   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3962   if test $ac_delim_n = $ac_delim_num; then
3963     break
3964   elif $ac_last_try; then
3965     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3966   else
3967     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3968   fi
3969 done
3970 rm -f conf$$subs.sh
3971
3972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3973 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3974 _ACEOF
3975 sed -n '
3976 h
3977 s/^/S["/; s/!.*/"]=/
3978 p
3979 g
3980 s/^[^!]*!//
3981 :repl
3982 t repl
3983 s/'"$ac_delim"'$//
3984 t delim
3985 :nl
3986 h
3987 s/\(.\{148\}\)..*/\1/
3988 t more1
3989 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3990 p
3991 n
3992 b repl
3993 :more1
3994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3995 p
3996 g
3997 s/.\{148\}//
3998 t nl
3999 :delim
4000 h
4001 s/\(.\{148\}\)..*/\1/
4002 t more2
4003 s/["\\]/\\&/g; s/^/"/; s/$/"/
4004 p
4005 b
4006 :more2
4007 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4008 p
4009 g
4010 s/.\{148\}//
4011 t delim
4012 ' <conf$$subs.awk | sed '
4013 /^[^""]/{
4014   N
4015   s/\n//
4016 }
4017 ' >>$CONFIG_STATUS || ac_write_fail=1
4018 rm -f conf$$subs.awk
4019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4020 _ACAWK
4021 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4022   for (key in S) S_is_set[key] = 1
4023   FS = "\a"
4024
4025 }
4026 {
4027   line = $ 0
4028   nfields = split(line, field, "@")
4029   substed = 0
4030   len = length(field[1])
4031   for (i = 2; i < nfields; i++) {
4032     key = field[i]
4033     keylen = length(key)
4034     if (S_is_set[key]) {
4035       value = S[key]
4036       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4037       len += length(value) + length(field[++i])
4038       substed = 1
4039     } else
4040       len += 1 + keylen
4041   }
4042
4043   print line
4044 }
4045
4046 _ACAWK
4047 _ACEOF
4048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4049 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4050   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4051 else
4052   cat
4053 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4054   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4055 _ACEOF
4056
4057 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4058 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4059 # trailing colons and then remove the whole line if VPATH becomes empty
4060 # (actually we leave an empty line to preserve line numbers).
4061 if test "x$srcdir" = x.; then
4062   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
4063 h
4064 s///
4065 s/^/:/
4066 s/[      ]*$/:/
4067 s/:\$(srcdir):/:/g
4068 s/:\${srcdir}:/:/g
4069 s/:@srcdir@:/:/g
4070 s/^:*//
4071 s/:*$//
4072 x
4073 s/\(=[   ]*\).*/\1/
4074 G
4075 s/\n//
4076 s/^[^=]*=[       ]*$//
4077 }'
4078 fi
4079
4080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4081 fi # test -n "$CONFIG_FILES"
4082
4083
4084 eval set X "  :F $CONFIG_FILES      "
4085 shift
4086 for ac_tag
4087 do
4088   case $ac_tag in
4089   :[FHLC]) ac_mode=$ac_tag; continue;;
4090   esac
4091   case $ac_mode$ac_tag in
4092   :[FHL]*:*);;
4093   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4094   :[FH]-) ac_tag=-:-;;
4095   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4096   esac
4097   ac_save_IFS=$IFS
4098   IFS=:
4099   set x $ac_tag
4100   IFS=$ac_save_IFS
4101   shift
4102   ac_file=$1
4103   shift
4104
4105   case $ac_mode in
4106   :L) ac_source=$1;;
4107   :[FH])
4108     ac_file_inputs=
4109     for ac_f
4110     do
4111       case $ac_f in
4112       -) ac_f="$ac_tmp/stdin";;
4113       *) # Look for the file first in the build tree, then in the source tree
4114          # (if the path is not absolute).  The absolute path cannot be DOS-style,
4115          # because $ac_f cannot contain `:'.
4116          test -f "$ac_f" ||
4117            case $ac_f in
4118            [\\/$]*) false;;
4119            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4120            esac ||
4121            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4122       esac
4123       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4124       as_fn_append ac_file_inputs " '$ac_f'"
4125     done
4126
4127     # Let's still pretend it is `configure' which instantiates (i.e., don't
4128     # use $as_me), people would be surprised to read:
4129     #    /* config.h.  Generated by config.status.  */
4130     configure_input='Generated from '`
4131           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4132         `' by configure.'
4133     if test x"$ac_file" != x-; then
4134       configure_input="$ac_file.  $configure_input"
4135       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4136 $as_echo "$as_me: creating $ac_file" >&6;}
4137     fi
4138     # Neutralize special characters interpreted by sed in replacement strings.
4139     case $configure_input in #(
4140     *\&* | *\|* | *\\* )
4141        ac_sed_conf_input=`$as_echo "$configure_input" |
4142        sed 's/[\\\\&|]/\\\\&/g'`;; #(
4143     *) ac_sed_conf_input=$configure_input;;
4144     esac
4145
4146     case $ac_tag in
4147     *:-:* | *:-) cat >"$ac_tmp/stdin" \
4148       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4149     esac
4150     ;;
4151   esac
4152
4153   ac_dir=`$as_dirname -- "$ac_file" ||
4154 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4155          X"$ac_file" : 'X\(//\)[^/]' \| \
4156          X"$ac_file" : 'X\(//\)$' \| \
4157          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4158 $as_echo X"$ac_file" |
4159     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4160             s//\1/
4161             q
4162           }
4163           /^X\(\/\/\)[^/].*/{
4164             s//\1/
4165             q
4166           }
4167           /^X\(\/\/\)$/{
4168             s//\1/
4169             q
4170           }
4171           /^X\(\/\).*/{
4172             s//\1/
4173             q
4174           }
4175           s/.*/./; q'`
4176   as_dir="$ac_dir"; as_fn_mkdir_p
4177   ac_builddir=.
4178
4179 case "$ac_dir" in
4180 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4181 *)
4182   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4183   # A ".." for each directory in $ac_dir_suffix.
4184   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4185   case $ac_top_builddir_sub in
4186   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4187   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4188   esac ;;
4189 esac
4190 ac_abs_top_builddir=$ac_pwd
4191 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4192 # for backward compatibility:
4193 ac_top_builddir=$ac_top_build_prefix
4194
4195 case $srcdir in
4196   .)  # We are building in place.
4197     ac_srcdir=.
4198     ac_top_srcdir=$ac_top_builddir_sub
4199     ac_abs_top_srcdir=$ac_pwd ;;
4200   [\\/]* | ?:[\\/]* )  # Absolute name.
4201     ac_srcdir=$srcdir$ac_dir_suffix;
4202     ac_top_srcdir=$srcdir
4203     ac_abs_top_srcdir=$srcdir ;;
4204   *) # Relative name.
4205     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4206     ac_top_srcdir=$ac_top_build_prefix$srcdir
4207     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4208 esac
4209 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4210
4211
4212   case $ac_mode in
4213   :F)
4214   #
4215   # CONFIG_FILE
4216   #
4217
4218   case $INSTALL in
4219   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4220   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4221   esac
4222 _ACEOF
4223
4224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4225 # If the template does not know about datarootdir, expand it.
4226 # FIXME: This hack should be removed a few years after 2.60.
4227 ac_datarootdir_hack=; ac_datarootdir_seen=
4228 ac_sed_dataroot='
4229 /datarootdir/ {
4230   p
4231   q
4232 }
4233 /@datadir@/p
4234 /@docdir@/p
4235 /@infodir@/p
4236 /@localedir@/p
4237 /@mandir@/p'
4238 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4239 *datarootdir*) ac_datarootdir_seen=yes;;
4240 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4241   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4242 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4243 _ACEOF
4244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4245   ac_datarootdir_hack='
4246   s&@datadir@&$datadir&g
4247   s&@docdir@&$docdir&g
4248   s&@infodir@&$infodir&g
4249   s&@localedir@&$localedir&g
4250   s&@mandir@&$mandir&g
4251   s&\\\${datarootdir}&$datarootdir&g' ;;
4252 esac
4253 _ACEOF
4254
4255 # Neutralize VPATH when `$srcdir' = `.'.
4256 # Shell code in configure.ac might set extrasub.
4257 # FIXME: do we really want to maintain this feature?
4258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4259 ac_sed_extra="$ac_vpsub
4260 $extrasub
4261 _ACEOF
4262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4263 :t
4264 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4265 s|@configure_input@|$ac_sed_conf_input|;t t
4266 s&@top_builddir@&$ac_top_builddir_sub&;t t
4267 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4268 s&@srcdir@&$ac_srcdir&;t t
4269 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4270 s&@top_srcdir@&$ac_top_srcdir&;t t
4271 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4272 s&@builddir@&$ac_builddir&;t t
4273 s&@abs_builddir@&$ac_abs_builddir&;t t
4274 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4275 s&@INSTALL@&$ac_INSTALL&;t t
4276 $ac_datarootdir_hack
4277 "
4278 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4279   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4280
4281 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4282   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4283   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
4284       "$ac_tmp/out"`; test -z "$ac_out"; } &&
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4286 which seems to be undefined.  Please make sure it is defined" >&5
4287 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4288 which seems to be undefined.  Please make sure it is defined" >&2;}
4289
4290   rm -f "$ac_tmp/stdin"
4291   case $ac_file in
4292   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4293   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4294   esac \
4295   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4296  ;;
4297
4298
4299
4300   esac
4301
4302
4303   case $ac_file$ac_mode in
4304     "etc/upgrade/3.8-ical-extension":F) chmod ug+x $ac_file
4305                 ;;
4306     "etc/upgrade/4.0-customfield-checkbox-extension":F) chmod ug+x $ac_file
4307                 ;;
4308     "etc/upgrade/generate-rtaddressregexp":F) chmod ug+x $ac_file
4309                 ;;
4310     "etc/upgrade/sanity-check-stylesheets":F) chmod ug+x $ac_file
4311                 ;;
4312     "etc/upgrade/shrink-cgm-table":F) chmod ug+x $ac_file
4313                 ;;
4314     "etc/upgrade/shrink-transactions-table":F) chmod ug+x $ac_file
4315                 ;;
4316     "etc/upgrade/split-out-cf-categories":F) chmod ug+x $ac_file
4317                 ;;
4318     "etc/upgrade/switch-templates-to":F) chmod ug+x $ac_file
4319                 ;;
4320     "etc/upgrade/time-worked-history":F) chmod ug+x $ac_file
4321                 ;;
4322     "etc/upgrade/upgrade-articles":F) chmod ug+x $ac_file
4323                 ;;
4324     "etc/upgrade/vulnerable-passwords":F) chmod ug+x $ac_file
4325                 ;;
4326     "sbin/rt-attributes-viewer":F) chmod ug+x $ac_file
4327                 ;;
4328     "sbin/rt-preferences-viewer":F) chmod ug+x $ac_file
4329                 ;;
4330     "sbin/rt-session-viewer":F) chmod ug+x $ac_file
4331                 ;;
4332     "sbin/rt-dump-metadata":F) chmod ug+x $ac_file
4333                 ;;
4334     "sbin/rt-setup-database":F) chmod ug+x $ac_file
4335                 ;;
4336     "sbin/rt-test-dependencies":F) chmod ug+x $ac_file
4337                 ;;
4338     "sbin/rt-email-digest":F) chmod ug+x $ac_file
4339                 ;;
4340     "sbin/rt-email-dashboards":F) chmod ug+x $ac_file
4341                 ;;
4342     "sbin/rt-clean-sessions":F) chmod ug+x $ac_file
4343                 ;;
4344     "sbin/rt-shredder":F) chmod ug+x $ac_file
4345                 ;;
4346     "sbin/rt-validator":F) chmod ug+x $ac_file
4347                 ;;
4348     "sbin/rt-validate-aliases":F) chmod ug+x $ac_file
4349                 ;;
4350     "sbin/rt-email-group-admin":F) chmod ug+x $ac_file
4351                 ;;
4352     "sbin/rt-server":F) chmod ug+x $ac_file
4353                 ;;
4354     "sbin/rt-server.fcgi":F) chmod ug+x $ac_file
4355                 ;;
4356     "sbin/standalone_httpd":F) chmod ug+x $ac_file
4357                 ;;
4358     "sbin/rt-setup-fulltext-index":F) chmod ug+x $ac_file
4359                 ;;
4360     "sbin/rt-fulltext-indexer":F) chmod ug+x $ac_file
4361                 ;;
4362     "sbin/rt-serializer":F) chmod ug+x $ac_file
4363                 ;;
4364     "sbin/rt-importer":F) chmod ug+x $ac_file
4365                 ;;
4366     "bin/rt-crontool":F) chmod ug+x $ac_file
4367                 ;;
4368     "bin/rt-mailgate":F) chmod ug+x $ac_file
4369                 ;;
4370     "bin/rt":F) chmod ug+x $ac_file
4371                 ;;
4372
4373   esac
4374 done # for ac_tag
4375
4376
4377 as_fn_exit 0
4378 _ACEOF
4379 ac_clean_files=$ac_clean_files_save
4380
4381 test $ac_write_fail = 0 ||
4382   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4383
4384
4385 # configure is writing to config.log, and then calls config.status.
4386 # config.status does its own redirection, appending to config.log.
4387 # Unfortunately, on DOS this fails, as config.log is still kept open
4388 # by configure, so config.status won't be able to write to it; its
4389 # output is simply discarded.  So we exec the FD to /dev/null,
4390 # effectively closing config.log, so it can be properly (re)opened and
4391 # appended to by config.status.  When coming back to configure, we
4392 # need to make the FD available again.
4393 if test "$no_create" != yes; then
4394   ac_cs_success=:
4395   ac_config_status_args=
4396   test "$silent" = yes &&
4397     ac_config_status_args="$ac_config_status_args --quiet"
4398   exec 5>/dev/null
4399   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4400   exec 5>>config.log
4401   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4402   # would make configure fail if this is the last instruction.
4403   $ac_cs_success || as_fn_exit 1
4404 fi
4405 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4406   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4407 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4408 fi
4409