Skip to content

Commit d6b2630

Browse files
authored
Merge pull request #13286 from jsquyres/pr/safer-conftestval-results
configury: remove whitespace from "conftestval"-style tests
2 parents 2f3bfd9 + 1a58617 commit d6b2630

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

config/ompi_fortran_check_logical_array.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ EOF
101101
[ # assume we're ok
102102
value=yes],
103103
[OPAL_LOG_COMMAND([./conftest],
104-
[if test "`cat conftestval`" = "1" ; then
104+
[if test "`cat conftestval | xargs`" = "1" ; then
105105
value=yes
106106
else
107107
value=no

config/ompi_fortran_check_real16_c_equiv.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ EOF
141141
[AC_MSG_RESULT([Error!])
142142
AC_MSG_ERROR([Can not determine if REAL*16 bit-matches C if cross compiling])],
143143
[OPAL_LOG_COMMAND([./conftest],
144-
[fortran_real16_happy=`cat conftestval`],
144+
[fortran_real16_happy=`cat conftestval | xargs`],
145145
[AC_MSG_RESULT([Error!])
146146
AC_MSG_ERROR([Could not determine if REAL*16 bit-matches C type])
147147
])

config/ompi_fortran_get_alignment.m4

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ end program]])],
203203
[AS_IF([test "$cross_compiling" = "yes"],
204204
[AC_MSG_ERROR([Can not determine common alignment when cross-compiling])],
205205
[OPAL_LOG_COMMAND([./conftest],
206-
[AS_VAR_SET(ompi_cv_fortran_common_alignment, [`cat conftestval`])],
206+
[AS_VAR_SET(ompi_cv_fortran_common_alignment, [`cat conftestval | xargs`])],
207207
[AC_MSG_ERROR([Could not determine common alignment])])])],
208208

209209
[AC_MSG_WARN([Could not determine common alignment])
@@ -216,5 +216,4 @@ end program]])],
216216
[AC_MSG_CHECKING([Fortran common alignment])
217217
$1=0
218218
AC_MSG_RESULT([skipped])])
219-
220219
])dnl

config/ompi_fortran_get_sizeof.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ EOF
7979
AS_IF([test "$cross_compiling" = "yes"],
8080
[AC_MSG_ERROR([Can not determine size of $2 when cross-compiling])],
8181
[OPAL_LOG_COMMAND([./conftest],
82-
[AS_VAR_SET(type_var, [`cat conftestval`])],
82+
[AS_VAR_SET(type_var, [`cat conftestval | xargs`])],
8383
[AC_MSG_ERROR([Could not determine size of $2])])])
8484

8585
unset happy ompi_conftest_h

0 commit comments

Comments
 (0)