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