* add some debugging if conftestval the file doesn't exist
* Try fclose()ing the file to see if that helps with the errors reported with Absoft 8.2 This commit was SVN r9439.
Этот коммит содержится в:
родитель
5d465cf118
Коммит
ae85aae6e5
@ -53,6 +53,7 @@ void $ompi_ac_size_fn(char *a, char *b)
|
|||||||
FILE *f=fopen("conftestval", "w");
|
FILE *f=fopen("conftestval", "w");
|
||||||
if (!f) exit(1);
|
if (!f) exit(1);
|
||||||
fprintf(f, "%d\n", diff);
|
fprintf(f, "%d\n", diff);
|
||||||
|
fclose(f);
|
||||||
}
|
}
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
@ -70,7 +71,10 @@ EOF
|
|||||||
AS_IF([test "$cross_compiling" = "yes"],
|
AS_IF([test "$cross_compiling" = "yes"],
|
||||||
[AC_MSG_ERROR([Can not determine size of $1 when cross-compiling])],
|
[AC_MSG_ERROR([Can not determine size of $1 when cross-compiling])],
|
||||||
[OMPI_LOG_COMMAND([./conftest],
|
[OMPI_LOG_COMMAND([./conftest],
|
||||||
[AS_VAR_SET(type_var, [`cat conftestval`])],
|
[AS_IF([test -f conftestval],
|
||||||
|
[AS_VAR_SET(type_var, [`cat conftestval`])],
|
||||||
|
[OMPI_LOG_MSG([conftestval not found.], 1)
|
||||||
|
AC_MSG_ERROR([Could not determine size of $1])])],
|
||||||
[AC_MSG_ERROR([Could not determine size of $1])])])
|
[AC_MSG_ERROR([Could not determine size of $1])])])
|
||||||
|
|
||||||
unset happy ompi_conftest_h
|
unset happy ompi_conftest_h
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user