[PD-cvs] pd AUTHORS,NONE,1.1.4.1 COPYING,NONE,1.1.4.1 ChangeLog,NONE,1.1.4.1 INSTALL,NONE,1.1.2.1 NEWS,NONE,1.1.4.1 README,NONE,1.1.4.1 bootstrap.sh,NONE,1.1.2.1 configure.ac,NONE,1.1.4.1

Tim Blechmann timblech at users.sourceforge.net
Fri Nov 5 14:23:21 CET 2004


Update of /cvsroot/pure-data/pd
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18552

Added Files:
      Tag: devel_0_38
	AUTHORS COPYING ChangeLog INSTALL NEWS README bootstrap.sh 
	configure.ac 
Log Message:
autobuild system

--- NEW FILE: configure.ac ---
dnl
dnl autoconf template
dnl added by tim blechmann
dnl

dnl init
AC_INIT([PureData], [0.38-devel],
        [pd-list at iem.at],
		[pd])
AM_INIT_AUTOMAKE(pd,[0.38-devel])


dnl checking for programs
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_CPP


dnl Checks for typedefs, structures, and compiler characteristics.
AC_GNU_SOURCE
AC_C_CONST
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME


dnl Find paths to includes and libraries for X11
AC_PATH_X


dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sys/ioctl.h sys/time.h unistd.h bstring.h)


dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(gettimeofday select socket strerror)


dnl Checks for libraries.
AC_CHECK_LIB(dl, dlopen, AC_DEFINE(DL_OPEN) ,
    echo "dynamic link support required" || exit 1)

AC_CHECK_LIB(m, sin, ,
    echo "math library required" || exit 1)

AC_CHECK_LIB(pthread, pthread_create, ,
    echo "pthreads required" || exit 1)

AC_CHECK_LIB(X11, XCreateWindow, LIBS="$LIBS -lX11 -L$x_libraries", 
	echo "no X11 found" || exit 1, -L$x_libraries)

AC_CHECK_LIB(tcl8.7, main,,
    AC_CHECK_LIB(tcl8.6, main,,
		AC_CHECK_LIB(tcl8.5, main,,
	    	AC_CHECK_LIB(tcl8.4, main,,
				AC_CHECK_LIB(tcl8.3, main,,
				    AC_CHECK_LIB(tcl8.2, main,,
        				AC_CHECK_LIB(tcl8.0, main,,
							echo no tcl library found || exit 1)))))))

AC_CHECK_LIB(tk8.7, main,,
    AC_CHECK_LIB(tk8.6, main,,
		AC_CHECK_LIB(tk8.5, main,,
	    	AC_CHECK_LIB(tk8.4, main,,
				AC_CHECK_LIB(tk8.3, main,,
				    AC_CHECK_LIB(tk8.2, main,,
        				AC_CHECK_LIB(tk8.0, main,,
							echo no tk library found || exit 1)))))))


dnl check for features

dnl audio api
AC_ARG_ENABLE(jack,	
    [  --enable-jack           jack audio server],
    [
	AC_CHECK_LIB(rt,shm_open)
    AC_CHECK_LIB(jack,jack_client_new,
		[
			AC_CHECK_LIB(jack,jack_set_xrun_callback,
				[CFLAGS="-DJACK_XRUN "$CFLAGS])
			AC_DEFINE(USEAPI_JACK)
			LIBS="-ljack "$LIBS
			AC_LIBOBJ(s_audio_jack)
		],
		[echo "jack library not found" || exit 1])
 	])

AC_ARG_ENABLE(alsa, [  --disable-alsa          disable ALSA],
	,
	AC_CHECK_LIB(asound,snd_pcm_info)
	if test $ac_cv_lib_asound_snd_pcm_info=="yes"; then
		AC_DEFINE(USEAPI_ALSA)
	fi	
	)

AC_ARG_ENABLE(portaudio, [  --enable-portaudio      portaudio],
    portaudio=$enableval)


dnl hardware
AC_ARG_ENABLE(simd, [  --enable-simd           use SIMD code (default=no)],
    simdcode=$enableval,
    [
		AC_DEFINE(DONTUSESIMD)
	])

AC_ARG_ENABLE(optimize, [  --enable-optimize       enables optimized builds for: pentium4, pentium3, G4, G5],
    optimize=$enableval)


dnl additional libraries or features
AC_ARG_ENABLE(fftw, [  --enable-fftw           fftw3 support],
    AC_CHECK_LIB(fftw3f,fftwf_plan_dft_r2c_1d))

