[svn-r26310] Merge of r26071 from features/autotools_rework

Removes the --with-default-vfd option from configure. This was basically
useless and only allowed selecting the stdio VFD. Since this is a demo
VFD and not really a production VFD, we decided to retire this option.

Fixes: HDFFV-9081

Tested on: jam (minor change)
This commit is contained in:
Dana Robinson
2015-02-26 08:42:05 -05:00
parent bb1960af1c
commit e0fa2a2e0e
6 changed files with 17 additions and 75 deletions

View File

@@ -53,9 +53,6 @@
/* Define the default plugins path to compile */ /* Define the default plugins path to compile */
#cmakedefine H5_DEFAULT_PLUGINDIR "@H5_DEFAULT_PLUGINDIR@" #cmakedefine H5_DEFAULT_PLUGINDIR "@H5_DEFAULT_PLUGINDIR@"
/* Define the default virtual file driver to compile */
#cmakedefine H5_DEFAULT_VFD @H5_DEFAULT_VFD@
/* Define if `dev_t' is a scalar */ /* Define if `dev_t' is a scalar */
#cmakedefine H5_DEV_T_IS_SCALAR @H5_DEV_T_IS_SCALAR@ #cmakedefine H5_DEV_T_IS_SCALAR @H5_DEV_T_IS_SCALAR@

42
configure vendored
View File

@@ -920,7 +920,6 @@ enable_using_memchecker
enable_parallel enable_parallel
with_mpe with_mpe
enable_filters enable_filters
with_default_vfd
enable_direct_vfd enable_direct_vfd
with_default_plugindir with_default_plugindir
enable_dconv_exception enable_dconv_exception
@@ -1659,8 +1658,6 @@ Optional Packages:
--with-pthread=DIR Specify alternative path to Pthreads library when --with-pthread=DIR Specify alternative path to Pthreads library when
thread-safe capability is built thread-safe capability is built
--with-mpe=DIR Use MPE instrumentation [default=no] --with-mpe=DIR Use MPE instrumentation [default=no]
--with-default-vfd=driver
Specify default file driver [default=sec2]
--with-default-plugindir=location --with-default-plugindir=location
Specify default location for plugins Specify default location for plugins
[default="/usr/local/hdf5/lib/plugin"] [default="/usr/local/hdf5/lib/plugin"]
@@ -28448,6 +28445,7 @@ $as_echo "#define HAVE_MPE 1" >>confdefs.h
fi fi
fi fi
## ---------------------------------------------------------------------- ## ----------------------------------------------------------------------
## Turn on internal I/O filters by setting macros in header files ## Turn on internal I/O filters by setting macros in header files
## Internal I/O filters are contained entirely within the library and do ## Internal I/O filters are contained entirely within the library and do
@@ -28521,44 +28519,6 @@ $as_echo "#define HAVE_FILTER_SCALEOFFSET 1" >>confdefs.h
done done
fi fi
## --------------------------------------------------------------------------
## Should the Default Virtual File Driver be compiled?
##
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Default Virtual File Driver definition" >&5
$as_echo_n "checking for Default Virtual File Driver definition... " >&6; }
# Check whether --with-default-vfd was given.
if test "${with_default_vfd+set}" = set; then :
withval=$with_default_vfd;
else
withval=sec2
fi
if test "X$withval" = "Xsec2"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
default_vfd=yes
vfd_define=H5FD_SEC2
elif test "X$withval" = "Xstdio"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
default_vfd=yes
vfd_define=H5FD_STDIO
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
default_vfd=no
fi
if test "X$default_vfd" = "Xyes"; then
cat >>confdefs.h <<_ACEOF
#define DEFAULT_VFD $vfd_define
_ACEOF
fi
## ---------------------------------------------------------------------- ## ----------------------------------------------------------------------
## Check if Direct I/O driver is enabled by --enable-direct-vfd ## Check if Direct I/O driver is enabled by --enable-direct-vfd

View File

@@ -2646,6 +2646,7 @@ if test -n "$PARALLEL"; then
fi fi
fi fi
## ---------------------------------------------------------------------- ## ----------------------------------------------------------------------
## Turn on internal I/O filters by setting macros in header files ## Turn on internal I/O filters by setting macros in header files
## Internal I/O filters are contained entirely within the library and do ## Internal I/O filters are contained entirely within the library and do
@@ -2713,34 +2714,6 @@ if test -n "$FILTERS"; then
done done
fi fi
## --------------------------------------------------------------------------
## Should the Default Virtual File Driver be compiled?
##
AC_MSG_CHECKING([for Default Virtual File Driver definition])
AC_ARG_WITH([default-vfd],
[AS_HELP_STRING([--with-default-vfd=driver],
[Specify default file driver
[default=sec2]])],,
withval=sec2)
if test "X$withval" = "Xsec2"; then
AC_MSG_RESULT([yes])
default_vfd=yes
vfd_define=H5FD_SEC2
elif test "X$withval" = "Xstdio"; then
AC_MSG_RESULT([yes])
default_vfd=yes
vfd_define=H5FD_STDIO
else
AC_MSG_RESULT([no])
default_vfd=no
fi
if test "X$default_vfd" = "Xyes"; then
AC_DEFINE_UNQUOTED([DEFAULT_VFD], [$vfd_define],
[Define the default virtual file driver to compile])
fi
## ---------------------------------------------------------------------- ## ----------------------------------------------------------------------
## Check if Direct I/O driver is enabled by --enable-direct-vfd ## Check if Direct I/O driver is enabled by --enable-direct-vfd

View File

@@ -103,6 +103,17 @@ New Features
(DER - 2015-02-26, HDFFV-9147) (DER - 2015-02-26, HDFFV-9147)
- Removal of --with-default-vfd configure option
In theory, this option was intended to allow setting a default
VFD that would be used by the library. In practice, the feature
only accepted the POSIX (SEC2) VFD (already the default) and
the stdio VFD (a demo VFD not intended for production use). The
inability to pass key VFD parameters at configure time limits the
full implementation of this feature, so it was retired.
(DER - 2015-02-26, HDFFV-9081)
Library Library
------- -------
- None - None

View File

@@ -20,9 +20,6 @@
/* Define the default plugins path to compile */ /* Define the default plugins path to compile */
#undef DEFAULT_PLUGINDIR #undef DEFAULT_PLUGINDIR
/* Define the default virtual file driver to compile */
#undef DEFAULT_VFD
/* Define if `dev_t' is a scalar */ /* Define if `dev_t' is a scalar */
#undef DEV_T_IS_SCALAR #undef DEV_T_IS_SCALAR

View File

@@ -160,6 +160,10 @@
#include <dirent.h> #include <dirent.h>
#endif #endif
/* Define the default VFD for this platform.
* Since the removal of the Windows VFD, this is sec2 for all platforms.
*/
#define H5_DEFAULT_VFD H5FD_SEC2
#ifdef H5_HAVE_WIN32_API #ifdef H5_HAVE_WIN32_API
/* The following two defines must be before any windows headers are included */ /* The following two defines must be before any windows headers are included */