Thread: [Libsysio-commit] b_lustre: libsysio Makefile.am configure.in
Brought to you by:
lward
From: Mei <me...@us...> - 2003-08-15 07:45:38
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv25257 Modified Files: Tag: b_lustre Makefile.am configure.in Log Message: merge changes from HEAD to b_lustre Index: Makefile.am =================================================================== RCS file: /cvsroot/libsysio/libsysio/Makefile.am,v retrieving revision 1.7 retrieving revision 1.7.4.1 diff -u -w -b -B -p -r1.7 -r1.7.4.1 --- Makefile.am 26 Mar 2003 00:00:15 -0000 1.7 +++ Makefile.am 15 Aug 2003 07:43:14 -0000 1.7.4.1 @@ -5,7 +5,15 @@ else TESTS = endif +if WITH_CPLANT_TESTS +SUBDIRS = $(TESTS) +else +if WITH_CPLANT_YOD +SUBDIRS = src drivers dev +else SUBDIRS = src drivers dev $(TESTS) +endif +endif EXTRA_DIST = Rules.make \ include/dev.h include/file.h include/fs.h include/inode.h \ @@ -16,6 +24,7 @@ really-clean: maintainer-clean -rm -rf .deps -rm -f Makefile.in \ drivers/native/Makefile.in drivers/incore/Makefile.in \ + drivers/yod/Makefile.in \ drivers/Makefile.in \ dev/stdfd/Makefile.in \ dev/Makefile.in \ Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.5 retrieving revision 1.5.4.1 diff -u -w -b -B -p -r1.5 -r1.5.4.1 --- configure.in 26 Mar 2003 00:05:59 -0000 1.5 +++ configure.in 15 Aug 2003 07:43:14 -0000 1.5.4.1 @@ -19,21 +19,19 @@ AC_HEADER_STDC AC_HEADER_STAT AC_HEADER_TIME -AC_ARG_WITH(with_native_driver, +AC_ARG_WITH(native_driver, [ --with-native-driver build native test driver], - [ with_native_driver=${withval} - case "${withval}" in + [ case "${withval}" in yes) ;; no) ;; *) AC_MSG_ERROR(bad value ${withval} for --with-native-driver) ;; - esac], - [with_native_driver=yes]) + esac;], + [with_native_driver=yes;]) AM_CONDITIONAL(WITH_NATIVE_DRIVER, test x$with_native_driver = xyes) -AC_ARG_WITH(with_incore_driver, +AC_ARG_WITH(incore-driver, [ --with-incore-driver build incore test driver], - [ with_incore_driver=${withval} - case "${withval}" in + [ case "${withval}" in yes) ;; no) ;; *) AC_MSG_ERROR(bad value ${withval} for --with-incore-driver) ;; @@ -41,10 +39,9 @@ AC_ARG_WITH(with_incore_driver, [with_incore_driver=yes]) AM_CONDITIONAL(WITH_INCORE_DRIVER, test x$with_incore_driver = xyes) -AC_ARG_WITH(with_tests, +AC_ARG_WITH(tests, [ --with-tests build tests], - [ with_tests=${withval} - case "${withval}" in + [ case "${withval}" in yes) ;; no) ;; *) AC_MSG_ERROR(bad value ${withval} for --with-tests) ;; @@ -54,25 +51,53 @@ AM_CONDITIONAL(WITH_TESTS, test x$with_t AC_ARG_WITH(automount, [ --with-automount=[automount-file-name] with automounts], - with_automount=$withval, - [with_automount=]) -if test x$with_automount != x; then - AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\"$with_automount\\\"" -fi + [ if test x${withval} != x; then + AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\"${withval}\\\"" + fi]) AC_SUBST(AUTOMOUNT) -AC_ARG_WITH(with_stdfd_dev, +AC_ARG_WITH(stdfd-dev, [ --with-stdfd-dev build standard file descriptors pseudo-driver], - [ with_stdfd_dev=${withval} - case "${withval}" in - yes) - ;; + [ case "${withval}" in + yes) ;; no) ;; *) AC_MSG_ERROR(bad value ${withval} for --with-stdfd-dev) ;; esac], [with_stdfd_dev=yes]) AM_CONDITIONAL(WITH_STDFD_DEV, test x$with_stdfd_dev = xyes) +AC_ARG_WITH(cplant_yod, + [ --with-cplant-yod build cplant yod I/O driver], + [ case "${withval}" in + yes) if test x${with_stdfd_dev} != xyes; then + with_stdfd_dev=yes + AM_CONDITIONAL(WITH_STDFD_DEV, test x$with_stdfd_dev = xyes) + fi ;; + no) ;; + *) AC_MSG_ERROR(bad value ${withval} for --with-cplant-yod);; + esac], + [with_cplant_yod=no]) +AM_CONDITIONAL(WITH_CPLANT_YOD, test x$with_cplant_yod = xyes) + +AC_ARG_WITH(cplant_tests, + [ --with-cplant-tests=[cplant build path] build libsysio tests for cplant platform], + [ case "${withval}" in + yes) AC_MSG_ERROR(need path to compiler for --with-cplant-tests);; + no) with_cplant_tests=no;; + *) CPLANT_PATH=${withval} + CC=${CPLANT_PATH}/cplant-cc + CCDEPMODE=${CC} + CPP="${CC} -E" + AC_CHECK_FILE(${CC}, + [ if test x${with_cplant_yod} != xyes; then + with_cplant_yod=yes + AM_CONDITIONAL(WITH_CPLANT_YOD, test x$with_cplant_yod = xyes) + fi], + [ AC_MSG_ERROR(path not found ${CC} for --with-cplant-tests) ]);; + esac], + [with_cplant_tests=no]) +AM_CONDITIONAL(WITH_CPLANT_TESTS, test x$with_cplant_tests != xno) + # We keep the original values in `$config_*' and never modify them, so we # can write them unchanged into config.make. Everything else uses # $machine, $vendor, and $os, and changes them whenever convenient. @@ -154,7 +179,8 @@ AC_MSG_RESULT($alpha_linux_env) AC_MSG_CHECKING(for 64 bit stat and truncate syscalls) AC_TRY_COMPILE([ #include <sys/stat.h> -#include <syscall.h>], +#include <syscall.h> +extern int syscall();], [char path[] = "/"; int fd = 0; struct stat buf; @@ -174,7 +200,8 @@ fi # AC_MSG_CHECKING(for fdatasync system call) AC_TRY_COMPILE([ -#include <syscall.h>], +#include <syscall.h> +extern int syscall();], [int fd = 0; syscall(SYS_fdatasync, fd);], syscall_fdatasync_exists=yes, @@ -188,7 +215,8 @@ fi # AC_MSG_CHECKING(for utime system call) AC_TRY_COMPILE([ -#include <syscall.h>], +#include <syscall.h> +extern int syscall();], [syscall(SYS_utime);], syscall_utime_exists=yes, syscall_utime_exists=no) @@ -196,7 +224,7 @@ AC_MSG_RESULT($syscall_utime_exists) if test x$syscall_utime_exists = xno; then AC_DEFINE(USE_NATIVE_UTIME) fi -# Check for SYS_utime +# Check for __st_ino # AC_MSG_CHECKING(for __st_ino) AC_TRY_COMPILE([ @@ -209,6 +237,19 @@ AC_MSG_RESULT($have__st_ino) if test x$have__st_ino = xyes; then AC_DEFINE(HAVE__ST_INO) fi +# Check for st_gen +# +AC_MSG_CHECKING(for st_gen) +AC_TRY_COMPILE([ +#include <sys/stat.h>], +[struct stat st; +st.st_gen = 0;], + have_st_gen=yes, + have_st_gen=no) +AC_MSG_RESULT($have_st_gen) +if test x$have_st_gen = xyes; then + AC_DEFINE(HAVE_GENERATION) +fi AC_MSG_CHECKING(whether .text pseudo-op must be used) AC_CACHE_VAL(sysio_asm_dot_text, [dnl @@ -319,6 +360,7 @@ AC_OUTPUT( drivers/Makefile drivers/native/Makefile drivers/incore/Makefile + drivers/yod/Makefile dev/Makefile dev/stdfd/Makefile tests/Makefile) |
From: Mei <me...@us...> - 2004-01-11 05:55:57
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv5899 Modified Files: Tag: b_lustre Makefile.am configure.in Log Message: merge HEAD to b_lustre Index: Makefile.am =================================================================== RCS file: /cvsroot/libsysio/libsysio/Makefile.am,v retrieving revision 1.7.4.1 retrieving revision 1.7.4.2 diff -u -w -b -B -p -r1.7.4.1 -r1.7.4.2 --- Makefile.am 15 Aug 2003 07:43:14 -0000 1.7.4.1 +++ Makefile.am 11 Jan 2004 05:55:52 -0000 1.7.4.2 @@ -1,34 +1,49 @@ +AUTOMAKE_OPTIONS=1.6 if WITH_TESTS -TESTS = tests +TESTDIR = tests else -TESTS = +TESTDIR = endif -if WITH_CPLANT_TESTS -SUBDIRS = $(TESTS) -else -if WITH_CPLANT_YOD -SUBDIRS = src drivers dev -else -SUBDIRS = src drivers dev $(TESTS) -endif -endif +include $(top_srcdir)/src/module.mk +include $(top_srcdir)/include/module.mk +include $(top_srcdir)/tests/module.mk +include $(top_srcdir)/dev/stdfd/module.mk +include $(top_srcdir)/drivers/incore/module.mk +include $(top_srcdir)/drivers/sockets/module.mk +include $(top_srcdir)/drivers/native/module.mk +include $(top_srcdir)/drivers/yod/module.mk + +lib_LIBRARIES = ${LIBBUILD_DIR}/libsysio.a -EXTRA_DIST = Rules.make \ - include/dev.h include/file.h include/fs.h include/inode.h \ - include/mount.h include/sysio.h include/sysio-symbols.h +__LIBBUILD_DIR__libsysio_a_SOURCES = $(SRCDIR_SRCS) $(STDFD_SRCS) \ + $(INCORE_SRCS) $(SOCKETS_SRCS) $(NATIVE_SRCS) $(YOD_SRCS) -really-clean: maintainer-clean +__LIBBUILD_DIR__libsysio_a_CFLAGS = -fPIC + +include $(top_srcdir)/Rules.make + +EXTRA_DIST = Rules.make $(TESTS_EXTRA) $(SRCDIR_EXTRA) \ + $(INCLUDE_EXTRA) $(STDFD_EXTRA) $(INCORE_EXTRA) \ + $(SOCKETS_EXTRA) $(NATIVE_EXTRA) $(YOD_EXTRA) + +AM_CPPFLAGS += ${YOD_DRIVER_FLAGS} + +really-clean: testsclean maintainer-clean -rm -rf autom4te-2.53.cache -rm -rf .deps - -rm -f Makefile.in \ - drivers/native/Makefile.in drivers/incore/Makefile.in \ - drivers/yod/Makefile.in \ - drivers/Makefile.in \ - dev/stdfd/Makefile.in \ - dev/Makefile.in \ - src/Makefile.in tests/Makefile.in + -rm -f Makefile.in -rm -f compile depcomp INSTALL install-sh missing mkinstalldirs \ configure aclocal.m4 -rm -f config.guess config.sub + -rm -rf $(LIBBUILD_DIR) + -rm -f libsysio*.tar.gz + cd $(TESTDIR); rm -rf Makefile Makefile.in .deps + +tests: $(lib_LIBRARIES) FORCE + cd $(TESTDIR); make +testsclean: FORCE + cd $(TESTDIR); make clean +clean: testsclean clean-am +FORCE: Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.5.4.5 retrieving revision 1.5.4.6 diff -u -w -b -B -p -r1.5.4.5 -r1.5.4.6 --- configure.in 15 Dec 2003 08:32:01 -0000 1.5.4.5 +++ configure.in 11 Jan 2004 05:55:52 -0000 1.5.4.6 @@ -12,7 +12,8 @@ case "$host_os" in ;; esac -AM_INIT_AUTOMAKE +AM_INIT_AUTOMAKE([subdir-objects]) +AM_PROG_CC_C_O AC_PROG_CC AC_PROG_RANLIB @@ -21,6 +22,25 @@ AC_HEADER_STDC AC_HEADER_STAT AC_HEADER_TIME +have_lib_dir=yes; +AC_ARG_WITH(lib-dir, + AC_HELP_STRING([--with-lib-dir=<sysio lib build directory>], + [directory for sysio library]), + [ case "${withval}" in + "yes"|"no"|"") have_lib_dir=no ;; + *) LIBBUILD_DIR=${withval}; + test -d ${LIBBUILD_DIR} || mkdir ${LIBBUILD_DIR} || + have_lib_dir=no;; + esac;], + [ LIBBUILD_DIR=`pwd`/lib; + test -d ${LIBBUILD_DIR} || mkdir ${LIBBUILD_DIR} || have_lib_dir=no;]) +if test x${have_lib_dir} == xyes; then + echo "Using sysio library directory ${LIBBUILD_DIR}" +else + AC_MSG_ERROR(Need writeable path to sysio library directory ${LIBBUILD_DIR}) +fi +AC_SUBST(LIBBUILD_DIR) + AC_ARG_WITH(native_driver, AC_HELP_STRING([--with-native-driver],[build native test driver]), [ case "${withval}" in @@ -382,13 +402,5 @@ fi AC_OUTPUT( Makefile - src/Makefile - drivers/Makefile - drivers/native/Makefile - drivers/incore/Makefile - drivers/yod/Makefile - drivers/sockets/Makefile - dev/Makefile - dev/stdfd/Makefile tests/Makefile) |