AC_ARG_ENABLE(threadedsf, [  --enable-threadedsf     use threaded soundfiler],
   	[
		AC_DEFINE(THREADED_SF)
		AC_DEFINE(GARRAY_THREAD_LOCK)
	])

AC_ARG_ENABLE(gathreadlocks, [  --enable-gathreadlocks  t_garray threadlock],
		AC_DEFINE(GARRAY_THREAD_LOCK))


dnl compile features
dnl make sure that debug is switched of
CFLAGS=${CFLAGS/-g}
AC_ARG_ENABLE(debug, [  --enable-debug          debugging support],
    CFLAGS="-g "$CFLAGS,CFLAGS=$CFLAGS" -O3")

AC_ARG_ENABLE(static, [  --enable-static         link statically],
    LDFLAGS="$LDFLAGS -static")

AC_ARG_ENABLE(icc, [  --enable-icc            icc support],
    CC=icc; icc=yes)

dnl linux specific part
AM_CONDITIONAL(LINUX,test `uname -s` == Linux)

if test `uname -s` == Linux;
then
	dnl additional source files 
	if test $ac_cv_lib_asound_snd_pcm_info == "yes"; then
		AC_LIBOBJ(s_audio_alsa)
	fi
	if test $simdcode; then
		AC_LIBOBJ(m_simd_sse_gcc)
	fi

	dnl platform dependant
	AC_DEFINE(USEAPI_OSS)
	AC_LIBOBJ(s_midi_oss)
	AC_LIBOBJ(s_audio_oss)

	AC_DEFINE(UNIX)
	AC_DEFINE(UNISTD)
    EXT="pd_linux"
	GUINAME="pd-gui"
	OSNUMBER=0

	dnl optimization flags
	if test "$icc"; then
		if test "$optimize" == "pentium4"; then
	  		ARCH_CFLAGS="-xN -ip -ipo_obj"
       	fi
       	if test "$optimize" == "pentium3"; then
	  		ARCH_CFLAGS="-xK -ip -ipo_obj"
       	fi
    else
       	if test "$optimize" == "pentium4"; then
	  		ARCH_CFLAGS="-mtune=pentium4 -march=pentium4 -mmmx -msse -msse2 -mfpmath=sse"
       	fi
       	if test "$optimize" == "pentium3"; then
	  		ARCH_CFLAGS="-mtune=pentium3 -march=pentium3 -mmmx -msse -mfpmath=sse"
       	fi
       	if test "$optimize" == "pentium2"; then
	  		ARCH_CFLAGS="-mtune=pentium2 -march=pentium2 -mmmx";
	  		CFLAGS=$CFLAGS" -DDONTUSESIMD"	  
       	fi
       	if test "$optimize" == "pentium"; then
	 		ARCH_CFLAGS="-mtune=pentium -march=pentium"
	  		CFLAGS=$CFLAGS" -DDONTUSESIMD"	  
       	fi
    fi	       

	dnl several flags
	CFLAGS="-fno-strict-aliasing $CFLAGS $ARCH_CFLAGS"
	LDFLAGS="-Wl,-export-dynamic "$LDFLAGS
	STRIPFLAG="-s"
fi

dnl osx specific part
AM_CONDITIONAL(DARWIN,test `uname -s` == Darwin)

if test `uname -s` == Darwin;
then
	dnl additional source files 
	AC_LIBOBJ(s_midi_pm)
	AC_LIBOBJ(s_audio_pa)

	dnl platform dependant
	AC_DEFINE(USEAPI_PORTAUDIO)
	AC_DEFINE(PA_BIG_ENDIAN)
	AC_DEFINE(MACOSX)
    EXT="pd_darwin"
	GUINAME="pdtcl"
	OSNUMBER=2

    if test $USE_DEBUG == "yes"; then
        OPT_CFLAGS="-g"
    else
        OPT_CFLAGS="-O3"
    fi

    dnl Set processor flags
    if test "$optimize" == "G3"; then
        OPT_CFLAGS=$OPT_CFLAGS" -mtune=G3 -mcpu=G3 -malign-natural"
    fi
    if test "$optimize" == "G4"; then
        OPT_CFLAGS=$OPT_CFLAGS" -mtune=G4 -mcpu=G4 -maltivec -malign-natural"
    fi
    if test "$optimize" == "G5"; then
        OPT_CFLAGS=$OPT_CFLAGS" -march=G5 -cpu=G5 -maltivec -malign-natural"
    fi	       

    dnl Enable SIMD instructions
    if test "$simdcode" == "yes"; then
        OPT_CFLAGS=$OPT_CFLAGS" -faltivec"
    fi	
