diff options
| -rwxr-xr-x | configure | 159 | ||||
| -rw-r--r-- | configure.in | 22 |
2 files changed, 106 insertions, 75 deletions
@@ -1,6 +1,6 @@ #! /bin/sh -# From configure.in Revision: 2.27 +# From configure.in Revision: 2.28 # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 @@ -25,6 +25,8 @@ ac_help="$ac_help ac_help="$ac_help --with-groupname specify a group name other than \"mailman\"" ac_help="$ac_help + --without-permcheck skip the check for target directory permissions" +ac_help="$ac_help --with-mail-gid specify GID mail programs run as" ac_help="$ac_help --with-cgi-gid specify GID CGI programs run as" @@ -552,7 +554,7 @@ fi # Check for Python! Better be found on $PATH echo $ac_n "checking for --with-python""... $ac_c" 1>&6 -echo "configure:556: checking for --with-python" >&5 +echo "configure:558: checking for --with-python" >&5 # Check whether --with-python or --without-python was given. if test "${with_python+set}" = set; then withval="$with_python" @@ -570,7 +572,7 @@ then # Extract the first word of "python", so it can be a program name with args. set dummy python; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:574: checking for $ac_word" >&5 +echo "configure:576: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_with_python'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -606,7 +608,7 @@ fi fi echo $ac_n "checking Python interpreter""... $ac_c" 1>&6 -echo "configure:610: checking Python interpreter" >&5 +echo "configure:612: checking Python interpreter" >&5 if test ! -x $with_python then { echo "configure: error: @@ -621,7 +623,7 @@ echo "$ac_t""$PYTHON" 1>&6 # See if Python is new enough. 2.0 final or better is required. echo $ac_n "checking Python version""... $ac_c" 1>&6 -echo "configure:625: checking Python version" >&5 +echo "configure:627: checking Python version" >&5 cat > conftest.py <<EOF import sys @@ -683,7 +685,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:687: checking for a BSD compatible install" >&5 +echo "configure:689: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -736,7 +738,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:740: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:742: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -765,7 +767,7 @@ fi # Extract the first word of "true", so it can be a program name with args. set dummy true; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:769: checking for $ac_word" >&5 +echo "configure:771: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_TRUE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -801,7 +803,7 @@ fi # Find compiler, allow alternatives to gcc echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 -echo "configure:805: checking for --without-gcc" >&5 +echo "configure:807: checking for --without-gcc" >&5 # Check whether --with-gcc or --without-gcc was given. if test "${with_gcc+set}" = set; then withval="$with_gcc" @@ -830,7 +832,7 @@ fi # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:834: checking for $ac_word" >&5 +echo "configure:836: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -860,7 +862,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:864: checking for $ac_word" >&5 +echo "configure:866: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -911,7 +913,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:915: checking for $ac_word" >&5 +echo "configure:917: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -943,7 +945,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:947: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -954,12 +956,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 958 "configure" +#line 960 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -985,12 +987,12 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:989: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:991: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:994: checking whether we are using GNU C" >&5 +echo "configure:996: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -999,7 +1001,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -1018,7 +1020,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1022: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:1024: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1070,7 +1072,7 @@ fi # Pull the hash mark out of the macro call to avoid m4 problems. ac_msg="whether #! works in shell scripts" echo $ac_n "checking $ac_msg""... $ac_c" 1>&6 -echo "configure:1074: checking $ac_msg" >&5 +echo "configure:1076: checking $ac_msg" >&5 if eval "test \"`echo '$''{'ac_cv_sys_interpreter'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1103,7 +1105,7 @@ fi default_var_prefix="/var/mailman" echo $ac_n "checking for --with-var-prefix""... $ac_c" 1>&6 -echo "configure:1107: checking for --with-var-prefix" >&5 +echo "configure:1109: checking for --with-var-prefix" >&5 # Check whether --with-var-prefix or --without-var-prefix was given. if test "${with_var_prefix+set}" = set; then withval="$with_var_prefix" @@ -1126,7 +1128,7 @@ echo "$ac_t""$ans" 1>&6 # Check for some other uid to use than `mailman' echo $ac_n "checking for --with-username""... $ac_c" 1>&6 -echo "configure:1130: checking for --with-username" >&5 +echo "configure:1132: checking for --with-username" >&5 # Check whether --with-username or --without-username was given. if test "${with_username+set}" = set; then withval="$with_username" @@ -1144,7 +1146,7 @@ echo "$ac_t""$USERNAME" 1>&6 # User `mailman' must exist echo $ac_n "checking for $USERNAME UID""... $ac_c" 1>&6 -echo "configure:1148: checking for $USERNAME UID" >&5 +echo "configure:1150: checking for $USERNAME UID" >&5 # MAILMAN_UID == variable name # $USERNAME == user id to check for @@ -1187,7 +1189,7 @@ fi # Check for some other gid to use than `mailman' echo $ac_n "checking for --with-groupname""... $ac_c" 1>&6 -echo "configure:1191: checking for --with-groupname" >&5 +echo "configure:1193: checking for --with-groupname" >&5 # Check whether --with-groupname or --without-groupname was given. if test "${with_groupname+set}" = set; then withval="$with_groupname" @@ -1206,7 +1208,7 @@ echo "$ac_t""$GROUPNAME" 1>&6 # Target group must exist echo $ac_n "checking for $GROUPNAME GID""... $ac_c" 1>&6 -echo "configure:1210: checking for $GROUPNAME GID" >&5 +echo "configure:1212: checking for $GROUPNAME GID" >&5 # MAILMAN_GID == variable name # $GROUPNAME == user id to check for @@ -1247,6 +1249,19 @@ then fi +echo $ac_n "checking for --with-permcheck""... $ac_c" 1>&6 +echo "configure:1254: checking for --with-permcheck" >&5 +# Check whether --with-permcheck or --without-permcheck was given. +if test "${with_permcheck+set}" = set; then + withval="$with_permcheck" + : +fi + +if test -z "$with_permcheck" +then + with_permcheck="yes" +fi +echo "$ac_t""$with_permcheck" 1>&6 # Now make sure that $prefix is set up correctly. It must be group # owned by the target group, it must have the group sticky bit set, and # it must be a+rx @@ -1259,7 +1274,7 @@ else fi echo $ac_n "checking permissions on $prefixcheck""... $ac_c" 1>&6 -echo "configure:1263: checking permissions on $prefixcheck" >&5 +echo "configure:1278: checking permissions on $prefixcheck" >&5 cat > conftest.py <<EOF import os, grp @@ -1294,20 +1309,24 @@ EOF $PYTHON conftest.py status=`cat conftest.out` rm -f conftest.out conftest.py -if test "$status" != "okay" +if test "$with_permcheck" = "yes" then - { echo "configure: error: + if test "$status" != "okay" + then + { echo "configure: error: ***** Installation directory $prefixcheck is not configured properly! $status" 1>&2; exit 1; } + fi +else + status="skipped" fi - -echo "$ac_t""okay" 1>&6 +echo "$ac_t""$status" 1>&6 # Now find the UIDs and GIDs # Support --with-mail-gid and --with-cgi-gid echo $ac_n "checking for mail wrapper GID; i.e. --with-mail-gid""... $ac_c" 1>&6 -echo "configure:1311: checking for mail wrapper GID; i.e. --with-mail-gid" >&5 +echo "configure:1330: checking for mail wrapper GID; i.e. --with-mail-gid" >&5 # Check whether --with-mail-gid or --without-mail-gid was given. if test "${with_mail_gid+set}" = set; then withval="$with_mail_gid" @@ -1368,7 +1387,7 @@ fi echo $ac_n "checking for CGI wrapper GID; i.e. --with-cgi-gid""... $ac_c" 1>&6 -echo "configure:1372: checking for CGI wrapper GID; i.e. --with-cgi-gid" >&5 +echo "configure:1391: checking for CGI wrapper GID; i.e. --with-cgi-gid" >&5 # Check whether --with-cgi-gid or --without-cgi-gid was given. if test "${with_cgi_gid+set}" = set; then withval="$with_cgi_gid" @@ -1434,7 +1453,7 @@ fi # Check for CGI extensions, required by some Web servers echo $ac_n "checking for CGI extensions""... $ac_c" 1>&6 -echo "configure:1438: checking for CGI extensions" >&5 +echo "configure:1457: checking for CGI extensions" >&5 # Check whether --with-cgi-ext or --without-cgi-ext was given. if test "${with_cgi_ext+set}" = set; then withval="$with_cgi_ext" @@ -1454,7 +1473,7 @@ echo "$ac_t""$with_cgi_ext" 1>&6 # figure out the default mail hostname and url host component echo $ac_n "checking for --with-mailhost""... $ac_c" 1>&6 -echo "configure:1458: checking for --with-mailhost" >&5 +echo "configure:1477: checking for --with-mailhost" >&5 # Check whether --with-mailhost or --without-mailhost was given. if test "${with_mailhost+set}" = set; then withval="$with_mailhost" @@ -1472,7 +1491,7 @@ echo "$ac_t""$with_mailhost" 1>&6 echo $ac_n "checking for --with-urlhost""... $ac_c" 1>&6 -echo "configure:1476: checking for --with-urlhost" >&5 +echo "configure:1495: checking for --with-urlhost" >&5 # Check whether --with-urlhost or --without-urlhost was given. if test "${with_urlhost+set}" = set; then withval="$with_urlhost" @@ -1501,14 +1520,14 @@ EOF $PYTHON conftest.py echo $ac_n "checking for default mail host name""... $ac_c" 1>&6 -echo "configure:1505: checking for default mail host name" >&5 +echo "configure:1524: checking for default mail host name" >&5 if test -z "$MAILHOST" then MAILHOST=`sed q conftest.out` fi echo "$ac_t""$MAILHOST" 1>&6 echo $ac_n "checking for default URL host component""... $ac_c" 1>&6 -echo "configure:1512: checking for default URL host component" >&5 +echo "configure:1531: checking for default URL host component" >&5 if test -z "$URLHOST" then URLHOST=`sed -n '$p' conftest.out` @@ -1520,12 +1539,12 @@ rm -f conftest.out conftest.py for ac_func in strerror setregid syslog do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1524: checking for $ac_func" >&5 +echo "configure:1543: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1529 "configure" +#line 1548 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -1548,7 +1567,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:1552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1579,17 +1598,17 @@ if test $ac_cv_func_syslog = no; then # with the appropriate include. for lib in bsd socket inet; do echo $ac_n "checking for syslog in -l$lib""... $ac_c" 1>&6 -echo "configure:1583: checking for syslog in -l$lib" >&5 +echo "configure:1602: checking for syslog in -l$lib" >&5 Mailman_LIBS_save="$LIBS"; LIBS="$LIBS -l$lib" cat > conftest.$ac_ext <<EOF -#line 1586 "configure" +#line 1605 "configure" #include "confdefs.h" #include <syslog.h> int main() { syslog(LOG_DEBUG, "Just a test..."); ; return 0; } EOF -if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF @@ -1611,7 +1630,7 @@ fi # Checks for header files. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:1615: checking how to run the C preprocessor" >&5 +echo "configure:1634: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -1626,13 +1645,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF -#line 1630 "configure" +#line 1649 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1643,13 +1662,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF -#line 1647 "configure" +#line 1666 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1660,13 +1679,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext <<EOF -#line 1664 "configure" +#line 1683 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1691,12 +1710,12 @@ fi echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:1695: checking for ANSI C header files" >&5 +echo "configure:1714: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1700 "configure" +#line 1719 "configure" #include "confdefs.h" #include <stdlib.h> #include <stdarg.h> @@ -1704,7 +1723,7 @@ else #include <float.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1721,7 +1740,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext <<EOF -#line 1725 "configure" +#line 1744 "configure" #include "confdefs.h" #include <string.h> EOF @@ -1739,7 +1758,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext <<EOF -#line 1743 "configure" +#line 1762 "configure" #include "confdefs.h" #include <stdlib.h> EOF @@ -1760,7 +1779,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext <<EOF -#line 1764 "configure" +#line 1783 "configure" #include "confdefs.h" #include <ctype.h> #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -1771,7 +1790,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF -if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -1798,17 +1817,17 @@ for ac_hdr in syslog.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1802: checking for $ac_hdr" >&5 +echo "configure:1821: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1807 "configure" +#line 1826 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1837,12 +1856,12 @@ done # Checks for typedefs, structures, and compiler characteristics. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:1841: checking for uid_t in sys/types.h" >&5 +echo "configure:1860: checking for uid_t in sys/types.h" >&5 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1846 "configure" +#line 1865 "configure" #include "confdefs.h" #include <sys/types.h> EOF @@ -1871,7 +1890,7 @@ EOF fi echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 -echo "configure:1875: checking type of array argument to getgroups" >&5 +echo "configure:1894: checking type of array argument to getgroups" >&5 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1879,7 +1898,7 @@ else ac_cv_type_getgroups=cross else cat > conftest.$ac_ext <<EOF -#line 1883 "configure" +#line 1902 "configure" #include "confdefs.h" /* Thanks to Mike Rendell for this test. */ @@ -1904,7 +1923,7 @@ main() } EOF -if { (eval echo configure:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_type_getgroups=gid_t else @@ -1918,7 +1937,7 @@ fi if test $ac_cv_type_getgroups = cross; then cat > conftest.$ac_ext <<EOF -#line 1922 "configure" +#line 1941 "configure" #include "confdefs.h" #include <unistd.h> EOF @@ -1946,12 +1965,12 @@ EOF for ac_func in vsnprintf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1950: checking for $ac_func" >&5 +echo "configure:1969: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1955 "configure" +#line 1974 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -1974,7 +1993,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2351,7 +2370,7 @@ chmod -R +x build # Test for the Chinese codecs. echo $ac_n "checking for Python Chinese Unicode codecs""... $ac_c" 1>&6 -echo "configure:2355: checking for Python Chinese Unicode codecs" >&5 +echo "configure:2374: checking for Python Chinese Unicode codecs" >&5 cat > conftest.py <<EOF try: unicode("abc", "big5-tw") diff --git a/configure.in b/configure.in index 643e68fab..25c39e694 100644 --- a/configure.in +++ b/configure.in @@ -15,7 +15,7 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. dnl Process this file with autoconf to produce a configure script. -AC_REVISION($Revision: 5372 $) +AC_REVISION($Revision: 5373 $) AC_PREREQ(2.0) AC_INIT(src/common.h) @@ -268,6 +268,14 @@ then fi +AC_MSG_CHECKING(for --with-permcheck) +AC_ARG_WITH(permcheck, dnl +[ --without-permcheck skip the check for target directory permissions]) +if test -z "$with_permcheck" +then + with_permcheck="yes" +fi +AC_MSG_RESULT($with_permcheck) # Now make sure that $prefix is set up correctly. It must be group # owned by the target group, it must have the group sticky bit set, and # it must be a+rx @@ -314,14 +322,18 @@ changequote([, ]) $PYTHON conftest.py status=`cat conftest.out` rm -f conftest.out conftest.py -if test "$status" != "okay" +if test "$with_permcheck" = "yes" then - AC_MSG_ERROR([ + if test "$status" != "okay" + then + AC_MSG_ERROR([ ***** Installation directory $prefixcheck is not configured properly! $status]) + fi +else + status="skipped" fi - -AC_MSG_RESULT(okay) +AC_MSG_RESULT($status) # Now find the UIDs and GIDs |
