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
be4086c5
Commit
be4086c5
authored
12 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Make yaxt a standard feature dependency.
parent
023075a7
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
+84
-80
84 additions, 80 deletions
configure
configure.ac
+4
-6
4 additions, 6 deletions
configure.ac
with
88 additions
and
86 deletions
configure
+
84
−
80
View file @
be4086c5
...
...
@@ -661,10 +661,10 @@ USE_MPI
USE_MPI_FALSE
USE_MPI_TRUE
HAVE_PARALLEL_NC4
YAXT_LIBS
YAXT_CFLAGS
PPM_CORE_LIBS
PPM_CORE_CFLAGS
YAXT_LIBS
YAXT_CFLAGS
PKG_CONFIG_LIBDIR
PKG_CONFIG_PATH
PKG_CONFIG
...
...
@@ -894,10 +894,10 @@ CXXCPP
PKG_CONFIG
PKG_CONFIG_PATH
PKG_CONFIG_LIBDIR
PPM_CORE_CFLAGS
PPM_CORE_LIBS
YAXT_CFLAGS
YAXT_LIBS
PPM_CORE_CFLAGS
PPM_CORE_LIBS
FCMODEXT'
...
...
@@ -1603,12 +1603,12 @@ Some influential environment variables:
directories to add to pkg-config's search path
PKG_CONFIG_LIBDIR
path overriding pkg-config's built-in search path
YAXT_CFLAGS C compiler flags for YAXT, overriding pkg-config
YAXT_LIBS linker flags for YAXT, overriding pkg-config
PPM_CORE_CFLAGS
C compiler flags for PPM_CORE, overriding pkg-config
PPM_CORE_LIBS
linker flags for PPM_CORE, overriding pkg-config
YAXT_CFLAGS C compiler flags for YAXT, overriding pkg-config
YAXT_LIBS linker flags for YAXT, overriding pkg-config
FCMODEXT file extension of compiled Fortran module files
Use these variables to override the choices made by `configure' or to help
...
...
@@ -26635,6 +26635,83 @@ done
if test x$MPI_LAUNCH = x; then :
fi
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for YAXT" >&5
$as_echo_n "checking for YAXT... " >&6; }
if test -n "$YAXT_CFLAGS"; then
pkg_cv_YAXT_CFLAGS="$YAXT_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"yaxt\""; } >&5
($PKG_CONFIG --exists --print-errors "yaxt") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_YAXT_CFLAGS=`$PKG_CONFIG --cflags "yaxt" 2>/dev/null`
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test -n "$YAXT_LIBS"; then
pkg_cv_YAXT_LIBS="$YAXT_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"yaxt\""; } >&5
($PKG_CONFIG --exists --print-errors "yaxt") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_YAXT_LIBS=`$PKG_CONFIG --libs "yaxt" 2>/dev/null`
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test $pkg_failed = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
YAXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "yaxt" 2>&1`
else
YAXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "yaxt" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$YAXT_PKG_ERRORS" >&5
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Required yaxt library unavailable.
See \`config.log' for more details" "$LINENO" 5; }
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&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 $? "Required yaxt library unavailable.
See \`config.log' for more details" "$LINENO" 5; }
else
YAXT_CFLAGS=$pkg_cv_YAXT_CFLAGS
YAXT_LIBS=$pkg_cv_YAXT_LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
$as_echo "#define HAVE_YAXT /**/" >>confdefs.h
fi
if test x"$ENABLE_NC4" = xyes; then :
for ac_header in netcdf_par.h
...
...
@@ -26743,83 +26820,10 @@ $as_echo "yes" >&6; }
$as_echo "#define HAVE_PPM_CORE /**/" >>confdefs.h
fi
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for YAXT" >&5
$as_echo_n "checking for YAXT... " >&6; }
if test -n "$YAXT_CFLAGS"; then
pkg_cv_YAXT_CFLAGS="$YAXT_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"yaxt\""; } >&5
($PKG_CONFIG --exists --print-errors "yaxt") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_YAXT_CFLAGS=`$PKG_CONFIG --cflags "yaxt" 2>/dev/null`
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test -n "$YAXT_LIBS"; then
pkg_cv_YAXT_LIBS="$YAXT_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"yaxt\""; } >&5
($PKG_CONFIG --exists --print-errors "yaxt") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_YAXT_LIBS=`$PKG_CONFIG --libs "yaxt" 2>/dev/null`
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test $pkg_failed = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
YAXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "yaxt" 2>&1`
else
YAXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "yaxt" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$YAXT_PKG_ERRORS" >&5
enable_yaxt=no
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
enable_yaxt=no
else
YAXT_CFLAGS=$pkg_cv_YAXT_CFLAGS
YAXT_LIBS=$pkg_cv_YAXT_LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
enable_yaxt=yes
$as_echo "#define HAVE_YAXT /**/" >>confdefs.h
fi
fi
if test x$enable_ppm != xyes
-o x$enable_yaxt = xno
; then :
if test x$enable_ppm != xyes; then :
HAVE_PARALLEL_NC4=0
fi
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
4
−
6
View file @
be4086c5
...
...
@@ -96,6 +96,9 @@ AS_IF([test x"$USE_MPI" = xyes],
[AC_DEFINE([USE_MPI],[1],[parallel I/O requested and available])
AC_PATH_PROGS([MPI_LAUNCH],[mpirun mpiexec],[])
AS_IF([test x$MPI_LAUNCH = x],[])
PKG_CHECK_MODULES([YAXT],[yaxt],
[AC_DEFINE([HAVE_YAXT],,[yaxt library is available])],
[AC_MSG_FAILURE([Required yaxt library unavailable.])])
AS_IF([test x"$ENABLE_NC4" = xyes],
[AC_CHECK_HEADERS([netcdf_par.h],
[AC_CHECK_DECL([MPI_Bcast],
...
...
@@ -118,15 +121,10 @@ AS_IF([test x"$USE_MPI" = xyes],
[ScalES PPM C core library is available])
],
[enable_ppm=no])
PKG_CHECK_MODULES([YAXT],[yaxt],
[enable_yaxt=yes
AC_DEFINE([HAVE_YAXT],,
[yaxt library is available])
],[enable_yaxt=no])
])
dnl if not both scales-ppm and yaxt are available, netcdf can only be
dnl used in serial mode
AS_IF([test x$enable_ppm != xyes
-o x$enable_yaxt = xno
],
AS_IF([test x$enable_ppm != xyes],
[HAVE_PARALLEL_NC4=0])
])
],
...
...
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