fi

	dnl several flags
	CFLAGS="-fno-strict-aliasing $CFLAGS $ARCH_CFLAGS"
	LDFLAGS="-Wl,-export-dynamic "$LDFLAGS
	STRIPFLAG=
	

dnl substitute and output
AC_SUBST(CC)
AC_SUBST(DEFS)
AC_SUBST(CFLAGS)
AC_SUBST(LDFLAGS)
AC_SUBST(STRIPFLAGS)
AC_SUBST(EXT)
AC_SUBST(GUINAME)
AC_SUBST(OSNUMBER)
AC_CONFIG_FILES([Makefile
				extra/Makefile
 			    src/Makefile])
AC_OUTPUT

--- NEW FILE: COPYING ---
This software is copyrighted by Miller Puckette and others.  The following
terms (the "Standard Improved BSD License") apply to all files associated with
the software unless explicitly disclaimed in individual files:

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

1. Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above  
   copyright notice, this list of conditions and the following 
   disclaimer in the documentation and/or other materials provided
   with the distribution.
3. The name of the author may not be used to endorse or promote
   products derived from this software without specific prior 
   written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,   
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.

--- NEW FILE: bootstrap.sh ---
#! /bin/sh

aclocal \
&& automake --gnu --add-missing \
&& autoconf
--- NEW FILE: INSTALL ---
Detailed installations instructions are in the HTML documentation, which
you can find in doc/1.manual.

Quick compilation instructions for Linux or Mac OSX (assuming for Mac OSX that
you've got Tck/Tk installed):

Change to "src" subdirectory.

type "./configure", possibly adding flags as follows:

    To enable ALSA 0.9x (the latest one), add "--enable-alsa".
    To enable the older ALSA 0.5x, add "--enable-old-alsa". 
    To enable Ritsch's RME 9652 driver, add --enable-rme".
    To put Pd in /usr/bin instead of /usr/local/bin, add "--prefix=/bin".

Type "make depend" and then "make"; or, if you prefer, as superuser
type "make install".

To run pd, either type the full pathname as in /home/me/pd/bin/pd, or else
if you've chosen  "make install", just type "pd".

--- NEW FILE: ChangeLog ---

--- NEW FILE: README ---
This is the README file for Pd, a free real-time computer music software
package resembling Max.  You can get Pd for Linux, Windows, Mac OSX, or IRIX
from http://www.crca.ucsd.edu/~msp/software.html or ftp://felix.ucsd.edu.  
Installation instructions are in the HTML DOCUMENTATION at:

    http://www.crca.ucsd.edu/~msp/Pd_documentation/index.htm

If you download and unpack Pd, you will also find the html documentation
locally in the file, .../pd-whatever/doc/1.manual/index.htm.  To unpack Pd:

LINUX (or freeBSD).  Download Pd, which will be a ".tar.gz" file; to unpack it,
type "zcat [name].tar.gz | tar xf -" to a shell.  This creates a directory with
a name like "pd-0.35".  There are also RPMs available.

Microsoft Windows.  Pd is distributed as a "zip" file.   Unzip this,
creating a directory such as \pd.

IRIX.  Download Pd, which will be a "tar.Z" file.  You can unpack this by
typing "zcat [name].tar.Z | tar xf -" to a shell.  

Macintosh.  The web browser will automatically unpack the distributions
into a folder such as "pd-0.35" on your desktop.

If you have qustions about Pd, or if you wish to be notified of releases,
check the Pd mailing list: http://iem.mhsg.ac.at/mailinglists/pd-list/

Many extensions to Pd are available, notably for handling video and 3D
graphics; see the html documentation for pointers.

COPYRIGHT.  Except as otherwise noted, all files in the Pd distribution are

    Copyright (c) 1997-2001 Miller Puckette and others.

For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "LICENSE.txt," included in the Pd distribution.
(Note that tcl/tk, expr, and some other files are copyrighted separately).

ACKNOWLEDGEMENTS.  Thanks to Harry Castle, Krzysztof Czaja, Mark Danks,
Christian Feldbauer, Guenter Geiger, Kerry Hagan, Trevor Johnson, Fernando
Lopez-Lezcano, Adam Lindsay, Karl MacMillan, Thomas Musil, Toshinori Ohkouchi,
Winfried Ritsch, Vibeke Sorensen, Rand Steiger, Hans-Christoph Steiner,
Shahrokh Yadegari, David Zicarelli, Iohannes Zmoelnig, and probably many others
for contributions of code, documentation, ideas, and expertise.  This work has
received generous support from the Intel Research Council.

--- NEW FILE: NEWS ---

--- NEW FILE: AUTHORS ---





More information about the Pd-cvs mailing list