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