mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-17 16:50:18 +08:00
add ptrdiff_t checks
This commit is contained in:
parent
8c70437580
commit
ed57a337ec
22
cf
22
cf
@ -1,18 +1,18 @@
|
||||
#!/bin/bash
|
||||
#X="-x"
|
||||
#NB=1
|
||||
#DB=1
|
||||
|
||||
if test $# != 0 ; then
|
||||
cmds=$@
|
||||
fi
|
||||
DB=1
|
||||
FAST=1
|
||||
|
||||
HDF5=1
|
||||
DAP=1
|
||||
#HDF4=1
|
||||
#PNETCDF=1
|
||||
#PAR4=1
|
||||
|
||||
#PAR=1
|
||||
if test $# != 0 ; then
|
||||
cmds=$@
|
||||
fi
|
||||
|
||||
if test "x$PNETCDF" = x1 ; then
|
||||
PAR=1
|
||||
@ -192,12 +192,16 @@ export CXXFLAGS
|
||||
DISTCHECK_CONFIGURE_FLAGS="$FLAGS"
|
||||
export DISTCHECK_CONFIGURE_FLAGS
|
||||
|
||||
if test -z "$NB" ; then
|
||||
if test "x$NB" != x -o "x$FAST" = x ; then
|
||||
${MAKE} maintainer-clean >/dev/null 2>&1
|
||||
if autoreconf -i --force ; then ok=1; else exit ; fi
|
||||
fi
|
||||
if test -z "$NB" ; then
|
||||
if autoreconf -i --force ; then ok=1; else exit ; fi
|
||||
fi
|
||||
|
||||
if test -f Makefile ; then ${MAKE} distclean >/dev/null 2>&1 ; fi
|
||||
if test -z "$FAST" ; then
|
||||
if test -f Makefile ; then ${MAKE} distclean >/dev/null 2>&1 ; fi
|
||||
fi
|
||||
sh $X ./configure ${FLAGS}
|
||||
for c in $cmds; do
|
||||
${MAKE} ${FORCE} $c
|
||||
|
@ -853,6 +853,7 @@ AC_CHECK_SIZEOF(float)
|
||||
AC_CHECK_SIZEOF(double)
|
||||
AC_CHECK_SIZEOF(off_t)
|
||||
AC_CHECK_SIZEOF(size_t)
|
||||
AC_CHECK_SIZEOF(ptrdiff_t)
|
||||
|
||||
if test "x$enable_netcdf_4" = xyes || test "x$enable_dap" = xyes; then
|
||||
AC_SEARCH_LIBS([deflate], [zlibwapi zlibstat zlib zlib1 z], [], [
|
||||
|
3959
libsrc/putget.c
3959
libsrc/putget.c
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,7 @@
|
||||
# Test c output
|
||||
T=test_read
|
||||
#VG=valgrind --leak-check=full
|
||||
T=t
|
||||
#CMD=valgrind --leak-check=full
|
||||
CMD=gdb --args
|
||||
|
||||
CFLAGS=-g -O0 -I.. -I../include
|
||||
LDFLAGS=../liblib/.libs/libnetcdf.a -L/usr/local/lib -lhdf5_hl -lhdf5 -lz -lm -lcurl
|
||||
@ -10,5 +11,5 @@ LDFLAGS=../liblib/.libs/libnetcdf.a -L/usr/local/lib -lhdf5_hl -lhdf5 -lz -lm -
|
||||
all::
|
||||
export LD_RUN_PATH; export CFLAGS; export LDFLAGS; \
|
||||
gcc -o t ${CFLAGS} ${T}.c ${LDFLAGS}
|
||||
${VG} ./t
|
||||
${CMD} ./t
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user