Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
acd9587b
Commit
acd9587b
authored
9 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Downgrade cfortran.h failure to warning.
parent
9192a0f6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure
+18
-21
18 additions, 21 deletions
configure
configure.ac
+11
-1
11 additions, 1 deletion
configure.ac
with
29 additions
and
22 deletions
configure
+
18
−
21
View file @
acd9587b
...
...
@@ -29158,32 +29158,29 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cfortran_works" >&5
$as_echo "$acx_cv_cfortran_works" >&6; }
case x"$acx_cv_cfortran_works" in #(
if test x"$acx_cv_cfortran_works" = xyes; then :
$as_echo "#define HAVE_CF_INTERFACE 1" >>confdefs.h
else
case x"$acx_cv_cfortran_works" in #(
x"error") :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Linking/Running with C EXTERNAL built with cfortran.h does not work!
See \`config.log' for more details" "$LINENO" 5; } ;; #(
{ $as_echo "$as_me:${as_lineno-$LINENO}: Linking/Running with C EXTERNAL built with cfortran.h does not work!" >&5
$as_echo "$as_me: Linking/Running with C EXTERNAL built with cfortran.h does not work!" >&6;} ;; #(
x"compiling with cfortran.h failed") :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Compilation with cfortran.h is not working!
See \`config.log' for more details" "$LINENO" 5; } ;; #(
{ $as_echo "$as_me:${as_lineno-$LINENO}: Compilation with cfortran.h is not working!" >&5
$as_echo "$as_me: Compilation with cfortran.h is not working!" >&6;} ;; #(
x"error compiling Fortran subroutine") :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "compilation of simple Fortran source failed!
See \`config.log' for more details" "$LINENO" 5; } ;; #(
xyes) :
$as_echo "#define HAVE_CF_INTERFACE 1" >>confdefs.h
;; #(
{ $as_echo "$as_me:${as_lineno-$LINENO}: compilation of simple Fortran source failed!" >&5
$as_echo "$as_me: compilation of simple Fortran source failed!" >&6;} ;; #(
*) :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Unexpected error when linking C and Fortran via cfortran.h!
See \`config.log' for more details" "$LINENO" 5; } ;;
{ $as_echo "$as_me:${as_lineno-$LINENO}: Unexpected error when linking C and Fortran via cfortran.h!" >&5
$as_echo "$as_me: Unexpected error when linking C and Fortran via cfortran.h!" >&6;} ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: Disabling cfortran.h bindings generation" >&5
$as_echo "$as_me: Disabling cfortran.h bindings generation" >&6;}
acx_cv_cfortran_works=no
fi
fi
if test -n "$FC" -a X"$FC" != Xno -a x"$acx_cv_cfortran_works" = xyes; then
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
11
−
1
View file @
acd9587b
...
...
@@ -328,7 +328,17 @@ ACX_XLF_QEXTNAME_ADD_APPENDUS
AS_IF([test -n "$FC" -a X"$FC" != Xno -o -n "$F77" -a X"$F77" != Xno],
[ACX_CHECK_CFORTRAN([$srcdir/src],
[AC_DEFINE([HAVE_CF_INTERFACE],[1],
[Defined to 1 if C / Fortran interface cfortran.h works])])])
[Defined to 1 if C / Fortran interface cfortran.h works])],
[AS_CASE([x"$acx_cv_cfortran_works"],
[x"error"],
[AC_MSG_NOTICE([Linking/Running with C EXTERNAL built with cfortran.h does not work!])],
[x"compiling with cfortran.h failed"],
[AC_MSG_NOTICE([Compilation with cfortran.h is not working!])],
[x"error compiling Fortran subroutine"],
[AC_MSG_NOTICE([compilation of simple Fortran source failed!])],
[AC_MSG_NOTICE([Unexpected error when linking C and Fortran via cfortran.h!])])
AC_MSG_NOTICE([Disabling cfortran.h bindings generation])
acx_cv_cfortran_works=no])])
AM_CONDITIONAL([USE_FC],[test -n "$FC" -a X"$FC" != Xno -a x"$acx_cv_cfortran_works" = xyes])dnl
dnl
AC_SUBST([CPPFLAGS])dnl
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment