Skip to content
GitLab
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
244eb270
Commit
244eb270
authored
Jul 04, 2011
by
Thomas Jahns
🤸
Browse files
Rename NETCDF_LDFLAGS to NETCDF_LIBS and substitute it in pkgconfig file.
parent
c5d8fabb
Changes
11
Hide whitespace changes
Inline
Side-by-side
Makefile.in
View file @
244eb270
...
...
@@ -192,7 +192,7 @@ MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P
=
@MKDIR_P@
NC_CONFIG
=
@NC_CONFIG@
NETCDF_INCLUDE
=
@NETCDF_INCLUDE@
NETCDF_L
DFLAG
S
=
@NETCDF_L
DFLAG
S@
NETCDF_L
IB
S
=
@NETCDF_L
IB
S@
NM
=
@NM@
NMEDIT
=
@NMEDIT@
OBJDUMP
=
@OBJDUMP@
...
...
app/Makefile.in
View file @
244eb270
...
...
@@ -170,7 +170,7 @@ MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P
=
@MKDIR_P@
NC_CONFIG
=
@NC_CONFIG@
NETCDF_INCLUDE
=
@NETCDF_INCLUDE@
NETCDF_L
DFLAG
S
=
@NETCDF_L
DFLAG
S@
NETCDF_L
IB
S
=
@NETCDF_L
IB
S@
NM
=
@NM@
NMEDIT
=
@NMEDIT@
OBJDUMP
=
@OBJDUMP@
...
...
cdi.settings.in
View file @
244eb270
...
...
@@ -41,7 +41,7 @@
"include" : "@HDF5_INCLUDE@"
},
"netcdf" : {
"lib" : "@NETCDF_L
DFLAG
S@",
"lib" : "@NETCDF_L
IB
S@",
"include" : "@NETCDF_INCLUDE@"
},
"grip_api" : {
...
...
configure
View file @
244eb270
...
...
@@ -648,9 +648,9 @@ ENABLE_GRIB
GRIB_API_INCLUDE
GRIB_API_LDFLAGS
JASPER_LDFLAGS
NETCDF_LIBS
NETCDF_INCLUDE
NC_CONFIG
NETCDF_LDFLAGS
HDF5_LIBS
HDF5_INCLUDE
HDF5_ROOT
...
...
@@ -25136,6 +25136,7 @@ fi
# ----------------------------------------------------------------------
# Compile application with netcdf
NETCDF_INCLUDE=''
NETCDF_LIBS=''
# Check whether --with-netcdf was given.
if test "${with_netcdf+set}" = set; then :
...
...
@@ -25218,8 +25219,7 @@ else
as_fn_error $? "Could not link to netcdf library" "$LINENO" 5
fi
NETCDF_LDFLAGS=" -lnetcdf"
NETCDF_LIBS=" -lnetcdf"
# Extract the first word of "nc-config", so it can be a program name with args.
set dummy nc-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
...
...
@@ -25362,8 +25362,7 @@ else
as_fn_error $? "Could not link to netcdf library" "$LINENO" 5
fi
NETCDF_LDFLAGS=" -L$NETCDF_ROOT/lib -lnetcdf"
NETCDF_LIBS=" -L$NETCDF_ROOT/lib -lnetcdf"
NETCDF_INCLUDE=" -I$NETCDF_ROOT/include"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking nc-config script" >&5
$as_echo_n "checking nc-config script... " >&6; }
...
...
@@ -25451,6 +25450,7 @@ $as_echo "suppressed" >&6; }
fi
# ----------------------------------------------------------------------
# Link application with JASPER library (needed for GRIB2 compression)
...
...
examples/Makefile.in
View file @
244eb270
...
...
@@ -199,7 +199,7 @@ MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P
=
@MKDIR_P@
NC_CONFIG
=
@NC_CONFIG@
NETCDF_INCLUDE
=
@NETCDF_INCLUDE@
NETCDF_L
DFLAG
S
=
@NETCDF_L
DFLAG
S@
NETCDF_L
IB
S
=
@NETCDF_L
IB
S@
NM
=
@NM@
NMEDIT
=
@NMEDIT@
OBJDUMP
=
@OBJDUMP@
...
...
interfaces/Makefile.am
View file @
244eb270
...
...
@@ -18,15 +18,15 @@ noinst_PROGRAMS += CdiInfo
noinst_LTLIBRARIES
+=
libcdipp.la
endif
#
locallibs
=
$(top_builddir)
/src/.libs/libcdi.so @LTLIBOBJS@ @NETCDF_L
DFLAG
S@ @HDF5_LIBS@ @SZLIB_LIBS@ @ZLIB_LIBS@
locallibs
=
$(top_builddir)
/src/.libs/libcdi.so @LTLIBOBJS@ @NETCDF_L
IB
S@ @HDF5_LIBS@ @SZLIB_LIBS@ @ZLIB_LIBS@
libcdipp_la_SOURCES
=
cdi.cpp cdi.hpp
libcdipp_la_LIBADD
=
$(top_builddir)
/src/libcdi.la
libcdipp_la_LDFLAGS
=
@NETCDF_L
DFLAG
S@ @HDF5_LIBS@ @SZLIB_LIBS@ @ZLIB_LIBS@
$(LDFLAGS)
libcdipp_la_LDFLAGS
=
@NETCDF_L
IB
S@ @HDF5_LIBS@ @SZLIB_LIBS@ @ZLIB_LIBS@
$(LDFLAGS)
CdiInfo_SOURCES
=
CdiInfo.cpp
CdiInfo_LDADD
=
libcdipp.la
CdiInfo_LDFLAGS
=
@NETCDF_L
DFLAG
S@ @HDF5_LIBS@ @SZLIB_LIBS@ @ZLIB_LIBS@
$(LDFLAGS)
CdiInfo_LDFLAGS
=
@NETCDF_L
IB
S@ @HDF5_LIBS@ @SZLIB_LIBS@ @ZLIB_LIBS@
$(LDFLAGS)
#
#
if
ENABLE_RUBY
...
...
interfaces/Makefile.in
View file @
244eb270
...
...
@@ -187,7 +187,7 @@ MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P
=
@MKDIR_P@
NC_CONFIG
=
@NC_CONFIG@
NETCDF_INCLUDE
=
@NETCDF_INCLUDE@
NETCDF_L
DFLAG
S
=
@NETCDF_L
DFLAG
S@
NETCDF_L
IB
S
=
@NETCDF_L
IB
S@
NM
=
@NM@
NMEDIT
=
@NMEDIT@
OBJDUMP
=
@OBJDUMP@
...
...
@@ -289,13 +289,13 @@ EXTRA_DIST = $(SWIGCDIOBJ) $(SWIGCDILIB) ruby/cdilib_wrap.c \
python/testObj.py
noinst_LTLIBRARIES
=
$(am__append_3)
#
locallibs
=
$(top_builddir)
/src/.libs/libcdi.so @LTLIBOBJS@ @NETCDF_L
DFLAG
S@ @HDF5_LIBS@ @SZLIB_LIBS@ @ZLIB_LIBS@
locallibs
=
$(top_builddir)
/src/.libs/libcdi.so @LTLIBOBJS@ @NETCDF_L
IB
S@ @HDF5_LIBS@ @SZLIB_LIBS@ @ZLIB_LIBS@
libcdipp_la_SOURCES
=
cdi.cpp cdi.hpp
libcdipp_la_LIBADD
=
$(top_builddir)
/src/libcdi.la
libcdipp_la_LDFLAGS
=
@NETCDF_L
DFLAG
S@ @HDF5_LIBS@ @SZLIB_LIBS@ @ZLIB_LIBS@
$(LDFLAGS)
libcdipp_la_LDFLAGS
=
@NETCDF_L
IB
S@ @HDF5_LIBS@ @SZLIB_LIBS@ @ZLIB_LIBS@
$(LDFLAGS)
CdiInfo_SOURCES
=
CdiInfo.cpp
CdiInfo_LDADD
=
libcdipp.la
CdiInfo_LDFLAGS
=
@NETCDF_L
DFLAG
S@ @HDF5_LIBS@ @SZLIB_LIBS@ @ZLIB_LIBS@
$(LDFLAGS)
CdiInfo_LDFLAGS
=
@NETCDF_L
IB
S@ @HDF5_LIBS@ @SZLIB_LIBS@ @ZLIB_LIBS@
$(LDFLAGS)
#
AM_CPPFLAGS
=
-I
$(top_srcdir)
/src
#
...
...
m4/acx_options.m4
View file @
244eb270
...
...
@@ -136,6 +136,7 @@ AC_SUBST([HDF5_LIBS])
# ----------------------------------------------------------------------
# Compile application with netcdf
NETCDF_INCLUDE=''
NETCDF_LIBS=''
AC_ARG_WITH([netcdf],
[AS_HELP_STRING([--with-netcdf=<yes|no|directory> (default=yes)],[location of netcdf library (lib and include subdirs)])],
[AS_CASE(["$with_netcdf"],
...
...
@@ -146,7 +147,7 @@ AC_ARG_WITH([netcdf],
[netcdf],
[AC_DEFINE([HAVE_LIBNETCDF],[1],[Define to 1 for NETCDF support])],
[AC_MSG_ERROR([Could not link to netcdf library])])
AC_SUBST([NETCDF_LDFLAGS],[
" -lnetcdf"
])
NETCDF_LIBS=
" -lnetcdf"
AC_CHECK_PROG(NC_CONFIG,nc-config,nc-config)
AS_IF([test "x$NC_CONFIG" != "x"],
[AC_MSG_CHECKING([netcdf's nc2 support])
...
...
@@ -167,7 +168,7 @@ AC_ARG_WITH([netcdf],
[netcdf],
[AC_DEFINE([HAVE_LIBNETCDF],[1],[Define to 1 for NETCDF support])],
[AC_MSG_ERROR([Could not link to netcdf library])])
AC_SUBST([NETCDF_LDFLAGS],[
" -L$NETCDF_ROOT/lib -lnetcdf"
])
NETCDF_LIBS=
" -L$NETCDF_ROOT/lib -lnetcdf"
NETCDF_INCLUDE=" -I$NETCDF_ROOT/include"
AC_MSG_CHECKING([nc-config script])
AC_CHECK_PROG(NC_CONFIG,nc-config,[$NETCDF_ROOT/bin/nc-config],,["$NETCDF_ROOT/bin"])
...
...
@@ -187,6 +188,7 @@ AC_ARG_WITH([netcdf],
[AC_MSG_CHECKING([for NETCDF library])
AC_MSG_RESULT([suppressed])])
AC_SUBST([NETCDF_INCLUDE])
AC_SUBST([NETCDF_LIBS])
# ----------------------------------------------------------------------
# Link application with JASPER library (needed for GRIB2 compression)
AC_ARG_WITH([jasper],
...
...
src/Makefile.in
View file @
244eb270
...
...
@@ -193,7 +193,7 @@ MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P
=
@MKDIR_P@
NC_CONFIG
=
@NC_CONFIG@
NETCDF_INCLUDE
=
@NETCDF_INCLUDE@
NETCDF_L
DFLAG
S
=
@NETCDF_L
DFLAG
S@
NETCDF_L
IB
S
=
@NETCDF_L
IB
S@
NM
=
@NM@
NMEDIT
=
@NMEDIT@
OBJDUMP
=
@OBJDUMP@
...
...
src/pkgconfig/cdi.pc.in
View file @
244eb270
...
...
@@ -4,7 +4,7 @@ libdir=@libdir@
includedir=@includedir@
cflags=-I@includedir@
fcflags=@FPP_INCOPT@@includedir@ @CDI_F90_INTERFACE_FCFLAGS@
libs=-L@libdir@ -lcdi @GRIB_API_LDFLAGS@ @JASPER_LDFLAGS@ @NETCDF_L
DFLAG
S@ @HDF5_LIBS@ @SZLIB_LIBS@ @ZLIB_LIBS@ @THREADS_LIBS@
libs=-L@libdir@ -lcdi @GRIB_API_LDFLAGS@ @JASPER_LDFLAGS@ @NETCDF_L
IB
S@ @HDF5_LIBS@ @SZLIB_LIBS@ @ZLIB_LIBS@ @THREADS_LIBS@
netcdf_root=@NETCDF_ROOT@
threads_libs=@THREADS_LIBS@
threads_cflags=@THREADS_INCLUDE@
...
...
@@ -16,6 +16,7 @@ hdf5_root=@HDF5_ROOT@
hdf5_cflags=@HDF5_INCLUDE@
hdf5_libs=@HDF5_LIBS@
netcdf_cflags=@NETCDF_INCLUDE@
netcdf_libs=@NETCDF_LIBS@
Name: @PACKAGE_NAME@
Description: CDI is an Interface to access Climate and NWP model Data.
...
...
tests/Makefile.in
View file @
244eb270
...
...
@@ -156,7 +156,7 @@ MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P
=
@MKDIR_P@
NC_CONFIG
=
@NC_CONFIG@
NETCDF_INCLUDE
=
@NETCDF_INCLUDE@
NETCDF_L
DFLAG
S
=
@NETCDF_L
DFLAG
S@
NETCDF_L
IB
S
=
@NETCDF_L
IB
S@
NM
=
@NM@
NMEDIT
=
@NMEDIT@
OBJDUMP
=
@OBJDUMP@
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment