[set path to libsysio source (default is included libsysio)]),
[],[with_sysio='yes'])
AC_MSG_CHECKING([location of libsysio])
+enable_sysio="$with_sysio"
case x$with_sysio in
xyes)
AC_MSG_RESULT([internal])
AC_MSG_ERROR([A complete (built) external libsysio was not found.])
])
SYSIO=$with_sysio
+ enable_sysio="yes"
;;
esac
AC_SUBST(LIBSYSIO_SUBDIR)
AC_HELP_STRING([--disable-modules],
[disable building of Lustre kernel modules]),
[],[
- case $target_os in
- linux* | darwin)
- enable_modules='yes'
- ;;
- *)
- enable_modules='no'
- ;;
- esac
+ LC_TARGET_SUPPORTED([
+ enable_modules='yes'
+ ],[
+ enable_modules='no'
+ ])
])
AC_MSG_RESULT([$enable_modules ($target_os)])
linux*)
LB_PROG_LINUX
;;
- darwin)
+ darwin*)
LB_PROG_DARWIN
;;
*)
+ # This is strange - Lustre supports a target we don't
AC_MSG_ERROR([Modules are not supported on $target_os])
;;
esac
[AC_MSG_CHECKING([whether to build utilities])
AC_ARG_ENABLE([utils],
AC_HELP_STRING([--disable-utils],
- [disable building of Lustre utility programs])
+ [disable building of Lustre utility programs]),
[],[enable_utils='yes'])
if test x$with_cray_portals = xyes ; then
enable_utils='no'
fi
AC_MSG_RESULT([$enable_utils])
+if test x$enable_utils = xyes ; then
+ LB_CONFIG_INIT_SCRIPTS
+fi
])
#
# Directories for documentation and demos.
docdir='${datadir}/doc/$(PACKAGE)'
AC_SUBST(docdir)
+
+LP_PATH_DEFAULTS
+LC_PATH_DEFAULTS
])
#
#
AC_DEFUN([LB_PROG_CC],
[AC_PROG_RANLIB
-AC_PROG_CC
AC_MSG_CHECKING([for buggy compiler])
CC_VERSION=`$CC -v 2>&1 | grep "^gcc version"`
bad_cc() {
LB_CONFIG_MODULES
-LB_CONFIG_LIBLUSTRE
+LC_CONFIG_LIBLUSTRE
+
+LP_CONFIGURE
+LC_CONFIGURE
LB_CONDITIONALS
LB_CONFIG_HEADERS
[Makefile:build/Makefile.in.toplevel]
[autoMakefile
build/autoMakefile
+build/autoconf/Makefile
build/Rules
build/lustre.spec
])