]>
Commit | Line | Data |
---|---|---|
6b53c392 | 1 | #!/usr/bin/awk -f |
5d28d44b | 2 | |
4ac4a490 | 3 | ## Copyright (C) 1996-2017 The Squid Software Foundation and contributors |
5d28d44b AJ |
4 | ## |
5 | ## Squid software is distributed under GPLv2+ license and includes | |
6 | ## contributions from numerous individuals and organizations. | |
7 | ## Please see the COPYING and CONTRIBUTORS files for details. | |
8 | ## | |
9 | ||
6b53c392 | 10 | BEGIN { |
5d28d44b AJ |
11 | print "/* Generated automatically from cf.data.pre DO NOT EDIT */" |
12 | print "/*" | |
4ac4a490 | 13 | print " * Copyright (C) 1996-2017 The Squid Software Foundation and contributors" |
5d28d44b AJ |
14 | print " *" |
15 | print " * Squid software is distributed under GPLv2+ license and includes" | |
16 | print " * contributions from numerous individuals and organizations." | |
17 | print " * Please see the COPYING and CONTRIBUTORS files for details." | |
18 | print " */" | |
19 | print "" | |
c1f8bbd0 | 20 | print "#include \"autoconf.h\"" |
f75662c9 | 21 | print "static struct { const char *name; const char *enable; int defined;} defines[] = {" |
f2228f3b | 22 | define["_SQUID_WINDOWS_"]="MS Windows" |
97a616ca | 23 | define["FOLLOW_X_FORWARDED_FOR"]="--enable-follow-x-forwarded-for" |
96d64448 | 24 | define["FOLLOW_X_FORWARDED_FOR&&LINUX_NETFILTER"]="--enable-follow-x-forwarded-for and --enable-linux-netfilter" |
f2228f3b AJ |
25 | define["FOLLOW_X_FORWARDED_FOR&&USE_ADAPTATION"]="--enable-follow-x-forwarded-for and (--enable-icap-client and/or --enable-ecap)" |
26 | define["FOLLOW_X_FORWARDED_FOR&&USE_DELAY_POOLS"]="--enable-follow-x-forwarded-for and --enable-delay-pools" | |
27 | define["HAVE_MSTATS&&HAVE_GNUMALLOC_H"]="GNU Malloc with mstats()" | |
97a616ca | 28 | define["ICAP_CLIENT"]="--enable-icap-client" |
f2228f3b | 29 | define["SO_MARK&&USE_LIBCAP"]="Packet MARK (Linux)" |
6b53c392 | 30 | define["SQUID_SNMP"]="--enable-snmp" |
97a616ca | 31 | define["USE_ADAPTATION"]="--enable-ecap or --enable-icap-client" |
b6ead21b | 32 | define["USE_AUTH"]="--enable-auth" |
6b53c392 | 33 | define["USE_CACHE_DIGESTS"]="--enable-cache-digests" |
f2228f3b | 34 | define["USE_DELAY_POOLS"]="--enable-delay-pools" |
97a616ca AJ |
35 | define["USE_ECAP"]="--enable-ecap" |
36 | define["USE_ERR_LOCALES"]="--enable-auto-locale" | |
195f8adb | 37 | define["USE_GNUTLS||USE_OPENSSL"]="--with-gnutls or --with-openssl" |
6b53c392 | 38 | define["USE_HTCP"]="--enable-htcp" |
f2228f3b | 39 | define["USE_HTTP_VIOLATIONS"]="--enable-http-violations" |
6b53c392 | 40 | define["USE_ICMP"]="--enable-icmp" |
41 | define["USE_IDENT"]="--enable-ident-lookups" | |
97a616ca | 42 | define["USE_LOADABLE_MODULES"]="--enable-loadable-modules" |
f2228f3b AJ |
43 | define["USE_OPENSSL"]="--with-openssl" |
44 | define["USE_QOS_TOS"]="--enable-zph-qos" | |
97a616ca | 45 | define["USE_SQUID_ESI"]="--enable-esi" |
b6ead21b AJ |
46 | define["USE_SQUID_EUI"]="--enable-eui" |
47 | define["USE_SSL_CRTD"]="--enable-ssl-crtd" | |
06221e61 | 48 | define["USE_UNLINKD"]="--enable-unlinkd" |
6b53c392 | 49 | define["USE_WCCP"]="--enable-wccp" |
0b0cfcf2 | 50 | define["USE_WCCPv2"]="--enable-wccpv2" |
6b53c392 | 51 | } |
52 | /^IFDEF:/ { | |
de701c63 | 53 | if (define[$2] != "") |
b6ead21b AJ |
54 | DEFINE=define[$2] |
55 | else | |
59254e07 | 56 | DEFINE="-D" $2 " define" |
de701c63 | 57 | print "{\"" $2 "\", \"" DEFINE "\", " |
6b53c392 | 58 | print "#if " $2 |
59 | print "1" | |
60 | print "#else" | |
61 | print "0" | |
62 | print "#endif" | |
63 | print "}," | |
64 | } | |
65 | END { | |
e6ccf245 | 66 | print "{(char const *)0L, (char const *)0L, 0}};" |
6b53c392 | 67 | } |