Commit f744b78
committed
opal/mca/if: fix "struct sockaddr_in" and OS checks
Found a few more places we needed to adjust for changing from
OPAL_CHECK_OS_FLAVORS to OAC_CHECK_OS_FLAVORS.
Also, in the opal/mca/if components, we have configure.m4 scripts that
explicitly check $opal_found_sockaddr. This was a problem for a few
reasons:
1. We just deleted the setting of $opal_found_sockaddr from the
previous OPAL_CHECK_OS_FLAVORS macro (*why* it was set in that
macro isn't really clear -- "struct sockaddr" doesn't really have
anything to do with checking OS flavors).
2. The old OPAL_CHECK_OS_FLAVORS macro actually checking for "struct
sockaddr_in", not "struct sockaddr". This led to a lot of
confusion in this round of debugging.
Also, the additional network header checks and check for struct
sockaddr_in in OPAL_CHECK_OS_FLAVORS were redundant: they were already
being performed in OMPI's top-level configure.ac. Deleting these
redundant tests -- and indeed, deleting all of OPAL_CHECK_OS_FLAVORS
-- is fine. But we did need to set a global variable for the
opal/mca/if/*/configure.m4 scripts to check.
This commit therefore does the following:
* Adjusts the configure.m4 in the various opal/mca/if components that
were previously looking at $opal_found_sockaddr.
* Each configure.m4 now looks for ac_cv_type_struct_sockaddr_in[6] as
relevant.
* Also update them to use the OAC OS result variables.
* Update relevant comments to explain that we're using
$ac_cv_type_... instead of calling AC_CHECK_TYPES again because that
test is a bit cumbersome with all the required #includes.
* Slightly modify the test/results output emitted by these configure
tests to make it clear that we're not calling AC_CHECK_TYPES. Do
this because the "(cached)" output that it previously emitted caused
considerable confusion during this round of debugging (i.e., I
assumed it was coming from regular Autoconf test caching, which is
an entirely different mechanism).
Signed-off-by: Jeff Squyres <[email protected]>1 parent f1201ab commit f744b78
File tree
4 files changed
+42
-32
lines changed- opal/mca/if
- bsdx_ipv4
- bsdx_ipv6
- linux_ipv6
- posix_ipv4
4 files changed
+42
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | | - | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | | - | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | | - | |
36 | | - | |
37 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | | - | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | | - | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
0 commit comments