add ptrdiff_t checks

This commit is contained in:
dmh 2015-10-11 13:35:44 -06:00
parent 8c70437580
commit ed57a337ec
4 changed files with 3977 additions and 12 deletions

22
cf
View File

@ -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

View File

@ -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], [], [

File diff suppressed because it is too large Load Diff

View File

@ -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