2004-11-03 03:14:14 +08:00
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
2007-02-07 22:56:24 +08:00
|
|
|
* Copyright by The HDF Group. *
|
2004-11-03 03:14:14 +08:00
|
|
|
* Copyright by the Board of Trustees of the University of Illinois. *
|
|
|
|
* All rights reserved. *
|
|
|
|
* *
|
|
|
|
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
|
|
|
* terms governing use, modification, and redistribution, is contained in *
|
|
|
|
* the files COPYING and Copyright.html. COPYING can be found at the root *
|
|
|
|
* of the source code distribution tree; Copyright.html can be found at the *
|
|
|
|
* root level of an installed copy of the electronic HDF5 document set and *
|
|
|
|
* is linked from the top-level documents page. It can also be found at *
|
2007-02-07 22:56:24 +08:00
|
|
|
* http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
|
|
|
|
* access to either file, you may request a copy from help@hdfgroup.org. *
|
2004-11-03 03:14:14 +08:00
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "h5repack.h"
|
2007-04-05 04:25:42 +08:00
|
|
|
#include "h5test.h"
|
2004-11-03 03:14:14 +08:00
|
|
|
|
|
|
|
|
2006-11-16 04:58:15 +08:00
|
|
|
|
2004-11-03 03:14:14 +08:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
* Function: main
|
|
|
|
*
|
|
|
|
* Purpose: detects szip encoder, prints "yes" or "no" to stdout.
|
|
|
|
* Intended to be used in test scripts.
|
|
|
|
*
|
2005-08-14 04:53:35 +08:00
|
|
|
* Return:
|
2004-11-03 03:14:14 +08:00
|
|
|
*
|
2005-08-14 04:53:35 +08:00
|
|
|
* Programmer:
|
2004-11-03 03:14:14 +08:00
|
|
|
*
|
2005-08-14 04:53:35 +08:00
|
|
|
* Date:
|
2004-11-03 03:14:14 +08:00
|
|
|
*
|
|
|
|
* Comments:
|
|
|
|
*
|
2005-08-14 04:53:35 +08:00
|
|
|
* Modifications:
|
2004-11-03 03:14:14 +08:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2004-12-29 22:26:20 +08:00
|
|
|
int main(void)
|
2004-11-03 03:14:14 +08:00
|
|
|
{
|
|
|
|
#ifdef H5_HAVE_FILTER_SZIP
|
2004-12-29 22:26:20 +08:00
|
|
|
if (h5tools_can_encode(H5Z_FILTER_SZIP) == 1) {
|
|
|
|
printf("yes\n");
|
|
|
|
return(1);
|
|
|
|
}
|
2004-11-03 03:14:14 +08:00
|
|
|
#endif /* H5_HAVE_FILTER_SZIP */
|
2004-12-29 22:26:20 +08:00
|
|
|
printf("no\n");
|
|
|
|
return(0);
|
2004-11-03 03:14:14 +08:00
|
|
|
}
|