Update of /cvsroot/squeak/squeak/platforms/unix/config In directory sc8-pr-cvs1:/tmp/cvs-serv30143/config Added Files: Makefile Makefile.in Makefile.install Makefile.plg.in Squeak.spec.in VMMaker.config acinclude.m4 aclocal.m4 build config.guess config.h.in config.sub configure configure.ac gnuify inisqueak.in install-sh ltcf-c.sh ltconfig ltmain.sh make.cfg.in make.ext.in make.int.in make.prg.in mkacinc mkconfig.in mkinstalldirs mkman mkmf mktargets relpath uninstall version version.stamp verstamp vmm.config Log Message: Ian Piumarta's release 3.4.1 --- NEW FILE: Makefile --- configure : .force ./mkacinc > acplugins.m4 aclocal autoconf rm acplugins.m4 .force : --- NEW FILE: Makefile.in --- # Makefile.in for Unix Squeak using VMMaker -*- makefile -*- # # Copyright (C) 1996-2002 Ian Piumarta and other authors/contributors # as listed elsewhere in this file. # All rights reserved. # # This file is part of Unix Squeak. # # This file 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. # # You may use and/or distribute this file ONLY as part of Squeak, under # the terms of the Squeak License as described in `LICENSE' in the base of # this distribution, subject to the following restrictions: # # 1. The origin of this software must not be misrepresented; you must not # claim that you wrote the original software. If you use this software # in a product, an acknowledgment to the original author(s) (and any # other contributors mentioned herein) in the product documentation # would be appreciated but is not required. # # 2. This notice must not be removed or altered in any source distribution. # # Using (or modifying this file for use) in any context other than Squeak # changes these copyright conditions. Read the file `COPYING' in the # directory `platforms/unix/doc' before proceeding with any such use. # # You are not allowed to distribute a modified version of this file # under its original name without explicit permission to do so. If # you change it, rename it. # # Author: ian...@in... # # Last edited: 2003-03-04 06:44:45 by piumarta on emilia.inria.fr @make_cfg@ @make_prg@ la = .la SQLIBS = [targets] PLUGINS_LA = [plugins] squeak = squeak$(NOX) all : $(squeak) plugins squeak.1 $(npsqueak) # VM $(squeak) : config.sh $(SQLIBS) version.o $(LINK) $(squeak) $(SQLIBS) version.o $(LIBS) [plibs] size $(squeak) @echo @./$(squeak) -version @echo version.o : version.c $(COMPILE) version.o version.c version.c : $(SQLIBS) ${cfgdir}/verstamp version.c $(CC) plugins : config.sh $(PLUGINS_LA) # npsqueak npsqueak : nps/npsqueak.so nps : mkdir nps $(SHELL) -ec 'cd nps; ln -s $(topdir)/platforms/unix/npsqueak/* .' nps/npsqueak.so : nps $(SHELL) -ec 'cd nps; $(MAKE) VM_VERSION=$(VM_VERSION) SQ_DIR=$(imgdir)' # manual page squeak.1 : $(topdir)/platforms/unix/doc/squeak.1 $(cfgdir)/mkman $(SQ_MAJOR) $(SQ_VERSION) \ $(bindir) $(imgdir) $(plgdir) $(mandir) $(docdir) \ < $(topdir)/platforms/unix/doc/squeak.1 > $@ # install/distrib (these just get in the way -- suck 'em in from elsewhere) @Makefile_install@ @Makefile_dist@ @Makefile_rpm@ @Makefile_deb@ # VMM configuration changes config.sh : $(srcdir)/plugins.int $(srcdir)/plugins.ext $(srcdir)/vm/sqNamedPrims.h ./config.status @echo @echo "configuration changed: please run make again" @echo @exit 1 [make_targets] .force : --- NEW FILE: Makefile.install --- # Makefile.install for Unix Squeak using VMMaker -*- makefile -*- # # Author: ian...@in... # # Last edited: Wed Nov 27 19:13:56 2002 by piumarta (Ian Piumarta) on xombul DOCFILES = COPYING COPYRIGHT LICENSE \ README.Contributing README.Keyboard README.Sound install : install-squeak install-plugins install-doc $(install_nps) uninstall : uninstall-squeak uninstall-plugins uninstall-doc $(uninstall_nps) # squeak install-squeak : $(squeak) $(MKINSTALLDIRS) $(ROOT)$(plgdir) $(INSTALL_PROG) -s $(squeak) $(ROOT)$(plgdir) $(MKINSTALLDIRS) $(ROOT)$(bindir) ( path=`$(cfgdir)/relpath $(bindir) $(plgdir)`; \ cd $(ROOT)$(bindir); \ rm -f $(squeak); \ $(LN_S) $$path/$(squeak) .; ) uninstall-squeak : .force @$(UNINSTALL) $(ROOT)$(plgdir) $(squeak) @$(UNINSTALL) $(ROOT)$(bindir) $(squeak) # plugins install-plugins : plugins $(MKINSTALLDIRS) $(ROOT)$(plgdir) @list='$(PLUGINS_LA)'; for p in $$list; do \ if test -f */$$p; then \ echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(ROOT)$(plgdir)/$$p"; \ $(LIBTOOL) --mode=install $(INSTALL) */$$p $(ROOT)$(plgdir)/$$p; \ else :; fi; \ done uninstall-plugins : .force @list='$(PLUGINS_LA)'; for p in $$list; do \ if test -f $(ROOT)/$(plgdir)/$$p; then \ echo "$(LIBTOOL) --mode=uninstall rm -f $(ROOT)$(plgdir)/$$p"; \ $(LIBTOOL) --mode=uninstall rm -f $(ROOT)$(plgdir)/$$p; \ else :; fi; \ done @$(UNINSTALL) $(ROOT)$(plgdir) # doc install-doc : squeak.1 $(MKINSTALLDIRS) $(ROOT)$(docdir) @list='$(DOCFILES)'; for f in $$list; do \ echo $(INSTALL_DATA) $(topdir)/platforms/unix/doc/$$f $(ROOT)$(docdir); \ $(INSTALL_DATA) $(topdir)/platforms/unix/doc/$$f $(ROOT)$(docdir); \ done $(MKINSTALLDIRS) $(ROOT)$(mandir)/man1 $(INSTALL_DATA) squeak.1 $(ROOT)$(mandir)/man1 rm -f $(ROOT)$(mandir)/man1/inisqueak.1 $(LN_S) squeak.1 $(ROOT)$(mandir)/man1/inisqueak.1 uninstall-doc : @$(UNINSTALL) $(ROOT)$(docdir) $(DOCFILES) @$(UNINSTALL) $(ROOT)$(mandir)/man1 squeak.1 inisqueak.1 # image install-image : inisqueak $(topdir)/Squeak$(SQ_VERSION).image.gz $(topdir)/Squeak$(SQ_VERSION).changes.gz $(MKINSTALLDIRS) $(ROOT)$(imgdir) $(INSTALL_DATA) $(topdir)/Squeak$(SQ_VERSION).image.gz $(ROOT)$(imgdir) $(INSTALL_DATA) $(topdir)/Squeak$(SQ_VERSION).changes.gz $(ROOT)$(imgdir) $(INSTALL_PROG) inisqueak $(ROOT)$(imgdir) $(MKINSTALLDIRS) $(ROOT)$(bindir) ( path=`$(cfgdir)/relpath $(bindir) $(imgdir)`; \ cd $(ROOT)$(bindir); \ rm -f inisqueak; \ $(LN_S) $$path/inisqueak .; ) uninstall-image : @$(UNINSTALL) $(ROOT)$(plgdir) Squeak$(SQ_VERSION).image.gz @$(UNINSTALL) $(ROOT)$(plgdir) Squeak$(SQ_VERSION).changes.gz @$(UNINSTALL) $(ROOT)$(plgdir) inisqueak # sources install-sources : $(MKINSTALLDIRS) $(ROOT)$(imgdir) $(INSTALL_DATA) $(topdir)/SqueakV$(SQ_MAJOR).sources $(ROOT)$(imgdir) uninstall-sources : @$(UNINSTALL) $(ROOT)$(imgdir) SqueakV$(SQ_MAJOR).sources # npsqueak install-npsqueak : npsqueak .force $(SHELL) -ec 'cd nps; $(MAKE) install VM_VERSION=$(VM_VERSION) SQ_DIR=$(ROOT)$(imgdir) imgdir=$(imgdir)' uninstall-npsqueak : npsqueak .force $(SHELL) -ec 'cd nps; $(MAKE) uninstall VM_VERSION=$(VM_VERSION) SQ_DIR=$(ROOT)$(imgdir) imgdir=$(imgdir)' --- NEW FILE: Makefile.plg.in --- # Makefile.plg.in -- default rules for plugins -*- makefile -*- # # Copyright (C) 1996-2002 Ian Piumarta and other authors/contributors # as listed elsewhere in this file. # All rights reserved. # # This file is part of Unix Squeak. # # This file 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. # # You may use and/or distribute this file ONLY as part of Squeak, under # the terms of the Squeak License as described in `LICENSE' in the base of # this distribution, subject to the following restrictions: # # 1. The origin of this software must not be misrepresented; you must not # claim that you wrote the original software. If you use this software # in a product, an acknowledgment to the original author(s) (and any # other contributors mentioned herein) in the product documentation # would be appreciated but is not required. # # 2. This notice must not be removed or altered in any source distribution. # # Using (or modifying this file for use) in any context other than Squeak # changes these copyright conditions. Read the file `COPYING' in the # directory `platforms/unix/doc' before proceeding with any such use. # # You are not allowed to distribute a modified version of this file # under its original name without explicit permission to do so. If # you change it, rename it. # # Author: ian...@in... # # Last edited: 2002-07-08 20:23:48 by piumarta on emilia.inria.fr [make_cfg] [make_plg] XINCLUDES = [includes] OBJS = [targets] TARGET = [target] PLIBS = [plibs] [make_inc] $(TARGET) : $(OBJS) Makefile $(LINK) $(TARGET) $(OBJS) $(PLIBS) $(RANLIB) $(TARGET) [make_targets] .force : --- NEW FILE: Squeak.spec.in --- Name: Squeak Version: [version] Release: [release] Requires: Summary: A portable implementation of the Smalltalk programming system. Vendor: Squeak.org Source: [source] Copyright: Squeak Software License Group: Development/Languages BuildRoot: /var/tmp/%{name}-root %description Squeak is a full-featured implementation of the Smalltalk programming language and environment based on (and largely compatible with) the original Smalltalk-80 system. Squeak has very powerful 2- and 3-D graphics, sound, video, MIDI, animation and other multimedia capabilities -- and one of the most impressive development environments ever created. It also includes a customisable framework for creating dynamic HTTP servers and interactively extensible Web sites. The entire Squeak system is open source software, distributed freely with a liberal license. See <http://Squeak.org> for further information. This package contains the binaries, libraries and data files needed to run version [version] of Squeak. %prep %setup -q %build mkdir bld-rpm cd bld-rpm ../platforms/unix/config/configure --prefix=/usr make %install rm -rf $RPM_BUILD_ROOT cd bld-rpm make install-bin install-image install-sources ROOT=$RPM_BUILD_ROOT cd .. # # package file lists # find $RPM_BUILD_ROOT \( -type f -o -type l \) -print | sed "s,$RPM_BUILD_ROOT,,;s,^//,/," > sq-files %clean echo "rm -rf $RPM_BUILD_ROOT" echo "rm -rf bld-rpm" %files -f sq-files %files -f ffi-files ffi --- NEW FILE: VMMaker.config --- 'From Squeak3.2 of 15 January 2002 [latest update: #4881] on 20 October 2002 at 6:43:10 pm'! !ObjectScanner new initialize! !self smartRefStream! Dictionary firstIndex lastIndex Collection FilePluginFloatArrayPluginGeniePluginIntegerPokerPluginJPEGReadWriter2PluginJPEGReaderPluginJoystickTabletPluginKlattSynthesizerPluginLargeIntegersPlugin MIDIPluginMatrix2x3PluginMiscPrimitivePluginMpeg3PluginRePluginSecurityPluginSerialPluginSocketPluginSoundCodecPluginSoundGenerationPluginSoundPluginStarSqueakPlugin SurfacePlugin B3DAcceleratorPlugin FFIPluginPseudoTTYPlugin)UnixOSProcessPluginNoThisSessionAvailable unix/home/piumarta/squeak/devel/src%/home/piumarta/squeak/devel/platforms! --- NEW FILE: acinclude.m4 --- # Local autoconf macros for configuring Unix Squeak -*- sh -*- # # Copyright (C) 1996-2002 Ian Piumarta and other authors/contributors # as listed elsewhere in this file. # All rights reserved. # # This file is part of Unix Squeak. # # This file 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. # # You may use and/or distribute this file ONLY as part of Squeak, under # the terms of the Squeak License as described in `LICENSE' in the base of # this distribution, subject to the following restrictions: # # 1. The origin of this software must not be misrepresented; you must not # claim that you wrote the original software. If you use this software # in a product, an acknowledgment to the original author(s) (and any # other contributors mentioned herein) in the product documentation # would be appreciated but is not required. # # 2. This notice must not be removed or altered in any source distribution. # # Using (or modifying this file for use) in any context other than Squeak # changes these copyright conditions. Read the file `COPYING' in the # directory `platforms/unix/doc' before proceeding with any such use. # # You are not allowed to distribute a modified version of this file # under its original name without explicit permission to do so. If # you change it, rename it. # # Author: Ian...@IN... # # Last edited: 2003-02-09 02:40:58 by piumarta on emilia.inria.fr AC_DEFUN(AC_CHECK_VMM_DIR,[ AC_MSG_CHECKING([sanity of VMMaker src directory]) vmmcheck () { if test ! ${2} ${3}; then AC_MSG_RESULT(bad) echo "missing ${1}: ${3}" exit 1 fi } vmmcheck dir -d ${vmmdir} vmmcheck file -f ${vmmdir}/plugins.int vmmcheck file -f ${vmmdir}/plugins.ext vmmcheck dir -d ${vmmdir}/plugins vmmcheck dir -d ${vmmdir}/vm vmmcheck file -f ${vmmdir}/vm/interp.c vmmcheck file -f ${vmmdir}/vm/sqNamedPrims.h vmmcheck dir -d ${vmmdir}/plugins AC_MSG_RESULT(okay)]) AC_DEFUN(AC_VM_VERSION,[ VM_MAJOR=$1 VM_MINOR=$2 VM_RELEASE=$3 SQ_MAJOR=$4 SQ_MINOR=$5 SQ_UPDATE=$6 ]) AC_DEFUN(AC_CHECK_VERSION,[ gendir="${vmmdir}/vm" version=`${cfgdir}/version ${gendir}/interp.c` SQ_MAJOR=`echo ${version} | cut -d ' ' -f 1` SQ_MINOR=`echo ${version} | cut -d ' ' -f 2` SQ_UPDATE=`echo ${version} | cut -d ' ' -f 3` ]) AC_SUBST(NM) AC_SUBST(LD) AC_DEFUN(AC_REQUIRE_SIZEOF,[ AC_MSG_CHECKING("size of $1") AC_TRY_RUN([#include <sys/types.h> int main(){return(sizeof($1) == $2)?0:1;}], AC_MSG_RESULT("okay"), AC_MSG_RESULT("bad") AC_MSG_ERROR("one or more basic data types has an incompatible size: giving up"))]) # Try to find a 64-bit integer data type. # NOTE: `long long' is 64 bits in ANSI C99 [ISO/IEC 9899:1999 (E)]. AC_DEFUN(AC_CHECK_INT64_T,[ AC_CACHE_CHECK([for 64-bit integer type],ac_cv_int64_t, AC_TRY_RUN([int main(){return(sizeof(long) == 8)?0:1;}], ac_cv_int64_t="long", AC_TRY_RUN([int main(){return(sizeof(long long) == 8)?0:1;}], ac_cv_int64_t="long long", ac_cv_int64_t="no"))) if test "$ac_cv_int64_t" = ""; then AC_MSG_ERROR([could not find a 64-bit integer type]) fi SQUEAK_INT64_T="$ac_cv_int64_t" AC_DEFINE_UNQUOTED(squeakInt64, $ac_cv_int64_t)]) AC_DEFUN(AC_NEED_SUNOS_H, [case "$host" in *-sunos*) AC_DEFINE(NEED_SUNOS_H, 1) esac]) AC_DEFUN(AC_PROG_CC_WALL, [AC_PROG_CC test "$GCC" = yes && WFLAGS="-Wall" AC_SUBST(WFLAGS)]) AC_DEFUN(AC_GNU_OPT, [AC_MSG_CHECKING("for optimization flags") ac_optflags="no" if test "$GCC" = yes; then case $host in i?86-*) ac_optflags="-fomit-frame-pointer" ;; esac fi if test "$ac_optflags" = "no"; then AC_MSG_RESULT([(none)]) else CFLAGS="$CFLAGS $ac_optflags" AC_MSG_RESULT("$ac_optflags") fi]) AC_DEFUN(AC_GNU_INTERP, [INTERP="interp" AC_SUBST(INTERP) AC_PROG_AWK AC_MSG_CHECKING(whether we can gnuify interp.c) if test "$GCC" = "yes"; then case "$GAWK" in no) ;; yes) AWK=awk; GAWK=yes ;; gawk) AWK=gawk; GAWK=yes ;; *) if test -x /usr/bin/gawk; then GAWK=yes AWK=gawk else if $AWK --version /dev/null </dev/null 2>&1 | fgrep -i gnu >/dev/null then GAWK=yes else GAWK=no fi fi ;; esac if test "$GAWK" = "yes" then INTERP="gnu-$INTERP"; AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) fi else AC_MSG_RESULT(no) fi]) AC_DEFUN(AC_PROG_AS_GNU, [AC_CHECK_PROG(AS,as,as) AC_MSG_CHECKING(for GNU as) case "$GAS" in yes|no) ;; *) if test "$AS" = "as" && as -v /dev/null </dev/null 2>&1 | fgrep -i gnu >/dev/null then GAS=yes else GAS=no fi ;; esac AC_MSG_RESULT($GAS)]) AC_DEFUN(AC_CHECK_ATEXIT, [AC_CACHE_CHECK([for atexit or on_exit], ac_cv_atexit, AC_TRY_COMPILE([#include <stdlib.h>],[atexit(0);], ac_cv_atexit="atexit", AC_TRY_COMPILE([#include <stdlib.h>],[on_exit(0);], ac_cv_atexit="on_exit", ac_cv_atexit="no"))) if test "$ac_cv_atexit" != "no"; then AC_DEFINE_UNQUOTED(AT_EXIT, $ac_cv_atexit) fi]) AC_DEFUN(AC_CHECK_SOCKLEN_T, [AC_CACHE_CHECK([for socklen_t in sys/socket.h], ac_cv_socklen_t, AC_TRY_COMPILE([#include <sys/socket.h>],[sizeof(socklen_t);], ac_cv_socklen_t="yes", ac_cv_socklen_t="no")) test "$ac_cv_socklen_t" != "yes" && AC_DEFINE(socklen_t, int)]) AC_DEFUN(AC_CHECK_TZSET, [AC_CACHE_CHECK([for tzset], ac_cv_tzset, AC_TRY_COMPILE([#include <time.h>],[tzet();], ac_cv_tzset="yes", ac_cv_tzset="no")) test "$ac_cv_tzset" != "no" && AC_DEFINE(HAVE_TZSET)]) AC_DEFUN(AC_CHECK_GMTOFF, [AC_CACHE_CHECK([for gmtoff in struct tm], ac_cv_tm_gmtoff, AC_TRY_COMPILE([#include <time.h>],[struct tm tm; tm.tm_gmtoff;], ac_cv_tm_gmtoff="yes", ac_cv_tm_gmtoff="no")) test "$ac_cv_tm_gmtoff" != "no" && AC_DEFINE(HAVE_TM_GMTOFF)]) AC_DEFUN(AC_CHECK_TIMEZONE, [AC_CACHE_CHECK([for timezone and daylight variables], ac_cv_timezone, AC_TRY_COMPILE([extern long timezone; extern int daylight;],[timezone;daylight;], ac_cv_timezone="yes", ac_cv_timezone="no")) test "$ac_cv_timezone" != "no" && AC_DEFINE(HAVE_TIMEZONE)]) AC_DEFUN(AC_CHECK_GETHOSTNAME, [AC_CACHE_CHECK([for gethostname in unistd.h], ac_cv_gethostname_p, AC_TRY_COMPILE([#include <unistd.h>],[return (int)gethostname;], ac_cv_gethostname_p="yes", ac_cv_gethostname_p="no")) test "$ac_cv_gethostname_p" = "no" && AC_DEFINE(NEED_GETHOSTNAME_P)]) if test -x /bin/test; then test=/bin/test else if test -x /usr/bin/test; then test=/usr/bin/test else test=test fi fi AC_DEFUN(AC_HAVE_NAS,[AC_MSG_CHECKING([for Network Audio System]) AC_TRY_COMPILE([#include <audio/audio.h>],[AuElementNotifyKindLowWater;], ac_cv_nas="yes", ac_cv_nas="no") AC_MSG_RESULT($ac_cv_nas)]) AC_DEFUN(AC_HAVE_OSS,[AC_MSG_CHECKING([for Open Sound System]) AC_TRY_COMPILE([#include <sys/soundcard.h>],[OPEN_SOUND_SYSTEM;], ac_cv_oss="yes", ac_cv_oss="no") AC_MSG_RESULT($ac_cv_oss)]) AC_DEFUN(AC_HAVE_SUN,[AC_MSG_CHECKING([for SunOS/Solaris audio]) AC_TRY_COMPILE([#include <sys/audioio.h>],[AUDIO_SUNVTS;], ac_cv_sun="yes" AC_DEFINE_UNQUOTED(HAVE_SYS_AUDIOIO_H,1), AC_TRY_COMPILE([#include <sun/audioio.h>],[AUDIO_SUNVTS;], ac_cv_sun="yes" AC_DEFINE_UNQUOTED(HAVE_SUN_AUDIOIO_H,1), ac_cv_sun="no")) AC_MSG_RESULT($ac_cv_sun)]) AC_DEFUN(AC_CHECK_SOUND,[ use_audio="" AC_MSG_CHECKING([for audio support]) AC_MSG_RESULT($with_audio) if test "$with_audio" = "auto" -o "$with_audio" = "oss"; then AC_HAVE_OSS if test "$ac_cv_oss" = "yes"; then use_audio=oss; with_audio=oss; fi fi if test "$with_audio" = "auto" -o "$with_audio" = "sun"; then AC_HAVE_SUN if test "$ac_cv_sun" = "yes"; then use_audio=sun; with_audio=sun; fi fi if test "$with_audio" = "auto" -o "$with_audio" = "nas"; then AC_HAVE_NAS if test "$ac_cv_nas" = "yes"; then use_audio=nas; with_audio=nas; fi fi if test "$with_audio" = "none"; then use_audio=none; fi if test "$use_audio" = ""; then AC_MSG_RESULT([******** AUDIO DISABLED (no support found for: $with_audio)]) use_audio=none fi case $use_audio in nas) AC_DEFINE(USE_AUDIO_NAS,1) LIBS="$LIBS -laudio -lXt" ;; oss) AC_DEFINE(USE_AUDIO_OSS,1) ;; sun) AC_DEFINE(USE_AUDIO_SUN,1) AC_HAVE_HEADERS(sys/audioio.h) ;; none) AC_DEFINE(USE_AUDIO_NONE,1) ;; *) echo; echo "this cannot happen"; echo; exit 1 ;; esac ]) AC_DEFUN(AC_C_BYTEORDER, [AC_C_BIGENDIAN if test $ac_cv_c_bigendian != yes then CFLAGS="$CFLAGS -DLSB_FIRST=1" fi]) AC_DEFUN(AC_C_DOUBLE_ALIGNMENT, [AC_CACHE_CHECK([whether misaligned access to doubles is ok], ac_cv_double_align, AC_TRY_RUN([f(int i){*(double *)i=*(double *)(i+4);} int main(){char b[[12]];f(b);return 0;}], ac_cv_double_align="yes", ac_cv_double_align="no")) test "$ac_cv_double_align" = "no" && AC_DEFINE(DOUBLE_WORD_ALIGNMENT)]) AC_DEFUN(AC_C_DOUBLE_ORDER, [AC_CACHE_CHECK([whether doubles are stored in Squeak order], ac_cv_double_order, AC_TRY_RUN([main(){ double d= 1.0; return *(int *)&d == 0;}], ac_cv_double_order="yes", ac_cv_double_order="no")) test "$ac_cv_double_order" = "no" && AC_DEFINE(DOUBLE_WORD_ORDER)]) # this assumes that libtool has already been configured and built -- # if not then err on the side of conservatism. AC_DEFUN(AC_MODULE_LIB_PREFIX, [AC_CACHE_CHECK([for prefix to use for loadable modules], ac_cv_module_prefix, if test -x ./libtool && test "`./libtool --config | fgrep need_lib_prefix`" = "need_lib_prefix=no" then ac_cv_module_prefix="(none)"; else ac_cv_module_prefix="lib" fi) AC_DEFINE_UNQUOTED(VM_MODULE_PREFIX,"$mkfrags_lib_prefix") test "$ac_cv_module_prefix" = lib && mkfrags_lib_prefix=lib]) AC_DEFUN(AC_64BIT_ARCH, [AC_MSG_CHECKING(for compiler flags to force 32-bit addresses) case $host in alpha*) CFLAGS_32="-taso" test "$GCC" = "yes" && CC="\$(utldir)/decgcc" ;; esac AC_MSG_RESULT($CFLAGS_32)]) ### plugin support # AC_PLUGIN_SUBST(varname,value) AC_DEFUN(AC_PLUGIN_DISABLE_PLUGIN,[ AC_MSG_RESULT([******** disabling $1]) disabled_plugins="${disabled_plugins} $1"]) AC_DEFUN(AC_PLUGIN_DISABLE,[ AC_PLUGIN_DISABLE_PLUGIN(${plugin})]) AC_DEFUN(AC_PLUGIN_USE_LIB,[ plibs="${plibs} $1"]) AC_DEFUN(AC_PLUGIN_DEFINE_UNQUOTED,[ echo 's%[\['$1'\]]%'$2'%g' >> ${plugin}.sub]) # AC_PLUGIN_SEARCH_LIBS(function,libs...) AC_DEFUN(AC_PLUGIN_SEARCH_LIBS,[ AC_SEARCH_LIBS($1,$2,, AC_MSG_RESULT([******** disabling ${plugin} due to missing libraries]) disabled_plugins="${disabled_plugins} ${plugin}")]) # AC_PLUGIN_CHECK_LIB(lib,func,ok,bad) AC_DEFUN(AC_PLUGIN_CHECK_LIB,[ AC_CHECK_LIB($1,$2, plibs="${plibs} $1", AC_MSG_RESULT([******** disabling ${plugin} due to missing libraries]) disabled_plugins="${disabled_plugins} ${plugin}")]) --- NEW FILE: aclocal.m4 --- # aclocal.m4 generated automatically by aclocal 1.6.1 -*- Autoconf -*- # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 # Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. # Local autoconf macros for configuring Unix Squeak -*- sh -*- # # Copyright (C) 1996-2002 Ian Piumarta and other authors/contributors # as listed elsewhere in this file. # All rights reserved. # [...3817 lines suppressed...] INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" INCLTDL= fi ]) # old names AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) --- NEW FILE: build --- #!/bin/bash # This script is really intended for "batch-mode" nightly builds of # Squeak binary distributions. It is therefore intended mainly for # the VM maintainer (who runs it from cron) rather than VM hackers in # general (who would probably prefer to run it from the command line). # Nevertheless it does attempt to be interactive (and even makes some # concessions towards user-friendliness ;) for those who cannot be # bothered to type `mkdir bld; cd bld; ../.../configure; make') -- but # your kilometrage may vary (enormously). # # Run `build -h' for a list of options (without much explanation). # Last edited: 2002-06-07 06:12:13 by piumarta on emilia.inria.fr UTS_SYS=`(uname -s) 2>/dev/null` if [ -x /usr/5bin/echo ]; then # SunOS SysV echo echo=/usr/5bin/echo elif [ -z "`(echo -e a) 2>/dev/null | fgrep e`" ]; then # GNU bash, etc. echo="echo -e" else # generic SysV echo=echo fi if [ "${UTS_SYS}" = QNX ]; then echo=echo fi ouch () { $echo $echo 'Ouch! That hurts!!' exit 1 } trap ouch 2 srcdir="" blddir="" batch="" doConfig=yes doMake=tes getYN() { if [ "${batch}" ]; then YN="y" else YN="" while [ ! "${YN}" ]; do read YN case ${YN} in y|Y|n|N) ;; *) $echo "Did you mean Y or N ? \c" >&2; YN="" ;; esac done fi $echo ${YN} } getN () { N=0 while [ ${N} -eq 0 ]; do read n let n="${n}" if [ "${n}" -a \( ${n} -gt 0 \) -a \( ${n} -le ${1} \) ]; then N=${n} else $echo "Please answer a number in the range [1-${1}]: \c" fi done $echo ${N} } usage () { $echo "usage: ${0} [-c] [-h] [-m] [-y] [-s srcdir] [-b blddir]" >&2 } help () { usage cat >&2 <<\EOF -b dir build in `dir' -c run `configure' only (don't make) -h show this help message -m run `make' only (don't configure) -s dir VMMaker sources are in `dir' -y assume `y' to all questions and work silently (`batch' mode) EOF exit 0 } notFound () { $echo "VMMaker src directory not found" >&2 exit 1 } while [ $# -gt 0 ]; do case $1 in -b) shift; blddir="${1}"; shift;; -c) shift; doMake="";; -h) help;; -m) shift; doConfig="";; -s) shift; srcdir="${1}"; shift;; -y) shift; batch=yes;; *) usage; exit 1;; esac done [ $# -gt 0 ] && usage && exit 1 if [ "${srcdir}" ]; then srcdirs="${srcdir}" else srcdirs=`$echo src*` fi [ ! "${srcdirs}" ] && notFound count=0; for d in ${srcdirs}; do [ -d ${d} ] && let count="${count}+1" done chooseDir () { $echo "We found the following source directories:" i=0 for d in ${srcdirs}; do let i="${i}+1" list="${list} [${i}] ${d} " done $echo $echo "${list}" if [ "${batch}" ]; then $echo "batch mode failed!" >&2 exit 1 fi $echo "Which would you like to use [1-${i}]? \c" n=`getN ${count}` srcdir=`$echo "${list}" | fgrep "[$n]" | sed "s,^\[.*\] ,,"` [ "${srcdir}" ] || notFound } case ${count} in 0) notFound ;; 1) srcdir=${srcdirs} ;; *) chooseDir ;; esac $echo "Using source directory: ${srcdir}" if [ ! "${blddir}" ]; then vers=`$echo ${srcdir} | sed 's,^src,,'` mach=`uname -m | sed 's,i.86,i386,;s,sun4.,sparc,'` blddir="bld${vers}-${mach}" fi $echo "Using build directory: ${blddir}" if [ ! "${batch}" ]; then $echo "Is this okay [y/n]? \c" case `getYN` in y|Y) ;; n|N) $echo "Goodybye" >&2; exit 1 ;; *) $echo "Huh?" >&2; exit 1 ;; esac fi [ -d ${blddir} ] || mkdir ${blddir} cd ${blddir} if [ "${doConfig}" ]; then $echo $echo '-------------------------------------------------------------------------------' $echo "Configuring in ${PWD}" $echo '-------------------------------------------------------------------------------' $echo ../platforms/unix/config/configure --with-src=${srcdir} || exit 1 fi if [ "${doMake}" ]; then $echo $echo '-------------------------------------------------------------------------------' $echo "Building in ${PWD}" $echo '-------------------------------------------------------------------------------' $echo make || exit 1 fi $echo $echo '-------------------------------------------------------------------------------' if [ ! -x squeak ]; then $echo "The build appears to have failed. We can't really continue." >&2 $echo "Goodbye." >&2 exit 1 fi $echo "The build appears to have succeeded." [ "${batch}" ] && exit 0 if [ "`whoami`" != "root" ]; then $echo "We cannot install Squeak because you are not root" >&2 exit 0 fi $echo "Would you like me to install Squeak in the default location [y/n]? \c" case `getYN` in y|Y) ;; n|N) $echo "Less work for us that way."; exit 0 ;; *) $echo "Huh?"; exit 1 ;; esac $echo make install $echo $echo "We're done. Happy Squeaking!" --- NEW FILE: config.guess --- #! /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-10-21' # 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 [...1324 lines suppressed...] /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: --- NEW FILE: config.h.in --- /* config.h.in -- template for config.h -*- C -*- * * Copyright (C) 1996-2002 Ian Piumarta and other authors/contributors * as listed elsewhere in this file. * All rights reserved. * * This file is part of Unix Squeak. * * This file 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. * * You may use and/or distribute this file ONLY as part of Squeak, under * the terms of the Squeak License ... [truncated message content] |