25 removed files
slic
diff -N GNUmakefile
--- GNUmakefile 8 Mar 2013 19:38:46 -0000 1.47
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,97 +0,0 @@
-# $Header: /cvs/lcd/slic/Attic/GNUmakefile,v 1.47 2013/03/08 19:38:46 jstrube Exp $
-#
-# Makefile for SLIC simulation package based on examples GNUmakefile by G. Cosmo.
-#
-
-ifndef SLIC_BASE
-export SLIC_BASE := $(PWD)
-endif
-
-# target
-name := slic
-G4TARGET := $(name)
-
-# external libs
-G4EXLIB := true
-
-# default target
-.PHONY: all version
-
-# create lib, bin, copy the lib
-all: check_config lib lib_copy bin
-#test
-
-# local settings from running configure
-include $(PWD)/GNUmakefile.local
-
-# setup compiler defs from configure
-CPPFLAGS += $(SLIC_CPPFLAGS)
-CPPFLAGS += $(SLIC_CXXFLAGS)
-CPPFLAGS += $(SLIC_DEFS)
-
-# SLIC make includes (gmk) dir
-MAKEINCLUDES := $(SLIC_BASE)/config/make
-
-# G4 arch include
-include $(G4INSTALL)/config/architecture.gmk
-
-# LCDD
-include $(MAKEINCLUDES)/lcdd.gmk
-
-# GDML
-include $(MAKEINCLUDES)/gdml.gmk
-
-# Xerces
-include $(MAKEINCLUDES)/xerces.gmk
-
-# Geant4 binmake and special settings
-include $(MAKEINCLUDES)/geant4.gmk
-
-# HepPDT
-include $(MAKEINCLUDES)/heppdt.gmk
-
-# LCIO
-include $(MAKEINCLUDES)/lcio.gmk
-
-# Qt
-#include $(MAKEINCLUDES)/qt.gmk
-
-check_config: GNUmakefile.local
-
-lib_copy:
- @if [ ! -e $(G4WORKDIR)/lib ]; then mkdir $(G4WORKDIR)/lib; fi
- @cp $(G4WORKDIR)/tmp/$(G4SYSTEM)/$(G4TARGET)/lib$(G4TARGET).* $(G4WORKDIR)/lib
-
-.DUMMY: docs
-
-# target to create Doxygen files
-docs:
-
-# check if Doxygen was found when configure ran
-ifeq ($(strip $(DOXYGEN)),)
- $(error Unable to run docs target. Doxygen was not setup at configuration time.)
-else
- $(DOXYGEN) $(SLIC_BASE)/config/doxygen/slic_doxygen.cfg
-endif
-
-# target to debug CPP/CXXFLAGS and DEFS
-debug:
- @echo SLIC_CPPFLAGS=$(SLIC_CPPFLAGS)
- @echo SLIC_CXXFLAGS=$(SLIC_CXXFLAGS)
- @echo SLIC_DEFS=$(SLIC_DEFS)
- @echo
- @echo CPPFLAGS=$(CPPFLAGS)
-
-.PHONY: test
-test:
- export LD_LIBRARY_PATH=$(XERCESCROOT)/lib:$(LD_LIBRARY_PATH) && $(SLIC_BASE)/bin/$(G4SYSTEM)/$(name) -h
-
-distclean: clean
- rm -v $(SLIC_BASE)/GNUmakefile.local
- rm -v $(SLIC_BASE)/include/PackageInfo.hh
-
-version:
- ./ac.sh ; \
- ./configure --enable-version --enable-package-info ; \
- cvs commit -m "JM: update for $$(cat VERSION)" VERSION configure configure.ac ; \
- ./scripts/rtag.sh ;
slic
diff -N GNUmakefile.local.in
--- GNUmakefile.local.in 9 Apr 2013 21:24:09 -0000 1.16
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,64 +0,0 @@
-# $Header: /cvs/lcd/slic/Attic/GNUmakefile.local.in,v 1.16 2013/04/09 21:24:09 jeremy Exp $
-#
-# Local build settings generated by configure
-#
-# *** DO NOT EDIT MANUALLY. ***
-#
-# To change the settings in GNUmakefile.local, rerun configure.
-#
-
-# compiler settings from configure
-SLIC_CPPFLAGS = @CPPFLAGS@
-SLIC_CXXFLAGS = @CXXFLAGS@
-SLIC_DEFS = @DEFS@
-
-# SLIC base dir
-SLIC_BASE = @SLIC_PREFIX@
-
-# LCIO base dir var
-LCIO = @LCIO_PREFIX@
-
-# Geant4 standard vars
-G4INSTALL = @G4_PREFIX@
-G4SYSTEM = @G4SYSTEM@
-G4WORKDIR = @G4WORKDIR@
-GEANT4_VERSION = @[log in to unmask]@[log in to unmask]@GEANT4_PATCH_VERSION@
-G4LIB = $(G4INSTALL)/lib64/Geant4-$(GEANT4_VERSION)
-#@echo "G4LIB=$(G4LIB)"
-
-# Geant4 library build settings.
-G4LIB_BUILD_SHARED = @G4LIB_BUILD_SHARED@
-G4LIB_BUILD_STATIC = @G4LIB_BUILD_STATIC@
-
-# CLHEP base dir
-#CLHEP_BASE_DIR = @CLHEP_PREFIX@
-
-# LCDD base dir
-LCDD_BASE = @LCDD_PREFIX@
-
-# SLIC base dir
-SLIC_BASE = @SLIC_PREFIX@
-
-# Xerces base dir
-XERCESCROOT = @XERCES_PREFIX@
-XERCES_LIBNAME = @XERCES_LIBNAME@
-
-# GDML base dir
-GDML_BASE = @GDML_PREFIX@
-
-# GDML lib dir
-GDML_LIB_DIR = @GDML_PREFIX@/build/@G4SYSTEM@/lib
-
-# HepPDT
-USE_HEPPDT = @USE_HEPPDT@
-HEPPDT_BASE = @HEPPDT_PREFIX@
-
-# Doxygen exec path for docs
-DOXYGEN = @DOXYGEN@
-
-# Flag that CLHEP 2.x is being used.
-#CLHEP_MAJOR_VERSION=@CLHEP_MAJOR_VERSION@
-
-# Setup dynamic load variable.
-# FIXME: Needs to be different for Cygwin and OSX.
-#LD_LIBRARY_PATH=@GDML_LIB_DIR@:@XERCES_PREFIX@/lib
slic
diff -N VERSION
--- VERSION 14 Aug 2012 19:44:41 -0000 1.130
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1 +0,0 @@
-SLIC v3r0p3
slic
diff -N ac.sh
--- ac.sh 26 Apr 2005 01:20:32 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1 +0,0 @@
-autoconf -o configure configure.ac
slic
diff -N aclocal.m4
--- aclocal.m4 9 Apr 2013 21:24:09 -0000 1.46
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,660 +0,0 @@
-]dnl $Header: /cvs/lcd/slic/Attic/aclocal.m4,v 1.46 2013/04/09 21:24:09 jeremy Exp $
-
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-dnl Autoconf macros for SLIC and its dependencies.
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-dnl Macro to configure SLIC.
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-AC_DEFUN(SIM_SETUP_SLIC, [
-
-dnl make sure configure is running in SLIC_BASE
-SLIC_PREFIX=$(pwd)
-AC_CHECK_FILE([${SLIC_PREFIX}/slic.cc],
- ,
- AC_MSG_ERROR(please run configure from the SLIC checkout dir))
-AC_SUBST(SLIC_PREFIX)
-
-dnl set as default install dir
-AC_PREFIX_DEFAULT($SLIC_BASE)
-
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-dnl Macro to define SLIC_DEBUG.
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-AC_MSG_CHECKING(whether debug code should be enabled)
-
-AC_ARG_ENABLE(debug,
- AC_HELP_STRING([--enable-debug], [turn on debug code by defining SLIC_DEBUG; default = no]),
- ,)
-
-dnl default to no debug
-if test -n "${enable_debug}" && test "${enable_debug}" = "yes"; then
- AC_MSG_RESULT(yes)
- AC_DEFINE(SLIC_DEBUG)
-else
- AC_MSG_RESULT(no)
-fi
-
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-dnl Macro to set gdb compiler flags.
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-AC_MSG_CHECKING(whether gdb flags should be set)
-
-AC_ARG_ENABLE(debug,
- AC_HELP_STRING([--enable-gdb], [enable debugging with gdb; default = no]),
- ,)
-
-dnl default to no debug
-if test -n "${enable_gdb}" && test "${enable_gdb}" = "yes"; then
- AC_MSG_RESULT(yes)
-
- dnl debugging symbols
- CXXFLAGS="${CXXFLAGS} -g -ggdb -O0"
-
-else
- AC_MSG_RESULT(no)
-fi
-
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-dnl Macro to set profiling flags.
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-AC_MSG_CHECKING(whether profiling flags should be set)
-
-AC_ARG_ENABLE(profiling,
- AC_HELP_STRING([--enable-profiling], [enable profiling using gprof; default = no]),
- ,)
-
-dnl default to no profiling
-if test -n "${enable_profiling}" && test "${enable_profiling}" = "yes"; then
- AC_MSG_RESULT(yes)
- CXXFLAGS="${CXXFLAGS} -pg"
-else
- AC_MSG_RESULT(no)
-fi
-
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-dnl Macro to enable logging.
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-AC_MSG_CHECKING(whether to enable logging)
-
-AC_ARG_ENABLE(log,
- AC_HELP_STRING([--enable-log],
- [enable logging; disabling will turn off most console output; default = yes]),
- ,)
-
-if test "${enable_log}" = "yes" || test -z "${enable_log}"; then
- AC_DEFINE(SLIC_LOG)
- AC_MSG_RESULT(yes)
-else
- AC_MSG_RESULT(no)
-fi
-
-])
-
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-dnl Macro to enable verbose compiler output.
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-AC_DEFUN([SIM_SETUP_VERBOSE_COMPILE], [
- AC_MSG_CHECKING(whether verbose compiler output should be enabled)
-
-AC_ARG_ENABLE(compile-verbose,
- AC_HELP_STRING([--enable-compile-verbose],
- [use verbose compilation and linking flags]),
- ,)
-
-if test -n "${enable_compile_verbose}" && test "${enable_compile_verbose}" == "yes"; then
-
- AC_MSG_RESULT(yes)
-
- dnl verbose compiler output
- CXXFLAGS="${CXXFLAGS} -Wall -v -Wl,--verbose"
-
-else
- AC_MSG_RESULT(no)
-fi
-
-])
-
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-dnl Setup LCIO.
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-AC_DEFUN(SIM_SETUP_LCIO, [
-
-AC_MSG_CHECKING(for LCIO installation)
-
-AC_ARG_WITH(lcio,
- AC_HELP_STRING([--with-lcio=<path>],[LCIO installation base [[LCIO]] ]),
- [LCIO_PREFIX=$with_lcio])
-
-if test -z "${with_lcio}"; then
- if test -n "$LCIO"; then
- LCIO_PREFIX=${LCIO}
- else
- AC_MSG_RESULT(no)
- AC_MSG_ERROR(LCIO installation was not found)
- fi
-fi
-
-dnl test to see if it looks valid
-LCIO_TEST_FILE=${LCIO_PREFIX}/src/aid/EVENT/LCEvent.aid
-
-if test -e ${LCIO_TEST_FILE}; then
- AC_MSG_RESULT(yes)
- echo "found valid LCIO installation at ${LCIO_PREFIX}."
-else
- AC_MSG_RESULT(no)
- AC_MSG_ERROR(invalid LCIO installation at ${LCIO_PREFIX})
-fi
-
-dnl define LCIO_PREFIX in output
-AC_SUBST(LCIO_PREFIX)
-
-])
-
-dnl
-AC_DEFUN(AC_HAVE_G4VERSION, [
-
-AC_MSG_CHECKING(for G4Version.hh)
-
-if test -e $G4INSTALL/source/global/management/include/G4Version.hh; then
- AC_DEFINE(HAVE_G4VERSION)
- AC_MSG_RESULT(yes)
-else
- AC_MSG_RESULT(no)
-fi
-
-])
-
-dnl Macro to extract the Geant4 version from G4Version.hh or G4RunManagerKernel.hh, if the former file does not exist.
-AC_DEFUN(AC_GEANT4_VERSION, [
-
-AC_MSG_CHECKING(for Geant4 version)
-
-if test -n "$G4INSTALL"
-then
-
- if ! test -d $G4INSTALL; then
- AC_MSG_ERROR(G4INSTALL is not a valid directory)
- fi
-
- if test -e "$G4INSTALL/source/global/management/include/G4Version.hh"
- then
- GEANT4_VERSION_NUMBER=$(grep "define G4VERSION_NUMBER" $G4INSTALL/source/global/management/include/G4Version.hh | sed 's/#define G4VERSION_NUMBER\ \ //g')
- else
- AC_MSG_ERROR(FATAL ERROR: Could not determine Geant4 version because G4Version.hh was not found in Geant4 source code. You are probably using an old Geant4 version.)
- fi
-else
- AC_MSG_ERROR(G4INSTALL is not set.)
-fi
-
-GEANT4_MAJOR_VERSION=${GEANT4_VERSION_NUMBER:0:1}
-GEANT4_MINOR_VERSION=${GEANT4_VERSION_NUMBER:1:1}
-GEANT4_PATCH_VERSION=${GEANT4_VERSION_NUMBER:2:1}
-
-if test -z "$GEANT4_MINOR_VERSION";
-then
- GEANT4_MINOR_VERSION=0
-fi
-
-if test -z "$GEANT4_PATCH_VERSION";
-then
- GEANT4_PATCH_VERSION=0
-fi
-
-GEANT4_FULL_VERSION=$GEANT4_MAJOR_VERSION"."$GEANT4_MINOR_VERSION"."$GEANT4_PATCH_VERSION
-
-AC_MSG_RESULT($GEANT4_FULL_VERSION)
-
-AC_MSG_CHECKING(for Geant4 major version level)
-AC_MSG_RESULT($GEANT4_MAJOR_VERSION)
-
-AC_MSG_CHECKING(for Geant4 minor version level)
-AC_MSG_RESULT($GEANT4_MINOR_VERSION)
-
-AC_MSG_CHECKING(for Geant4 patch level)
-AC_MSG_RESULT($GEANT4_PATCH_VERSION)
-
-AC_SUBST(GEANT4_FULL_VERSION)
-AC_SUBST(GEANT4_MAJOR_VERSION)
-AC_SUBST(GEANT4_MINOR_VERSION)
-AC_SUBST(GEANT4_PATCH_VERSION)
-
-])
-
-
-dnl /\/\/\ Geant4 /\/\/\
-AC_DEFUN(SIM_SETUP_G4, [
-
-AC_MSG_CHECKING(for Geant4 installation)
-
-AC_ARG_WITH(geant4,
- AC_HELP_STRING([--with-geant4=<path>], [Geant4 installation base [[G4INSTALL]]]),
- [G4_PREFIX=$with_geant4])
-
-if test -z "${with_geant4}"; then
- if test -n "$G4INSTALL"; then
- dnl set prefix
- G4_PREFIX=${G4INSTALL}
- else
- dnl not found
- AC_MSG_RESULT(no)
- AC_MSG_ERROR(Geant4 installation not found)
- fi
-fi
-
-G4_TEST_FILE=${G4_PREFIX}/source/run/include/G4RunManager.hh
-
-if test -e ${G4_TEST_FILE}; then
- AC_MSG_RESULT(yes)
- echo "found valid Geant4 installation at ${G4_PREFIX}"
-else
- AC_MSG_ERROR(invalid Geant4 installation at ${G4_PREFIX})
-fi
-
-AC_SUBST(G4_PREFIX)
-
-dnl set work dir
-
-G4WORKDIR=${SLIC_BASE}
-
-AC_SUBST(G4WORKDIR)
-
-dnl try to derive G4SYSTEM if not set
-
-AC_MSG_CHECKING([whether G4SYSTEM is set in your environment])
-
-if test -z "${G4SYSTEM}"; then
- dnl G4SYSTEM is not set
-
- AC_MSG_RESULT(no)
-
- dnl make a reasonable guess at G4SYSTEM
- AC_MSG_CHECKING([for G4SYSTEM guess])
- G4SYSTEM=${host_os}"-"${CXX}
- AC_MSG_RESULT([$G4SYSTEM])
-else
- AC_MSG_RESULT(yes)
-fi
-
-AC_SUBST(G4SYSTEM)
-
-AC_GEANT4_VERSION
-
-dnl libs and includes will be setup by Geant4 binmake.
-])
-
-dnl /\/\/\ CLHEP /\/\/\
-
-AC_DEFUN(SIM_SETUP_CLHEP, [
-
-AC_MSG_CHECKING(for CLHEP installation)
-
-AC_ARG_WITH(clhep,
- AC_HELP_STRING([--with-clhep=<path>],
- [CLHEP installation base [[CLHEP_BASE_DIR]] ]),
- [CLHEP_PREFIX=$with_clhep])
-
-if test -z "${with_clhep}"; then
- if test -n "$CLHEP_BASE_DIR"; then
- CLHEP_PREFIX=${CLHEP_BASE_DIR}
- else
- AC_MSG_RESULT(no)
- AC_MSG_ERROR(CLHEP installation was not found)
- fi
-fi
-
-CLHEP_TEST_FILE=${CLHEP_PREFIX}/include/CLHEP/Evaluator/Evaluator.h
-
-if test -e ${CLHEP_TEST_FILE}; then
- AC_MSG_RESULT(yes)
- echo "found valid CLHEP installation at ${CLHEP_PREFIX}"
-else
- AC_MSG_ERROR(invalid CLHEP installation at ${CLHEP_PREFIX})
-fi
-
-AC_SUBST(CLHEP_PREFIX)
-
-dnl Define USE_CLHEP2 preprocessor
-dnl symbol if CLHEP 2 is found.
-CLHEP_MAJOR_VERSION=$($CLHEP_BASE_DIR/bin/clhep-config --version | awk '{print [$]2}' | sed -e 's/\.[[0-9]]*\.[[0-9]]*\.[[0-9]]*//')
-AC_SUBST(CLHEP_MAJOR_VERSION)
-if test "$CLHEP_MAJOR_VERSION" = "2"
-then
- AC_DEFINE(USE_CLHEP2)
-fi
-
-])
-
-dnl /\/\/\ LCDD /\/\/\
-AC_DEFUN(SIM_SETUP_LCDD, [
-
-AC_MSG_CHECKING(for LCDD installation)
-
-AC_ARG_WITH(lcdd,
- AC_HELP_STRING([--with-lcdd=<path>],[LCDD installation base [[LCDD_BASE]] ]),
- [LCDD_PREFIX=$with_lcdd])
-
-if test -z "${with_lcdd}"; then
- if test -n "$LCDD_BASE"; then
- LCDD_PREFIX=${LCDD_BASE}
- else
- AC_MSG_RESULT(no)
- AC_MSG_ERROR(LCDD installation was not found)
- fi
-fi
-
-LCDD_TEST_FILE=${LCDD_PREFIX}/src/LCDDDetectorConstruction.cc
-
-if test -e ${LCDD_TEST_FILE}; then
- AC_MSG_RESULT(yes)
- echo "found valid LCDD installation at ${LCDD_PREFIX}"
-else
- AC_MSG_ERROR(invalid LCDD installation at ${LCDD_PREFIX})
-fi
-
-AC_SUBST(LCDD_PREFIX)
-
-])
-
-AC_DEFUN(SIM_CREATE_VERSION_FILE, [
-
-AC_MSG_CHECKING(whether to rewrite VERSION file)
-
-AC_ARG_ENABLE([version],
- AC_HELP_STRING([--enable-version=<yes|no>], [Rewrite the VERSION file.] ),
- ,
- )
-
-if test "${enable_version}" = "yes"; then
- rm VERSION &> /dev/null
- echo "${PACKAGE_NAME} ${PACKAGE_VERSION}" > VERSION
-else
- enable_version="no"
-fi
-
-AC_MSG_RESULT($enable_version)
-
-])
-
-dnl /\/\/\ Xerces /\/\/\
-AC_DEFUN(SIM_SETUP_XERCES, [
-
-AC_MSG_CHECKING(for Xerces installation)
-
-AC_ARG_WITH(xerces,
- AC_HELP_STRING([--with-xerces=<path>], [Xerces-C++ installation root [[XERCESCROOT]] ]),
- [XERCES_PREFIX=$with_xerces])
-
-if test -z "${with_xerces}"; then
- if test -n "$XERCESCROOT"; then
- XERCES_PREFIX=${XERCESCROOT}
- else
- AC_MSG_RESULT(no)
- AC_MSG_ERROR(Xerces installation was not found)
- fi
-fi
-
-dnl /\/\/\ Xerces libname /\/\/\
-AC_DEFUN(SIM_WITH_XERCES_LIBNAME, [
-
-AC_MSG_CHECKING(for Xerces libname)
-
-AC_ARG_WITH(xerces-libname,
- AC_HELP_STRING([--with-xerces-libname=<name>],[Xerces libname without lib or .a/.so]),
- [XERCES_LIBNAME=$with_xerces_libname],
- [XERCES_LIBNAME=xerces-c])
-
-AC_MSG_RESULT($XERCES_LIBNAME)
-
-AC_SUBST(XERCES_LIBNAME)
-
-])
-
-XERCES_TEST_FILE=${XERCES_PREFIX}/include/xercesc/dom/DOM.hpp
-
-if test -e "${XERCES_TEST_FILE}"; then
- AC_MSG_RESULT(yes)
- echo "found valid Xerces installation at ${XERCES_PREFIX}"
-else
- AC_MSG_ERROR(invalid Xerces installation at ${XERCES_PREFIX})
-fi
-
-AC_SUBST(XERCES_PREFIX)
-
-])
-
-dnl /\/\/\ GDML /\/\/\
-
-AC_DEFUN(SIM_SETUP_GDML, [
-
-AC_MSG_CHECKING(for GDML installation)
-
-dnl base dir
-AC_ARG_WITH(gdml,
- AC_HELP_STRING([--with-gdml=<path>], [ GDML installation base [[GDML_BASE]] ]),
- [GDML_PREFIX=$with_gdml])
-
-if test -z "${with_gdml}"; then
- if test -n "$GDML_BASE"; then
- GDML_PREFIX=${GDML_BASE}
- else
- AC_MSG_RESULT(no)
- AC_MSG_ERROR(GDML installation was not found)
- fi
-fi
-
-GDML_TEST_FILE=${GDML_PREFIX}/Common/Saxana/src/SAXProcessor.cpp
-
-if test -e "${GDML_TEST_FILE}"; then
- AC_MSG_RESULT(yes)
-dnl echo "found valid GDML installation at ${GDML_PREFIX}"
-else
- AC_MSG_ERROR(invalid GDML installation at ${GDML_PREFIX})
-fi
-
-AC_SUBST(GDML_PREFIX)
-
-])
-
-dnl
-dnl Macro to check for HepPDT library.
-dnl
-AC_DEFUN(SIM_SETUP_HEPPDT, [
-
-AC_MSG_CHECKING(for HepPDT installation)
-
-AC_ARG_WITH(heppdt,
- AC_HELP_STRING([--with-heppdt=<path>], [ HepPDT installation base [[HEPPDT_BASE]] ]),
- [HEPPDT_PREFIX=$with_heppdt])
-
-if test -z "${with_heppdt}"; then
- if test -n "$HEPPDT_BASE"; then
- HEPPDT_PREFIX=${HEPPDT_BASE}
- else
- AC_MSG_RESULT(no)
- fi
-fi
-
-if test -e "${HEPPDT_PREFIX}/include/HepPDT/ParticleDataTable.hh"; then
- AC_DEFINE(HAVE_HEPPDT)
- AC_DEFINE(USE_HEPPDT)
- USE_HEPPDT=1
- AC_MSG_RESULT(yes)
-else
- AC_MSG_ERROR(invalid HepPDT installation at ${HEPPDT_PREFIX})
-fi
-
-AC_SUBST(USE_HEPPDT)
-AC_SUBST(HEPPDT_PREFIX)
-
-])
-
-
-dnl
-dnl Macro to setup Doxygen.
-dnl
-AC_DEFUN([SIM_SETUP_DOXYGEN], [
-
- AC_CHECK_PROGS(DOXYGEN, doxygen)
- AC_SUBST(DOXYGEN)
-])
-
-AC_DEFUN([SIM_SETUP_DEF_CPPFLAGS], [
-
-CPPFLAGS="${CPPFLAGS} -Wno-long-long"
-
-])
-
-dnl function to check the OS
-AC_DEFUN(CHECK_OS, [
-
-AC_MSG_CHECKING(for supported OS)
-
-dnl to lowercase
-host_os=`uname -s | tr [A-Z] [a-z]`
-
-supported_os=yes
-
-case "$host_os" in
-
-linux* ) host_os="Linux";;
-cygwin* ) host_os="WIN32";;
-darwin* ) host_os="Darwin";;
-* ) supported_os=no;;
-
-esac
-
-AC_MSG_RESULT([$supported_os])
-
-if test "$supported_os" = "no"; then
- AC_MSG_ERROR( [$host_os is not in the list of supported operating systems] )
-fi
-
-])
-
-AC_DEFUN(SIM_ENABLE_PACKAGE_INFO, [
-
-AC_ARG_ENABLE(slic-debug,
- AC_HELP_STRING([--enable-package-info], [Rewrite include/PackageInfo.hh]))
-
-if test "${enable_package_info}" != "no"; then
- SLIC_ENABLE_PACKAGE_INFO=1
-fi
-
-])
-
-AC_DEFUN(SIM_DEFINE_PACKAGE_VARS, [
-
-PACKAGE_DATE=$(date)
-PACKAGE_INSTITUTION="SLAC"
-PACKAGE_WWW="http://www.lcsim.org/software/slic"
-PACKAGE_FULLNAME="Simulator for the Linear Collider"
-PACKAGE_AUTHORS="Jeremy McCormick"
-
-AC_SUBST(PACKAGE_VERSION)
-AC_SUBST(PACKAGE_AUTHORS)
-AC_SUBST(PACKAGE_FULLNAME)
-AC_SUBST(PACKAGE_NAME)
-AC_SUBST(PACKAGE_INSTITUTION)
-AC_SUBST(PACKAGE_DATE)
-AC_SUBST(PACKAGE_WWW)
-AC_SUBST(PACKAGE_BUGREPORT)
-
-])
-
-dnl Determine which Geant4 Physics Lists are available.
-AC_DEFUN(AC_GEANT4_PHYSLISTS, [
-
-dnl Get a list of physics lists by looking in G4 source code tree.
-G4PHYSLISTS=$(ls $G4INSTALL/source/physics_lists/lists/include/ | grep -v "^G4" | grep -v "HadronPhysics" | grep -v "Special" | grep -v "Cuts" | grep "\.hh" | sed -e 's/\.hh//g')
-
-dnl Create the list of includes and builders.
-G4PHYSLISTSINC="PhysicsListsInc"
-G4PHYSLISTSBUILD="PhysicsListsBuild"
-> $G4PHYSLISTSINC
-> $G4PHYSLISTSBUILD
-for physlist in $(echo $G4PHYSLISTS); do
- echo "#include \"$physlist.hh\"" >> $G4PHYSLISTSINC
- echo "BUILDER( $physlist, \"\" )" >> $G4PHYSLISTSBUILD
-done
-AC_SUBST_FILE([G4PHYSLISTSINC])
-AC_SUBST_FILE([G4PHYSLISTSBUILD])
-])
-
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-dnl Macro to determine if std exceptions should be caught.
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-AC_DEFUN(AC_SLIC_EXCEPTIONS, [
-
-AC_MSG_CHECKING(whether to enable exception handling)
-
-AC_ARG_ENABLE(exceptions,
- AC_HELP_STRING([--enable-exceptions], [yes to enable exception handling; no to disable]))
-
-if test "${enable_package_info}" != "no"; then
- AC_DEFINE(SLIC_CATCH_STD_EXCEPTIONS)
- AC_MSG_RESULT(yes)
-else
- AC_MSG_RESULT(no)
-fi
-
-])
-
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-dnl Macro to select shared libraries. This will turn OFF static lib.
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-
-AC_DEFUN(AC_SLIC_SHARED, [
-
-AC_MSG_CHECKING(whether to build a shared library)
-
-AC_ARG_ENABLE(shared,
- AC_HELP_STRING([--enable-shared], [yes to enable shared lib; no for static]))
-
-if test "${enable_shared}" == "yes"; then
- AC_MSG_RESULT(yes)
- G4LIB_BUILD_SHARED=1
- G4LIB_BUILD_STATIC=
-else
- AC_MSG_RESULT(no)
- G4LIB_BUILD_SHARED=
- G4LIB_BUILD_STATIC=1
-fi
-
-AC_SUBST(G4LIB_BUILD_STATIC)
-AC_SUBST(G4LIB_BUILD_SHARED)
-
-])
-
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-dnl Macro to set the variable which OS uses for locating shared libs at runtime.
-dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-AC_DEFUN(AC_SLIC_SHARED_LIB_VAR, [
-
-AC_MSG_CHECKING(for platform shared library variable)
-
-dnl echo "host_os=$host_os"
-
-host_os_lower=$(echo $host_os | tr '[A-Z]' '[a-z]')
-dnl echo "host_os_lower=$host_os_lower"
-
-case "$host_os_lower" in
- linux* )
- OS_SHARED_LIBS_VAR=LD_LIBRARY_PATH
- ;;
- cygwin* )
- OS_SHARED_LIBS_VAR=PATH
- ;;
- darwin* )
- OS_SHARED_LIBS_VAR=DYLD_LIBRARY_PATH
- ;;
-esac
-
-dnl echo OS_SHARED_LIBS_VAR=$OS_SHARED_LIBS_VAR
-
-AC_MSG_RESULT($OS_SHARED_LIBS_VAR)
-
-AC_SUBST(OS_SHARED_LIBS_VAR)
-
-])
slic
diff -N config.guess
--- config.guess 11 Jul 2011 17:58:02 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,1363 +0,0 @@
-#! /bin/sh
-# Attempt to guess a canonical system name.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002 Free Software Foundation, Inc.
-
-timestamp='2002-09-03'
-
-# This file is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# Originally written by Per Bothner <[log in to unmask]>.
-# Please send patches to <[log in to unmask]>. Submit a context
-# diff and a properly formatted ChangeLog entry.
-#
-# This script attempts to guess a canonical system name similar to
-# config.sub. If it succeeds, it prints the system name on stdout, and
-# exits with 0. Otherwise, it exits with 1.
-#
-# The plan is that this can be called by configure scripts if you
-# don't specify an explicit build system type.
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION]
-
-Output the configuration name of the system \`$me' is run on.
-
-Operation modes:
- -h, --help print this help, then exit
- -t, --time-stamp print date of last modification, then exit
- -v, --version print version number, then exit
-
-Report bugs and patches to <[log in to unmask]>."
-
-version="\
-GNU config.guess ($timestamp)
-
-Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
-Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
- case $1 in
- --time-stamp | --time* | -t )
- echo "$timestamp" ; exit 0 ;;
- --version | -v )
- echo "$version" ; exit 0 ;;
- --help | --h* | -h )
- echo "$usage"; exit 0 ;;
- -- ) # Stop option processing
- shift; break ;;
- - ) # Use stdin as input.
- break ;;
- -* )
- echo "$me: invalid option $1$help" >&2
- exit 1 ;;
- * )
- break ;;
- esac
-done
-
-if test $# != 0; then
- echo "$me: too many arguments$help" >&2
- exit 1
-fi
-
-trap 'exit 1' 1 2 15
-
-# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
-# compiler to aid in system detection is discouraged as it requires
-# temporary files to be created and, as you can see below, it is a
-# headache to deal with in a portable fashion.
-
-# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
-# use `HOST_CC' if defined, but it is deprecated.
-
-# This shell variable is my proudest work .. or something. --bje
-
-set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ;
-(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old)
- || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ;
-dummy=$tmpdir/dummy ;
-files="$dummy.c $dummy.o $dummy.rel $dummy" ;
-trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ;
-case $CC_FOR_BUILD,$HOST_CC,$CC in
- ,,) echo "int x;" > $dummy.c ;
- for c in cc gcc c89 c99 ; do
- if ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; then
- CC_FOR_BUILD="$c"; break ;
- fi ;
- done ;
- rm -f $files ;
- if test x"$CC_FOR_BUILD" = x ; then
- CC_FOR_BUILD=no_compiler_found ;
- fi
- ;;
- ,,*) CC_FOR_BUILD=$CC ;;
- ,*,*) CC_FOR_BUILD=$HOST_CC ;;
-esac ;
-unset files'
-
-# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
-# ([log in to unmask] 1994-08-24)
-if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
- PATH=$PATH:/.attbin ; export PATH
-fi
-
-UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
-UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
-UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
-UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
-
-# Note: order is significant - the case branches are not exclusive.
-
-case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
- *:NetBSD:*:*)
- # NetBSD (nbsd) targets should (where applicable) match one or
- # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
- # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
- # switched to ELF, *-*-netbsd* would select the old
- # object file format. This provides both forward
- # compatibility and a consistent mechanism for selecting the
- # object file format.
- #
- # Note: NetBSD doesn't particularly care about the vendor
- # portion of the name. We always set it to "unknown".
- sysctl="sysctl -n hw.machine_arch"
- UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
- /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
- case "${UNAME_MACHINE_ARCH}" in
- armeb) machine=armeb-unknown ;;
- arm*) machine=arm-unknown ;;
- sh3el) machine=shl-unknown ;;
- sh3eb) machine=sh-unknown ;;
- *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
- esac
- # The Operating System including object format, if it has switched
- # to ELF recently, or will in the future.
- case "${UNAME_MACHINE_ARCH}" in
- arm*|i386|m68k|ns32k|sh3*|sparc|vax)
- eval $set_cc_for_build
- if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
- | grep __ELF__ >/dev/null
- then
- # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
- # Return netbsd for either. FIX?
- os=netbsd
- else
- os=netbsdelf
- fi
- ;;
- *)
- os=netbsd
- ;;
- esac
- # The OS release
- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
- # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
- # contains redundant information, the shorter form:
- # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
- echo "${machine}-${os}${release}"
- exit 0 ;;
- amiga:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- arc:OpenBSD:*:*)
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- hp300:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mac68k:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- macppc:OpenBSD:*:*)
- echo powerpc-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mvme68k:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mvme88k:OpenBSD:*:*)
- echo m88k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mvmeppc:OpenBSD:*:*)
- echo powerpc-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- pmax:OpenBSD:*:*)
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- sgi:OpenBSD:*:*)
- echo mipseb-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- sun3:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- wgrisc:OpenBSD:*:*)
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- *:OpenBSD:*:*)
- echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- alpha:OSF1:*:*)
- if test $UNAME_RELEASE = "V4.0"; then
- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
- fi
- # A Vn.n version is a released version.
- # A Tn.n version is a released field test version.
- # A Xn.n version is an unreleased experimental baselevel.
- # 1.2 uses "1.2" for uname -r.
- eval $set_cc_for_build
- cat <<EOF >$dummy.s
- .data
-\$Lformat:
- .byte 37,100,45,37,120,10,0 # "%d-%x\n"
-
- .text
- .globl main
- .align 4
- .ent main
-main:
- .frame \$30,16,\$26,0
- ldgp \$29,0(\$27)
- .prologue 1
- .long 0x47e03d80 # implver \$0
- lda \$2,-1
- .long 0x47e20c21 # amask \$2,\$1
- lda \$16,\$Lformat
- mov \$0,\$17
- not \$1,\$18
- jsr \$26,printf
- ldgp \$29,0(\$26)
- mov 0,\$16
- jsr \$26,exit
- .end main
-EOF
- $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
- if test "$?" = 0 ; then
- case `$dummy` in
- 0-0)
- UNAME_MACHINE="alpha"
- ;;
- 1-0)
- UNAME_MACHINE="alphaev5"
- ;;
- 1-1)
- UNAME_MACHINE="alphaev56"
- ;;
- 1-101)
- UNAME_MACHINE="alphapca56"
- ;;
- 2-303)
- UNAME_MACHINE="alphaev6"
- ;;
- 2-307)
- UNAME_MACHINE="alphaev67"
- ;;
- 2-1307)
- UNAME_MACHINE="alphaev68"
- ;;
- 3-1307)
- UNAME_MACHINE="alphaev7"
- ;;
- esac
- fi
- rm -f $dummy.s $dummy && rmdir $tmpdir
- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- exit 0 ;;
- Alpha\ *:Windows_NT*:*)
- # How do we know it's Interix rather than the generic POSIX subsystem?
- # Should we change UNAME_MACHINE based on the output of uname instead
- # of the specific Alpha model?
- echo alpha-pc-interix
- exit 0 ;;
- 21064:Windows_NT:50:3)
- echo alpha-dec-winnt3.5
- exit 0 ;;
- Amiga*:UNIX_System_V:4.0:*)
- echo m68k-unknown-sysv4
- exit 0;;
- *:[Aa]miga[Oo][Ss]:*:*)
- echo ${UNAME_MACHINE}-unknown-amigaos
- exit 0 ;;
- *:[Mm]orph[Oo][Ss]:*:*)
- echo ${UNAME_MACHINE}-unknown-morphos
- exit 0 ;;
- *:OS/390:*:*)
- echo i370-ibm-openedition
- exit 0 ;;
- arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
- echo arm-acorn-riscix${UNAME_RELEASE}
- exit 0;;
- SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
- echo hppa1.1-hitachi-hiuxmpp
- exit 0;;
- Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
- # [log in to unmask] (Earle F. Ake) contributed MIS and NILE.
- if test "`(/bin/universe) 2>/dev/null`" = att ; then
- echo pyramid-pyramid-sysv3
- else
- echo pyramid-pyramid-bsd
- fi
- exit 0 ;;
- NILE*:*:*:dcosx)
- echo pyramid-pyramid-svr4
- exit 0 ;;
- DRS?6000:UNIX_SV:4.2*:7*)
- case `/usr/bin/uname -p` in
- sparc) echo sparc-icl-nx7 && exit 0 ;;
- esac ;;
- sun4H:SunOS:5.*:*)
- echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
- sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
- echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
- i86pc:SunOS:5.*:*)
- echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
- sun4*:SunOS:6*:*)
- # According to config.sub, this is the proper way to canonicalize
- # SunOS6. Hard to guess exactly what SunOS6 will be like, but
- # it's likely to be more like Solaris than SunOS4.
- echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
- sun4*:SunOS:*:*)
- case "`/usr/bin/arch -k`" in
- Series*|S4*)
- UNAME_RELEASE=`uname -v`
- ;;
- esac
- # Japanese Language versions have a version number like `4.1.3-JL'.
- echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
- exit 0 ;;
- sun3*:SunOS:*:*)
- echo m68k-sun-sunos${UNAME_RELEASE}
- exit 0 ;;
- sun*:*:4.2BSD:*)
- UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
- test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
- case "`/bin/arch`" in
- sun3)
- echo m68k-sun-sunos${UNAME_RELEASE}
- ;;
- sun4)
- echo sparc-sun-sunos${UNAME_RELEASE}
- ;;
- esac
- exit 0 ;;
- aushp:SunOS:*:*)
- echo sparc-auspex-sunos${UNAME_RELEASE}
- exit 0 ;;
- # The situation for MiNT is a little confusing. The machine name
- # can be virtually everything (everything which is not
- # "atarist" or "atariste" at least should have a processor
- # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
- # to the lowercase version "mint" (or "freemint"). Finally
- # the system name "TOS" denotes a system which is actually not
- # MiNT. But MiNT is downward compatible to TOS, so this should
- # be no problem.
- atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
- exit 0 ;;
- atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
- exit 0 ;;
- *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
- exit 0 ;;
- milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
- echo m68k-milan-mint${UNAME_RELEASE}
- exit 0 ;;
- hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
- echo m68k-hades-mint${UNAME_RELEASE}
- exit 0 ;;
- *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
- echo m68k-unknown-mint${UNAME_RELEASE}
- exit 0 ;;
- powerpc:machten:*:*)
- echo powerpc-apple-machten${UNAME_RELEASE}
- exit 0 ;;
- RISC*:Mach:*:*)
- echo mips-dec-mach_bsd4.3
- exit 0 ;;
- RISC*:ULTRIX:*:*)
- echo mips-dec-ultrix${UNAME_RELEASE}
- exit 0 ;;
- VAX*:ULTRIX*:*:*)
- echo vax-dec-ultrix${UNAME_RELEASE}
- exit 0 ;;
- 2020:CLIX:*:* | 2430:CLIX:*:*)
- echo clipper-intergraph-clix${UNAME_RELEASE}
- exit 0 ;;
- mips:*:*:UMIPS | mips:*:*:RISCos)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
-#ifdef __cplusplus
-#include <stdio.h> /* for printf() prototype */
- int main (int argc, char *argv[]) {
-#else
- int main (argc, argv) int argc; char *argv[]; {
-#endif
- #if defined (host_mips) && defined (MIPSEB)
- #if defined (SYSTYPE_SYSV)
- printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
- #endif
- #if defined (SYSTYPE_SVR4)
- printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
- #endif
- #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
- printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
- #endif
- #endif
- exit (-1);
- }
-EOF
- $CC_FOR_BUILD $dummy.c -o $dummy \
- && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
- && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
- rm -f $dummy.c $dummy && rmdir $tmpdir
- echo mips-mips-riscos${UNAME_RELEASE}
- exit 0 ;;
- Motorola:PowerMAX_OS:*:*)
- echo powerpc-motorola-powermax
- exit 0 ;;
- Motorola:*:4.3:PL8-*)
- echo powerpc-harris-powermax
- exit 0 ;;
- Night_Hawk:*:*:PowerMAX_OS)
- echo powerpc-harris-powermax
- exit 0 ;;
- Night_Hawk:Power_UNIX:*:*)
- echo powerpc-harris-powerunix
- exit 0 ;;
- m88k:CX/UX:7*:*)
- echo m88k-harris-cxux7
- exit 0 ;;
- m88k:*:4*:R4*)
- echo m88k-motorola-sysv4
- exit 0 ;;
- m88k:*:3*:R3*)
- echo m88k-motorola-sysv3
- exit 0 ;;
- AViiON:dgux:*:*)
- # DG/UX returns AViiON for all architectures
- UNAME_PROCESSOR=`/usr/bin/uname -p`
- if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
- then
- if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
- [ ${TARGET_BINARY_INTERFACE}x = x ]
- then
- echo m88k-dg-dgux${UNAME_RELEASE}
- else
- echo m88k-dg-dguxbcs${UNAME_RELEASE}
- fi
- else
- echo i586-dg-dgux${UNAME_RELEASE}
- fi
- exit 0 ;;
- M88*:DolphinOS:*:*) # DolphinOS (SVR3)
- echo m88k-dolphin-sysv3
- exit 0 ;;
- M88*:*:R3*:*)
- # Delta 88k system running SVR3
- echo m88k-motorola-sysv3
- exit 0 ;;
- XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
- echo m88k-tektronix-sysv3
- exit 0 ;;
- Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
- echo m68k-tektronix-bsd
- exit 0 ;;
- *:IRIX*:*:*)
- echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
- exit 0 ;;
- ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
- echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
- exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
- i*86:AIX:*:*)
- echo i386-ibm-aix
- exit 0 ;;
- ia64:AIX:*:*)
- if [ -x /usr/bin/oslevel ] ; then
- IBM_REV=`/usr/bin/oslevel`
- else
- IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
- fi
- echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
- exit 0 ;;
- *:AIX:2:3)
- if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <sys/systemcfg.h>
-
- main()
- {
- if (!__power_pc())
- exit(1);
- puts("powerpc-ibm-aix3.2.5");
- exit(0);
- }
-EOF
- $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
- rm -f $dummy.c $dummy && rmdir $tmpdir
- echo rs6000-ibm-aix3.2.5
- elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
- echo rs6000-ibm-aix3.2.4
- else
- echo rs6000-ibm-aix3.2
- fi
- exit 0 ;;
- *:AIX:*:[45])
- IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
- if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
- IBM_ARCH=rs6000
- else
- IBM_ARCH=powerpc
- fi
- if [ -x /usr/bin/oslevel ] ; then
- IBM_REV=`/usr/bin/oslevel`
- else
- IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
- fi
- echo ${IBM_ARCH}-ibm-aix${IBM_REV}
- exit 0 ;;
- *:AIX:*:*)
- echo rs6000-ibm-aix
- exit 0 ;;
- ibmrt:4.4BSD:*|romp-ibm:BSD:*)
- echo romp-ibm-bsd4.4
- exit 0 ;;
- ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
- echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
- exit 0 ;; # report: romp-ibm BSD 4.3
- *:BOSX:*:*)
- echo rs6000-bull-bosx
- exit 0 ;;
- DPX/2?00:B.O.S.:*:*)
- echo m68k-bull-sysv3
- exit 0 ;;
- 9000/[34]??:4.3bsd:1.*:*)
- echo m68k-hp-bsd
- exit 0 ;;
- hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
- echo m68k-hp-bsd4.4
- exit 0 ;;
- 9000/[34678]??:HP-UX:*:*)
- HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
- case "${UNAME_MACHINE}" in
- 9000/31? ) HP_ARCH=m68000 ;;
- 9000/[34]?? ) HP_ARCH=m68k ;;
- 9000/[678][0-9][0-9])
- if [ -x /usr/bin/getconf ]; then
- sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
- case "${sc_cpu_version}" in
- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
- 532) # CPU_PA_RISC2_0
- case "${sc_kernel_bits}" in
- 32) HP_ARCH="hppa2.0n" ;;
- 64) HP_ARCH="hppa2.0w" ;;
- '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
- esac ;;
- esac
- fi
- if [ "${HP_ARCH}" = "" ]; then
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
-
- #define _HPUX_SOURCE
- #include <stdlib.h>
- #include <unistd.h>
-
- int main ()
- {
- #if defined(_SC_KERNEL_BITS)
- long bits = sysconf(_SC_KERNEL_BITS);
- #endif
- long cpu = sysconf (_SC_CPU_VERSION);
-
- switch (cpu)
- {
- case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
- case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
- case CPU_PA_RISC2_0:
- #if defined(_SC_KERNEL_BITS)
- switch (bits)
- {
- case 64: puts ("hppa2.0w"); break;
- case 32: puts ("hppa2.0n"); break;
- default: puts ("hppa2.0"); break;
- } break;
- #else /* !defined(_SC_KERNEL_BITS) */
- puts ("hppa2.0"); break;
- #endif
- default: puts ("hppa1.0"); break;
- }
- exit (0);
- }
-EOF
- (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy`
- if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
- rm -f $dummy.c $dummy && rmdir $tmpdir
- fi ;;
- esac
- echo ${HP_ARCH}-hp-hpux${HPUX_REV}
- exit 0 ;;
- ia64:HP-UX:*:*)
- HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
- echo ia64-hp-hpux${HPUX_REV}
- exit 0 ;;
- 3050*:HI-UX:*:*)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <unistd.h>
- int
- main ()
- {
- long cpu = sysconf (_SC_CPU_VERSION);
- /* The order matters, because CPU_IS_HP_MC68K erroneously returns
- true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
- results, however. */
- if (CPU_IS_PA_RISC (cpu))
- {
- switch (cpu)
- {
- case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
- case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
- case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
- default: puts ("hppa-hitachi-hiuxwe2"); break;
- }
- }
- else if (CPU_IS_HP_MC68K (cpu))
- puts ("m68k-hitachi-hiuxwe2");
- else puts ("unknown-hitachi-hiuxwe2");
- exit (0);
- }
-EOF
- $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
- rm -f $dummy.c $dummy && rmdir $tmpdir
- echo unknown-hitachi-hiuxwe2
- exit 0 ;;
- 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
- echo hppa1.1-hp-bsd
- exit 0 ;;
- 9000/8??:4.3bsd:*:*)
- echo hppa1.0-hp-bsd
- exit 0 ;;
- *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
- echo hppa1.0-hp-mpeix
- exit 0 ;;
- hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
- echo hppa1.1-hp-osf
- exit 0 ;;
- hp8??:OSF1:*:*)
- echo hppa1.0-hp-osf
- exit 0 ;;
- i*86:OSF1:*:*)
- if [ -x /usr/sbin/sysversion ] ; then
- echo ${UNAME_MACHINE}-unknown-osf1mk
- else
- echo ${UNAME_MACHINE}-unknown-osf1
- fi
- exit 0 ;;
- parisc*:Lites*:*:*)
- echo hppa1.1-hp-lites
- exit 0 ;;
- C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
- echo c1-convex-bsd
- exit 0 ;;
- C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
- if getsysinfo -f scalar_acc
- then echo c32-convex-bsd
- else echo c2-convex-bsd
- fi
- exit 0 ;;
- C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
- echo c34-convex-bsd
- exit 0 ;;
- C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
- echo c38-convex-bsd
- exit 0 ;;
- C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
- echo c4-convex-bsd
- exit 0 ;;
- CRAY*Y-MP:*:*:*)
- echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- CRAY*[A-Z]90:*:*:*)
- echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
- | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
- -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
- -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- CRAY*TS:*:*:*)
- echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- CRAY*T3D:*:*:*)
- echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- CRAY*T3E:*:*:*)
- echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- CRAY*SV1:*:*:*)
- echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
- FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
- exit 0 ;;
- i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
- echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
- exit 0 ;;
- sparc*:BSD/OS:*:*)
- echo sparc-unknown-bsdi${UNAME_RELEASE}
- exit 0 ;;
- *:BSD/OS:*:*)
- echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
- exit 0 ;;
- *:FreeBSD:*:*)
- # Determine whether the default compiler uses glibc.
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <features.h>
- #if __GLIBC__ >= 2
- LIBC=gnu
- #else
- LIBC=
- #endif
-EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
- rm -f $dummy.c && rmdir $tmpdir
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
- exit 0 ;;
- i*:CYGWIN*:*)
- echo ${UNAME_MACHINE}-pc-cygwin
- exit 0 ;;
- i*:MINGW*:*)
- echo ${UNAME_MACHINE}-pc-mingw32
- exit 0 ;;
- i*:PW*:*)
- echo ${UNAME_MACHINE}-pc-pw32
- exit 0 ;;
- x86:Interix*:3*)
- echo i386-pc-interix3
- exit 0 ;;
- i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
- # How do we know it's Interix rather than the generic POSIX subsystem?
- # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
- # UNAME_MACHINE based on the output of uname instead of i386?
- echo i386-pc-interix
- exit 0 ;;
- i*:UWIN*:*)
- echo ${UNAME_MACHINE}-pc-uwin
- exit 0 ;;
- p*:CYGWIN*:*)
- echo powerpcle-unknown-cygwin
- exit 0 ;;
- prep*:SunOS:5.*:*)
- echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
- *:GNU:*:*)
- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
- exit 0 ;;
- i*86:Minix:*:*)
- echo ${UNAME_MACHINE}-pc-minix
- exit 0 ;;
- arm*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
- ia64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
- m68*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
- mips:Linux:*:*)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #undef CPU
- #undef mips
- #undef mipsel
- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
- CPU=mipsel
- #else
- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
- CPU=mips
- #else
- CPU=
- #endif
- #endif
-EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
- rm -f $dummy.c && rmdir $tmpdir
- test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
- ;;
- ppc:Linux:*:*)
- echo powerpc-unknown-linux-gnu
- exit 0 ;;
- ppc64:Linux:*:*)
- echo powerpc64-unknown-linux-gnu
- exit 0 ;;
- alpha:Linux:*:*)
- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
- EV5) UNAME_MACHINE=alphaev5 ;;
- EV56) UNAME_MACHINE=alphaev56 ;;
- PCA56) UNAME_MACHINE=alphapca56 ;;
- PCA57) UNAME_MACHINE=alphapca56 ;;
- EV6) UNAME_MACHINE=alphaev6 ;;
- EV67) UNAME_MACHINE=alphaev67 ;;
- EV68*) UNAME_MACHINE=alphaev68 ;;
- esac
- objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
- exit 0 ;;
- parisc:Linux:*:* | hppa:Linux:*:*)
- # Look for CPU level
- case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
- PA7*) echo hppa1.1-unknown-linux-gnu ;;
- PA8*) echo hppa2.0-unknown-linux-gnu ;;
- *) echo hppa-unknown-linux-gnu ;;
- esac
- exit 0 ;;
- parisc64:Linux:*:* | hppa64:Linux:*:*)
- echo hppa64-unknown-linux-gnu
- exit 0 ;;
- s390:Linux:*:* | s390x:Linux:*:*)
- echo ${UNAME_MACHINE}-ibm-linux
- exit 0 ;;
- sh*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
- sparc:Linux:*:* | sparc64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
- x86_64:Linux:*:*)
- echo x86_64-unknown-linux-gnu
- exit 0 ;;
- i*86:Linux:*:*)
- # The BFD linker knows what the default object file format is, so
- # first see if it will tell us. cd to the root directory to prevent
- # problems with other programs or directories called `ld' in the path.
- # Set LC_ALL=C to ensure ld outputs messages in English.
- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
- | sed -ne '/supported targets:/!d
- s/[ ][ ]*/ /g
- s/.*supported targets: *//
- s/ .*//
- p'`
- case "$ld_supported_targets" in
- elf32-i386)
- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
- ;;
- a.out-i386-linux)
- echo "${UNAME_MACHINE}-pc-linux-gnuaout"
- exit 0 ;;
- coff-i386)
- echo "${UNAME_MACHINE}-pc-linux-gnucoff"
- exit 0 ;;
- "")
- # Either a pre-BFD a.out linker (linux-gnuoldld) or
- # one that does not give us useful --help.
- echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
- exit 0 ;;
- esac
- # Determine whether the default compiler is a.out or elf
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <features.h>
- #ifdef __ELF__
- # ifdef __GLIBC__
- # if __GLIBC__ >= 2
- LIBC=gnu
- # else
- LIBC=gnulibc1
- # endif
- # else
- LIBC=gnulibc1
- # endif
- #else
- #ifdef __INTEL_COMPILER
- LIBC=gnu
- #else
- LIBC=gnuaout
- #endif
- #endif
-EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
- rm -f $dummy.c && rmdir $tmpdir
- test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
- test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
- ;;
- i*86:DYNIX/ptx:4*:*)
- # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
- # earlier versions are messed up and put the nodename in both
- # sysname and nodename.
- echo i386-sequent-sysv4
- exit 0 ;;
- i*86:UNIX_SV:4.2MP:2.*)
- # Unixware is an offshoot of SVR4, but it has its own version
- # number series starting with 2...
- # I am not positive that other SVR4 systems won't match this,
- # I just have to hope. -- rms.
- # Use sysv4.2uw... so that sysv4* matches it.
- echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
- exit 0 ;;
- i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
- UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
- if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
- echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
- else
- echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
- fi
- exit 0 ;;
- i*86:*:5:[78]*)
- case `/bin/uname -X | grep "^Machine"` in
- *486*) UNAME_MACHINE=i486 ;;
- *Pentium) UNAME_MACHINE=i586 ;;
- *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
- esac
- echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
- exit 0 ;;
- i*86:*:3.2:*)
- if test -f /usr/options/cb.name; then
- UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
- echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
- elif /bin/uname -X 2>/dev/null >/dev/null ; then
- UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
- (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
- (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
- && UNAME_MACHINE=i586
- (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
- && UNAME_MACHINE=i686
- (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
- && UNAME_MACHINE=i686
- echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
- else
- echo ${UNAME_MACHINE}-pc-sysv32
- fi
- exit 0 ;;
- i*86:*DOS:*:*)
- echo ${UNAME_MACHINE}-pc-msdosdjgpp
- exit 0 ;;
- pc:*:*:*)
- # Left here for compatibility:
- # uname -m prints for DJGPP always 'pc', but it prints nothing about
- # the processor, so we play safe by assuming i386.
- echo i386-pc-msdosdjgpp
- exit 0 ;;
- Intel:Mach:3*:*)
- echo i386-pc-mach3
- exit 0 ;;
- paragon:*:*:*)
- echo i860-intel-osf1
- exit 0 ;;
- i860:*:4.*:*) # i860-SVR4
- if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
- echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
- else # Add other i860-SVR4 vendors below as they are discovered.
- echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
- fi
- exit 0 ;;
- mini*:CTIX:SYS*5:*)
- # "miniframe"
- echo m68010-convergent-sysv
- exit 0 ;;
- mc68k:UNIX:SYSTEM5:3.51m)
- echo m68k-convergent-sysv
[truncated at 1000 lines; 367 more skipped]
slic
diff -N config.sub
--- config.sub 11 Jul 2011 17:58:03 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,1470 +0,0 @@
-#! /bin/sh
-# Configuration validation subroutine script.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002 Free Software Foundation, Inc.
-
-timestamp='2002-09-05'
-
-# This file is (in principle) common to ALL GNU software.
-# The presence of a machine in this file suggests that SOME GNU software
-# can handle that machine. It does not imply ALL GNU software can.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# Please send patches to <[log in to unmask]>. Submit a context
-# diff and a properly formatted ChangeLog entry.
-#
-# Configuration subroutine to validate and canonicalize a configuration type.
-# Supply the specified configuration type as an argument.
-# If it is invalid, we print an error message on stderr and exit with code 1.
-# Otherwise, we print the canonical config type on stdout and succeed.
-
-# This file is supposed to be the same for all GNU packages
-# and recognize all the CPU types, system types and aliases
-# that are meaningful with *any* GNU software.
-# Each package is responsible for reporting which valid configurations
-# it does not support. The user should be able to distinguish
-# a failure to support a valid configuration from a meaningless
-# configuration.
-
-# The goal of this file is to map all the various variations of a given
-# machine specification into a single specification in the form:
-# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
-# or in some cases, the newer four-part form:
-# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
-# It is wrong to echo any other type of specification.
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION] CPU-MFR-OPSYS
- $0 [OPTION] ALIAS
-
-Canonicalize a configuration name.
-
-Operation modes:
- -h, --help print this help, then exit
- -t, --time-stamp print date of last modification, then exit
- -v, --version print version number, then exit
-
-Report bugs and patches to <[log in to unmask]>."
-
-version="\
-GNU config.sub ($timestamp)
-
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
-Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
- case $1 in
- --time-stamp | --time* | -t )
- echo "$timestamp" ; exit 0 ;;
- --version | -v )
- echo "$version" ; exit 0 ;;
- --help | --h* | -h )
- echo "$usage"; exit 0 ;;
- -- ) # Stop option processing
- shift; break ;;
- - ) # Use stdin as input.
- break ;;
- -* )
- echo "$me: invalid option $1$help"
- exit 1 ;;
-
- *local*)
- # First pass through any local machine types.
- echo $1
- exit 0;;
-
- * )
- break ;;
- esac
-done
-
-case $# in
- 0) echo "$me: missing argument$help" >&2
- exit 1;;
- 1) ;;
- *) echo "$me: too many arguments$help" >&2
- exit 1;;
-esac
-
-# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
-# Here we must recognize all the valid KERNEL-OS combinations.
-maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
-case $maybe_os in
- nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
- os=-$maybe_os
- basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
- ;;
- *)
- basic_machine=`echo $1 | sed 's/-[^-]*$//'`
- if [ $basic_machine != $1 ]
- then os=`echo $1 | sed 's/.*-/-/'`
- else os=; fi
- ;;
-esac
-
-### Let's recognize common machines as not being operating systems so
-### that things like config.sub decstation-3100 work. We also
-### recognize some manufacturers as not being operating systems, so we
-### can provide default operating systems below.
-case $os in
- -sun*os*)
- # Prevent following clause from handling this invalid input.
- ;;
- -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
- -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
- -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
- -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
- -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
- -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
- -apple | -axis)
- os=
- basic_machine=$1
- ;;
- -sim | -cisco | -oki | -wec | -winbond)
- os=
- basic_machine=$1
- ;;
- -scout)
- ;;
- -wrs)
- os=-vxworks
- basic_machine=$1
- ;;
- -chorusos*)
- os=-chorusos
- basic_machine=$1
- ;;
- -chorusrdb)
- os=-chorusrdb
- basic_machine=$1
- ;;
- -hiux*)
- os=-hiuxwe2
- ;;
- -sco5)
- os=-sco3.2v5
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco4)
- os=-sco3.2v4
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco3.2.[4-9]*)
- os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco3.2v[4-9]*)
- # Don't forget version if it is 3.2v4 or newer.
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco*)
- os=-sco3.2v2
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -udk*)
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -isc)
- os=-isc2.2
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -clix*)
- basic_machine=clipper-intergraph
- ;;
- -isc*)
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -lynx*)
- os=-lynxos
- ;;
- -ptx*)
- basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
- ;;
- -windowsnt*)
- os=`echo $os | sed -e 's/windowsnt/winnt/'`
- ;;
- -psos*)
- os=-psos
- ;;
- -mint | -mint[0-9]*)
- basic_machine=m68k-atari
- os=-mint
- ;;
-esac
-
-# Decode aliases for certain CPU-COMPANY combinations.
-case $basic_machine in
- # Recognize the basic CPU types without company name.
- # Some are omitted here because they have special meanings below.
- 1750a | 580 \
- | a29k \
- | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
- | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
- | clipper \
- | d10v | d30v | dlx | dsp16xx \
- | fr30 | frv \
- | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
- | i370 | i860 | i960 | ia64 \
- | ip2k \
- | m32r | m68000 | m68k | m88k | mcore \
- | mips | mipsbe | mipseb | mipsel | mipsle \
- | mips16 \
- | mips64 | mips64el \
- | mips64vr | mips64vrel \
- | mips64orion | mips64orionel \
- | mips64vr4100 | mips64vr4100el \
- | mips64vr4300 | mips64vr4300el \
- | mips64vr5000 | mips64vr5000el \
- | mipsisa32 | mipsisa32el \
- | mipsisa64 | mipsisa64el \
- | mipsisa64sb1 | mipsisa64sb1el \
- | mipsisa64sr71k | mipsisa64sr71kel \
- | mipstx39 | mipstx39el \
- | mn10200 | mn10300 \
- | ns16k | ns32k \
- | openrisc | or32 \
- | pdp10 | pdp11 | pj | pjl \
- | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
- | pyramid \
- | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
- | sh64 | sh64le \
- | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
- | strongarm \
- | tahoe | thumb | tic80 | tron \
- | v850 | v850e \
- | we32k \
- | x86 | xscale | xstormy16 | xtensa \
- | z8k)
- basic_machine=$basic_machine-unknown
- ;;
- m6811 | m68hc11 | m6812 | m68hc12)
- # Motorola 68HC11/12.
- basic_machine=$basic_machine-unknown
- os=-none
- ;;
- m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
- ;;
-
- # We use `pc' rather than `unknown'
- # because (1) that's what they normally are, and
- # (2) the word "unknown" tends to confuse beginning users.
- i*86 | x86_64)
- basic_machine=$basic_machine-pc
- ;;
- # Object if more than one company name word.
- *-*-*)
- echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
- exit 1
- ;;
- # Recognize the basic CPU types with company name.
- 580-* \
- | a29k-* \
- | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
- | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
- | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
- | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
- | avr-* \
- | bs2000-* \
- | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \
- | clipper-* | cydra-* \
- | d10v-* | d30v-* | dlx-* \
- | elxsi-* \
- | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
- | h8300-* | h8500-* \
- | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
- | i*86-* | i860-* | i960-* | ia64-* \
- | ip2k-* \
- | m32r-* \
- | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
- | m88110-* | m88k-* | mcore-* \
- | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
- | mips16-* \
- | mips64-* | mips64el-* \
- | mips64vr-* | mips64vrel-* \
- | mips64orion-* | mips64orionel-* \
- | mips64vr4100-* | mips64vr4100el-* \
- | mips64vr4300-* | mips64vr4300el-* \
- | mips64vr5000-* | mips64vr5000el-* \
- | mipsisa32-* | mipsisa32el-* \
- | mipsisa64-* | mipsisa64el-* \
- | mipsisa64sb1-* | mipsisa64sb1el-* \
- | mipsisa64sr71k-* | mipsisa64sr71kel-* \
- | mipstx39 | mipstx39el \
- | none-* | np1-* | ns16k-* | ns32k-* \
- | orion-* \
- | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
- | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
- | pyramid-* \
- | romp-* | rs6000-* \
- | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
- | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
- | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
- | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
- | tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \
- | v850-* | v850e-* | vax-* \
- | we32k-* \
- | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
- | xtensa-* \
- | ymp-* \
- | z8k-*)
- ;;
- # Recognize the various machine names and aliases which stand
- # for a CPU type and a company and sometimes even an OS.
- 386bsd)
- basic_machine=i386-unknown
- os=-bsd
- ;;
- 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
- basic_machine=m68000-att
- ;;
- 3b*)
- basic_machine=we32k-att
- ;;
- a29khif)
- basic_machine=a29k-amd
- os=-udi
- ;;
- adobe68k)
- basic_machine=m68010-adobe
- os=-scout
- ;;
- alliant | fx80)
- basic_machine=fx80-alliant
- ;;
- altos | altos3068)
- basic_machine=m68k-altos
- ;;
- am29k)
- basic_machine=a29k-none
- os=-bsd
- ;;
- amdahl)
- basic_machine=580-amdahl
- os=-sysv
- ;;
- amiga | amiga-*)
- basic_machine=m68k-unknown
- ;;
- amigaos | amigados)
- basic_machine=m68k-unknown
- os=-amigaos
- ;;
- amigaunix | amix)
- basic_machine=m68k-unknown
- os=-sysv4
- ;;
- apollo68)
- basic_machine=m68k-apollo
- os=-sysv
- ;;
- apollo68bsd)
- basic_machine=m68k-apollo
- os=-bsd
- ;;
- aux)
- basic_machine=m68k-apple
- os=-aux
- ;;
- balance)
- basic_machine=ns32k-sequent
- os=-dynix
- ;;
- c90)
- basic_machine=c90-cray
- os=-unicos
- ;;
- convex-c1)
- basic_machine=c1-convex
- os=-bsd
- ;;
- convex-c2)
- basic_machine=c2-convex
- os=-bsd
- ;;
- convex-c32)
- basic_machine=c32-convex
- os=-bsd
- ;;
- convex-c34)
- basic_machine=c34-convex
- os=-bsd
- ;;
- convex-c38)
- basic_machine=c38-convex
- os=-bsd
- ;;
- cray | j90)
- basic_machine=j90-cray
- os=-unicos
- ;;
- crds | unos)
- basic_machine=m68k-crds
- ;;
- cris | cris-* | etrax*)
- basic_machine=cris-axis
- ;;
- da30 | da30-*)
- basic_machine=m68k-da30
- ;;
- decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
- basic_machine=mips-dec
- ;;
- decsystem10* | dec10*)
- basic_machine=pdp10-dec
- os=-tops10
- ;;
- decsystem20* | dec20*)
- basic_machine=pdp10-dec
- os=-tops20
- ;;
- delta | 3300 | motorola-3300 | motorola-delta \
- | 3300-motorola | delta-motorola)
- basic_machine=m68k-motorola
- ;;
- delta88)
- basic_machine=m88k-motorola
- os=-sysv3
- ;;
- dpx20 | dpx20-*)
- basic_machine=rs6000-bull
- os=-bosx
- ;;
- dpx2* | dpx2*-bull)
- basic_machine=m68k-bull
- os=-sysv3
- ;;
- ebmon29k)
- basic_machine=a29k-amd
- os=-ebmon
- ;;
- elxsi)
- basic_machine=elxsi-elxsi
- os=-bsd
- ;;
- encore | umax | mmax)
- basic_machine=ns32k-encore
- ;;
- es1800 | OSE68k | ose68k | ose | OSE)
- basic_machine=m68k-ericsson
- os=-ose
- ;;
- fx2800)
- basic_machine=i860-alliant
- ;;
- genix)
- basic_machine=ns32k-ns
- ;;
- gmicro)
- basic_machine=tron-gmicro
- os=-sysv
- ;;
- go32)
- basic_machine=i386-pc
- os=-go32
- ;;
- h3050r* | hiux*)
- basic_machine=hppa1.1-hitachi
- os=-hiuxwe2
- ;;
- h8300hms)
- basic_machine=h8300-hitachi
- os=-hms
- ;;
- h8300xray)
- basic_machine=h8300-hitachi
- os=-xray
- ;;
- h8500hms)
- basic_machine=h8500-hitachi
- os=-hms
- ;;
- harris)
- basic_machine=m88k-harris
- os=-sysv3
- ;;
- hp300-*)
- basic_machine=m68k-hp
- ;;
- hp300bsd)
- basic_machine=m68k-hp
- os=-bsd
- ;;
- hp300hpux)
- basic_machine=m68k-hp
- os=-hpux
- ;;
- hp3k9[0-9][0-9] | hp9[0-9][0-9])
- basic_machine=hppa1.0-hp
- ;;
- hp9k2[0-9][0-9] | hp9k31[0-9])
- basic_machine=m68000-hp
- ;;
- hp9k3[2-9][0-9])
- basic_machine=m68k-hp
- ;;
- hp9k6[0-9][0-9] | hp6[0-9][0-9])
- basic_machine=hppa1.0-hp
- ;;
- hp9k7[0-79][0-9] | hp7[0-79][0-9])
- basic_machine=hppa1.1-hp
- ;;
- hp9k78[0-9] | hp78[0-9])
- # FIXME: really hppa2.0-hp
- basic_machine=hppa1.1-hp
- ;;
- hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
- # FIXME: really hppa2.0-hp
- basic_machine=hppa1.1-hp
- ;;
- hp9k8[0-9][13679] | hp8[0-9][13679])
- basic_machine=hppa1.1-hp
- ;;
- hp9k8[0-9][0-9] | hp8[0-9][0-9])
- basic_machine=hppa1.0-hp
- ;;
- hppa-next)
- os=-nextstep3
- ;;
- hppaosf)
- basic_machine=hppa1.1-hp
- os=-osf
- ;;
- hppro)
- basic_machine=hppa1.1-hp
- os=-proelf
- ;;
- i370-ibm* | ibm*)
- basic_machine=i370-ibm
- ;;
-# I'm not sure what "Sysv32" means. Should this be sysv3.2?
- i*86v32)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv32
- ;;
- i*86v4*)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv4
- ;;
- i*86v)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv
- ;;
- i*86sol2)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-solaris2
- ;;
- i386mach)
- basic_machine=i386-mach
- os=-mach
- ;;
- i386-vsta | vsta)
- basic_machine=i386-unknown
- os=-vsta
- ;;
- iris | iris4d)
- basic_machine=mips-sgi
- case $os in
- -irix*)
- ;;
- *)
- os=-irix4
- ;;
- esac
- ;;
- isi68 | isi)
- basic_machine=m68k-isi
- os=-sysv
- ;;
- m88k-omron*)
- basic_machine=m88k-omron
- ;;
- magnum | m3230)
- basic_machine=mips-mips
- os=-sysv
- ;;
- merlin)
- basic_machine=ns32k-utek
- os=-sysv
- ;;
- mingw32)
- basic_machine=i386-pc
- os=-mingw32
- ;;
- miniframe)
- basic_machine=m68000-convergent
- ;;
- *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
- basic_machine=m68k-atari
- os=-mint
- ;;
- mips3*-*)
- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
- ;;
- mips3*)
- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
- ;;
- mmix*)
- basic_machine=mmix-knuth
- os=-mmixware
- ;;
- monitor)
- basic_machine=m68k-rom68k
- os=-coff
- ;;
- morphos)
- basic_machine=powerpc-unknown
- os=-morphos
- ;;
- msdos)
- basic_machine=i386-pc
- os=-msdos
- ;;
- mvs)
- basic_machine=i370-ibm
- os=-mvs
- ;;
- ncr3000)
- basic_machine=i486-ncr
- os=-sysv4
- ;;
- netbsd386)
- basic_machine=i386-unknown
- os=-netbsd
- ;;
- netwinder)
- basic_machine=armv4l-rebel
- os=-linux
- ;;
- news | news700 | news800 | news900)
- basic_machine=m68k-sony
- os=-newsos
- ;;
- news1000)
- basic_machine=m68030-sony
- os=-newsos
- ;;
- news-3600 | risc-news)
- basic_machine=mips-sony
- os=-newsos
- ;;
- necv70)
- basic_machine=v70-nec
- os=-sysv
- ;;
- next | m*-next )
- basic_machine=m68k-next
- case $os in
- -nextstep* )
- ;;
- -ns2*)
- os=-nextstep2
- ;;
- *)
- os=-nextstep3
- ;;
- esac
- ;;
- nh3000)
- basic_machine=m68k-harris
- os=-cxux
- ;;
- nh[45]000)
- basic_machine=m88k-harris
- os=-cxux
- ;;
- nindy960)
- basic_machine=i960-intel
- os=-nindy
- ;;
- mon960)
- basic_machine=i960-intel
- os=-mon960
- ;;
- nonstopux)
- basic_machine=mips-compaq
- os=-nonstopux
- ;;
- np1)
- basic_machine=np1-gould
- ;;
- nsr-tandem)
- basic_machine=nsr-tandem
- ;;
- op50n-* | op60c-*)
- basic_machine=hppa1.1-oki
- os=-proelf
- ;;
- or32 | or32-*)
- basic_machine=or32-unknown
- os=-coff
- ;;
- OSE68000 | ose68000)
- basic_machine=m68000-ericsson
- os=-ose
- ;;
- os68k)
- basic_machine=m68k-none
- os=-os68k
- ;;
- pa-hitachi)
- basic_machine=hppa1.1-hitachi
- os=-hiuxwe2
- ;;
- paragon)
- basic_machine=i860-intel
- os=-osf
- ;;
- pbd)
- basic_machine=sparc-tti
- ;;
- pbb)
- basic_machine=m68k-tti
- ;;
- pc532 | pc532-*)
- basic_machine=ns32k-pc532
- ;;
- pentium | p5 | k5 | k6 | nexgen | viac3)
- basic_machine=i586-pc
- ;;
- pentiumpro | p6 | 6x86 | athlon | athlon_*)
- basic_machine=i686-pc
- ;;
- pentiumii | pentium2)
- basic_machine=i686-pc
- ;;
- pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
- basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentiumpro-* | p6-* | 6x86-* | athlon-*)
- basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentiumii-* | pentium2-*)
- basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pn)
- basic_machine=pn-gould
- ;;
- power) basic_machine=power-ibm
- ;;
- ppc) basic_machine=powerpc-unknown
- ;;
- ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppcle | powerpclittle | ppc-le | powerpc-little)
- basic_machine=powerpcle-unknown
- ;;
- ppcle-* | powerpclittle-*)
- basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppc64) basic_machine=powerpc64-unknown
- ;;
- ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppc64le | powerpc64little | ppc64-le | powerpc64-little)
- basic_machine=powerpc64le-unknown
- ;;
- ppc64le-* | powerpc64little-*)
- basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ps2)
- basic_machine=i386-ibm
- ;;
- pw32)
- basic_machine=i586-unknown
- os=-pw32
- ;;
- rom68k)
- basic_machine=m68k-rom68k
- os=-coff
- ;;
- rm[46]00)
- basic_machine=mips-siemens
- ;;
- rtpc | rtpc-*)
- basic_machine=romp-ibm
- ;;
- s390 | s390-*)
- basic_machine=s390-ibm
- ;;
- s390x | s390x-*)
- basic_machine=s390x-ibm
- ;;
- sa29200)
- basic_machine=a29k-amd
- os=-udi
- ;;
- sb1)
- basic_machine=mipsisa64sb1-unknown
- ;;
- sb1el)
- basic_machine=mipsisa64sb1el-unknown
- ;;
- sequent)
- basic_machine=i386-sequent
- ;;
- sh)
- basic_machine=sh-hitachi
- os=-hms
- ;;
- sparclite-wrs | simso-wrs)
- basic_machine=sparclite-wrs
- os=-vxworks
- ;;
- sps7)
- basic_machine=m68k-bull
- os=-sysv2
- ;;
- spur)
- basic_machine=spur-unknown
- ;;
- st2000)
- basic_machine=m68k-tandem
- ;;
- stratus)
- basic_machine=i860-stratus
- os=-sysv4
- ;;
- sun2)
- basic_machine=m68000-sun
- ;;
- sun2os3)
- basic_machine=m68000-sun
- os=-sunos3
- ;;
- sun2os4)
- basic_machine=m68000-sun
- os=-sunos4
- ;;
- sun3os3)
- basic_machine=m68k-sun
- os=-sunos3
- ;;
- sun3os4)
- basic_machine=m68k-sun
- os=-sunos4
- ;;
- sun4os3)
- basic_machine=sparc-sun
- os=-sunos3
- ;;
- sun4os4)
- basic_machine=sparc-sun
- os=-sunos4
- ;;
- sun4sol2)
- basic_machine=sparc-sun
- os=-solaris2
- ;;
- sun3 | sun3-*)
- basic_machine=m68k-sun
- ;;
- sun4)
- basic_machine=sparc-sun
- ;;
- sun386 | sun386i | roadrunner)
- basic_machine=i386-sun
- ;;
- sv1)
- basic_machine=sv1-cray
- os=-unicos
- ;;
- symmetry)
- basic_machine=i386-sequent
- os=-dynix
- ;;
- t3d)
- basic_machine=alpha-cray
- os=-unicos
- ;;
- t3e)
- basic_machine=alphaev5-cray
- os=-unicos
- ;;
- t90)
- basic_machine=t90-cray
- os=-unicos
- ;;
- tic4x | c4x*)
- basic_machine=tic4x-unknown
- os=-coff
- ;;
- tic54x | c54x*)
- basic_machine=tic54x-unknown
- os=-coff
- ;;
- tx39)
- basic_machine=mipstx39-unknown
- ;;
- tx39el)
- basic_machine=mipstx39el-unknown
- ;;
- toad1)
- basic_machine=pdp10-xkl
- os=-tops20
- ;;
- tower | tower-32)
- basic_machine=m68k-ncr
- ;;
- udi29k)
- basic_machine=a29k-amd
- os=-udi
- ;;
- ultra3)
- basic_machine=a29k-nyu
- os=-sym1
- ;;
- v810 | necv810)
- basic_machine=v810-nec
- os=-none
- ;;
- vaxv)
- basic_machine=vax-dec
- os=-sysv
- ;;
- vms)
- basic_machine=vax-dec
- os=-vms
- ;;
- vpp*|vx|vx-*)
- basic_machine=f301-fujitsu
- ;;
- vxworks960)
- basic_machine=i960-wrs
- os=-vxworks
- ;;
- vxworks68)
- basic_machine=m68k-wrs
- os=-vxworks
- ;;
- vxworks29k)
- basic_machine=a29k-wrs
- os=-vxworks
- ;;
- w65*)
- basic_machine=w65-wdc
- os=-none
- ;;
- w89k-*)
- basic_machine=hppa1.1-winbond
- os=-proelf
- ;;
- windows32)
- basic_machine=i386-pc
- os=-windows32-msvcrt
- ;;
- xps | xps100)
- basic_machine=xps100-honeywell
- ;;
- ymp)
- basic_machine=ymp-cray
- os=-unicos
- ;;
- z8k-*-coff)
- basic_machine=z8k-unknown
- os=-sim
- ;;
- none)
- basic_machine=none-none
[truncated at 1000 lines; 474 more skipped]
slic
diff -N configure
--- configure 9 Apr 2013 21:24:09 -0000 1.171
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,6022 +0,0 @@
-#! /bin/sh
-# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.63 for SLIC v3r0p3.
-#
-# Report bugs to <[log in to unmask]>.
-#
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
-# This configure script is free software; the Free Software Foundation
-# gives unlimited permission to copy, distribute and modify it.
-## --------------------- ##
-## M4sh Initialization. ##
-## --------------------- ##
-
-# Be more Bourne compatible
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
- setopt NO_GLOB_SUBST
-else
- case `(set -o) 2>/dev/null` in
- *posix*) set -o posix ;;
-esac
-
-fi
-
-
-
-
-# PATH needs CR
-# Avoid depending upon Character Ranges.
-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
-as_cr_digits='0123456789'
-as_cr_alnum=$as_cr_Letters$as_cr_digits
-
-as_nl='
-'
-export as_nl
-# Printing a long string crashes Solaris 7 /usr/bin/printf.
-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
-if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='printf %s\n'
- as_echo_n='printf %s'
-else
- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
- as_echo_n='/usr/ucb/echo -n'
- else
- as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
- as_echo_n_body='eval
- arg=$1;
- case $arg in
- *"$as_nl"*)
- expr "X$arg" : "X\\(.*\\)$as_nl";
- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
- esac;
- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
- '
- export as_echo_n_body
- as_echo_n='sh -c $as_echo_n_body as_echo'
- fi
- export as_echo_body
- as_echo='sh -c $as_echo_body as_echo'
-fi
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
- PATH_SEPARATOR=:
- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
- PATH_SEPARATOR=';'
- }
-fi
-
-# Support unset when possible.
-if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
- as_unset=unset
-else
- as_unset=false
-fi
-
-
-# IFS
-# We need space, tab and new line, in precisely that order. Quoting is
-# there to prevent editors from complaining about space-tab.
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-# splitting by setting IFS to empty value.)
-IFS=" "" $as_nl"
-
-# Find who we are. Look in the path if we contain no directory separator.
-case $0 in
- *[\\/]* ) as_myself=$0 ;;
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-# We did not find ourselves, most probably we were run as `sh COMMAND'
-# in which case we are not to be found in the path.
-if test "x$as_myself" = x; then
- as_myself=$0
-fi
-if test ! -f "$as_myself"; then
- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
- { (exit 1); exit 1; }
-fi
-
-# Work around bugs in pre-3.0 UWIN ksh.
-for as_var in ENV MAIL MAILPATH
-do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-LC_ALL=C
-export LC_ALL
-LANGUAGE=C
-export LANGUAGE
-
-# Required to use basename.
-if expr a : '\(a\)' >/dev/null 2>&1 &&
- test "X`expr 00001 : '.*\(...\)'`" = X001; then
- as_expr=expr
-else
- as_expr=false
-fi
-
-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
- as_basename=basename
-else
- as_basename=false
-fi
-
-
-# Name of the executable.
-as_me=`$as_basename -- "$0" ||
-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X/"$0" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{
- s//\1/
- q
- }
- /^X\/\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\/\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
-
-# CDPATH.
-$as_unset CDPATH
-
-
-if test "x$CONFIG_SHELL" = x; then
- if (eval ":") 2>/dev/null; then
- as_have_required=yes
-else
- as_have_required=no
-fi
-
- if test $as_have_required = yes && (eval ":
-(as_func_return () {
- (exit \$1)
-}
-as_func_success () {
- as_func_return 0
-}
-as_func_failure () {
- as_func_return 1
-}
-as_func_ret_success () {
- return 0
-}
-as_func_ret_failure () {
- return 1
-}
-
-exitcode=0
-if as_func_success; then
- :
-else
- exitcode=1
- echo as_func_success failed.
-fi
-
-if as_func_failure; then
- exitcode=1
- echo as_func_failure succeeded.
-fi
-
-if as_func_ret_success; then
- :
-else
- exitcode=1
- echo as_func_ret_success failed.
-fi
-
-if as_func_ret_failure; then
- exitcode=1
- echo as_func_ret_failure succeeded.
-fi
-
-if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
- :
-else
- exitcode=1
- echo positional parameters were not saved.
-fi
-
-test \$exitcode = 0) || { (exit 1); exit 1; }
-
-(
- as_lineno_1=\$LINENO
- as_lineno_2=\$LINENO
- test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
- test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
-") 2> /dev/null; then
- :
-else
- as_candidate_shells=
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- case $as_dir in
- /*)
- for as_base in sh bash ksh sh5; do
- as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
- done;;
- esac
-done
-IFS=$as_save_IFS
-
-
- for as_shell in $as_candidate_shells $SHELL; do
- # Try only shells that exist, to save several forks.
- if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
- { ("$as_shell") 2> /dev/null <<\_ASEOF
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
- setopt NO_GLOB_SUBST
-else
- case `(set -o) 2>/dev/null` in
- *posix*) set -o posix ;;
-esac
-
-fi
-
-
-:
-_ASEOF
-}; then
- CONFIG_SHELL=$as_shell
- as_have_required=yes
- if { "$as_shell" 2> /dev/null <<\_ASEOF
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
- setopt NO_GLOB_SUBST
-else
- case `(set -o) 2>/dev/null` in
- *posix*) set -o posix ;;
-esac
-
-fi
-
-
-:
-(as_func_return () {
- (exit $1)
-}
-as_func_success () {
- as_func_return 0
-}
-as_func_failure () {
- as_func_return 1
-}
-as_func_ret_success () {
- return 0
-}
-as_func_ret_failure () {
- return 1
-}
-
-exitcode=0
-if as_func_success; then
- :
-else
- exitcode=1
- echo as_func_success failed.
-fi
-
-if as_func_failure; then
- exitcode=1
- echo as_func_failure succeeded.
-fi
-
-if as_func_ret_success; then
- :
-else
- exitcode=1
- echo as_func_ret_success failed.
-fi
-
-if as_func_ret_failure; then
- exitcode=1
- echo as_func_ret_failure succeeded.
-fi
-
-if ( set x; as_func_ret_success y && test x = "$1" ); then
- :
-else
- exitcode=1
- echo positional parameters were not saved.
-fi
-
-test $exitcode = 0) || { (exit 1); exit 1; }
-
-(
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
-
-_ASEOF
-}; then
- break
-fi
-
-fi
-
- done
-
- if test "x$CONFIG_SHELL" != x; then
- for as_var in BASH_ENV ENV
- do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
- done
- export CONFIG_SHELL
- exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
-fi
-
-
- if test $as_have_required = no; then
- echo This script requires a shell more modern than all the
- echo shells that I found on your system. Please install a
- echo modern shell, or manually run the script under such a
- echo shell if you do have one.
- { (exit 1); exit 1; }
-fi
-
-
-fi
-
-fi
-
-
-
-(eval "as_func_return () {
- (exit \$1)
-}
-as_func_success () {
- as_func_return 0
-}
-as_func_failure () {
- as_func_return 1
-}
-as_func_ret_success () {
- return 0
-}
-as_func_ret_failure () {
- return 1
-}
-
-exitcode=0
-if as_func_success; then
- :
-else
- exitcode=1
- echo as_func_success failed.
-fi
-
-if as_func_failure; then
- exitcode=1
- echo as_func_failure succeeded.
-fi
-
-if as_func_ret_success; then
- :
-else
- exitcode=1
- echo as_func_ret_success failed.
-fi
-
-if as_func_ret_failure; then
- exitcode=1
- echo as_func_ret_failure succeeded.
-fi
-
-if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
- :
-else
- exitcode=1
- echo positional parameters were not saved.
-fi
-
-test \$exitcode = 0") || {
- echo No shell found that supports shell functions.
- echo Please tell [log in to unmask] about your system,
- echo including any error possibly output before this message.
- echo This can help us improve future autoconf versions.
- echo Configuration will now proceed without shell functions.
-}
-
-
-
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
-
- # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
- # uniformly replaced by the line number. The first 'sed' inserts a
- # line-number line after each line using $LINENO; the second 'sed'
- # does the real work. The second script uses 'N' to pair each
- # line-number line with the line containing $LINENO, and appends
- # trailing '-' during substitution so that $LINENO is not a special
- # case at line end.
- # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
- # scripts with optimization help from Paolo Bonzini. Blame Lee
- # E. McMahon (1931-1989) for sed's syntax. :-)
- sed -n '
- p
- /[$]LINENO/=
- ' <$as_myself |
- sed '
- s/[$]LINENO.*/&-/
- t lineno
- b
- :lineno
- N
- :loop
- s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
- t loop
- s/-\n.*//
- ' >$as_me.lineno &&
- chmod +x "$as_me.lineno" ||
- { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
- { (exit 1); exit 1; }; }
-
- # Don't try to exec as it changes $[0], causing all sort of problems
- # (the dirname of $[0] is not the place where we might find the
- # original and so on. Autoconf is especially sensitive to this).
- . "./$as_me.lineno"
- # Exit status is that of the last command.
- exit
-}
-
-
-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
- as_dirname=dirname
-else
- as_dirname=false
-fi
-
-ECHO_C= ECHO_N= ECHO_T=
-case `echo -n x` in
--n*)
- case `echo 'x\c'` in
- *c*) ECHO_T=' ';; # ECHO_T is single tab character.
- *) ECHO_C='\c';;
- esac;;
-*)
- ECHO_N='-n';;
-esac
-if expr a : '\(a\)' >/dev/null 2>&1 &&
- test "X`expr 00001 : '.*\(...\)'`" = X001; then
- as_expr=expr
-else
- as_expr=false
-fi
-
-rm -f conf$$ conf$$.exe conf$$.file
-if test -d conf$$.dir; then
- rm -f conf$$.dir/conf$$.file
-else
- rm -f conf$$.dir
- mkdir conf$$.dir 2>/dev/null
-fi
-if (echo >conf$$.file) 2>/dev/null; then
- if ln -s conf$$.file conf$$ 2>/dev/null; then
- as_ln_s='ln -s'
- # ... but there are two gotchas:
- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
- # In both cases, we have to default to `cp -p'.
- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
- as_ln_s='cp -p'
- elif ln conf$$.file conf$$ 2>/dev/null; then
- as_ln_s=ln
- else
- as_ln_s='cp -p'
- fi
-else
- as_ln_s='cp -p'
-fi
-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
-rmdir conf$$.dir 2>/dev/null
-
-if mkdir -p . 2>/dev/null; then
- as_mkdir_p=:
-else
- test -d ./-p && rmdir ./-p
- as_mkdir_p=false
-fi
-
-if test -x / >/dev/null 2>&1; then
- as_test_x='test -x'
-else
- if ls -dL / >/dev/null 2>&1; then
- as_ls_L_option=L
- else
- as_ls_L_option=
- fi
- as_test_x='
- eval sh -c '\''
- if test -d "$1"; then
- test -d "$1/.";
- else
- case $1 in
- -*)set "./$1";;
- esac;
- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
- ???[sx]*):;;*)false;;esac;fi
- '\'' sh
- '
-fi
-as_executable_p=$as_test_x
-
-# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
-
-# Sed expression to map a string onto a valid variable name.
-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-
-
-
-exec 7<&0 </dev/null 6>&1
-
-# Name of the host.
-# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
-# so uname gets run too.
-ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
-
-#
-# Initializations.
-#
-ac_default_prefix=/usr/local
-ac_clean_files=
-ac_config_libobj_dir=.
-LIBOBJS=
-cross_compiling=no
-subdirs=
-MFLAGS=
-MAKEFLAGS=
-SHELL=${CONFIG_SHELL-/bin/sh}
-
-# Identity of this package.
-PACKAGE_NAME='SLIC'
-PACKAGE_TARNAME='slic'
-PACKAGE_VERSION='v3r0p3'
-PACKAGE_STRING='SLIC v3r0p3'
[log in to unmask]
-
-ac_unique_file="slic.cc"
-# Factoring default headers for most tests.
-ac_includes_default="\
-#include <stdio.h>
-#ifdef HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#ifdef HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <stddef.h>
-#else
-# ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-# endif
-#endif
-#ifdef HAVE_STRING_H
-# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
-# include <memory.h>
-# endif
-# include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-# include <strings.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
-#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif"
-
-ac_default_prefix=$SLIC_BASE
-ac_subst_vars='LTLIBOBJS
-LIBOBJS
-PACKAGE_WWW
-PACKAGE_DATE
-PACKAGE_INSTITUTION
-PACKAGE_FULLNAME
-PACKAGE_AUTHORS
-DOXYGEN
-OS_SHARED_LIBS_VAR
-G4LIB_BUILD_SHARED
-G4LIB_BUILD_STATIC
-SLIC_PREFIX
-HEPPDT_PREFIX
-USE_HEPPDT
-LCIO_PREFIX
-LCDD_PREFIX
-GDML_PREFIX
-XERCES_LIBNAME
-XERCES_PREFIX
-GEANT4_PATCH_VERSION
-GEANT4_MINOR_VERSION
-GEANT4_MAJOR_VERSION
-GEANT4_FULL_VERSION
-G4SYSTEM
-G4WORKDIR
-G4_PREFIX
-EGREP
-GREP
-CPP
-SET_MAKE
-ac_ct_CC
-CFLAGS
-CC
-OBJEXT
-EXEEXT
-ac_ct_CXX
-CPPFLAGS
-LDFLAGS
-CXXFLAGS
-CXX
-host_os
-host_vendor
-host_cpu
-host
-build_os
-build_vendor
-build_cpu
-build
-target_alias
-host_alias
-build_alias
-LIBS
-ECHO_T
-ECHO_N
-ECHO_C
-DEFS
-mandir
-localedir
-libdir
-psdir
-pdfdir
-dvidir
-htmldir
-infodir
-docdir
-oldincludedir
-includedir
-localstatedir
-sharedstatedir
-sysconfdir
-datadir
-datarootdir
-libexecdir
-sbindir
-bindir
-program_transform_name
-prefix
-exec_prefix
-PACKAGE_BUGREPORT
-PACKAGE_STRING
-PACKAGE_VERSION
-PACKAGE_TARNAME
-PACKAGE_NAME
-PATH_SEPARATOR
-SHELL'
-ac_subst_files='G4PHYSLISTSINC
-G4PHYSLISTSBUILD'
-ac_user_opts='
-enable_option_checking
-with_geant4
-with_xerces
-with_xerces_libname
-with_gdml
-with_lcdd
-with_lcio
-with_heppdt
-enable_debug
-enable_profiling
-enable_log
-enable_shared
-enable_exceptions
-enable_compile_verbose
-enable_version
-'
- ac_precious_vars='build_alias
-host_alias
-target_alias
-CXX
-CXXFLAGS
-LDFLAGS
-LIBS
-CPPFLAGS
-CCC
-CC
-CFLAGS
-CPP'
-
-
-# Initialize some variables set by options.
-ac_init_help=
-ac_init_version=false
-ac_unrecognized_opts=
-ac_unrecognized_sep=
-# The variables have the same names as the options, with
-# dashes changed to underlines.
-cache_file=/dev/null
-exec_prefix=NONE
-no_create=
-no_recursion=
-prefix=NONE
-program_prefix=NONE
-program_suffix=NONE
-program_transform_name=s,x,x,
-silent=
-site=
-srcdir=
-verbose=
-x_includes=NONE
-x_libraries=NONE
-
-# Installation directory options.
-# These are left unexpanded so users can "make install exec_prefix=/foo"
-# and all the variables that are supposed to be based on exec_prefix
-# by default will actually change.
-# Use braces instead of parens because sh, perl, etc. also accept them.
-# (The list follows the same order as the GNU Coding Standards.)
-bindir='${exec_prefix}/bin'
-sbindir='${exec_prefix}/sbin'
-libexecdir='${exec_prefix}/libexec'
-datarootdir='${prefix}/share'
-datadir='${datarootdir}'
-sysconfdir='${prefix}/etc'
-sharedstatedir='${prefix}/com'
-localstatedir='${prefix}/var'
-includedir='${prefix}/include'
-oldincludedir='/usr/include'
-docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
-infodir='${datarootdir}/info'
-htmldir='${docdir}'
-dvidir='${docdir}'
-pdfdir='${docdir}'
-psdir='${docdir}'
-libdir='${exec_prefix}/lib'
-localedir='${datarootdir}/locale'
-mandir='${datarootdir}/man'
-
-ac_prev=
-ac_dashdash=
-for ac_option
-do
- # If the previous option needs an argument, assign it.
- if test -n "$ac_prev"; then
- eval $ac_prev=\$ac_option
- ac_prev=
- continue
- fi
-
- case $ac_option in
- *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
- *) ac_optarg=yes ;;
- esac
-
- # Accept the important Cygnus configure options, so we can diagnose typos.
-
- case $ac_dashdash$ac_option in
- --)
- ac_dashdash=yes ;;
-
- -bindir | --bindir | --bindi | --bind | --bin | --bi)
- ac_prev=bindir ;;
- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
- bindir=$ac_optarg ;;
-
- -build | --build | --buil | --bui | --bu)
- ac_prev=build_alias ;;
- -build=* | --build=* | --buil=* | --bui=* | --bu=*)
- build_alias=$ac_optarg ;;
-
- -cache-file | --cache-file | --cache-fil | --cache-fi \
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
- ac_prev=cache_file ;;
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
- cache_file=$ac_optarg ;;
-
- --config-cache | -C)
- cache_file=config.cache ;;
-
- -datadir | --datadir | --datadi | --datad)
- ac_prev=datadir ;;
- -datadir=* | --datadir=* | --datadi=* | --datad=*)
- datadir=$ac_optarg ;;
-
- -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
- | --dataroo | --dataro | --datar)
- ac_prev=datarootdir ;;
- -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
- | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
- datarootdir=$ac_optarg ;;
-
- -disable-* | --disable-*)
- ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
- { (exit 1); exit 1; }; }
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
-"enable_$ac_useropt"
-"*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval enable_$ac_useropt=no ;;
-
- -docdir | --docdir | --docdi | --doc | --do)
- ac_prev=docdir ;;
- -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
- docdir=$ac_optarg ;;
-
- -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
- ac_prev=dvidir ;;
- -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
- dvidir=$ac_optarg ;;
-
- -enable-* | --enable-*)
- ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
- { (exit 1); exit 1; }; }
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
-"enable_$ac_useropt"
-"*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval enable_$ac_useropt=\$ac_optarg ;;
-
- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
- | --exec | --exe | --ex)
- ac_prev=exec_prefix ;;
- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
- | --exec=* | --exe=* | --ex=*)
- exec_prefix=$ac_optarg ;;
-
- -gas | --gas | --ga | --g)
- # Obsolete; use --with-gas.
- with_gas=yes ;;
-
- -help | --help | --hel | --he | -h)
- ac_init_help=long ;;
- -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
- ac_init_help=recursive ;;
- -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
- ac_init_help=short ;;
-
- -host | --host | --hos | --ho)
- ac_prev=host_alias ;;
- -host=* | --host=* | --hos=* | --ho=*)
- host_alias=$ac_optarg ;;
-
- -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
- ac_prev=htmldir ;;
- -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
- | --ht=*)
- htmldir=$ac_optarg ;;
-
- -includedir | --includedir | --includedi | --included | --include \
- | --includ | --inclu | --incl | --inc)
- ac_prev=includedir ;;
- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
- | --includ=* | --inclu=* | --incl=* | --inc=*)
- includedir=$ac_optarg ;;
-
- -infodir | --infodir | --infodi | --infod | --info | --inf)
- ac_prev=infodir ;;
- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
- infodir=$ac_optarg ;;
-
- -libdir | --libdir | --libdi | --libd)
- ac_prev=libdir ;;
- -libdir=* | --libdir=* | --libdi=* | --libd=*)
- libdir=$ac_optarg ;;
-
- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
- | --libexe | --libex | --libe)
- ac_prev=libexecdir ;;
- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
- | --libexe=* | --libex=* | --libe=*)
- libexecdir=$ac_optarg ;;
-
- -localedir | --localedir | --localedi | --localed | --locale)
- ac_prev=localedir ;;
- -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
- localedir=$ac_optarg ;;
-
- -localstatedir | --localstatedir | --localstatedi | --localstated \
- | --localstate | --localstat | --localsta | --localst | --locals)
- ac_prev=localstatedir ;;
- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
- | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
- localstatedir=$ac_optarg ;;
-
- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
- ac_prev=mandir ;;
- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
- mandir=$ac_optarg ;;
-
- -nfp | --nfp | --nf)
- # Obsolete; use --without-fp.
- with_fp=no ;;
-
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c | -n)
- no_create=yes ;;
-
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
- no_recursion=yes ;;
-
- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
- | --oldin | --oldi | --old | --ol | --o)
- ac_prev=oldincludedir ;;
- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
- oldincludedir=$ac_optarg ;;
[truncated at 1000 lines; 5026 more skipped]
slic
diff -N configure.ac
--- configure.ac 9 Apr 2013 21:24:09 -0000 1.151
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,131 +0,0 @@
-# $Header: /cvs/lcd/slic/Attic/configure.ac,v 1.151 2013/04/09 21:24:09 jeremy Exp $
-#
-# Process this file with autoconf to produce a configure script for SLIC.
-#
-
-# _standard order_
-# information on the package
-# checks for programs
-# checks for libraries
-# checks for header files
-# checks for types
-# checks for structures
-# checks for compiler characteristics
-# checks for library functions
-# checks for system services
-
-AC_PREREQ(2.57)
-
-AC_INIT(SLIC,
- v3r0p3,
- [log in to unmask])
-
-# Setup Autoconf host vars.
-AC_CANONICAL_HOST
-
-dnl echo "host_os=$host_os"
-dnl echo "host_vendor=$host_vendor"
-dnl echo "host_cpu=$host_cpu"
-
-# Set source dir.
-AC_CONFIG_SRCDIR([slic.cc])
-
-# Checks for required programs.
-AC_PROG_CXX
-AC_PROG_CC
-AC_PROG_MAKE_SET
-
-# no default flags from env (!!!!); use debug symbols
-dnl FIXME: setting should not be hard-coded here
-CXXFLAGS="-g"
-
-# Check for getopt.
-AC_CHECK_HEADERS(getopt.h,,AC_MSG_ERROR(getopt was not found))
-
-dnl set OS string
-CHECK_OS
-
-dnl Setup Default CPPFLAGS.
-SIM_SETUP_DEF_CPPFLAGS
-
-dnl G4
-SIM_SETUP_G4
-AC_HAVE_G4VERSION
-AC_GEANT4_PHYSLISTS
-
-dnl CLHEP
-dnl SIM_SETUP_CLHEP
-
-dnl Xerces
-SIM_SETUP_XERCES
-SIM_WITH_XERCES_LIBNAME
-
-dnl GDML
-SIM_SETUP_GDML
-
-dnl LCDD
-SIM_SETUP_LCDD
-
-dnl LCIO
-SIM_SETUP_LCIO
-
-dnl HepPDT
-SIM_SETUP_HEPPDT
-
-dnl SLIC
-SIM_SETUP_SLIC
-
-dnl Config lib type.
-AC_SLIC_SHARED
-
-dnl Shared library variable e.g. LD_LIBRARY_PATH on Linux.
-AC_SLIC_SHARED_LIB_VAR
-
-dnl Config exception handling.
-AC_SLIC_EXCEPTIONS
-
-dnl possible option for verbose compiler output
-SIM_SETUP_VERBOSE_COMPILE
-
-dnl Doxygen
-SIM_SETUP_DOXYGEN
-
-dnl Set VERSION file
-SIM_CREATE_VERSION_FILE
-
-dnl define additional PACKAGE_ vars
-SIM_DEFINE_PACKAGE_VARS
-
-dnl substitute DEFS and CXXFLAGS
-AC_SUBST([CXXFLAGS])
-AC_SUBST([CPPFLAGS])
-AC_SUBST([DEFS])
-
-dnl local settings
-config_files="
- GNUmakefile.local
- ./config/doxygen/slic_doxygen.cfg
- ./config/setup/setup.sh
- ./include/Geant4VersionInfo.hh
- ./include/PackageInfo.hh
- ./include/G4PhysicsLists.hh
- ./include/G4PhysicsBuilders.icc
- "
-
-AC_CONFIG_FILES(${config_files})
-
-AC_OUTPUT
-
-# completion mesg
-dnl echo "Done."
-dnl echo
-dnl echo "Now source your Geant4 setup script to get the correct UI and graphics settings "
-dnl echo "for Geant4's build system."
-dnl echo
-dnl echo " source $G4INSTALL/.config/bin/$G4SYSTEM/env.sh"
-dnl echo
-dnl echo "Finally, to build SLIC."
-dnl echo
-dnl echo " gmake all"
-dnl echo
-dnl echo "The executable should be found at $SLIC_BASE/bin/$G4SYSTEM/slic once the build completes."
slic
diff -N install.sh
--- install.sh 11 Jul 2011 17:58:03 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,323 +0,0 @@
-#!/bin/sh
-# install - install a program, script, or datafile
-
-scriptversion=2004-12-17.09
-
-# This originates from X11R5 (mit/util/scripts/install.sh), which was
-# later released in X11R6 (xc/config/util/install.sh) with the
-# following copyright and license.
-#
-# Copyright (C) 1994 X Consortium
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to
-# deal in the Software without restriction, including without limitation the
-# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-# sell copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
-# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
-# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#
-# Except as contained in this notice, the name of the X Consortium shall not
-# be used in advertising or otherwise to promote the sale, use or other deal-
-# ings in this Software without prior written authorization from the X Consor-
-# tium.
-#
-#
-# FSF changes to this file are in the public domain.
-#
-# Calling this script install-sh is preferred over install.sh, to prevent
-# `make' implicit rules from creating a file called install from it
-# when there is no Makefile.
-#
-# This script is compatible with the BSD install script, but was written
-# from scratch. It can only install one file at a time, a restriction
-# shared with many OS's install programs.
-
-# set DOITPROG to echo to test this script
-
-# Don't use :- since 4.3BSD and earlier shells don't like it.
-doit="${DOITPROG-}"
-
-# put in absolute paths if you don't have them in your path; or use env. vars.
-
-mvprog="${MVPROG-mv}"
-cpprog="${CPPROG-cp}"
-chmodprog="${CHMODPROG-chmod}"
-chownprog="${CHOWNPROG-chown}"
-chgrpprog="${CHGRPPROG-chgrp}"
-stripprog="${STRIPPROG-strip}"
-rmprog="${RMPROG-rm}"
-mkdirprog="${MKDIRPROG-mkdir}"
-
-chmodcmd="$chmodprog 0755"
-chowncmd=
-chgrpcmd=
-stripcmd=
-rmcmd="$rmprog -f"
-mvcmd="$mvprog"
-src=
-dst=
-dir_arg=
-dstarg=
-no_target_directory=
-
-usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
- or: $0 [OPTION]... SRCFILES... DIRECTORY
- or: $0 [OPTION]... -t DIRECTORY SRCFILES...
- or: $0 [OPTION]... -d DIRECTORIES...
-
-In the 1st form, copy SRCFILE to DSTFILE.
-In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
-In the 4th, create DIRECTORIES.
-
-Options:
--c (ignored)
--d create directories instead of installing files.
--g GROUP $chgrpprog installed files to GROUP.
--m MODE $chmodprog installed files to MODE.
--o USER $chownprog installed files to USER.
--s $stripprog installed files.
--t DIRECTORY install into DIRECTORY.
--T report an error if DSTFILE is a directory.
---help display this help and exit.
---version display version info and exit.
-
-Environment variables override the default commands:
- CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
-"
-
-while test -n "$1"; do
- case $1 in
- -c) shift
- continue;;
-
- -d) dir_arg=true
- shift
- continue;;
-
- -g) chgrpcmd="$chgrpprog $2"
- shift
- shift
- continue;;
-
- --help) echo "$usage"; exit 0;;
-
- -m) chmodcmd="$chmodprog $2"
- shift
- shift
- continue;;
-
- -o) chowncmd="$chownprog $2"
- shift
- shift
- continue;;
-
- -s) stripcmd=$stripprog
- shift
- continue;;
-
- -t) dstarg=$2
- shift
- shift
- continue;;
-
- -T) no_target_directory=true
- shift
- continue;;
-
- --version) echo "$0 $scriptversion"; exit 0;;
-
- *) # When -d is used, all remaining arguments are directories to create.
- # When -t is used, the destination is already specified.
- test -n "$dir_arg$dstarg" && break
- # Otherwise, the last argument is the destination. Remove it from [log in to unmask]
- for arg
- do
- if test -n "$dstarg"; then
- # $@ is not empty: it contains at least $arg.
- set fnord "$@" "$dstarg"
- shift # fnord
- fi
- shift # arg
- dstarg=$arg
- done
- break;;
- esac
-done
-
-if test -z "$1"; then
- if test -z "$dir_arg"; then
- echo "$0: no input file specified." >&2
- exit 1
- fi
- # It's OK to call `install-sh -d' without argument.
- # This can happen when creating conditional directories.
- exit 0
-fi
-
-for src
-do
- # Protect names starting with `-'.
- case $src in
- -*) src=./$src ;;
- esac
-
- if test -n "$dir_arg"; then
- dst=$src
- src=
-
- if test -d "$dst"; then
- mkdircmd=:
- chmodcmd=
- else
- mkdircmd=$mkdirprog
- fi
- else
- # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
- # might cause directories to be created, which would be especially bad
- # if $src (and thus $dsttmp) contains '*'.
- if test ! -f "$src" && test ! -d "$src"; then
- echo "$0: $src does not exist." >&2
- exit 1
- fi
-
- if test -z "$dstarg"; then
- echo "$0: no destination specified." >&2
- exit 1
- fi
-
- dst=$dstarg
- # Protect names starting with `-'.
- case $dst in
- -*) dst=./$dst ;;
- esac
-
- # If destination is a directory, append the input filename; won't work
- # if double slashes aren't ignored.
- if test -d "$dst"; then
- if test -n "$no_target_directory"; then
- echo "$0: $dstarg: Is a directory" >&2
- exit 1
- fi
- dst=$dst/`basename "$src"`
- fi
- fi
-
- # This sed command emulates the dirname command.
- dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
-
- # Make sure that the destination directory exists.
-
- # Skip lots of stat calls in the usual case.
- if test ! -d "$dstdir"; then
- defaultIFS='
- '
- IFS="${IFS-$defaultIFS}"
-
- oIFS=$IFS
- # Some sh's can't handle IFS=/ for some reason.
- IFS='%'
- set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
- shift
- IFS=$oIFS
-
- pathcomp=
-
- while test $# -ne 0 ; do
- pathcomp=$pathcomp$1
- shift
- if test ! -d "$pathcomp"; then
- $mkdirprog "$pathcomp"
- # mkdir can fail with a `File exist' error in case several
- # install-sh are creating the directory concurrently. This
- # is OK.
- test -d "$pathcomp" || exit
- fi
- pathcomp=$pathcomp/
- done
- fi
-
- if test -n "$dir_arg"; then
- $doit $mkdircmd "$dst" \
- && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
- && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
- && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
- && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
-
- else
- dstfile=`basename "$dst"`
-
- # Make a couple of temp file names in the proper directory.
- dsttmp=$dstdir/_inst.$$_
- rmtmp=$dstdir/_rm.$$_
-
- # Trap to clean up those temp files at exit.
- trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
- trap '(exit $?); exit' 1 2 13 15
-
- # Copy the file name to the temp name.
- $doit $cpprog "$src" "$dsttmp" &&
-
- # and set any options; do chmod last to preserve setuid bits.
- #
- # If any of these fail, we abort the whole thing. If we want to
- # ignore errors from any of these, just make sure not to ignore
- # errors from the above "$doit $cpprog $src $dsttmp" command.
- #
- { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
- && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
- && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
- && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
-
- # Now rename the file to the real destination.
- { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
- || {
- # The rename failed, perhaps because mv can't rename something else
- # to itself, or perhaps because mv is so ancient that it does not
- # support -f.
-
- # Now remove or move aside any old file at destination location.
- # We try this two ways since rm can't unlink itself on some
- # systems and the destination file might be busy for other
- # reasons. In this case, the final cleanup might fail but the new
- # file should still install successfully.
- {
- if test -f "$dstdir/$dstfile"; then
- $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
- || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
- || {
- echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
- (exit 1); exit 1
- }
- else
- :
- fi
- } &&
-
- # Now rename the file to the real destination.
- $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
- }
- }
- fi || { (exit 1); exit 1; }
-done
-
-# The final little trick to "correctly" pass the exit status to the exit trap.
-{
- (exit 0); exit 0
-}
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-end: "$"
-# End:
slic/config/make
diff -N aida.gmk
--- aida.gmk 9 Mar 2005 20:02:37 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,5 +0,0 @@
-ifdef G4ANALYSIS_USE
- CPPFLAGS += `aida-config --include`
- LDFLAGS += `aida-config --lib`
- LOADLIBS += `aida-config --lib`
-endif
slic/config/make
diff -N gdml.gmk
--- gdml.gmk 31 Mar 2006 01:10:07 -0000 1.13
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,39 +0,0 @@
-# $Header: /cvs/lcd/slic/config/make/Attic/gdml.gmk,v 1.13 2006/03/31 01:10:07 jeremy Exp $
-
-#
-# GDML make fragment
-#
-
-ifndef GDML_BASE
- $(error define GDML_BASE=/path/to/GDML2/CPPGDML
-endif
-
-# lib dir
-ifndef GDML_LIB_DIR
-
- # guess lib dir if not set
- ifdef G4SYSTEM
- GDML_LIB_DIR = $(GDML_BASE)/build/$(G4SYSTEM)/lib
- else
- $(error Can't guess GDML_LIB_DIR because G4SYSTEM is not set.)
- endif
-endif
-
-# GDML includes
-CPPFLAGS += -I$(GDML_BASE)/G4Binding/G4Evaluator \
- -I$(GDML_BASE)/G4Binding/G4Processor \
- -I$(GDML_BASE)/G4Binding/G4Subscribers \
- -I$(GDML_BASE)/G4Binding/G4Writer \
- -I$(GDML_BASE)/Common/Writer \
- -I$(GDML_BASE)/Common/Schema \
- -I$(GDML_BASE)/Common/Processes \
- -I$(GDML_BASE)/Common/Saxana
-
-GDML_LINK_LIBS += -L$(GDML_LIB_DIR)
-# FIXME: ugly static link order
-# GDML_LINK_LIBS += -lSaxana -lProcesses -lWriter -lG4Processor -lG4Subscribers -lG4Writer -lG4Subscribers -lG4Processor -lSaxana -lProcesses -lWriter
-# GDML_LINK_LIBS += -lG4Subscribers -lG4Processor -lG4Writer -lWriter -lSaxana -lProcesses
-#-lG4Subscribers -lG4Processor -lSaxana -lProcesses -lWriter
-GDML_LINK_LIBS += -lgdml
-
-EXTRALIBS += $(GDML_LINK_LIBS)
slic/config/make
diff -N geant4.gmk
--- geant4.gmk 9 Apr 2013 21:24:10 -0000 1.4
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,29 +0,0 @@
-# $Header: /cvs/lcd/slic/config/make/Attic/geant4.gmk,v 1.4 2013/04/09 21:24:10 jeremy Exp $
-
-#
-# Geant4 make fragment
-#
-
-# Geant4 Framework
-ifdef G4INSTALL
-
- ifdef G4UI_USE_TERMINAL
- CPPFLAGS += -DG4UI_USE_TERMINAL
- endif
-
- # CLHEP headers
- CPPFLAGS += -I$(G4INSTALL)/source/externals/clhep/include/
-
- export GLOBALLIBS = yes
- export G4VIS_NONE = yes
- export G4LIB_USE_CLHEP = yes
-
- include $(G4INSTALL)/config/binmake.gmk
-
- # extra libs for static linking
- #LOADLIBS += -lCLHEP
- #EXTRALIBS += -lCLHEP
-
-else
- $(error define G4INSTALL=/path/to/geant4)
-endif
slic/config/make
diff -N hadronic_lists.gmk
--- hadronic_lists.gmk 6 Dec 2005 00:54:18 -0000 1.8
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,44 +0,0 @@
-# $Header: /cvs/lcd/slic/config/make/Attic/hadronic_lists.gmk,v 1.8 2005/12/06 00:54:18 jeremy Exp $
-
-#
-# Based on $G4INSTALL/physics_lists/hadronic/GNUmakefile.user.code.example
-#
-# Reduced physics list selection from recommendations by D. Wright.
-#
-
-ifndef G4INSTALL
- $(error define G4INSTALL)
-endif
-
-ifndef G4LISTS_BASE
- EXTRALIBS += -L$(G4LIB)/plists/$(G4SYSTEM)
- G4LISTS_BASE = $(G4INSTALL)/physics_lists
-else
- EXTRALIBS += -L$(G4LISTS_BASE)/hadronic/plists/lib/$(G4SYSTEM)
-endif
-
-
-LDFLAGS += -L$(G4INSTALL)/lib/plists/$(G4SYSTEM)
-
-#
-# Select your physics lists to link against.
-#
-EXTRALIBS += -lFTFC
-EXTRALIBS += -lFTFP
-EXTRALIBS += -lLHEP
-EXTRALIBS += -lQGSP_BERT
-EXTRALIBS += -lQGSC
-EXTRALIBS += -lQGSP
-EXTRALIBS += -lLHEP_BERT
-EXTRALIBS += -lQGSP_BIC
-EXTRALIBS += -lPackaging
-
-CPPFLAGS += -I$(G4LISTS_BASE)/hadronic/FTFC/include
-CPPFLAGS += -I$(G4LISTS_BASE)/hadronic/FTFP/include
-CPPFLAGS += -I$(G4LISTS_BASE)/hadronic/LHEP/include
-CPPFLAGS += -I$(G4LISTS_BASE)/hadronic/LHEP_BERT/include
-CPPFLAGS += -I$(G4LISTS_BASE)/hadronic/Packaging/include
-CPPFLAGS += -I$(G4LISTS_BASE)/hadronic/QGSC/include
-CPPFLAGS += -I$(G4LISTS_BASE)/hadronic/QGSP/include
-CPPFLAGS += -I$(G4LISTS_BASE)/hadronic/QGSP_BERT/include
-CPPFLAGS += -I$(G4LISTS_BASE)/hadronic/QGSP_BIC/include
slic/config/make
diff -N heppdt.gmk
--- heppdt.gmk 24 Sep 2009 18:03:13 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,18 +0,0 @@
-# $Id: heppdt.gmk,v 1.3 2009/09/24 18:03:13 jeremy Exp $
-
-#
-# HepPDT Make fragment.
-#
-# These settings assume a standard in-place build
-# and do not require that 'make install' was executed.
-#
-
-ifdef USE_HEPPDT
- ifdef HEPPDT_BASE
- CPPFLAGS += -I$(HEPPDT_BASE)/include
- LDFLAGS += -L$(HEPPDT_BASE)/src/HepPDT/.libs -L$(HEPPDT_BASE)/src/HepPID/.libs
- LOADLIBS += -lHepPDT -lHepPID
- else
- $(error define HEPPDT_BASE=/path/to/heppdt/install_dir)
- endif
-endif
slic/config/make
diff -N lcdd.gmk
--- lcdd.gmk 9 Feb 2006 03:04:46 -0000 1.5
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,19 +0,0 @@
-# $Header: /cvs/lcd/slic/config/make/Attic/lcdd.gmk,v 1.5 2006/02/09 03:04:46 jeremy Exp $
-
-#
-# LCDD make fragment
-#
-ifdef LCDD_BASE
-
- # includes
- CPPFLAGS += -I$(LCDD_BASE)/include
-
- # libs
- EXTRALIBS += -L$(LCDD_BASE)/lib
- EXTRALIBS += -llcdd
-
-# LDFLAGS += -L$(LCDD_BASE)/lib
-# LOADLIBS += -llcdd
-else
- $(error define LCDD_BASE=/path/to/lcdd)
-endif
slic/config/make
diff -N lcio.gmk
--- lcio.gmk 23 Aug 2011 22:41:52 -0000 1.4
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,20 +0,0 @@
-# $Header: /cvs/lcd/slic/config/make/Attic/lcio.gmk,v 1.4 2011/08/23 22:41:52 jeremy Exp $
-
-#
-# LCIO make fragment
-#
-
-ifdef LCIO
-
- # includes
- CPPFLAGS += -I$(LCIO)/include
- CPPFLAGS += -I$(LCIO)/src/cpp/include
- CPPFLAGS += -I$(LCIO)/sio/include
-
- # libs
- LDFLAGS += -L$(LCIO)/lib -L$(LCIO)/sio/lib
- LOADLIBS += -llcio -lsio
- LOADLIBS += -lz
-else
- $(error define LCIO=/path/to/lcio)
-endif
slic/config/make
diff -N lcphys.gmk
--- lcphys.gmk 11 Apr 2008 03:20:19 -0000 1.4
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,18 +0,0 @@
-# $Header: /cvs/lcd/slic/config/make/Attic/lcphys.gmk,v 1.4 2008/04/11 03:20:19 jeremy Exp $
-
-#
-# LCPhys make fragment
-#
-
-ifeq ($(enable_lcphys), yes)
- ifdef LCPHYS_BASE
-
- # includes
- CPPFLAGS += -I$(LCPHYS_BASE)/include
-
- # libs
- EXTRALIBS += -lLCPhys
- else
- $(error define LCPHYS_BASE=/path/to/LCPhys)
- endif
-endif
slic/config/make
diff -N qt.gmk
--- qt.gmk 9 Jun 2011 22:32:08 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,4 +0,0 @@
-ifdef QTHOME
- #LDFLAGS += -L$(QTHOME)/lib
- LDFLAGS += $(QTLIBS) $(GLQTLIBS)
-endif
slic/config/make
diff -N xerces.gmk
--- xerces.gmk 8 Mar 2013 19:38:46 -0000 1.12
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,28 +0,0 @@
-# $Header: /cvs/lcd/slic/config/make/Attic/xerces.gmk,v 1.12 2013/03/08 19:38:46 jstrube Exp $
-
-#
-# Xerces-C make fragment
-#
-ifdef XERCESCROOT
-
- # Xerces includes
- CPPFLAGS += -I$(XERCESCROOT)/include
-
- # library
- LDFLAGS += -L$(XERCESCROOT)/lib -L$(XERCESCROOT)/lib \
- -l$(XERCES_LIBNAME)
-
- # This is needed on some Mac systems.
- ifeq ($(G4SYSTEM),Darwin-g++)
- LDFLAGS += -framework CoreServices
- endif
-
- # load path
- LD_LIBRARY_PATH := $(XERCESCROOT)/lib:$(LD_LIBRARY_PATH)
- PATH := $(XERCESCROOT)/lib:$(XERCESCROOT)/lib:$(PATH)
-
- LOADLIBS += -l$(XERCES_LIBNAME)
- EXTRALIBS +=-l$(XERCES_LIBNAME)
-else
- $(error define XERCESCROOT=/path/to/xerces/install/dir)
-endif
slic/config/setup
diff -N compile.sh
--- compile.sh 29 Mar 2005 22:59:50 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,82 +0,0 @@
-#!/usr/bin/env bash
-
-echo ----SLIC Setup Script----
-echo
-echo Packages to setup:
-echo
-echo SLIC
-echo LCDD
-echo GDML
-echo LCPhys
-echo
-echo Starting build...
-echo
-
-if [ -z "$SLIC_BASE" ]; then
- echo "WARNING: SLIC_BASE not set."
- echo "Setting to current directory."
-
- export SLIC_BASE=`pwd`
-fi
-
-user_env=$SLIC_BASE/config/setup/env-local.sh
-
-if [ ! -e "$user_env" ]; then
- echo "ERROR: User setup file $user_env does not exist."
- exit 1
-fi
-
-if [ ! -r "$user_env" ]; then
- echo "ERROR: User setup file $user_env does not have read permission."
- exit 1
-fi
-
-source $user_env
-
-# build GDML
-echo
-echo "Building GDML..."
-cd $GDML_BASE
-make
-
-# shared libs bad --> mysterious Seg Fault!
-rm $GDML_BASE/build/$PLATFORM/lib/*.so
-
-echo "Done."
-
-# build LCPhys
-if [ "$LCPHYS_BUILD" == "Y" ]; then
-
- if [ ! -w "$G4LIB/$G4SYSTEM" ]; then
- echo "ERROR: Write access required to Geant4 libs dir to build LCPhys."
- exit 1
- fi
-
- echo "Building LCPhys..."
- cd $LCPHYS_BASE
- make
- echo "Done"
-else
- echo "Skipping LCPhys build."
- echo "Assuming libLCPhys.a or .so will be found in Geant4 libs area."
-fi
-
-# build LCDD
-echo
-echo "Building LCDD..."
-cd $LCDD_BASE
-export G4WORKDIR=`pwd`
-make
-echo "Done."
-
-# build SLIC
-echo
-echo "Building SLIC..."
-cd $SLIC_BASE
-export G4WORKDIR=`pwd`
-make
-echo "SLIC is done building. Thanks for your patience."
-echo
-
-# run it to see that the build worked
-$SLIC_BASE/bin/$G4SYSTEM/slic --help
slic/config/setup
diff -N config.sh
--- config.sh 29 Mar 2005 21:32:53 -0000 1.5
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,439 +0,0 @@
-#!/usr/bin/env bash
-
-# $Header: /cvs/lcd/slic/config/setup/Attic/config.sh,v 1.5 2005/03/29 21:32:53 jeremy Exp $
-#
-# Script to create $SLIC_BASE/config/setup/env-local.sh
-# for user build of sim packages.
-#
-
-function check_dir()
-{
- if [ ! -e "$1" ]
- then
- echo "ERROR: Directory [$1] does not exist!"
- exit 1
- fi
-}
-
-# SLAC CVS
-slac_cvsroot=':pserver:[log in to unmask]:/cvs/lcd'
-export CVSROOT=$slac_cvsroot
-
-# I doubt other compilers will work.
-compiler='gcc'
-
-# default package settings from environment
-sim_build_dir=$HOME
-read_sim_build_dir=''
-
-g4install=$G4INSTALL
-read_g4install=''
-
-g4system=$G4SYSTEM
-read_g4system=''
-
-g4_setup_script=''
-
-xerces_dir=$XERCESCROOT
-read_xerces_dir=''
-
-lcio_dir=$LCIO
-read_lcio_dir=''
-
-lcdd_dir=$LCDD_BASE
-read_lcdd_dir=''
-
-if [ -n "$SLIC_BASE" ]; then
- # env set
- slic_dir=$SLIC_BASE
-else
-
- # assume running from SLIC_BASE
- slic_dir=`pwd`
-fi
-read_slic_dir=''
-
-lcphys_dir=$LCPHYS_BASE
-read_lcphys_dir=''
-
-# GDML
-gdml_dir=''
-read_gdml_dir=''
-
-# try to assign GDML build vars without user input
-gdml_platform=`uname`_${compiler}
-read_gdml_platform=''
-
-gdml_site=`hostname`
-read_gdml_site=''
-
-gdml_config_dir=''
-
-# build / checkout vars
-checkout_lcphys='Y'
-checkout_lcdd='Y'
-
-build_gdml='Y'
-read_build_gdml=''
-
-build_lcphys='Y'
-read_build_lcphys=''
-
-build_lcdd='Y'
-read_build_lcdd=''
-
-# user env script
-user_env=''
-
-echo ----SLIC Setup Script----
-echo
-echo This script will create the file \$SLIC_BASE/config/setup/env-local.sh
-echo containing your local settings for the 7 simulator packages comprising
-echo the SLIC framework. It can also perform CVS checkouts and
-echo setup of files necessary for the build.
-echo
-echo Before proceeding, you need to make sure that the
-echo following packages are already installed and accessible
-echo on your system, as the install script assumes they are
-echo present and correctly setup:
-echo
-echo -- Geant4 7.x with CLHEP 1.8.x or 1.9.x --
-echo
-echo http://wwwasd.web.cern.ch/wwwasd/geant4/geant4.html
-echo
-echo envars: G4INSTALL, G4SYSTEM, CLHEP_BASE_DIR
-echo
-echo Source your Geant4 setup script
-echo \$G4INSTALL/.config/bin/\$G4SYSTEM/env.sh
-echo for best results.
-echo
-echo -- LCIO 1.4 --
-echo
-echo http://lcio.desy.de/
-echo
-echo envars: LCIO
-echo
-echo -- Xerces C++ 2.6.0 --
-echo
-echo http://xml.apache.org/xerces-c/download.cgi
-echo
-echo envars: XERCESCROOT
-echo
-echo If you are missing one or more of these, type Ctrl-C and go
-echo install.
-echo
-echo Also set the base area of your SLIC package checkout:
-echo
-echo export SLIC_BASE=/path/to/slic
-echo
-echo If you already checked out LCPhys and LCDD and want to use these
-echo instead of checking them out again, also set these variables:
-echo
-echo export LCPHYS_BASE=/path/to/lcphys
-echo export LCDD_BASE=/path/to/lcdd
-echo
-echo Press ENTER to continue.
-read
-echo IMPORTANT NOTE: For directory locations, please
-echo use absolute paths.
-echo
-
-# build dir
-echo "Where should the simulator packages be installed?"
-echo Default [$sim_build_dir]
-
-read read_sim_build_dir
-
-if [ -n "$read_sim_build_dir" ]; then
- sim_build_dir=$read_sim_build_dir
-fi
-
-check_dir "$sim_build_dir"
-
-# needs write access as well
-if [ ! -w "$sim_build_dir" ]; then
- echo "ERROR: No write access to $sim_build_dir."
- exit 1
-fi
-
-# Geant4 G4INSTALL
-echo
-echo "Where is Geant4 installed?"
-echo Default [$g4install]
-read read_g4install
-
-if [ -n "$read_g4install" ]; then
- $g4install=$read_g4install
-fi
-
-check_dir "$g4install"
-
-# Geant4 G4SYSTEM
-echo
-echo "What was the setting for \$G4SYSTEM?"
-echo Default [$G4SYSTEM]
-read g4system
-
-if [ -z "$g4system" ]
-then
- if [ -n "$G4SYSTEM" ]; then
- g4system=$G4SYSTEM
- else
- echo "ERROR: Geant4 system not set."
- fi
-fi
-
-# check for Geant4 setup script to bootstrap environment
-geant4_setup_script="$g4install/.config/bin/$g4system/env.sh"
-if [ -e "$geant4_setup_script" ]; then
- echo "Sourcing Geant4 setup script at $geant4_setup_script."
- source $geant4_setup_script &> /dev/null
-else
- echo "ERROR: Could not find Geant4 setup script at \$G4INSTALL/.config/bin/\$G4SYSTEM/env.sh."
-fi
-
-# Xerces
-echo
-echo "Where is Xerces-C++ installed?"
-echo Default [$xerces_dir]
-read read_xerces_dir
-
-if [ -n "$read_xerces_dir" ]; then
- xerces_dir=$read_xerces_dir
-fi
-
-check_dir "$xerces_dir"
-
-# Lcio
-echo
-echo "Where is LCIO installed?"
-echo "Default [$lcio_dir]"
-read read_lcio_dir
-
-if [ -n "$read_lcio_dir" ]; then
- lcio_dir=$read_lcio_dir
-fi
-
-check_dir "$lcio_dir"
-
-# SLIC
-echo
-echo "What was the SLIC checkout dir?"
-
-echo "Default [${slic_dir}]"
-read read_slic_dir
-
-if [ -n "$read_slic_dir" ]; then
- slic_dir=$read_slic_dir
-fi
-
-check_dir "$slic_dir"
-
-user_env=$slic_dir/config/setup/env-local.sh
-
-# see if LCDD and LCPhys need to be checked out
-echo
-echo "Should LCDD be automatically checked out to $sim_build_dir?"
-echo "[Y]es [N]o"
-echo "Default [$checkout_lcdd]"
-
-read read_checkout_lcdd
-
-if [ -n "$read_checkout_lcdd" ]; then
- checkout_lcdd=$read_checkout_lcdd
-fi
-
-# LCDD from env
-if [ "$checkout_lcdd" == "N" ]; then
-
- echo "LCDD will NOT be checked out by the build script."
-
- # check LCDD only if not checkout above
- echo
- echo "Where was LCDD checked out?"
- echo "Default [$lcdd_dir]"
- read lcdd_dir
-
- if [ -n "$read_lcdd_dir" ]; then
- lcdd_dir=$read_lcdd_dir
- fi
-
-# LCDD checkout
-elif [ "$checkout_lcdd" == "Y" ]; then
-
- oldpwd=`pwd`
- cd $sim_build_dir
-
- # checkout lcdd
- echo
- echo "Checking out LCDD..."
- cvs co lcdd &> /dev/null
- cd lcdd
- lcdd_dir=`pwd`
- cd $oldpwd
- echo "Done."
-else
- echo "ERROR: Invalid selection."
- exit 1
-fi
-
-echo
-echo "Should LCPhys be automatically checked out to $sim_build_dir?"
-echo [Y]es [N]o
-echo Default [$checkout_lcphys]
-read $checkout_lcphys
-
-if [ "$checkout_lcphys" == "N" ]; then
-
- echo
- echo LCPhys will NOT be checked out.
- echo
-
- # check LCPhys only if not checkout above
- echo
- echo "Where was LCPhys checked out?"
- echo "Default [$lcphys_dir]"
- read read_lcphys_dir
-
- if [ -n "$read_lcphys_dir" ]; then
- lcphys_dir=$read_lcphys_dir
- fi
-
- check_dir "$lcphys_dir"
-
-# checkout LCPhys
-else
- echo
- echo "Checking out LCPhys..."
- oldpwd=`pwd`
- cd $sim_build_dir
- cvs co LCPhys &> /dev/null
- cd LCPhys
- lcphys_dir=`pwd`
- cd $oldpwd
- echo "Done."
-fi
-
-# maybe don't need to build LCPhys, just get headers
-echo
-echo "Do you need to build LCPhys?"
-echo "[Y]es [N]o"
-echo "Default [$build_lcphys]"
-read read_build_lcphys
-
-if [ -n "$read_build_lcphys" ]; then
- build_lcphys=$read_build_lcphys
-fi
-
-if [ "$build_lcphys" == "Y" ]; then
- # copy LCPhys Makefile from SLIC
- lcphys_makefile="$slic_dir/config/make/GNUmakefile.LCPhys"
- if [ -e "$lcphys_makefile" ]; then
- cp_lcphys_makefile="cp $lcphys_makefile $lcphys_dir/GNUmakefile"
- echo
- echo "$cp_lcphys_makefile"
- $cp_lcphys_makefile
- else
- echo "ERROR: $lcphys_makefile does not exist. Probably SLIC dir was wrong."
- exit 1
- fi
-elif [ "$build_lcphys" == "N" ]; then
- echo "LCPhys will not be built."
-else
- echo "ERROR: Invalid response."
- exit 1
-fi
-
-# untar GDML from lcdd checkout
-gdml_tarball="$lcdd_dir/extern/gdml.tar.gz"
-if [ -e "$gdml_tarball" ]; then
- tar -zxvf $gdml_tarball -C $sim_build_dir &> /dev/null
- cd $sim_build_dir/gdml
- gdml_dir=`pwd`
- echo
- echo "Untarred $gdml_tarball to $gdml_dir."
- cd -
-else
- echo "ERROR: GDML tarball $gdml_tarball does not exist."
-fi
-
-# GDML
-echo
-echo "What should be the value of GDML's PLATFORM variable?"
-
-echo "Default [$gdml_platform]"
-read read_gdml_platform
-
-if [ -n "$read_gdml_platform" ]; then
- gdml_platform=$read_gdml_platform
-fi
-
-echo
-echo "What should be the value of GDML's SITE variable?"
-echo "Default [$gdml_site]"
-read read_gdml_site
-
-if [ -n "$read_gdml_site" ]; then
- gdml_site=$read_gdml_site
-fi
-
-export SITE=$gdml_site
-
-# now we need to setup GDML's gmk files from the LCDD distrib
-gdml_config_dir=$gdml_dir/config/make
-lcdd_config_dir=$lcdd_dir/config/make/gdml_build
-
-cp $lcdd_config_dir/ext_clhep.gmk $gdml_config_dir/ext_${gdml_site}_clhep.gmk
-cp $lcdd_config_dir/ext_geant4.gmk $gdml_config_dir/ext_${gdml_site}_geant4.gmk
-cp $lcdd_config_dir/ext_xercesc.gmk $gdml_config_dir/ext_${gdml_site}_xercesc.gmk
-cp $lcdd_config_dir/platform_settings.gmk $gdml_config_dir/${gdml_platform}_settings.gmk # hope you are like Linux!
-cp $lcdd_config_dir/site_settings.gmk $gdml_config_dir/${gdml_site}_settings.gmk
-
-# write out user config for the build
-echo "Writing out user settings file: $user_env"
-echo
-echo "Source this file when rebuilding."
-
-# create env-local.sh script
-> $user_env
-echo "#!/bin/sh" >> $user_env
-
-# timestamp
-echo "# SLIC setup script" >> $user_env
-echo "# Generated by \$SLIC_BASE/config/setup/config.sh" >> $user_env
-echo "# Created: `date`" >> $user_env
-
-# sim build
-echo export SIM_BUILD_DIR=$sim_build_dir >> $user_env
-
-# Geant4
-echo export G4INSTALL=$g4install >> $user_env
-echo export G4SYSTEM=$g4system >> $user_env
-echo source \$G4INSTALL/.config/bin/\$G4SYSTEM/env.sh >> $user_env
-echo export CLHEP_BASE_DIR=\$CLHEP_BASE_DIR >> $user_env
-
-# LCPhys
-echo export LCPHYS_BASE=$lcphys_dir >> $user_env
-echo export LCPHYS_BUILD=$build_lcphys >> $user_env
-
-# LCIO
-echo export LCIO=$lcio_dir >> $user_env
-
-# SLIC
-echo export SLIC_BASE=$slic_dir >> $user_env
-
-# LCDD
-echo export LCDD_BASE=$lcdd_dir >> $user_env
-
-# Xerces
-echo export XERCESCROOT=$xerces_dir >> $user_env
-
-# GDML
-echo export GDML_BASE=$gdml_dir >> $user_env
-echo export PLATFORM=$gdml_platform >> $user_env
-echo export GDML_LIB_DIR=\$GDML_BASE/build/\$PLATFORM/lib >> $user_env
-echo export SITE=$gdml_site >> $user_env
-echo export CLHEP_BASE=\$CLHEP_BASE_DIR >> $user_env
-
-# ldpath with Xerces only
-echo export LD_LIBRARY_PATH=\$XERCESCROOT/lib >> $user_env
slic/config/setup
diff -N setup-slic-nicadd.sh
--- setup-slic-nicadd.sh 22 Dec 2004 16:38:18 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,38 +0,0 @@
-#!/bin/sh
-
-if [ -z "$SLIC_BASE" ]; then
- export SLIC_BASE=`pwd`
-fi
-
-source /k2dist/bin/g4_6_2env.sh
-
-export G4WORKDIR=${SLIC_BASE}
-
-unset G4LIB_BUILD_SHARED
-export G4LIB_BUILD_STATIC=1
-
-export GDML_BASE=/k2dist/apps/lib/gdml/gdml_0_1_0_ForLCDD
-export GDML_LIB_DIR=${GDML_BASE}/rh73_gcc32/lib
-export CLHEP_BASE=$CLHEP_BASE_DIR
-
-export XERCESCROOT=/k2dist/apps/lib/xerces-c/v2-6-0
-export G4VERSION=`basename $G4INSTALL`
-export G4LIBDIR=$G4LIB/$G4SYSTEM
-
-export LCIO=/k2dist/apps/lib/lcio/v01-03
-
-#export LCDD=/k2dist/apps/sim/lcdd/current
-#export LCDD=/k2work/jeremy/lcdd/current
-export LCDD_BASE=/k2dist/apps/sim/lcdd/current
-
-unset LD_LIBRARY_PATH
-export LD_LIBRARY_PATH=${XERCESCROOT}/lib
-export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$CLHEP_LIB_DIR
-export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$G4LIB/$G4SYSTEM:$G4LIB/.lists_build/$G4SYSTEM
-
-echo "LCDD_BASE=${LCDD_BASE}"
-echo "XERCESCROOT=${XERCESCROOT}"
-echo "GDML_BASE=${GDML_BASE}"
-echo "GDML_LIB_DIR=${GDML_LIB_DIR}"
-echo "LCIO=${LCIO}"
-echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}"
slic/config/setup
diff -N setup-slic-slac.sh
--- setup-slic-slac.sh 1 Mar 2006 01:11:55 -0000 1.19
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,63 +0,0 @@
-#!/bin/sh
-
-#
-# Setup script for SLIC simulator package at SLAC.
-#
-
-# preliminary checks
-if [ -z "$PRJ_ROOT" ]; then
- _prjscript="/nfs/slac/g/lcd/mc/prj/bin/prj.sh"
-
- if [ -r "${_prjscript}" ]; then
- source ${_prjscript}
- else
- echo "ERROR: Cannot access MC project setup script."
- exit 1
- fi
-fi
-
-# setup SLIC_BASE var
-if [ -z "$SLIC_BASE" ]; then
- SLIC_BASE=`pwd`
-else
- echo "SLIC_BASE=$SLIC_BASE from env."
-fi
-
-export SLIC_BASE
-
-# setup LCDD_BASE var
-if [ -z "$LCDD_BASE" ]; then
- LCDD_BASE=${PRJ_DIST}/lcdd/pro
-else
- echo "LCDD_BASE=$LCDD_BASE from env."
-fi
-
-export LCDD_BASE
-
-# Geant4 dev version
-source ${PRJ_SCRIPTS}/setup-geant4.8.0.sh
-
-# custom G4 settings
-unset G4LIB_BUILD_SHARED
-export G4LIB_BUILD_STATIC=1
-export G4UI_USE_TERMINAL=1
-
-# set G4 work dir
-export G4WORKDIR=${SLIC_BASE}
-
-# LCPhys for includes
-export LCPHYS_BASE=${PRJ_DIST}/lcphys/pro
-
-# GDML and also sets up Xerces
-source ${PRJ_SCRIPTS}/setup-gdml.sh
-
-# LCIO
-export LCIO=${PRJ_DIST}/lcio/pro
-
-# print env
-echo "G4WORKDIR=$G4WORKDIR"
-echo "SLIC_BASE=$SLIC_BASE"
-echo "LCPHYS_BASE=$LCPHYS_BASE"
-echo "LCIO=$LCIO"
-echo "LCDD_BASE=$LCDD_BASE"
-echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
slic/config/setup
diff -N setup.sh.in
--- setup.sh.in 18 Dec 2006 22:08:48 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-export SLIC_BASE=@SLIC_PREFIX@
-
-export LCDD_BASE=@LCDD_PREFIX@
-
-export GDML_BASE=@GDML_PREFIX@
-
-export LCIO=@LCIO_PREFIX@
-
-export LCPHYS_BASE=@LCPHYS_PREFIX@
-
-export G4INSTALL=@G4_PREFIX@
-export G4SYSTEM=@G4SYSTEM@
-
-export CLHEP_BASE_DIR=@CLHEP_PREFIX@
-
-source $G4INSTALL/.config/bin/$G4SYSTEM/env.sh
-
-export XERCESCROOT=@XERCES_PREFIX@
-
-export LD_LIBRARY_PATH=$XERCESCROOT/lib:$LD_LIBRARY_PATH
-
-echo "SLIC_BASE=$SLIC_BASE"
-echo "LCDD_BASE=$LCDD_BASE"
-echo "GDML_BASE=$GDML_BASE"
-echo "LCIO=$LCIO"
-echo "LCPHYS_BASE=$LCPHYS_BASE"
-echo "G4INSTALL=$G4INSTALL"
-echo "G4SYSTEM=$G4SYSTEM"
-echo "XERCESCROOT=$XERCESCROOT"
-echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
CVSspam 0.2.12