From: Ben Pfaff Date: Mon, 21 Jul 2008 22:04:54 +0000 (-0700) Subject: Move Autoconf's macro definitions into config.h. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f730dded18218f869c3c316b98912ff19d8fb71c;p=openvswitch Move Autoconf's macro definitions into config.h. This makes "make" output slightly more readable. --- diff --git a/configure.ac b/configure.ac index 22f263d4..eb5f9fdd 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,6 @@ AC_PREREQ(2.59) AC_INIT(openflow, v0.8.1, info@openflowswitch.org) +AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE AC_PROG_CC diff --git a/controller/controller.c b/controller/controller.c index c43926c4..8e2c7b5c 100644 --- a/controller/controller.c +++ b/controller/controller.c @@ -31,6 +31,8 @@ * derivatives without specific, written prior permission. */ +#include + #include #include #include diff --git a/lib/buffer.c b/lib/buffer.c index 1abe2406..2014248d 100644 --- a/lib/buffer.c +++ b/lib/buffer.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "buffer.h" #include #include diff --git a/lib/command-line.c b/lib/command-line.c index 5ad98d76..7ab08a4d 100644 --- a/lib/command-line.c +++ b/lib/command-line.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "command-line.h" #include #include diff --git a/lib/csum.c b/lib/csum.c index 6e9b06b0..81b3dc13 100644 --- a/lib/csum.c +++ b/lib/csum.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "csum.h" /* Returns the IP checksum of the 'n' bytes in 'data'. */ diff --git a/lib/daemon.c b/lib/daemon.c index e3c2b13e..2a835be9 100644 --- a/lib/daemon.c +++ b/lib/daemon.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "daemon.h" #include #include diff --git a/lib/dhcp-client.c b/lib/dhcp-client.c index 98f9b445..c1724477 100644 --- a/lib/dhcp-client.c +++ b/lib/dhcp-client.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "dhcp-client.h" #include #include diff --git a/lib/dhcp.c b/lib/dhcp.c index 851c5638..1e8918f7 100644 --- a/lib/dhcp.c +++ b/lib/dhcp.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "dhcp.h" #include #include diff --git a/lib/dpif.c b/lib/dpif.c index 5d9c33c6..202a1828 100644 --- a/lib/dpif.c +++ b/lib/dpif.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "dpif.h" #include diff --git a/lib/dynamic-string.c b/lib/dynamic-string.c index f08e8cb5..d12739b7 100644 --- a/lib/dynamic-string.c +++ b/lib/dynamic-string.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "dynamic-string.h" #include #include diff --git a/lib/fatal-signal.c b/lib/fatal-signal.c index 43b27a39..33bc5942 100644 --- a/lib/fatal-signal.c +++ b/lib/fatal-signal.c @@ -30,6 +30,7 @@ * advertising or publicity pertaining to the Software or any * derivatives without specific, written prior permission. */ +#include #include "fatal-signal.h" #include #include diff --git a/lib/fault.c b/lib/fault.c index 0967f7db..76235709 100644 --- a/lib/fault.c +++ b/lib/fault.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "fault.h" #include #include diff --git a/lib/flow.c b/lib/flow.c index 449a286f..7340e7d4 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -30,6 +30,7 @@ * advertising or publicity pertaining to the Software or any * derivatives without specific, written prior permission. */ +#include #include #include "flow.h" #include diff --git a/lib/hash.c b/lib/hash.c index b65a49df..8e87216b 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -30,6 +30,7 @@ * advertising or publicity pertaining to the Software or any * derivatives without specific, written prior permission. */ +#include #include "hash.h" uint32_t diff --git a/lib/learning-switch.c b/lib/learning-switch.c index 3b432d3b..b477e705 100644 --- a/lib/learning-switch.c +++ b/lib/learning-switch.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "learning-switch.h" #include diff --git a/lib/list.c b/lib/list.c index c35ef10b..8eaf9fe9 100644 --- a/lib/list.c +++ b/lib/list.c @@ -30,6 +30,7 @@ * advertising or publicity pertaining to the Software or any * derivatives without specific, written prior permission. */ +#include #include "list.h" #include diff --git a/lib/mac-learning.c b/lib/mac-learning.c index 5311ccf6..29a66f1b 100644 --- a/lib/mac-learning.c +++ b/lib/mac-learning.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "mac-learning.h" #include diff --git a/lib/netdev.c b/lib/netdev.c index 34c7747d..0bcef671 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "netdev.h" #include diff --git a/lib/netlink.c b/lib/netlink.c index 2d63ceba..d9dd435c 100644 --- a/lib/netlink.c +++ b/lib/netlink.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "netlink.h" #include #include diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 6ba3694e..2af4553f 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "ofp-print.h" #include "xtoxll.h" diff --git a/lib/poll-loop.c b/lib/poll-loop.c index 556521ab..71f1e6f2 100644 --- a/lib/poll-loop.c +++ b/lib/poll-loop.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "poll-loop.h" #include #include diff --git a/lib/queue.c b/lib/queue.c index 586ae52a..635e1442 100644 --- a/lib/queue.c +++ b/lib/queue.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "queue.h" #include #include "buffer.h" diff --git a/lib/random.c b/lib/random.c index d5d8b957..c7a3edf7 100644 --- a/lib/random.c +++ b/lib/random.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "random.h" #include diff --git a/lib/rconn.c b/lib/rconn.c index a145e4e3..5bd352b0 100644 --- a/lib/rconn.c +++ b/lib/rconn.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "rconn.h" #include #include diff --git a/lib/socket-util.c b/lib/socket-util.c index 20e0f207..91cdc1d6 100644 --- a/lib/socket-util.c +++ b/lib/socket-util.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "socket-util.h" #include #include diff --git a/lib/util.c b/lib/util.c index 230a2470..59c7806e 100644 --- a/lib/util.c +++ b/lib/util.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "util.h" #include #include diff --git a/lib/vconn-netlink.c b/lib/vconn-netlink.c index 84d7d354..403f3fc1 100644 --- a/lib/vconn-netlink.c +++ b/lib/vconn-netlink.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "vconn.h" #include #include diff --git a/lib/vconn-ssl.c b/lib/vconn-ssl.c index a7060d74..d109cfdb 100644 --- a/lib/vconn-ssl.c +++ b/lib/vconn-ssl.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "vconn-ssl.h" #include "dhparams.h" #include diff --git a/lib/vconn-tcp.c b/lib/vconn-tcp.c index 80c8f56c..7fbec081 100644 --- a/lib/vconn-tcp.c +++ b/lib/vconn-tcp.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "vconn.h" #include #include diff --git a/lib/vconn.c b/lib/vconn.c index 103c9df5..69fe7f8e 100644 --- a/lib/vconn.c +++ b/lib/vconn.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "vconn.h" #include #include diff --git a/lib/vlog-socket.c b/lib/vlog-socket.c index 05b91864..7caaf12e 100644 --- a/lib/vlog-socket.c +++ b/lib/vlog-socket.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "vlog-socket.h" #include #include diff --git a/lib/vlog.c b/lib/vlog.c index 6b3d871f..6494de93 100644 --- a/lib/vlog.c +++ b/lib/vlog.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "vlog.h" #include #include diff --git a/secchan/secchan.c b/secchan/secchan.c index 7fb50c97..cc9e3bc4 100644 --- a/secchan/secchan.c +++ b/secchan/secchan.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include #include #include diff --git a/switch/chain.c b/switch/chain.c index a85a6501..1e45a44b 100644 --- a/switch/chain.c +++ b/switch/chain.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "chain.h" #include #include diff --git a/switch/crc32.c b/switch/crc32.c index 97c09611..f6c2c0b3 100644 --- a/switch/crc32.c +++ b/switch/crc32.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "crc32.h" void diff --git a/switch/switch-flow.c b/switch/switch-flow.c index 2af71d66..732cea54 100644 --- a/switch/switch-flow.c +++ b/switch/switch-flow.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "switch-flow.h" #include #include diff --git a/switch/switch.c b/switch/switch.c index 6cc6ae4e..ee61fd6d 100644 --- a/switch/switch.c +++ b/switch/switch.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include #include #include diff --git a/switch/table-hash.c b/switch/table-hash.c index aaec5039..461a4636 100644 --- a/switch/table-hash.c +++ b/switch/table-hash.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "table.h" #include #include diff --git a/switch/table-linear.c b/switch/table-linear.c index 6371bc25..ff9d60b6 100644 --- a/switch/table-linear.c +++ b/switch/table-linear.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "table.h" #include #include "flow.h" diff --git a/tests/test-dhcp-client.c b/tests/test-dhcp-client.c index 528d1b19..3ed6eb6b 100644 --- a/tests/test-dhcp-client.c +++ b/tests/test-dhcp-client.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include "dhcp-client.h" #include #include diff --git a/tests/test-list.c b/tests/test-list.c index b9599dbf..62857be9 100644 --- a/tests/test-list.c +++ b/tests/test-list.c @@ -1,6 +1,7 @@ /* A non-exhaustive test for some of the functions and macros declared in * list.h. */ +#include #include "list.h" #include diff --git a/tests/test-type-props.c b/tests/test-type-props.c index 5dff4d41..67dabae8 100644 --- a/tests/test-type-props.c +++ b/tests/test-type-props.c @@ -1,3 +1,4 @@ +#include #include "type-props.h" #include #include diff --git a/utilities/dpctl.c b/utilities/dpctl.c index f5b2adec..7a3a020e 100644 --- a/utilities/dpctl.c +++ b/utilities/dpctl.c @@ -31,6 +31,7 @@ * derivatives without specific, written prior permission. */ +#include #include #include #include diff --git a/utilities/vlogconf.c b/utilities/vlogconf.c index f42740d8..838597d4 100644 --- a/utilities/vlogconf.c +++ b/utilities/vlogconf.c @@ -30,6 +30,7 @@ * advertising or publicity pertaining to the Software or any * derivatives without specific, written prior permission. */ +#include #include "vlog.h" #include