/[cvs]/ccvs/configure.in
ViewVC logotype

Diff of /ccvs/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.352 by dprice, Mon May 23 18:40:52 2005 UTC revision 1.353 by dprice, Wed Aug 31 16:53:26 2005 UTC
# Line 1443  dnl end --enable-old-info-support Line 1443  dnl end --enable-old-info-support
1443  dnl  dnl
1444    
1445    
1446    dnl
1447    dnl begin --enable-config-override
1448    dnl
1449    
1450    AC_ARG_ENABLE(
1451      [config-override],
1452      AC_HELP_STRING(
1453        [--enable-config-override],
1454        [Set to a comma-seperated list of paths to directories (designated by
1455         trailing `/') and files, specifies the path prefixes (for directories) and
1456         paths to files the CVS server commands will allow configuration to be read
1457         from.  Specify `--enable-config-override=no' to disable config file
1458         overrides completely and `--enable-config-override=/' or simply
1459         `--enable-config-override' to allow all paths.  (Defaults to
1460         `SYSCONFDIR/cvs.conf,SYSCONFDIR/cvs/')]),,
1461      [# $sysconfdir may still contain variable references.
1462       eval enable_config_override=`echo $sysconfdir/cvs.conf,$sysconfdir/cvs/`])
1463    
1464    if test x"$enable_config_override" = xyes; then
1465      enable_config_override=/
1466    fi
1467    
1468    if test x"$enable_config_override" = xno; then :; else
1469      save_IFS=$IFS
1470      IFS=,
1471      arrayinit=""
1472      for path in $enable_config_override; do
1473        IFS=$save_IFS
1474        case "$path" in
1475          [[\\/$]]* | ?:[[\\/]]* )
1476            arrayinit="$arrayinit\"$path\", "
1477            ;;
1478          *)  AC_MSG_ERROR([expected comma separated list of absolute directory
1479                            names for --enable-config-override, or \`no', not:
1480                            \`$enable_config_override' (\`$path' invalid.)]);;
1481        esac
1482      done
1483      arrayinit="${arrayinit}NULL"
1484    
1485      AC_DEFINE_UNQUOTED(ALLOW_CONFIG_OVERRIDE, [$arrayinit],
1486        [Define this to a NULL terminated list of allowed path prefixes (for
1487         directories) and paths to files the CVS server will allow configuration to
1488         be read from when specified from the command line.])
1489    fi
1490    
1491    dnl
1492    dnl end --enable-config-override
1493    dnl
1494    
1495    
1496    
1497  dnl  dnl
1498  dnl end --enable-*  dnl end --enables
1499  dnl  dnl
1500    
1501    

Legend:
Removed from v.1.352  
changed lines
  Added in v.1.353

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26