diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2010-04-27 20:06:15 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2010-04-27 20:06:15 (GMT) |
commit | 9542a0e21258dc9a6cddd2768312e66a4e9e2e12 (patch) | |
tree | 4b526763329c509ca81efe7384bfd79d2a286a25 /configure | |
parent | 451887585360c787dec42da3ffdb65c519e6ef02 (diff) | |
download | hdf5-9542a0e21258dc9a6cddd2768312e66a4e9e2e12.zip hdf5-9542a0e21258dc9a6cddd2768312e66a4e9e2e12.tar.gz hdf5-9542a0e21258dc9a6cddd2768312e66a4e9e2e12.tar.bz2 |
[svn-r18639] Description:
Bring r18619:18638 from trunk to revise_chunks branch.
Tested on:
FreeBSD/32 6.3 (duty) w/debug
(h5committest not required on this branch)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 47 |
1 files changed, 46 insertions, 1 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Id: configure.in 18534 2010-04-08 15:30:10Z koziol . +# From configure.in Id: configure.in 18589 2010-04-18 13:59:45Z hdftest . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.65 for HDF5 1.9.68-FA_a4. # @@ -21347,6 +21347,17 @@ _ACEOF fi +ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" +if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define ptrdiff_t long +_ACEOF + +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } if test "${ac_cv_c_bigendian+set}" = set; then : @@ -22933,6 +22944,40 @@ cat >>confdefs.h <<_ACEOF _ACEOF +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 +$as_echo_n "checking size of ptrdiff_t... " >&6; } +if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_ptrdiff_t" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ as_fn_set_status 77 +as_fn_error "cannot compute sizeof (ptrdiff_t) +See \`config.log' for more details." "$LINENO" 5; }; } + else + ac_cv_sizeof_ptrdiff_t=0 + fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 +$as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t +_ACEOF + + cat >>confdefs.h <<\EOF #include <sys/types.h> /*for off_t definition*/ |