}
}
+my @ifelse = ();
while (<>) {
chomp;
last if (/^EOF$/);
$data->{'default_doc'} = "";
$data->{'default_if_none'} = "";
- print "DEBUG: new option: $name\n" if $verbose;
+ print "DEBUG: line $.: new option: $name\n" if $verbose;
next;
+ } elsif ($_ =~ /^IF (.*)$/) {
+ my $cond = $1;
+ push(@ifelse, "$.: $1");
+ if (! defined $defines{$1}) {
+ print "NOTICE: line $.: unknown ./configure option '$1'\n";
+ } else {
+ $cond = $defines{$1};
+ }
+ if ($state eq "doc") {
+ $data->{"doc"} .= "if " . $cond . "\n";
+ } elsif ($state eq "comment") {
+ $comment .= "if " . $cond . "\n";
+ }
+ } elsif ($_ =~ /^ENDIF$/) {
+ pop(@ifelse);
+ if ($state eq "doc") {
+ $data->{"doc"} .= "endif\n";
+ } elsif ($state eq "comment") {
+ $comment .= "endif\n";
+ }
} elsif ($_ =~ /^COMMENT: (.*)$/) {
$data->{"comment"} = $1;
} elsif ($_ =~ /^TYPE: (.*)$/) {
} else {
$data->{"default"} .= "$name $1\n";
}
+ } elsif ($_ =~ /^POSTSCRIPTUM: (.*)$/) {
+ if ($data->{"default"} eq "none") {
+ $data->{"default"} = "";
+ }
+ $data->{"default"} .= "$name $1\n";
} elsif ($_ =~ /^DEFAULT_DOC: (.*)$/) {
$data->{"default_doc"} .= "$1\n";
} elsif ($_ =~ /^DEFAULT_IF_NONE: (.*)$/) {
} elsif (/^#/) {
next;
} elsif ($_ ne "") {
- print "NOTICE: unknown line '$_'\n";
+ print "NOTICE: line $.: unknown line '$_'\n";
}
}
+foreach my $condition (@ifelse) {
+ print "ERROR: missing ENDIF to match $condition\n";
+}
end_options;
print $index "<p><a href=\"index_all.html\">Alphabetic index</a></p>\n" if $format eq "splithtml";
print $index "<p><a href=\"#index\">Alphabetic index</a></p>\n" if $format eq "singlehtml";
acl aclname dst [-n] ip-address/mask ... # URL host's IP address [slow]
acl aclname localip ip-address/mask ... # IP address the client connected to [fast]
-if USE_SQUID_EUI
+IF USE_SQUID_EUI
acl aclname arp mac-address ...
acl aclname eui64 eui64-address ...
# [fast]
#
# IPv6 protocol does not contain ARP. MAC/EUI is either
# encoded directly in the IPv6 address or not available.
-endif
+ENDIF
acl aclname clientside_mark mark[/mask] ...
# matches CONNMARK of an accepted connection [fast]
# DEPRECATED. Use the 'client_connection_mark' instead.
# acl hasWhatMyLoggingDaemonNeeds has request
# acl hasWhatMyLoggingDaemonNeeds has response
-acl aclname at_step step
+ acl aclname at_step step
# match against the current request processing step [fast]
# Valid steps are:
# GeneratingCONNECT: Generating HTTP CONNECT request headers
define["FOLLOW_X_FORWARDED_FOR&&LINUX_NETFILTER"]="--enable-follow-x-forwarded-for and --enable-linux-netfilter"
define["FOLLOW_X_FORWARDED_FOR&&USE_ADAPTATION"]="--enable-follow-x-forwarded-for and (--enable-icap-client and/or --enable-ecap)"
define["FOLLOW_X_FORWARDED_FOR&&USE_DELAY_POOLS"]="--enable-follow-x-forwarded-for and --enable-delay-pools"
+ define["HAVE_AUTH_MODULE_BASIC"]="--enable-auth-basic"
+ define["HAVE_AUTH_MODULE_DIGEST"]="--enable-auth-digest"
define["HAVE_MSTATS&&HAVE_GNUMALLOC_H"]="GNU Malloc with mstats()"
define["ICAP_CLIENT"]="--enable-icap-client"
define["SO_MARK&&USE_LIBCAP"]="Packet MARK (Linux)"