head	1.66;
access;
symbols
	release-2-07:1.64.0.2
	release-2-06:1.63.0.2
	release-2-05:1.59.0.2
	release-2-04:1.56.0.2
	release-2-03:1.53.0.2;
locks; strict;
comment	@# @;


1.66
date	2007.05.29.19.05.24;	author shd;	state Exp;
branches;
next	1.65;

1.65
date	2007.05.01.18.51.59;	author shd;	state Exp;
branches;
next	1.64;

1.64
date	2007.04.30.12.43.59;	author shd;	state Exp;
branches;
next	1.63;

1.63
date	2007.04.09.20.02.27;	author shd;	state Exp;
branches;
next	1.62;

1.62
date	2007.03.27.21.07.41;	author shd;	state Exp;
branches;
next	1.61;

1.61
date	2007.03.27.20.59.41;	author mld;	state Exp;
branches;
next	1.60;

1.60
date	2007.02.06.17.59.44;	author shd;	state Exp;
branches;
next	1.59;

1.59
date	2007.01.23.23.13.01;	author shd;	state Exp;
branches;
next	1.58;

1.58
date	2007.01.23.22.23.20;	author shd;	state Exp;
branches;
next	1.57;

1.57
date	2007.01.21.20.38.15;	author shd;	state Exp;
branches;
next	1.56;

1.56
date	2007.01.21.16.22.23;	author shd;	state Exp;
branches;
next	1.55;

1.55
date	2006.12.12.18.45.17;	author shd;	state Exp;
branches;
next	1.54;

1.54
date	2006.10.24.10.29.08;	author shd;	state Exp;
branches;
next	1.53;

1.53
date	2006.04.25.15.39.07;	author shd;	state Exp;
branches;
next	1.52;

1.52
date	2006.04.25.15.32.55;	author shd;	state Exp;
branches;
next	1.51;

1.51
date	2006.04.15.01.10.46;	author shd;	state Exp;
branches;
next	1.50;

1.50
date	2006.04.13.19.02.05;	author shd;	state Exp;
branches;
next	1.49;

1.49
date	2006.04.12.11.30.05;	author shd;	state Exp;
branches;
next	1.48;

1.48
date	2006.04.09.16.12.05;	author shd;	state Exp;
branches;
next	1.47;

1.47
date	2006.04.09.13.02.08;	author shd;	state Exp;
branches;
next	1.46;

1.46
date	2006.03.20.20.20.28;	author shd;	state Exp;
branches;
next	1.45;

1.45
date	2006.02.14.14.27.11;	author shd;	state Exp;
branches;
next	1.44;

1.44
date	2006.02.14.14.21.10;	author shd;	state Exp;
branches;
next	1.43;

1.43
date	2006.01.18.20.13.18;	author shd;	state Exp;
branches;
next	1.42;

1.42
date	2006.01.10.20.52.49;	author shd;	state Exp;
branches;
next	1.41;

1.41
date	2006.01.09.19.47.34;	author mld;	state Exp;
branches;
next	1.40;

1.40
date	2006.01.07.16.32.02;	author shd;	state Exp;
branches;
next	1.39;

1.39
date	2006.01.06.20.25.46;	author shd;	state Exp;
branches;
next	1.38;

1.38
date	2006.01.06.17.23.29;	author shd;	state Exp;
branches;
next	1.37;

1.37
date	2006.01.03.22.30.13;	author shd;	state Exp;
branches;
next	1.36;

1.36
date	2006.01.02.18.05.23;	author shd;	state Exp;
branches;
next	1.35;

1.35
date	2006.01.02.17.50.50;	author shd;	state Exp;
branches;
next	1.34;

1.34
date	2006.01.02.00.28.13;	author shd;	state Exp;
branches;
next	1.33;

1.33
date	2006.01.02.00.23.49;	author shd;	state Exp;
branches;
next	1.32;

1.32
date	2006.01.01.16.22.12;	author shd;	state Exp;
branches;
next	1.31;

1.31
date	2005.12.22.01.29.16;	author shd;	state Exp;
branches;
next	1.30;

1.30
date	2005.12.10.16.44.56;	author shd;	state Exp;
branches;
next	1.29;

1.29
date	2005.12.10.16.12.39;	author shd;	state Exp;
branches;
next	1.28;

1.28
date	2005.12.10.16.02.42;	author shd;	state Exp;
branches;
next	1.27;

1.27
date	2005.11.29.22.04.05;	author shd;	state Exp;
branches;
next	1.26;

1.26
date	2005.11.29.19.58.18;	author shd;	state Exp;
branches;
next	1.25;

1.25
date	2005.11.28.01.01.45;	author shd;	state Exp;
branches;
next	1.24;

1.24
date	2005.11.27.20.42.49;	author shd;	state Exp;
branches;
next	1.23;

1.23
date	2005.11.26.19.46.24;	author shd;	state Exp;
branches;
next	1.22;

1.22
date	2005.11.26.19.26.47;	author shd;	state Exp;
branches;
next	1.21;

1.21
date	2005.11.15.23.11.39;	author shd;	state Exp;
branches;
next	1.20;

1.20
date	2005.11.15.23.11.04;	author shd;	state Exp;
branches;
next	1.19;

1.19
date	2005.08.31.21.42.03;	author shd;	state Exp;
branches;
next	1.18;

1.18
date	2005.07.24.07.21.37;	author shd;	state Exp;
branches;
next	1.17;

1.17
date	2005.07.17.18.34.28;	author shd;	state Exp;
branches;
next	1.16;

1.16
date	2005.07.11.17.11.36;	author shd;	state Exp;
branches;
next	1.15;

1.15
date	2005.07.11.16.58.10;	author shd;	state Exp;
branches;
next	1.14;

1.14
date	2005.07.11.16.38.06;	author shd;	state Exp;
branches;
next	1.13;

1.13
date	2005.07.11.16.37.42;	author shd;	state Exp;
branches;
next	1.12;

1.12
date	2005.07.11.16.35.22;	author shd;	state Exp;
branches;
next	1.11;

1.11
date	2005.07.11.15.35.59;	author shd;	state Exp;
branches;
next	1.10;

1.10
date	2005.07.09.20.43.28;	author shd;	state Exp;
branches;
next	1.9;

1.9
date	2005.07.09.20.26.10;	author shd;	state Exp;
branches;
next	1.8;

1.8
date	2005.07.09.15.49.27;	author shd;	state Exp;
branches;
next	1.7;

1.7
date	2005.07.08.12.57.06;	author shd;	state Exp;
branches;
next	1.6;

1.6
date	2005.07.08.12.47.45;	author shd;	state Exp;
branches;
next	1.5;

1.5
date	2005.07.07.15.17.58;	author shd;	state Exp;
branches;
next	1.4;

1.4
date	2005.07.07.12.39.52;	author shd;	state Exp;
branches;
next	1.3;

1.3
date	2005.07.07.12.39.03;	author shd;	state Exp;
branches;
next	1.2;

1.2
date	2005.07.07.12.31.26;	author shd;	state Exp;
branches;
next	1.1;

1.1
date	2005.07.07.12.29.03;	author shd;	state Exp;
branches;
next	;


desc
@@


1.66
log
@Move development to Git tree, add notice into configure script about
this.
@
text
@#!/bin/sh

VERSION=2.07
IPC_PROTOCOL_VERSION=1

if test -n "$CC"; then
    CC=$CC
    echo "Forcing compiler to be $CC"
else
    CC="gcc"
fi
NATIVECC="$CC"
TARGETCC="$NATIVECC"
CC="false"
TARGETOBJCOPY="objcopy"

ARCHFLAGS=""
if test -n "$CFLAGS"; then
    ARCHFLAGS="$ARCHFLAGS $CFLAGS"
    echo "Adding $ARCHFLAGS to ARCHFLAGS"
fi

ARCHLIBS=""
if test -n "$LDFLAGS"; then
    ARCHLIBS="$ARCHLIBS $LDFLAGS"
    echo "Adding $ARCHLIBS to ARCHLIBS"
fi

debug_flags="-g"
packageprefix=""
user="no"
usexmms="auto"
useaudacious="auto"
useuade123="yes"
useuadecore="yes"
xmmsplugindir=""
audaciousplugindir=""
pkgrequirements="ao"

for opt in "$@@" ; do
	case $opt in
	--prefix=*)
		prefix=`echo $opt | sed -n 's/--prefix=\(.*\)/\1/p'`
		;;
	--package-prefix=*)
		packageprefix=`echo $opt | sed -n 's/--package-prefix=\(.*\)/\1/p'`
		;;

        --bindir=*)
                bindir=`echo $opt | sed -n 's/--bindir=\(.*\)/\1/p'`
                ;;
	--docdir=*)
		docdir=`echo $opt | sed -n 's/--docdir=\(.*\)/\1/p'`
		;;
	--includedir=*)
		includedir=`echo $opt | sed -n 's/--includedir=\(.*\)/\1/p'`
		;;
	--libdir=*)
		libdir=`echo $opt | sed -n 's/--libdir=\(.*\)/\1/p'`
		;;
	--make=*)
	        MAKE=`echo $opt | sed -n 's/--make=\(.*\)/\1/p'`
		;;
	--mandir=*)
		mandir=`echo $opt | sed -n 's/--mandir=\(.*\)/\1/p'`
		;;
	--sharedir=*)
		sharedir=`echo $opt | sed -n 's/--sharedir=\(.*\)/\1/p'`
		;;
	--pkg-config=*)
	        PKG_CONFIG=`echo $opt | sed -n 's/--pkg-config=\(.*\)/\1/p'`
		;;
	--target-cc=*)
	        TARGETCC=`echo $opt | sed -n 's/--target-cc=\(.*\)/\1/p'`
		;;
	--target=*)
	        tmpvar=`echo $opt | sed -n 's/--target=\(.*\)/\1/p'`
		if test -z "$TARGETCC" ; then
		    TARGETCC="$tmpvar-gcc"
		    TARGETOBJCOPY="$tmpvar-objcopy"
		fi
		tmpvar=""
		;;
	--xmms-config=*)
	        XMMS_CONFIG=`echo $opt | sed -n 's/--xmms-config=\(.*\)/\1/p'`
		;;
	--xmms-plugin-dir=*)
		xmmsplugindir=`echo $opt | sed -n 's/--xmms-plugin-dir=\(.*\)/\1/p'`
		;;
	--audacious-plugin-dir=*)
		audaciousplugindir=`echo $opt | sed -n 's/--audacious-plugin-dir=\(.*\)/\1/p'`
		;;

	--without-uadecore)
		useuadecore="no"
		;;

	--with-uade123)
		useuade123="yes"
		;;
	--without-uade123)
		useuade123="no"
		;;

	--with-xmms)
		usexmms="yes"
		;;
	--without-xmms)
		usexmms="no"
		;;

	--with-audacious)
		useaudacious="yes"
		;;
	--without-audacious)
		useaudacious="no"
		;;

        --user)
		user="yes"
		;;
	--no-debug)
		debug_flags=""
		;;
	--help)
		echo
		echo "Installation control:"
                echo " --user                 Install uade to user's home directory. Do not run"
		echo "                        'make install' as root!"
                echo " --prefix=path          Install program under 'path'"
	        echo " --package-prefix=path  File installation prefix (for package maintainers)"
		echo " --bindir=dir           Install executables into this directory"
		echo " --docdir=dir           Install documentation into this directory"
		echo " --includedir=dir       Add this directory to compilation include path"
		echo " --make=exe             Use 'exe' as the make command"
		echo " --mandir=dir           Install man page to this directory"
		echo " --no-debug             Do not compile debug stuff into executables"
		echo " --libdir=dir           Add this directory to linking path"
		echo " --sharedir=dir         Install data files into this directory"
		echo " --target=tarch         Specify target architecture. The compiler will be"
		echo "                        tarch-gcc. (cross compiling)"
		echo " --target-cc=tcc        Specify target compiler. (cross compiling)"
		echo
		echo "Frontend options:"
		echo " --without-uadecore     Do not compile uadecore. This is useful for"
		echo "                        distribution makers who want to compile new frontends"
		echo "                        without re-compiling the emulator binary."
		echo " --with-uade123         Compile uade123 (auto detect)"
		echo " --without-uade123      Do not compile uade123"
		echo " --with-xmms            Compile an XMMS plugin (auto detect)"
		echo " --without-xmms         Do not compile an XMMS plugin"
		echo " --xmms-config=exe      Use 'exe' as xmms-config"
		echo " --with-audacious       Compile an Audacious plugin (auto detect)"
		echo " --without-audacious    Do not compile an Audacious plugin"
		echo
		echo "Library control:"
		echo " --pkg-config=exe       Use 'exe' as pkg-config executable"
		echo
		exit
		;;
	--x-libraries=*)
		;;
	--x-includes=*)
		;;
	*)
		echo "ignoring option $opt"
		;;
	esac
done

if test -z "$PKG_CONFIG" ; then
    PKG_CONFIG="pkg-config"
fi
"$PKG_CONFIG" --version 2> /dev/null > /dev/null || PKG_CONFIG=""

if test -z "$XMMS_CONFIG" ; then
    XMMS_CONFIG="xmms-config"
fi

if test "$usexmms" = "auto" -o "$usexmms" = "yes" ; then
    if test -x "`which $XMMS_CONFIG`" ; then
	usexmms="yes"
	XMMSFLAGS="`$XMMS_CONFIG --cflags`"
	XMMSLIBS="`$XMMS_CONFIG --libs`"
    else
	if test "$usexmms" = "yes" ; then
	    echo "Sorry, compiling XMMS plugin is impossible."
	    exit -1
	fi
	usexmms="no"
	echo "Couldn't find xmms-config -> not compiling xmms-plugin!"
    fi
fi

if test "$useaudacious" = "auto" -o "$useaudacious" = "yes" ; then
    if test -n "$PKG_CONFIG" ; then
	useaudacious="no"
	if test -n "`$PKG_CONFIG audacious --libs 2>/dev/null`"; then
		useaudacious="yes"
		AUDACIOUSFLAGS="`$PKG_CONFIG audacious --cflags`"
		AUDACIOUSLIBS="`$PKG_CONFIG audacious --libs`"
	fi
    else
	if test "$useaudacious" = "yes" ; then
	    echo "Sorry, compiling Audacious plugin is impossible."
	    exit -1
	fi
	useaudacious="no"
	echo "Couldn't find pkg-config audacious -> not compiling plugin!"
    fi
fi

# set kernel type (such as AmigaOS) with environment variable $UADEKERNEL
OS="$UADEKERNEL"
if test -z "$OS" ; then
    OS="`uname`"
fi

UNIXSHELL="yes"
UADE123NAME="uade123"
UADECORENAME="uadecore"

SHAREDLIBRARYFLAGS="-fPIC -shared"

cat >src/include/sysincludes.h <<EOF
#include <netinet/in.h>
#include <sys/select.h>
EOF

if test -n "$OS" && test "$OS" = "MorphOS"; then
    echo
    echo "Configuring for MorphOS / AmigaOS."
    ARCHFLAGS="$ARCHFLAGS -noixemul"
    usexmms="no"
    useaudacious="no"    
elif test -n "$OS" && test "$OS" = "AmigaOS"; then
    echo
    echo "Configuring for AmigaOS 4."
    ARCHFLAGS="$ARCHFLAGS -lnet -lauto"
    usexmms="no"
    useaudacious="no"
elif test -n "$OS" && test "$OS" = "Darwin"; then
    echo
    echo "Configuring for MacOSX"
    ARCHFLAGS="$ARCHFLAGS -no-cpp-precomp"
    SHAREDLIBRARYFLAGS="-dynamic -bundle -undefined suppress -force_flat_namespace"
elif test -n "$OS" && test "$OS" = "OpenBSD"; then
    # Force gmake for OpenBSD.
    MAKE="gmake"
elif test -n "$OS" && test "$OS" = "FreeBSD"; then
    cat > src/include/sysincludes.h <<EOF
#include <sys/param.h>
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <strings.h>
EOF
fi

grep -i cygwin 2>/dev/null >/dev/null <<EOF
$OS
EOF
if test "$?" = "0" ; then
    OS="Cygwin"
    UADE123NAME="uade123.exe"
    UADECORENAME="uadecore.exe"
fi

SOUNDSOURCE="sd-sound-generic.c"
SOUNDHEADER="sd-sound-generic.h"
echo "#include \"$SOUNDSOURCE\"" > src/sd-sound.c;
echo "#include \"$SOUNDHEADER\"" > src/sd-sound.h;

MACHINE="`uname -m`"
if test "$MACHINE" = "parisc"; then
    ARCHFLAGS="$ARCHFLAGS -ffunction-sections"
fi

INSTALLTEST="`which ginstall 2>/dev/null`"

if test ! -x "$INSTALLTEST"; then
 if test -n "$OS" && test "$OS" = "SunOS"; then
  echo
  echo "Warning: ginstall not found, install might not work."
  echo "If you do have ginstall make sure it is in your path."
  echo
  INSTALLTEST="`which install`"
 else
  INSTALLTEST="`which install`"
 fi
fi

if test -z "$MAKE" ; then
    if test -n "$OS" && test "$OS" = "MorphOS"; then
	MAKE="make"
    else
	MAKE="`which gmake`"
	if test ! -x "$MAKE"; then
	    MAKE="`which make`"
	fi
	if test ! -x "$MAKE"; then
	    echo FATAL: cannot find make
	    exit 1
	fi
    fi
fi

if test "$user" = "no"; then
    # global installation
    if test -z "$prefix"; then
	prefix="/usr/local"
    fi
    uadedatadir="$prefix/share/uade2"
    uadelibdir="$prefix/lib/uade2"
    if test -z "$bindir"; then
	bindir="$prefix/bin"
    fi
    if test "$usexmms" = "yes" ; then
	xmmsplugindir="`xmms-config --input-plugin-dir`"
    fi
    if test "$useaudacious" = "yes" ; then
	audaciousplugindir="`$PKG_CONFIG audacious --variable=input_plugin_dir`"
    fi
    if test -z "$docdir"; then
	docdir="$prefix/share/doc/uade-$VERSION"
    fi
    if test -z "$mandir"; then
	mandir="$prefix/share/man/man1"
    fi
else
    # user installation
    if test -z "$prefix"; then
	prefix="$HOME/.uade2"
    fi
    uadedatadir="$prefix"
    uadelibdir="$prefix"
    if test -z "$bindir"; then
	bindir="$prefix"
    fi
    if test "$usexmms" = "yes" ; then
	xmmsplugindir="$HOME/.xmms/Plugins/Input"
    fi
    if test "$useaudacious" = "yes" ; then
        if $PKG_CONFIG --max-version=1.2.2 audacious ; then
	  audaciousplugindir="$HOME/.audacious/Plugins/Input"
	else
	  audaciousplugindir="$HOME/.local/share/audacious/Plugins"	
	fi
    fi
    if test -z "$docdir"; then
	docdir="$prefix/uade-$VERSION"
    fi
    if test -z "$mandir"; then
	mandir="$prefix/man/man1"
    fi
fi

if test -z "$libdir" ; then
    libdir="$prefix/lib"
fi
if test -z "$includedir" ; then
    includedir="$prefix/include"
fi
if test -n "$sharedir"; then
    uadedatadir="$sharedir"
fi

cd compat
rm -f strltest
$TARGETCC $ARCHFLAGS $ARCHLIBS -o strltest strltest.c 2>/dev/null
if test -e "strltest" ; then
    echo "#include <string.h>" > ../src/include/strlrep.h
    echo "" > ../src/strlrep.c
else
    cp strlrep.c ../src/
    cp strlrep.h ../src/include/
fi
cd ..

cd compat
rm -f ../src/include/stdint.h
cat > stdinttest.c <<EOF
#include <stdint.h>
int main(void) { int8_t a = 0; int16_t b = 0; int32_t c = 0; int64_t d = 0; uint8_t e = 0; uint16_t f = 0; uint32_t g = 0; uint64_t h = 0; intptr_t i = 0; return 0; }
EOF
$TARGETCC $ARCHFLAGS $ARCHLIBS -o stdinttest stdinttest.c 2>/dev/null
if test "$?" != "0" ; then
    echo "#include <inttypes.h>" > ../src/include/stdint.h
    echo "Potential hazard detected: stdint.h is missing (needed for portable types)"
fi
cd ..

if test "$useuade123" = "yes" ; then
    AOFLAGS="`$PKG_CONFIG --cflags ao`"
    if test "$?" != "0"; then
	echo ""
	echo "Can not compile uade123. Please install libao (including development kit)."
	echo ""
	useuade123="no"
    fi
    AOLIBS="`$PKG_CONFIG --libs ao`"
fi

pkgconfigdir="$prefix/lib/pkgconfig"
rm -f uade.pc
if test "$PKG_CONFIG" != "" ; then
    installuadepcrule=""
    if test "$useuade123" = "no" ; then
	pkgrequirements=""
    fi
    cat > uade.pc <<EOF
uadecore=$uadelibdir/$UADECORENAME
data_directory=$uadedatadir
ipc_protocol_version=$IPC_PROTOCOL_VERSION

Name: UADE (Unix Amiga Delitracker Emulator)
Description: A music player for Amiga music formats
Version: $VERSION
Requirements: $pkgrequirements
EOF
fi

echo ""
echo "UADE and frontends will be installed to : $bindir"
echo "Data directory will be                  : $uadedatadir"
echo "Uadecore directory:                     : $uadelibdir"
echo "Documentation directory will be         : $docdir"
echo "Man directory will be                   : $mandir"
echo "Installer that will be used             : $INSTALLTEST"
echo "Make that will be used during the build : $MAKE"
if test "$TARGETCC" != "$NATIVECC" ; then
    echo "Native CC                               : $NATIVECC"
fi
echo "Target CC                               : $TARGETCC"
echo "uade123                                 : $useuade123"
if test "$useuade123" = "yes" ; then
    echo "uade123 sound output                    : AO"
fi
echo "XMMS plugin                             : $usexmms"
if test "$usexmms" = "yes" ; then
    echo "XMMS plugin directory                   : $xmmsplugindir"
fi
echo "Audacious plugin                        : $useaudacious"
if test "$useaudacious" = "yes" ; then
    echo "Audacious plugin directory              : $audaciousplugindir"
fi
echo

# Target is UNIX.
cat > src/ossupport.c <<EOF
#include "unixsupport.c"
EOF

OSSUPPORTMODULES="unixsupport.c include/ossupport.h"

cp src/include/unixsupport.h src/include/ossupport.h
cd compat
$TARGETCC $ARCHFLAGS $ARCHLIBS -o memmemtest memmemtest.c 2>/dev/null
if test "$?" != "0" ; then
    cat memmemrep.h >> ../src/include/ossupport.h
    cat memmemrep.c >> ../src/ossupport.c
    echo "Using memmem() replacement."
fi

csfile="../src/include/compilersupport.h"
echo "#ifndef _UADE_COMPILER_SUPPORT_H_" > "$csfile"
echo "#define _UADE_COMPILER_SUPPORT_H_" >> "$csfile"
$TARGETCC $ARCHFLAGS $ARCHLIBS -o unlikelytest unlikelytest.c 2>/dev/null
if test "$?" = "0" ; then
    cat >> "$csfile" <<EOF
#define likely(x)	__builtin_expect(!!(x), 1)
#define unlikely(x)	__builtin_expect(!!(x), 0)
EOF
else
    cat >> "$csfile" <<EOF
#define likely(x) (!!(x))
#define unlikely(x) (!!(x))
EOF
fi
echo "#endif" >> "$csfile"
cd ..

conffile=src/include/uadeconfig.h
echo > "$conffile"
if test "$user" = "yes" ; then
    echo "#define UADE_CONFIG_USER_MODE (1)" >> "$conffile"
else
    echo "#define UADE_CONFIG_USER_MODE (0)" >> "$conffile"
fi
echo "#define UADE_CONFIG_BASE_DIR \"$uadedatadir\"" >> "$conffile"
echo "#define UADE_CONFIG_UADE_CORE \"$uadelibdir/$UADECORENAME\"" >> "$conffile"
test -c /dev/urandom && echo "#define UADE_CONFIG_HAVE_URANDOM" >> "$conffile"
echo "#define UADE_VERSION \"$VERSION\"" >> "$conffile"
test "$OS" = "Cygwin" && echo "#define UADE_HAVE_CYGWIN" >> "$conffile"

if test "$useuadecore" = "yes" ; then
    uadecorerule="uadecore"
    uadecoreinstallrule="uadecoreinstall"
else
    uadecorerule=""
    uadecoreinstallrule=""
fi
if test "$useuade123" = "yes" ; then
    uade123rule="uade123"
    uade123installrule="uade123install"
else
    uade123rule=""
    uade123installrule=""
fi
if test "$usexmms" = "yes" ; then
    xmmspluginrule="xmmsplugin"
    xmmsplugininstallrule="xmmsplugininstall"
else
    xmmspluginrule=""
    xmmsplugininstallrule=""
fi

if test "$useaudacious" = "yes" ; then
    audaciouspluginrule="audaciousplugin"
    audaciousplugininstallrule="audaciousplugininstall"
else
    audaciouspluginrule=""
    audaciousplugininstallrule=""
fi

sed -e "s|{MAKE}|$MAKE|g" \
    -e "s|{DATADIR}|$uadedatadir|g" \
    -e "s|{BINDIR}|$bindir|g" \
    -e "s|{DOCDIR}|$docdir|g" \
    -e "s|{MANDIR}|$mandir|g" \
    -e "s|{LIBDIR}|$uadelibdir|g" \
    -e "s|{PACKAGEPREFIX}|$packageprefix|g" \
    -e "s|{UADECORENAME}|$UADECORENAME|g" \
    -e "s|{UADECORE}|$uadecorerule|g" \
    -e "s|{UADECOREINSTALL}|$uadecoreinstallrule|g" \
    -e "s|{UADE123NAME}|$UADE123NAME|g" \
    -e "s|{UADE123}|$uade123rule|g" \
    -e "s|{UADE123INSTALL}|$uade123installrule|g" \
    -e "s|{XMMSPLUGIN}|$xmmspluginrule|g" \
    -e "s|{XMMSPLUGININSTALL}|$xmmsplugininstallrule|g" \
    -e "s|{XMMSPLUGINDIR}|$xmmsplugindir|g" \
    -e "s|{AUDACIOUSPLUGIN}|$audaciouspluginrule|g" \
    -e "s|{AUDACIOUSPLUGININSTALL}|$audaciousplugininstallrule|g" \
    -e "s|{AUDACIOUSPLUGINDIR}|$audaciousplugindir|g" \
    -e "s|{PKGCONFIGDIR}|$pkgconfigdir|g" \
    Makefile.in > Makefile

for file in src/Makefile.in src/frontends/*/Makefile.in ; do
    dst="`echo $file |sed -e "s|\.in||"`"
    sed -e "s|{ARCHFLAGS}|$ARCHFLAGS|g" \
	-e "s|{ARCHLIBS}|$ARCHLIBS|g" \
	-e "s|{AOFLAGS}|$AOFLAGS|g" \
	-e "s|{AOLIBS}|$AOLIBS|g" \
	-e "s|{XMMSFLAGS}|$XMMSFLAGS|g" \
	-e "s|{XMMSLIBS}|$XMMSLIBS|g" \
	-e "s|{AUDACIOUSFLAGS}|$AUDACIOUSFLAGS|g" \
	-e "s|{AUDACIOUSLIBS}|$AUDACIOUSLIBS|g" \
	-e "s|{CC}|$TARGETCC|g" \
	-e "s|{OBJCOPY}|$TARGETOBJCOPY|g" \
	-e "s|{NATIVECC}|$NATIVECC|g" \
	-e "s|{SOUNDSOURCE}|$SOUNDSOURCE|g" \
	-e "s|{SOUNDHEADER}|$SOUNDHEADER|g" \
	-e "s|{DEBUGFLAGS}|$debug_flags|g" \
	-e "s|{OSSUPPORTMODULES}|$OSSUPPORTMODULES|g" \
	-e "s|{SHAREDLIBRARYFLAGS}|$SHAREDLIBRARYFLAGS|g" \
	"$file" > "$dst"
done


echo ""
echo ""
echo ""
echo "Development happens now in the Git repository since 2007-05-28. Please issue:"
echo ""
echo "        git-clone git://zakalwe.fi/uade uade.git"
echo ""
echo "to checkout latest development tree."
echo ""
echo "Sleeping 5 secs ..."
echo ""
sleep 5
echo "You may compile now :-)"
@


1.65
log
@Document --no-debug in ./configure --help
@
text
@d568 15
@


1.64
log
@Released UADE 2.07 (Walpurgis night)
@
text
@a131 1
		echo " --make=exe             Use 'exe' as the make command"
d135 1
d137 1
@


1.63
log
@release 2.06
@
text
@d3 1
a3 1
VERSION=2.06
@


1.62
log
@none
@
text
@d3 1
a3 1
VERSION=2.05
@


1.61
log
@*** empty log message ***
@
text
@d343 1
a343 1
        if `$PKG_CONFIG --max-version=1.2.2  audacious` = 0; then
@


1.60
log
@corrected version number to 2.05
@
text
@d343 5
a347 1
	audaciousplugindir="$HOME/.audacious/Plugins/Input"
@


1.59
log
@fixed memmem() replacement
@
text
@d3 1
a3 1
VERSION=2.04
@


1.58
log
@committed some amigaos4 changes
@
text
@d456 1
@


1.57
log
@merge unixipc.c and unixsupport.c. work-around the pipe vs socket kernel
scheduling problem for some 2.6.x linuxes.
@
text
@d238 1
a238 1
    ARCHFLAGS="$ARCHFLAGS"
@


1.56
log
@2.04 now, really
@
text
@d444 1
a447 4
cat > src/include/ossupport.h <<EOF
#include <unixsupport.h>
EOF
OSSUPPORTMODULES="unixsupport.c include/unixsupport.h"
d449 3
a476 5
cat > src/ipcsupport.c <<EOF
#include "unixipc.c"
EOF
IPCSUPPORTMODULES="unixipc.c"

a558 1
	-e "s|{IPCSUPPORTMODULES}|$IPCSUPPORTMODULES|g" \
@


1.55
log
@*** empty log message ***
@
text
@d3 1
a3 1
VERSION=2.03
@


1.54
log
@remove locking on songdb on cygwin
@
text
@d364 1
a364 2
echo "#include <string.h>" > ../src/include/strlrep.h
echo "" > ../src/strlrep.c
d366 4
a369 1
if test "$?" != "0" ; then
d373 3
@


1.53
log
@*** empty log message ***
@
text
@d488 1
@


1.52
log
@*** empty log message ***
@
text
@a463 1
    echo "The compiler doesn't support likely() and unlikely()"
@


1.51
log
@*** empty log message ***
@
text
@d453 18
@


1.50
log
@*** empty log message ***
@
text
@a105 1
		echo "foo"
a112 1
		echo "foo"
@


1.49
log
@*** empty log message ***
@
text
@d13 1
a13 1
TARGETCC=""
d15 1
d80 1
d82 1
a171 4
if test -z "$TARGETCC" ; then
    TARGETCC="$NATIVECC"
fi

d537 1
@


1.48
log
@*** empty log message ***
@
text
@d398 7
a404 7
if test "$user" = "no" ; then
    rm -f uade.pc
    if test "$PKG_CONFIG" != "" ; then
	if test "$useuade123" = "no" ; then
	    pkgrequirements=""
	fi
	cat > uade.pc <<EOF
a413 1
    fi
@


1.47
log
@*** empty log message ***
@
text
@d3 2
a4 1
VERSION=2.02
d37 1
d136 1
a136 1
		echo " --libdir=dir           Add this dircetory to linking path"
d397 20
d420 1
d525 1
@


1.46
log
@*** empty log message ***
@
text
@d428 8
@


1.45
log
@*** empty log message ***
@
text
@d27 1
a27 1
debug_flags=""
d119 2
a120 2
	--debug)
		debug_flags="-g"
@


1.44
log
@*** empty log message ***
@
text
@d3 1
a3 1
VERSION=2.01
@


1.43
log
@*** empty log message ***
@
text
@d442 1
a442 1
test -e /dev/urandom && echo "#define UADE_CONFIG_HAVE_URANDOM" >> "$conffile"
@


1.42
log
@*** empty log message ***
@
text
@d225 5
d250 8
@


1.41
log
@*** empty log message ***
@
text
@d197 1
a197 1
	useaudacious="yes"
@


1.40
log
@*** empty log message ***
@
text
@d31 1
d35 1
d85 3
d108 8
d149 2
d195 18
d230 1
d236 1
d308 3
d330 3
d401 4
d454 8
d478 3
d491 2
@


1.39
log
@*** empty log message ***
@
text
@d11 3
d27 2
a29 1
packageprefix=""
a33 1
debug_flags=""
d68 9
d123 3
d152 4
d313 1
a313 1
$CC -o strltest strltest.c 2>/dev/null
d323 1
a323 1
$CC -o stdinttest stdinttest.c 2>/dev/null
d348 4
d435 2
a436 1
	-e "s|{CC}|$CC|g" \
@


1.38
log
@*** empty log message ***
@
text
@d350 1
a350 4
cat > src/include/ipcsupport.h <<EOF
#include <unixipc.h>
EOF
IPCSUPPORTMODULES="unixipc.c include/unixipc.h"
@


1.37
log
@*** empty log message ***
@
text
@d347 8
d420 1
@


1.36
log
@*** empty log message ***
@
text
@d3 1
a3 1
VERSION=2.00
@


1.35
log
@*** empty log message ***
@
text
@d188 3
@


1.34
log
@*** empty log message ***
@
text
@d296 10
@


1.33
log
@*** empty log message ***
@
text
@d146 1
a146 1
if test "$usexmms" = "auto" ; then
d149 2
d152 4
a158 5
fi

if test "$usexmms" = "yes" ; then
    XMMSFLAGS="`$XMMS_CONFIG --cflags`"
    XMMSLIBS="`$XMMS_CONFIG --libs`"
@


1.32
log
@*** empty log message ***
@
text
@d84 1
a148 2
	XMMSFLAGS="`$XMMS_CONFIG --cflags`"
	XMMSLIBS="`$XMMS_CONFIG --libs`"
d153 5
@


1.31
log
@*** empty log message ***
@
text
@d3 1
a3 1
VERSION=1.50
@


1.30
log
@*** empty log message ***
@
text
@d166 2
d182 1
d394 1
@


1.29
log
@*** empty log message ***
@
text
@d28 1
d72 4
d112 3
d164 1
d188 1
d334 1
a334 1
echo "#define UADE_CONFIG_UADE_CORE \"$uadelibdir/uadecore\"" >> "$conffile"
d338 7
a351 2
xmmspluginrule=""
xmmsplugininstallrule=""
d355 3
d367 3
@


1.28
log
@*** empty log message ***
@
text
@d28 1
a28 1
xmmsplugindir="auto"
d231 1
a231 1
	xmmsplugin="`xmms-config --input-plugin-dir`"
d250 1
a250 1
	xmmsplugin="$HOME/.xmms/Plugins/Input"
d303 3
@


1.27
log
@*** empty log message ***
@
text
@a25 1
mymods="\$ENV{HOME}"
d27 1
a27 1
usebmp="no"
a28 7
bmpplugindir="auto"
FORCEDAUDIOTARGET="AO"
disablealsa="no"
disableoss="no"
disablesdl="no"
disableao="no"
interaction="no"
a60 7

	--glib-config=*)
	        GLIB_CONFIG=`echo $opt | sed -n 's/--glib-config=\(.*\)/\1/p'`
		;;
	--gtk-config=*)
	        GTK_CONFIG=`echo $opt | sed -n 's/--gtk-config=\(.*\)/\1/p'`
		;;
d70 7
a76 3
#	--bmp-plugin-dir=*)
#		bmpplugindir=`echo $opt | sed -n 's/--bmp-plugin-dir=\(.*\)/\1/p'`
#		;;
a83 22
#	--with-bmp)
#		usebmp="yes"
#		;;
#	--without-bmp)
#		usebmp="no"
#		;;

#	--with-alsa)
#		FORCEDAUDIOTARGET="ALSA"
#		disablealsa="no"
#		;;
#	--without-alsa)
#		disablealsa="yes"
#		;;

	--with-ao)
		FORCEDAUDIOTARGET="AO"
		disableao="no"
		;;
	--without-ao)
		disableao="yes"
		;;
a92 2
		echo "Usage:"
		echo
d94 3
a96 3
                echo " --user           Install the program completely to the home directory"
		echo "                  for _this_ user (no root privileges needed for installation)"
                echo " --prefix=path    Install program under 'path'"
d104 2
a105 1
		echo " --sharedir=dir         Install UADE data files into this directory"
d107 5
a111 2
		echo " --with-xmms          Compile an XMMS plugin (auto detect)"
		echo " --without-xmms       Do not compile an XMMS plugin"
d114 1
a114 3
		echo " --glib-config=exe    Use 'exe' as glib-config executable"
		echo " --gtk-config=exe     Use 'exe' as gtk-config executable"
		echo " --pkg-config=exe     Use 'exe' as pkg-config executable"
d140 2
a147 9
if test "$usebmp" = "auto" ; then
    usebmp="no"
    if test -n "$PKG_CONFIG" ; then
	if test -n "`$PKG_CONFIG bmp --libs 2>/dev/null`"; then
	    usebmp="yes"
	fi
    fi
fi

a154 2
AUDIOTARGET="NULL"
LIBTOOL="libtool"
d157 1
a157 9
if test -n "$OS" && test "$OS" = "SunOS"; then
    echo
    echo "Configuring for Solaris." 
    AUDIOTARGET="SOLARIS"
elif test -n "$OS" && test "$OS" = "IRIX"; then
    echo
    echo "Configuring for IRIX."
    AUDIOTARGET="SGI"
elif test -n "$OS" && test "$OS" = "MorphOS"; then
a159 1
    AUDIOTARGET="AHI"
a160 1
    UNIXSHELL="no"
a164 1
    AUDIOTARGET="AHI"
a165 1
    UNIXSHELL="no"
a169 1
    AUDIOTARGET="COREAUDIO"
a170 22
    LIBTOOL="glibtool"
    if test "$interaction" != "nooo"; then
        interaction="yes"
    fi
elif test -n "$OS" && test "$OS" = "Linux"; then
    if test "$interaction" != "nooo"; then
        interaction="yes"
    fi
    AUDIOTARGET="ALSA"
elif test -n "$OS" && test "$OS" = "OpenBSD"; then
    if test "$interaction" != "nooo"; then
        interaction=yes
    fi
    AUDIOTARGET="SOLARIS"
else
    grep -i cygwin 2>/dev/null >/dev/null <<EOF
$OS
EOF
    if test "$?" = "0" ; then
	OS="Cygwin"
	UADE123NAME="uade123.exe"
    fi
d173 2
a174 20
if test "$disablealsa" = "yes" && test "$AUDIOTARGET" = "ALSA"; then
    AUDIOTARGET="NULL"
fi
if test "$disableoss" = "yes" && test "$AUDIOTARGET" = "OSS"; then
    AUDIOTARGET="NULL"
fi
if test "$disablesdl" = "yes" && test "$AUDIOTARGET" = "SDL"; then
    AUDIOTARGET="NULL"
fi
if test "$disableao" = "yes" && test "$AUDIOTARGET" = "AO"; then
    AUDIOTARGET="NULL"
fi


# Automatic checking for ALSA version 1.0.x. Fall back to OSS sound on
# failure.
if test "$AUDIOTARGET" = "ALSA"; then
 cat > alsatest.c <<EOF
#include <alsa/asoundlib.h>
int main(void) { return (!(SND_LIB_MAJOR==1 && SND_LIB_MINOR==0)); }
d176 3
a178 54
$CC -Wall -O2 -o alsatest alsatest.c 2>/dev/null || AUDIOTARGET="OSS"
fi

if test -n "$FORCEDAUDIOTARGET"; then
    AUDIOTARGET="$FORCEDAUDIOTARGET"
    echo "Forcing sound output to be $AUDIOTARGET"
fi

AUDIOFLAGS=""
AUDIOLIBS=""

if test "$AUDIOTARGET" = "SOLARIS"; then
    SOUNDSOURCE="sd-sound-solaris.c"
    SOUNDHEADER="sd-sound-generic.h"
elif test "$AUDIOTARGET" = "SGI"; then
    AUDIOLIBS="$UADEEXTRALIBS -lgen -laudio"
    SOUNDSOURCE="sd-sound-sgi.c"
    SOUNDHEADER="sd-sound-sgi.h"
elif test "$AUDIOTARGET" = "AHI"; then
    SOUNDSOURCE="sd-sound-ahi.c"
    SOUNDHEADER="sd-sound-ahi.h"
elif test "$AUDIOTARGET" = "ALSA"; then
    AUDIOFLAGS=""
    AUDIOLIBS="-lasound"
    if test -n "$PKG_CONFIG" ; then
	AUDIOFLAGS="`"$PKG_CONFIG" alsa --cflags`" || AUDIOFLAGS=""
	AUDIOLIBS="`"$PKG_CONFIG" alsa --libs`" || AUDIOLIBS="-lasound"
    fi
    SOUNDSOURCE="sd-sound-alsa.c"
    SOUNDHEADER="sd-sound-alsa.h"
elif test "$AUDIOTARGET" = "OSS"; then
    SOUNDHEADER="sd-sound-generic.h"
    SOUNDSOURCE="sd-sound-oss.c"
elif test "$AUDIOTARGET" = "SDL"; then
    AUDIOFLAGS=`sdl-config --cflags`
    AUDIOLIBS=`sdl-config --libs`
    SOUNDSOURCE="sd-sound-sdl.c"
    SOUNDHEADER="sd-sound-sdl.h"
elif test "$AUDIOTARGET" = "AO"; then
    AUDIOFLAGS=""
    AUDIOLIBS="-lao"
    if test -n "$PKG_CONFIG" ; then
	AUDIOFLAGS="`"$PKG_CONFIG" ao --cflags`" || AUDIOFLAGS=""
	AUDIOLIBS="`"$PKG_CONFIG" ao --libs`" || AUDIOLIBS="-lao"
    fi
    SOUNDSOURCE="sd-sound-ao.c"
    SOUNDHEADER="sd-sound-ao.h"
elif test "$AUDIOTARGET" = "COREAUDIO"; then
    AUDIOLIBS="-framework coreaudio"
    SOUNDSOURCE="sd-sound-coreaudio.c"
    SOUNDHEADER="sd-sound-coreaudio.h"
else
    SOUNDSOURCE="sd-sound-null.c"
    SOUNDHEADER="sd-sound-null.h"
a180 2
AUDIOFLAGS=""
AUDIOLIBS=""
a182 1

d191 1
a191 2
PERLDIR="`which perl`"
INSTALLTEST="`which ginstall`"
a259 10
# --xmms-plugin-dir overrides automatically detected xmms plugin directory
if test "$xmmsplugindir" != "auto"; then
    xmmsplugin=$xmmsplugindir
fi

# --bmp-plugin-dir overrides automatically detected bmp plugin directory
if test "$bmpplugindir" != "auto"; then
    bmpplugin=$bmpplugindir
fi

a269 13
LHA="`which lha`"
if test -x "$LHA"; then
    LHAREPLY="yes"
else
    echo
    echo "LHA archiver not found: UADE won't take advantage of lha archives"
    echo "until 'lha' executable is placed into command execution path."
    echo "You do not need to reinstall and/or recompile UADE if you later add"
    echo "lha to command execution path.."
    echo
    LHAREPLY="no"
fi

d280 9
a288 6
AOFLAGS="`pkg-config --cflags ao`"
if test "$?" != "0"; then
    echo ""
    echo "Configure error:"
    echo "Please install libao (including development kit)."
    exit -1
a289 2
AOLIBS="`pkg-config --libs ao`"

d291 1
d298 4
a301 1
echo "uade123 sound output:                   : $AUDIOTARGET"
d325 7
a331 2
uade123rule="uade123"
uade123installrule="uade123install"
d351 1
a351 1
    -e "s|{XMMSPLUGINDIR}|$xmmsplugin|g" \
a357 2
	-e "s|{AUDIOFLAGS}|$AUDIOFLAGS|g" \
	-e "s|{AUDIOLIBS}|$AUDIOLIBS|g" \
d360 2
@


1.26
log
@*** empty log message ***
@
text
@d27 1
a27 1
usexmms="no"
d85 3
a87 7
	--bmp-plugin-dir=*)
		bmpplugindir=`echo $opt | sed -n 's/--bmp-plugin-dir=\(.*\)/\1/p'`
		;;
	--mymods=*)
		mymods=`echo $opt | sed -n 's/--mymods=\(.*\)/\1/p'`
		mod=1
		;;
d95 14
a108 26
	--with-bmp)
		usebmp="yes"
		;;
	--without-bmp)
		usebmp="no"
		;;

	--with-alsa)
		FORCEDAUDIOTARGET="ALSA"
		disablealsa="no"
		;;
	--without-alsa)
		disablealsa="yes"
		;;

	--with-null)
		FORCEDAUDIOTARGET="NULL"
		;;

	--with-oss)
		FORCEDAUDIOTARGET="OSS"
		disableoss="no"
		;;
	--without-oss)
		disableoss="yes"
		;;
a117 14
	--with-sdl)
		FORCEDAUDIOTARGET="SDL"
		disablesdl="no"
		;;
	--without-sdl)
		disablesdl="yes"
		;;

	--interaction)
		interaction="yes"
		;;
	--no-interaction)
		interaction="nooo"
		;;
d140 3
d175 1
a175 1
	echo "Couldn't find xmms-config => not compiling xmms-plugin!"
d469 2
a470 1
echo "Sound output with                       : $AUDIOTARGET"
@


1.25
log
@*** empty log message ***
@
text
@d520 1
d522 1
d525 1
d537 1
d539 1
@


1.24
log
@*** empty log message ***
@
text
@d517 1
@


1.23
log
@*** empty log message ***
@
text
@d29 2
a30 2
xmmsplugindir="no"
bmpplugindir="no"
d407 3
d426 3
a428 2
    xmmsplugin="$HOME/.xmms/Plugins/Input"
    bmpplugin="$HOME/.bmp/Plugins/Input"
d534 1
@


1.22
log
@*** empty log message ***
@
text
@d514 1
d520 10
a529 9
sed -e "s|{MAKE}|$MAKE|" \
    -e "s|{DATADIR}|$uadedatadir|" \
    -e "s|{BINDIR}|$bindir|" \
    -e "s|{DOCDIR}|$docdir|" \
    -e "s|{MANDIR}|$mandir|" \
    -e "s|{LIBDIR}|$uadelibdir|" \
    -e "s|{PACKAGEPREFIX}|$packageprefix|" \
    -e "s|{UADE123NAME}|$UADE123NAME|" \
    -e "s|{XMMSPLUGIN}|$xmmspluginrule|" \
d534 11
a544 7
    sed -e "s|{ARCHFLAGS}|$ARCHFLAGS|" -e "s|{ARCHLIBS}|$ARCHLIBS|" \
	-e "s|{AUDIOFLAGS}|$AUDIOFLAGS|" -e "s|{AUDIOLIBS}|$AUDIOLIBS|" \
	-e "s|{AOFLAGS}|$AOFLAGS|" -e "s|{AOLIBS}|$AOLIBS|" \
	-e "s|{CC}|$CC|" \
	-e "s|{SOUNDSOURCE}|$SOUNDSOURCE|" -e "s|{SOUNDHEADER}|$SOUNDHEADER|" \
	-e "s|{DEBUGFLAGS}|$debug_flags|" \
	-e "s|{OSSUPPORTMODULES}|$OSSUPPORTMODULES|" \
@


1.21
log
@*** empty log message ***
@
text
@d514 5
d527 1
@


1.20
log
@*** empty log message ***
@
text
@d183 1
a183 2
		echo "illegal option $opt"
		exit
@


1.19
log
@*** empty log message ***
@
text
@d24 1
a24 1
user="yes"
d27 4
a30 4
usexmms="auto"
usebmp="auto"
xmmsplugindir="auto"
bmpplugindir="auto"
a170 22
		echo "Plugin control:"
		echo " --with-xmms            Compile XMMS plugin"
		echo " --without-xmms         Don't compile XMMS plugin"
		echo " --xmms-plugin-dir=dir  The XMMS input plugin is installed into this directory"
		echo " --with-bmp             Compile BeepMP plugin"
		echo " --without-bmp          Don't compile BeepMP plugin"
		echo " --bmp-plugin-dir=dir   The BeepMP input plugin is installed into this directory"
		echo
		echo "Pwrap control:"
		echo " --mymods=path        The default module directory for pwrap tk interface"
		echo "                      users. Default directory is the homedir."
		echo "Sound target control:"
		echo " --with-alsa          Use ALSA sound output"
		echo " --without-alsa       Do not use ALSA sound output"
		echo " --with-null          No sound output (just for testing)"
		echo " --with-oss           Use OSS sound output"
		echo " --without-oss        Do not use OSS sound output"
		echo " --with-ao            Use libao sound output"
		echo " --without-ao         Do not use libao sound output"
		echo " --with-sdl           Use SDL sound output"
		echo " --without-sdl        Do not use SDL sound output"
		echo
a407 6
    if test "$usexmms" = "yes"; then
	xmmsplugin=`$XMMS_CONFIG --input-plugin-dir`
    fi
    if test "$usebmp" = "yes"; then
	bmpplugin=`$PKG_CONFIG bmp --variable=input_plugin_dir`
    fi
d477 10
a495 4
AOFLAGS="`pkg-config --cflags ao`"
AOLIBS="`pkg-config --libs ao`"


d520 1
a520 2
    -e "s|{WITH_XMMS}|$usexmms|" \
    -e "s|{WITH_BEEP}|$usebmp|" \
@


1.18
log
@*** empty log message ***
@
text
@d247 1
d290 8
d545 1
@


1.17
log
@*** empty log message ***
@
text
@d517 2
a518 1
echo > src/include/uadeconfig.h
d520 1
a520 1
    echo "#define UADE_CONFIG_USER_MODE (1)" >> src/include/uadeconfig.h
d522 1
a522 1
    echo "#define UADE_CONFIG_USER_MODE (0)" >> src/include/uadeconfig.h
d524 3
a526 2
echo "#define UADE_CONFIG_BASE_DIR \"$uadedatadir\"" >> src/include/uadeconfig.h
echo "#define UADE_CONFIG_UADE_CORE \"$uadelibdir/uadecore\"" >> src/include/uadeconfig.h
@


1.16
log
@*** empty log message ***
@
text
@d416 2
a417 1
    uadedatadir="$prefix/share/uade"
d439 1
a519 1
    echo "#define UADE_CONFIG_BASE_DIR \"$HOME/.uade2\"" >> src/include/uadeconfig.h
a521 1
    echo "#define UADE_CONFIG_BASE_DIR \"$uadedatadir\"" >> src/include/uadeconfig.h
d523 2
@


1.15
log
@*** empty log message ***
@
text
@d518 1
d521 1
@


1.14
log
@*** empty log message ***
@
text
@d24 1
a24 1
user="no"
d435 1
a435 1
	prefix="$HOME/.uade"
d515 16
d532 1
a532 1
for file in Makefile.in src/Makefile.in src/frontends/*/Makefile.in ; do
@


1.13
log
@*** empty log message ***
@
text
@d308 1
a308 1
 cat > strltest.c <<EOF
d312 1
a312 1
$CC -Wall -O2 -o testexe test.c 2>/dev/null || AUDIOTARGET="OSS"
@


1.12
log
@*** empty log message ***
@
text
@d308 1
a308 1
 cat > test.c <<EOF
@


1.11
log
@*** empty log message ***
@
text
@d516 1
a516 1
for file in src/Makefile.in src/frontends/*/Makefile.in ; do
@


1.10
log
@*** empty log message ***
@
text
@d506 10
d524 1
a526 8


cat > src/ossupport.c <<EOF
#include "unixsupport.c"
EOF
cat > src/include/ossupport.h <<EOF
#include <unixsupport.h>
EOF
@


1.9
log
@*** empty log message ***
@
text
@d3 1
a3 1
VERSION=2.00
@


1.8
log
@*** empty log message ***
@
text
@d516 8
@


1.7
log
@*** empty log message ***
@
text
@d503 3
d510 1
@


1.6
log
@*** empty log message ***
@
text
@d485 1
a485 1
echo "#include <string.h>" > ../src/strlrep.h
d489 2
a490 1
    cp strlrep.[ch] ../src/
@


1.5
log
@*** empty log message ***
@
text
@d502 9
a510 6
sed -e "s|{ARCHFLAGS}|$ARCHFLAGS|" -e "s|{ARCHLIBS}|$ARCHLIBS|" \
    -e "s|{AUDIOFLAGS}|$AUDIOFLAGS|" -e "s|{AUDIOLIBS}|$AUDIOLIBS|" \
    -e "s|{CC}|$CC|" \
    -e "s|{SOUNDSOURCE}|$SOUNDSOURCE|" -e "s|{SOUNDHEADER}|$SOUNDHEADER|" \
    -e "s|{DEBUGFLAGS}|$debug_flags|" \
  src/Makefile.in > src/Makefile
@


1.4
log
@*** empty log message ***
@
text
@d368 5
@


1.3
log
@*** empty log message ***
@
text
@d484 1
a484 1
    cp strlrep.[ch] ../src/s
@


1.2
log
@*** empty log message ***
@
text
@d480 5
a484 3
echo "#include <string.h>" > strl.c
if test -n "$OS" && test "$OS" != "MorphOS"; then
    $CC -o strltest strltest.c 2>/dev/null || cp strlrep.c strl.c
a486 1
mv compat/strl.c src/
@


1.1
log
@*** empty log message ***
@
text
@a237 3
cp configure.h config.h
chmod u+w config.h

a245 2
OSSOURCE="uade-os-unix.c"
OSHEADER="uade-os-unix.h"
a259 2
    OSSOURCE="uade-os-amiga.c"
    OSHEADER="uade-os-amiga.h"
a266 2
    OSSOURCE="uade-os-amiga.c"
    OSHEADER="uade-os-amiga.h"
a274 1
    echo "#define HAVE_MACOSX" >> config.h
a369 2
echo "#include \"$OSSOURCE\"" > osdep/uade-os.c;
echo "#include \"$OSHEADER\"" > osdep/uade-os.h;
@

