Skip to content
Snippets Groups Projects
Commit d4c428b7 authored by jacob's avatar jacob
Browse files

remove dead files

parent 0fbc0b53
No related merge requests found
This diff is collapsed.
#!/bin/sh
aclocal &&
automake --add-missing &&
${AUTOCONF:-autoconf}
# ---------- other tests and settings ---------
AC_CHECK_TYPE([spinlock_t],
[AC_DEFINE(HAVE_SPINLOCK_T, 1, [spinlock_t is defined])],
[],
[#include <linux/spinlock.h>])
# --------- unsigned long long sane? -------
AC_CHECK_SIZEOF(unsigned long long, 0)
echo "---> size SIZEOF $SIZEOF_unsigned_long_long"
echo "---> size SIZEOF $ac_cv_sizeof_unsigned_long_long"
if test $ac_cv_sizeof_unsigned_long_long != 8 ; then
AC_MSG_ERROR([** we assume that sizeof(long long) == 8. Tell phil@clusterfs.com])
fi
# directories for binaries
ac_default_prefix=/usr
# mount.lustre
rootsbindir='/sbin'
AC_SUBST(rootsbindir)
sysconfdir='/etc'
AC_SUBST(sysconfdir)
# Directories for documentation and demos.
docdir='${datadir}/doc/$(PACKAGE)'
AC_SUBST(docdir)
demodir='$(docdir)/demo'
AC_SUBST(demodir)
pkgexampledir='${pkgdatadir}/examples'
AC_SUBST(pkgexampledir)
pymoddir='${pkglibdir}/python/Lustre'
AC_SUBST(pymoddir)
# ---------- BAD gcc? ------------
AC_PROG_RANLIB
AC_PROG_CC
AC_MSG_CHECKING([for buggy compiler])
CC_VERSION=`$CC -v 2>&1 | grep "^gcc version"`
bad_cc() {
AC_MSG_RESULT([buggy compiler found!])
echo
echo " '$CC_VERSION'"
echo " has been known to generate bad code, "
echo " please get an updated compiler."
AC_MSG_ERROR([sorry])
}
TMP_VERSION=`echo $CC_VERSION | cut -c 1-16`
if test "$TMP_VERSION" = "gcc version 2.95"; then
bad_cc
fi
case "$CC_VERSION" in
# ost_pack_niobuf putting 64bit NTOH temporaries on the stack
# without "sub $0xc,%esp" to protect the stack from being
# stomped on by interrupts (bug 606)
"gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)")
bad_cc
;;
# mandrake's similar sub 0xc compiler bug
# http://marc.theaimsgroup.com/?l=linux-kernel&m=104748366226348&w=2
"gcc version 2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk)")
bad_cc
;;
# unpatched 'gcc' on rh9. miscompiles a
# struct = (type) { .member = value, };
# asignment in the iibnal where the struct is a mix
# of u64 and u32 bit-fields.
"gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)")
bad_cc
;;
*)
AC_MSG_RESULT([no known problems])
;;
esac
# end ------ BAD gcc? ------------
# -------- Check for required packages --------------
# this doesn't seem to work on older autoconf
# AC_CHECK_LIB(readline, readline,,)
AC_MSG_CHECKING([for readline support])
AC_ARG_ENABLE(readline,
AC_HELP_STRING([--disable-readline],
[do not use readline library]),
[],[enable_readline='yes'])
AC_MSG_RESULT([$enable_readline])
if test x$enable_readline = xyes ; then
LIBREADLINE="-lreadline -lncurses"
AC_DEFINE(HAVE_LIBREADLINE, 1, [readline library is available])
else
LIBREADLINE=""
fi
AC_SUBST(LIBREADLINE)
AC_MSG_CHECKING([if efence debugging support is requested])
AC_ARG_ENABLE(efence,
AC_HELP_STRING([--enable-efence],
[use efence library]),
[],[enable_efence='no'])
AC_MSG_RESULT([$enable_efence])
if test "$enable_efence" = "yes" ; then
LIBEFENCE="-lefence"
AC_DEFINE(HAVE_LIBEFENCE, 1, [libefence support is requested])
else
LIBEFENCE=""
fi
AC_SUBST(LIBEFENCE)
# -------- enable acceptor libwrap (TCP wrappers) support? -------
AC_MSG_CHECKING([if libwrap support is requested])
AC_ARG_ENABLE([libwrap],
AC_HELP_STRING([--enable-libwrap], [use TCP wrappers]),
[case "${enableval}" in
yes) enable_libwrap=yes ;;
no) enable_libwrap=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-libwrap) ;;
esac],[enable_libwrap=no])
AC_MSG_RESULT([$enable_libwrap])
if test x$enable_libwrap = xyes ; then
LIBWRAP="-lwrap"
AC_DEFINE(HAVE_LIBWRAP, 1, [libwrap support is requested])
else
LIBWRAP=""
fi
AC_SUBST(LIBWRAP)
AC_SUBST(LIBS)
Makefile
Makefile.in
aclocal.m4
config.log
config.status
config.cache
configure
portals.spec
# Copyright (C) 2002 Cluster File Systems, Inc.
#
# This code is issued under the GNU General Public License.
# See the file COPYING in this distribution
EXTRA_DIST = portals.spec
\ No newline at end of file
%define kversion @RELEASE@
%define linuxdir @LINUX@
%define version HEAD
Summary: Sandia Portals Message Passing - utilities
Name: portals
Version: %{version}
Release: 0210101748uml
Copyright: LGPL
Group: Utilities/System
BuildRoot: /var/tmp/portals-%{version}-root
Source: http://sandiaportals.org/portals-%{version}.tar.gz
%description
Sandia Portals message passing package. Contains kernel modules, libraries and utilities.
%package -n portals-modules
Summary: Kernel modules and NAL's for portals
Group: Development/Kernel
%description -n portals-modules
Object-Based Disk storage drivers for Linux %{kversion}.
%package -n portals-source
Summary: Portals kernel source for rebuilding with other kernels
Group: Development/Kernel
%description -n portals-source
Portals kernel source for rebuilding with other kernels
%prep
%setup -n portals-%{version}
%build
rm -rf $RPM_BUILD_ROOT
# Create the pristine source directory.
srcdir=$RPM_BUILD_ROOT/usr/src/portals-%{version}
mkdir -p $srcdir
find . -name CVS -prune -o -print | cpio -ap $srcdir
# Set an explicit path to our Linux tree, if we can.
conf_flag=
linuxdir=%{linuxdir}
test -d $linuxdir && conf_flag=--with-linux=$linuxdir
./configure $conf_flag
make
%install
make install prefix=$RPM_BUILD_ROOT
%ifarch alpha
# this hurts me
conf_flag=
linuxdir=%{linuxdir}
test -d $linuxdir && conf_flag=--with-linux=$linuxdir
make clean
./configure --enable-rtscts-myrinet $conf_flag
make
cp linux/rtscts/rtscts.o $RPM_BUILD_ROOT/lib/modules/%{kversion}/kernel/net/portals/rtscts_myrinet.o
cp user/myrinet_utils/mcpload $RPM_BUILD_ROOT/usr/sbin/mcpload
%endif
%files
%attr(-, root, root) %doc COPYING
%attr(-, root, root) /usr/sbin/acceptor
%attr(-, root, root) /usr/sbin/ptlctl
%attr(-, root, root) /usr/sbin/debugctl
%ifarch alpha
%attr(-, root, root) /usr/sbin/mcpload
%endif
%attr(-, root, root) /lib/libmyrnal.a
%attr(-, root, root) /lib/libptlapi.a
%attr(-, root, root) /lib/libptlctl.a
%attr(-, root, root) /lib/libprocbridge.a
%attr(-, root, root) /lib/libptllib.a
%attr(-, root, root) /lib/libtcpnal.a
%attr(-, root, root) /lib/libtcpnalutil.a
%attr(-, root, root) /usr/include/portals/*.h
%attr(-, root, root) /usr/include/portals/base/*.h
%attr(-, root, root) /usr/include/linux/*.h
%files -n portals-modules
%attr(-, root, root) %doc COPYING
%attr(-, root, root) /lib/modules/%{kversion}/kernel/net/portals/portals.o
%attr(-, root, root) /lib/modules/%{kversion}/kernel/net/portals/kptlrouter.o
%attr(-, root, root) /lib/modules/%{kversion}/kernel/net/portals/kptrxtx.o
%ifarch alpha
%attr(-, root, root) /lib/modules/%{kversion}/kernel/net/portals/p3mod.o
%attr(-, root, root) /lib/modules/%{kversion}/kernel/net/portals/rtscts.o
%endif
%attr(-, root, root) /lib/modules/%{kversion}/kernel/net/portals/*nal.o
%files -n portals-source
%attr(-, root, root) /usr/src/portals-%{version}
%post
if [ ! -e /dev/portals ]; then
mknod /dev/portals c 10 240
fi
depmod -ae || exit 0
grep -q portals /etc/modules.conf || \
echo 'alias char-major-10-240 portals' >> /etc/modules.conf
grep -q '/dev/portals' /etc/modules.conf || \
echo 'alias /dev/portals portals' >> /etc/modules.conf
%postun
depmod -ae || exit 0
%clean
#rm -rf $RPM_BUILD_ROOT
# end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment