Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
f3ee438b
Commit
f3ee438b
authored
Jul 04, 2011
by
Thomas Jahns
🤸
Browse files
Add NETCDF_ROOT variable to substitutions in pkgconfig file.
parent
244eb270
Changes
2
Hide whitespace changes
Inline
Side-by-side
m4/acx_options.m4
View file @
f3ee438b
...
...
@@ -135,6 +135,7 @@ AC_SUBST([HDF5_INCLUDE])
AC_SUBST([HDF5_LIBS])
# ----------------------------------------------------------------------
# Compile application with netcdf
NETCDF_ROOT=''
NETCDF_INCLUDE=''
NETCDF_LIBS=''
AC_ARG_WITH([netcdf],
...
...
@@ -159,9 +160,9 @@ AC_ARG_WITH([netcdf],
[AC_DEFINE([HAVE_NETCDF4],[1],[Define to 1 for NETCDF4 support])
AC_MSG_RESULT([yes])],[AC_MSG_RESULT([no])])],
[AS_ECHO([Could not find nc-config! go on with default configuration])])],
[*],[
NETCDF_ROOT=
$with_netcdf
AS_IF([test -d "$NETCDF_ROOT"],
[
LDFLAGS="-L$NETCDF_ROOT/lib $LDFLAGS"
[*],[
AS_IF([test -d "
$with_netcdf
"],
[NETCDF_ROOT=$with_netcdf
LDFLAGS="-L$NETCDF_ROOT/lib $LDFLAGS"
CPPFLAGS="-I$NETCDF_ROOT/include $CPPFLAGS"
AC_CHECK_HEADERS([netcdf.h])
AC_SEARCH_LIBS([nc_open],
...
...
@@ -184,9 +185,10 @@ AC_ARG_WITH([netcdf],
[AC_DEFINE([HAVE_NETCDF4],[1],[Define to 1 for NETCDF4 support])
AC_MSG_RESULT([yes])],[AC_MSG_RESULT([no])])],
[AC_MSG_RESULT([Could not find nc-config! go on with default configuration])])],
[AC_MSG_NOTICE([$
NETCDF_ROOT
is not a directory! NETCDF suppressed])])])],
[AC_MSG_NOTICE([$
with_netcdf
is not a directory! NETCDF suppressed])])])],
[AC_MSG_CHECKING([for NETCDF library])
AC_MSG_RESULT([suppressed])])
AC_SUBST([NETCDF_ROOT])
AC_SUBST([NETCDF_INCLUDE])
AC_SUBST([NETCDF_LIBS])
# ----------------------------------------------------------------------
...
...
src/pkgconfig/cdi.pc.in
View file @
f3ee438b
...
...
@@ -15,6 +15,7 @@ szlib_libs=@SZLIB_LIBS@
hdf5_root=@HDF5_ROOT@
hdf5_cflags=@HDF5_INCLUDE@
hdf5_libs=@HDF5_LIBS@
netcdf_root=@NETCDF_ROOT@
netcdf_cflags=@NETCDF_INCLUDE@
netcdf_libs=@NETCDF_LIBS@
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment