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