diff options
author | Ben Pfaff <blp@nicira.com> | 2010-01-25 10:49:31 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-01-25 10:49:31 -0800 |
commit | 05b3c97be6a9a5efa27edb40023e329f680837c5 (patch) | |
tree | cec5b32820beebc50aacac91b6611caa0078cb65 /m4 | |
parent | 84a0ee89e29cdae2b9cc80ae383a1222ba4f5ad5 (diff) |
Add build checks for portable OpenFlow structure padding and alignment.
This causes the build to fail with an error message if openflow.h contains
a structure whose members are not aligned in a portable way.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/openvswitch.m4 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4 index 0890b9f4..bdb8b198 100644 --- a/m4/openvswitch.m4 +++ b/m4/openvswitch.m4 @@ -256,7 +256,12 @@ else: done done fi]) + AC_SUBST([HAVE_PYTHON]) AM_MISSING_PROG([PYTHON], [python]) if test $ovs_cv_python != no; then PYTHON=$ovs_cv_python - fi]) + HAVE_PYTHON=yes + else + HAVE_PYTHON=no + fi + AM_CONDITIONAL([HAVE_PYTHON], [test "$HAVE_PYTHON" = yes])]) |