2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.64 for RT 3.6.10.
6 # Report bugs to <rt-bugs@bestpractical.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: rt-bugs@bestpractical.com about your system, including
233 $0: any error possibly output before this message. Then
234 $0: install a modern shell, or manually run the script
235 $0: under such a shell if you do have one."
241 SHELL=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir=./$as_dir;;
286 test -d "$as_dir" || eval $as_mkdir_p || {
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 as_val=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status=$?; test $as_status -eq 0 && as_status=1
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 elif ln conf$$.file conf$$ 2>/dev/null; then
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
496 test -d ./-p && rmdir ./-p
500 if test -x / >/dev/null 2>&1; then
503 if ls -dL / >/dev/null 2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev/null 6>&1
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
552 PACKAGE_VERSION='3.6.10'
553 PACKAGE_STRING='RT 3.6.10'
554 PACKAGE_BUGREPORT='rt-bugs@bestpractical.com'
557 ac_unique_file="lib/RT.pm.in"
558 ac_default_prefix=/opt/rt3
559 ac_subst_vars='LTLIBOBJS
565 MASON_LOCAL_HTML_PATH
666 program_transform_name
679 enable_option_checking
700 ac_precious_vars='build_alias
706 # Initialize some variables set by options.
708 ac_init_version=false
709 ac_unrecognized_opts=
711 # The variables have the same names as the options, with
712 # dashes changed to underlines.
720 program_transform_name=s,x,x,
728 # Installation directory options.
729 # These are left unexpanded so users can "make install exec_prefix=/foo"
730 # and all the variables that are supposed to be based on exec_prefix
731 # by default will actually change.
732 # Use braces instead of parens because sh, perl, etc. also accept them.
733 # (The list follows the same order as the GNU Coding Standards.)
734 bindir='${exec_prefix}/bin'
735 sbindir='${exec_prefix}/sbin'
736 libexecdir='${exec_prefix}/libexec'
737 datarootdir='${prefix}/share'
738 datadir='${datarootdir}'
739 sysconfdir='${prefix}/etc'
740 sharedstatedir='${prefix}/com'
741 localstatedir='${prefix}/var'
742 includedir='${prefix}/include'
743 oldincludedir='/usr/include'
744 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
745 infodir='${datarootdir}/info'
750 libdir='${exec_prefix}/lib'
751 localedir='${datarootdir}/locale'
752 mandir='${datarootdir}/man'
758 # If the previous option needs an argument, assign it.
759 if test -n "$ac_prev"; then
760 eval $ac_prev=\$ac_option
766 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
770 # Accept the important Cygnus configure options, so we can diagnose typos.
772 case $ac_dashdash$ac_option in
776 -bindir | --bindir | --bindi | --bind | --bin | --bi)
778 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
781 -build | --build | --buil | --bui | --bu)
782 ac_prev=build_alias ;;
783 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
784 build_alias=$ac_optarg ;;
786 -cache-file | --cache-file | --cache-fil | --cache-fi \
787 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
788 ac_prev=cache_file ;;
789 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
790 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
791 cache_file=$ac_optarg ;;
794 cache_file=config.cache ;;
796 -datadir | --datadir | --datadi | --datad)
798 -datadir=* | --datadir=* | --datadi=* | --datad=*)
799 datadir=$ac_optarg ;;
801 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
802 | --dataroo | --dataro | --datar)
803 ac_prev=datarootdir ;;
804 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
805 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
806 datarootdir=$ac_optarg ;;
808 -disable-* | --disable-*)
809 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
810 # Reject names that are not valid shell variable names.
811 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
812 as_fn_error "invalid feature name: $ac_useropt"
813 ac_useropt_orig=$ac_useropt
814 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
815 case $ac_user_opts in
819 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
820 ac_unrecognized_sep=', ';;
822 eval enable_$ac_useropt=no ;;
824 -docdir | --docdir | --docdi | --doc | --do)
826 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
829 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
831 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
834 -enable-* | --enable-*)
835 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
836 # Reject names that are not valid shell variable names.
837 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
838 as_fn_error "invalid feature name: $ac_useropt"
839 ac_useropt_orig=$ac_useropt
840 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
841 case $ac_user_opts in
845 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
846 ac_unrecognized_sep=', ';;
848 eval enable_$ac_useropt=\$ac_optarg ;;
850 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
851 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
852 | --exec | --exe | --ex)
853 ac_prev=exec_prefix ;;
854 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
855 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
856 | --exec=* | --exe=* | --ex=*)
857 exec_prefix=$ac_optarg ;;
859 -gas | --gas | --ga | --g)
860 # Obsolete; use --with-gas.
863 -help | --help | --hel | --he | -h)
865 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
866 ac_init_help=recursive ;;
867 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
868 ac_init_help=short ;;
870 -host | --host | --hos | --ho)
871 ac_prev=host_alias ;;
872 -host=* | --host=* | --hos=* | --ho=*)
873 host_alias=$ac_optarg ;;
875 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
877 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
879 htmldir=$ac_optarg ;;
881 -includedir | --includedir | --includedi | --included | --include \
882 | --includ | --inclu | --incl | --inc)
883 ac_prev=includedir ;;
884 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
885 | --includ=* | --inclu=* | --incl=* | --inc=*)
886 includedir=$ac_optarg ;;
888 -infodir | --infodir | --infodi | --infod | --info | --inf)
890 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
891 infodir=$ac_optarg ;;
893 -libdir | --libdir | --libdi | --libd)
895 -libdir=* | --libdir=* | --libdi=* | --libd=*)
898 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
899 | --libexe | --libex | --libe)
900 ac_prev=libexecdir ;;
901 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
902 | --libexe=* | --libex=* | --libe=*)
903 libexecdir=$ac_optarg ;;
905 -localedir | --localedir | --localedi | --localed | --locale)
907 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
908 localedir=$ac_optarg ;;
910 -localstatedir | --localstatedir | --localstatedi | --localstated \
911 | --localstate | --localstat | --localsta | --localst | --locals)
912 ac_prev=localstatedir ;;
913 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
914 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
915 localstatedir=$ac_optarg ;;
917 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
919 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
923 # Obsolete; use --without-fp.
926 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
927 | --no-cr | --no-c | -n)
930 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
931 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
934 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
935 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
936 | --oldin | --oldi | --old | --ol | --o)
937 ac_prev=oldincludedir ;;
938 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
939 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
940 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
941 oldincludedir=$ac_optarg ;;
943 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
945 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
948 -program-prefix | --program-prefix | --program-prefi | --program-pref \
949 | --program-pre | --program-pr | --program-p)
950 ac_prev=program_prefix ;;
951 -program-prefix=* | --program-prefix=* | --program-prefi=* \
952 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
953 program_prefix=$ac_optarg ;;
955 -program-suffix | --program-suffix | --program-suffi | --program-suff \
956 | --program-suf | --program-su | --program-s)
957 ac_prev=program_suffix ;;
958 -program-suffix=* | --program-suffix=* | --program-suffi=* \
959 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
960 program_suffix=$ac_optarg ;;
962 -program-transform-name | --program-transform-name \
963 | --program-transform-nam | --program-transform-na \
964 | --program-transform-n | --program-transform- \
965 | --program-transform | --program-transfor \
966 | --program-transfo | --program-transf \
967 | --program-trans | --program-tran \
968 | --progr-tra | --program-tr | --program-t)
969 ac_prev=program_transform_name ;;
970 -program-transform-name=* | --program-transform-name=* \
971 | --program-transform-nam=* | --program-transform-na=* \
972 | --program-transform-n=* | --program-transform-=* \
973 | --program-transform=* | --program-transfor=* \
974 | --program-transfo=* | --program-transf=* \
975 | --program-trans=* | --program-tran=* \
976 | --progr-tra=* | --program-tr=* | --program-t=*)
977 program_transform_name=$ac_optarg ;;
979 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
981 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
984 -psdir | --psdir | --psdi | --psd | --ps)
986 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
990 | -silent | --silent | --silen | --sile | --sil)
993 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
995 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
997 sbindir=$ac_optarg ;;
999 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1000 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1001 | --sharedst | --shareds | --shared | --share | --shar \
1003 ac_prev=sharedstatedir ;;
1004 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1005 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1006 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1008 sharedstatedir=$ac_optarg ;;
1010 -site | --site | --sit)
1012 -site=* | --site=* | --sit=*)
1015 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1017 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1018 srcdir=$ac_optarg ;;
1020 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1021 | --syscon | --sysco | --sysc | --sys | --sy)
1022 ac_prev=sysconfdir ;;
1023 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1024 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1025 sysconfdir=$ac_optarg ;;
1027 -target | --target | --targe | --targ | --tar | --ta | --t)
1028 ac_prev=target_alias ;;
1029 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1030 target_alias=$ac_optarg ;;
1032 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1035 -version | --version | --versio | --versi | --vers | -V)
1036 ac_init_version=: ;;
1039 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 as_fn_error "invalid package name: $ac_useropt"
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1052 eval with_$ac_useropt=\$ac_optarg ;;
1054 -without-* | --without-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error "invalid package name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1068 eval with_$ac_useropt=no ;;
1071 # Obsolete; use --with-x.
1074 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1075 | --x-incl | --x-inc | --x-in | --x-i)
1076 ac_prev=x_includes ;;
1077 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1078 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1079 x_includes=$ac_optarg ;;
1081 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1082 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1083 ac_prev=x_libraries ;;
1084 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1085 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1086 x_libraries=$ac_optarg ;;
1088 -*) as_fn_error "unrecognized option: \`$ac_option'
1089 Try \`$0 --help' for more information."
1093 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1094 # Reject names that are not valid shell variable names.
1095 case $ac_envvar in #(
1096 '' | [0-9]* | *[!_$as_cr_alnum]* )
1097 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1099 eval $ac_envvar=\$ac_optarg
1100 export $ac_envvar ;;
1103 # FIXME: should be removed in autoconf 3.0.
1104 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1105 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1107 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1113 if test -n "$ac_prev"; then
1114 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1115 as_fn_error "missing argument to $ac_option"
1118 if test -n "$ac_unrecognized_opts"; then
1119 case $enable_option_checking in
1121 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1122 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1126 # Check all directory arguments for consistency.
1127 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128 datadir sysconfdir sharedstatedir localstatedir includedir \
1129 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130 libdir localedir mandir
1132 eval ac_val=\$$ac_var
1133 # Remove trailing slashes.
1136 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1137 eval $ac_var=\$ac_val;;
1139 # Be sure to have absolute directory names.
1141 [\\/$]* | ?:[\\/]* ) continue;;
1142 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1147 # There might be people who depend on the old broken behavior: `$host'
1148 # used to hold the argument of --host etc.
1149 # FIXME: To remove some day.
1152 target=$target_alias
1154 # FIXME: To remove some day.
1155 if test "x$host_alias" != x; then
1156 if test "x$build_alias" = x; then
1157 cross_compiling=maybe
1158 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1159 If a cross compiler is detected then cross compile mode will be used." >&2
1160 elif test "x$build_alias" != "x$host_alias"; then
1166 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1168 test "$silent" = yes && exec 6>/dev/null
1171 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172 ac_ls_di=`ls -di .` &&
1173 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174 as_fn_error "working directory cannot be determined"
1175 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176 as_fn_error "pwd does not report name of working directory"
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181 ac_srcdir_defaulted=yes
1182 # Try the directory containing this script, then the parent directory.
1183 ac_confdir=`$as_dirname -- "$as_myself" ||
1184 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$as_myself" : 'X\(//\)[^/]' \| \
1186 X"$as_myself" : 'X\(//\)$' \| \
1187 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1188 $as_echo X"$as_myself" |
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1211 ac_srcdir_defaulted=no
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1217 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1219 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1229 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1231 for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1239 # Report the --help message.
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1245 \`configure' configures RT 3.6.10 to adapt to many kinds of systems.
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1252 Defaults for the options are specified in brackets.
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1276 For better control, use the options below.
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/rt]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1304 if test -n "$ac_init_help"; then
1305 case $ac_init_help in
1306 short | recursive ) echo "Configuration of RT 3.6.10:";;
1311 --disable-option-checking ignore unrecognized --enable/--with options
1312 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1313 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1314 --enable-layout=LAYOUT Use a specific directory layout (Default: RT3)
1317 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1318 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1319 --with-speedycgi=/path/to/speedy
1320 path to your speedycgi binary, if it exists
1321 --with-bin-owner=OWNER user that will own RT binaries (default root)
1322 --with-libs-owner=OWNER user that will own RT libraries (default root)
1323 --with-libs-group=GROUP group that will own RT binaries (default bin)
1324 --with-db-type=TYPE sort of database RT will use (default: mysql)
1325 (mysql, Pg, Oracle, Informix and SQLite are valid)
1326 --with-db-host=HOSTNAME FQDN of database server (default: localhost)
1327 --with-db-port=PORT port on which the database listens on
1328 --with-db-rt-host=HOSTNAME
1329 FQDN of RT server which talks to the database server
1330 (default: localhost)
1331 --with-db-dba=DBA name of database administrator (default: root or
1333 --with-db-database=DBNAME
1334 name of the database to use (default: rt3)
1335 --with-db-rt-user=DBUSER
1336 name of database user (default: rt_user)
1337 --with-db-rt-pass=PASSWORD
1338 password for database user (default: rt_pass)
1339 --with-web-user=USER user the web server runs as (default: www)
1340 --with-web-group=GROUP group the web server runs as (default: www)
1341 --with-rt-group=GROUP group to own all files (default: rt)
1342 --with-my-user-group set all users and groups to current user/group
1343 --with-apachectl instruct RT where to find your apachectl
1344 --with-standalone Install modules for pure perl standalone server
1345 --with-devel-mode Turn on development aids that might hurt you in
1348 Some influential environment variables:
1349 PERL Perl interpreter command
1351 Use these variables to override the choices made by `configure' or to help
1352 it to find libraries and programs with nonstandard names/locations.
1354 Report bugs to <rt-bugs@bestpractical.com>.
1359 if test "$ac_init_help" = "recursive"; then
1360 # If there are subdirs, report their specific --help.
1361 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1362 test -d "$ac_dir" ||
1363 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1368 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1370 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1371 # A ".." for each directory in $ac_dir_suffix.
1372 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1373 case $ac_top_builddir_sub in
1374 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1375 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1378 ac_abs_top_builddir=$ac_pwd
1379 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1380 # for backward compatibility:
1381 ac_top_builddir=$ac_top_build_prefix
1384 .) # We are building in place.
1386 ac_top_srcdir=$ac_top_builddir_sub
1387 ac_abs_top_srcdir=$ac_pwd ;;
1388 [\\/]* | ?:[\\/]* ) # Absolute name.
1389 ac_srcdir=$srcdir$ac_dir_suffix;
1390 ac_top_srcdir=$srcdir
1391 ac_abs_top_srcdir=$srcdir ;;
1393 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1394 ac_top_srcdir=$ac_top_build_prefix$srcdir
1395 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1397 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1399 cd "$ac_dir" || { ac_status=$?; continue; }
1400 # Check for guested configure.
1401 if test -f "$ac_srcdir/configure.gnu"; then
1403 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1404 elif test -f "$ac_srcdir/configure"; then
1406 $SHELL "$ac_srcdir/configure" --help=recursive
1408 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1410 cd "$ac_pwd" || { ac_status=$?; break; }
1414 test -n "$ac_init_help" && exit $ac_status
1415 if $ac_init_version; then
1418 generated by GNU Autoconf 2.64
1420 Copyright (C) 2009 Free Software Foundation, Inc.
1421 This configure script is free software; the Free Software Foundation
1422 gives unlimited permission to copy, distribute and modify it.
1427 ## ------------------------ ##
1428 ## Autoconf initialization. ##
1429 ## ------------------------ ##
1430 cat >config.log <<_ACEOF
1431 This file contains any messages produced by compilers while
1432 running configure, to aid debugging if configure makes a mistake.
1434 It was created by RT $as_me 3.6.10, which was
1435 generated by GNU Autoconf 2.64. Invocation command line was
1447 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1448 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1449 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1450 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1451 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1453 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1454 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1456 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1457 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1458 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1459 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1460 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1461 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1462 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470 test -z "$as_dir" && as_dir=.
1471 $as_echo "PATH: $as_dir"
1487 # Keep a trace of the command line.
1488 # Strip out --no-create and --no-recursion so they do not pile up.
1489 # Strip out --silent because we don't want to record it for future runs.
1490 # Also quote any args containing shell meta-characters.
1491 # Make two passes to allow for proper duplicate-argument suppression.
1495 ac_must_keep_next=false
1501 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1503 | -silent | --silent | --silen | --sile | --sil)
1506 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1509 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1511 as_fn_append ac_configure_args1 " '$ac_arg'"
1512 if test $ac_must_keep_next = true; then
1513 ac_must_keep_next=false # Got value, back to normal.
1516 *=* | --config-cache | -C | -disable-* | --disable-* \
1517 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1518 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1519 | -with-* | --with-* | -without-* | --without-* | --x)
1520 case "$ac_configure_args0 " in
1521 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1524 -* ) ac_must_keep_next=true ;;
1527 as_fn_append ac_configure_args " '$ac_arg'"
1532 { ac_configure_args0=; unset ac_configure_args0;}
1533 { ac_configure_args1=; unset ac_configure_args1;}
1535 # When interrupted or exit'd, cleanup temporary files, and complete
1536 # config.log. We remove comments because anyway the quotes in there
1537 # would cause problems or look ugly.
1538 # WARNING: Use '\'' to represent an apostrophe within the trap.
1539 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1540 trap 'exit_status=$?
1541 # Save into config.log some information that might help in debugging.
1546 ## ---------------- ##
1547 ## Cache variables. ##
1548 ## ---------------- ##
1551 # The following way of writing the cache mishandles newlines in values,
1553 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1554 eval ac_val=\$$ac_var
1558 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1559 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1562 _ | IFS | as_nl) ;; #(
1563 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1564 *) { eval $ac_var=; unset $ac_var;} ;;
1569 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1570 *${as_nl}ac_space=\ *)
1572 "s/'\''/'\''\\\\'\'''\''/g;
1573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1584 ## ----------------- ##
1585 ## Output variables. ##
1586 ## ----------------- ##
1589 for ac_var in $ac_subst_vars
1591 eval ac_val=\$$ac_var
1593 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1595 $as_echo "$ac_var='\''$ac_val'\''"
1599 if test -n "$ac_subst_files"; then
1601 ## ------------------- ##
1602 ## File substitutions. ##
1603 ## ------------------- ##
1606 for ac_var in $ac_subst_files
1608 eval ac_val=\$$ac_var
1610 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1612 $as_echo "$ac_var='\''$ac_val'\''"
1617 if test -s confdefs.h; then
1627 test "$ac_signal" != 0 &&
1628 $as_echo "$as_me: caught signal $ac_signal"
1629 $as_echo "$as_me: exit $exit_status"
1631 rm -f core *.core core.conftest.* &&
1632 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1635 for ac_signal in 1 2 13 15; do
1636 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1640 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1641 rm -f -r conftest* confdefs.h
1643 $as_echo "/* confdefs.h */" > confdefs.h
1645 # Predefined preprocessor variables.
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE_NAME "$PACKAGE_NAME"
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_STRING "$PACKAGE_STRING"
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_URL "$PACKAGE_URL"
1672 # Let the site file select an alternate cache file if it wants to.
1673 # Prefer an explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 ac_site_file1=$CONFIG_SITE
1678 elif test "x$prefix" != xNONE; then
1679 ac_site_file1=$prefix/share/config.site
1680 ac_site_file2=$prefix/etc/config.site
1682 ac_site_file1=$ac_default_prefix/share/config.site
1683 ac_site_file2=$ac_default_prefix/etc/config.site
1685 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1687 test "x$ac_site_file" = xNONE && continue
1688 if test -r "$ac_site_file"; then
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1690 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1691 sed 's/^/| /' "$ac_site_file" >&5
1696 if test -r "$cache_file"; then
1697 # Some versions of bash will fail to source /dev/null (special
1698 # files actually), so we avoid doing that.
1699 if test -f "$cache_file"; then
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1701 $as_echo "$as_me: loading cache $cache_file" >&6;}
1703 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1704 *) . "./$cache_file";;
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1709 $as_echo "$as_me: creating cache $cache_file" >&6;}
1713 # Check that the precious variables saved in the cache have kept the same
1715 ac_cache_corrupted=false
1716 for ac_var in $ac_precious_vars; do
1717 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1718 eval ac_new_set=\$ac_env_${ac_var}_set
1719 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1720 eval ac_new_val=\$ac_env_${ac_var}_value
1721 case $ac_old_set,$ac_new_set in
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1724 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1725 ac_cache_corrupted=: ;;
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1728 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1729 ac_cache_corrupted=: ;;
1732 if test "x$ac_old_val" != "x$ac_new_val"; then
1733 # differences in whitespace do not lead to failure.
1734 ac_old_val_w=`echo x $ac_old_val`
1735 ac_new_val_w=`echo x $ac_new_val`
1736 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1738 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1739 ac_cache_corrupted=:
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1742 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1743 eval $ac_var=\$ac_old_val
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1746 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1748 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1751 # Pass precious variables to config.status.
1752 if test "$ac_new_set" = set; then
1754 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 *) ac_arg=$ac_var=$ac_new_val ;;
1757 case " $ac_configure_args " in
1758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1759 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1763 if $ac_cache_corrupted; then
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1767 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1768 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1770 ## -------------------- ##
1771 ## Main body of script. ##
1772 ## -------------------- ##
1775 ac_cpp='$CPP $CPPFLAGS'
1776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1789 test "x$rt_version_major" = 'x' && rt_version_major=0
1790 test "x$rt_version_minor" = 'x' && rt_version_minor=0
1791 test "x$rt_version_patch" = 'x' && rt_version_patch=0
1794 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1795 for ac_t in install-sh install.sh shtool; do
1796 if test -f "$ac_dir/$ac_t"; then
1798 ac_install_sh="$ac_aux_dir/$ac_t -c"
1803 if test -z "$ac_aux_dir"; then
1804 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1807 # These three variables are undocumented and unsupported,
1808 # and are intended to be withdrawn in a future Autoconf release.
1809 # They can cause serious problems if a builder's source tree is in a directory
1810 # whose full name contains unusual characters.
1811 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1812 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1813 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1816 # Find a good install program. We prefer a C program (faster),
1817 # so one script is as good as another. But avoid the broken or
1818 # incompatible versions:
1819 # SysV /etc/install, /usr/sbin/install
1820 # SunOS /usr/etc/install
1821 # IRIX /sbin/install
1823 # AmigaOS /C/install, which installs bootblocks on floppy discs
1824 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1825 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1826 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1827 # OS/2's system install, which has a completely different semantic
1828 # ./install, which can be erroneously created by make from ./install.sh.
1829 # Reject install programs that cannot install multiple files.
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1831 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1832 if test -z "$INSTALL"; then
1833 if test "${ac_cv_path_install+set}" = set; then :
1834 $as_echo_n "(cached) " >&6
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 # Account for people who put trailing slashes in PATH elements.
1842 case $as_dir/ in #((
1843 ./ | .// | /[cC]/* | \
1844 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1845 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1848 # OSF1 and SCO ODT 3.0 have their own names for install.
1849 # Don't use installbsd from OSF since it installs stuff as root
1851 for ac_prog in ginstall scoinst install; do
1852 for ac_exec_ext in '' $ac_executable_extensions; do
1853 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1854 if test $ac_prog = install &&
1855 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1856 # AIX install. It has an incompatible calling convention.
1858 elif test $ac_prog = install &&
1859 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1860 # program-specific install script used by HP pwplus--don't use.
1863 rm -rf conftest.one conftest.two conftest.dir
1864 echo one > conftest.one
1865 echo two > conftest.two
1867 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1868 test -s conftest.one && test -s conftest.two &&
1869 test -s conftest.dir/conftest.one &&
1870 test -s conftest.dir/conftest.two
1872 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1885 rm -rf conftest.one conftest.two conftest.dir
1888 if test "${ac_cv_path_install+set}" = set; then
1889 INSTALL=$ac_cv_path_install
1891 # As a last resort, use the slow shell script. Don't cache a
1892 # value for INSTALL within a source directory, because that will
1893 # break other packages using the cache if that directory is
1894 # removed, or if the value is a relative name.
1895 INSTALL=$ac_install_sh
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1899 $as_echo "$INSTALL" >&6; }
1901 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1902 # It thinks the first close brace ends the variable substitution.
1903 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1905 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1907 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1909 for ac_prog in gawk mawk nawk awk
1911 # Extract the first word of "$ac_prog", so it can be a program name with args.
1912 set dummy $ac_prog; ac_word=$2
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1914 $as_echo_n "checking for $ac_word... " >&6; }
1915 if test "${ac_cv_prog_AWK+set}" = set; then :
1916 $as_echo_n "(cached) " >&6
1918 if test -n "$AWK"; then
1919 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1928 ac_cv_prog_AWK="$ac_prog"
1929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 if test -n "$AWK"; then
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
1941 $as_echo "$AWK" >&6; }
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1944 $as_echo "no" >&6; }
1948 test -n "$AWK" && break
1952 # Extract the first word of "perl", so it can be a program name with args.
1953 set dummy perl; ac_word=$2
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1955 $as_echo_n "checking for $ac_word... " >&6; }
1956 if test "${ac_cv_path_PERL+set}" = set; then :
1957 $as_echo_n "(cached) " >&6
1961 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
1972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="not found"
1983 PERL=$ac_cv_path_PERL
1984 if test -n "$PERL"; then
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
1986 $as_echo "$PERL" >&6; }
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1989 $as_echo "no" >&6; }
1993 if test "$PERL" = 'not found'; then
1994 as_fn_error "cannot use $PACKAGE_NAME without perl" "$LINENO" 5
1999 # Check whether --with-speedycgi was given.
2000 if test "${with_speedycgi+set}" = set; then :
2001 withval=$with_speedycgi; SPEEDY_BIN=$withval
2003 SPEEDY_BIN=/usr/local/bin/speedy
2011 # Check whether --enable-layout was given.
2012 if test "${enable_layout+set}" = set; then :
2013 enableval=$enable_layout; LAYOUT=$enableval
2017 if test "x$LAYOUT" = "x"; then
2021 if test ! -f $srcdir/config.layout; then
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Layout file $srcdir/config.layout not found" >&5
2023 $as_echo "$as_me: WARNING: Layout file $srcdir/config.layout not found" >&2;}
2026 pldconf=./config.pld
2027 $PERL -0777 -p -e "\$layout = '$LAYOUT';" -e '
2028 s/.*<Layout\s+$layout>//gims;
2029 s/\<\/Layout\>.*//s;
2034 # m4 will not let us just use $srcdir/config.layout, we need $1
2035 s/^\s*((?:bin|sbin|libexec|data|sysconf|sharedstate|localstate|lib|include|oldinclude|info|man|html)dir)\s*:\s*(.*)$/$1=$2/gim;
2036 s/^\s*(.*?)\s*:\s*(.*)$/\(test "x\$$1" = "xNONE" || test "x\$$1" = "x") && $1=$2/gim;
2037 ' < $srcdir/config.layout > $pldconf
2039 if test -s $pldconf; then
2040 rt_layout_name=$LAYOUT
2043 for var in prefix exec_prefix bindir sbindir \
2044 sysconfdir mandir libdir datadir htmldir \
2045 localstatedir logfiledir masonstatedir \
2046 sessionstatedir customdir custometcdir customhtmldir \
2047 customlexdir customlibdir manualdir; do
2048 eval "val=\"\$$var\""
2049 val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
2051 sed -e 's:[\$]\([a-z_]*\):$\1:g'`
2064 while test "x${ap_cur}" != "x${ap_last}"; do
2066 ap_cur=`eval "echo ${ap_cur}"`
2068 exp_prefix="${ap_cur}"
2076 ap_cur='$exec_prefix'
2077 while test "x${ap_cur}" != "x${ap_last}"; do
2079 ap_cur=`eval "echo ${ap_cur}"`
2081 exp_exec_prefix="${ap_cur}"
2090 while test "x${ap_cur}" != "x${ap_last}"; do
2092 ap_cur=`eval "echo ${ap_cur}"`
2094 exp_bindir="${ap_cur}"
2103 while test "x${ap_cur}" != "x${ap_last}"; do
2105 ap_cur=`eval "echo ${ap_cur}"`
2107 exp_sbindir="${ap_cur}"
2115 ap_cur='$sysconfdir'
2116 while test "x${ap_cur}" != "x${ap_last}"; do
2118 ap_cur=`eval "echo ${ap_cur}"`
2120 exp_sysconfdir="${ap_cur}"
2129 while test "x${ap_cur}" != "x${ap_last}"; do
2131 ap_cur=`eval "echo ${ap_cur}"`
2133 exp_mandir="${ap_cur}"
2142 while test "x${ap_cur}" != "x${ap_last}"; do
2144 ap_cur=`eval "echo ${ap_cur}"`
2146 exp_libdir="${ap_cur}"
2155 while test "x${ap_cur}" != "x${ap_last}"; do
2157 ap_cur=`eval "echo ${ap_cur}"`
2159 exp_datadir="${ap_cur}"
2168 while test "x${ap_cur}" != "x${ap_last}"; do
2170 ap_cur=`eval "echo ${ap_cur}"`
2172 exp_htmldir="${ap_cur}"
2181 while test "x${ap_cur}" != "x${ap_last}"; do
2183 ap_cur=`eval "echo ${ap_cur}"`
2185 exp_manualdir="${ap_cur}"
2193 ap_cur='$localstatedir'
2194 while test "x${ap_cur}" != "x${ap_last}"; do
2196 ap_cur=`eval "echo ${ap_cur}"`
2198 exp_localstatedir="${ap_cur}"
2206 ap_cur='$logfiledir'
2207 while test "x${ap_cur}" != "x${ap_last}"; do
2209 ap_cur=`eval "echo ${ap_cur}"`
2211 exp_logfiledir="${ap_cur}"
2219 ap_cur='$masonstatedir'
2220 while test "x${ap_cur}" != "x${ap_last}"; do
2222 ap_cur=`eval "echo ${ap_cur}"`
2224 exp_masonstatedir="${ap_cur}"
2232 ap_cur='$sessionstatedir'
2233 while test "x${ap_cur}" != "x${ap_last}"; do
2235 ap_cur=`eval "echo ${ap_cur}"`
2237 exp_sessionstatedir="${ap_cur}"
2246 while test "x${ap_cur}" != "x${ap_last}"; do
2248 ap_cur=`eval "echo ${ap_cur}"`
2250 exp_customdir="${ap_cur}"
2258 ap_cur='$custometcdir'
2259 while test "x${ap_cur}" != "x${ap_last}"; do
2261 ap_cur=`eval "echo ${ap_cur}"`
2263 exp_custometcdir="${ap_cur}"
2271 ap_cur='$customhtmldir'
2272 while test "x${ap_cur}" != "x${ap_last}"; do
2274 ap_cur=`eval "echo ${ap_cur}"`
2276 exp_customhtmldir="${ap_cur}"
2284 ap_cur='$customlexdir'
2285 while test "x${ap_cur}" != "x${ap_last}"; do
2287 ap_cur=`eval "echo ${ap_cur}"`
2289 exp_customlexdir="${ap_cur}"
2297 ap_cur='$customlibdir'
2298 while test "x${ap_cur}" != "x${ap_last}"; do
2300 ap_cur=`eval "echo ${ap_cur}"`
2302 exp_customlibdir="${ap_cur}"
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
2309 $as_echo_n "checking for chosen layout... " >&6; }
2310 if test "x$rt_layout_name" = "xno"; then
2311 if test "x$LAYOUT" = "xno"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
2313 $as_echo "none" >&6; }
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAYOUT" >&5
2316 $as_echo "$LAYOUT" >&6; }
2318 as_fn_error "a valid layout must be specified (or the default used)" "$LINENO" 5
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rt_layout_name" >&5
2322 $as_echo "$rt_layout_name" >&6; }
2327 # ACRT_USER_EXISTS( users, variable, default )
2328 # - users is a list of users [www apache www-docs]
2329 # from highest to lowest priority to high priority (i.e. first match)
2330 # - variable is what you set with the result
2337 # Check whether --with-bin-owner was given.
2338 if test "${with_bin_owner+set}" = set; then :
2339 withval=$with_bin_owner; BIN_OWNER=$withval
2347 # Check whether --with-libs-owner was given.
2348 if test "${with_libs_owner+set}" = set; then :
2349 withval=$with_libs_owner; LIBS_OWNER=$withval
2357 # Check whether --with-libs-group was given.
2358 if test "${with_libs_group+set}" = set; then :
2359 withval=$with_libs_group; LIBS_GROUP=$withval
2367 # Check whether --with-db-type was given.
2368 if test "${with_db_type+set}" = set; then :
2369 withval=$with_db_type; DB_TYPE=$withval
2374 if test "$DB_TYPE" != 'mysql' -a "$DB_TYPE" != 'Pg' -a "$DB_TYPE" != 'SQLite' -a "$DB_TYPE" != 'Oracle' -a "$DB_TYPE" != 'Informix' -a "$DB_TYPE" != 'Sybase' ; then
2375 as_fn_error "Only Oracle, Informix, Pg, mysql and SQLite are valid db types" "$LINENO" 5
2379 if test "$DB_TYPE" = 'Oracle'; then
2380 test "x$ORACLE_HOME" = 'x' && as_fn_error "Please declare the ORACLE_HOME environment variable" "$LINENO" 5
2381 DATABASE_ENV_PREF="\$ENV{'ORACLE_HOME'} = '$ORACLE_HOME';"
2384 if test "$DB_TYPE" = 'Sybase'; then
2385 test "x$SYBASE" = 'x' && as_fn_error "Please declare the SYBASE_HOME environment variable" "$LINENO" 5
2386 DATABASE_ENV_PREF="\$ENV{'SYBASE'} = '$SYBASE';"
2391 # Check whether --with-db-host was given.
2392 if test "${with_db_host+set}" = set; then :
2393 withval=$with_db_host; DB_HOST=$withval
2401 # Check whether --with-db-port was given.
2402 if test "${with_db_port+set}" = set; then :
2403 withval=$with_db_port; DB_PORT=$withval
2411 # Check whether --with-db-rt-host was given.
2412 if test "${with_db_rt_host+set}" = set; then :
2413 withval=$with_db_rt_host; DB_RT_HOST=$withval
2415 DB_RT_HOST=localhost
2420 if test "$DB_TYPE" = "Pg" ; then
2426 # Check whether --with-db-dba was given.
2427 if test "${with_db_dba+set}" = set; then :
2428 withval=$with_db_dba; DB_DBA=$withval
2436 # Check whether --with-db-database was given.
2437 if test "${with_db_database+set}" = set; then :
2438 withval=$with_db_database; DB_DATABASE=$withval
2446 # Check whether --with-db-rt-user was given.
2447 if test "${with_db_rt_user+set}" = set; then :
2448 withval=$with_db_rt_user; DB_RT_USER=$withval
2456 # Check whether --with-db-rt-pass was given.
2457 if test "${with_db_rt_pass+set}" = set; then :
2458 withval=$with_db_rt_pass; DB_RT_PASS=$withval
2466 # Check whether --with-web-user was given.
2467 if test "${with_web_user+set}" = set; then :
2468 withval=$with_web_user; WEB_USER=$withval
2472 for x in www www-data apache httpd nobody; do
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if user $x exists" >&5
2474 $as_echo_n "checking if user $x exists... " >&6; }
2475 if $PERL -e"exit( defined getpwnam('$x') ? 0 : 1)" ; then :
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
2477 $as_echo "found" >&6; }; WEB_USER=$x ; break
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2480 $as_echo "not found" >&6; }
2490 # Check whether --with-web-group was given.
2491 if test "${with_web_group+set}" = set; then :
2492 withval=$with_web_group; WEB_GROUP=$withval
2496 for x in www www-data apache httpd nogroup nobody; do
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if group $x exists" >&5
2498 $as_echo_n "checking if group $x exists... " >&6; }
2499 if $PERL -e"exit( defined getgrnam('$x') ? 0 : 1)" ; then :
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
2501 $as_echo "found" >&6; }; WEB_GROUP=$x ; break
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2504 $as_echo "not found" >&6; }
2513 # Check whether --with-rt-group was given.
2514 if test "${with_rt_group+set}" = set; then :
2515 withval=$with_rt_group; RTGROUP=$withval
2519 for x in rt3 rt $WEB_GROUP; do
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if group $x exists" >&5
2521 $as_echo_n "checking if group $x exists... " >&6; }
2522 if $PERL -e"exit( defined getgrnam('$x') ? 0 : 1)" ; then :
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
2524 $as_echo "found" >&6; }; RTGROUP=$x ; break
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2527 $as_echo "not found" >&6; }
2535 # XXX TODO: The command below to figure out the group brokenly relies on
2536 # output order (and "id -gn" doesn't work on all platforms).
2537 my_group=$(groups|cut -f1 -d' ')
2538 my_user=${USER:-$LOGNAME}
2540 # Check whether --with-my-user-group was given.
2541 if test "${with_my_user_group+set}" = set; then :
2542 withval=$with_my_user_group; RTGROUP=$my_group
2545 LIBS_GROUP=$my_group
2551 # Test for valid database names
2552 if test "$DB_TYPE" == "mysql" ; then :
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if database name is valid" >&5
2554 $as_echo_n "checking if database name is valid... " >&6; }
2555 if echo $DB_DATABASE | $AWK '/-/ { exit 1 }' ; then :
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557 $as_echo "yes" >&6; }
2559 as_fn_error "no. database name ($DB_DATABASE) contains '-' which is not valid for mysql" "$LINENO" 5
2568 # Check whether --with-apachectl was given.
2569 if test "${with_apachectl+set}" = set; then :
2570 withval=$with_apachectl; APACHECTL=$withval
2572 APACHECTL=`which apachectl`
2578 # Check whether --with-devel-mode was given.
2579 if test "${with_devel_mode+set}" = set; then :
2580 withval=$with_devel_mode; RT_STANDALONE="1"
2588 # Check whether --with-devel-mode was given.
2589 if test "${with_devel_mode+set}" = set; then :
2590 withval=$with_devel_mode; RT_DEVEL_MODE="1"
2597 RT_VERSION_MAJOR=${rt_version_major}
2599 RT_VERSION_MINOR=${rt_version_minor}
2601 RT_VERSION_PATCH=${rt_version_patch}
2604 RT_PATH=${exp_prefix}
2606 RT_DOC_PATH=${exp_manualdir}
2608 RT_LOCAL_PATH=${exp_customdir}
2610 RT_LIB_PATH=${exp_libdir}
2612 RT_ETC_PATH=${exp_sysconfdir}
2614 CONFIG_FILE_PATH=${exp_sysconfdir}
2616 RT_BIN_PATH=${exp_bindir}
2618 RT_SBIN_PATH=${exp_sbindir}
2620 RT_VAR_PATH=${exp_localstatedir}
2622 RT_MAN_PATH=${exp_mandir}
2624 MASON_DATA_PATH=${exp_masonstatedir}
2626 MASON_SESSION_PATH=${exp_sessionstatedir}
2628 MASON_HTML_PATH=${exp_htmldir}
2630 LOCAL_ETC_PATH=${exp_custometcdir}
2632 MASON_LOCAL_HTML_PATH=${exp_customhtmldir}
2634 LOCAL_LEXICON_PATH=${exp_customlexdir}
2636 LOCAL_LIB_PATH=${exp_customlibdir}
2638 DESTDIR=${exp_prefix}
2640 RT_LOG_PATH=${exp_logfiledir}
2644 ac_config_files="$ac_config_files sbin/rt-dump-database sbin/rt-setup-database sbin/rt-test-dependencies bin/mason_handler.fcgi bin/mason_handler.scgi bin/standalone_httpd bin/rt-crontool bin/rt-mailgate bin/rt"
2647 ac_config_files="$ac_config_files Makefile etc/RT_Config.pm lib/RT.pm bin/mason_handler.svc bin/webmux.pl"
2649 cat >confcache <<\_ACEOF
2650 # This file is a shell script that caches the results of configure
2651 # tests run on this system so they can be shared between configure
2652 # scripts and configure runs, see configure's option --config-cache.
2653 # It is not useful on other systems. If it contains results you don't
2654 # want to keep, you may remove or edit it.
2656 # config.status only pays attention to the cache file if you give it
2657 # the --recheck option to rerun configure.
2659 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2660 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2665 # The following way of writing the cache mishandles newlines in values,
2666 # but we know of no workaround that is simple, portable, and efficient.
2667 # So, we kill variables containing newlines.
2668 # Ultrix sh set writes to stderr and can't be redirected directly,
2669 # and sets the high bit in the cache file unless we assign to the vars.
2671 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2672 eval ac_val=\$$ac_var
2676 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2677 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2680 _ | IFS | as_nl) ;; #(
2681 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2682 *) { eval $ac_var=; unset $ac_var;} ;;
2688 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2689 *${as_nl}ac_space=\ *)
2690 # `set' does not quote correctly, so add quotes: double-quote
2691 # substitution turns \\\\ into \\, and sed turns \\ into \.
2694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2697 # `set' quotes correctly as required by POSIX, so do not add quotes.
2698 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2707 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2709 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2711 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2712 if test -w "$cache_file"; then
2713 test "x$cache_file" != "x/dev/null" &&
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2715 $as_echo "$as_me: updating cache $cache_file" >&6;}
2716 cat confcache >$cache_file
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2719 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2724 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2725 # Let make expand exec_prefix.
2726 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2728 # Transform confdefs.h into DEFS.
2729 # Protect against shell expansion while executing Makefile rules.
2730 # Protect against Makefile macro expansion.
2732 # If the first sed substitution is executed (which looks for macros that
2733 # take arguments), then branch to the quote section. Otherwise,
2734 # look for a macro that doesn't take arguments.
2744 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2746 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2750 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2763 DEFS=`sed -n "$ac_script" confdefs.h`
2768 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2769 # 1. Remove the extension, and $U if already installed.
2770 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2771 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2772 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2773 # will be set to the directory where LIBOBJS objects are built.
2774 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2775 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2779 LTLIBOBJS=$ac_ltlibobjs
2783 : ${CONFIG_STATUS=./config.status}
2785 ac_clean_files_save=$ac_clean_files
2786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2788 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2790 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2792 # Generated by $as_me.
2793 # Run this file to recreate the current configuration.
2794 # Compiler output produced by configure, useful for debugging
2795 # configure, is in config.log if it exists.
2801 SHELL=\${CONFIG_SHELL-$SHELL}
2804 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2805 ## -------------------- ##
2806 ## M4sh Initialization. ##
2807 ## -------------------- ##
2809 # Be more Bourne compatible
2810 DUALCASE=1; export DUALCASE # for MKS sh
2811 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2814 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2815 # is contrary to our usage. Disable this feature.
2816 alias -g '${1+"$@"}'='"$@"'
2817 setopt NO_GLOB_SUBST
2819 case `(set -o) 2>/dev/null` in #(
2831 # Printing a long string crashes Solaris 7 /usr/bin/printf.
2832 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2833 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2834 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2835 # Prefer a ksh shell builtin over an external printf program on Solaris,
2836 # but without wasting forks for bash or zsh.
2837 if test -z "$BASH_VERSION$ZSH_VERSION" \
2838 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2839 as_echo='print -r --'
2840 as_echo_n='print -rn --'
2841 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2842 as_echo='printf %s\n'
2843 as_echo_n='printf %s'
2845 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2846 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2847 as_echo_n='/usr/ucb/echo -n'
2849 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2850 as_echo_n_body='eval
2854 expr "X$arg" : "X\\(.*\\)$as_nl";
2855 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2857 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2859 export as_echo_n_body
2860 as_echo_n='sh -c $as_echo_n_body as_echo'
2863 as_echo='sh -c $as_echo_body as_echo'
2866 # The user is always right.
2867 if test "${PATH_SEPARATOR+set}" != set; then
2869 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2870 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2877 # We need space, tab and new line, in precisely that order. Quoting is
2878 # there to prevent editors from complaining about space-tab.
2879 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
2880 # splitting by setting IFS to empty value.)
2883 # Find who we are. Look in the path if we contain no directory separator.
2885 *[\\/]* ) as_myself=$0 ;;
2886 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 test -z "$as_dir" && as_dir=.
2891 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2897 # We did not find ourselves, most probably we were run as `sh COMMAND'
2898 # in which case we are not to be found in the path.
2899 if test "x$as_myself" = x; then
2902 if test ! -f "$as_myself"; then
2903 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2907 # Unset variables that we do not need and which cause bugs (e.g. in
2908 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
2909 # suppresses any "Segmentation fault" message there. '((' could
2910 # trigger a bug in pdksh 5.2.14.
2911 for as_var in BASH_ENV ENV MAIL MAILPATH
2912 do eval test x\${$as_var+set} = xset \
2913 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2926 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2929 # as_fn_error ERROR [LINENO LOG_FD]
2930 # ---------------------------------
2931 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2932 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2933 # script with status $?, using 1 if that was 0.
2936 as_status=$?; test $as_status -eq 0 && as_status=1
2938 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2939 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
2941 $as_echo "$as_me: error: $1" >&2
2942 as_fn_exit $as_status
2946 # as_fn_set_status STATUS
2947 # -----------------------
2948 # Set $? to STATUS, without forking.
2952 } # as_fn_set_status
2956 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2966 # Portably unset VAR.
2969 { eval $1=; unset $1;}
2971 as_unset=as_fn_unset
2972 # as_fn_append VAR VALUE
2973 # ----------------------
2974 # Append the text in VALUE to the end of the definition contained in VAR. Take
2975 # advantage of any shell optimizations that allow amortized linear growth over
2976 # repeated appends, instead of the typical quadratic growth present in naive
2978 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2979 eval 'as_fn_append ()
2990 # as_fn_arith ARG...
2991 # ------------------
2992 # Perform arithmetic evaluation on the ARGs, and store the result in the
2993 # global $as_val. Take advantage of shells that can avoid forks. The arguments
2994 # must be portable across $(()) and expr.
2995 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2996 eval 'as_fn_arith ()
3003 as_val=`expr "$@" || test $? -eq 1`
3008 if expr a : '\(a\)' >/dev/null 2>&1 &&
3009 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3015 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3016 as_basename=basename
3021 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3027 as_me=`$as_basename -- "$0" ||
3028 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3029 X"$0" : 'X\(//\)$' \| \
3030 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3032 sed '/^.*\/\([^/][^/]*\)\/*$/{
3046 # Avoid depending upon Character Ranges.
3047 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3048 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3049 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3050 as_cr_digits='0123456789'
3051 as_cr_alnum=$as_cr_Letters$as_cr_digits
3053 ECHO_C= ECHO_N= ECHO_T=
3054 case `echo -n x` in #(((((
3056 case `echo 'xy\c'` in
3057 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3059 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3066 rm -f conf$$ conf$$.exe conf$$.file
3067 if test -d conf$$.dir; then
3068 rm -f conf$$.dir/conf$$.file
3071 mkdir conf$$.dir 2>/dev/null
3073 if (echo >conf$$.file) 2>/dev/null; then
3074 if ln -s conf$$.file conf$$ 2>/dev/null; then
3076 # ... but there are two gotchas:
3077 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3078 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3079 # In both cases, we have to default to `cp -p'.
3080 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3082 elif ln conf$$.file conf$$ 2>/dev/null; then
3090 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3091 rmdir conf$$.dir 2>/dev/null
3096 # Create "$as_dir" as a directory, including parents if necessary.
3101 -*) as_dir=./$as_dir;;
3103 test -d "$as_dir" || eval $as_mkdir_p || {
3107 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3108 *) as_qdir=$as_dir;;
3110 as_dirs="'$as_qdir' $as_dirs"
3111 as_dir=`$as_dirname -- "$as_dir" ||
3112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3113 X"$as_dir" : 'X\(//\)[^/]' \| \
3114 X"$as_dir" : 'X\(//\)$' \| \
3115 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3116 $as_echo X"$as_dir" |
3117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3134 test -d "$as_dir" && break
3136 test -z "$as_dirs" || eval "mkdir $as_dirs"
3137 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
3141 if mkdir -p . 2>/dev/null; then
3142 as_mkdir_p='mkdir -p "$as_dir"'
3144 test -d ./-p && rmdir ./-p
3148 if test -x / >/dev/null 2>&1; then
3151 if ls -dL / >/dev/null 2>&1; then
3158 if test -d "$1"; then
3164 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3165 ???[sx]*):;;*)false;;esac;fi
3169 as_executable_p=$as_test_x
3171 # Sed expression to map a string onto a valid CPP name.
3172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3174 # Sed expression to map a string onto a valid variable name.
3175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3179 ## ----------------------------------- ##
3180 ## Main body of $CONFIG_STATUS script. ##
3181 ## ----------------------------------- ##
3183 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3186 # Save the log message, to keep $0 and so on meaningful, and to
3187 # report actual input values of CONFIG_FILES etc. instead of their
3188 # values after options handling.
3190 This file was extended by RT $as_me 3.6.10, which was
3191 generated by GNU Autoconf 2.64. Invocation command line was
3193 CONFIG_FILES = $CONFIG_FILES
3194 CONFIG_HEADERS = $CONFIG_HEADERS
3195 CONFIG_LINKS = $CONFIG_LINKS
3196 CONFIG_COMMANDS = $CONFIG_COMMANDS
3199 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3204 case $ac_config_files in *"
3205 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3211 # Files that config.status was made for.
3212 config_files="$ac_config_files"
3216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3218 \`$as_me' instantiates files and other configuration actions
3219 from templates according to the current configuration. Unless the files
3220 and actions are specified as TAGs, all are instantiated by default.
3222 Usage: $0 [OPTION]... [TAG]...
3224 -h, --help print this help, then exit
3225 -V, --version print version number and configuration settings, then exit
3226 -q, --quiet, --silent
3227 do not print progress messages
3228 -d, --debug don't remove temporary files
3229 --recheck update $as_me by reconfiguring in the same conditions
3230 --file=FILE[:TEMPLATE]
3231 instantiate the configuration file FILE
3233 Configuration files:
3236 Report bugs to <rt-bugs@bestpractical.com>."
3239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3241 RT config.status 3.6.10
3242 configured by $0, generated by GNU Autoconf 2.64,
3243 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3245 Copyright (C) 2009 Free Software Foundation, Inc.
3246 This config.status script is free software; the Free Software Foundation
3247 gives unlimited permission to copy, distribute and modify it."
3253 test -n "\$AWK" || AWK=awk
3256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3257 # The default lists apply if the user does not specify any file.
3263 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3264 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3275 # Handling of the options.
3276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3278 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3279 $as_echo "$ac_cs_version"; exit ;;
3280 --debug | --debu | --deb | --de | --d | -d )
3282 --file | --fil | --fi | --f )
3285 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3287 as_fn_append CONFIG_FILES " '$ac_optarg'"
3288 ac_need_defaults=false;;
3289 --he | --h | --help | --hel | -h )
3290 $as_echo "$ac_cs_usage"; exit ;;
3291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3292 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3296 -*) as_fn_error "unrecognized option: \`$1'
3297 Try \`$0 --help' for more information." ;;
3299 *) as_fn_append ac_config_targets " $1"
3300 ac_need_defaults=false ;;
3306 ac_configure_extra_args=
3308 if $ac_cs_silent; then
3310 ac_configure_extra_args="$ac_configure_extra_args --silent"
3314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3315 if \$ac_cs_recheck; then
3316 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3318 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3319 CONFIG_SHELL='$SHELL'
3325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3329 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3330 ## Running $as_me. ##
3336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3341 # Handling of arguments.
3342 for ac_config_target in $ac_config_targets
3344 case $ac_config_target in
3345 "sbin/rt-dump-database") CONFIG_FILES="$CONFIG_FILES sbin/rt-dump-database" ;;
3346 "sbin/rt-setup-database") CONFIG_FILES="$CONFIG_FILES sbin/rt-setup-database" ;;
3347 "sbin/rt-test-dependencies") CONFIG_FILES="$CONFIG_FILES sbin/rt-test-dependencies" ;;
3348 "bin/mason_handler.fcgi") CONFIG_FILES="$CONFIG_FILES bin/mason_handler.fcgi" ;;
3349 "bin/mason_handler.scgi") CONFIG_FILES="$CONFIG_FILES bin/mason_handler.scgi" ;;
3350 "bin/standalone_httpd") CONFIG_FILES="$CONFIG_FILES bin/standalone_httpd" ;;
3351 "bin/rt-crontool") CONFIG_FILES="$CONFIG_FILES bin/rt-crontool" ;;
3352 "bin/rt-mailgate") CONFIG_FILES="$CONFIG_FILES bin/rt-mailgate" ;;
3353 "bin/rt") CONFIG_FILES="$CONFIG_FILES bin/rt" ;;
3354 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3355 "etc/RT_Config.pm") CONFIG_FILES="$CONFIG_FILES etc/RT_Config.pm" ;;
3356 "lib/RT.pm") CONFIG_FILES="$CONFIG_FILES lib/RT.pm" ;;
3357 "bin/mason_handler.svc") CONFIG_FILES="$CONFIG_FILES bin/mason_handler.svc" ;;
3358 "bin/webmux.pl") CONFIG_FILES="$CONFIG_FILES bin/webmux.pl" ;;
3360 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3365 # If the user did not use the arguments to specify the items to instantiate,
3366 # then the envvar interface is used. Set only those that are not.
3367 # We use the long form for the default assignment because of an extremely
3368 # bizarre bug on SunOS 4.1.3.
3369 if $ac_need_defaults; then
3370 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3373 # Have a temporary directory for convenience. Make it in the build tree
3374 # simply because there is no reason against having it here, and in addition,
3375 # creating and moving files from /tmp can sometimes cause problems.
3376 # Hook for its removal unless debugging.
3377 # Note that there is a small window in which the directory will not be cleaned:
3378 # after its creation but before its name has been assigned to `$tmp'.
3382 trap 'exit_status=$?
3383 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3385 trap 'as_fn_exit 1' 1 2 13 15
3387 # Create a (secure) tmp directory for tmp files.
3390 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3391 test -n "$tmp" && test -d "$tmp"
3394 tmp=./conf$$-$RANDOM
3395 (umask 077 && mkdir "$tmp")
3396 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
3398 # Set up the scripts for CONFIG_FILES section.
3399 # No need to generate them if there are no CONFIG_FILES.
3400 # This happens for instance with `./config.status config.h'.
3401 if test -n "$CONFIG_FILES"; then
3404 ac_cr=`echo X | tr X '\015'`
3405 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3406 # But we know of no other shell where ac_cr would be empty at this
3407 # point, so we can use a bashism as a fallback.
3408 if test "x$ac_cr" = x; then
3409 eval ac_cr=\$\'\\r\'
3411 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3412 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3418 echo 'BEGIN {' >"$tmp/subs1.awk" &&
3423 echo "cat >conf$$subs.awk <<_ACEOF" &&
3424 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3427 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3428 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
3430 for ac_last_try in false false false false false :; do
3431 . ./conf$$subs.sh ||
3432 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3434 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3435 if test $ac_delim_n = $ac_delim_num; then
3437 elif $ac_last_try; then
3438 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3446 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
3450 s/^/S["/; s/!.*/"]=/
3460 s/\(.\{148\}\).*/\1/
3462 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3467 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3474 s/\(.\{148\}\).*/\1/
3476 s/["\\]/\\&/g; s/^/"/; s/$/"/
3480 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3485 ' <conf$$subs.awk | sed '
3490 ' >>$CONFIG_STATUS || ac_write_fail=1
3491 rm -f conf$$subs.awk
3492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3494 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
3495 for (key in S) S_is_set[key] = 1
3501 nfields = split(line, field, "@")
3503 len = length(field[1])
3504 for (i = 2; i < nfields; i++) {
3506 keylen = length(key)
3507 if (S_is_set[key]) {
3509 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3510 len += length(value) + length(field[++i])
3521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3522 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3523 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3526 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
3527 || as_fn_error "could not setup config files machinery" "$LINENO" 5
3530 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3531 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3532 # trailing colons and then remove the whole line if VPATH becomes empty
3533 # (actually we leave an empty line to preserve line numbers).
3534 if test "x$srcdir" = x.; then
3535 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3539 s/^\([^=]*=[ ]*\):*/\1/
3545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3546 fi # test -n "$CONFIG_FILES"
3549 eval set X " :F $CONFIG_FILES "
3554 :[FHLC]) ac_mode=$ac_tag; continue;;
3556 case $ac_mode$ac_tag in
3558 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
3559 :[FH]-) ac_tag=-:-;;
3560 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3577 -) ac_f="$tmp/stdin";;
3578 *) # Look for the file first in the build tree, then in the source tree
3579 # (if the path is not absolute). The absolute path cannot be DOS-style,
3580 # because $ac_f cannot contain `:'.
3584 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3586 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3588 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3589 as_fn_append ac_file_inputs " '$ac_f'"
3592 # Let's still pretend it is `configure' which instantiates (i.e., don't
3593 # use $as_me), people would be surprised to read:
3594 # /* config.h. Generated by config.status. */
3595 configure_input='Generated from '`
3596 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3598 if test x"$ac_file" != x-; then
3599 configure_input="$ac_file. $configure_input"
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3601 $as_echo "$as_me: creating $ac_file" >&6;}
3603 # Neutralize special characters interpreted by sed in replacement strings.
3604 case $configure_input in #(
3605 *\&* | *\|* | *\\* )
3606 ac_sed_conf_input=`$as_echo "$configure_input" |
3607 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3608 *) ac_sed_conf_input=$configure_input;;
3612 *:-:* | *:-) cat >"$tmp/stdin" \
3613 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
3618 ac_dir=`$as_dirname -- "$ac_file" ||
3619 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3620 X"$ac_file" : 'X\(//\)[^/]' \| \
3621 X"$ac_file" : 'X\(//\)$' \| \
3622 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3623 $as_echo X"$ac_file" |
3624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3641 as_dir="$ac_dir"; as_fn_mkdir_p
3645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3648 # A ".." for each directory in $ac_dir_suffix.
3649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3650 case $ac_top_builddir_sub in
3651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3655 ac_abs_top_builddir=$ac_pwd
3656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
3657 # for backward compatibility:
3658 ac_top_builddir=$ac_top_build_prefix
3661 .) # We are building in place.
3663 ac_top_srcdir=$ac_top_builddir_sub
3664 ac_abs_top_srcdir=$ac_pwd ;;
3665 [\\/]* | ?:[\\/]* ) # Absolute name.
3666 ac_srcdir=$srcdir$ac_dir_suffix;
3667 ac_top_srcdir=$srcdir
3668 ac_abs_top_srcdir=$srcdir ;;
3670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3671 ac_top_srcdir=$ac_top_build_prefix$srcdir
3672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3684 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3685 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
3689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3690 # If the template does not know about datarootdir, expand it.
3691 # FIXME: This hack should be removed a few years after 2.60.
3692 ac_datarootdir_hack=; ac_datarootdir_seen=
3703 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3704 *datarootdir*) ac_datarootdir_seen=yes;;
3705 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3707 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3710 ac_datarootdir_hack='
3711 s&@datadir@&$datadir&g
3712 s&@docdir@&$docdir&g
3713 s&@infodir@&$infodir&g
3714 s&@localedir@&$localedir&g
3715 s&@mandir@&$mandir&g
3716 s&\\\${datarootdir}&$datarootdir&g' ;;
3720 # Neutralize VPATH when `$srcdir' = `.'.
3721 # Shell code in configure.ac might set extrasub.
3722 # FIXME: do we really want to maintain this feature?
3723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3724 ac_sed_extra="$ac_vpsub
3727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3729 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3730 s|@configure_input@|$ac_sed_conf_input|;t t
3731 s&@top_builddir@&$ac_top_builddir_sub&;t t
3732 s&@top_build_prefix@&$ac_top_build_prefix&;t t
3733 s&@srcdir@&$ac_srcdir&;t t
3734 s&@abs_srcdir@&$ac_abs_srcdir&;t t
3735 s&@top_srcdir@&$ac_top_srcdir&;t t
3736 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3737 s&@builddir@&$ac_builddir&;t t
3738 s&@abs_builddir@&$ac_abs_builddir&;t t
3739 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3740 s&@INSTALL@&$ac_INSTALL&;t t
3741 $ac_datarootdir_hack
3743 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
3744 || as_fn_error "could not create $ac_file" "$LINENO" 5
3746 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3747 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
3748 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3750 which seems to be undefined. Please make sure it is defined." >&5
3751 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3752 which seems to be undefined. Please make sure it is defined." >&2;}
3756 -) cat "$tmp/out" && rm -f "$tmp/out";;
3757 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
3759 || as_fn_error "could not create $ac_file" "$LINENO" 5
3767 case $ac_file$ac_mode in
3768 "sbin/rt-dump-database":F) chmod ug+x $ac_file
3770 "sbin/rt-setup-database":F) chmod ug+x $ac_file
3772 "sbin/rt-test-dependencies":F) chmod ug+x $ac_file
3774 "bin/mason_handler.fcgi":F) chmod ug+x $ac_file
3776 "bin/mason_handler.scgi":F) chmod ug+x $ac_file
3778 "bin/standalone_httpd":F) chmod ug+x $ac_file
3780 "bin/rt-crontool":F) chmod ug+x $ac_file
3782 "bin/rt-mailgate":F) chmod ug+x $ac_file
3784 "bin/rt":F) chmod ug+x $ac_file
3793 ac_clean_files=$ac_clean_files_save
3795 test $ac_write_fail = 0 ||
3796 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
3799 # configure is writing to config.log, and then calls config.status.
3800 # config.status does its own redirection, appending to config.log.
3801 # Unfortunately, on DOS this fails, as config.log is still kept open
3802 # by configure, so config.status won't be able to write to it; its
3803 # output is simply discarded. So we exec the FD to /dev/null,
3804 # effectively closing config.log, so it can be properly (re)opened and
3805 # appended to by config.status. When coming back to configure, we
3806 # need to make the FD available again.
3807 if test "$no_create" != yes; then
3809 ac_config_status_args=
3810 test "$silent" = yes &&
3811 ac_config_status_args="$ac_config_status_args --quiet"
3813 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3815 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3816 # would make configure fail if this is the last instruction.
3817 $ac_cs_success || as_fn_exit $?
3819 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3821 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}