Skip to content

Commit 6b3cf6f

Browse files
author
Ralph Castain
authored
Merge pull request #4722 from pkovacs/master-opal-check
opal_check_package: filter /usr[/local]/include from CPPFLAGS
2 parents 8eea942 + c4fe4ec commit 6b3cf6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/opal_check_package.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ AC_DEFUN([_OPAL_CHECK_PACKAGE_HEADER], [
4242
dir_prefix=$(echo $3 | sed -e 'sX/*$XXg')
4343
opal_check_package_header_happy="no"
4444
AS_IF([test "$dir_prefix" = "/usr" || \
45-
test "$dir_prefix" = "/usr/local"],
45+
test "$dir_prefix" = "/usr/local" || \
46+
test "$dir_prefix" = "/usr/include" || \
47+
test "$dir_prefix" = "/usr/local/include"],
4648
[ # try as is...
4749
AC_VERBOSE([looking for header without includes])
4850
AC_CHECK_HEADERS([$2], [opal_check_package_header_happy="yes"], [])

0 commit comments

Comments
 (0)