sooperlooper-1.7.3~dfsg0/0000755000175000017500000000000012442352707014044 5ustar miramirasooperlooper-1.7.3~dfsg0/Makefile.in0000644000175000017500000006072212442352517016117 0ustar miramira# Makefile.in generated by automake 1.11 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. @SET_MAKE@ # Copyright (C) 2004 Jesse Chappell # # This file is free software; as a special exception the author 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. VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/version.h.in $(top_srcdir)/configure COPYING \ config.guess config.sub depcomp install-sh missing \ mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = version.h CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d "$(distdir)" \ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr "$(distdir)"; }; } am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ACLOCAL_FLAGS = @ACLOCAL_FLAGS@ AMTAR = @AMTAR@ AUDIO_LIBS = @AUDIO_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_INCLUDES = @BASE_INCLUDES@ BASE_LIBS = @BASE_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FFTW_CFLAGS = @FFTW_CFLAGS@ FFTW_LIBS = @FFTW_LIBS@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LOSC_CFLAGS = @LOSC_CFLAGS@ LOSC_LIBS = @LOSC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NCURSES_LIBS = @NCURSES_LIBS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ RUBBERBAND_CFLAGS = @RUBBERBAND_CFLAGS@ RUBBERBAND_LIBS = @RUBBERBAND_LIBS@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIGCPP_CFLAGS = @SIGCPP_CFLAGS@ SIGCPP_LIBS = @SIGCPP_LIBS@ SL_DIRS = @SL_DIRS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SOOP_MAJOR_VERSION = @SOOP_MAJOR_VERSION@ SOOP_MICRO_VERSION = @SOOP_MICRO_VERSION@ SOOP_MINOR_VERSION = @SOOP_MINOR_VERSION@ SOOP_RELEASE = @SOOP_RELEASE@ SOOP_SO_VERSION = @SOOP_SO_VERSION@ SOOP_VERSION = @SOOP_VERSION@ STRIP = @STRIP@ VERSION = @VERSION@ WX_CFLAGS = @WX_CFLAGS@ WX_CONFIG = @WX_CONFIG@ WX_CONFIG0 = @WX_CONFIG0@ WX_CONFIG1 = @WX_CONFIG1@ WX_CONFIG2 = @WX_CONFIG2@ WX_CONFIG3 = @WX_CONFIG3@ WX_CONFIG4 = @WX_CONFIG4@ WX_LIBS = @WX_LIBS@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = autogen.sh configure OSC top_marker SUBDIRS = libs src MACDISTDIR = macdist/SooperLooper-@SOOP_VERSION@ all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 version.h: $(top_builddir)/config.status $(srcdir)/version.h.in cd $(top_builddir) && $(SHELL) ./config.status $@ # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \ distclean distclean-generic distclean-hdr distclean-tags \ distcleancheck distdir distuninstallcheck dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags tags-recursive uninstall uninstall-am mac: all -rm -rf macdist -mkdir -p macdist -mkdir -p $(MACDISTDIR) -mkdir -p $(MACDISTDIR)/SooperLooper.app -mkdir -p $(MACDISTDIR)/Presets -mkdir -p $(MACDISTDIR)/SooperLooper.app/Contents -mkdir -p $(MACDISTDIR)/SooperLooper.app/Contents/MacOS -mkdir -p $(MACDISTDIR)/SooperLooper.app/Contents/Resources `@WX_CONFIG@ --rezflags` src/gui/slgui strip src/gui/slgui strip src/sooperlooper cp -f src/gui/slgui $(MACDISTDIR)/SooperLooper.app/Contents/MacOS/ cp -f src/sooperlooper $(MACDISTDIR)/SooperLooper.app/Contents/MacOS/ cp -f mac/Info.plist $(MACDISTDIR)/SooperLooper.app/Contents/ cp -f mac/PkgInfo $(MACDISTDIR)/SooperLooper.app/Contents/ cp -f mac/slgui.icns $(MACDISTDIR)/SooperLooper.app/Contents/Resources/ cp -f mac/README_AudioUnit.txt $(MACDISTDIR)/ cp -rf mac/SooperLooperAU/build/SooperLooperAU.component $(MACDISTDIR)/ cp -f src/*.slb $(MACDISTDIR)/Presets/ cp -f README $(MACDISTDIR)/README.txt cp -f COPYING $(MACDISTDIR)/COPYING.txt cp -f OSC $(MACDISTDIR)/OSC.txt rm -f SooperLooper-@SOOP_VERSION@.dmg hdiutil create -fs HFS+ -volname SooperLooper-@SOOP_VERSION@ -srcfolder macdist SooperLooper-@SOOP_VERSION@.dmg # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: sooperlooper-1.7.3~dfsg0/aclocal.m40000644000175000017500000012435412442352515015712 0ustar miramira# generated automatically by aclocal 1.11 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009 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. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, [m4_warning([this file was generated for autoconf 2.68. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # # Copyright © 2004 Scott James Remnant . # # This program 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. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 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. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.11], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 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. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # 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. # serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 # 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. # serial 10 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # 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. #serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 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. # serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005, 2008 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. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 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. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2009 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. # serial 4 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # 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. # serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 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. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008 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. # serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # 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. # serial 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 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. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006, 2008 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. # serial 2 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 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. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR AC_DEFUN([AM_BUILD_ENVIRONMENT],[ top_marker=top_marker depth=0 while test x$SOOPERLOOPER_TOP = x -a $depth -lt 255 ; do if test -f $top_marker ; then SOOPERLOOPER_TOP=`dirname $top_marker` else top_marker=../$top_marker fi depth=`expr $depth + 1` done if test $depth -eq 255 ; then AC_MSG_ERROR([ the top of the SooperLooper source tree was not found.]) fi dnl dnl convert to absolute path dnl SOOPERLOOPER_TOP=`cd $SOOPERLOOPER_TOP; pwd` export LIBDIRS="pbd midi++ " ACLOCAL_FLAGS="-I $SOOPERLOOPER_TOP/aclocal" ACLOCAL_AMFLAGS="-I $SOOPERLOOPER_TOP/aclocal `if test -d m4 ; then echo -I m4; fi`" AC_SUBST(ACLOCAL_FLAGS) AC_SUBST(ACLOCAL_AMFLAGS) BASE_LIBS="$SOOPERLOOPER_TOP/libs/midi++/libmidipp.a $SOOPERLOOPER_TOP/libs/pbd/libpbd.a" BASE_INCLUDES="-I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" CFLAGS="$CFLAGS -I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" CXXFLAGS="$CXXFLAGS -I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" #LIBS="$LIBS $SOOPERLOOPER_TOP/libs/midi++/libmidipp.a $SOOPERLOOPER_TOP/libs/pbd/libpbd.a" ]) AC_DEFUN([AM_OPT_FLAGS],[ dnl dnl figure out how best to optimize dnl gcc_major_version=4 os_system=Darwin if test "$target_cpu" = "powerpc"; then AC_DEFINE(POWERPC, 1, "Are we running a ppc CPU?") altivecLinux= if test "$?" = "0"; then AC_DEFINE(HAVE_ALTIVEC_LINUX, 1, "Is there Altivec Support ?") if test "$gcc_major_version" = "3"; then dnl -mcpu=7450 does not reliably work with gcc 3.* #OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -maltivec -mabi=altivec" OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -mtune=7450" else OPT_FLAGS="-D_REENTRANT -Os" fi else OPT_FLAGS="-D_REENTRANT -Os " fi OPT_FLAGS="$OPT_FLAGS -mhard-float -mpowerpc-gfxopt" elif echo $target_cpu | grep "i*86" >/dev/null; then if test "$os_system" = "Darwin"; then # pretty good assumption mmx="-mmmx" sse="-msse -mfpmath=sse" OPT_FLAGS="-D_REENTRANT -Os -fomit-frame-pointer $mmx $sse" else cat /proc/cpuinfo | grep mmx >/dev/null if test $? = 0; then mmx="-mmmx" fi cat /proc/cpuinfo | grep sse >/dev/null if test $? = 0; then sse="-msse -mfpmath=sse" fi cat /proc/cpuinfo | grep 3dnow >/dev/null if test $? = 0; then dreidnow="-m3dnow" fi AC_DEFINE(x86, 1, "Nope its intel") if test "$target_cpu" = "i586"; then OPT_FLAGS="-DREENTRANT -O2 -march=i586 -fomit-frame-pointer" elif test "$target_cpu" = "i686"; then OPT_FLAGS="-D_REENTRANT -O2 -march=i686 -fomit-frame-pointer" if test "$gcc_major_version" -ge "3"; then OPT_FLAGS="$OPT_FLAGS $mmx $sse $dreidnow" fi else OPT_FLAGS="-D_REENTRANT -O2 -fomit-frame-pointer" fi fi fi OPT_FLAGS="$OPT_FLAGS -pipe" # LARGEFILE_FLAGS="`getconf LFS_CFLAGS`" LARGEFILE_FLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" CXXFLAGS="-g -D_REENTRANT $LARGEFILE_FLAGS" if test x"$GXX" = xyes ; then CXXFLAGS="$CXXFLAGS -Wall" fi if test x"$GXX" = xyes ; then OPT_CXXFLAGS="$OPT_FLAGS -Wall $LARGEFILE_FLAGS" fi PROF_FLAGS="-pg" dnl dnl some link flags to try to speed linking dnl CXXFLAGS="$CXXFLAGS -fno-merge-constants" ]) sooperlooper-1.7.3~dfsg0/config.sub0000755000175000017500000010224012115444525016023 0ustar miramira#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2009-04-17' # 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., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, 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 . 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 ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # 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 ;; * ) 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* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | 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 | -knuth | -cray) 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 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -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/'` ;; -sco5v6*) # 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] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) 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) ;; ms1) basic_machine=mt-unknown ;; # 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-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # 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 ;; abacus) basic_machine=abacus-unknown ;; 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 ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; 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 ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; 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 ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; 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 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; 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 ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; 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 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; 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 ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; 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 ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; 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 ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-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-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`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 ;; rdos) basic_machine=i386-pc os=-rdos ;; 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 ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; 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 ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; 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 ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: sooperlooper-1.7.3~dfsg0/COPYING0000644000175000017500000004307611754453700015111 0ustar miramira GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. sooperlooper-1.7.3~dfsg0/config.guess0000755000175000017500000013226412115444525016371 0ustar miramira#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2009-04-27' # 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., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, 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 . # Please send patches to . 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 ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # 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. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; 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 ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 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 ;; sh5el) machine=sh5le-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 # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # 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 ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # 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. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; 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 ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (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 ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; 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 ;; 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 ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; 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 ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # 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 ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* 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 -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; 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 ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????: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 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; 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 ;; *: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 main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi 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 ;; *:AIX:*:[456]) 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 ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 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 #include 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 -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include 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 -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; 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 ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; 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 ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:[3456]*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T | authenticamd | genuineintel) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 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 i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; 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 | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; 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 ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; 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 ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; 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 ;; "") # 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 ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; 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 ;; 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 ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; 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 ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. 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 ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /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 ;; 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 i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; 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 ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /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: sooperlooper-1.7.3~dfsg0/README0000644000175000017500000001351512312407362014723 0ustar miramiraSooperLooper -- Live Looping Sampler Jesse Chappell Copyright 2005 DESCRIPTION SooperLooper is a live looping sampler capable of immediate loop recording, overdubbing, multiplying, reversing and more. It allows for multiple simultaneous multi-channel loops limited only by your computer's available memory. The feature-set and operation was inspired by the impressive Gibson Echoplex Digital Pro (EDP). When used with a low-latency audio configuration it is capable of truly realtime live performance looping. The application is a standalone JACK client with an engine controllable via OSC and MIDI. It also includes a GUI which communicates with the engine via OSC (even over a network) for user-friendly control on a desktop. However, this kind of live performance looping tool is most effectively used via hardware (midi footpedals, etc) and the engine can be run standalone on a computer without a monitor. SooperLooper is currently supported on Linux/Unix and OS X platforms. Macintosh OS X packages are available, and are usable with the newest release of JACK-OS X (http://www.jackosx.com/) or as an AU. Future plans include a VST plugin version for both Windows and Mac. This software is licensed under the GPL, thus the source code is free, open and available. It is fully functional, no nagging, no activation keys, nothing to waste but time if you find it doesn't suit your needs. Best of all, because the source is open, there will always be someone around who can fix any problems, or add new features. You are welcome to copy it, give copies to your friends, and modify it. But if you find it useful, then please consider making a donation via PayPal at http://essej.net/sooperlooper/donate.html . FEATURES The feature-set is modeled in the spirit of the Echoplex Digital Pro (EDP) LoopIII and LoopIV. Detailed descriptions of these features are found in the Documentation pages. SooperLooper's primary features are listed below: * Multiple simultaneous multi-channel loops limited only by available RAM * Record, manually triggered, or via input threshold * Overdub for adding more audio on top of existing loop * Multiply, allows increasing loop length by repeating the initial loop beneath * Feedback control allows gradual loop fading, active during overdub/multiply and optionally during playback * Replace audio in loop with new material * Insert new audio into existing loop * Substitute audio in loop with new material, while hearing existing material * Reverse loop playback (even during overdub) at any time, or quantized to loop or cycle boundaries * Trigger loop playback from start at any time, also supports OneShot triggering which will play the loop once then mute. * Mute the loop output at anytime * Undo/Redo allows nearly unlimited undo and redo to previous loop states * Rate Shift allows arbitrary rate change of loop from 1/4 to 4x normal. Works anytime, even during loop record. * Save/Load loops in WAV format * Scratch feature allows DJ-like position scratching (work-in-progress) * Tempo syncable to MIDI clock, JACK transport, manual or tap tempo, or existing loops. * Sync Quantize operations to divisions defined by the tempo, and/or existing loops. * Sync Playback can retrigger automatically to maintain external sync during playback * SUS (Momentary) operation available for all commands for easy realtime granular * Crossfading applied to prevent clicks on loop or edit operation boundaries (crossfade length is adjustable) * MIDI Bindings are arbitarily definable and can be configured to emulate existing setup (EDP, etc) * Key Bindings are arbitarily definable for the GUI * OSC Interface provides the ultimate network-transparent control of the engine * Timestretch and pitch shift USAGE Complete documentation on the operation of SooperLooper can be found on the website at: http://essej.net/sooperlooper/ The main engine is the executable 'sooperlooper'. Either the GUI 'slgui' or the console based test client 'slconsole' can be run which will communicate with a running sooperlooper engine. slgui will attempt to start an engine if none are detected running already. Run 'sooperlooper -h' for command line option help. Note the midi binding file option -m and take a look at the examples oxy8.slb and midiwizard.slb for the format to write your own. The engine can be controlled with MIDI via the ALSA sequencer interface on Linux and CoreMidi on OS X. Do learn-style control binding by choosing the learn option from the context menu's of a button, slider or control. Control-Middle-clicking on the button or slider is a shortcut to start learning. You can edit, load, and save the midi bindings through the MIDI Bindings window in the GUI. OS X USAGE For the OS X package, a double-clickable application is provided that starts the GUI and and engine for you. Before starting SooperLooper, be sure to start the JACK system using the JackPilot application that came with JACK-OSX. Then use the Routing features of JackPilot to connect the inputs and outputs of SooperLooper to the desired places. To connect your MIDI device, you need to use a MIDI patchbay such as the one found here: http://pete.yandell.com/software/ . BUILD REQUIREMENTS JACK >= 0.80 -- http://jackit.sf.net/ wxWidgets -- wxGTK preferably built against gtk2 (configured using the --enable-gtk2 option) or wxMac >= 2.5.3 liblo >= 0.18 -- http://plugin.org.uk/liblo/ Lightweight OSC library sigc++ >= 2 -- http://libsigc.sourceforge.net/ You probably already have it.... libsndfile -- http://www.mega-nerd.com/libsndfile/ libsamplerate -- http://www.mega-nerd.com/SRC/ ncurses -- you probably already have it libxml2 -- same here RubberBand -- http://www.breakfastquay.com/rubberband/ fftw3 -- www.fftw.org (needed by rubberband) sooperlooper-1.7.3~dfsg0/config.h.in0000644000175000017500000000445012442352623016067 0ustar miramira/* config.h.in. Generated from configure.ac by autoheader. */ /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD /* "Is there Altivec Support ?" */ #undef HAVE_ALTIVEC_LINUX /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Have newer JACK connect call */ #undef HAVE_JACK_CLIENT_OPEN /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Set to 1 if you have librubberband. */ #undef HAVE_RUBBERBAND /* Set to 1 if you have libsamplerate. */ #undef HAVE_SAMPLERATE /* Set to 1 if you have libsndfile. */ #undef HAVE_SNDFILE /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* "Are we running a ppc CPU?" */ #undef POWERPC /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Have ALSA Headers */ #undef WITH_ALSA /* Have CoreMIDI Headers */ #undef WITH_COREMIDI /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ #if defined AC_APPLE_UNIVERSAL_BUILD # if defined __BIG_ENDIAN__ # define WORDS_BIGENDIAN 1 # endif #else # ifndef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN # endif #endif /* "Nope its intel" */ #undef x86 sooperlooper-1.7.3~dfsg0/top_marker0000644000175000017500000000014011754453701016126 0ustar miramira !!!! DO NOT DELETE THIS FILE !!!! it exists to mark the top of the ardour source tree. sooperlooper-1.7.3~dfsg0/missing0000755000175000017500000002403611754453700015450 0ustar miramira#! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program 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, 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. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi case "$1" in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch]" ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing 0.4 - GNU automake" ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; aclocal*) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your system. You might have modified some files without having the proper tools for further handling them. You can get \`$1Help2man' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then # We have makeinfo, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` fi touch $file ;; tar) shift if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 fi # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your system. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequirements for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 sooperlooper-1.7.3~dfsg0/OSC0000644000175000017500000001522511755174074014425 0ustar miramiraOSC interface to SooperLooper engine Arguments are prefixed with type: where s=string, i=integer, f=float PING Engine /ping s:return_url s:return_path If engine is there, it will respond with to the given URL and PATH with an OSC message with arguments: s:hosturl s:version i:loopcount Loop commands and parameter gets/sets paths are all prefixed with: /sl/#/ where # is the loop index starting from 0. Specifying -1 will apply the command or operation to all loops. Specifying -3 will apply the command or operation to the selected loop. COMMANDS: /sl/#/down s:cmdname command press /sl/#/up s:cmdname command release /sl/#/forceup s:cmdname forced release to do SUS-like actions /sl/#/hit s:cmdname A single hit only, no press-release action Where cmdname is one of the following: record overdub multiply insert replace reverse mute undo redo oneshot trigger substitute undo_all redo_all mute_on mute_off solo pause solo_next solo_prev record_solo record_solo_next record_solo_prev set_sync_pos reset_sync_pos SET PARAMETER VALUES /sl/#/set s:control f:value To set a parameter for a loop. where control is one of: rec_thresh :: expected range is 0 -> 1 feedback :: range 0 -> 1 dry :: range 0 -> 1 wet :: range 0 -> 1 input_gain :: range 0 -> 1 rate :: range 0.25 -> 4.0 scratch_pos :: 0 -> 1 delay_trigger :: any changes quantize :: 0 = off, 1 = cycle, 2 = 8th, 3 = loop round :: 0 = off, not 0 = on redo_is_tap :: 0 = off, not 0 = on sync :: 0 = off, not 0 = on playback_sync :: 0 = off, not 0 = on use_rate :: 0 = off, not 0 = on fade_samples :: 0 -> ... use_feedback_play :: 0 = off, not 0 = on use_common_ins :: 0 = off, not 0 = on use_common_outs :: 0 = off, not 0 = on relative_sync :: 0 = off, not 0 = on use_safety_feedback :: 0 = off, not 0 = on pan_1 :: range 0 -> 1 pan_2 :: range 0 -> 1 pan_3 :: range 0 -> 1 pan_4 :: range 0 -> 1 input_latency :: range 0 -> ... output_latency :: range 0 -> ... trigger_latency :: range 0 -> ... autoset_latency :: 0 = off, not 0 = on mute_quantized :: 0 = off, not 0 = on overdub_quantized :: 0 == off, not 0 = on GET PARAMETER VALUES /sl/#/get s:control s:return_url s: return_path Which returns an OSC message to the given return url and path with the arguments: i:loop_index s:control f:value Where control is one of the above or: state :: -1 = unknown, 0 = Off 1 = WaitStart 2 = Recording 3 = WaitStop 4 = Playing 5 = Overdubbing 6 = Multiplying 7 = Inserting 8 = Replacing 9 = Delay 10 = Muted 11 = Scratching 12 = OneShot 13 = Substitute 14 = Paused 20 = OffMuted next_state :: same as state loop_len :: in seconds loop_pos :: in seconds cycle_len :: in seconds free_time :: in seconds total_time :: in seconds rate_output :: in_peak_meter :: absolute float sample value 0.0 -> 1.0 (or higher) out_peak_meter :: absolute float sample value 0.0 -> 1.0 (or higher) is_soloed :: 1 if soloed, 0 if not waiting :: 1 if waiting, 0 if not SAVE/LOAD /sl/#/load_loop s:filename s:return_url s:error_path loads a given filename into loop, may return error to error_path /sl/#/save_loop s:filename s:format s:endian s:return_url s:error_path saves current loop to given filename, may return error to error_path format and endian currently ignored, always uses 32 bit IEEE float WAV /save_session s:filename s:return_url s:error_path saves current session description to filename. /load_session s:filename s:return_url s:error_path loads and replaces the current session from filename. GLOBAL PARAMETERS /set s:param f:value /get s:param s:return_url s:retpath where param is one of: tempo :: bpm eighth_per_cycle dry :: range 0 -> 1 affects common input passthru wet :: range 0 -> 1 affects common output level input_gain :: range 0 -> 1 affects common input gain sync_source :: -3 = internal, -2 = midi, -1 = jack, 0 = none, # > 0 = loop number (1 indexed) tap_tempo :: any changes save_loop :: any change triggers quick save, be careful select_next_loop :: any changes select_prev_loop :: any changes select_all_loops :: any changes selected_loop_num :: -1 = all, 0->N selects loop instances (first loop is 0, etc) output_midi_clock :: 0.0 = no, 1.0 = yes LOOP ADD/REMOVE /loop_add i:#channels f:min_length_seconds adds a new loop with # channels and a minimum loop memory /loop_del i:loopindex a value of -1 for loopindex removes last loop, and is the only value currently recommended. SHUTDOWN /quit shutdown engine REGISTER FOR CONTROL CHANGES The following messages register and unregister from update events which will be sent the returl and retpath specified. The update OSC message has the following parameters: i:loop# s:ctrl f:control_value /sl/#/register_update s:ctrl s:returl s:retpath /sl/#/unregister_update s:ctrl s:returl s:retpath registers/unregisters to receive updates for a given input control when any other client changes it. /sl/#/register_auto_update s:ctrl i:ms_interval s:returl s:retpath /sl/#/unregister_auto_update s:ctrl s:returl s:retpath registers/unregisters for automatic repeated updates at the given interval. The interval can be 10-100ms. Values will be rounded down to the nearest 10ms. This is handy for receiving updates for output controls such as state and position. The message is only sent if the control has changed since the last send. /register_update s:ctrl s:returl s:retpath /unregister_update s:ctrl s:returl s:retpath /register_auto_update s:ctrl i:ms_interval s:returl s:retpath /unregister_auto_update s:ctrl s:returl s:retpath These are the global control equivalents to the above. MIDI BINDING CONTROL /get_all_midi_bindings s:returl s:retpath /remove_midi_binding s:binding_serialization s:options /add_midi_binding s:binding_serialization s:options /clear_midi_bindings /load_midi_bindings s:binding_filename s:options /save_midi_bindings s:binding_filename s:options /learn_midi_binding s:binding_serialization s:options s:returl s:retpath /get_next_midi_event s:returl s:retpath return next midi event in a binding serialization /cancel_midi_learn s:returl s:retpath cancel learn or get next midi event in a binding serialization /cancel_get_next_midi s:returl s:retpath sooperlooper-1.7.3~dfsg0/configure.ac0000644000175000017500000003750612442352467016350 0ustar miramiradnl Process this file with autoconf to produce a configure script. AC_INIT(src/engine.cpp) AC_CONFIG_AUX_DIR(.) AC_CANONICAL_HOST AC_CANONICAL_TARGET AC_VALIDATE_CACHED_SYSTEM_TUPLE() SOOP_MAJOR_VERSION=1 SOOP_MINOR_VERSION=7 SOOP_MICRO_VERSION=3 BETA= AC_SUBST(SOOP_MAJOR_VERSION) AC_SUBST(SOOP_MINOR_VERSION) AC_SUBST(SOOP_MICRO_VERSION) SOOP_SO_VERSION=${SOOP_MAJOR_VERSION}:${SOOP_MINOR_VERSION}:${SOOP_MICRO_VERSION}${BETA} SOOP_VERSION=$SOOP_MAJOR_VERSION.$SOOP_MINOR_VERSION.${SOOP_MICRO_VERSION}${BETA} SOOP_RELEASE=$SOOP_MAJOR_VERSION-$SOOP_MINOR_VERSION-${SOOP_MICRO_VERSION}${BETA} AC_SUBST(SOOP_SO_VERSION) AC_SUBST(SOOP_VERSION) AC_SUBST(SOOP_RELEASE) AM_INIT_AUTOMAKE(sooperlooper,$SOOP_VERSION) AC_CONFIG_HEADERS(config.h) dnl ==================================================================== dnl you do have C++, right ? dnl ==================================================================== AC_PROG_CC AC_PROG_CXX if test "$ac_cv_prog_cxx" = "no" ; then AC_MSG_ERROR([*** SooperLooper is written in C++. You don't appear to have a C++ compiler]) fi AC_C_BIGENDIAN #if test x"$GXX" = xyes ; then # CXXFLAGS="$CXXFLAGS -Wall" #fi #OPT_CXXFLAGS="-D_REENTRANT -O6 -fomit-frame-pointer -ffast-math -fstrength-reduce -funroll-loops -fmove-all-movables" ORIG_CXXFLAGS=$CXXFLAGS AM_OPT_FLAGS CXXFLAGS=$ORIG_CXXFLAGS AC_ARG_ENABLE(optimize, [ --disable-optimize avoid optimizations to allow for gdb debugging.], [ if test "x$enable_optimize" = "xno" ; then OPT_CXXFLAGS="" ; fi ], [ OPT_CXXFLAGS="$OPT_CXXFLAGS" ]) AC_MSG_RESULT([OPT_CXXFLAGS is set based on $OPT_CXXFLAGS]) AC_PROG_RANLIB AC_LANG_CPLUSPLUS AC_MSG_CHECKING([for --with-macosx-sdk]) AC_ARG_WITH(macosx-sdk, [ --with-macosx-sdk=PATH use an OS X SDK at PATH], [ wxUSE_MACOSX_SDK=$withval wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval" #echo "wxUSE_MACOSX_SDK=$wxUSE_MACOSX_SDK" >> ${wx_arg_cache_file}.tmp ], [ # NOTE: Empty string on purpose so that --without-macosx-sdk (thus no) # will override --enable-universal_binary's automatic SDK usage. wxUSE_MACOSX_SDK= #LINE=`grep "^wxUSE_MACOSX_SDK=" ${wx_arg_cache_file}` #if test "x$LINE" != x ; then # eval "$LINE" # echo "$LINE" >> ${wx_arg_cache_file}.tmp #fi ]) AC_MSG_RESULT([$wxUSE_MACOSX_SDK]) AC_MSG_CHECKING([for --with-macosx-version-min]) AC_ARG_WITH(macosx-version-min, [ --with-macosx-version-min=VER build binaries which require at least this OS X version], [ wxUSE_MACOSX_VERSION_MIN=$withval wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval" #echo "wxUSE_MACOSX_VERSION_MIN=$wxUSE_MACOSX_VERSION_MIN" >> ${wx_arg_cache_file}.tmp ], [ # default "yes" because when not using an SDK it means the same as no # but when using an SDK it means to use the SDK version wxUSE_MACOSX_VERSION_MIN=yes # See if there is a value in the cache #LINE=`grep "^wxUSE_MACOSX_VERSION_MIN=" ${wx_arg_cache_file}` #if test "x$LINE" != x ; then # eval "$LINE" # echo "$LINE" >> ${wx_arg_cache_file}.tmp #fi ]) AC_MSG_RESULT([$wxUSE_MACOSX_VERSION_MIN]) dnl Set up the Mac OS X SDK. We do this early so configure tests will occur dnl with the SDK in place. dnl NOTE: We clobber wxUSE_MACOSX_SDK with the SDK path if test "x$wxUSE_MACOSX_SDK" = "xno"; then wxUSE_MACOSX_SDK= elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then # TODO: Search for most recent SDK and use it. wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk" fi if test "x$wxUSE_MACOSX_SDK" != "x"; then AC_MSG_CHECKING([for SDK directory $wxUSE_MACOSX_SDK]) if ! test -d "$wxUSE_MACOSX_SDK"; then AC_MSG_FAILURE([not found]) else AC_MSG_RESULT([exists]) fi MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK" eval "CC=\"$CC $MACOSX_SDK_OPTS\"" eval "CXX=\"$CXX $MACOSX_SDK_OPTS\"" eval "LD=\"$LD $MACOSX_SDK_OPTS\"" retest_macosx_linking=yes dnl NOTE: When libtool is used in lieu of AR/RANLIB (i.e. in static mode) dnl the syslibroot makes no difference. We aren't using libtool now but dnl if we ever did, be aware that you don't need to worry about it. fi dnl Set up the deployment target dnl No : Don't specify a min version even if using an SDK dnl Yes : Use the version from the SDK if used, otherwise same as no dnl Param: Use the specified version if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then wxUSE_MACOSX_VERSION_MIN= elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then if test "x$wxUSE_MACOSX_SDK" != "x"; then AC_MSG_CHECKING([SDK deployment version]) dnl We need to quote the next line where we don't need macros and do need [] in the regex [ MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" buildSettings | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` ] # If that failed, try again with the new key if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then [ MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` ] fi if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN AC_MSG_RESULT([$wxUSE_MACOSX_VERSION_MIN]) else AC_MSG_WARN([Could not determine deployment target from SDKSettings.plist]) wxUSE_MACOSX_VERSION_MIN= fi else wxUSE_MACOSX_VERSION_MIN= fi fi if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN" eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\"" eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\"" eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\"" retest_macosx_linking=yes fi dnl If either an SDK or a version option was added, make sure that we can dnl still compile and link both C and C++. If we didn't do this, then most dnl of the remaining tests would fail. if test "x$retest_macosx_linking" = "xyes"; then AC_LANG_PUSH(C) AC_MSG_CHECKING([if C compiler works with SDK/version options]) AC_TRY_LINK([],[],[AC_MSG_RESULT([yes])],[AC_MSG_FAILURE([no. Try a different SDK]); exit 1]) AC_LANG_POP() AC_LANG_PUSH(C++) AC_MSG_CHECKING([if C++ compiler works with SDK/version options]) AC_TRY_LINK([],[],[AC_MSG_RESULT([yes])],[AC_MSG_FAILURE([no. Try a different SDK]); exit 1]) AC_LANG_POP() fi #[ --enable-optimize enable optimizations.], # [ if test "x$enable_optimize" != "xno" ; then OPT_CXXFLAGS="$OPT_CXXFLAGS" ; fi ], # [ OPT_CXXFLAGS="" ] #) #AM_PATH_GTK(1.0.0, , [ # AC_MSG_ERROR([*** soop requires GTK+, but it doesn't appear to be installed]) #]) PKG_CHECK_MODULES(JACK, jack >= 0.80.0, have_jack=yes, have_jack=no) if test "x$have_jack" != "xno" then echo JACKLIBS is ${JACK_LIBS} AC_CHECK_LIB(jack, jack_client_open, [ AC_DEFINE([HAVE_JACK_CLIENT_OPEN], 1, [Have newer JACK connect call])], [], [${JACK_LIBS}]) fi AC_SUBST(JACK_LIBS) AC_SUBST(JACK_CFLAGS) PKG_CHECK_MODULES(LOSC, liblo >= 0.10) AC_SUBST(LOSC_LIBS) AC_SUBST(LOSC_CFLAGS) dnl curses AC_CHECK_LIB(ncurses,initscr,have_ncurses=yes,[AC_MSG_WARN([******** you don't have the ncurses library correctly installed])]) NCURSES_LIBS=-lncurses AC_SUBST(NCURSES_LIBS) dnl sigc++ PKG_CHECK_MODULES(SIGCPP, sigc++-2.0 >= 2.2.10) AC_SUBST(SIGCPP_LIBS) AC_SUBST(SIGCPP_CFLAGS) dnl LIBXML PKG_CHECK_MODULES(XML, libxml-2.0 >= 2.5) AC_SUBST(XML_CFLAGS) AC_SUBST(XML_LIBS) dnl libsndfile PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0) AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile},[Set to 1 if you have libsndfile.]) AC_SUBST(SNDFILE_CFLAGS) AC_SUBST(SNDFILE_LIBS) dnl libsamplerate PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.0.13, ac_cv_samplerate=1, ac_cv_samplerate=0) AC_DEFINE_UNQUOTED([HAVE_SAMPLERATE],${ac_cv_samplerate},[Set to 1 if you have libsamplerate.]) AC_SUBST(SAMPLERATE_CFLAGS) AC_SUBST(SAMPLERATE_LIBS) dnl librubberband PKG_CHECK_MODULES(RUBBERBAND, rubberband >= 0.0.13, ac_cv_rubberband=1, ac_cv_rubberband=0) AC_DEFINE_UNQUOTED([HAVE_RUBBERBAND],${ac_cv_rubberband},[Set to 1 if you have librubberband.]) AC_SUBST(RUBBERBAND_CFLAGS) AC_SUBST(RUBBERBAND_LIBS) dnl fftw (needed by librubberband) PKG_CHECK_MODULES(FFTW, fftw3 >= 3.0, have_fftw=yes , have_fftw=no ) AC_SUBST(FFTW_CFLAGS) AC_SUBST(FFTW_LIBS) dnl wxwindows AC_ARG_WITH([gui], [AS_HELP_STRING([--without-gui], [disable building the GUI])], [], [with_gui=yes]) AC_ARG_WITH(wxconfig-path, [ --with-wxconfig-path=PATH full path to wx-config to use]) if test "x$with_gui" != xno ; then if test "x$with_wxconfig_path" != "x" ; then WX_CONFIG=$with_wxconfig_path else WX_CONFIG="" fi echo WXCONFIG IS \"$WX_CONFIG\" if [[ "$WX_CONFIG" = "" ]] ; then AC_PATH_PROG(WX_CONFIG0, wx-config-2.6, no, $PATH:/usr/local/bin ) if [[ "$WX_CONFIG0" = "no" ]] ; then AC_PATH_PROG(WX_CONFIG1, wxgtk2-2.5-config, no, $PATH:/usr/local/bin ) if [[ "$WX_CONFIG1" = "no" ]] ; then AC_PATH_PROG(WX_CONFIG2, wxgtk2-2.4-config, no, $PATH:/usr/local/bin ) if [[ "$WX_CONFIG2" = "no" ]] ; then AC_PATH_PROG(WX_CONFIG3, wxgtk-2.4-config, no, $PATH:/usr/local/bin ) if [[ "$WX_CONFIG3" = "no" ]] ; then AC_PATH_PROG(WX_CONFIG4, wx-config, no, $PATH:/usr/local/bin ) if [[ "$WX_CONFIG4" = "no" ]] ; then AC_MSG_ERROR("Could not find any wx-config scripts: is wxWindows installed?") else WX_CONFIG=$WX_CONFIG4 fi else WX_CONFIG=$WX_CONFIG3 fi else WX_CONFIG=$WX_CONFIG2 fi else WX_CONFIG=$WX_CONFIG1 fi else WX_CONFIG=$WX_CONFIG0 fi fi WX_LIBS="`$WX_CONFIG --libs`" if $WX_CONFIG --cxxflags > /dev/null 2>&1 ; then WX_CFLAGS="`$WX_CONFIG --cxxflags`" else WX_CFLAGS="`$WX_CONFIG --cflags`" fi AC_SUBST(WX_CFLAGS) AC_SUBST(WX_LIBS) AC_SUBST(WX_CONFIG) SL_DIRS=". gui" else SL_DIRS="." fi AC_SUBST(SL_DIRS) AUDIO_LIBS= AC_CHECK_HEADER(alsa/asoundlib.h, [use_alsa_midi=yes AUDIO_LIBS=-lasound AC_DEFINE([WITH_ALSA], 1, [Have ALSA Headers])], use_alsa_midi=no) AM_CONDITIONAL(WITH_ALSA, test x$use_alsa_midi = xyes) AC_CHECK_FILE(/System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h, [use_coremidi=yes AUDIO_LIBS="-framework CoreMIDI -framework CoreFoundation -framework CoreServices -framework ApplicationServices -framework Accelerate" AC_DEFINE([WITH_COREMIDI], 1, [Have CoreMIDI Headers])], use_coremidi=no) AM_CONDITIONAL(WITH_COREMIDI, test x$use_coremidi = xyes) AC_SUBST(AUDIO_LIBS) EXTRA_LIBS="$JACK_LIBS $XML_LIBS $GTKMM_LIBS $LOSC_LIBS $SIGCPP_LIBS $AUDIO_LIBS" AC_LANG_CPLUSPLUS AC_ARG_ENABLE(debug, [ --enable-debug not optimized and includes debug symbols], [ if test "x$enable_debug" != "xno" ; then CXXFLAGS="-g -Wall -D_REENTRANT -DDEBUG" CFLAGS="$CXXFLAGS" fi ], [ CXXFLAGS="$CXXFLAGS $OPT_CXXFLAGS" CFLAGS="$CFLAGS $OPT_CXXFLAGS" ] ) AM_BUILD_ENVIRONMENT AC_SUBST(BASE_LIBS) AC_SUBST(BASE_INCLUDES) #CFLAGS="$CFLAGS -DSAMPLE_MEMORY=200 $JACK_CFLAGS $LOSC_CFLAGS $SIGCPP_CFLAGS" #CXXFLAGS=$CFLAGS #LIBS="$LIBS $EXTRA_LIBS" #CFLAGS="$CFLAGS -DSAMPLE_MEMORY=200 -I../ardour/libs/sigc++/sigc++/config -I../ardour/libs/sigc++ -I../ardour/libs/gtkmm -I../ardour/libs/gtkmm/gdk-- -I../ardour/libs/gtkmm/src $GTK_CFLAGS $JACK_CFLAGS $XML_CFLAGS" #CXXFLAGS="$CXXFLAGS -DSAMPLE_MEMORY=200 -I../ardour/libs/sigc++/sigc++/config -I../ardour/libs/sigc++ -I../ardour/libs/gtkmm -I../ardour/libs/gtkmm/gdk-- -I../ardour/libs/gtkmm/src $GTK_CFLAGS $JACK_CFLAGS $XML_CFLAGS" #LIBS="$LIBS -L../ardour/libs/gtkmm/gdk--/gdk-- -L../ardour/libs/sigc++/sigc++ -L../ardour/libs/gtkmm/src/gtk-- -lgtkmm -lgdkmm -lsigc $GTK_LIBS $JACK_LIBS $XML_LIBS $EXTRA_LIBS" AC_CONFIG_SUBDIRS(libs) AC_OUTPUT([ Makefile src/Makefile src/gui/Makefile version.h ]) sooperlooper-1.7.3~dfsg0/version.h.in0000644000175000017500000000021411754453701016305 0ustar miramira#ifndef __sooperlooper_version_h__ #define __sooperlooper_version_h__ static const char *sooperlooper_version = "@SOOP_VERSION@"; #endif sooperlooper-1.7.3~dfsg0/mkinstalldirs0000755000175000017500000000341111754453700016651 0ustar miramira#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case "${1}" in -h | --help | --h* ) # -h for help echo "${usage}" 1>&2; exit 0 ;; -m ) # -m PERM arg shift test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; } dirmode="${1}" shift ;; -- ) shift; break ;; # stop option processing -* ) echo "${usage}" 1>&2; exit 1 ;; # unknown option * ) break ;; # first non-opt arg esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac case $dirmode in '') if mkdir -p -- . 2>/dev/null; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" fi ;; *) if mkdir -m "$dirmode" -p -- . 2>/dev/null; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" fi ;; esac for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do pathcomp="$pathcomp$d" case "$pathcomp" in -* ) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr="" chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp="$pathcomp/" done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 3 # End: # mkinstalldirs ends here sooperlooper-1.7.3~dfsg0/configure0000755000175000017500000075134312442352517015767 0ustar miramira#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.68. # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 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 # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (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 # 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. as_myself= 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 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="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_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error 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 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi 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'` # 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_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # 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; as_fn_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 } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac 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='mkdir -p "$as_dir"' 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'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/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= # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= PACKAGE_URL= ac_unique_file="src/engine.cpp" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" enable_option_checking=no ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS subdirs BASE_INCLUDES BASE_LIBS ACLOCAL_AMFLAGS ACLOCAL_FLAGS AUDIO_LIBS WITH_COREMIDI_FALSE WITH_COREMIDI_TRUE WITH_ALSA_FALSE WITH_ALSA_TRUE CXXCPP SL_DIRS WX_CONFIG WX_LIBS WX_CFLAGS WX_CONFIG4 WX_CONFIG3 WX_CONFIG2 WX_CONFIG1 WX_CONFIG0 FFTW_LIBS FFTW_CFLAGS RUBBERBAND_LIBS RUBBERBAND_CFLAGS SAMPLERATE_LIBS SAMPLERATE_CFLAGS SNDFILE_LIBS SNDFILE_CFLAGS XML_LIBS XML_CFLAGS SIGCPP_LIBS SIGCPP_CFLAGS NCURSES_LIBS LOSC_LIBS LOSC_CFLAGS JACK_LIBS JACK_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG RANLIB EGREP GREP CPP am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM SOOP_RELEASE SOOP_VERSION SOOP_SO_VERSION SOOP_MICRO_VERSION SOOP_MINOR_VERSION SOOP_MAJOR_VERSION target_os target_vendor target_cpu target 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_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_dependency_tracking enable_optimize with_macosx_sdk with_macosx_version_min with_gui with_wxconfig_path enable_debug ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CXX CXXFLAGS CCC CPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR JACK_CFLAGS JACK_LIBS LOSC_CFLAGS LOSC_LIBS SIGCPP_CFLAGS SIGCPP_LIBS XML_CFLAGS XML_LIBS SNDFILE_CFLAGS SNDFILE_LIBS SAMPLERATE_CFLAGS SAMPLERATE_LIBS RUBBERBAND_CFLAGS RUBBERBAND_LIBS FFTW_CFLAGS FFTW_LIBS CXXCPP' ac_subdirs_all='libs' # 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}' 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= ;; *) 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_fn_error $? "invalid feature name: $ac_useropt" 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_fn_error $? "invalid feature name: $ac_useropt" 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 ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used" >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --disable-optimize avoid optimizations to allow for gdb debugging. --enable-debug not optimized and includes debug symbols Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-macosx-sdk=PATH use an OS X SDK at PATH --with-macosx-version-min=VER build binaries which require at least this OS X version --without-gui disable building the GUI --with-wxconfig-path=PATH full path to wx-config to use Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CXX C++ compiler command CXXFLAGS C++ compiler flags CPP C preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path JACK_CFLAGS C compiler flags for JACK, overriding pkg-config JACK_LIBS linker flags for JACK, overriding pkg-config LOSC_CFLAGS C compiler flags for LOSC, overriding pkg-config LOSC_LIBS linker flags for LOSC, overriding pkg-config SIGCPP_CFLAGS C compiler flags for SIGCPP, overriding pkg-config SIGCPP_LIBS linker flags for SIGCPP, overriding pkg-config XML_CFLAGS C compiler flags for XML, overriding pkg-config XML_LIBS linker flags for XML, overriding pkg-config SNDFILE_CFLAGS C compiler flags for SNDFILE, overriding pkg-config SNDFILE_LIBS linker flags for SNDFILE, overriding pkg-config SAMPLERATE_CFLAGS C compiler flags for SAMPLERATE, overriding pkg-config SAMPLERATE_LIBS linker flags for SAMPLERATE, overriding pkg-config RUBBERBAND_CFLAGS C compiler flags for RUBBERBAND, overriding pkg-config RUBBERBAND_LIBS linker flags for RUBBERBAND, overriding pkg-config FFTW_CFLAGS C compiler flags for FFTW, overriding pkg-config FFTW_LIBS linker flags for FFTW, overriding pkg-config CXXCPP C++ preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_link # ac_fn_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_cpp # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES # --------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_cxx_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_header_mongrel cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in . "$srcdir"/.; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 $as_echo_n "checking target system type... " >&6; } if ${ac_cv_target+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 $as_echo "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1 target_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: target_os=$* IFS=$ac_save_IFS case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- SOOP_MAJOR_VERSION=1 SOOP_MINOR_VERSION=7 SOOP_MICRO_VERSION=3 BETA= SOOP_SO_VERSION=${SOOP_MAJOR_VERSION}:${SOOP_MINOR_VERSION}:${SOOP_MICRO_VERSION}${BETA} SOOP_VERSION=$SOOP_MAJOR_VERSION.$SOOP_MINOR_VERSION.${SOOP_MICRO_VERSION}${BETA} SOOP_RELEASE=$SOOP_MAJOR_VERSION-$SOOP_MINOR_VERSION-${SOOP_MICRO_VERSION}${BETA} am__api_version='1.11' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=sooperlooper VERSION=$SOOP_VERSION cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_config_headers="$ac_config_headers config.h" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CXX_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi if test "$ac_cv_prog_cxx" = "no" ; then as_fn_error $? "*** SooperLooper is written in C++. You don't appear to have a C++ compiler" "$LINENO" 5 fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } if ${ac_cv_c_bigendian+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. ac_arch= ac_prev= for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do if test -n "$ac_prev"; then case $ac_word in i?86 | x86_64 | ppc | ppc64) if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then ac_arch=$ac_word else ac_cv_c_bigendian=universal break fi ;; esac ac_prev= elif test "x$ac_word" = "x-arch"; then ac_prev=arch fi done fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef _BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. if test "$cross_compiling" = yes; then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } extern int foo; int main () { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_bigendian=no else ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 $as_echo "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; #( no) ;; #( universal) $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) as_fn_error $? "unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac #if test x"$GXX" = xyes ; then # CXXFLAGS="$CXXFLAGS -Wall" #fi #OPT_CXXFLAGS="-D_REENTRANT -O6 -fomit-frame-pointer -ffast-math -fstrength-reduce -funroll-loops -fmove-all-movables" ORIG_CXXFLAGS=$CXXFLAGS gcc_major_version=4 os_system=Darwin if test "$target_cpu" = "powerpc"; then $as_echo "#define POWERPC 1" >>confdefs.h altivecLinux= if test "$?" = "0"; then $as_echo "#define HAVE_ALTIVEC_LINUX 1" >>confdefs.h if test "$gcc_major_version" = "3"; then #OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -maltivec -mabi=altivec" OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -mtune=7450" else OPT_FLAGS="-D_REENTRANT -Os" fi else OPT_FLAGS="-D_REENTRANT -Os " fi OPT_FLAGS="$OPT_FLAGS -mhard-float -mpowerpc-gfxopt" elif echo $target_cpu | grep "i*86" >/dev/null; then if test "$os_system" = "Darwin"; then # pretty good assumption mmx="-mmmx" sse="-msse -mfpmath=sse" OPT_FLAGS="-D_REENTRANT -Os -fomit-frame-pointer $mmx $sse" else cat /proc/cpuinfo | grep mmx >/dev/null if test $? = 0; then mmx="-mmmx" fi cat /proc/cpuinfo | grep sse >/dev/null if test $? = 0; then sse="-msse -mfpmath=sse" fi cat /proc/cpuinfo | grep 3dnow >/dev/null if test $? = 0; then dreidnow="-m3dnow" fi $as_echo "#define x86 1" >>confdefs.h if test "$target_cpu" = "i586"; then OPT_FLAGS="-DREENTRANT -O2 -march=i586 -fomit-frame-pointer" elif test "$target_cpu" = "i686"; then OPT_FLAGS="-D_REENTRANT -O2 -march=i686 -fomit-frame-pointer" if test "$gcc_major_version" -ge "3"; then OPT_FLAGS="$OPT_FLAGS $mmx $sse $dreidnow" fi else OPT_FLAGS="-D_REENTRANT -O2 -fomit-frame-pointer" fi fi fi OPT_FLAGS="$OPT_FLAGS -pipe" # LARGEFILE_FLAGS="`getconf LFS_CFLAGS`" LARGEFILE_FLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" CXXFLAGS="-g -D_REENTRANT $LARGEFILE_FLAGS" if test x"$GXX" = xyes ; then CXXFLAGS="$CXXFLAGS -Wall" fi if test x"$GXX" = xyes ; then OPT_CXXFLAGS="$OPT_FLAGS -Wall $LARGEFILE_FLAGS" fi PROF_FLAGS="-pg" CXXFLAGS="$CXXFLAGS -fno-merge-constants" CXXFLAGS=$ORIG_CXXFLAGS # Check whether --enable-optimize was given. if test "${enable_optimize+set}" = set; then : enableval=$enable_optimize; if test "x$enable_optimize" = "xno" ; then OPT_CXXFLAGS="" ; fi else OPT_CXXFLAGS="$OPT_CXXFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: OPT_CXXFLAGS is set based on $OPT_CXXFLAGS" >&5 $as_echo "OPT_CXXFLAGS is set based on $OPT_CXXFLAGS" >&6; } if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-macosx-sdk" >&5 $as_echo_n "checking for --with-macosx-sdk... " >&6; } # Check whether --with-macosx-sdk was given. if test "${with_macosx_sdk+set}" = set; then : withval=$with_macosx_sdk; wxUSE_MACOSX_SDK=$withval wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval" #echo "wxUSE_MACOSX_SDK=$wxUSE_MACOSX_SDK" >> ${wx_arg_cache_file}.tmp else # NOTE: Empty string on purpose so that --without-macosx-sdk (thus no) # will override --enable-universal_binary's automatic SDK usage. wxUSE_MACOSX_SDK= #LINE=`grep "^wxUSE_MACOSX_SDK=" ${wx_arg_cache_file}` #if test "x$LINE" != x ; then # eval "$LINE" # echo "$LINE" >> ${wx_arg_cache_file}.tmp #fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_MACOSX_SDK" >&5 $as_echo "$wxUSE_MACOSX_SDK" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-macosx-version-min" >&5 $as_echo_n "checking for --with-macosx-version-min... " >&6; } # Check whether --with-macosx-version-min was given. if test "${with_macosx_version_min+set}" = set; then : withval=$with_macosx_version_min; wxUSE_MACOSX_VERSION_MIN=$withval wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval" #echo "wxUSE_MACOSX_VERSION_MIN=$wxUSE_MACOSX_VERSION_MIN" >> ${wx_arg_cache_file}.tmp else # default "yes" because when not using an SDK it means the same as no # but when using an SDK it means to use the SDK version wxUSE_MACOSX_VERSION_MIN=yes # See if there is a value in the cache #LINE=`grep "^wxUSE_MACOSX_VERSION_MIN=" ${wx_arg_cache_file}` #if test "x$LINE" != x ; then # eval "$LINE" # echo "$LINE" >> ${wx_arg_cache_file}.tmp #fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_MACOSX_VERSION_MIN" >&5 $as_echo "$wxUSE_MACOSX_VERSION_MIN" >&6; } if test "x$wxUSE_MACOSX_SDK" = "xno"; then wxUSE_MACOSX_SDK= elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then # TODO: Search for most recent SDK and use it. wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk" fi if test "x$wxUSE_MACOSX_SDK" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDK directory $wxUSE_MACOSX_SDK" >&5 $as_echo_n "checking for SDK directory $wxUSE_MACOSX_SDK... " >&6; } if ! test -d "$wxUSE_MACOSX_SDK"; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "not found See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: exists" >&5 $as_echo "exists" >&6; } fi MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK" eval "CC=\"$CC $MACOSX_SDK_OPTS\"" eval "CXX=\"$CXX $MACOSX_SDK_OPTS\"" eval "LD=\"$LD $MACOSX_SDK_OPTS\"" retest_macosx_linking=yes fi if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then wxUSE_MACOSX_VERSION_MIN= elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then if test "x$wxUSE_MACOSX_SDK" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDK deployment version" >&5 $as_echo_n "checking SDK deployment version... " >&6; } MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" buildSettings | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` # If that failed, try again with the new key if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` fi if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_MACOSX_VERSION_MIN" >&5 $as_echo "$wxUSE_MACOSX_VERSION_MIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine deployment target from SDKSettings.plist" >&5 $as_echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;} wxUSE_MACOSX_VERSION_MIN= fi else wxUSE_MACOSX_VERSION_MIN= fi fi if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN" eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\"" eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\"" eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\"" retest_macosx_linking=yes fi if test "x$retest_macosx_linking" = "xyes"; then ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler works with SDK/version options" >&5 $as_echo_n "checking if C compiler works with SDK/version options... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no. Try a different SDK See \`config.log' for more details" "$LINENO" 5; }; exit 1 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler works with SDK/version options" >&5 $as_echo_n "checking if C++ compiler works with SDK/version options... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no. Try a different SDK See \`config.log' for more details" "$LINENO" 5; }; exit 1 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi #[ --enable-optimize enable optimizations.], # [ if test "x$enable_optimize" != "xno" ; then OPT_CXXFLAGS="$OPT_CXXFLAGS" ; fi ], # [ OPT_CXXFLAGS="" ] #) #AM_PATH_GTK(1.0.0, , [ # AC_MSG_ERROR([*** soop requires GTK+, but it doesn't appear to be installed]) #]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5 $as_echo_n "checking for JACK... " >&6; } if test -n "$JACK_CFLAGS"; then pkg_cv_JACK_CFLAGS="$JACK_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.80.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "jack >= 0.80.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.80.0" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$JACK_LIBS"; then pkg_cv_JACK_LIBS="$JACK_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.80.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "jack >= 0.80.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.80.0" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.80.0" 2>&1` else JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.80.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$JACK_PKG_ERRORS" >&5 have_jack=no elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_jack=no else JACK_CFLAGS=$pkg_cv_JACK_CFLAGS JACK_LIBS=$pkg_cv_JACK_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } have_jack=yes fi if test "x$have_jack" != "xno" then echo JACKLIBS is ${JACK_LIBS} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_open in -ljack" >&5 $as_echo_n "checking for jack_client_open in -ljack... " >&6; } if ${ac_cv_lib_jack_jack_client_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ljack ${JACK_LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char jack_client_open (); int main () { return jack_client_open (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_jack_jack_client_open=yes else ac_cv_lib_jack_jack_client_open=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_client_open" >&5 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; } if test "x$ac_cv_lib_jack_jack_client_open" = xyes; then : $as_echo "#define HAVE_JACK_CLIENT_OPEN 1" >>confdefs.h fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOSC" >&5 $as_echo_n "checking for LOSC... " >&6; } if test -n "$LOSC_CFLAGS"; then pkg_cv_LOSC_CFLAGS="$LOSC_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblo >= 0.10\""; } >&5 ($PKG_CONFIG --exists --print-errors "liblo >= 0.10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LOSC_CFLAGS=`$PKG_CONFIG --cflags "liblo >= 0.10" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$LOSC_LIBS"; then pkg_cv_LOSC_LIBS="$LOSC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblo >= 0.10\""; } >&5 ($PKG_CONFIG --exists --print-errors "liblo >= 0.10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LOSC_LIBS=`$PKG_CONFIG --libs "liblo >= 0.10" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then LOSC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblo >= 0.10" 2>&1` else LOSC_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblo >= 0.10" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$LOSC_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (liblo >= 0.10) were not met: $LOSC_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LOSC_CFLAGS and LOSC_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables LOSC_CFLAGS and LOSC_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else LOSC_CFLAGS=$pkg_cv_LOSC_CFLAGS LOSC_LIBS=$pkg_cv_LOSC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 $as_echo_n "checking for initscr in -lncurses... " >&6; } if ${ac_cv_lib_ncurses_initscr+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lncurses $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char initscr (); int main () { return initscr (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_ncurses_initscr=yes else ac_cv_lib_ncurses_initscr=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; } if test "x$ac_cv_lib_ncurses_initscr" = xyes; then : have_ncurses=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******** you don't have the ncurses library correctly installed" >&5 $as_echo "$as_me: WARNING: ******** you don't have the ncurses library correctly installed" >&2;} fi NCURSES_LIBS=-lncurses pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGCPP" >&5 $as_echo_n "checking for SIGCPP... " >&6; } if test -n "$SIGCPP_CFLAGS"; then pkg_cv_SIGCPP_CFLAGS="$SIGCPP_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= 2.2.10\""; } >&5 ($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= 2.2.10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SIGCPP_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0 >= 2.2.10" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$SIGCPP_LIBS"; then pkg_cv_SIGCPP_LIBS="$SIGCPP_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= 2.2.10\""; } >&5 ($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= 2.2.10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SIGCPP_LIBS=`$PKG_CONFIG --libs "sigc++-2.0 >= 2.2.10" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then SIGCPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sigc++-2.0 >= 2.2.10" 2>&1` else SIGCPP_PKG_ERRORS=`$PKG_CONFIG --print-errors "sigc++-2.0 >= 2.2.10" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$SIGCPP_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (sigc++-2.0 >= 2.2.10) were not met: $SIGCPP_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables SIGCPP_CFLAGS and SIGCPP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables SIGCPP_CFLAGS and SIGCPP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else SIGCPP_CFLAGS=$pkg_cv_SIGCPP_CFLAGS SIGCPP_LIBS=$pkg_cv_SIGCPP_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 $as_echo_n "checking for XML... " >&6; } if test -n "$XML_CFLAGS"; then pkg_cv_XML_CFLAGS="$XML_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.5" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$XML_LIBS"; then pkg_cv_XML_LIBS="$XML_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.5" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0 >= 2.5" 2>&1` else XML_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0 >= 2.5" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$XML_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (libxml-2.0 >= 2.5) were not met: $XML_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables XML_CFLAGS and XML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables XML_CFLAGS and XML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else XML_CFLAGS=$pkg_cv_XML_CFLAGS XML_LIBS=$pkg_cv_XML_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5 $as_echo_n "checking for SNDFILE... " >&6; } if test -n "$SNDFILE_CFLAGS"; then pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.2") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.2" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$SNDFILE_LIBS"; then pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.2") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.2" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sndfile >= 1.0.2" 2>&1` else SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors "sndfile >= 1.0.2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$SNDFILE_PKG_ERRORS" >&5 ac_cv_sndfile=0 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_sndfile=0 else SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_sndfile=1 fi cat >>confdefs.h <<_ACEOF #define HAVE_SNDFILE ${ac_cv_sndfile} _ACEOF pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SAMPLERATE" >&5 $as_echo_n "checking for SAMPLERATE... " >&6; } if test -n "$SAMPLERATE_CFLAGS"; then pkg_cv_SAMPLERATE_CFLAGS="$SAMPLERATE_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.0.13\""; } >&5 ($PKG_CONFIG --exists --print-errors "samplerate >= 0.0.13") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate >= 0.0.13" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$SAMPLERATE_LIBS"; then pkg_cv_SAMPLERATE_LIBS="$SAMPLERATE_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.0.13\""; } >&5 ($PKG_CONFIG --exists --print-errors "samplerate >= 0.0.13") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate >= 0.0.13" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "samplerate >= 0.0.13" 2>&1` else SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --print-errors "samplerate >= 0.0.13" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$SAMPLERATE_PKG_ERRORS" >&5 ac_cv_samplerate=0 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_samplerate=0 else SAMPLERATE_CFLAGS=$pkg_cv_SAMPLERATE_CFLAGS SAMPLERATE_LIBS=$pkg_cv_SAMPLERATE_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_samplerate=1 fi cat >>confdefs.h <<_ACEOF #define HAVE_SAMPLERATE ${ac_cv_samplerate} _ACEOF pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RUBBERBAND" >&5 $as_echo_n "checking for RUBBERBAND... " >&6; } if test -n "$RUBBERBAND_CFLAGS"; then pkg_cv_RUBBERBAND_CFLAGS="$RUBBERBAND_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rubberband >= 0.0.13\""; } >&5 ($PKG_CONFIG --exists --print-errors "rubberband >= 0.0.13") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_RUBBERBAND_CFLAGS=`$PKG_CONFIG --cflags "rubberband >= 0.0.13" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$RUBBERBAND_LIBS"; then pkg_cv_RUBBERBAND_LIBS="$RUBBERBAND_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rubberband >= 0.0.13\""; } >&5 ($PKG_CONFIG --exists --print-errors "rubberband >= 0.0.13") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_RUBBERBAND_LIBS=`$PKG_CONFIG --libs "rubberband >= 0.0.13" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then RUBBERBAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "rubberband >= 0.0.13" 2>&1` else RUBBERBAND_PKG_ERRORS=`$PKG_CONFIG --print-errors "rubberband >= 0.0.13" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$RUBBERBAND_PKG_ERRORS" >&5 ac_cv_rubberband=0 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_rubberband=0 else RUBBERBAND_CFLAGS=$pkg_cv_RUBBERBAND_CFLAGS RUBBERBAND_LIBS=$pkg_cv_RUBBERBAND_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_rubberband=1 fi cat >>confdefs.h <<_ACEOF #define HAVE_RUBBERBAND ${ac_cv_rubberband} _ACEOF pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5 $as_echo_n "checking for FFTW... " >&6; } if test -n "$FFTW_CFLAGS"; then pkg_cv_FFTW_CFLAGS="$FFTW_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_FFTW_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$FFTW_LIBS"; then pkg_cv_FFTW_LIBS="$FFTW_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_FFTW_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then FFTW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fftw3 >= 3.0" 2>&1` else FFTW_PKG_ERRORS=`$PKG_CONFIG --print-errors "fftw3 >= 3.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$FFTW_PKG_ERRORS" >&5 have_fftw=no elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_fftw=no else FFTW_CFLAGS=$pkg_cv_FFTW_CFLAGS FFTW_LIBS=$pkg_cv_FFTW_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } have_fftw=yes fi # Check whether --with-gui was given. if test "${with_gui+set}" = set; then : withval=$with_gui; else with_gui=yes fi # Check whether --with-wxconfig-path was given. if test "${with_wxconfig_path+set}" = set; then : withval=$with_wxconfig_path; fi if test "x$with_gui" != xno ; then if test "x$with_wxconfig_path" != "x" ; then WX_CONFIG=$with_wxconfig_path else WX_CONFIG="" fi echo WXCONFIG IS \"$WX_CONFIG\" if [ "$WX_CONFIG" = "" ] ; then # Extract the first word of "wx-config-2.6", so it can be a program name with args. set dummy wx-config-2.6; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_WX_CONFIG0+:} false; then : $as_echo_n "(cached) " >&6 else case $WX_CONFIG0 in [\\/]* | ?:[\\/]*) ac_cv_path_WX_CONFIG0="$WX_CONFIG0" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_dummy="$PATH:/usr/local/bin " for as_dir in $as_dummy do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_WX_CONFIG0="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_WX_CONFIG0" && ac_cv_path_WX_CONFIG0="no" ;; esac fi WX_CONFIG0=$ac_cv_path_WX_CONFIG0 if test -n "$WX_CONFIG0"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG0" >&5 $as_echo "$WX_CONFIG0" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if [ "$WX_CONFIG0" = "no" ] ; then # Extract the first word of "wxgtk2-2.5-config", so it can be a program name with args. set dummy wxgtk2-2.5-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_WX_CONFIG1+:} false; then : $as_echo_n "(cached) " >&6 else case $WX_CONFIG1 in [\\/]* | ?:[\\/]*) ac_cv_path_WX_CONFIG1="$WX_CONFIG1" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_dummy="$PATH:/usr/local/bin " for as_dir in $as_dummy do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_WX_CONFIG1="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_WX_CONFIG1" && ac_cv_path_WX_CONFIG1="no" ;; esac fi WX_CONFIG1=$ac_cv_path_WX_CONFIG1 if test -n "$WX_CONFIG1"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG1" >&5 $as_echo "$WX_CONFIG1" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if [ "$WX_CONFIG1" = "no" ] ; then # Extract the first word of "wxgtk2-2.4-config", so it can be a program name with args. set dummy wxgtk2-2.4-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_WX_CONFIG2+:} false; then : $as_echo_n "(cached) " >&6 else case $WX_CONFIG2 in [\\/]* | ?:[\\/]*) ac_cv_path_WX_CONFIG2="$WX_CONFIG2" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_dummy="$PATH:/usr/local/bin " for as_dir in $as_dummy do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_WX_CONFIG2="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_WX_CONFIG2" && ac_cv_path_WX_CONFIG2="no" ;; esac fi WX_CONFIG2=$ac_cv_path_WX_CONFIG2 if test -n "$WX_CONFIG2"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG2" >&5 $as_echo "$WX_CONFIG2" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if [ "$WX_CONFIG2" = "no" ] ; then # Extract the first word of "wxgtk-2.4-config", so it can be a program name with args. set dummy wxgtk-2.4-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_WX_CONFIG3+:} false; then : $as_echo_n "(cached) " >&6 else case $WX_CONFIG3 in [\\/]* | ?:[\\/]*) ac_cv_path_WX_CONFIG3="$WX_CONFIG3" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_dummy="$PATH:/usr/local/bin " for as_dir in $as_dummy do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_WX_CONFIG3="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_WX_CONFIG3" && ac_cv_path_WX_CONFIG3="no" ;; esac fi WX_CONFIG3=$ac_cv_path_WX_CONFIG3 if test -n "$WX_CONFIG3"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG3" >&5 $as_echo "$WX_CONFIG3" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if [ "$WX_CONFIG3" = "no" ] ; then # Extract the first word of "wx-config", so it can be a program name with args. set dummy wx-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_WX_CONFIG4+:} false; then : $as_echo_n "(cached) " >&6 else case $WX_CONFIG4 in [\\/]* | ?:[\\/]*) ac_cv_path_WX_CONFIG4="$WX_CONFIG4" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_dummy="$PATH:/usr/local/bin " for as_dir in $as_dummy do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_WX_CONFIG4="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_WX_CONFIG4" && ac_cv_path_WX_CONFIG4="no" ;; esac fi WX_CONFIG4=$ac_cv_path_WX_CONFIG4 if test -n "$WX_CONFIG4"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG4" >&5 $as_echo "$WX_CONFIG4" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if [ "$WX_CONFIG4" = "no" ] ; then as_fn_error $? "\"Could not find any wx-config scripts: is wxWindows installed?\"" "$LINENO" 5 else WX_CONFIG=$WX_CONFIG4 fi else WX_CONFIG=$WX_CONFIG3 fi else WX_CONFIG=$WX_CONFIG2 fi else WX_CONFIG=$WX_CONFIG1 fi else WX_CONFIG=$WX_CONFIG0 fi fi WX_LIBS="`$WX_CONFIG --libs`" if $WX_CONFIG --cxxflags > /dev/null 2>&1 ; then WX_CFLAGS="`$WX_CONFIG --cxxflags`" else WX_CFLAGS="`$WX_CONFIG --cflags`" fi SL_DIRS=". gui" else SL_DIRS="." fi AUDIO_LIBS= ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if ${ac_cv_prog_CXXCPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : use_alsa_midi=yes AUDIO_LIBS=-lasound $as_echo "#define WITH_ALSA 1" >>confdefs.h else use_alsa_midi=no fi if test x$use_alsa_midi = xyes; then WITH_ALSA_TRUE= WITH_ALSA_FALSE='#' else WITH_ALSA_TRUE='#' WITH_ALSA_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h" >&5 $as_echo_n "checking for /System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h... " >&6; } if ${ac_cv_file__System_Library_Frameworks_CoreMIDI_framework_Headers_CoreMIDI_h+:} false; then : $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "/System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h"; then ac_cv_file__System_Library_Frameworks_CoreMIDI_framework_Headers_CoreMIDI_h=yes else ac_cv_file__System_Library_Frameworks_CoreMIDI_framework_Headers_CoreMIDI_h=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__System_Library_Frameworks_CoreMIDI_framework_Headers_CoreMIDI_h" >&5 $as_echo "$ac_cv_file__System_Library_Frameworks_CoreMIDI_framework_Headers_CoreMIDI_h" >&6; } if test "x$ac_cv_file__System_Library_Frameworks_CoreMIDI_framework_Headers_CoreMIDI_h" = xyes; then : use_coremidi=yes AUDIO_LIBS="-framework CoreMIDI -framework CoreFoundation -framework CoreServices -framework ApplicationServices -framework Accelerate" $as_echo "#define WITH_COREMIDI 1" >>confdefs.h else use_coremidi=no fi if test x$use_coremidi = xyes; then WITH_COREMIDI_TRUE= WITH_COREMIDI_FALSE='#' else WITH_COREMIDI_TRUE='#' WITH_COREMIDI_FALSE= fi EXTRA_LIBS="$JACK_LIBS $XML_LIBS $GTKMM_LIBS $LOSC_LIBS $SIGCPP_LIBS $AUDIO_LIBS" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then : enableval=$enable_debug; if test "x$enable_debug" != "xno" ; then CXXFLAGS="-g -Wall -D_REENTRANT -DDEBUG" CFLAGS="$CXXFLAGS" fi else CXXFLAGS="$CXXFLAGS $OPT_CXXFLAGS" CFLAGS="$CFLAGS $OPT_CXXFLAGS" fi top_marker=top_marker depth=0 while test x$SOOPERLOOPER_TOP = x -a $depth -lt 255 ; do if test -f $top_marker ; then SOOPERLOOPER_TOP=`dirname $top_marker` else top_marker=../$top_marker fi depth=`expr $depth + 1` done if test $depth -eq 255 ; then as_fn_error $? " the top of the SooperLooper source tree was not found." "$LINENO" 5 fi SOOPERLOOPER_TOP=`cd $SOOPERLOOPER_TOP; pwd` export LIBDIRS="pbd midi++ " ACLOCAL_FLAGS="-I $SOOPERLOOPER_TOP/aclocal" ACLOCAL_AMFLAGS="-I $SOOPERLOOPER_TOP/aclocal `if test -d m4 ; then echo -I m4; fi`" BASE_LIBS="$SOOPERLOOPER_TOP/libs/midi++/libmidipp.a $SOOPERLOOPER_TOP/libs/pbd/libpbd.a" BASE_INCLUDES="-I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" CFLAGS="$CFLAGS -I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" CXXFLAGS="$CXXFLAGS -I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" #LIBS="$LIBS $SOOPERLOOPER_TOP/libs/midi++/libmidipp.a $SOOPERLOOPER_TOP/libs/pbd/libpbd.a" #CFLAGS="$CFLAGS -DSAMPLE_MEMORY=200 $JACK_CFLAGS $LOSC_CFLAGS $SIGCPP_CFLAGS" #CXXFLAGS=$CFLAGS #LIBS="$LIBS $EXTRA_LIBS" #CFLAGS="$CFLAGS -DSAMPLE_MEMORY=200 -I../ardour/libs/sigc++/sigc++/config -I../ardour/libs/sigc++ -I../ardour/libs/gtkmm -I../ardour/libs/gtkmm/gdk-- -I../ardour/libs/gtkmm/src $GTK_CFLAGS $JACK_CFLAGS $XML_CFLAGS" #CXXFLAGS="$CXXFLAGS -DSAMPLE_MEMORY=200 -I../ardour/libs/sigc++/sigc++/config -I../ardour/libs/sigc++ -I../ardour/libs/gtkmm -I../ardour/libs/gtkmm/gdk-- -I../ardour/libs/gtkmm/src $GTK_CFLAGS $JACK_CFLAGS $XML_CFLAGS" #LIBS="$LIBS -L../ardour/libs/gtkmm/gdk--/gdk-- -L../ardour/libs/sigc++/sigc++ -L../ardour/libs/gtkmm/src/gtk-- -lgtkmm -lgdkmm -lsigc $GTK_LIBS $JACK_LIBS $XML_LIBS $EXTRA_LIBS" subdirs="$subdirs libs" ac_config_files="$ac_config_files Makefile src/Makefile src/gui/Makefile version.h" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WITH_ALSA_TRUE}" && test -z "${WITH_ALSA_FALSE}"; then as_fn_error $? "conditional \"WITH_ALSA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WITH_COREMIDI_TRUE}" && test -z "${WITH_COREMIDI_FALSE}"; then as_fn_error $? "conditional \"WITH_COREMIDI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## 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 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 # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (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 # 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. as_myself= 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 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith 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 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi 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'` # 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 ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac 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 # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' 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 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" Copyright (C) 2010 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/gui/Makefile") CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;; "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi # # CONFIG_SUBDIRS section. # if test "$no_recursion" != yes; then # Remove --cache-file, --srcdir, and --disable-option-checking arguments # so they do not pile up. ac_sub_configure_args= ac_prev= eval "set x $ac_configure_args" shift for ac_arg do if test -n "$ac_prev"; then ac_prev= continue fi case $ac_arg in -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=*) ;; --config-cache | -C) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; --disable-option-checking) ;; *) case $ac_arg in *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_sub_configure_args " '$ac_arg'" ;; esac done # Always prepend --prefix to ensure using the same prefix # in subdir configurations. ac_arg="--prefix=$prefix" case $ac_arg in *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" # Pass --silent if test "$silent" = yes; then ac_sub_configure_args="--silent $ac_sub_configure_args" fi # Always prepend --disable-option-checking to silence warnings, since # different subdirs can have different --enable and --with options. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" ac_popdir=`pwd` for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. test -d "$srcdir/$ac_dir" || continue ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 $as_echo "$ac_msg" >&6 as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" # Check for guested configure; otherwise get Cygnus style configure. if test -f "$ac_srcdir/configure.gnu"; then ac_sub_configure=$ac_srcdir/configure.gnu elif test -f "$ac_srcdir/configure"; then ac_sub_configure=$ac_srcdir/configure elif test -f "$ac_srcdir/configure.in"; then # This should be Cygnus configure. ac_sub_configure=$ac_aux_dir/configure else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_configure= fi # The recursion is here. if test -n "$ac_sub_configure"; then # Make the cache file name correct relative to the subdirectory. case $cache_file in [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; *) # Relative name. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 fi cd "$ac_popdir" done fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi sooperlooper-1.7.3~dfsg0/Makefile.am0000644000175000017500000000334411754453700016104 0ustar miramira# Copyright (C) 2004 Jesse Chappell # # This file is free software; as a special exception the author 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. EXTRA_DIST = autogen.sh configure OSC top_marker SUBDIRS = libs src MACDISTDIR = macdist/SooperLooper-@SOOP_VERSION@ mac: all -rm -rf macdist -mkdir -p macdist -mkdir -p $(MACDISTDIR) -mkdir -p $(MACDISTDIR)/SooperLooper.app -mkdir -p $(MACDISTDIR)/Presets -mkdir -p $(MACDISTDIR)/SooperLooper.app/Contents -mkdir -p $(MACDISTDIR)/SooperLooper.app/Contents/MacOS -mkdir -p $(MACDISTDIR)/SooperLooper.app/Contents/Resources `@WX_CONFIG@ --rezflags` src/gui/slgui strip src/gui/slgui strip src/sooperlooper cp -f src/gui/slgui $(MACDISTDIR)/SooperLooper.app/Contents/MacOS/ cp -f src/sooperlooper $(MACDISTDIR)/SooperLooper.app/Contents/MacOS/ cp -f mac/Info.plist $(MACDISTDIR)/SooperLooper.app/Contents/ cp -f mac/PkgInfo $(MACDISTDIR)/SooperLooper.app/Contents/ cp -f mac/slgui.icns $(MACDISTDIR)/SooperLooper.app/Contents/Resources/ cp -f mac/README_AudioUnit.txt $(MACDISTDIR)/ cp -rf mac/SooperLooperAU/build/SooperLooperAU.component $(MACDISTDIR)/ cp -f src/*.slb $(MACDISTDIR)/Presets/ cp -f README $(MACDISTDIR)/README.txt cp -f COPYING $(MACDISTDIR)/COPYING.txt cp -f OSC $(MACDISTDIR)/OSC.txt rm -f SooperLooper-@SOOP_VERSION@.dmg hdiutil create -fs HFS+ -volname SooperLooper-@SOOP_VERSION@ -srcfolder macdist SooperLooper-@SOOP_VERSION@.dmg sooperlooper-1.7.3~dfsg0/src/0000755000175000017500000000000012503567205014632 5ustar miramirasooperlooper-1.7.3~dfsg0/src/midi_bind.hpp0000644000175000017500000000641111755175226017271 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_midi_bind__ #define __sooperlooper_midi_bind__ #include #include #include #include #include #include namespace SooperLooper { class MidiBindInfo { public: enum Style { NormalStyle = 0, GainStyle = 1, ToggleStyle = 2, IntegerStyle = 3 }; MidiBindInfo() : data_min(0), data_max(127) {} MidiBindInfo (int chan, std::string tp, std::string cmd, std::string ctrl, int instc, float lbnd=0.0f, float ubnd=1.0f, Style styl=NormalStyle, int dmin=0, int dmax=127) : channel(chan), type(tp), command(cmd), control(ctrl), instance(instc), lbound(lbnd), ubound(ubnd), data_min(dmin), data_max(dmax), style(styl) {} inline bool operator==(const MidiBindInfo &) const; std::string serialize() const; bool unserialize(std::string); int channel; std::string type; std::string command; std::string control; int param; int instance; // target value bounds float lbound; float ubound; // incoming event value bounds int data_min; int data_max; Style style; // internal state for toggle style float last_toggle_val; }; inline bool MidiBindInfo::operator==(const MidiBindInfo &other) const { if (channel == other.channel && type == other.type && command == other.command && control == other.control && param == other.param && instance == other.instance) { return true; } return false; } class MidiBindings { public: MidiBindings(); virtual ~MidiBindings(); typedef std::vector BindingList; void clear_bindings (); bool load_bindings (std::string filename, bool append=false); bool load_bindings (std::istream & instream, bool append=false); bool save_bindings (std::string filename); bool save_bindings (std::ostream & outstream); void get_bindings (BindingList & blist) const; bool add_binding (const MidiBindInfo & info, bool exclusive=false); bool remove_binding (const MidiBindInfo & info); int binding_key (const MidiBindInfo & info) const; bool get_channel_and_type(MIDI::byte chcmd, int & ch, std::string & type) const; // the int key here is (chcmd << 8) | param // or midi byte 1 and 2 in 16 bits typedef std::map BindingsMap; // for direct use... be careful BindingsMap & bindings_map() { return _bindings; } protected: typedef std::map TypeMap; TypeMap _typemap; BindingsMap _bindings; }; }; #endif sooperlooper-1.7.3~dfsg0/src/Makefile.in0000644000175000017500000006737212442352516016715 0ustar miramira# Makefile.in generated by automake 1.11 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ bin_PROGRAMS = sooperlooper$(EXEEXT) slconsole$(EXEEXT) \ slregister$(EXEEXT) subdir = src DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) AR = ar ARFLAGS = cru libslcore_a_AR = $(AR) $(ARFLAGS) libslcore_a_LIBADD = am_libslcore_a_OBJECTS = engine.$(OBJEXT) control_osc.$(OBJEXT) \ looper.$(OBJEXT) plugin.$(OBJEXT) event.$(OBJEXT) \ midi_bridge.$(OBJEXT) midi_bind.$(OBJEXT) \ audio_driver.$(OBJEXT) command_map.$(OBJEXT) filter.$(OBJEXT) \ panner.$(OBJEXT) utils.$(OBJEXT) libslcore_a_OBJECTS = $(am_libslcore_a_OBJECTS) libsldrivers_a_AR = $(AR) $(ARFLAGS) libsldrivers_a_LIBADD = am_libsldrivers_a_OBJECTS = jack_audio_driver.$(OBJEXT) libsldrivers_a_OBJECTS = $(am_libsldrivers_a_OBJECTS) am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(slpresetdir)" PROGRAMS = $(bin_PROGRAMS) am_slconsole_OBJECTS = slconsole.$(OBJEXT) slconsole_OBJECTS = $(am_slconsole_OBJECTS) slconsole_DEPENDENCIES = am_slregister_OBJECTS = register_tool.$(OBJEXT) slregister_OBJECTS = $(am_slregister_OBJECTS) slregister_DEPENDENCIES = am_sooperlooper_OBJECTS = sooperlooper.$(OBJEXT) sooperlooper_OBJECTS = $(am_sooperlooper_OBJECTS) sooperlooper_DEPENDENCIES = libsldrivers.a libslcore.a sooperlooper_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ $(sooperlooper_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ SOURCES = $(libslcore_a_SOURCES) $(libsldrivers_a_SOURCES) \ $(slconsole_SOURCES) $(slregister_SOURCES) \ $(sooperlooper_SOURCES) DIST_SOURCES = $(libslcore_a_SOURCES) $(libsldrivers_a_SOURCES) \ $(slconsole_SOURCES) $(slregister_SOURCES) \ $(sooperlooper_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' DATA = $(slpreset_DATA) HEADERS = $(noinst_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ACLOCAL_FLAGS = @ACLOCAL_FLAGS@ AMTAR = @AMTAR@ AUDIO_LIBS = @AUDIO_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_INCLUDES = @BASE_INCLUDES@ BASE_LIBS = @BASE_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FFTW_CFLAGS = @FFTW_CFLAGS@ FFTW_LIBS = @FFTW_LIBS@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LOSC_CFLAGS = @LOSC_CFLAGS@ LOSC_LIBS = @LOSC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NCURSES_LIBS = @NCURSES_LIBS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ RUBBERBAND_CFLAGS = @RUBBERBAND_CFLAGS@ RUBBERBAND_LIBS = @RUBBERBAND_LIBS@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIGCPP_CFLAGS = @SIGCPP_CFLAGS@ SIGCPP_LIBS = @SIGCPP_LIBS@ SL_DIRS = @SL_DIRS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SOOP_MAJOR_VERSION = @SOOP_MAJOR_VERSION@ SOOP_MICRO_VERSION = @SOOP_MICRO_VERSION@ SOOP_MINOR_VERSION = @SOOP_MINOR_VERSION@ SOOP_RELEASE = @SOOP_RELEASE@ SOOP_SO_VERSION = @SOOP_SO_VERSION@ SOOP_VERSION = @SOOP_VERSION@ STRIP = @STRIP@ VERSION = @VERSION@ WX_CFLAGS = @WX_CFLAGS@ WX_CONFIG = @WX_CONFIG@ WX_CONFIG0 = @WX_CONFIG0@ WX_CONFIG1 = @WX_CONFIG1@ WX_CONFIG2 = @WX_CONFIG2@ WX_CONFIG3 = @WX_CONFIG3@ WX_CONFIG4 = @WX_CONFIG4@ WX_LIBS = @WX_LIBS@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = @SL_DIRS@ slpresetdir = $(datadir)/sooperlooper/presets slpreset_DATA = midiwizard.slb oxy8.slb edp4.slb bcf2000.slb AM_CXXFLAGS = @JACK_CFLAGS@ @LOSC_CFLAGS@ @SIGCPP_CFLAGS@ @SNDFILE_CFLAGS@ @SAMPLERATE_CFLAGS@ @XML_CFLAGS@ @RUBBERBAND_CFLAGS@ @FFTW_CFLAGS@ #SYSDEP_SRCS= #if WITH_ALSA #SYSDEP_SRCS += alsa_midi_bridge.cpp #endif #if WITH_COREMIDI #SYSDEP_SRCS += coremidi_bridge.cpp #endif noinst_LIBRARIES = libslcore.a libsldrivers.a libslcore_a_SOURCES = \ engine.cpp \ control_osc.cpp \ looper.cpp \ plugin.cc \ event.cpp \ midi_bridge.cpp \ midi_bind.cpp \ audio_driver.cpp \ command_map.cpp \ filter.cpp \ panner.cpp \ utils.cpp \ $(SYSDEP_SRCS) libsldrivers_a_SOURCES = \ jack_audio_driver.cpp sooperlooper_SOURCES = \ sooperlooper.cpp sooperlooper_LDADD = libsldrivers.a libslcore.a @BASE_LIBS@ @JACK_LIBS@ @LOSC_LIBS@ @SIGCPP_LIBS@ @RUBBERBAND_LIBS@ @FFTW_LIBS@ @SNDFILE_LIBS@ @SAMPLERATE_LIBS@ @AUDIO_LIBS@ @XML_LIBS@ sooperlooper_LDFLAGS = slconsole_SOURCES = slconsole.cpp slconsole_LDADD = @LOSC_LIBS@ @NCURSES_LIBS@ -lpthread slregister_SOURCES = register_tool.cpp slregister_LDADD = @LOSC_LIBS@ -lpthread noinst_HEADERS = $(wildcard *.hpp *.h) EXTRA_DIST = oxy8.slb midiwizard.slb bcf2000.slb edp4.slb all: all-recursive .SUFFIXES: .SUFFIXES: .cc .cpp .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libslcore.a: $(libslcore_a_OBJECTS) $(libslcore_a_DEPENDENCIES) -rm -f libslcore.a $(libslcore_a_AR) libslcore.a $(libslcore_a_OBJECTS) $(libslcore_a_LIBADD) $(RANLIB) libslcore.a libsldrivers.a: $(libsldrivers_a_OBJECTS) $(libsldrivers_a_DEPENDENCIES) -rm -f libsldrivers.a $(libsldrivers_a_AR) libsldrivers.a $(libsldrivers_a_OBJECTS) $(libsldrivers_a_LIBADD) $(RANLIB) libsldrivers.a install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) slconsole$(EXEEXT): $(slconsole_OBJECTS) $(slconsole_DEPENDENCIES) @rm -f slconsole$(EXEEXT) $(CXXLINK) $(slconsole_OBJECTS) $(slconsole_LDADD) $(LIBS) slregister$(EXEEXT): $(slregister_OBJECTS) $(slregister_DEPENDENCIES) @rm -f slregister$(EXEEXT) $(CXXLINK) $(slregister_OBJECTS) $(slregister_LDADD) $(LIBS) sooperlooper$(EXEEXT): $(sooperlooper_OBJECTS) $(sooperlooper_DEPENDENCIES) @rm -f sooperlooper$(EXEEXT) $(sooperlooper_LINK) $(sooperlooper_OBJECTS) $(sooperlooper_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audio_driver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/command_map.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/control_osc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/engine.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/event.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jack_audio_driver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/looper.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midi_bind.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midi_bridge.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/panner.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plugin.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/register_tool.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/slconsole.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sooperlooper.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utils.Po@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` install-slpresetDATA: $(slpreset_DATA) @$(NORMAL_INSTALL) test -z "$(slpresetdir)" || $(MKDIR_P) "$(DESTDIR)$(slpresetdir)" @list='$(slpreset_DATA)'; test -n "$(slpresetdir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(slpresetdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(slpresetdir)" || exit $$?; \ done uninstall-slpresetDATA: @$(NORMAL_UNINSTALL) @list='$(slpreset_DATA)'; test -n "$(slpresetdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(slpresetdir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(slpresetdir)" && rm -f $$files # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(DATA) $(HEADERS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(slpresetdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-binPROGRAMS clean-generic clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-slpresetDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-slpresetDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-noinstLIBRARIES ctags ctags-recursive \ distclean distclean-compile distclean-generic distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ install-am install-binPROGRAMS install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-slpresetDATA install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-binPROGRAMS \ uninstall-slpresetDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: sooperlooper-1.7.3~dfsg0/src/ladspa.h0000644000175000017500000006571111754453701016263 0ustar miramira/* ladspa.h Linux Audio Developer's Simple Plugin API Version 1.1[LGPL]. Copyright (C) 2000-2002 Richard W.E. Furse, Paul Barton-Davis, Stefan Westerfeld. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef LADSPA_INCLUDED #define LADSPA_INCLUDED #define LADSPA_VERSION "1.1" #define LADSPA_VERSION_MAJOR 1 #define LADSPA_VERSION_MINOR 1 #ifdef __cplusplus extern "C" { #endif /*****************************************************************************/ /* Overview: There is a large number of synthesis packages in use or development on the Linux platform at this time. This API (`The Linux Audio Developer's Simple Plugin API') attempts to give programmers the ability to write simple `plugin' audio processors in C/C++ and link them dynamically (`plug') into a range of these packages (`hosts'). It should be possible for any host and any plugin to communicate completely through this interface. This API is deliberately short and simple. To achieve compatibility with a range of promising Linux sound synthesis packages it attempts to find the `greatest common divisor' in their logical behaviour. Having said this, certain limiting decisions are implicit, notably the use of a fixed type (LADSPA_Data) for all data transfer and absence of a parameterised `initialisation' phase. See below for the LADSPA_Data typedef. Plugins are expected to distinguish between control and audio data. Plugins have `ports' that are inputs or outputs for audio or control data and each plugin is `run' for a `block' corresponding to a short time interval measured in samples. Audio data is communicated using arrays of LADSPA_Data, allowing a block of audio to be processed by the plugin in a single pass. Control data is communicated using single LADSPA_Data values. Control data has a single value at the start of a call to the `run()' or `run_adding()' function, and may be considered to remain this value for its duration. The plugin may assume that all its input and output ports have been connected to the relevant data location (see the `connect_port()' function below) before it is asked to run. Plugins will reside in shared object files suitable for dynamic linking by dlopen() and family. The file will provide a number of `plugin types' that can be used to instantiate actual plugins (sometimes known as `plugin instances') that can be connected together to perform tasks. This API contains very limited error-handling. */ /*****************************************************************************/ /* Fundamental data type passed in and out of plugin. This data type is used to communicate audio samples and control values. It is assumed that the plugin will work sensibly given any numeric input value although it may have a preferred range (see hints below). For audio it is generally assumed that 1.0f is the `0dB' reference amplitude and is a `normal' signal level. */ typedef float LADSPA_Data; /*****************************************************************************/ /* Special Plugin Properties: Optional features of the plugin type are encapsulated in the LADSPA_Properties type. This is assembled by ORing individual properties together. */ typedef int LADSPA_Properties; /* Property LADSPA_PROPERTY_REALTIME indicates that the plugin has a real-time dependency (e.g. listens to a MIDI device) and so its output must not be cached or subject to significant latency. */ #define LADSPA_PROPERTY_REALTIME 0x1 /* Property LADSPA_PROPERTY_INPLACE_BROKEN indicates that the plugin may cease to work correctly if the host elects to use the same data location for both input and output (see connect_port()). This should be avoided as enabling this flag makes it impossible for hosts to use the plugin to process audio `in-place.' */ #define LADSPA_PROPERTY_INPLACE_BROKEN 0x2 /* Property LADSPA_PROPERTY_HARD_RT_CAPABLE indicates that the plugin is capable of running not only in a conventional host but also in a `hard real-time' environment. To qualify for this the plugin must satisfy all of the following: (1) The plugin must not use malloc(), free() or other heap memory management within its run() or run_adding() functions. All new memory used in run() must be managed via the stack. These restrictions only apply to the run() function. (2) The plugin will not attempt to make use of any library functions with the exceptions of functions in the ANSI standard C and C maths libraries, which the host is expected to provide. (3) The plugin will not access files, devices, pipes, sockets, IPC or any other mechanism that might result in process or thread blocking. (4) The plugin will take an amount of time to execute a run() or run_adding() call approximately of form (A+B*SampleCount) where A and B depend on the machine and host in use. This amount of time may not depend on input signals or plugin state. The host is left the responsibility to perform timings to estimate upper bounds for A and B. */ #define LADSPA_PROPERTY_HARD_RT_CAPABLE 0x4 #define LADSPA_IS_REALTIME(x) ((x) & LADSPA_PROPERTY_REALTIME) #define LADSPA_IS_INPLACE_BROKEN(x) ((x) & LADSPA_PROPERTY_INPLACE_BROKEN) #define LADSPA_IS_HARD_RT_CAPABLE(x) ((x) & LADSPA_PROPERTY_HARD_RT_CAPABLE) /*****************************************************************************/ /* Plugin Ports: Plugins have `ports' that are inputs or outputs for audio or data. Ports can communicate arrays of LADSPA_Data (for audio inputs/outputs) or single LADSPA_Data values (for control input/outputs). This information is encapsulated in the LADSPA_PortDescriptor type which is assembled by ORing individual properties together. Note that a port must be an input or an output port but not both and that a port must be a control or audio port but not both. */ typedef int LADSPA_PortDescriptor; /* Property LADSPA_PORT_INPUT indicates that the port is an input. */ #define LADSPA_PORT_INPUT 0x1 /* Property LADSPA_PORT_OUTPUT indicates that the port is an output. */ #define LADSPA_PORT_OUTPUT 0x2 /* Property LADSPA_PORT_CONTROL indicates that the port is a control port. */ #define LADSPA_PORT_CONTROL 0x4 /* Property LADSPA_PORT_AUDIO indicates that the port is a audio port. */ #define LADSPA_PORT_AUDIO 0x8 #define LADSPA_IS_PORT_INPUT(x) ((x) & LADSPA_PORT_INPUT) #define LADSPA_IS_PORT_OUTPUT(x) ((x) & LADSPA_PORT_OUTPUT) #define LADSPA_IS_PORT_CONTROL(x) ((x) & LADSPA_PORT_CONTROL) #define LADSPA_IS_PORT_AUDIO(x) ((x) & LADSPA_PORT_AUDIO) /*****************************************************************************/ /* Plugin Port Range Hints: The host may wish to provide a representation of data entering or leaving a plugin (e.g. to generate a GUI automatically). To make this more meaningful, the plugin should provide `hints' to the host describing the usual values taken by the data. Note that these are only hints. The host may ignore them and the plugin must not assume that data supplied to it is meaningful. If the plugin receives invalid input data it is expected to continue to run without failure and, where possible, produce a sensible output (e.g. a high-pass filter given a negative cutoff frequency might switch to an all-pass mode). Hints are meaningful for all input and output ports but hints for input control ports are expected to be particularly useful. More hint information is encapsulated in the LADSPA_PortRangeHintDescriptor type which is assembled by ORing individual hint types together. Hints may require further LowerBound and UpperBound information. All the hint information for a particular port is aggregated in the LADSPA_PortRangeHint structure. */ typedef int LADSPA_PortRangeHintDescriptor; /* Hint LADSPA_HINT_BOUNDED_BELOW indicates that the LowerBound field of the LADSPA_PortRangeHint should be considered meaningful. The value in this field should be considered the (inclusive) lower bound of the valid range. If LADSPA_HINT_SAMPLE_RATE is also specified then the value of LowerBound should be multiplied by the sample rate. */ #define LADSPA_HINT_BOUNDED_BELOW 0x1 /* Hint LADSPA_HINT_BOUNDED_ABOVE indicates that the UpperBound field of the LADSPA_PortRangeHint should be considered meaningful. The value in this field should be considered the (inclusive) upper bound of the valid range. If LADSPA_HINT_SAMPLE_RATE is also specified then the value of UpperBound should be multiplied by the sample rate. */ #define LADSPA_HINT_BOUNDED_ABOVE 0x2 /* Hint LADSPA_HINT_TOGGLED indicates that the data item should be considered a Boolean toggle. Data less than or equal to zero should be considered `off' or `false,' and data above zero should be considered `on' or `true.' LADSPA_HINT_TOGGLED may not be used in conjunction with any other hint except LADSPA_HINT_DEFAULT_0 or LADSPA_HINT_DEFAULT_1. */ #define LADSPA_HINT_TOGGLED 0x4 /* Hint LADSPA_HINT_SAMPLE_RATE indicates that any bounds specified should be interpreted as multiples of the sample rate. For instance, a frequency range from 0Hz to the Nyquist frequency (half the sample rate) could be requested by this hint in conjunction with LowerBound = 0 and UpperBound = 0.5. Hosts that support bounds at all must support this hint to retain meaning. */ #define LADSPA_HINT_SAMPLE_RATE 0x8 /* Hint LADSPA_HINT_LOGARITHMIC indicates that it is likely that the user will find it more intuitive to view values using a logarithmic scale. This is particularly useful for frequencies and gains. */ #define LADSPA_HINT_LOGARITHMIC 0x10 /* Hint LADSPA_HINT_INTEGER indicates that a user interface would probably wish to provide a stepped control taking only integer values. Any bounds set should be slightly wider than the actual integer range required to avoid floating point rounding errors. For instance, the integer set {0,1,2,3} might be described as [-0.1, 3.1]. */ #define LADSPA_HINT_INTEGER 0x20 /* The various LADSPA_HINT_HAS_DEFAULT_* hints indicate a `normal' value for the port that is sensible as a default. For instance, this value is suitable for use as an initial value in a user interface or as a value the host might assign to a control port when the user has not provided one. Defaults are encoded using a mask so only one default may be specified for a port. Some of the hints make use of lower and upper bounds, in which case the relevant bound or bounds must be available and LADSPA_HINT_SAMPLE_RATE must be applied as usual. The resulting default must be rounded if LADSPA_HINT_INTEGER is present. Default values were introduced in LADSPA v1.1. */ #define LADSPA_HINT_DEFAULT_MASK 0x3C0 /* This default values indicates that no default is provided. */ #define LADSPA_HINT_DEFAULT_NONE 0x0 /* This default hint indicates that the suggested lower bound for the port should be used. */ #define LADSPA_HINT_DEFAULT_MINIMUM 0x40 /* This default hint indicates that a low value between the suggested lower and upper bounds should be chosen. For ports with LADSPA_HINT_LOGARITHMIC, this should be exp(log(lower) * 0.75 + log(upper) * 0.25). Otherwise, this should be (lower * 0.75 + upper * 0.25). */ #define LADSPA_HINT_DEFAULT_LOW 0x80 /* This default hint indicates that a middle value between the suggested lower and upper bounds should be chosen. For ports with LADSPA_HINT_LOGARITHMIC, this should be exp(log(lower) * 0.5 + log(upper) * 0.5). Otherwise, this should be (lower * 0.5 + upper * 0.5). */ #define LADSPA_HINT_DEFAULT_MIDDLE 0xC0 /* This default hint indicates that a high value between the suggested lower and upper bounds should be chosen. For ports with LADSPA_HINT_LOGARITHMIC, this should be exp(log(lower) * 0.25 + log(upper) * 0.75). Otherwise, this should be (lower * 0.25 + upper * 0.75). */ #define LADSPA_HINT_DEFAULT_HIGH 0x100 /* This default hint indicates that the suggested upper bound for the port should be used. */ #define LADSPA_HINT_DEFAULT_MAXIMUM 0x140 /* This default hint indicates that the number 0 should be used. Note that this default may be used in conjunction with LADSPA_HINT_TOGGLED. */ #define LADSPA_HINT_DEFAULT_0 0x200 /* This default hint indicates that the number 1 should be used. Note that this default may be used in conjunction with LADSPA_HINT_TOGGLED. */ #define LADSPA_HINT_DEFAULT_1 0x240 /* This default hint indicates that the number 100 should be used. */ #define LADSPA_HINT_DEFAULT_100 0x280 /* This default hint indicates that the Hz frequency of `concert A' should be used. This will be 440 unless the host uses an unusual tuning convention, in which case it may be within a few Hz. */ #define LADSPA_HINT_DEFAULT_440 0x2C0 #define LADSPA_IS_HINT_BOUNDED_BELOW(x) ((x) & LADSPA_HINT_BOUNDED_BELOW) #define LADSPA_IS_HINT_BOUNDED_ABOVE(x) ((x) & LADSPA_HINT_BOUNDED_ABOVE) #define LADSPA_IS_HINT_TOGGLED(x) ((x) & LADSPA_HINT_TOGGLED) #define LADSPA_IS_HINT_SAMPLE_RATE(x) ((x) & LADSPA_HINT_SAMPLE_RATE) #define LADSPA_IS_HINT_LOGARITHMIC(x) ((x) & LADSPA_HINT_LOGARITHMIC) #define LADSPA_IS_HINT_INTEGER(x) ((x) & LADSPA_HINT_INTEGER) #define LADSPA_IS_HINT_HAS_DEFAULT(x) ((x) & LADSPA_HINT_DEFAULT_MASK) #define LADSPA_IS_HINT_DEFAULT_MINIMUM(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_MINIMUM) #define LADSPA_IS_HINT_DEFAULT_LOW(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_LOW) #define LADSPA_IS_HINT_DEFAULT_MIDDLE(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_MIDDLE) #define LADSPA_IS_HINT_DEFAULT_HIGH(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_HIGH) #define LADSPA_IS_HINT_DEFAULT_MAXIMUM(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_MAXIMUM) #define LADSPA_IS_HINT_DEFAULT_0(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_0) #define LADSPA_IS_HINT_DEFAULT_1(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_1) #define LADSPA_IS_HINT_DEFAULT_100(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_100) #define LADSPA_IS_HINT_DEFAULT_440(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_440) typedef struct _LADSPA_PortRangeHint { /* Hints about the port. */ LADSPA_PortRangeHintDescriptor HintDescriptor; /* Meaningful when hint LADSPA_HINT_BOUNDED_BELOW is active. When LADSPA_HINT_SAMPLE_RATE is also active then this value should be multiplied by the relevant sample rate. */ LADSPA_Data LowerBound; /* Meaningful when hint LADSPA_HINT_BOUNDED_ABOVE is active. When LADSPA_HINT_SAMPLE_RATE is also active then this value should be multiplied by the relevant sample rate. */ LADSPA_Data UpperBound; } LADSPA_PortRangeHint; /*****************************************************************************/ /* Plugin Handles: This plugin handle indicates a particular instance of the plugin concerned. It is valid to compare this to NULL (0 for C++) but otherwise the host should not attempt to interpret it. The plugin may use it to reference internal instance data. */ typedef void * LADSPA_Handle; /*****************************************************************************/ /* Descriptor for a Type of Plugin: This structure is used to describe a plugin type. It provides a number of functions to examine the type, instantiate it, link it to buffers and workspaces and to run it. */ typedef struct _LADSPA_Descriptor { /* This numeric identifier indicates the plugin type uniquely. Plugin programmers may reserve ranges of IDs from a central body to avoid clashes. Hosts may assume that IDs are below 0x1000000. */ unsigned long UniqueID; /* This identifier can be used as a unique, case-sensitive identifier for the plugin type within the plugin file. Plugin types should be identified by file and label rather than by index or plugin name, which may be changed in new plugin versions. Labels must not contain white-space characters. */ const char * Label; /* This indicates a number of properties of the plugin. */ LADSPA_Properties Properties; /* This member points to the null-terminated name of the plugin (e.g. "Sine Oscillator"). */ const char * Name; /* This member points to the null-terminated string indicating the maker of the plugin. This can be an empty string but not NULL. */ const char * Maker; /* This member points to the null-terminated string indicating any copyright applying to the plugin. If no Copyright applies the string "None" should be used. */ const char * Copyright; /* This indicates the number of ports (input AND output) present on the plugin. */ unsigned long PortCount; /* This member indicates an array of port descriptors. Valid indices vary from 0 to PortCount-1. */ const LADSPA_PortDescriptor * PortDescriptors; /* This member indicates an array of null-terminated strings describing ports (e.g. "Frequency (Hz)"). Valid indices vary from 0 to PortCount-1. */ const char * const * PortNames; /* This member indicates an array of range hints for each port (see above). Valid indices vary from 0 to PortCount-1. */ const LADSPA_PortRangeHint * PortRangeHints; /* This may be used by the plugin developer to pass any custom implementation data into an instantiate call. It must not be used or interpreted by the host. It is expected that most plugin writers will not use this facility as LADSPA_Handle should be used to hold instance data. */ void * ImplementationData; /* This member is a function pointer that instantiates a plugin. A handle is returned indicating the new plugin instance. The instantiation function accepts a sample rate as a parameter. The plugin descriptor from which this instantiate function was found must also be passed. This function must return NULL if instantiation fails. Note that instance initialisation should generally occur in activate() rather than here. */ LADSPA_Handle (*instantiate)(const struct _LADSPA_Descriptor * Descriptor, unsigned long SampleRate); /* This member is a function pointer that connects a port on an instantiated plugin to a memory location at which a block of data for the port will be read/written. The data location is expected to be an array of LADSPA_Data for audio ports or a single LADSPA_Data value for control ports. Memory issues will be managed by the host. The plugin must read/write the data at these locations every time run() or run_adding() is called and the data present at the time of this connection call should not be considered meaningful. connect_port() may be called more than once for a plugin instance to allow the host to change the buffers that the plugin is reading or writing. These calls may be made before or after activate() or deactivate() calls. connect_port() must be called at least once for each port before run() or run_adding() is called. When working with blocks of LADSPA_Data the plugin should pay careful attention to the block size passed to the run function as the block allocated may only just be large enough to contain the block of samples. Plugin writers should be aware that the host may elect to use the same buffer for more than one port and even use the same buffer for both input and output (see LADSPA_PROPERTY_INPLACE_BROKEN). However, overlapped buffers or use of a single buffer for both audio and control data may result in unexpected behaviour. */ void (*connect_port)(LADSPA_Handle Instance, unsigned long Port, LADSPA_Data * DataLocation); /* This member is a function pointer that initialises a plugin instance and activates it for use. This is separated from instantiate() to aid real-time support and so that hosts can reinitialise a plugin instance by calling deactivate() and then activate(). In this case the plugin instance must reset all state information dependent on the history of the plugin instance except for any data locations provided by connect_port() and any gain set by set_run_adding_gain(). If there is nothing for activate() to do then the plugin writer may provide a NULL rather than an empty function. When present, hosts must call this function once before run() (or run_adding()) is called for the first time. This call should be made as close to the run() call as possible and indicates to real-time plugins that they are now live. Plugins should not rely on a prompt call to run() after activate(). activate() may not be called again unless deactivate() is called first. Note that connect_port() may be called before or after a call to activate(). */ void (*activate)(LADSPA_Handle Instance); /* This method is a function pointer that runs an instance of a plugin for a block. Two parameters are required: the first is a handle to the particular instance to be run and the second indicates the block size (in samples) for which the plugin instance may run. Note that if an activate() function exists then it must be called before run() or run_adding(). If deactivate() is called for a plugin instance then the plugin instance may not be reused until activate() has been called again. If the plugin has the property LADSPA_PROPERTY_HARD_RT_CAPABLE then there are various things that the plugin should not do within the run() or run_adding() functions (see above). */ void (*run)(LADSPA_Handle Instance, unsigned long SampleCount); /* This method is a function pointer that runs an instance of a plugin for a block. This has identical behaviour to run() except in the way data is output from the plugin. When run() is used, values are written directly to the memory areas associated with the output ports. However when run_adding() is called, values must be added to the values already present in the memory areas. Furthermore, output values written must be scaled by the current gain set by set_run_adding_gain() (see below) before addition. run_adding() is optional. When it is not provided by a plugin, this function pointer must be set to NULL. When it is provided, the function set_run_adding_gain() must be provided also. */ void (*run_adding)(LADSPA_Handle Instance, unsigned long SampleCount); /* This method is a function pointer that sets the output gain for use when run_adding() is called (see above). If this function is never called the gain is assumed to default to 1. Gain information should be retained when activate() or deactivate() are called. This function should be provided by the plugin if and only if the run_adding() function is provided. When it is absent this function pointer must be set to NULL. */ void (*set_run_adding_gain)(LADSPA_Handle Instance, LADSPA_Data Gain); /* This is the counterpart to activate() (see above). If there is nothing for deactivate() to do then the plugin writer may provide a NULL rather than an empty function. Hosts must deactivate all activated units after they have been run() (or run_adding()) for the last time. This call should be made as close to the last run() call as possible and indicates to real-time plugins that they are no longer live. Plugins should not rely on prompt deactivation. Note that connect_port() may be called before or after a call to deactivate(). Deactivation is not similar to pausing as the plugin instance will be reinitialised when activate() is called to reuse it. */ void (*deactivate)(LADSPA_Handle Instance); /* Once an instance of a plugin has been finished with it can be deleted using the following function. The instance handle passed ceases to be valid after this call. If activate() was called for a plugin instance then a corresponding call to deactivate() must be made before cleanup() is called. */ void (*cleanup)(LADSPA_Handle Instance); } LADSPA_Descriptor; /**********************************************************************/ /* Accessing a Plugin: */ /* The exact mechanism by which plugins are loaded is host-dependent, however all most hosts will need to know is the name of shared object file containing the plugin types. To allow multiple hosts to share plugin types, hosts may wish to check for environment variable LADSPA_PATH. If present, this should contain a colon-separated path indicating directories that should be searched (in order) when loading plugin types. A plugin programmer must include a function called "ladspa_descriptor" with the following function prototype within the shared object file. This function will have C-style linkage (if you are using C++ this is taken care of by the `extern "C"' clause at the top of the file). A host will find the plugin shared object file by one means or another, find the ladspa_descriptor() function, call it, and proceed from there. Plugin types are accessed by index (not ID) using values from 0 upwards. Out of range indexes must result in this function returning NULL, so the plugin count can be determined by checking for the least index that results in NULL being returned. */ const LADSPA_Descriptor * ladspa_descriptor(unsigned long Index); /* Datatype corresponding to the ladspa_descriptor() function. */ typedef const LADSPA_Descriptor * (*LADSPA_Descriptor_Function)(unsigned long Index); /**********************************************************************/ #ifdef __cplusplus } #endif #endif /* LADSPA_INCLUDED */ /* EOF */ sooperlooper-1.7.3~dfsg0/src/ringbuffer.hpp0000644000175000017500000001400611754453701017477 0ustar miramira/* Copyright (C) 2000 Paul Davis & Benno Senoner This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef ringbuffer_h #define ringbuffer_h #include #include #include "atomic.h" template class RingBuffer { public: RingBuffer (size_t sz) { size_t power_of_two; for (power_of_two = 1; 1U< r) { return ((r - w + size) & size_mask) - 1; } else if (w < r) { return (r - w) - 1; } else { return size - 1; } } size_t read_space () { size_t w, r; w = atomic_read (&write_ptr); r = atomic_read (&read_ptr); if (w > r) { return w - r; } else { return (w - r + size) & size_mask; } } T *buffer () { return buf; } size_t get_write_ptr () const { return atomic_read (&write_ptr); } size_t get_read_ptr () const { return atomic_read (&read_ptr); } size_t bufsize () const { return size; } protected: T *buf; size_t size; atomic_t write_ptr; atomic_t read_ptr; size_t size_mask; }; template size_t RingBuffer::read (T *dest, size_t cnt) { size_t free_cnt; size_t cnt2; size_t to_read; size_t n1, n2; size_t priv_read_ptr; priv_read_ptr=atomic_read(&read_ptr); if ((free_cnt = read_space ()) == 0) { return 0; } to_read = cnt > free_cnt ? free_cnt : cnt; cnt2 = priv_read_ptr + to_read; if (cnt2 > size) { n1 = size - priv_read_ptr; n2 = cnt2 & size_mask; } else { n1 = to_read; n2 = 0; } memcpy (dest, &buf[priv_read_ptr], n1 * sizeof (T)); priv_read_ptr = (priv_read_ptr + n1) & size_mask; if (n2) { memcpy (dest+n1, buf, n2 * sizeof (T)); priv_read_ptr = n2; } atomic_set(&read_ptr, priv_read_ptr); return to_read; } template size_t RingBuffer::write (T *src, size_t cnt) { size_t free_cnt; size_t cnt2; size_t to_write; size_t n1, n2; size_t priv_write_ptr; priv_write_ptr=atomic_read(&write_ptr); if ((free_cnt = write_space ()) == 0) { return 0; } to_write = cnt > free_cnt ? free_cnt : cnt; cnt2 = priv_write_ptr + to_write; if (cnt2 > size) { n1 = size - priv_write_ptr; n2 = cnt2 & size_mask; } else { n1 = to_write; n2 = 0; } memcpy (&buf[priv_write_ptr], src, n1 * sizeof (T)); priv_write_ptr = (priv_write_ptr + n1) & size_mask; if (n2) { memcpy (buf, src+n1, n2 * sizeof (T)); priv_write_ptr = n2; } atomic_set(&write_ptr, priv_write_ptr); return to_write; } template void RingBuffer::get_read_vector (RingBuffer::rw_vector *vec) { size_t free_cnt; size_t cnt2; size_t w, r; w = atomic_read (&write_ptr); r = atomic_read (&read_ptr); if (w > r) { free_cnt = w - r; } else { free_cnt = (w - r + size) & size_mask; } cnt2 = r + free_cnt; if (cnt2 > size) { /* Two part vector: the rest of the buffer after the current write ptr, plus some from the start of the buffer. */ vec->buf[0] = &buf[r]; vec->len[0] = size - r; vec->buf[1] = buf; vec->len[1] = cnt2 & size_mask; } else { /* Single part vector: just the rest of the buffer */ vec->buf[0] = &buf[r]; vec->len[0] = free_cnt; vec->len[1] = 0; } } template void RingBuffer::get_write_vector (RingBuffer::rw_vector *vec) { size_t free_cnt; size_t cnt2; size_t w, r; w = atomic_read (&write_ptr); r = atomic_read (&read_ptr); if (w > r) { free_cnt = ((r - w + size) & size_mask) - 1; } else if (w < r) { free_cnt = (r - w) - 1; } else { free_cnt = size - 1; } cnt2 = w + free_cnt; if (cnt2 > size) { /* Two part vector: the rest of the buffer after the current write ptr, plus some from the start of the buffer. */ vec->buf[0] = &buf[w]; vec->len[0] = size - w; vec->buf[1] = buf; vec->len[1] = cnt2 & size_mask; } else { vec->buf[0] = &buf[w]; vec->len[0] = free_cnt; vec->len[1] = 0; } } #endif /* __ringbuffer_h__ */ sooperlooper-1.7.3~dfsg0/src/gui/0000755000175000017500000000000012503567205015416 5ustar miramirasooperlooper-1.7.3~dfsg0/src/gui/Makefile.in0000644000175000017500000004350512442352517017472 0ustar miramira# Makefile.in generated by automake 1.11 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ bin_PROGRAMS = slgui$(EXEEXT) subdir = src/gui DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_slgui_OBJECTS = gui_app.$(OBJEXT) main_panel.$(OBJEXT) \ app_frame.$(OBJEXT) pix_button.$(OBJEXT) \ looper_panel.$(OBJEXT) loop_control.$(OBJEXT) \ time_panel.$(OBJEXT) slider_bar.$(OBJEXT) choice_box.$(OBJEXT) \ spin_box.$(OBJEXT) keyboard_target.$(OBJEXT) \ keys_panel.$(OBJEXT) check_box.$(OBJEXT) \ midi_bind_panel.$(OBJEXT) config_panel.$(OBJEXT) \ prefs_dialog.$(OBJEXT) help_window.$(OBJEXT) \ latency_panel.$(OBJEXT) slgui_OBJECTS = $(am_slgui_OBJECTS) slgui_DEPENDENCIES = ../libslcore.a DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ SOURCES = $(slgui_SOURCES) DIST_SOURCES = $(slgui_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ACLOCAL_FLAGS = @ACLOCAL_FLAGS@ AMTAR = @AMTAR@ AUDIO_LIBS = @AUDIO_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_INCLUDES = @BASE_INCLUDES@ BASE_LIBS = @BASE_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FFTW_CFLAGS = @FFTW_CFLAGS@ FFTW_LIBS = @FFTW_LIBS@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JACK_CFLAGS = @JACK_CFLAGS@ JACK_LIBS = @JACK_LIBS@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LOSC_CFLAGS = @LOSC_CFLAGS@ LOSC_LIBS = @LOSC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NCURSES_LIBS = @NCURSES_LIBS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ RUBBERBAND_CFLAGS = @RUBBERBAND_CFLAGS@ RUBBERBAND_LIBS = @RUBBERBAND_LIBS@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIGCPP_CFLAGS = @SIGCPP_CFLAGS@ SIGCPP_LIBS = @SIGCPP_LIBS@ SL_DIRS = @SL_DIRS@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SOOP_MAJOR_VERSION = @SOOP_MAJOR_VERSION@ SOOP_MICRO_VERSION = @SOOP_MICRO_VERSION@ SOOP_MINOR_VERSION = @SOOP_MINOR_VERSION@ SOOP_RELEASE = @SOOP_RELEASE@ SOOP_SO_VERSION = @SOOP_SO_VERSION@ SOOP_VERSION = @SOOP_VERSION@ STRIP = @STRIP@ VERSION = @VERSION@ WX_CFLAGS = @WX_CFLAGS@ WX_CONFIG = @WX_CONFIG@ WX_CONFIG0 = @WX_CONFIG0@ WX_CONFIG1 = @WX_CONFIG1@ WX_CONFIG2 = @WX_CONFIG2@ WX_CONFIG3 = @WX_CONFIG3@ WX_CONFIG4 = @WX_CONFIG4@ WX_LIBS = @WX_LIBS@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ #pixmapdir = $(datadir)/sooperlooper/pixmaps #pixmap_DATA = \ # $(wildcard pixmaps/*.png) #DEFS = -DPIXMAPDIR=\""$(pixmapdir)/"\" AM_CXXFLAGS = -I.. @LOSC_CFLAGS@ @SIGCPP_CFLAGS@ @XML_CFLAGS@ @WX_CFLAGS@ slgui_LDADD = ../libslcore.a @BASE_LIBS@ @LOSC_LIBS@ @WX_LIBS@ @SIGCPP_LIBS@ @XML_LIBS@ slgui_SOURCES = \ gui_app.cpp \ main_panel.cpp \ app_frame.cpp \ pix_button.cpp \ looper_panel.cpp \ loop_control.cpp \ time_panel.cpp \ slider_bar.cpp \ choice_box.cpp \ spin_box.cpp \ keyboard_target.cpp \ keys_panel.cpp \ check_box.cpp \ midi_bind_panel.cpp \ config_panel.cpp \ prefs_dialog.cpp \ help_window.cpp \ latency_panel.cpp noinst_HEADERS = $(wildcard *.hpp *.h) EXTRA_DIST = $(wildcard pixmaps/*.xpm) all: all-am .SUFFIXES: .SUFFIXES: .cpp .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/gui/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign src/gui/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) slgui$(EXEEXT): $(slgui_OBJECTS) $(slgui_DEPENDENCIES) @rm -f slgui$(EXEEXT) $(CXXLINK) $(slgui_OBJECTS) $(slgui_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/app_frame.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_box.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/choice_box.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/config_panel.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gui_app.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/help_window.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/keyboard_target.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/keys_panel.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/latency_panel.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loop_control.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/looper_panel.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main_panel.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midi_bind_panel.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pix_button.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/prefs_dialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/slider_bar.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spin_box.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/time_panel.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic ctags distclean distclean-compile \ distclean-generic distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ uninstall-am uninstall-binPROGRAMS # `@WX_CONFIG@ --rezflags` slgui mac: slgui /Developer/Tools/Rez -d __DARWIN__ -t APPL Carbon.r -o slgui # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: sooperlooper-1.7.3~dfsg0/src/gui/main_panel.hpp0000644000175000017500000001426612274213733020242 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_mainpanel__ #define __sooperlooper_mainpanel__ #include #include #include #include #include #include class wxSpinCtrl; namespace SooperLooperGui { class LoopControl; class LooperPanel; class SliderBar; class ChoiceBox; class CheckBox; class SpinBox; class PixButton; class KeyboardTarget; class HelpWindow; class PrefsDialog; class MainPanel : public wxPanel, public sigc::trackable { public: // ctor(s) MainPanel(wxWindow * parent, wxWindowID id, const wxPoint& pos, const wxSize& size); virtual ~MainPanel(); // event handlers (these functions should _not_ be virtual) //void OnQuit(wxCommandEvent& event); void OnHide(wxCommandEvent &event); //void OnClose(wxCloseEvent &event); void OnSize(wxSizeEvent & event); void OnPaint(wxPaintEvent & event); void OnIdle(wxIdleEvent& event); void OnUpdateTimer(wxTimerEvent &ev); void OnActivate(wxActivateEvent &ev); void process_key_event (wxKeyEvent &ev); KeyboardTarget & get_keyboard() { return *_keyboard; } LoopControl & get_loop_control() { return *_loop_control; } void command_action (bool release, wxString cmd); void misc_action (bool release, wxString cmd); void select_loop_action (bool release, int index); void set_curr_loop (int index); void do_add_loop(const std::string & type=""); void do_add_custom_loop(); void do_remove_loop(); void do_close(bool quitengine=false); void do_load_session (); void do_save_session (bool write_audio=false); void set_force_local(bool flag) { _force_local = flag; } bool get_force_local() const { return _force_local; } void init_loopers (int count); bool load_rc(); bool save_rc(); void set_never_timeout(bool flag); bool get_never_timeout() const { return _never_timeout; } void save_default_midibindings (); wxString do_file_selector(const wxString & message, const wxString & ext, const wxString & wc, int style); sigc::signal2 PreferredSizeChange; protected: void init(); void intialize_keybindings (); void osc_data_ready(); void on_taptempo_timer(wxTimerEvent &ev); void on_tempo_change (float value); void on_eighth_change (float value); void on_xfade_change (float value); void on_syncto_change (int index, wxString val); void on_quantize_change (int index, wxString val); void on_dry_change (float value); void on_ingain_change (float value); void on_wet_change (float value); void on_round_check (bool val); void on_relsync_check (bool val); void on_mute_quant_check (bool val); void on_odub_quant_check (bool val); void on_repl_quant_check (bool val); void on_smart_eighths_check (bool val); void on_bind_request (wxString val); void on_view_menu (wxCommandEvent &ev); void on_about (wxCommandEvent &ev); void on_help (wxCommandEvent &ev); void on_modal_dialog_close (wxCommandEvent & ev); void on_taptempo_press (int button); void on_taptempo_release (int button); void init_syncto_choice(); void update_syncto_choice(); void update_controls(); void on_connect_failed (const std::string & msg); void on_connection_lost (const std::string & msg); void on_engine_alive (); void on_error_received (const std::string & msg); LoopControl * _loop_control; sigc::connection _loop_update_connection; sigc::connection _loop_connect_connection; sigc::connection _loop_disconnect_connection; sigc::connection _connect_failed_connection; sigc::connection _lost_connect_connection; sigc::connection _isalive_connection; sigc::connection _error_recvd_connection; std::vector _looper_panels; wxTimer * _update_timer; wxTimer * _taptempo_button_timer; wxScrolledWindow * _scroller; wxBoxSizer * _main_sizer; wxBoxSizer * _topsizer; wxPanel * _top_panel; SpinBox * _tempo_bar; ChoiceBox * _sync_choice; SpinBox * _eighth_cycle_bar; ChoiceBox * _quantize_choice; SliderBar * _common_ingain_bar; SliderBar * _common_dry_bar; SliderBar * _common_wet_bar; SpinBox * _xfade_bar; CheckBox * _round_check; CheckBox * _relsync_check; PixButton * _taptempo_button; CheckBox * _mute_quant_check; CheckBox * _odub_quant_check; CheckBox * _repl_quant_check; CheckBox * _smart_eighths_check; float _tapdelay_val; bool _force_local; bool _got_add_custom; int _add_num_channels; int _add_num_loops; float _add_secs_channel; bool _add_discrete; // keybindings PrefsDialog * _prefs_dialog; KeyboardTarget * _keyboard; int _curr_loop; HelpWindow * _help_window; int _got_new_data; wxString _rcdir; volatile bool _engine_alive; bool _never_timeout; int _update_timer_time; wxString _last_used_path; private: // any class wishing to process wxWindows events must use this macro DECLARE_EVENT_TABLE() }; class AddCustomLoopDialog : public wxDialog { public: AddCustomLoopDialog (MainPanel * parent=NULL, wxWindowID id=-1, const wxString& title=wxT("Add Custom Loop(s)"), const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize); // called by wxOK bool TransferDataFromWindow (); static int num_loops; static int num_channels; static float secs_channel; static bool discrete; protected: MainPanel * _parent; wxSpinCtrl * _num_loops_spin; wxSpinCtrl * _num_channels_spin; wxSpinCtrl * _secs_per_channel_spin; wxCheckBox * _discrete_check; }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/gui_app.cpp0000644000175000017500000002505612316066013017547 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #if HAVE_CONFIG_H #include #endif #include #include #include #include #include #ifdef __WXMAC__ #include wxString GetExecutablePath(wxString argv0); #endif //#include // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" // for all others, include the necessary headers (this file is usually all you // need because it includes almost all "standard" wxWindows headers #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include #include "version.h" #include "gui_app.hpp" #include "app_frame.hpp" #include "main_panel.hpp" #include "loop_control.hpp" using namespace SooperLooperGui; using namespace std; // Create a new application object: this macro will allow wxWindows to create // the application object during program execution (it's better than using a // static object for many reasons) and also declares the accessor function // wxGetApp() which will return the reference of the right type (i.e. MyApp and // not wxApp) IMPLEMENT_APP(SooperLooperGui::GuiApp) BEGIN_EVENT_TABLE(SooperLooperGui::GuiApp, wxApp) EVT_KEY_DOWN (GuiApp::process_key_event) EVT_KEY_UP (GuiApp::process_key_event) END_EVENT_TABLE() // ============================================================================ // implementation // ============================================================================ // ---------------------------------------------------------------------------- // the application class // ---------------------------------------------------------------------------- #define DEFAULT_OSC_PORT 9951 #define DEFAULT_LOOP_TIME 200.0f static const wxCmdLineEntryDesc cmdLineDesc[] = { { wxCMD_LINE_SWITCH, wxT_2("h"), wxT_2("help"), wxT_2("show this help"), wxCMD_LINE_VAL_NONE, wxCMD_LINE_OPTION_HELP }, { wxCMD_LINE_SWITCH, wxT_2("V"), wxT_2("version"), wxT_2("show version only"), wxCMD_LINE_VAL_NONE }, { wxCMD_LINE_OPTION, wxT_2("l"), wxT_2("loopcount"), wxT_2("number of loopers to create (default is 1)"), wxCMD_LINE_VAL_NUMBER }, { wxCMD_LINE_OPTION, wxT_2("c"), wxT_2("channels"), wxT_2("channel count for each looper (default is 2)"), wxCMD_LINE_VAL_NUMBER }, { wxCMD_LINE_OPTION, wxT_2("t"), wxT_2("looptime"), wxT_2("number of seconds of loop memory per channel"), wxCMD_LINE_VAL_NUMBER }, { wxCMD_LINE_OPTION, wxT_2("H"), wxT_2("connect-host"), wxT_2("connect to sooperlooper engine on given host (default is localhost)")}, { wxCMD_LINE_OPTION, wxT_2("P"), wxT_2("connect-port"), wxT_2("connect to sooperlooper engine on given port (default is 9951)"), wxCMD_LINE_VAL_NUMBER }, { wxCMD_LINE_OPTION, wxT_2("m"), wxT_2("load-midi-binding"), wxT_2("loads midi binding from file")}, { wxCMD_LINE_OPTION, wxT_2("L"), wxT_2("load-session"), wxT_2("load session from file")}, { wxCMD_LINE_SWITCH, wxT_2("s"), wxT_2("force-spawn"), wxT_2("force the execution of a new engine")}, { wxCMD_LINE_SWITCH, wxT_2("N"), wxT_2("never-spawn"), wxT_2("never start a new engine"), wxCMD_LINE_VAL_NONE }, { wxCMD_LINE_OPTION, wxT_2("E"), wxT_2("exec-name"), wxT_2("use name as binary to execute as sooperlooper engine (default is sooperlooper)")}, { wxCMD_LINE_OPTION, wxT_2("J"), wxT_2("jack-name"), wxT_2("jack client name, default is sooperlooper_1")}, { wxCMD_LINE_OPTION, wxT_2("S"), wxT_2("jack-server-name"), wxT_2("specify JACK server name")}, { wxCMD_LINE_SWITCH, wxT_2("T"), wxT_2("stay-on-top"), wxT_2("keep main window on top of other applications")}, { wxCMD_LINE_SWITCH, wxT_2("n"), wxT_2("never-timeout"), wxT_2("Never timeout if an engine stops responding")}, { wxCMD_LINE_NONE } }; bool GuiApp::parse_options (int argc, wxChar **argv) { wxCmdLineParser parser(argc, argv); parser.SetDesc(cmdLineDesc); wxString logotext = wxT("SooperLooper ") + wxString::FromAscii (sooperlooper_version) + wxT("\nCopyright 2008 Jesse Chappell\n") wxT("SooperLooper comes with ABSOLUTELY NO WARRANTY\n") wxT("This is free software, and you are welcome to redistribute it\n") wxT("under certain conditions; see the file COPYING for details\n"); parser.SetLogo (logotext); int ret = parser.Parse(); if (ret != 0) { // help or error return false; } wxString strval; long longval; if (parser.Found (wxT("V"))) { fprintf(stderr, "%s\n", (const char *) logotext.ToAscii()); return false; } if (parser.Found (wxT("c"), &longval)) { if (longval < 1) { fprintf(stderr, "Error: channel count must be > 0\n"); parser.Usage(); return false; } _channels = longval; } if (parser.Found (wxT("l"), &longval)) { if (longval < 0) { fprintf(stderr, "Error: loop count must be >= 0\n"); parser.Usage(); return false; } _loop_count = longval; } if (parser.Found (wxT("t"), &longval)) { if (longval < 1) { fprintf(stderr, "Error: loop memory must be > 0\n"); parser.Usage(); return false; } _mem_secs = (float) longval; } parser.Found (wxT("H"), &_host); if (parser.Found (wxT("P"), &longval)) { _port = longval; } parser.Found (wxT("m"), &_midi_bind_file); parser.Found (wxT("L"), &_load_session); _force_spawn = parser.Found (wxT("s")); _never_spawn = parser.Found (wxT("N")); parser.Found (wxT("E"), &_exec_name); _never_timeout = parser.Found (wxT("n")); parser.Found (wxT("S"), &_server_name); parser.Found (wxT("J"), &_client_name); _stay_on_top = parser.Found (wxT("T")); return true; } GuiApp::GuiApp() : _frame(0), _host(wxT("localhost")), _port(0) { _show_usage = 0; _show_version = 0; _exec_name = wxT(""); _force_spawn = false; _loop_count = 0; _channels = 0; _mem_secs = 0.0f; _stay_on_top = false; _never_timeout = false; _inited = false; } GuiApp::~GuiApp() { } void GuiApp::MacOpenFile(const wxString &fileName) { //cerr << "OPEN SESSION: " << (const char *) fileName.ToAscii() << endl; _load_session = fileName; if (_frame) { LoopControl & loopctrl = _frame->get_main_panel()->get_loop_control(); loopctrl.get_spawn_config().session_path = (const char *) _load_session.ToAscii(); if (_inited) { // load session now //cerr << "loading now" << endl; LoopControl & loopctrl = _frame->get_main_panel()->get_loop_control(); loopctrl.post_load_session (_load_session); } } } // `Main program' equivalent: the program execution "starts" here bool GuiApp::OnInit() { wxString jackname; wxString preset; wxString rcdir; wxString jackdir; SetExitOnFrameDelete(TRUE); // use stderr as log wxLog *logger=new wxLogStderr(); logger->SetTimestamp(wxT("")); wxLog::SetActiveTarget(logger); if (!parse_options(argc, argv)) { // do not continue on non macs #ifndef __WXMAC__ return FALSE; #endif } #if wxCHECK_VERSION(2,9,0) SetAppDisplayName(wxT("SooperLooper")); #endif // Create the main application window _frame = new AppFrame (wxString::Format(wxT("SooperLooper v %s"), wxString::FromAscii(sooperlooper_version).c_str()), wxPoint(100, 100), wxDefaultSize, _stay_on_top); #ifdef __WXMAC__ if (_exec_name.empty()) { _exec_name = GetExecutablePath(argv[0]) + wxT("sooperlooper"); } #endif // escape all spaces with _exec_name.Replace (wxT(" "), wxT("\\ "), true); // override defaults LoopControl & loopctrl = _frame->get_main_panel()->get_loop_control(); if (!_host.empty()) { loopctrl.get_spawn_config().host = _host.ToAscii(); } if (_port != 0) { loopctrl.get_spawn_config().port = _port; } if (_force_spawn) { loopctrl.get_spawn_config().force_spawn = _force_spawn; } if (_never_spawn) { loopctrl.get_spawn_config().never_spawn = _never_spawn; } if (!_client_name.empty()) { loopctrl.get_spawn_config().jack_name = _client_name.ToAscii(); } if (!_server_name.empty()) { loopctrl.get_spawn_config().jack_serv_name = _server_name.ToAscii(); } if (!_exec_name.empty()) { loopctrl.get_spawn_config().exec_name = _exec_name.ToAscii(); } if (!_midi_bind_file.empty()) { loopctrl.get_spawn_config().midi_bind_path = _midi_bind_file.ToAscii(); } if (!_load_session.empty()) { loopctrl.get_spawn_config().session_path = (const char *) _load_session.ToAscii(); } if (_loop_count != 0) { loopctrl.get_spawn_config().num_loops = _loop_count; } if (_channels != 0) { loopctrl.get_spawn_config().num_channels = _channels; } if (_mem_secs != 0) { loopctrl.get_spawn_config().mem_secs = _mem_secs; } loopctrl.get_spawn_config().never_timeout = _never_timeout; _frame->get_main_panel()->set_never_timeout(_never_timeout); if (_host == wxT("127.0.0.1") && _never_spawn) { // special case, force the mainpanel to be local, to avoid some weirdness with network configs _frame->get_main_panel()->set_force_local(true); } //cerr << "OnInit" << endl; // connect //loopctrl.connect(); // Show it and tell the application that it's our main window _frame->SetSizeHints(850, 210); _frame->SetSize(860, 215); SetTopWindow(_frame); _frame->Show(FALSE); _frame->Raise(); _frame->Show(TRUE); // success: wxApp::OnRun() will be called which will enter the main message // loop and the application will run. If we returned FALSE here, the // application would exit immediately. return TRUE; } int GuiApp::OnRun() { LoopControl & loopctrl = _frame->get_main_panel()->get_loop_control(); loopctrl.connect(); _inited = true; return wxApp::OnRun(); } void GuiApp::process_key_event (wxKeyEvent &ev) { // this recieves all key events first _frame->get_main_panel()->process_key_event (ev); } #ifdef __WXMAC__ wxString GetExecutablePath(wxString argv0) { wxString path; if (wxIsAbsolutePath(argv0)) path = argv0; else { wxPathList pathlist; pathlist.AddEnvList(wxT("PATH")); path = pathlist.FindAbsoluteValidPath(argv0); } wxFileName filename(path); filename.Normalize(); path = filename.GetFullPath(); path = path.BeforeLast('/') + wxT("/"); return path; } #endif // __WXMAC__ sooperlooper-1.7.3~dfsg0/src/gui/midi_bind_panel.hpp0000644000175000017500000000554712230252703021226 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_midi_binding_panel__ #define __sooperlooper_midi_binding_panel__ #include #include #include #include #include #include #include class wxListCtrl; class wxSpinCtrl; namespace SooperLooperGui { class MainPanel; class KeyboardTarget; class MidiBindPanel : public wxPanel, public sigc::trackable { public: // ctor(s) MidiBindPanel(MainPanel * mainpan, wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(400,600), long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxT("MidiBindingsPanel")); virtual ~MidiBindPanel(); void refresh_state(); protected: void init(); void populate_controls(); void item_selected (wxListEvent & ev); void on_button (wxCommandEvent &ev); void on_combo (wxCommandEvent &ev); void learning_stopped (); void got_binding_changed(SooperLooper::MidiBindInfo & info); void recvd_next_midi(SooperLooper::MidiBindInfo & info); void cancelled_next_midi(); void update_entry_area(SooperLooper::MidiBindInfo * usethis=0); void update_curr_binding(); void onSize(wxSizeEvent &ev); void onPaint(wxPaintEvent &ev); wxListCtrl * _listctrl; wxButton * _learn_button; wxPanel * _edit_panel; wxChoice * _control_combo; wxChoice * _loopnum_combo; wxSpinCtrl * _chan_spin; wxChoice * _type_combo; wxSpinCtrl * _param_spin; wxPanel * _range_panel; wxTextCtrl * _lbound_ctrl; wxTextCtrl * _ubound_ctrl; wxPanel * _data_range_panel; wxTextCtrl * _data_min_ctrl; wxTextCtrl * _data_max_ctrl; wxChoice * _style_combo; wxCheckBox * _sus_check; wxCheckBox * _append_check; MainPanel * _parent; bool _justResized; bool _learning; SooperLooper::MidiBindings::BindingList _bind_list; std::list _cmdlist; std::list _ctrlist; SooperLooper::MidiBindInfo _currinfo; int _selitem; private: // any class wishing to process wxWindows events must use this macro DECLARE_EVENT_TABLE() }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/._slider_bar.cpp0000644000175000017500000000025312274257141020445 0ustar miramiraMac OS X  2y«ATTR«œœcom.apple.TextEncodingutf-8;134217984sooperlooper-1.7.3~dfsg0/src/gui/pix_button.hpp0000644000175000017500000000567412274257511020337 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_gui_pix_button__ #define __sooperlooper_gui_pix_button__ #include #include namespace SooperLooperGui { class PixButton : public wxWindow { public: // ctor(s) PixButton(wxWindow * parent, wxWindowID id=-1, bool midibindable=true, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize); virtual ~PixButton(); void set_normal_bitmap (const wxBitmap & bm); void set_focus_bitmap (const wxBitmap & bm); void set_selected_bitmap (const wxBitmap & bm); void set_disabled_bitmap (const wxBitmap & bm); void set_active_bitmap (const wxBitmap & bm); wxBitmap & get_normal_bitmap() { return _normal_bitmap;} wxBitmap & get_focus_bitmap() { return _focus_bitmap; } wxBitmap & get_selected_bitmap() { return _selected_bitmap; } wxBitmap & get_disabled_bitmap() { return _disabled_bitmap; } wxBitmap & get_active_bitmap() { return _active_bitmap; } void set_active(bool flag); bool get_active() { return _active; } void set_bg_color (const wxColour & col); wxColour & get_bg_color () { return _bgcolor; } enum MouseButton { LeftButton=1, MiddleButton, RightButton }; // int argument is mouse button as above sigc::signal1 pressed; sigc::signal1 released; sigc::signal1 clicked; sigc::signal0 enter; sigc::signal0 leave; sigc::signal0 bind_request; protected: enum ButtonState { Normal, Selected, Disabled }; enum EnterState { Inside, Outside }; void OnPaint (wxPaintEvent &ev); void OnSize (wxSizeEvent &ev); void OnMouseEvents (wxMouseEvent &ev); void on_menu_events (wxCommandEvent &ev); void draw_area (wxDC & dc); void update_size(); wxBitmap _normal_bitmap; wxBitmap _focus_bitmap; wxBitmap _selected_bitmap; wxBitmap _disabled_bitmap; wxBitmap _active_bitmap; ButtonState _bstate; EnterState _estate; bool _active; bool _pressed; int _width, _height; wxColour _bgcolor; wxBrush _bgbrush; wxBitmap * _backing_store; wxMemoryDC _memdc; wxMenu * _popup_menu; private: // any class wishing to process wxWindows events must use this macro DECLARE_EVENT_TABLE() }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/._plugin_app.hpp0000644000175000017500000000025312271473064020503 0ustar miramiraMac OS X  2y«ATTR«œœcom.apple.TextEncodingutf-8;134217984sooperlooper-1.7.3~dfsg0/src/gui/check_box.cpp0000644000175000017500000001407511754453700020057 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include #include "check_box.hpp" using namespace SooperLooperGui; using namespace std; enum { ID_PopupBase = 8000, ID_BindMenuOp = 9000 }; BEGIN_EVENT_TABLE(CheckBox, wxWindow) EVT_SIZE(CheckBox::OnSize) EVT_PAINT(CheckBox::OnPaint) EVT_MOUSE_EVENTS(CheckBox::OnMouseEvents) EVT_MOUSEWHEEL (CheckBox::OnMouseEvents) EVT_KILL_FOCUS (CheckBox::OnFocusEvent) EVT_MENU (ID_BindMenuOp , CheckBox::on_menu_events) END_EVENT_TABLE() CheckBox::CheckBox(wxWindow * parent, wxWindowID id, const wxString & label, bool bindable, const wxPoint& pos, const wxSize& size) : wxWindow(parent, id, pos, size) { _value = false; _backing_store = 0; _label_str = label; _boxsize = 14; _bgcolor.Set(0,0,0); _bgbrush.SetColour (_bgcolor); SetBackgroundColour (_bgcolor); SetThemeEnabled(false); _valuecolor.Set(244, 255, 178); _textcolor = *wxWHITE; //_barcolor.Set(14, 50, 89); _barcolor.Set(20, 65, 104); _pressbarcolor.Set(30, 85, 144); _overbarcolor.Set(20, 40, 50); _barbrush.SetColour(_barcolor); _bgbordercolor.Set(0,0,0); //_bordercolor.Set(67, 83, 103); _bordercolor.Set(0, 0, 0); _borderpen.SetColour(_bordercolor); _borderpen.SetWidth(1); _borderbrush.SetColour(_bgbordercolor); _valuebrush.SetColour(_valuecolor); if (bindable) { _popup_menu = new wxMenu(wxT("")); _popup_menu->Append ( new wxMenuItem(_popup_menu, ID_BindMenuOp, wxT("Learn MIDI Binding"))); } else { _popup_menu = 0; } int w,h; GetTextExtent(_label_str, &w, &h); SetVirtualSizeHints (6 + _boxsize + w, max(_boxsize, h)); SetVirtualSize (6 + _boxsize + w, max(_boxsize, h)); update_size(); } CheckBox::~CheckBox() { _memdc.SelectObject(wxNullBitmap); if (_backing_store) { delete _backing_store; } } bool CheckBox::SetFont(const wxFont & fnt) { bool ret = wxWindow::SetFont(fnt); _memdc.SetFont(fnt); return ret; } void CheckBox::set_value (bool val) { if (_value != val) { _value = val; Refresh(false); } } void CheckBox::set_label (const wxString & label) { int w,h; _label_str = label; GetTextExtent(_label_str, &w, &h); SetVirtualSize (6 + _boxsize + w, max(_boxsize, h)); SetVirtualSizeHints (6 + _boxsize + w, max(_boxsize, h)); Refresh(false); } void CheckBox::set_bg_color (const wxColour & col) { _bgcolor = col; _bgbrush.SetColour (col); SetBackgroundColour (col); Refresh(false); } void CheckBox::set_label_color (const wxColour & col) { _textcolor = col; Refresh(false); } void CheckBox::set_border_color (const wxColour & col) { _bordercolor = col; _borderpen.SetColour (col); Refresh(false); } void CheckBox::set_bg_border_color (const wxColour & col) { _bgbordercolor = col; _borderbrush.SetColour (col); Refresh(false); } void CheckBox::update_size() { GetClientSize(&_width, &_height); if (_width > 0 && _height > 0) { _memdc.SelectObject (wxNullBitmap); if (_backing_store) { delete _backing_store; } _backing_store = new wxBitmap(_width, _height); _memdc.SelectObject(*_backing_store); _memdc.SetFont(GetFont()); } } void CheckBox::OnSize(wxSizeEvent & event) { update_size(); event.Skip(); } void CheckBox::OnPaint(wxPaintEvent & event) { wxPaintDC pdc(this); if (!_backing_store) { return; } draw_area(_memdc); pdc.Blit(0, 0, _width, _height, &_memdc, 0, 0); } void CheckBox::OnMouseEvents (wxMouseEvent &ev) { if (!IsEnabled()) { ev.Skip(); return; } if (ev.Entering()) { _borderbrush.SetColour(_overbarcolor); Refresh(false); } else if (ev.Leaving()) { _borderbrush.SetColour(_bgbordercolor); _barbrush.SetColour (_barcolor); Refresh(false); } wxRect bounds (0,0, _width, _height); if (ev.GetEventType() == wxEVT_MOUSEWHEEL) { // don't get the events right now } else if (ev.LeftDown()) { _barbrush.SetColour (_pressbarcolor); Refresh(false); } else if (ev.LeftUp()) { if (bounds.Inside(ev.GetPosition())) { // toggle value _value = !_value; value_changed (_value); // emit } _barbrush.SetColour (_barcolor); Refresh(false); } else if (ev.RightDown()) { if (_popup_menu) { this->PopupMenu ( _popup_menu, ev.GetX(), ev.GetY()); } } else if (ev.RightUp()) { } ev.Skip(); } void CheckBox::OnFocusEvent (wxFocusEvent &ev) { if (ev.GetEventType() == wxEVT_KILL_FOCUS) { // focus kill _borderbrush.SetColour(_bgbordercolor); Refresh(false); } ev.Skip(); } void CheckBox::on_menu_events (wxCommandEvent &ev) { if (ev.GetId() == ID_BindMenuOp) { bind_request(); // emit } } void CheckBox::draw_area(wxDC & dc) { wxCoord w,h, y; dc.SetBackground(_bgbrush); dc.Clear(); dc.SetBrush(_borderbrush); dc.SetPen(_borderpen); dc.DrawRectangle (0, 0, _width, _height); dc.SetPen(*wxTRANSPARENT_PEN); y = (_height - _boxsize) / 2; // draw check square dc.SetBrush(_barbrush); dc.DrawRectangle (3, y, _boxsize, _boxsize); dc.SetBrush(_borderbrush); dc.DrawRectangle (6, y+3, _boxsize - 6, _boxsize - 6); if (_value) { dc.SetBrush(_valuebrush); dc.DrawRectangle (7, y + 4, _boxsize - 8, _boxsize - 8); } dc.SetTextForeground(_textcolor); dc.GetTextExtent(_label_str, &w, &h); dc.DrawText (_label_str, 6 + _boxsize, (_height - h)/2); // dc.SetTextForeground(_valuecolor); // dc.GetTextExtent(_value_str, &w, &h); // dc.DrawText (_value_str, _width - w - 3, _height - h - 3); } sooperlooper-1.7.3~dfsg0/src/gui/._app_frame.cpp0000644000175000017500000000025312322010567020262 0ustar miramiraMac OS X  2y«ATTR«œœcom.apple.TextEncodingutf-8;134217984sooperlooper-1.7.3~dfsg0/src/gui/keyboard_target.cpp0000644000175000017500000003402112271476500021267 0ustar miramira/* Copyright (C) 2001-2002 Paul Davis , 2004 Jesse Chappell This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include "keyboard_target.hpp" #include #include "gui_app.hpp" #include "main_panel.hpp" #include "loop_control.hpp" #include #include // #define DEBUG_KEYBOARD using namespace SooperLooperGui; using std::pair; using namespace std; //KeyboardTarget::ActionMap KeyboardTarget::actions; KeyboardTarget::KeyboardTarget (wxWindow *win, string name) { _window = win; _name = name; _enabled = true; _learning = false; // todo register some events for the win } KeyboardTarget::~KeyboardTarget () { } void KeyboardTarget::set_enabled (bool flag) { if (flag != _enabled) { _enabled = flag; if (_enabled) { // clear state _state.clear(); } } } void KeyboardTarget::process_key_event (wxKeyEvent &event) { KeyMap::iterator result; bool changed = true; if (!_enabled) { event.Skip(); return; } if (event.GetEventType() == wxEVT_KEY_DOWN) { changed = update_state (event); if (changed) { if (_learning) { // do nothing yet } else if ((result = keymap.find (_state)) != keymap.end()) { (*result).second (false); } else { event.Skip(); } } // if it didn't change, it was an autorepeat, which we ignore } else if (event.GetEventType() == wxEVT_KEY_UP) { if (_learning) { // this is the first key up while learning, commit the binding commit_learn (); _learning = false; LearningStopped(); // emit } else if ((result = keymap.find (_state)) != keymap.end()) { (*result).second (true); } else { event.Skip(); } update_state (event); } } bool KeyboardTarget::update_state (wxKeyEvent &ev) { unsigned int keyval = (unsigned int) ev.GetKeyCode(); bool changed = true; if (ev.GetEventType() == wxEVT_KEY_DOWN) { if (find (_state.begin(), _state.end(), keyval) == _state.end()) { _state.push_back (keyval); sort (_state.begin(), _state.end()); } else { changed = false; } } else if (ev.GetEventType() == wxEVT_KEY_UP) { KeyState::iterator i; if ((i = find (_state.begin(), _state.end(), keyval)) != _state.end()) { _state.erase (i); sort (_state.begin(), _state.end()); } } #ifdef DEBUG_KEYBOARD cerr << "STATE: "; for (KeyState::iterator i = _state.begin(); i != _state.end(); ++i) { cerr << name_from_keycode(*i) << ' '; } cerr << " changed: " << changed << endl; #endif return changed; } int KeyboardTarget::add_binding (string keystring, string action) { KeyMap::iterator existing; BindingMap::iterator existingb; KeyState state; KeyAction key_action; state = translate_key_name (keystring); if (keystring.length() == 0) { cerr << "KeyboardTarget: empty string passed to add_binding." << endl; return -1; } if (state.size() == 0) { cerr << "KeyboardTarget: no translation found for " << keystring << endl; return -1; } if (find_action (action, key_action)) { cerr << "KeyboardTarget: unknown action " << action << endl; return -1; } /* remove any existing binding */ if ((existing = keymap.find (state)) != keymap.end()) { keymap.erase (existing); } if ((existingb = bindings.find (keystring)) != bindings.end()) { bindings.erase (existingb); } keymap.insert (pair (state, key_action)); bindings.insert (pair (keystring, action)); return 0; } bool KeyboardTarget::start_learning (string actname) { // the state at the next key-up will be bound to actname _learning = true; _learn_action = actname; cerr << "learning: " << _learn_action << endl; return true; } bool KeyboardTarget::stop_learning (bool cancel) { if (_learning) { if (!cancel) { // go ahead and bind current state commit_learn(); } _learning = false; LearningStopped(); // emit } return true; } void KeyboardTarget::commit_learn () { wxString keys; for (KeyState::iterator i = _state.begin(); i != _state.end(); ++i) { wxString key = name_from_keycode(*i); if (key == wxT("Shift") || key == wxT("Control") || key == wxT("Alt")) { keys = key + wxT("-") + keys; } else { keys = keys + key; } } // clear all for this command first, this is debatable clear_binding (_learn_action); add_binding (string ((const char *)keys.ToAscii()), _learn_action); } string KeyboardTarget::get_binding (string name) { BindingMap::iterator i; for (i = bindings.begin(); i != bindings.end(); ++i) { if (i->second == name) { /* convert keystring to GTK format */ string str = i->first; return str; } } return string (); } void KeyboardTarget::clear_binding (string name) { /* clears keys bound to name */ BindingMap::iterator i = bindings.begin(); BindingMap::iterator tmpi; KeyMap::iterator tmpk; while (i != bindings.end()) { if (i->second == name) { KeyState keystate = translate_key_name (i->first); tmpi = i; ++i; bindings.erase (tmpi); //cerr << "erase binding" << endl; if ((tmpk = keymap.find (keystate)) != keymap.end()) { keymap.erase (tmpk); //cerr << "erase binding keymap" << endl; } } else { ++i; } } } void KeyboardTarget::get_action_names (ActionNameList & nlist) { ActionMap::iterator i; for (i = actions.begin(); i != actions.end(); ++i) { nlist.push_back (i->first); } } void KeyboardTarget::show_all_actions () { ActionMap::iterator i; for (i = actions.begin(); i != actions.end(); ++i) { cout << i->first << endl; } } int KeyboardTarget::add_action (string name, KeyAction action) { pair newpair; pair result; newpair.first = name; newpair.second = action; result = actions.insert (newpair); return result.second ? 0 : -1; } int KeyboardTarget::find_action (string name, KeyAction& action) { map::iterator i; if ((i = actions.find (name)) != actions.end()) { action = i->second; return 0; } else { return -1; } } int KeyboardTarget::remove_action (string name) { map::iterator i; if ((i = actions.find (name)) != actions.end()) { actions.erase (i); return 0; } else { return -1; } } XMLNode& KeyboardTarget::get_binding_state () const { XMLNode *node = new XMLNode ("context"); BindingMap::const_iterator i; node->add_property ("name", _name); for (i = bindings.begin(); i != bindings.end(); ++i) { XMLNode *child; child = new XMLNode ("binding"); child->add_property ("keys", i->first); child->add_property ("action", i->second); node->add_child_nocopy (*child); } return *node; } int KeyboardTarget::set_binding_state (const XMLNode& node) { XMLNodeList nlist = node.children(); XMLNodeConstIterator niter; XMLNode *child_node; bindings.clear (); keymap.clear (); for (niter = nlist.begin(); niter != nlist.end(); ++niter) { child_node = *niter; if (child_node->name() == "context") { XMLProperty *prop; if ((prop = child_node->property ("name")) != 0) { if (prop->value() == _name) { return load_bindings (*child_node); } } } } return 0; } int KeyboardTarget::load_bindings (const XMLNode& node) { XMLNodeList nlist = node.children(); XMLNodeConstIterator niter; for (niter = nlist.begin(); niter != nlist.end(); ++niter) { XMLProperty *keys; XMLProperty *action; keys = (*niter)->property ("keys"); action = (*niter)->property ("action"); if (!keys || !action) { cerr << "misformed binding node - ignored" << endl; continue; } add_binding (keys->value(), action->value()); } return 0; } KeyboardTarget::KeyState KeyboardTarget::translate_key_name (const string& name) { string::size_type i; string::size_type len; bool at_end; string::size_type hyphen; string keyname; string whatevers_left; KeyState result; unsigned int keycode; i = 0; len = name.length(); at_end = (len == 0); while (!at_end) { whatevers_left = name.substr (i); if ((hyphen = whatevers_left.find_first_of ('-')) == string::npos) { /* no hyphen, so use the whole thing */ keyname = whatevers_left; at_end = true; } else { /* There is a hyphen. */ if (hyphen == 0 && whatevers_left.length() == 1) { /* its the first and only character */ keyname = "-"; at_end = true; } else { /* use the text before the hypen */ keyname = whatevers_left.substr (0, hyphen); if (hyphen == len - 1) { at_end = true; } else { i += hyphen + 1; at_end = (i >= len); } } } // if (keyname.length() == 1 && isupper (keyname[0])) { // result.push_back (WXK_SHIFT); // } if ((keycode = keycode_from_name (wxString::FromAscii(keyname.c_str()))) == 0) { cerr << "KeyboardTarget: keyname " << keyname << " is unknown" << endl; result.clear(); return result; } result.push_back (keycode); } sort (result.begin(), result.end()); return result; } int KeyboardTarget::keycode_from_name (const wxString &keyn) { // this sucks that i have to do this wxString keyname (keyn); int keycode = 0; // shift if (keyname.empty()) { // error } else if (keyname.IsSameAs (wxT("shift"), false)) { keycode = WXK_SHIFT; } else if (keyname.IsSameAs (wxT("control"), false)) { keycode = WXK_CONTROL; } else if (keyname.IsSameAs (wxT("alt"), false)) { keycode = WXK_ALT; } else if (keyname.IsSameAs (wxT("numlock"), false)) { keycode = WXK_NUMLOCK; } else if ( keyname.Len() == 1 ) { // it's a letter keycode = keyname[0U]; // Only call wxToupper if control, alt, or shift is held down, // otherwise lower case accelerators won't work. //if (accelFlags != wxACCEL_NORMAL) { keycode = wxToupper(keycode); //} } else { // is it a function key? if ( keyname[0U] == 'f' && isdigit(keyname[1U]) && (keyname.Len() == 2 || (keyname.Len() == 3 && isdigit(keyname[2U]))) ) { int n; wxSscanf(keyname.c_str() + 1, wxT("%d"), &n); keycode = WXK_F1 + n - 1; } else { // several special cases keyname.MakeUpper(); if ( keyname == wxT("DEL") ) { keycode = WXK_DELETE; } else if ( keyname == wxT("DELETE") ) { keycode = WXK_DELETE; } else if ( keyname == wxT("INS") ) { keycode = WXK_INSERT; } else if ( keyname == wxT("INSERT") ) { keycode = WXK_INSERT; } else if ( keyname == wxT("ENTER") || keyname == wxT("RETURN") ) { keycode = WXK_RETURN; } else if ( keyname == wxT("PGUP") ) { keycode = WXK_PRIOR; } else if ( keyname == wxT("PGDN") ) { keycode = WXK_NEXT; } else if ( keyname == wxT("LEFT") ) { keycode = WXK_LEFT; } else if ( keyname == wxT("RIGHT") ) { keycode = WXK_RIGHT; } else if ( keyname == wxT("UP") ) { keycode = WXK_UP; } else if ( keyname == wxT("DOWN") ) { keycode = WXK_DOWN; } else if ( keyname == wxT("HOME") ) { keycode = WXK_HOME; } else if ( keyname == wxT("END") ) { keycode = WXK_END; } else if ( keyname == wxT("SPACE") ) { keycode = WXK_SPACE; } else if ( keyname == wxT("TAB") ) { keycode = WXK_TAB; } else if ( keyname == wxT("ESCAPE") ) { keycode = WXK_ESCAPE; } } } return keycode; } wxString KeyboardTarget::name_from_keycode (int key) { wxString text; switch ( key ) { case WXK_SHIFT: text += wxT("Shift"); break; case WXK_CONTROL: text += wxT("Control"); break; case WXK_ALT: text += wxT("Alt"); break; case WXK_F1: case WXK_F2: case WXK_F3: case WXK_F4: case WXK_F5: case WXK_F6: case WXK_F7: case WXK_F8: case WXK_F9: case WXK_F10: case WXK_F11: case WXK_F12: text << wxT('F') << key - WXK_F1 + 1; break; case WXK_DELETE: text += wxT("delete"); break; case WXK_INSERT: text += wxT("insert"); break; case WXK_RETURN: text += wxT("return"); break; case WXK_PRIOR: text += wxT("pageup"); break; case WXK_NEXT: text += wxT("pagedown"); break; case WXK_LEFT: text += wxT("left"); break; case WXK_RIGHT: text += wxT("right"); break; case WXK_UP: text += wxT("up"); break; case WXK_DOWN: text += wxT("down"); break; case WXK_HOME: text += wxT("home"); break; case WXK_END: text += wxT("end"); break; case WXK_SPACE: text += wxT("space"); break; case WXK_TAB: text += wxT("tab"); break; case WXK_ESCAPE: text += wxT("escape"); break; case WXK_NUMLOCK: text += wxT("numlock"); break; default: if ( wxIsalnum(key) ) { text << (wxChar)key; text.MakeLower(); break; } } return text; } sooperlooper-1.7.3~dfsg0/src/gui/slider_bar.hpp0000644000175000017500000001265412230252703020234 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_gui_slider_bar__ #define __sooperlooper_gui_slider_bar__ #include #include namespace SooperLooperGui { class SliderBar : public wxWindow { public: // ctor(s) SliderBar(wxWindow * parent, wxWindowID id=-1, float lb=0.0f, float ub=1.0f, float val=0.5f, bool midibindable=true, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize); virtual ~SliderBar(); enum BarStyle { FromLeftStyle=0, CenterStyle, FromRightStyle, HiddenStyle }; enum ScaleMode { LinearMode = 0, ZeroGainMode }; enum SnapMode { NoSnap = 0, IntegerSnap }; virtual bool SetFont(const wxFont & fnt); void set_style (BarStyle md); BarStyle get_style () { return _bar_style;} void set_bounds (float lb, float ub); void get_bounds (float &lb, float &ub) { lb = _lower_bound; ub = _upper_bound; } void set_value (float val, bool refresh=true); float get_value (); void set_show_indicator_bar (bool flag) { _show_ind_bar = flag; } bool get_show_indicator_bar () { return _show_ind_bar; } void set_indicator_value (float val); float get_indicator_value (); void set_default_value (float val) { _default_val = val; } float get_default_value () { return _default_val; } void set_label (const wxString &label); wxString get_label () { return _label_str; } void set_units (const wxString &units); wxString get_units () { return _units_str; } void set_scale_mode (ScaleMode mode); ScaleMode get_scale_mode () { return _scale_mode; } void set_snap_mode (SnapMode mode); SnapMode get_snap_mode () { return _snap_mode; } void set_allow_outside_bounds (bool val) { _oob_flag = val; } bool get_allow_outside_bounds () { return _oob_flag; } void set_show_value (bool val) { _showval_flag = val; } bool get_show_value () { return _showval_flag; } void set_bg_color (const wxColour & col); wxColour & get_bg_color () { return _bgcolor; } void set_bar_color (const wxColour & col); wxColour & get_bar_color () { return _barcolor; } void set_text_color (const wxColour & col); wxColour & get_text_color () { return _textcolor; } void set_value_color (const wxColour & col); wxColour & get_value_color () { return _valuecolor; } void set_border_color (const wxColour & col); wxColour & get_border_color () { return _bordercolor; } void set_indicator_bar_color (const wxColour & col); wxColour & get_indicator_bar_color () { return _indcolor; } void set_indicator_max_bar_color (const wxColour & col); wxColour & get_indicator_max_bar_color () { return _indmaxcolor; } void set_decimal_digits (int num); int get_decimal_digits () { return _decimal_digits; } sigc::signal0 pressed; sigc::signal0 released; sigc::signal1 value_changed; sigc::signal0 bind_request; protected: void OnPaint (wxPaintEvent &ev); void OnSize (wxSizeEvent &ev); void OnMouseEvents (wxMouseEvent &ev); void do_redraw (); void draw_area (wxDC & dc); void draw_ind (wxDC & dc); void update_size(); void show_text_ctrl (); void hide_text_ctrl (); void on_text_event (wxCommandEvent &ev); void on_menu_events (wxCommandEvent &ev); void update_value_str(); wxString get_precise_value_str(); int _width, _height; wxBitmap * _backing_store; wxMemoryDC _memdc; wxMemoryDC _inddc; wxBitmap * _indbm; wxMenu * _popup_menu; wxColour _bgcolor; wxBrush _bgbrush; wxColour _barcolor; wxColour _overbarcolor; wxBrush _barbrush; wxColour _bordercolor; wxBrush _borderbrush; wxPen _borderpen; wxBrush _linebrush; wxColor _indcolor; wxColor _indmaxcolor; wxBrush _indbrush; wxBrush _indmaxbrush; wxColour _textcolor; wxColour _valuecolor; float _value; float _default_val; bool _show_ind_bar; float _ind_value; float _lower_bound, _upper_bound; bool _use_pending; float _pending_val; wxString _value_str; wxString _label_str; wxString _units_str; BarStyle _bar_style; class HidingTextCtrl : public wxTextCtrl { public: HidingTextCtrl (wxWindow* par, wxWindowID id, const wxString & value = wxT(""), const wxPoint & pos = wxDefaultPosition, const wxSize & size = wxDefaultSize, long style = 0) : wxTextCtrl (par, id, value, pos, size, style) {} virtual ~HidingTextCtrl() {} void on_focus_event(wxFocusEvent &ev); private: DECLARE_EVENT_TABLE() }; HidingTextCtrl * _text_ctrl; bool _dragging; int _last_x; bool _ignoretext; float _val_scale; ScaleMode _scale_mode; SnapMode _snap_mode; int _decimal_digits; bool _oob_flag; bool _showval_flag; private: // any class wishing to process wxWindows events must use this macro DECLARE_EVENT_TABLE() }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/midi_bind_panel.cpp0000644000175000017500000006700612230252703021217 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include #include #include #include #include "main_panel.hpp" #include "midi_bind_panel.hpp" #include "loop_control.hpp" #include "keyboard_target.hpp" #include #include using namespace SooperLooperGui; using namespace SooperLooper; using namespace std; enum { ID_ListCtrl = 8000, ID_CloseButton, ID_LearnButton, ID_ControlCombo, ID_LoopNumCombo, ID_ChanSpin, ID_TypeCombo, ID_ParamSpin, ID_LBoundCtrl, ID_UBoundCtrl, ID_StyleCombo, ID_AddButton, ID_ModifyButton, ID_RemoveButton, ID_ClearAllButton, ID_LoadButton, ID_SaveButton, ID_SusCheck, ID_AppendCheck, ID_DataMinCtrl, ID_DataMaxCtrl, }; BEGIN_EVENT_TABLE(SooperLooperGui::MidiBindPanel, wxPanel) //EVT_LIST_ITEM_ACTIVATED (ID_ListCtrl, SooperLooperGui::MidiBindPanel::list_event) EVT_LIST_ITEM_SELECTED (ID_ListCtrl, SooperLooperGui::MidiBindPanel::item_selected) EVT_BUTTON (ID_CloseButton, SooperLooperGui::MidiBindPanel::on_button) EVT_BUTTON (ID_LearnButton, SooperLooperGui::MidiBindPanel::on_button) EVT_BUTTON (ID_AddButton, SooperLooperGui::MidiBindPanel::on_button) EVT_BUTTON (ID_RemoveButton, SooperLooperGui::MidiBindPanel::on_button) EVT_BUTTON (ID_ModifyButton, SooperLooperGui::MidiBindPanel::on_button) EVT_BUTTON (ID_ClearAllButton, SooperLooperGui::MidiBindPanel::on_button) EVT_BUTTON (ID_LoadButton, SooperLooperGui::MidiBindPanel::on_button) EVT_BUTTON (ID_SaveButton, SooperLooperGui::MidiBindPanel::on_button) EVT_CHOICE(ID_ControlCombo, SooperLooperGui::MidiBindPanel::on_combo) EVT_SIZE (SooperLooperGui::MidiBindPanel::onSize) EVT_PAINT (SooperLooperGui::MidiBindPanel::onPaint) END_EVENT_TABLE() static const wxString CcString(wxT("CC")); static const wxString CcOnString(wxT("CC On")); static const wxString CcOffString(wxT("CC Off")); static const wxString NoteString(wxT("Note")); static const wxString NoteOnString(wxT("Note On")); static const wxString NoteOffString(wxT("Note Off")); static const wxString PcString(wxT("PC")); static const wxString PitchBendString(wxT("Pitch Bend")); static const wxString KeyPressureString(wxT("Key Pressure")); static const wxString ChannelPressureString(wxT("Channel Pressure")); static int wxCALLBACK list_sort_callback (long item1, long item2, long sortData) { MidiBindInfo * info1 = (MidiBindInfo*)(item1); MidiBindInfo * info2 = (MidiBindInfo*)(item2); return info1->control > info2->control; } // ctor(s) MidiBindPanel::MidiBindPanel(MainPanel * mainpan, wxWindow * parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style , const wxString& name) : wxPanel ((wxWindow *)parent, id, pos, size, style, name), _parent (mainpan) { _learning = false; _justResized = false; _selitem = -1; init(); } MidiBindPanel::~MidiBindPanel() { } void MidiBindPanel::onSize(wxSizeEvent &ev) { _justResized = true; ev.Skip(); } void MidiBindPanel::onPaint(wxPaintEvent &ev) { if (_justResized) { int width,height, cwidth; _justResized = false; _listctrl->GetClientSize(&width, &height); cwidth = _listctrl->GetColumnWidth(0); _listctrl->SetColumnWidth(3, width-cwidth); } ev.Skip(); } void MidiBindPanel::init() { wxBoxSizer * topsizer = new wxBoxSizer(wxVERTICAL); _listctrl = new wxListCtrl(this, ID_ListCtrl, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER); _listctrl->InsertColumn(0, wxT("Control")); _listctrl->InsertColumn(1, wxT("Loop#")); _listctrl->InsertColumn(2, wxT("Midi Event")); _listctrl->InsertColumn(3, wxT("Range")); _listctrl->SetColumnWidth(0, 180); _listctrl->SetColumnWidth(1, 60); _listctrl->SetColumnWidth(2, 100); wxBoxSizer * buttsizer = new wxBoxSizer(wxHORIZONTAL); wxButton * butt = new wxButton (this, ID_SaveButton, wxT("Save...")); buttsizer->Add (butt, 0, wxALL|wxALIGN_CENTRE, 3); butt = new wxButton (this, ID_LoadButton, wxT("Load...")); buttsizer->Add (butt, 0, wxALL|wxALIGN_CENTRE, 3); _append_check = new wxCheckBox (this, ID_AppendCheck, wxT("load adds to existing")); buttsizer->Add (_append_check, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 3); buttsizer->Add (1,-1,1, wxALL, 0); butt = new wxButton (this, ID_ClearAllButton, wxT("Clear All")); buttsizer->Add (butt, 0, wxALL|wxALIGN_RIGHT, 3); topsizer->Add (buttsizer, 0, wxLEFT|wxTOP|wxRIGHT|wxEXPAND, 4); // add list topsizer->Add (_listctrl, 1, wxEXPAND|wxALL, 4); _edit_panel = new wxPanel(this, -1); wxBoxSizer * editsizer = new wxBoxSizer(wxHORIZONTAL); wxStaticBox * shotBox = new wxStaticBox(_edit_panel, -1, wxT("Command/Control"), wxDefaultPosition, wxDefaultSize); wxStaticBoxSizer * colsizer = new wxStaticBoxSizer(shotBox, wxVERTICAL); //wxBoxSizer * colsizer = new wxBoxSizer(wxVERTICAL); wxBoxSizer * rowsizer; wxStaticText * staticText; //colsizer->Add (staticText, 0, wxALL|wxALIGN_CENTRE, 2); _control_combo = new wxChoice(_edit_panel, ID_ControlCombo, wxDefaultPosition, wxSize(100, -1), 0, 0); //_control_combo->SetToolTip(wxT("Choose control or command")); populate_controls(); //_control_combo->SetSelection(0); colsizer->Add (_control_combo, 0, wxALL|wxALIGN_CENTRE|wxEXPAND, 2); _control_combo->SetWindowVariant(wxWINDOW_VARIANT_NORMAL); rowsizer = new wxBoxSizer(wxHORIZONTAL); staticText = new wxStaticText(_edit_panel, -1, wxT("Loop #"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_LEFT); staticText->SetWindowVariant(wxWINDOW_VARIANT_SMALL); rowsizer->Add (staticText, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); _loopnum_combo = new wxChoice(_edit_panel, ID_LoopNumCombo, wxDefaultPosition, wxSize(100, -1), 0, 0); _loopnum_combo->SetWindowVariant(wxWINDOW_VARIANT_SMALL); _loopnum_combo->Append (wxT("Selected"), (void *) -2); _loopnum_combo->Append (wxT("Global"), (void *) -1); _loopnum_combo->Append (wxT("All"), (void *) 0); for (int i=1; i <= 16; ++i) { _loopnum_combo->Append (wxString::Format(wxT("%d"), i), (void *) i); } _loopnum_combo->SetSelection(2); rowsizer->Add (_loopnum_combo, 1, wxALL|wxALIGN_CENTRE_VERTICAL, 1); _sus_check = new wxCheckBox(_edit_panel, ID_SusCheck, wxT("SUS")); _sus_check->SetWindowVariant(wxWINDOW_VARIANT_SMALL); rowsizer->Add (_sus_check, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 1); colsizer->Add (rowsizer, 0, wxALL|wxEXPAND, 0); editsizer->Add (colsizer, 0, wxALL|wxEXPAND, 4); // midi event stuff shotBox = new wxStaticBox(_edit_panel, -1, wxT("MIDI Event"), wxDefaultPosition, wxDefaultSize); colsizer = new wxStaticBoxSizer(shotBox, wxVERTICAL); //staticText = new wxStaticText(_edit_panel, -1, "MIDI Event", wxDefaultPosition, wxSize(-1, -1), wxALIGN_CENTRE); //colsizer->Add (staticText, 0, wxALL|wxALIGN_CENTRE, 2); rowsizer = new wxBoxSizer(wxHORIZONTAL); staticText = new wxStaticText(_edit_panel, -1, wxT("Ch#"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_LEFT); staticText->SetWindowVariant(wxWINDOW_VARIANT_SMALL); rowsizer->Add (staticText, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); _chan_spin = new wxSpinCtrl(_edit_panel, ID_ChanSpin, wxT("1"), wxDefaultPosition, wxSize(50,-1), wxSP_ARROW_KEYS, 1, 16, 1, wxT("KeyAware")); _chan_spin->SetWindowVariant(wxWINDOW_VARIANT_SMALL); rowsizer->Add (_chan_spin, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); _type_combo = new wxChoice(_edit_panel, ID_TypeCombo, wxDefaultPosition, wxSize(100, -1), 0, 0); _type_combo->SetWindowVariant(wxWINDOW_VARIANT_SMALL); //_control_combo->SetToolTip(wxT("Choose control or command")); _type_combo->Append (NoteString); _type_combo->Append (NoteOnString); _type_combo->Append (NoteOffString); _type_combo->Append (CcString); _type_combo->Append (CcOnString); _type_combo->Append (CcOffString); _type_combo->Append (PcString); _type_combo->Append (KeyPressureString); _type_combo->Append (ChannelPressureString); _type_combo->Append (PitchBendString); _type_combo->SetSelection(0); rowsizer->Add (_type_combo, 1, wxALL|wxALIGN_CENTRE_VERTICAL, 2); _param_spin = new wxSpinCtrl(_edit_panel, ID_ParamSpin, wxT("0"), wxDefaultPosition, wxSize(50,-1), wxSP_ARROW_KEYS, 0, 127, 0, wxT("KeyAware")); _param_spin->SetWindowVariant(wxWINDOW_VARIANT_SMALL); rowsizer->Add (_param_spin, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); _learn_button = new wxButton (_edit_panel, ID_LearnButton, wxT("Learn"), wxDefaultPosition, wxSize(-1, -1)); _learn_button->SetWindowVariant(wxWINDOW_VARIANT_SMALL); rowsizer->Add (_learn_button, 0, wxALL, 3); colsizer->Add (rowsizer, 0, wxALL|wxEXPAND, 0); _range_panel = new wxPanel(_edit_panel); rowsizer = new wxBoxSizer(wxHORIZONTAL); staticText = new wxStaticText(_range_panel, -1, wxT("Targ Range"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_LEFT); staticText->SetWindowVariant(wxWINDOW_VARIANT_SMALL); rowsizer->Add (staticText, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); _lbound_ctrl = new wxTextCtrl(_range_panel, ID_LBoundCtrl, wxT(""), wxDefaultPosition, wxSize(40, -1), 0, wxDefaultValidator, wxT("KeyAware")); _lbound_ctrl->SetWindowVariant(wxWINDOW_VARIANT_SMALL); rowsizer->Add (_lbound_ctrl, 1, wxALL|wxALIGN_CENTRE_VERTICAL, 1); staticText = new wxStaticText(_range_panel, -1, wxT(" to "), wxDefaultPosition, wxSize(-1, -1), wxALIGN_LEFT); staticText->SetWindowVariant(wxWINDOW_VARIANT_SMALL); rowsizer->Add (staticText, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); _ubound_ctrl = new wxTextCtrl(_range_panel, ID_UBoundCtrl, wxT(""), wxDefaultPosition, wxSize(40, -1), 0, wxDefaultValidator, wxT("KeyAware")); _ubound_ctrl->SetWindowVariant(wxWINDOW_VARIANT_SMALL); rowsizer->Add (_ubound_ctrl, 1, wxALL|wxALIGN_CENTRE_VERTICAL, 1); _style_combo = new wxChoice(_range_panel, ID_StyleCombo, wxDefaultPosition, wxSize(30, -1), 0, 0); _style_combo->SetWindowVariant(wxWINDOW_VARIANT_SMALL); _style_combo->Append (wxT("Normal"), (void *) MidiBindInfo::NormalStyle); _style_combo->Append (wxT("Gain"), (void *) MidiBindInfo::GainStyle); _style_combo->Append (wxT("Integer"), (void *) MidiBindInfo::IntegerStyle); _style_combo->Append (wxT("Toggle"), (void *) MidiBindInfo::ToggleStyle); _style_combo->SetToolTip(wxT("Choose a scaling type")); _style_combo->SetSelection(0); rowsizer->Add (_style_combo, 1, wxALL|wxALIGN_CENTRE_VERTICAL, 1); _range_panel->SetAutoLayout( true ); // tell dialog to use sizer _range_panel->SetSizer( rowsizer ); // actually set the sizer rowsizer->SetSizeHints( _range_panel ); // set size hints to honour mininum size rowsizer->Fit(_range_panel); colsizer->Add (_range_panel, 0, wxALL|wxEXPAND, 0); _data_range_panel = new wxPanel(_edit_panel); rowsizer = new wxBoxSizer(wxHORIZONTAL); staticText = new wxStaticText(_data_range_panel, -1, wxT("Data Range"), wxDefaultPosition, wxSize(-1, -1), wxALIGN_LEFT); staticText->SetWindowVariant(wxWINDOW_VARIANT_SMALL); rowsizer->Add (staticText, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); _data_min_ctrl = new wxTextCtrl(_data_range_panel, ID_DataMinCtrl, wxT(""), wxDefaultPosition, wxSize(40, -1), 0, wxDefaultValidator, wxT("KeyAware")); _data_min_ctrl->SetWindowVariant(wxWINDOW_VARIANT_SMALL); rowsizer->Add (_data_min_ctrl, 1, wxALL|wxALIGN_CENTRE_VERTICAL, 1); staticText = new wxStaticText(_data_range_panel, -1, wxT(" to "), wxDefaultPosition, wxSize(-1, -1), wxALIGN_LEFT); staticText->SetWindowVariant(wxWINDOW_VARIANT_SMALL); rowsizer->Add (staticText, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); _data_max_ctrl = new wxTextCtrl(_data_range_panel, ID_DataMaxCtrl, wxT(""), wxDefaultPosition, wxSize(40, -1), 0, wxDefaultValidator, wxT("KeyAware")); _data_max_ctrl->SetWindowVariant(wxWINDOW_VARIANT_SMALL); rowsizer->Add (_data_max_ctrl, 1, wxALL|wxALIGN_CENTRE_VERTICAL, 1); _data_range_panel->SetAutoLayout( true ); // tell dialog to use sizer _data_range_panel->SetSizer( rowsizer ); // actually set the sizer //rowsizer->SetSizeHints( _range_panel ); // set size hints to honour mininum size //rowsizer->Fit(_data_range_panel); colsizer->Add (_data_range_panel, 0, wxALL|wxEXPAND, 0); editsizer->Add (colsizer, 1, wxALL|wxEXPAND, 4); _edit_panel->SetAutoLayout( true ); // tell dialog to use sizer _edit_panel->SetSizer( editsizer ); // actually set the sizer editsizer->SetSizeHints( _edit_panel ); // set size hints to honour mininum size editsizer->Fit(_edit_panel); topsizer->Add (_edit_panel, 0, wxEXPAND|wxALL, 1); buttsizer = new wxBoxSizer(wxHORIZONTAL); buttsizer->Add (1,1, 1, wxALL, 0); butt = new wxButton (this, ID_AddButton, wxT("Add New")); buttsizer->Add (butt, 0, wxALL|wxALIGN_CENTRE, 3); butt = new wxButton (this, ID_RemoveButton, wxT("Remove")); buttsizer->Add (butt, 0, wxALL|wxALIGN_CENTRE, 3); buttsizer->Add (10, 1, 0); butt = new wxButton (this, ID_ModifyButton, wxT("Modify")); buttsizer->Add (butt, 0, wxALL|wxALIGN_CENTRE, 3); //buttsizer->Add (1,-1,1, wxALL, 0); //butt = new wxButton (this, ID_CloseButton, wxT("Close")); //buttsizer->Add (butt, 0, wxALL|wxALIGN_CENTRE, 3); topsizer->Add (buttsizer, 0, wxALL|wxEXPAND|wxALIGN_RIGHT, 4); _parent->get_loop_control().MidiBindingChanged.connect (mem_fun (*this, &MidiBindPanel::got_binding_changed)); _parent->get_loop_control().ReceivedNextMidi.connect (mem_fun (*this, &MidiBindPanel::recvd_next_midi)); _parent->get_loop_control().NextMidiCancelled.connect (mem_fun (*this, &MidiBindPanel::cancelled_next_midi)); refresh_state(); this->SetAutoLayout( true ); // tell dialog to use sizer this->SetSizer( topsizer ); // actually set the sizer //topsizer->Fit( this ); // set size to minimum size as calculated by the sizer //topsizer->SetSizeHints( this ); // set size hints to honour mininum size } void MidiBindPanel::populate_controls() { // add all known controls to combo CommandMap & cmap = CommandMap::instance(); cmap.get_commands(_cmdlist); cmap.get_controls(_ctrlist); _cmdlist.sort(); _ctrlist.sort(); for (list::iterator iter = _cmdlist.begin(); iter != _cmdlist.end(); ++iter) { if (cmap.is_command(*iter)) { _control_combo->Append (wxString::Format(wxT("[cmd] %s"), wxString::FromAscii(iter->c_str()).c_str()), (void *) (iter->c_str())); } } for (list::iterator iter = _ctrlist.begin(); iter != _ctrlist.end(); ++iter) { if (cmap.is_input_control(*iter)) { _control_combo->Append (wxString::Format(wxT("[ctrl] %s"), wxString::FromAscii(iter->c_str()).c_str()), (void *) (iter->c_str())); } } for (list::iterator iter = _ctrlist.begin(); iter != _ctrlist.end(); ++iter) { if (cmap.is_global_control(*iter)) { _control_combo->Append (wxString::Format(wxT("[g. ctrl] %s"), wxString::FromAscii(iter->c_str()).c_str()), (void *) (iter->c_str())); } } } void MidiBindPanel::cancelled_next_midi() { _learning = false; _learn_button->SetLabel (wxT("Learn")); _learn_button->SetForegroundColour (*wxBLACK); // todo default } void MidiBindPanel::recvd_next_midi(SooperLooper::MidiBindInfo & info) { if (_learning) { //cerr << "got next: " << info.serialize() << endl; MidiBindInfo ninfo = _currinfo; ninfo.channel = info.channel; ninfo.param = info.param; ninfo.type = info.type; update_entry_area (&ninfo); _learn_button->SetLabel (wxT("Learn")); _learn_button->SetForegroundColour (*wxBLACK); // todo default _learning = false; } } void MidiBindPanel::got_binding_changed(SooperLooper::MidiBindInfo & info) { // cancel learning too if (_learning) { _learn_button->SetLabel (wxT("Learn")); _learn_button->SetForegroundColour (*wxBLACK); // todo default _learning = false; } refresh_state(); } void MidiBindPanel::refresh_state() { _listctrl->DeleteAllItems(); wxListItem item; item.SetMask (wxLIST_MASK_TEXT|wxLIST_MASK_DATA|wxLIST_MASK_STATE); item.SetColumn(0); item.SetWidth(wxLIST_AUTOSIZE); item.SetStateMask(wxLIST_STATE_SELECTED); item.SetState(0); _bind_list.clear(); _parent->get_loop_control().midi_bindings().get_bindings(_bind_list); int itemid = 0; for (MidiBindings::BindingList::iterator biter = _bind_list.begin(); biter != _bind_list.end(); ++biter) { MidiBindInfo & info = (*biter); // control item.SetId(itemid); item.SetColumn(0); item.SetData((void *) &info); item.SetText (wxString::FromAscii (info.control.c_str())); _listctrl->InsertItem (item); // loop # item.SetColumn(1); item.SetText (wxString::Format(wxT("%d"), info.instance + 1)); if (info.instance == -1) { item.SetText (wxT("All")); } else if (info.instance == -2) { item.SetText (wxT("Global")); } else if (info.instance == -3) { item.SetText (wxT("Selected")); } _listctrl->SetItem (item); // midi event item.SetColumn(2); item.SetText (wxString::Format(wxT("ch%d - %s - %d"), info.channel+1, wxString::FromAscii(info.type.c_str()).c_str(), info.param)); _listctrl->SetItem (item); // range item.SetColumn(3); if (info.command == "set") { item.SetText (wxString::Format(wxT("%g - %g (%d - %d) %s"), info.lbound, info.ubound, info.data_min, info.data_max, info.style == MidiBindInfo::GainStyle ? wxT("gain") : ( info.style == MidiBindInfo::ToggleStyle ? wxT("togg") : ( info.style == MidiBindInfo::IntegerStyle ? wxT("int") : wxT("") )))); } else { if (info.command == "susnote") { item.SetText(wxT("SUS")); } else { item.SetText(wxT("")); } } _listctrl->SetItem (item); itemid++; } _listctrl->SortItems (list_sort_callback, (unsigned long) _listctrl); for (long i=0; i < _listctrl->GetItemCount(); ++i) { item.SetId(i); item.SetColumn(0); if (_listctrl->GetItem(item)) { MidiBindInfo * info = (MidiBindInfo *) item.GetData(); if (*info == _currinfo) { _listctrl->SetItemState(i, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED); _listctrl->EnsureVisible(i); _selitem = i; // cerr << "matched curringo " << i << endl; break; } } } // if (selexists) { // _edit_panel->Enable(true); // } else { // _edit_panel->Enable(false); // } } void MidiBindPanel::update_entry_area(MidiBindInfo * usethis) { if (_selitem < 0 && !usethis) { return; } MidiBindInfo * info = 0; if (usethis) { info = usethis; } else if (_selitem >=0) { info = static_cast((void *)_listctrl->GetItemData(_selitem)); } if (!info) { return; } for (int i=0; i < (int)_control_combo->GetCount(); ++i) { if (static_cast(_control_combo->GetClientData(i)) == info->control) { _control_combo->SetSelection(i); break; } } _loopnum_combo->SetSelection(info->instance + 3); _chan_spin->SetValue(info->channel + 1); if (info->type == "cc") { _type_combo->SetStringSelection(CcString); } else if (info->type == "ccoff") { _type_combo->SetStringSelection(CcOffString); } else if (info->type == "ccon") { _type_combo->SetStringSelection(CcOnString); } else if (info->type == "n") { _type_combo->SetStringSelection(NoteString); } else if (info->type == "on") { _type_combo->SetStringSelection(NoteOnString); } else if (info->type == "off") { _type_combo->SetStringSelection(NoteOffString); } else if (info->type == "pc") { _type_combo->SetStringSelection(PcString); } else if (info->type == "pb") { _type_combo->SetStringSelection(PitchBendString); } else if (info->type == "kp") { _type_combo->SetStringSelection(KeyPressureString); } else if (info->type == "cp") { _type_combo->SetStringSelection(ChannelPressureString); } if (info->command == "set") { _range_panel->Enable(true); _data_range_panel->Enable(true); _lbound_ctrl->SetValue (wxString::Format(wxT("%g"), info->lbound)); _ubound_ctrl->SetValue (wxString::Format(wxT("%g"), info->ubound)); _data_min_ctrl->SetValue (wxString::Format(wxT("%d"), info->data_min)); _data_max_ctrl->SetValue (wxString::Format(wxT("%d"), info->data_max)); } else { _range_panel->Enable(false); _data_range_panel->Enable(false); if (info->command == "susnote") { _sus_check->SetValue(true); } else { _sus_check->SetValue(false); } _lbound_ctrl->SetValue (wxT("")); _ubound_ctrl->SetValue (wxT("")); _data_min_ctrl->SetValue (wxT("")); _data_max_ctrl->SetValue (wxT("")); } _param_spin->SetValue(info->param); if (info->style == MidiBindInfo::GainStyle) { _style_combo->SetSelection(1); } else if (info->style == MidiBindInfo::ToggleStyle) { _style_combo->SetSelection(3); } else if (info->style == MidiBindInfo::IntegerStyle) { _style_combo->SetSelection(2); } else { _style_combo->SetSelection(0); } } void MidiBindPanel::update_curr_binding() { double fval = 0.0; long lval = 0; CommandMap & cmap = CommandMap::instance(); if (_control_combo->GetSelection() < 0) { return; } // take info from editpanel and set the MidiBindInfo _currinfo.control = static_cast(_control_combo->GetClientData(_control_combo->GetSelection())); _currinfo.channel = _chan_spin->GetValue() - 1; if (_loopnum_combo->GetSelection() >= 0) { _currinfo.instance = (int) (long) _loopnum_combo->GetClientData(_loopnum_combo->GetSelection()) - 1; } else { _currinfo.instance = -1; } wxString tsel = _type_combo->GetStringSelection(); if (tsel == NoteString) { _currinfo.type = "n"; } else if (tsel == NoteOnString) { _currinfo.type = "on"; } else if (tsel == NoteOffString) { _currinfo.type = "off"; } else if (tsel == CcString) { _currinfo.type = "cc"; } else if (tsel == CcOnString) { _currinfo.type = "ccon"; } else if (tsel == CcOffString) { _currinfo.type = "ccoff"; } else if (tsel == PcString) { _currinfo.type = "pc"; } else if (tsel == PitchBendString) { _currinfo.type = "pb"; } else if (tsel == KeyPressureString) { _currinfo.type = "kp"; } else if (tsel == ChannelPressureString) { _currinfo.type = "cp"; } if (cmap.is_command(_currinfo.control)) { if (_currinfo.type == "pc" || _currinfo.type == "cc") { _currinfo.command = "hit"; } else { if (_sus_check->GetValue()) { _currinfo.command = "susnote"; } else { _currinfo.command = "note"; } } } else { _currinfo.command = "set"; // control if (cmap.is_global_control(_currinfo.control)) { _currinfo.instance = -2; } } _currinfo.param = _param_spin->GetValue(); if (tsel == PitchBendString || tsel == ChannelPressureString) { _currinfo.param = 0; } if (_lbound_ctrl->GetValue().ToDouble(&fval)) { _currinfo.lbound = (float) fval; } else { _currinfo.lbound = 0.0; } if (_ubound_ctrl->GetValue().ToDouble(&fval)) { _currinfo.ubound = (float) fval; } else { _currinfo.ubound = 1.0; } if (_data_min_ctrl->GetValue().ToLong(&lval)) { //cerr << "data minis: " << (const char *) _data_min_ctrl->GetValue().ToAscii() << endl; _currinfo.data_min = (int) lval; } else { _currinfo.data_min = 0; } if (_data_max_ctrl->GetValue().ToLong(&lval)) { //cerr << "data max is: " << (const char *) _data_max_ctrl->GetValue().ToAscii() << endl; _currinfo.data_max = (int) lval; } else if (tsel == PitchBendString) { _currinfo.data_max = 16383; } else { _currinfo.data_max = 127; } if (_style_combo->GetSelection() == 1) { _currinfo.style = MidiBindInfo::GainStyle; } else if (_style_combo->GetSelection() == 2) { _currinfo.style = MidiBindInfo::IntegerStyle; } else if (_style_combo->GetSelection() == 3) { _currinfo.style = MidiBindInfo::ToggleStyle; } else { _currinfo.style = MidiBindInfo::NormalStyle; } } void MidiBindPanel::on_combo (wxCommandEvent &ev) { if (_control_combo->GetSelection() < 0) { return; } string control = static_cast(_control_combo->GetClientData(_control_combo->GetSelection())); if (CommandMap::instance().is_command(control)) { _range_panel->Enable(false); _data_range_panel->Enable(false); _lbound_ctrl->SetValue(wxT("")); _ubound_ctrl->SetValue(wxT("")); _data_min_ctrl->SetValue(wxT("")); _data_max_ctrl->SetValue(wxT("")); } else { _range_panel->Enable(true); _data_range_panel->Enable(true); // set default ranges CommandMap::ControlInfo info; CommandMap::instance().get_control_info(control, info); _lbound_ctrl->SetValue(wxString::Format(wxT("%g"), info.minValue)); _ubound_ctrl->SetValue(wxString::Format(wxT("%g"), info.maxValue)); _data_min_ctrl->SetValue (wxT("")); _data_max_ctrl->SetValue (wxT("")); } } void MidiBindPanel::on_button (wxCommandEvent &ev) { if (ev.GetId() == ID_CloseButton) { Show(false); } else if (ev.GetId() == ID_AddButton) { update_curr_binding(); _parent->get_loop_control().add_midi_binding(_currinfo); _parent->get_loop_control().request_all_midi_bindings(); } else if (ev.GetId() == ID_LearnButton) { if (!_learning) { update_curr_binding(); _learn_button->SetLabel (wxT("C. Learn")); _learn_button->SetForegroundColour (*wxRED); _learning = true; _parent->get_loop_control().request_next_midi_event(); } else { //_learn_button->SetLabel (wxT("Learn")); //_learn_button->SetForegroundColour (*wxBLACK); // todo default //_learning = false; _parent->get_loop_control().cancel_next_midi_event(); } } else if (ev.GetId() == ID_RemoveButton) { if (_listctrl->GetSelectedItemCount() > 0) { update_curr_binding(); _parent->get_loop_control().remove_midi_binding(_currinfo); _parent->get_loop_control().request_all_midi_bindings(); } } else if (ev.GetId() == ID_ModifyButton) { //if (_listctrl->GetSelectedItemCount() > 0) { _parent->get_loop_control().remove_midi_binding(_currinfo); update_curr_binding(); _parent->get_loop_control().add_midi_binding(_currinfo); _parent->get_loop_control().request_all_midi_bindings(); //} } else if (ev.GetId() == ID_ClearAllButton) { // are you sure? wxMessageDialog dial(this, wxT("Are you sure you want to clear all midi bindings?"), wxT("Clear MIDI Bindings"), wxYES_NO); if (dial.ShowModal() == wxID_YES) { _parent->get_loop_control().clear_midi_bindings(); } } else if (ev.GetId() == ID_LoadButton) { wxString filename = _parent->do_file_selector(wxT("Choose midi binding file to open"), wxT(""), wxT("*.slb"), wxOPEN|wxCHANGE_DIR); if ( !filename.empty() ) { _parent->get_loop_control().load_midi_bindings(filename, _append_check->GetValue()); } } else if (ev.GetId() == ID_SaveButton) { wxString filename = _parent->do_file_selector(wxT("Choose midi binding file to save"), wxT(""), wxT("*.slb"), wxSAVE|wxCHANGE_DIR|wxOVERWRITE_PROMPT); if ( !filename.empty() ) { // add .slb if there isn't one already if (filename.size() > 4 && filename.substr(filename.size() - 4, 4) != wxT(".slb")) { filename += wxT(".slb"); } _parent->get_loop_control().save_midi_bindings(filename); } } else { ev.Skip(); } } void MidiBindPanel::item_selected (wxListEvent & ev) { //cerr << "item " << ev.GetText() << " sel" << endl; _selitem = ev.GetIndex(); update_entry_area(); update_curr_binding(); } void MidiBindPanel::learning_stopped () { // cerr << "learning stopped " << endl; //_learn_button->SetLabel (wxT("Learn Selected")); //_learn_button->SetForegroundColour (*wxBLACK); //refresh_state(); //_listctrl->SetFocus(); } sooperlooper-1.7.3~dfsg0/src/gui/._app_frame.hpp0000644000175000017500000000025312273744477020312 0ustar miramiraMac OS X  2y«ATTR«œœcom.apple.TextEncodingutf-8;134217984sooperlooper-1.7.3~dfsg0/src/gui/._pix_button.hpp0000644000175000017500000000025312274257511020540 0ustar miramiraMac OS X  2y«ATTR«œœcom.apple.TextEncodingutf-8;134217984sooperlooper-1.7.3~dfsg0/src/gui/loop_control.hpp0000644000175000017500000001742512230252703020640 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_gui_loop_control__ #define __sooperlooper_gui_loop_control__ #include #include #include #include #include #include #include #include #include "plugin.hpp" namespace SooperLooper { class MidiBindings; class MidiBindInfo; }; namespace SooperLooperGui { class LoopUpdateTimer; class LoopControl : public sigc::trackable { public: struct SpawnConfig { SpawnConfig(const wxString & nm = wxT("default")); XMLNode& get_state () const; int set_state (const XMLNode&); wxString name; std::string host; long port; long num_loops; long num_channels; double mem_secs; bool discrete_io; std::string exec_name; std::string midi_bind_path; bool force_spawn; bool never_spawn; bool never_timeout; std::string jack_name; std::string jack_serv_name; std::string session_path; }; // ctor(s) LoopControl (const wxString & rcdir=wxT("")); virtual ~LoopControl(); SpawnConfig & get_spawn_config() { return _spawn_config; } SpawnConfig & get_default_spawn_config() { return _default_spawn_config; } bool connect(); bool disconnect(bool killit=false); bool post_down_event (int index, wxString cmd); bool post_up_event (int index, wxString cmd, bool force=false); bool post_ctrl_change (int index, wxString ctrl, float val); bool post_global_ctrl_change (wxString ctrl, float val); bool post_add_loop(int channels=0, float secs=0.0f, bool discrete=true); bool post_remove_loop(); bool post_save_loop(int index, wxString fname, wxString format=wxT("float"), wxString endian=wxT("little")); bool post_load_loop(int index, wxString fname); bool post_save_session(wxString fname, bool write_audio=false); bool post_load_session(wxString fname); bool is_engine_local(); wxString get_engine_host() const { return _host; } int get_engine_port() const { return _port; } bool connected() const { return (_osc_addr != 0 && _pingack); } bool we_spawned() const { return _we_spawned; } void request_values (int index); void request_all_values (int index); void request_global_values (); void request_control_value (int index, wxString ctrl); void request_global_control_value (wxString ctrl); void add_midi_binding(const SooperLooper::MidiBindInfo & info, bool exclusive=false); void learn_midi_binding(const SooperLooper::MidiBindInfo & info, bool exclusive=false); void remove_midi_binding(const SooperLooper::MidiBindInfo & info); void request_next_midi_event (); void clear_midi_bindings(); void request_all_midi_bindings(); void cancel_next_midi_event(); void cancel_midi_learn(); void load_midi_bindings(const wxString & filename, bool append=false); void save_midi_bindings(const wxString & filename); // for read only const SooperLooper::MidiBindings & midi_bindings() { return *_midi_bindings; } void update_values(); int register_all_in_new_thread(int num_of_loops); static void* _register_all(void* arg); void register_global_updates(bool unreg=false); void register_auto_updates(int index, bool unreg=false); void register_input_controls(int index, bool unreg=false); void register_control (int index, wxString ctrl, bool unreg=false); void register_auto_update(int index, wxString ctrl, bool unreg=false); void send_quit(); void send_alive_ping(); bool is_updated (int index, wxString ctrl); bool is_global_updated (wxString ctrl); bool get_global_value (wxString ctrl, float &retval); bool get_value (int index, wxString ctrl, float &retval); bool get_state (int index, SooperLooper::LooperState & state, wxString & statestr); bool get_next_state (int index, SooperLooper::LooperState & state, wxString & statestr); void pingtimer_expired(); sigc::signal1 LooperConnected; sigc::signal1 ConnectFailed; sigc::signal1 LostConnection; sigc::signal1 ErrorReceived; sigc::signal0 Disconnected; sigc::signal0 NewDataReady; sigc::signal0 IsAlive; sigc::signal1 MidiBindingChanged; sigc::signal1 ReceivedNextMidi; sigc::signal0 MidiLearnCancelled; sigc::signal0 NextMidiCancelled; protected: static int _control_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); int control_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); static int _pingack_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); int pingack_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); static int _midi_binding_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); int midi_binding_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); static int _alive_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); int alive_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); static int _error_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); int error_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); static void * _osc_traffic(void * arg); void osc_traffic(); void setup_param_map(); bool spawn_looper(); std::string _osc_url; lo_address _osc_addr; lo_server _osc_server; std::string _our_url; typedef std::map ControlValMap; typedef std::vector ControlValMapList; ControlValMapList _params_val_map; ControlValMap _global_val_map; std::map state_map; typedef std::map RegisteredLoopMap; RegisteredLoopMap _registeredin_loop_map; RegisteredLoopMap _registeredauto_loop_map; typedef std::map UpdatedCtrlMap; typedef std::vector UpdatedCtrlMapList; UpdatedCtrlMapList _updated; UpdatedCtrlMap _global_updated; wxString _host; int _port; bool _force_spawn; wxString _exec_name; wxString _rcdir; int _our_port; LoopUpdateTimer * _updatetimer; bool _pingack; int _waiting; bool _failed; bool _lastchance; bool _we_spawned; long _engine_pid; int _engine_id; bool init_traffic_thread(); void terminate_traffic_thread(); pthread_t _osc_traffic_thread; int _traffic_request_pipe[2]; volatile bool _traffic_done; volatile bool _sentinel; // midi bindings SooperLooper::MidiBindings * _midi_bindings; SpawnConfig _spawn_config; SpawnConfig _default_spawn_config; }; class LoopUpdateTimer : public wxTimer { public: LoopUpdateTimer(LoopControl *loopctrl): wxTimer(), _loopctrl(loopctrl) {} LoopControl * _loopctrl; void Notify() { _loopctrl->pingtimer_expired(); } }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/time_panel.hpp0000644000175000017500000000547312230252703020244 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_gui_time_panel__ #define __sooperlooper_gui_time_panel__ #include #include namespace SooperLooperGui { class LoopControl; class TimePanel : public wxPanel, public sigc::trackable { public: // ctor(s) TimePanel (LoopControl * control, wxWindow * parent, wxWindowID id=-1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(210, 60)); virtual ~TimePanel(); void set_index(int ind) { _index = ind; } int get_index() { return _index; } void OnSize (wxSizeEvent &ev); void OnPaint (wxPaintEvent &ev); bool update_time(); protected: void init(); void format_time(wxString & timestr, float val); void draw_area(); void do_redraw(); void update_cyc(); void normalize_font_size(wxFont & fnt, int width, int height, wxString fitstr); void update_size(); void calc_text_extents(); void draw_other(); void draw_pos(); void draw_state(); void draw_cycle(); LoopControl * _loop_control; int _index; wxString _pos_str; wxString _tot_str; wxString _cyc_str; wxString _cyc_curr_str; wxString _cyc_cnt_str; wxString _state_str; wxString _rem_str; wxString _mem_str; bool _waiting; wxFont _pos_font; wxColour _pos_color; wxFont _cyc_font; wxColour _cyc_color; wxFont _state_font; wxColour _state_color; wxFont _time_font; wxColour _time_color; wxFont _legend_font; wxColour _legend_color; wxColour _bgcolor; wxBrush _bgbrush; wxBrush _transbrush; int _width, _height; wxBitmap * _backing_store; wxMemoryDC _memdc; // i have to use all these to workaround a memory leak in wxGTK-2.4 against gtk2 wxBitmap * _pos_bm; wxMemoryDC _posdc; wxBitmap * _state_bm; wxMemoryDC _statedc; wxBitmap * _wait_bm; wxMemoryDC _waitdc; wxBitmap * _other_bm; wxMemoryDC _otherdc; wxBitmap * _cyc_bm; wxMemoryDC _cycdc; wxCoord _sw, _sh, _tw, _th, _pw, _ph, _mh, _mw, _ww, _wh; int _curr_ccnt, _curr_currc; private: // any class wishing to process wxWindows events must use this macro DECLARE_EVENT_TABLE() }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/app_frame.hpp0000644000175000017500000000500212273744477020072 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_app_frame__ #define __sooperlooper_app_frame__ #include #include #include #include #include #include class wxSpinCtrl; namespace SooperLooperGui { class LoopControl; class LooperPanel; class SliderBar; class ChoiceBox; class CheckBox; class SpinBox; class PixButton; class KeyboardTarget; class HelpWindow; class PrefsDialog; class MainPanel; class AppFrame : public wxFrame, public sigc::trackable { public: // ctor(s) AppFrame(const wxString& title, const wxPoint& pos, const wxSize& size, bool stay_on_top=false, bool embedded=false); virtual ~AppFrame(); // event handlers (these functions should _not_ be virtual) void OnQuit(wxCommandEvent& event); void OnHide(wxCommandEvent &event); void OnClose(wxCloseEvent &event); void OnActivate(wxActivateEvent &ev); MainPanel * get_main_panel() { return _mainpanel; } protected: void init(); void on_preferred_size(int w, int h); void on_add_loop (wxCommandEvent &ev); void on_add_custom_loop (wxCommandEvent &ev); void on_remove_loop (wxCommandEvent &ev); void on_view_menu (wxCommandEvent &ev); void on_about (wxCommandEvent &ev); void on_help (wxCommandEvent &ev); void on_load_session (wxCommandEvent &ev); void on_save_session (wxCommandEvent &ev); void on_save_session_audio (wxCommandEvent &ev); void on_timer_event(wxTimerEvent &ev); MainPanel * _mainpanel; wxBoxSizer * _topsizer; PrefsDialog * _prefs_dialog; HelpWindow * _help_window; wxToolBar * _toolbar; wxString _rcdir; bool _embedded; private: // any class wishing to process wxWindows events must use this macro DECLARE_EVENT_TABLE() }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/choice_box.cpp0000644000175000017500000002001411754453700020222 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include "choice_box.hpp" using namespace SooperLooperGui; using namespace std; enum { ID_PopupBase = 8000, ID_BindMenuOp = 9000 }; BEGIN_EVENT_TABLE(ChoiceBox, wxWindow) EVT_SIZE(ChoiceBox::OnSize) EVT_PAINT(ChoiceBox::OnPaint) EVT_MOUSE_EVENTS(ChoiceBox::OnMouseEvents) EVT_MOUSEWHEEL (ChoiceBox::OnMouseEvents) EVT_KILL_FOCUS (ChoiceBox::OnFocusEvent) EVT_MENU (ID_BindMenuOp , ChoiceBox::on_menu_item) END_EVENT_TABLE() ChoiceBox::ChoiceBox(wxWindow * parent, wxWindowID id, bool bindable, const wxPoint& pos, const wxSize& size) : wxWindow(parent, id, pos, size) { _curr_index = 0; _backing_store = 0; _dragging = false; _popup_menu = 0; _data_value = 0; _bindable = bindable; _bgcolor.Set(0,0,0); _bgbrush.SetColour (_bgcolor); SetBackgroundColour (_bgcolor); SetThemeEnabled(false); _valuecolor.Set(244, 255, 178); _textcolor = *wxWHITE; _barcolor.Set(14, 50, 89); _overbarcolor.Set(20, 40, 50); _barbrush.SetColour(_bgcolor); _bgbordercolor.Set(30,30,30); _bordercolor.Set(67, 83, 103); _borderpen.SetColour(_bordercolor); _borderpen.SetWidth(1); _borderbrush.SetColour(_bgbordercolor); _linebrush.SetColour(wxColour(154, 245, 168)); update_size(); } ChoiceBox::~ChoiceBox() { _memdc.SelectObject(wxNullBitmap); if (_backing_store) { delete _backing_store; } } bool ChoiceBox::SetFont(const wxFont & fnt) { bool ret = wxWindow::SetFont(fnt); _memdc.SetFont(fnt); return ret; } void ChoiceBox::append_choice (const wxString & item, long data) { _choices.push_back(ChoiceItem(item, data)); if (_choices.size() == 1) { // first one _curr_index = 0; update_value_str(); Refresh(false); } ensure_popup (true); } void ChoiceBox::clear_choices () { _choices.clear(); _curr_index = -1; ensure_popup (true); update_value_str(); Refresh(false); } void ChoiceBox::get_choices (ChoiceList & clist) { clist.insert (clist.begin(), _choices.begin(), _choices.end()); } void ChoiceBox::ensure_popup (bool force_build) { bool building = false; if (_popup_menu && force_build) { delete _popup_menu; _popup_menu = 0; } if (!_popup_menu) { _popup_menu = new wxMenu(); building = true; } int id = ID_PopupBase; for (ChoiceList::iterator iter = _choices.begin(); iter != _choices.end(); ++iter) { if (building) { _popup_menu->AppendCheckItem (id, (*iter).first); this->Connect( id, wxEVT_COMMAND_MENU_SELECTED, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) &ChoiceBox::on_menu_item, 0); } if (_value_str == (*iter).first) { _popup_menu->Check (id, true); } else { _popup_menu->Check (id, false); } ++id; } if (building) { _popup_menu->AppendSeparator(); _popup_menu->Append (ID_BindMenuOp, wxT("Learn MIDI Binding")); } } void ChoiceBox::on_menu_item (wxCommandEvent &ev) { int id = ev.GetId(); int index = id - (int) ID_PopupBase; if (id == ID_BindMenuOp) { bind_request(); // emit } else { set_index_value (index); value_changed (_curr_index, _value_str); // emit } } void ChoiceBox::set_label (const wxString & label) { _label_str = label; Refresh(false); } void ChoiceBox::set_string_value (const wxString &val) { // search through int n = 0; for (ChoiceList::iterator iter = _choices.begin(); iter != _choices.end(); ++iter, n++) { if ((*iter).first == val) { if (_curr_index != n) { _curr_index = n; update_value_str(); Refresh(false); } break; } } } wxString ChoiceBox::get_string_value () { return _value_str; } long ChoiceBox::get_data_value () { return _data_value; } void ChoiceBox::set_index_value (int ind) { if (ind < (int) _choices.size() && ind >= 0) { if (_curr_index != ind) { _curr_index = ind; update_value_str(); Refresh(false); } } } void ChoiceBox::update_value_str() { if (_curr_index >= 0 && _curr_index < (int) _choices.size()) { _value_str = _choices[_curr_index].first; _data_value = _choices[_curr_index].second; } else { _value_str = wxT(""); _data_value = 0; } } void ChoiceBox::set_bg_color (const wxColour & col) { _bgcolor = col; _bgbrush.SetColour (col); SetBackgroundColour (col); Refresh(false); } void ChoiceBox::set_label_color (const wxColour & col) { _textcolor = col; Refresh(false); } void ChoiceBox::set_border_color (const wxColour & col) { _bordercolor = col; _borderpen.SetColour (col); Refresh(false); } void ChoiceBox::set_bg_border_color (const wxColour & col) { _bgbordercolor = col; _borderbrush.SetColour (col); Refresh(false); } void ChoiceBox::update_size() { GetClientSize(&_width, &_height); if (_width > 0 && _height > 0) { _memdc.SelectObject (wxNullBitmap); if (_backing_store) { delete _backing_store; } _backing_store = new wxBitmap(_width, _height); _memdc.SelectObject(*_backing_store); _memdc.SetFont(GetFont()); } } void ChoiceBox::OnSize(wxSizeEvent & event) { update_size(); event.Skip(); } void ChoiceBox::OnPaint(wxPaintEvent & event) { wxPaintDC pdc(this); if (!_backing_store) { return; } draw_area(_memdc); pdc.Blit(0, 0, _width, _height, &_memdc, 0, 0); } void ChoiceBox::OnMouseEvents (wxMouseEvent &ev) { if (!IsEnabled()) { ev.Skip(); return; } if (ev.Entering() && !_dragging) { _borderbrush.SetColour(_overbarcolor); Refresh(false); } else if (ev.Leaving() && !_dragging) { _borderbrush.SetColour(_bgbordercolor); Refresh(false); } if (ev.GetEventType() == wxEVT_MOUSEWHEEL) { // don't get the events right now if (!_choices.empty()) { if (ev.GetWheelRotation() > 0) { _curr_index = (_curr_index+1) % _choices.size(); } else { if (_curr_index <= 0) { _curr_index = _choices.size() - 1; } else { _curr_index -= 1; } } update_value_str(); value_changed (_curr_index, _value_str); // emit Refresh(false); } } else if (ev.RightDown()) { ensure_popup (); PopupMenu (_popup_menu, ev.GetX(), ev.GetY()); } else if (ev.ButtonDown() || ev.ButtonDClick()) { _last_x = ev.GetX(); if (ev.LeftDown() || ev.LeftDClick()) { // next, cycle if (!_choices.empty()) { _curr_index = (_curr_index+1) % _choices.size(); update_value_str(); value_changed (_curr_index, _value_str); // emit Refresh(false); } } } ev.Skip(); } void ChoiceBox::OnFocusEvent (wxFocusEvent &ev) { if (ev.GetEventType() == wxEVT_KILL_FOCUS) { // focus kill _borderbrush.SetColour(_bgbordercolor); Refresh(false); } ev.Skip(); } void ChoiceBox::draw_area(wxDC & dc) { wxCoord w,h; wxPoint shape[6]; dc.SetBackground(_bgbrush); dc.Clear(); dc.SetBrush(_borderbrush); dc.SetPen(_borderpen); // dc.DrawRectangle (0, 0, _width, _height); shape[0].x = 0; shape[0].y = _height-1; shape[1].x = 0; shape[1].y = 2; shape[2].x = 2; shape[2].y = 0; shape[3].x = _width - 3; shape[3].y = 0; shape[4].x = _width -1; shape[4].y = 2; shape[5].x = _width -1; shape[5].y = _height -1; dc.DrawPolygon (6, shape); dc.SetPen(*wxTRANSPARENT_PEN); dc.SetTextForeground(_textcolor); dc.GetTextExtent(_label_str, &w, &h); dc.DrawText (_label_str, 3, _height - h - 3); dc.SetTextForeground(_valuecolor); dc.GetTextExtent(_value_str, &w, &h); dc.DrawText (_value_str, _width - w - 3, _height - h - 3); } sooperlooper-1.7.3~dfsg0/src/gui/keyboard_target.hpp0000644000175000017500000000552112271475574021311 0ustar miramira/* Copyright (C) 2001 Paul Davis, 2004 Jesse Chappell This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __ardour_keyboard_target_h__ #define __ardour_keyboard_target_h__ #include #include #include #include #include #include //#include //#include #include //#include "keyboard.h" using std::map; using std::string; namespace SooperLooperGui { class KeyboardTarget { public: KeyboardTarget(wxWindow *win, string name); virtual ~KeyboardTarget(); // first arg is key_release bool typedef sigc::slot1 KeyAction; typedef std::vector KeyState; typedef std::list ActionNameList; string name() const { return _name; } void set_enabled (bool flag); bool get_enabled () { return _enabled; } void process_key_event (wxKeyEvent &ev); static KeyState translate_key_name (const string&); static int keycode_from_name (const wxString &); static wxString name_from_keycode (int key); int add_binding (string keys, string name); string get_binding (string name); /* returns keys bound to name */ void clear_binding (string name); /* clears keys bound to name */ XMLNode& get_binding_state () const; int set_binding_state (const XMLNode&); bool start_learning (string actname); bool stop_learning (bool cancel=false); bool is_learning() { return _learning; } int add_action (string, KeyAction); int find_action (string, KeyAction&); int remove_action (string); void show_all_actions(); void get_action_names (ActionNameList & nlist); wxWindow * window() const { return _window; } sigc::signal0 LearningStopped; protected: typedef map KeyMap; typedef map BindingMap; bool update_state (wxKeyEvent &ev); void commit_learn(); KeyMap keymap; BindingMap bindings; KeyState _state; bool _enabled; bool _learning; string _learn_action; private: typedef map ActionMap; ActionMap actions; string _name; wxWindow * _window; int load_bindings (const XMLNode&); }; }; #endif /* __ardour_keyboard_target_h__ */ sooperlooper-1.7.3~dfsg0/src/gui/keys_panel.hpp0000644000175000017500000000353512230252703020256 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_keys_panel__ #define __sooperlooper_keys_panel__ #include #include #include #include #include class wxListCtrl; namespace SooperLooperGui { class MainPanel; class KeyboardTarget; class KeysPanel : public wxPanel, public sigc::trackable { public: // ctor(s) KeysPanel(MainPanel * guiframe, wxWindow * parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(400,600), long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxT("KeybindingsPanel")); virtual ~KeysPanel(); void refresh_state(); protected: void init(); void item_activated (wxListEvent & ev); void on_button (wxCommandEvent &ev); void learning_stopped (); void onSize(wxSizeEvent &ev); void onPaint(wxPaintEvent &ev); wxListCtrl * _listctrl; wxButton * _learn_button; MainPanel * _parent; bool _justResized; private: // any class wishing to process wxWindows events must use this macro DECLARE_EVENT_TABLE() }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/slider_bar.cpp0000644000175000017500000004015412274257141020234 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include "utils.hpp" #include "slider_bar.hpp" using SooperLooper::f_min; using SooperLooper::f_max; using namespace SooperLooperGui; using namespace std; // Convert a value in dB's to a coefficent #undef DB_CO #define DB_CO(g) ((g) > -144.0 ? pow(10.0, (g) * 0.05) : 0.0) #undef CO_DB #define CO_DB(v) (20.0 * log10(v)) static inline double gain_to_slider_position (double g) { if (g == 0) return 0; //return pow((6.0*log(g)/log(2.0)+192.0)/198.0, 8.0); return pow((6.0*log(g)/log(2.0)+198.0)/198.0, 8.0); } static inline double slider_position_to_gain (double pos) { if (pos == 0) { return 0.0; } /* XXX Marcus writes: this doesn't seem right to me. but i don't have a better answer ... */ //return pow (2.0,(sqrt(sqrt(sqrt(pos)))*198.0-192.0)/6.0); return pow (2.0,(sqrt(sqrt(sqrt(pos)))*198.0-198.0)/6.0); } enum { ID_TextCtrl = 8000, ID_EditMenuOp, ID_DefaultMenuOp, ID_BindMenuOp }; BEGIN_EVENT_TABLE(SliderBar, wxWindow) EVT_SIZE(SliderBar::OnSize) EVT_PAINT(SliderBar::OnPaint) EVT_MOUSE_EVENTS(SliderBar::OnMouseEvents) EVT_MOUSEWHEEL (SliderBar::OnMouseEvents) //EVT_TEXT (ID_TextCtrl, SliderBar::on_text_event) EVT_TEXT_ENTER (ID_TextCtrl, SliderBar::on_text_event) EVT_MENU (ID_EditMenuOp , SliderBar::on_menu_events) EVT_MENU (ID_DefaultMenuOp , SliderBar::on_menu_events) EVT_MENU (ID_BindMenuOp , SliderBar::on_menu_events) END_EVENT_TABLE() SliderBar::SliderBar(wxWindow * parent, wxWindowID id, float lb, float ub, float val, bool midibindable, const wxPoint& pos, const wxSize& size) : wxWindow(parent, id, pos, size) { _lower_bound = lb; _upper_bound = ub; _default_val = _value = val; _backing_store = 0; _indbm = 0; _dragging = false; _decimal_digits = 1; _text_ctrl = 0; _ignoretext = false; _oob_flag = false; _showval_flag = true; _show_ind_bar = false; _ind_value = 0.0f; _use_pending = false; _pending_val = 0.0f; _bgcolor.Set(30,30,30); _bgbrush.SetColour (_bgcolor); SetBackgroundColour (_bgcolor); SetThemeEnabled(false); _valuecolor.Set(244, 255, 178); _textcolor = *wxWHITE; _barcolor.Set(14, 50, 89); _overbarcolor.Set(20, 65, 104); _barbrush.SetColour(_barcolor); _bordercolor.Set(67, 83, 103); _borderpen.SetColour(_bordercolor); _borderpen.SetWidth(1); _borderbrush.SetColour(_bgcolor); _linebrush.SetColour(wxColour(154, 245, 168)); _bar_style = FromLeftStyle; _scale_mode = LinearMode; _snap_mode = NoSnap; _popup_menu = new wxMenu(wxT("")); _popup_menu->Append ( new wxMenuItem(_popup_menu, ID_EditMenuOp, wxT("Edit"))); _popup_menu->Append ( new wxMenuItem(_popup_menu, ID_DefaultMenuOp, wxT("Set to default"))); if (midibindable) { _popup_menu->AppendSeparator(); _popup_menu->Append ( new wxMenuItem(_popup_menu, ID_BindMenuOp, wxT("Learn MIDI Binding"))); } _indcolor.Set(47, 149, 133); _indbrush.SetColour(_indcolor); _indmaxcolor.Set(200, 20, 20); _indmaxbrush.SetColour(_indmaxcolor); update_size(); } SliderBar::~SliderBar() { _memdc.SelectObject(wxNullBitmap); if (_backing_store) { delete _backing_store; } _inddc.SelectObject(wxNullBitmap); if (_indbm) { delete _indbm; } } bool SliderBar::SetFont(const wxFont & fnt) { bool ret = wxWindow::SetFont(fnt); _memdc.SetFont(fnt); do_redraw(); return ret; } void SliderBar::set_style (BarStyle md) { if (md != _bar_style) { _bar_style = md; do_redraw(); } } void SliderBar::set_snap_mode (SnapMode md) { if (md != _snap_mode) { _snap_mode = md; } } void SliderBar::set_scale_mode (ScaleMode mode) { if (mode != _scale_mode) { _scale_mode = mode; update_value_str(); do_redraw(); } } void SliderBar::set_bounds (float lb, float ub) { if (_lower_bound != lb || _upper_bound != ub) { _lower_bound = lb; _upper_bound = ub; // force value to within if (_value < _lower_bound) { _value = _lower_bound; update_value_str(); do_redraw(); } else if (_value > _upper_bound) { _value = _upper_bound; update_value_str(); do_redraw(); } } } void SliderBar::set_label (const wxString & label) { _label_str = label; do_redraw(); } void SliderBar::set_units (const wxString & units) { _units_str = units.Strip(wxString::both); if (!_units_str.empty()) { _units_str = wxT(" ") + _units_str; } update_value_str(); do_redraw(); } void SliderBar::set_decimal_digits (int val) { _decimal_digits = val; update_value_str(); do_redraw(); } void SliderBar::set_value (float val, bool refresh) { float newval = val; if (_scale_mode == ZeroGainMode) { newval = gain_to_slider_position (val); } // if (_snap_mode == IntegerSnap) { // newval = nearbyintf (newval); // } if (!_oob_flag) { newval = min (newval, _upper_bound); newval = max (newval, _lower_bound); } if (_dragging) { // don't update current value if mid drag _use_pending = true; _pending_val = newval; return; } if (newval != _value) { _value = newval; update_value_str(); if (refresh) { do_redraw(); } } } void SliderBar::set_indicator_value (float val) { float newval = val; if (_scale_mode == ZeroGainMode) { newval = gain_to_slider_position (val); } if (!_oob_flag) { newval = f_min (newval, _upper_bound); newval = f_max (newval, _lower_bound); } if (newval != _ind_value) { _ind_value = newval; Refresh(false); } } float SliderBar::get_value () { if (_scale_mode == ZeroGainMode) { return slider_position_to_gain(_value); } else { return _value; } } float SliderBar::get_indicator_value () { if (_scale_mode == ZeroGainMode) { return slider_position_to_gain(_ind_value); } else { return _ind_value; } } void SliderBar::update_value_str() { if (_scale_mode == ZeroGainMode) { float gain = slider_position_to_gain(_value); if (gain == 0) { _value_str.Printf(wxT("-inf%s"), _units_str.c_str()); } else { _value_str.Printf(wxT("%.*f%s"), _decimal_digits, CO_DB(gain), _units_str.c_str()); } } else { _value_str.Printf(wxT("%.*f%s"), _decimal_digits, _value, _units_str.c_str()); } } wxString SliderBar::get_precise_value_str() { wxString valstr; if (_scale_mode == ZeroGainMode) { float gain = slider_position_to_gain(_value); if (gain == 0) { valstr.Printf(wxT("-inf")); } else if (_snap_mode == IntegerSnap) { valstr.Printf(wxT("%g"), CO_DB(gain)); } else { valstr.Printf(wxT("%.8f"), CO_DB(gain)); } } else { if (_snap_mode == IntegerSnap) { valstr.Printf(wxT("%g"), _value); } else { valstr.Printf(wxT("%.8f"), _value); } } return valstr; } void SliderBar::set_bg_color (const wxColour & col) { _bgcolor = col; _bgbrush.SetColour (col); SetBackgroundColour (col); do_redraw(); } void SliderBar::set_text_color (const wxColour & col) { _textcolor = col; do_redraw(); } void SliderBar::set_border_color (const wxColour & col) { _bordercolor = col; _borderbrush.SetColour (col); do_redraw(); } void SliderBar::set_indicator_bar_color (const wxColour & col) { _indcolor = col; _indbrush.SetColour (col); do_redraw(); } void SliderBar::set_indicator_max_bar_color (const wxColour & col) { _indmaxcolor = col; _indmaxbrush.SetColour (col); do_redraw(); } void SliderBar::set_bar_color (const wxColour & col) { _barcolor = col; _barbrush.SetColour (col); do_redraw(); } void SliderBar::update_size() { GetClientSize(&_width, &_height); if (_width > 0 && _height > 0) { _val_scale = (_upper_bound - _lower_bound) / (_width); _memdc.SelectObject (wxNullBitmap); if (_backing_store) { delete _backing_store; } _backing_store = new wxBitmap(_width, _height); _memdc.SelectObject(*_backing_store); _memdc.SetFont(GetFont()); _inddc.SelectObject (wxNullBitmap); if (_indbm) { delete _indbm; } _indbm = new wxBitmap(_width, _height); _inddc.SelectObject(*_indbm); } } void SliderBar::OnSize(wxSizeEvent & event) { update_size(); do_redraw(); event.Skip(); } void SliderBar::do_redraw () { if (!_backing_store) { return; } draw_area(_memdc); Refresh(false); } void SliderBar::OnPaint(wxPaintEvent & event) { wxPaintDC pdc(this); //draw_area(_memdc); if (_show_ind_bar) { // first blit memdc into the inddc _inddc.Blit(0, 0, _width, _height, &_memdc, 0, 0); // draw the indicator draw_ind (_inddc); // final blit pdc.Blit(0, 0, _width, _height, &_inddc, 0, 0); } else { pdc.Blit(0, 0, _width, _height, &_memdc, 0, 0); } } void SliderBar::OnMouseEvents (wxMouseEvent &ev) { if (!IsEnabled()) { ev.Skip(); return; } if (ev.Entering() && !_dragging) { _barbrush.SetColour(_overbarcolor); do_redraw(); } else if (ev.Leaving() && !_dragging) { _barbrush.SetColour(_barcolor); do_redraw(); } if (ev.Dragging() && _dragging) { int delta = ev.GetX() - _last_x; float fdelta = delta * _val_scale; if (ev.ControlDown()) { fdelta *= 0.5f; if (ev.ShiftDown()) { fdelta *= 0.5f; } } float newval = _value + fdelta; //cerr << "dragging: " << ev.GetX() << " " << delta << " " << fdelta << " " << newval << endl; if (_snap_mode == IntegerSnap) { newval = nearbyintf (newval); } newval = max (min (newval, _upper_bound), _lower_bound); if (newval != _value) { _value = newval; value_changed (get_value()); // emit update_value_str(); do_redraw(); //cerr << "new val is: " << _value << endl; _last_x = ev.GetX(); } } else if (ev.Moving()) { // do nothing } else if (ev.GetEventType() == wxEVT_MOUSEWHEEL) { float fscale = 0.02f * (ev.ControlDown() ? 0.5f: 1.0f); float newval; if (_snap_mode == IntegerSnap) { newval = _value + ((ev.GetWheelRotation() > 0) ? 1 : -1); } else { if (ev.GetWheelRotation() > 0) { newval = _value + (_upper_bound - _lower_bound) * fscale; } else { newval = _value - (_upper_bound - _lower_bound) * fscale; } } if (_snap_mode == IntegerSnap) { newval = nearbyintf (newval); } newval = max (min (newval, _upper_bound), _lower_bound); _value = newval; value_changed (get_value()); // emit update_value_str(); do_redraw(); } else if (ev.RightDown()) { this->PopupMenu ( _popup_menu, ev.GetX(), ev.GetY()); } else if (ev.RightUp()) { //this->PopupMenu ( _popup_menu, ev.GetX(), ev.GetY()); } else if (ev.ButtonDown()) { CaptureMouse(); _dragging = true; _last_x = ev.GetX(); pressed(); // emit if (ev.MiddleDown() && !ev.ControlDown()) { // set immediately float newval = (ev.GetX() * _val_scale) + _lower_bound; if (_snap_mode == IntegerSnap) { newval = nearbyintf (newval); } _value = newval; value_changed (get_value()); // emit update_value_str(); do_redraw(); } else if (ev.LeftDown() && ev.ShiftDown()) { // set to default _value = max (min (_default_val, _upper_bound), _lower_bound); value_changed(get_value()); update_value_str(); do_redraw(); } } else if (ev.ButtonUp()) { if (_dragging) { ReleaseMouse(); } _dragging = false; if (_use_pending) { // This didn't really work //if (_pending_val != _value) { // _value = _pending_val; // update_value_str(); //} _use_pending = false; } if (ev.GetX() >= _width || ev.GetX() < 0 || ev.GetY() < 0 || ev.GetY() > _height) { _barbrush.SetColour(_barcolor); do_redraw(); } else { _barbrush.SetColour(_overbarcolor); do_redraw(); } if (ev.MiddleUp() && ev.ControlDown()) { // binding click bind_request(); // emit } released(); // emit } else if (ev.ButtonDClick()) { // this got annoying //show_text_ctrl (); } else { ev.Skip(); } } void SliderBar::on_menu_events (wxCommandEvent &ev) { if (ev.GetId() == ID_BindMenuOp) { bind_request(); // emit } else if (ev.GetId() == ID_EditMenuOp) { show_text_ctrl (); } else if (ev.GetId() == ID_DefaultMenuOp) { _value = max (min (_default_val, _upper_bound), _lower_bound); value_changed(get_value()); update_value_str(); do_redraw(); } } void SliderBar::draw_area(wxDC & dc) { wxCoord w,h; int pixw; dc.SetBackground(_bgbrush); dc.Clear(); dc.SetBrush(_borderbrush); dc.SetPen(_borderpen); dc.DrawRectangle (0, 0, _width, _height); dc.SetPen(*wxTRANSPARENT_PEN); dc.SetBrush(_barbrush); if (_bar_style == FromLeftStyle) { pixw = (int) ((_value - _lower_bound) / _val_scale); dc.DrawRectangle (1, 1, pixw-1, _height-2); } else if (_bar_style == FromRightStyle) { pixw = (int) ((_upper_bound - _value) / _val_scale); dc.DrawRectangle (pixw, 1, _width - pixw - 1, _height-2); } if (_bar_style != HiddenStyle) { dc.SetBrush(_linebrush); pixw = (int) ((_value - _lower_bound) / _val_scale); dc.DrawRectangle (pixw - 1, 1, 2, _height-2); } dc.SetTextForeground(_textcolor); dc.GetTextExtent(_label_str, &w, &h); dc.DrawText (_label_str, 3, _height - h - 3); if (_showval_flag) { dc.SetTextForeground(_valuecolor); dc.GetTextExtent(_value_str, &w, &h); dc.DrawText (_value_str, _width - w - 3, _height - h - 3); } } void SliderBar::draw_ind(wxDC & dc) { int pixw; dc.SetPen(*wxTRANSPARENT_PEN); if (_bar_style == FromLeftStyle) { pixw = (int) ((_ind_value - _lower_bound) / _val_scale); if (pixw > 0) { if (_ind_value >= _upper_bound) { dc.SetBrush(_indmaxbrush); } else { dc.SetBrush(_indbrush); } dc.DrawRectangle (1, 1, pixw-1, 1); dc.DrawRectangle (1, _height - 2, pixw-1, 1); } } else if (_bar_style == FromRightStyle) { pixw = (int) ((_upper_bound - _ind_value) / _val_scale); if (pixw < _width) { if (_ind_value >= _upper_bound) { dc.SetBrush(_indmaxbrush); } else { dc.SetBrush(_indbrush); } dc.DrawRectangle (pixw, 1, _width - pixw -1, 2); dc.DrawRectangle (pixw, _height - 2, _width - pixw - 1, 1); } } pixw = (int) ((_ind_value - _lower_bound) / _val_scale); if (pixw > 0) { if (_ind_value >= _upper_bound) { dc.SetBrush(_indmaxbrush); } else { dc.SetBrush(_indbrush); } dc.DrawRectangle (pixw - 2, 1, 2, _height-2); } } void SliderBar::show_text_ctrl () { wxString valstr = get_precise_value_str(); if (!_text_ctrl) { _text_ctrl = new HidingTextCtrl(this, ID_TextCtrl, valstr, wxPoint(1,1), wxSize(_width - 2, _height - 2), wxTE_PROCESS_ENTER|wxTE_RIGHT); _text_ctrl->SetName (wxT("KeyAware")); _text_ctrl->SetFont(GetFont()); } _text_ctrl->SetValue (valstr); _text_ctrl->SetSelection (-1, -1); _text_ctrl->SetSize (_width - 2, _height - 2); _text_ctrl->Show(true); _text_ctrl->SetFocus(); } void SliderBar::hide_text_ctrl () { if (_text_ctrl && _text_ctrl->IsShown()) { _text_ctrl->Show(false); SetFocus(); } } void SliderBar::on_text_event (wxCommandEvent &ev) { if (ev.GetEventType() == wxEVT_COMMAND_TEXT_ENTER) { // commit change bool good = false; bool neginf = false; double newval = 0.0; if (_scale_mode == ZeroGainMode && _text_ctrl->GetValue().Strip(wxString::both) == wxT("-inf")) { newval = 0.0; good = neginf = true; } else if (_text_ctrl->GetValue().ToDouble(&newval)) { good = true; } if (good) { if (_scale_mode == ZeroGainMode && !neginf) { newval = DB_CO(newval); } set_value ((float) newval); value_changed (get_value()); // emit } hide_text_ctrl(); } } BEGIN_EVENT_TABLE(SliderBar::HidingTextCtrl, wxTextCtrl) EVT_KILL_FOCUS (SliderBar::HidingTextCtrl::on_focus_event) END_EVENT_TABLE() void SliderBar::HidingTextCtrl::on_focus_event (wxFocusEvent & ev) { if (ev.GetEventType() == wxEVT_KILL_FOCUS) { Show(false); } ev.Skip(); } sooperlooper-1.7.3~dfsg0/src/gui/latency_panel.cpp0000644000175000017500000002433512230252703020736 0ustar miramira/* ** Copyright (C) 2006 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include #include #include "main_panel.hpp" #include "latency_panel.hpp" #include "loop_control.hpp" #include "spin_box.hpp" using namespace SooperLooperGui; using namespace std; enum { ID_AutoCheck = 8000, ID_InputLatency, ID_OutputLatency, ID_UpdateTimer, ID_AutoDisableCheck, ID_RoundTempoInteger, ID_JackTimebaseMaster, ID_UseMidiStart, ID_UseMidiStop, ID_SendMidiStartOnTrigger, ID_OutputClockCheck }; BEGIN_EVENT_TABLE(SooperLooperGui::LatencyPanel, wxPanel) EVT_CHECKBOX (ID_AutoCheck, SooperLooperGui::LatencyPanel::on_check) EVT_CHECKBOX (ID_AutoDisableCheck, SooperLooperGui::LatencyPanel::on_check) EVT_CHECKBOX (ID_RoundTempoInteger, SooperLooperGui::LatencyPanel::on_check) EVT_CHECKBOX (ID_JackTimebaseMaster, SooperLooperGui::LatencyPanel::on_check) EVT_CHECKBOX (ID_UseMidiStart, SooperLooperGui::LatencyPanel::on_check) EVT_CHECKBOX (ID_UseMidiStop, SooperLooperGui::LatencyPanel::on_check) EVT_CHECKBOX (ID_SendMidiStartOnTrigger, SooperLooperGui::LatencyPanel::on_check) EVT_CHECKBOX(ID_OutputClockCheck, SooperLooperGui::LatencyPanel::on_check) EVT_TIMER(ID_UpdateTimer, SooperLooperGui::LatencyPanel::OnUpdateTimer) EVT_SIZE (SooperLooperGui::LatencyPanel::onSize) EVT_PAINT (SooperLooperGui::LatencyPanel::onPaint) END_EVENT_TABLE() // ctor(s) LatencyPanel::LatencyPanel(MainPanel * mainpan, wxWindow * parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style , const wxString& name) : wxPanel (parent, id, pos, size, style, name), _parent (mainpan) { _justResized = false; _do_request = false; init(); } LatencyPanel::~LatencyPanel() { } void LatencyPanel::onSize(wxSizeEvent &ev) { _justResized = true; ev.Skip(); } void LatencyPanel::onPaint(wxPaintEvent &ev) { if (_justResized) { _justResized = false; } ev.Skip(); } void LatencyPanel::OnUpdateTimer(wxTimerEvent &ev) { // refresh state if visible if (_do_request) { LoopControl & lcontrol = _parent->get_loop_control(); lcontrol.request_control_value(0, wxT("input_latency")); lcontrol.request_control_value(0, wxT("output_latency")); lcontrol.request_control_value(0, wxT("autoset_latency")); lcontrol.request_global_control_value(wxT("auto_disable_latency")); lcontrol.request_global_control_value(wxT("jack_timebase_master")); //lcontrol.request_global_control_value(wxT("use_midi_start")); //lcontrol.request_global_control_value(wxT("use_midi_stop")); _do_request = false; _update_timer->Start(200, true); return; } if (IsShown()) { // this test doesn't work //cerr << "refreshing" << endl; refresh_state(); } _update_timer->Start(5000, true); } void LatencyPanel::init() { wxBoxSizer * topsizer = new wxBoxSizer(wxVERTICAL); wxStaticBox * shotBox = new wxStaticBox(this, -1, wxT("Latency Compensation"), wxDefaultPosition, wxDefaultSize); wxStaticBoxSizer * colsizer = new wxStaticBoxSizer(shotBox, wxVERTICAL); _auto_check = new wxCheckBox(this, ID_AutoCheck, wxT("Automatically set Latency Compensation Values")); colsizer->Add (_auto_check, 0, wxEXPAND|wxALL, 12); wxBoxSizer * rowsizer = new wxBoxSizer(wxHORIZONTAL); _input_spin = new SpinBox(this, ID_InputLatency, 0.0f, 100000.0f, 512.0f, false, wxDefaultPosition, wxSize(200, 35)); _input_spin->set_units(wxT("samples")); _input_spin->set_label(wxT(" Input Latency")); _input_spin->set_snap_mode (SpinBox::IntegerSnap); _input_spin->set_allow_outside_bounds(false); //_input_spin->SetFont (sliderFont); _input_spin->set_decimal_digits(0); _input_spin->value_changed.connect (bind (mem_fun (*this, &LatencyPanel::on_spin_change), (int) ID_InputLatency)); rowsizer->Add (_input_spin, 1, wxLEFT|wxEXPAND, 10); _output_spin = new SpinBox(this, ID_OutputLatency, 0.0f, 100000.0f, 512.0f, false, wxDefaultPosition, wxSize(200, 35)); _output_spin->set_units(wxT("samples")); _output_spin->set_label(wxT(" Output Latency")); _output_spin->set_snap_mode (SpinBox::IntegerSnap); _output_spin->set_allow_outside_bounds(false); _output_spin->set_decimal_digits(0); //_output_spin->SetFont (sliderFont); _output_spin->value_changed.connect (bind (mem_fun (*this, &LatencyPanel::on_spin_change), (int) ID_OutputLatency)); rowsizer->Add (_output_spin, 1, wxLEFT|wxRIGHT|wxEXPAND, 10); colsizer->Add (rowsizer, 0, wxEXPAND|wxALL, 6); _auto_disable_check = new wxCheckBox(this, ID_AutoDisableCheck, wxT("Automatically Disable Compensation when Monitoring Input")); colsizer->Add (_auto_disable_check, 0, wxEXPAND|wxALL, 10); topsizer->Add(colsizer, 0, wxALL|wxEXPAND, 3); topsizer->Add(1,15, 0); _round_tempo_integer_check = new wxCheckBox(this, ID_RoundTempoInteger, wxT("Round tempo to integer values on Record")); topsizer->Add (_round_tempo_integer_check, 0, wxEXPAND|wxALL, 4); _jack_timebase_master_check = new wxCheckBox(this, ID_JackTimebaseMaster, wxT("Become JACK Timebase Master (for tempo)")); topsizer->Add (_jack_timebase_master_check, 0, wxEXPAND|wxALL, 4); _use_midi_start_check = new wxCheckBox(this, ID_UseMidiStart, wxT("Trigger all loops on incoming MIDI Start Events")); topsizer->Add (_use_midi_start_check, 0, wxEXPAND|wxALL, 4); _use_midi_stop_check = new wxCheckBox(this, ID_UseMidiStop, wxT("Pause all loops on incoming MIDI Stop Events")); topsizer->Add (_use_midi_stop_check, 0, wxEXPAND|wxALL, 4); _output_clock_check = new wxCheckBox(this, ID_OutputClockCheck, wxT("Output MIDI Clock")); topsizer->Add(_output_clock_check, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 3); _send_midi_start_on_trigger_check = new wxCheckBox(this, ID_SendMidiStartOnTrigger, wxT("Send MIDI Start Event on Trigger")); topsizer->Add (_send_midi_start_on_trigger_check, 0, wxEXPAND|wxALL, 4); _update_timer = new wxTimer(this, ID_UpdateTimer); _update_timer->Start(5000, true); refresh_state(); this->SetAutoLayout( true ); // tell dialog to use sizer this->SetSizer( topsizer ); // actually set the sizer //topsizer->Fit( this ); // set size to minimum size as calculated by the sizer //topsizer->SetSizeHints( this ); // set size hints to honour mininum size } void LatencyPanel::refresh_state() { float retval; LoopControl & lcontrol = _parent->get_loop_control(); if (lcontrol.get_value (0, wxT("autoset_latency"), retval)) { _auto_check->SetValue(retval > 0.0f); } if (lcontrol.get_global_value (wxT("auto_disable_latency"), retval)) { _auto_disable_check->SetValue(retval > 0.0f); } if (lcontrol.get_value (0, wxT("input_latency"), retval)) { _input_spin->set_value (retval); if (_auto_check->GetValue()) { _input_spin->set_default_value(retval); } } if (lcontrol.get_value (0, wxT("output_latency"), retval)) { _output_spin->set_value (retval); if (_auto_check->GetValue()) { _output_spin->set_default_value(retval); } } if (lcontrol.get_value (0, wxT("round_integer_tempo"), retval)) { _round_tempo_integer_check->SetValue(retval > 0.0f); } if (lcontrol.get_global_value (wxT("jack_timebase_master"), retval)) { _jack_timebase_master_check->SetValue(retval > 0.0f); } if (lcontrol.get_global_value (wxT("use_midi_start"), retval)) { _use_midi_start_check->SetValue(retval > 0.0f); } if (lcontrol.get_global_value (wxT("use_midi_stop"), retval)) { _use_midi_stop_check->SetValue(retval > 0.0f); } if (lcontrol.get_global_value (wxT("send_midi_start_on_trigger"), retval)) { _send_midi_start_on_trigger_check->SetValue(retval > 0.0f); } if (_parent->get_loop_control().get_global_value(wxT("output_midi_clock"), retval)) { _output_clock_check->SetValue(retval > 0.0f ? true : false); } if (_auto_check->GetValue()) { _input_spin->Enable(false); _output_spin->Enable(false); } else { _input_spin->Enable(true); _output_spin->Enable(true); } } void LatencyPanel::on_check (wxCommandEvent &ev) { // set state of autoset for all loops LoopControl & lcontrol = _parent->get_loop_control(); if (ev.GetId() == ID_AutoCheck) { lcontrol.post_ctrl_change (-1, wxT("autoset_latency"), _auto_check->GetValue() ? 1.0f : 0.0f); } else if (ev.GetId() == ID_RoundTempoInteger) { lcontrol.post_ctrl_change (-1, wxT("round_integer_tempo"), _round_tempo_integer_check->GetValue() ? 1.0f : 0.0f); } else if (ev.GetId() == ID_JackTimebaseMaster) { lcontrol.post_ctrl_change (-2, wxT("jack_timebase_master"), _jack_timebase_master_check->GetValue() ? 1.0f : 0.0f); } else if (ev.GetId() == ID_UseMidiStart) { lcontrol.post_global_ctrl_change (wxT("use_midi_start"), _use_midi_start_check->GetValue() ? 1.0f : 0.0f); } else if (ev.GetId() == ID_UseMidiStop) { lcontrol.post_global_ctrl_change (wxT("use_midi_stop"), _use_midi_stop_check->GetValue() ? 1.0f : 0.0f); } else if (ev.GetId() == ID_SendMidiStartOnTrigger) { lcontrol.post_global_ctrl_change (wxT("send_midi_start_on_trigger"), _send_midi_start_on_trigger_check->GetValue() ? 1.0f : 0.0f); } else if (ev.GetId() == ID_OutputClockCheck) { lcontrol.post_global_ctrl_change(wxT("output_midi_clock"), _output_clock_check->GetValue() ? 1.0f : 0.0f); } else { lcontrol.post_ctrl_change (-2, wxT("auto_disable_latency"), _auto_disable_check->GetValue() ? 1.0f : 0.0f); } _do_request = true; _update_timer->Start(200, true); } void LatencyPanel::on_spin_change (float value, int id) { LoopControl & lcontrol = _parent->get_loop_control(); // set for all loops if (id == ID_InputLatency) { lcontrol.post_ctrl_change (-1, wxT("input_latency"), value); } else { lcontrol.post_ctrl_change (-1, wxT("output_latency"), value); } } sooperlooper-1.7.3~dfsg0/src/gui/help_window.cpp0000644000175000017500000001023111754453700020437 0ustar miramira/* ** Copyright (C) 2002 Jesse Chappell ** ** This program 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. ** */ #if HAVE_CONFIG_H #include #endif #include #include #include #include "help_window.hpp" using namespace SooperLooperGui; using namespace std; HelpWindowHtmlWin::HelpWindowHtmlWin (wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name) : wxHtmlWindow(parent, id, pos, size, style, name) { } void HelpWindowHtmlWin::OnLinkClicked(const wxHtmlLinkInfo& link) { // takes an URL and directs the browser to show it wxString cmdstr; #ifndef WIN32 //if (!browseToUrl(link.GetHref())) { // system specific hack workaround #ifdef __WXMAC__ cmdstr = wxString::Format(wxT("open %s"), link.GetHref().c_str()); #else cmdstr = wxString::Format(wxT("gnome-moz-remote --newwin '%s' &"), link.GetHref().c_str()); #endif //} #else // windows has its own special way cmdstr = wxString::Format(wxT("rundll32 url.dll,FileProtocolHandler %s"), link.GetHref().c_str()); #endif std::system((const char *) cmdstr.ToAscii()); } bool HelpWindowHtmlWin::browseToUrl(const wxString& url) { // Not convinced this works at all. Got from wx-dev mailing list. wxFileType *ft = wxTheMimeTypesManager->GetFileTypeFromExtension(wxT("html")); if ( !ft ) { //wxLogError(_T("Impossible to determine the file type for extension html. Please edit your MIME types.")); return false; } wxString cmd; bool ok = ft->GetOpenCommand(&cmd, wxFileType::MessageParameters(url, _T(""))); delete ft; if (!ok) { // TODO: some kind of configuration dialog here. //wxMessageBox(_("Could not determine the command for running the browser."), // wxT("Browsing problem"), wxOK|wxICON_EXCLAMATION); return false; } // GetOpenCommand can prepend file:// even if it already has http:// if (cmd.Find(wxT("http://")) != -1) cmd.Replace(wxT("file://"), wxT("")); ok = (wxExecute(cmd, FALSE) != 0); return ok; } BEGIN_EVENT_TABLE(SooperLooperGui::HelpWindow, wxFrame) EVT_CLOSE(SooperLooperGui::HelpWindow::on_close) END_EVENT_TABLE() HelpWindow::HelpWindow(wxWindow * parent, wxWindowID id, const wxString & title, const wxPoint& pos, const wxSize& size, long style, const wxString& name) : wxFrame(parent, id, title, pos, size, style, name) { init(); } HelpWindow::~HelpWindow() { } void HelpWindow::init() { wxBoxSizer * mainsizer = new wxBoxSizer(wxVERTICAL); _htmlWin = new HelpWindowHtmlWin(this, -1, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER|wxHW_SCROLLBAR_AUTO); mainsizer->Add (_htmlWin, 1, wxALL|wxEXPAND, 4); SetAutoLayout( TRUE ); mainsizer->Fit( this ); mainsizer->SetSizeHints( this ); SetSizer( mainsizer ); const int sizes[] = {7, 8, 10, 12, 16, 22, 30}; _htmlWin->SetFonts(wxT(""), wxT(""), sizes); // just show nothing for now // wxString helppath = wxString(wxT(HELP_HTML_PATH)) + wxFileName::GetPathSeparator() + wxString(wxT("usagehelp.html")); // if (wxFile::Access(helppath, wxFile::read)) // { // _htmlWin->LoadPage(helppath); // } // else { _htmlWin->SetPage(wxString(wxT("Currently, online documentation may found on the web at http://essej.net/sooperlooper/"))); // } this->SetSizeHints(200,100); this->SetSize(500,200); } void HelpWindow::on_close (wxCloseEvent &ev) { if (!ev.CanVeto()) { Destroy(); } else { ev.Veto(); Show(false); } } sooperlooper-1.7.3~dfsg0/src/gui/._pix_button.cpp0000644000175000017500000000025312274257554020542 0ustar miramiraMac OS X  2y«ATTR«œœcom.apple.TextEncodingutf-8;134217984sooperlooper-1.7.3~dfsg0/src/gui/._keyboard_target.hpp0000644000175000017500000000025312271475574021523 0ustar miramiraMac OS X  2y«ATTR«œœcom.apple.TextEncodingutf-8;134217984sooperlooper-1.7.3~dfsg0/src/gui/keys_panel.cpp0000644000175000017500000001371212271475435020265 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include #include #include #include "main_panel.hpp" #include "keys_panel.hpp" #include "keyboard_target.hpp" using namespace SooperLooperGui; using namespace std; enum { ID_ListCtrl = 8000, ID_LearnButton }; BEGIN_EVENT_TABLE(SooperLooperGui::KeysPanel, wxPanel) EVT_LIST_ITEM_ACTIVATED (ID_ListCtrl, SooperLooperGui::KeysPanel::item_activated) EVT_BUTTON (ID_LearnButton, SooperLooperGui::KeysPanel::on_button) EVT_SIZE (SooperLooperGui::KeysPanel::onSize) EVT_PAINT (SooperLooperGui::KeysPanel::onPaint) END_EVENT_TABLE() static int wxCALLBACK list_sort_callback (long item1, long item2, long sortData) { wxListCtrl * lctrl = (wxListCtrl * )sortData; wxListItem i1, i2; i1.SetId(item1); i2.SetId(item2); lctrl->GetItem(i1); lctrl->GetItem(i2); return i1.GetText().compare(i2.GetText()); } // ctor(s) KeysPanel::KeysPanel(MainPanel * mainpan, wxWindow * parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style , const wxString& name) : wxPanel (parent, id, pos, size, style, name), _parent (mainpan) { _justResized = false; init(); } KeysPanel::~KeysPanel() { } void KeysPanel::onSize(wxSizeEvent &ev) { _justResized = true; ev.Skip(); } void KeysPanel::onPaint(wxPaintEvent &ev) { if (_justResized) { int width,height, cwidth; _justResized = false; _listctrl->GetClientSize(&width, &height); cwidth = _listctrl->GetColumnWidth(0); _listctrl->SetColumnWidth(1, width-cwidth); } ev.Skip(); } void KeysPanel::init() { wxBoxSizer * topsizer = new wxBoxSizer(wxVERTICAL); wxSystemOptions::SetOption(wxT("mac.listctrl.always_use_generic"), 1); _listctrl = new wxListCtrl(this, ID_ListCtrl, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER); _listctrl->InsertColumn(0, wxT("Command")); _listctrl->InsertColumn(1, wxT("Key Binding")); _listctrl->SetColumnWidth(0, 120); topsizer->Add (_listctrl, 1, wxEXPAND|wxALL, 4); wxBoxSizer * buttsizer = new wxBoxSizer(wxHORIZONTAL); _learn_button = new wxButton (this, ID_LearnButton, wxT("Learn Selected"), wxDefaultPosition, wxSize(120, -1)); buttsizer->Add (_learn_button, 1, wxALL, 3); //buttsizer->Add (1,1, 1, wxALL, 0); topsizer->Add (buttsizer, 0, wxEXPAND|wxALL, 1); _parent->get_keyboard().LearningStopped.connect (mem_fun (*this, &KeysPanel::learning_stopped)); refresh_state(); this->SetAutoLayout( true ); // tell dialog to use sizer this->SetSizer( topsizer ); // actually set the sizer //topsizer->Fit( this ); // set size to minimum size as calculated by the sizer //topsizer->SetSizeHints( this ); // set size hints to honour mininum size } void KeysPanel::refresh_state() { int selitem = (int) _listctrl->GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); _listctrl->DeleteAllItems(); wxListItem item; item.SetMask (wxLIST_MASK_TEXT|wxLIST_MASK_DATA); item.SetColumn(0); //item.SetWidth(wxLIST_AUTOSIZE); KeyboardTarget::ActionNameList alist; KeyboardTarget & keyb = _parent->get_keyboard(); keyb.get_action_names (alist); int itemid = 0; for (KeyboardTarget::ActionNameList::iterator actname = alist.begin(); actname != alist.end(); ++actname) { item.SetId(itemid++); item.SetColumn(0); item.SetText (wxString::FromAscii (actname->c_str())); //item.SetData ((unsigned) ); _listctrl->InsertItem (item); item.SetColumn(1); item.SetText (wxString::FromAscii (keyb.get_binding (*actname).c_str())); if (item.GetText() == wxT(" ")) { item.SetText (wxT("SPACE")); } _listctrl->SetItem (item); } _listctrl->SortItems (list_sort_callback, (long) _listctrl); if (selitem >= 0) { _listctrl->EnsureVisible(selitem); _listctrl->SetItemState (selitem, wxLIST_STATE_SELECTED, wxLIST_MASK_STATE); } } void KeysPanel::on_button (wxCommandEvent &ev) { if (ev.GetId() == ID_LearnButton) { if (_parent->get_keyboard().is_learning()) { // cancel learn _parent->get_keyboard().stop_learning (true); _parent->get_keyboard().set_enabled(false); } else { // start learn selected int item = (int) _listctrl->GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); if (item > -1) { _learn_button->SetLabel (wxT("Cancel Learn")); _learn_button->SetForegroundColour (*wxRED); _parent->get_keyboard().set_enabled(true); _parent->get_keyboard().start_learning (string((const char *)_listctrl->GetItemText(item).ToAscii())); //cerr << "start learning" << endl; } } } else { ev.Skip(); } } void KeysPanel::item_activated (wxListEvent & ev) { // cerr << "item " << ev.GetText() << " activated" << endl; KeyboardTarget & keyb = _parent->get_keyboard(); _learn_button->SetLabel (wxT("Cancel Learn")); _learn_button->SetForegroundColour (*wxRED); keyb.set_enabled(true); keyb.start_learning ((const char *)ev.GetText().ToAscii()); } void KeysPanel::learning_stopped () { // cerr << "learning stopped " << endl; _learn_button->SetLabel (wxT("Learn Selected")); _learn_button->SetForegroundColour (*wxBLACK); KeyboardTarget & keyb = _parent->get_keyboard(); keyb.set_enabled(false); refresh_state(); _listctrl->SetFocus(); } sooperlooper-1.7.3~dfsg0/src/gui/config_panel.hpp0000644000175000017500000000456412230252703020553 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_config_panel__ #define __sooperlooper_config_panel__ #include #include #include #include #include class wxListCtrl; class wxSpinCtrl; namespace SooperLooperGui { class MainPanel; class KeyboardTarget; class ConfigPanel : public wxPanel, public sigc::trackable { public: // ctor(s) ConfigPanel(MainPanel * mainpan, wxWindow * parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(400,600), long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxT("ConfigPanel")); virtual ~ConfigPanel(); void refresh_state(); void refresh_defaults(); void commit_changes(); void looper_connected(int); protected: void init(); void on_button (wxCommandEvent &ev); wxTextCtrl * _host_text; wxTextCtrl * _port_text; wxTextCtrl * _status_text; wxCheckBox * _force_spawn; wxCheckBox * _shutdown_check; wxButton * _disconnect_button; wxButton * _connect_button; wxTextCtrl * _def_host_text; wxTextCtrl * _def_port_text; wxCheckBox * _def_force_spawn; wxTextCtrl * _def_midi_bind_text; wxButton * _midi_browse_button; wxTextCtrl * _def_session_text; wxButton * _session_browse_button; wxTextCtrl * _def_jack_name_text; wxSpinCtrl * _num_loops_spin; wxSpinCtrl * _num_channels_spin; wxSpinCtrl * _secs_per_channel_spin; wxCheckBox * _discrete_io_check; wxButton * _commit_button; MainPanel * _parent; private: // any class wishing to process wxWindows events must use this macro DECLARE_EVENT_TABLE() }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/looper_panel.cpp0000644000175000017500000015714712230252703020607 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include #include #include #include "main_panel.hpp" #include "keyboard_target.hpp" #include "looper_panel.hpp" #include "pix_button.hpp" #include "loop_control.hpp" #include "time_panel.hpp" #include "slider_bar.hpp" #include "choice_box.hpp" #include "check_box.hpp" #include "spin_box.hpp" #include "pixmap_includes.hpp" #include using namespace SooperLooper; using namespace SooperLooperGui; using namespace std; enum { ID_UndoButton = 8000, ID_RedoButton, ID_RecordButton, ID_OverdubButton, ID_MultiplyButton, ID_InsertButton, ID_ReplaceButton, ID_TapButton, ID_ReverseButton, ID_SubstituteButton, ID_MuteButton, ID_PauseButton, ID_SoloButton, ID_RateButton, ID_ScratchButton, ID_LoadButton, ID_SaveButton, ID_OnceButton, ID_TrigButton, ID_OneXButton, ID_HalfXButton, ID_DoubleXButton, ID_ThreshControl, ID_FeedbackControl, ID_DryControl, ID_WetControl, ID_ScratchControl, ID_RateControl, ID_StretchControl, ID_PitchControl, ID_InputGainControl, ID_InputLatency, ID_OutputLatency, ID_TriggerLatency, ID_QuantizeCheck, ID_QuantizeChoice, ID_RoundCheck, ID_SyncCheck, ID_UseFeedbackPlayCheck, ID_TempoStretchCheck, ID_PlaySyncCheck, ID_UseMainInCheck, ID_Panner, ID_FlashTimer }; enum { FlashRate = 200 }; BEGIN_EVENT_TABLE(LooperPanel, wxPanel) EVT_TIMER(ID_FlashTimer, LooperPanel::on_flash_timer) END_EVENT_TABLE() LooperPanel::LooperPanel(MainPanel * mainpan, LoopControl * control, wxWindow * parent, wxWindowID id, const wxPoint& pos, const wxSize& size) : wxPanel(parent, id, pos, size), _loop_control(control), _index(0), _last_state(LooperStateUnknown), _tap_val(1.0f) { _mainpanel = mainpan; _learning = false; _scratch_pressed = false; _last_state = LooperStateUnknown; _chan_count = 0; _panners = 0; _has_discrete_io = false; _waiting = 0; _flashing_button = 0; _flash_timer = new wxTimer(this, ID_FlashTimer); init(); } LooperPanel::~LooperPanel() { } void LooperPanel::init() { SetBackgroundColour (*wxBLACK); SetThemeEnabled(false); wxBoxSizer * mainSizer = new wxBoxSizer(wxHORIZONTAL); wxBoxSizer * mainVSizer = new wxBoxSizer(wxVERTICAL); wxBoxSizer * colsizer = new wxBoxSizer(wxVERTICAL); wxBoxSizer * rowsizer; // add selbar _bgcolor.Set(0,0,0); _selbgcolor.Set(244, 255, 158); _learnbgcolor.Set(134, 80, 158); _leftSelbar = new wxPanel(this, -1, wxDefaultPosition, wxSize(4,-1)); _leftSelbar->SetThemeEnabled(false); _leftSelbar->SetBackgroundColour (_bgcolor); _rightSelbar = new wxPanel(this, -1, wxDefaultPosition, wxSize(4,-1)); _rightSelbar->SetThemeEnabled(false); _rightSelbar->SetBackgroundColour (_bgcolor); _topSelbar = new wxPanel(this, -1, wxDefaultPosition, wxSize(-1,4)); _topSelbar->SetThemeEnabled(false); _topSelbar->SetBackgroundColour (_bgcolor); _bottomSelbar = new wxPanel(this, -1, wxDefaultPosition, wxSize(-1,4)); _bottomSelbar->SetThemeEnabled(false); _bottomSelbar->SetBackgroundColour (_bgcolor); mainVSizer->Add (_topSelbar, 0, wxEXPAND|wxBOTTOM|wxLEFT, 0); mainSizer->Add (_leftSelbar, 0, wxEXPAND|wxBOTTOM|wxLEFT, 0); // create all buttons first, then add them to sizers // must do this because the bitmaps need to be loaded // before adding to sizer create_buttons(); int edgegap = 0; colsizer->Add (_undo_button, 0, 0, 0); colsizer->Add (_redo_button, 0, wxTOP, 5); mainSizer->Add (colsizer, 0, wxEXPAND|wxLEFT, 5); colsizer = new wxBoxSizer(wxVERTICAL); colsizer->Add (_record_button, 0, wxLEFT, 5); colsizer->Add (_overdub_button, 0, wxTOP|wxLEFT, 5); colsizer->Add (_multiply_button, 0, wxTOP|wxLEFT, 5); mainSizer->Add (colsizer, 0, wxEXPAND|wxBOTTOM, 0); colsizer = new wxBoxSizer(wxVERTICAL); _maininsizer = new wxBoxSizer(wxHORIZONTAL); SliderBar *slider; wxFont sliderFont = *wxSMALL_FONT; //cerr << "looper frame small: " << sliderFont.GetPointSize() << endl; wxBoxSizer * inthresh_sizer = new wxBoxSizer(wxHORIZONTAL); _in_gain_control = slider = new SliderBar(this, ID_InputGainControl, 0.0f, 1.0f, 0.0f); slider->set_units(wxT("")); slider->set_label(wxT("in gain")); slider->set_show_indicator_bar (false); slider->set_scale_mode(SliderBar::ZeroGainMode); slider->SetFont(sliderFont); slider->value_changed.connect (bind (mem_fun (*this, &LooperPanel::slider_events), (int) slider->GetId())); slider->bind_request.connect (bind (mem_fun (*this, &LooperPanel::control_bind_events), (int) slider->GetId())); inthresh_sizer->Add (slider, 1, wxALL|wxEXPAND, 0); _thresh_control = slider = new SliderBar(this, ID_ThreshControl, 0.0f, 1.0f, 0.0f); slider->set_units(wxT("")); slider->set_label(wxT("thresh")); slider->set_show_indicator_bar (true); slider->set_scale_mode(SliderBar::ZeroGainMode); slider->SetFont(sliderFont); slider->value_changed.connect (bind (mem_fun (*this, &LooperPanel::slider_events), (int) slider->GetId())); slider->bind_request.connect (bind (mem_fun (*this, &LooperPanel::control_bind_events), (int) slider->GetId())); inthresh_sizer->Add (slider, 1, wxLEFT|wxEXPAND, 3); colsizer->Add (inthresh_sizer, 1, wxEXPAND|wxLEFT, 5); _feedback_control = slider = new SliderBar(this, ID_FeedbackControl, 0.0f, 100.0f, 100.0f); slider->set_units(wxT("%")); slider->set_label(wxT("feedback")); slider->SetFont(sliderFont); slider->value_changed.connect (bind (mem_fun (*this, &LooperPanel::slider_events), (int) slider->GetId())); slider->bind_request.connect (bind (mem_fun (*this, &LooperPanel::control_bind_events), (int) slider->GetId())); _maininsizer->Add (slider, 1, wxEXPAND|wxTOP, 5); // mainin check added later _use_main_in_check = 0; colsizer->Add (_maininsizer, 1, wxEXPAND|wxLEFT, 5); //colsizer->Add (20, 5, 0, wxEXPAND); rowsizer = new wxBoxSizer(wxHORIZONTAL); rowsizer->Add (_replace_button, 0, wxTOP|wxLEFT, 5); rowsizer->Add (_insert_button, 0, wxTOP|wxLEFT, 5); colsizer->Add (rowsizer, 0); rowsizer = new wxBoxSizer(wxHORIZONTAL); rowsizer->Add (_substitute_button, 0, wxTOP|wxLEFT, 5); //_reverse_button->Show(false); rowsizer->Add (_delay_button, 0, wxTOP|wxLEFT, 5); colsizer->Add (rowsizer, 0); mainSizer->Add (colsizer, 0, wxEXPAND, 5); // time area colsizer = new wxBoxSizer(wxVERTICAL); _time_panel = new TimePanel(_loop_control, this, -1); _time_panel->set_index (_index); colsizer->Add (_time_panel, 0, wxLEFT, 5); //colsizer->Add (20, -1, 1); _toppansizer = new wxBoxSizer(wxHORIZONTAL); // dry is added later // _dry_control = slider = new SliderBar(this, ID_DryControl, 0.0f, 1.0f, 1.0f); // slider->set_units(wxT("dB")); // slider->set_label(wxT("dry")); // slider->set_scale_mode(SliderBar::ZeroGainMode); // slider->SetFont(sliderFont); // slider->value_changed.connect (bind (mem_fun (*this, &LooperPanel::slider_events), (int) slider->GetId())); // slider->bind_request.connect (bind (mem_fun (*this, &LooperPanel::control_bind_events), (int) slider->GetId())); // _toppansizer->Add (slider, 1, wxEXPAND, 0); // panners are added later colsizer->Add (_toppansizer, 1, wxEXPAND|wxTOP|wxLEFT, 4); _botpansizer = new wxBoxSizer(wxHORIZONTAL); _wet_control = slider = new SliderBar(this, ID_WetControl, 0.0f, 1.0f, 1.0f); slider->set_units(wxT("dB")); slider->set_label(wxT("out")); slider->set_show_indicator_bar (true); slider->set_scale_mode(SliderBar::ZeroGainMode); slider->SetFont(sliderFont); slider->value_changed.connect (bind (mem_fun (*this, &LooperPanel::slider_events), (int) slider->GetId())); slider->bind_request.connect (bind (mem_fun (*this, &LooperPanel::control_bind_events), (int) slider->GetId())); _botpansizer->Add (slider, 1, wxEXPAND, 0); /* _outlatency_spin = new SpinBox(this, ID_OutputLatency, 0.0f, 32768.0f, 0.0f, true, wxDefaultPosition, wxSize(65, 20)); _outlatency_spin->set_units(wxT("")); _outlatency_spin->set_label(wxT("o.lat")); _outlatency_spin->set_snap_mode (SpinBox::IntegerSnap); _outlatency_spin->set_allow_outside_bounds(true); _outlatency_spin->value_changed.connect (bind (mem_fun (*this, &LooperPanel::slider_events), (int) _outlatency_spin->GetId())); _outlatency_spin->SetFont(sliderFont); _botpansizer->Add (_outlatency_spin, 0, wxALL, 0); _inlatency_spin = new SpinBox(this, ID_InputLatency, 0.0f, 32768.0f, 0.0f, true, wxDefaultPosition, wxSize(65, 20)); _inlatency_spin->set_units(wxT("")); _inlatency_spin->set_label(wxT("i.lat")); _inlatency_spin->set_snap_mode (SpinBox::IntegerSnap); _inlatency_spin->set_allow_outside_bounds(true); _inlatency_spin->value_changed.connect (bind (mem_fun (*this, &LooperPanel::slider_events), (int) _inlatency_spin->GetId())); _inlatency_spin->SetFont(sliderFont); _botpansizer->Add (_inlatency_spin, 0, wxALL, 0); */ colsizer->Add (_botpansizer, 1, wxEXPAND|wxTOP|wxLEFT, 4); mainSizer->Add (colsizer, 0, wxEXPAND, 5); // colsizer = new wxBoxSizer(wxVERTICAL); rowsizer = new wxBoxSizer(wxHORIZONTAL); wxBoxSizer * lilcolsizer = new wxBoxSizer(wxVERTICAL); // _quantize_choice = new ChoiceBox (this, ID_QuantizeChoice, wxDefaultPosition, wxSize (110, 22)); // _quantize_choice->set_label (wxT("quantize")); // _quantize_choice->SetFont (sliderFont); // _quantize_choice->value_changed.connect (mem_fun (*this, &LooperPanel::on_quantize_change)); // _quantize_choice->append_choice (wxT("off")); // _quantize_choice->append_choice (wxT("cycle")); // _quantize_choice->append_choice (wxT("8th")); // _quantize_choice->append_choice (wxT("loop")); // lilcolsizer->Add (_quantize_choice, 0); // _quantize_check = new wxCheckBox(this, ID_QuantizeCheck, "quantize"); // _quantize_check->SetFont(sliderFont); // _quantize_check->SetBackgroundColour(wxColour(90,90,90)); // _quantize_check->SetForegroundColour(*wxWHITE); // lilrowsizer->Add (_quantize_check, 0, wxEXPAND); wxBoxSizer * lilrowsizer = new wxBoxSizer(wxHORIZONTAL); // _round_check = new wxCheckBox(this, ID_RoundCheck, "round"); // _round_check->SetFont(sliderFont); // _round_check->SetBackgroundColour(wxColour(90,90,90)); // _round_check->SetForegroundColour(*wxWHITE); // lilrowsizer->Add (_round_check, 0, wxEXPAND); _sync_check = new CheckBox(this, ID_SyncCheck, wxT("sync"), true, wxDefaultPosition, wxSize(55, 18)); _sync_check->SetFont(sliderFont); _sync_check->SetToolTip(wxT("sync operations to quantize source")); _sync_check->value_changed.connect (bind (mem_fun (*this, &LooperPanel::check_events), wxT("sync"))); _sync_check->bind_request.connect (bind (mem_fun (*this, &LooperPanel::control_bind_events), (int) _sync_check->GetId())); lilrowsizer->Add (_sync_check, 1, wxLEFT, 3); lilcolsizer->Add (lilrowsizer, 0, wxTOP|wxEXPAND, 0); lilrowsizer = new wxBoxSizer(wxHORIZONTAL); _play_sync_check = new CheckBox(this, ID_PlaySyncCheck, wxT("play sync"), true, wxDefaultPosition, wxSize(55, 18)); _play_sync_check->SetFont(sliderFont); _play_sync_check->SetToolTip(wxT("sync playback auto-triggering to quantized sync source")); _play_sync_check->value_changed.connect (bind (mem_fun (*this, &LooperPanel::check_events), wxT("playback_sync"))); _play_sync_check->bind_request.connect (bind (mem_fun (*this, &LooperPanel::control_bind_events), (int) _play_sync_check->GetId())); lilrowsizer->Add (_play_sync_check, 1, wxLEFT, 3); lilcolsizer->Add (lilrowsizer, 0, wxTOP|wxEXPAND, 0); lilrowsizer = new wxBoxSizer(wxHORIZONTAL); _play_feed_check = new CheckBox(this, ID_UseFeedbackPlayCheck, wxT("p. feedb"), true, wxDefaultPosition, wxSize(55, 18)); _play_feed_check->SetFont(sliderFont); _play_feed_check->SetToolTip(wxT("enable feedback during playback")); _play_feed_check->value_changed.connect (bind (mem_fun (*this, &LooperPanel::check_events), wxT("use_feedback_play"))); _play_feed_check->bind_request.connect (bind (mem_fun (*this, &LooperPanel::control_bind_events), (int) _play_feed_check->GetId())); lilrowsizer->Add (_play_feed_check, 1, wxLEFT, 3); _tempo_stretch_check = new CheckBox(this, ID_TempoStretchCheck, wxT("t. stretch"), true, wxDefaultPosition, wxSize(55, 18)); _tempo_stretch_check->SetFont(sliderFont); _tempo_stretch_check->SetToolTip(wxT("enable automatic timestretch when tempo changes")); _tempo_stretch_check->value_changed.connect (bind (mem_fun (*this, &LooperPanel::check_events), wxT("tempo_stretch"))); _tempo_stretch_check->bind_request.connect (bind (mem_fun (*this, &LooperPanel::control_bind_events), (int) _tempo_stretch_check->GetId())); lilrowsizer->Add (_tempo_stretch_check, 1, wxLEFT, 3); lilcolsizer->Add (lilrowsizer, 0, wxTOP|wxEXPAND, 0); rowsizer->Add(lilcolsizer, 1, wxLEFT, 3); lilcolsizer = new wxBoxSizer(wxVERTICAL); lilcolsizer->Add (_load_button, 0, wxTOP, 0); lilcolsizer->Add (_save_button, 0, wxTOP, 2); rowsizer->Add(lilcolsizer, 0, wxLEFT, 3); lilcolsizer = new wxBoxSizer(wxVERTICAL); lilcolsizer->Add (_trig_button, 0, wxTOP, 0); lilcolsizer->Add (_once_button, 0, wxTOP, 2); rowsizer->Add(lilcolsizer, 0, wxLEFT, 3); lilcolsizer = new wxBoxSizer(wxVERTICAL); lilcolsizer->Add (_mute_button, 0, wxTOP, 0); lilcolsizer->Add (_solo_button, 0, wxTOP, 2); rowsizer->Add(lilcolsizer, 0, wxLEFT, 3); colsizer->Add (rowsizer, 0, wxEXPAND); colsizer->Add (20,-1, 1); // scratch stuff rowsizer = new wxBoxSizer(wxHORIZONTAL); rowsizer->Add (_reverse_button, 0, wxTOP|wxLEFT, 3); rowsizer->Add (_scratch_button, 0, wxTOP|wxLEFT, 3); // scratch control _scratch_control = slider = new SliderBar(this, ID_ScratchControl, 0.0f, 1.0f, 0.0f); slider->set_units(wxT("")); slider->set_label(wxT("pos")); slider->set_style (SliderBar::HiddenStyle); slider->set_decimal_digits (3); slider->set_show_value(false); slider->set_show_indicator_bar (true); slider->SetFont(sliderFont); slider->value_changed.connect (bind (mem_fun (*this, &LooperPanel::slider_events), (int) slider->GetId())); slider->bind_request.connect (bind (mem_fun (*this, &LooperPanel::control_bind_events), (int) slider->GetId())); rowsizer->Add (slider, 1, wxEXPAND|wxTOP|wxLEFT, 3); // pitch control _pitch_control = slider = new SliderBar(this, ID_PitchControl, -12.0f, 12.0f, 0.0f); slider->set_units(wxT("")); slider->set_label(wxT("pitch")); slider->set_style (SliderBar::CenterStyle); slider->set_decimal_digits (1); slider->set_snap_mode(SliderBar::IntegerSnap); slider->SetFont(sliderFont); slider->value_changed.connect (bind (mem_fun (*this, &LooperPanel::slider_events), (int) slider->GetId())); slider->bind_request.connect (bind (mem_fun (*this, &LooperPanel::control_bind_events), (int) slider->GetId())); rowsizer->Add (slider, 1, wxEXPAND|wxTOP|wxLEFT, 3); // pause rowsizer->Add (_pause_button, 0, wxTOP|wxLEFT, 3); colsizer->Add (rowsizer, 0, wxEXPAND); // rate stuff rowsizer = new wxBoxSizer(wxHORIZONTAL); rowsizer->Add (_halfx_button, 0, wxTOP|wxLEFT, 3); rowsizer->Add (_1x_button, 0, wxTOP|wxLEFT, 3); rowsizer->Add (_2x_button, 0, wxTOP|wxLEFT, 3); // rate control _rate_control = slider = new SliderBar(this, ID_RateControl, 0.25f, 4.0f, 1.0f); slider->set_units(wxT("")); slider->set_label(wxT("rate")); slider->set_style (SliderBar::CenterStyle); slider->set_decimal_digits (3); slider->SetFont(sliderFont); slider->value_changed.connect (bind (mem_fun (*this, &LooperPanel::slider_events), (int) slider->GetId())); slider->bind_request.connect (bind (mem_fun (*this, &LooperPanel::control_bind_events), (int) slider->GetId())); rowsizer->Add (slider, 1, wxEXPAND|wxTOP|wxLEFT, 3); // stretch control _stretch_control = slider = new SliderBar(this, ID_StretchControl, 0.5f, 4.0f, 1.0f); slider->set_units(wxT("")); slider->set_label(wxT("stretch")); slider->set_style (SliderBar::CenterStyle); slider->set_decimal_digits (2); slider->SetFont(sliderFont); slider->value_changed.connect (bind (mem_fun (*this, &LooperPanel::slider_events), (int) slider->GetId())); slider->bind_request.connect (bind (mem_fun (*this, &LooperPanel::control_bind_events), (int) slider->GetId())); rowsizer->Add (slider, 1, wxEXPAND|wxTOP|wxLEFT, 3); /* _triglatency_spin = new SpinBox(this, ID_TriggerLatency, 0.0f, 32768.0f, 0.0f, true, wxDefaultPosition, wxSize(65, 20)); _triglatency_spin->set_units(wxT("")); _triglatency_spin->set_label(wxT("t.lat")); _triglatency_spin->set_snap_mode (SpinBox::IntegerSnap); _triglatency_spin->set_allow_outside_bounds(true); _triglatency_spin->value_changed.connect (bind (mem_fun (*this, &LooperPanel::slider_events), (int) _triglatency_spin->GetId())); _triglatency_spin->SetFont(sliderFont); rowsizer->Add (_triglatency_spin, 0, wxALL, 0); */ colsizer->Add (rowsizer, 0, wxEXPAND|wxLEFT, 1); mainSizer->Add (colsizer, 1, wxEXPAND|wxRIGHT, 0); mainSizer->Add (_rightSelbar, 0, wxEXPAND|wxLEFT, 0); mainVSizer->Add (mainSizer, 1, wxEXPAND, 0); mainVSizer->Add (_bottomSelbar, 0, wxEXPAND|wxLEFT, 0); // add an index static text fixed position // _index_text = new wxStaticText(this, -1, wxString::Format(wxT("%d"), _index+1), wxPoint(4,4), wxDefaultSize); // _index_text->SetForegroundColour(wxColour(14, 50, 89)); // wxFont textfont(12, wxSWISS, wxNORMAL, wxBOLD); // _index_text->SetFont(textfont); // _index_text->Raise(); bind_events(); this->SetAutoLayout( true ); // tell dialog to use sizer this->SetSizer( mainVSizer ); // actually set the sizer mainVSizer->Fit( this ); // set size to minimum size as calculated by the sizer mainVSizer->SetSizeHints( this ); // set size hints to honour mininum size } void LooperPanel::post_init() { // now we have channel count SliderBar * slider; wxFont sliderFont = *wxSMALL_FONT; _panners = new SliderBar*[_chan_count]; int barwidth = _chan_count <= 4 ? 50 : 30; // without discrete i/o mains are the only option float val; if (_loop_control->get_value(_index, wxT("has_discrete_io"), val) && val != 0.0f) { _has_discrete_io = true; // dry is only meaningful with discrete io _dry_control = slider = new SliderBar(this, ID_DryControl, 0.0f, 1.0f, 1.0f); slider->set_units(wxT("dB")); slider->set_label(wxT("in mon")); slider->set_scale_mode(SliderBar::ZeroGainMode); slider->SetFont(sliderFont); slider->value_changed.connect (bind (mem_fun (*this, &LooperPanel::slider_events), (int) slider->GetId())); slider->bind_request.connect (bind (mem_fun (*this, &LooperPanel::control_bind_events), (int) slider->GetId())); _toppansizer->Add (slider, 1, wxEXPAND, 0); _use_main_in_check = new CheckBox(this, ID_UseMainInCheck, wxT("main in"), true, wxDefaultPosition, wxSize(65, 18)); _use_main_in_check->SetFont(sliderFont); _use_main_in_check->SetToolTip(wxT("mix input from Main inputs")); _use_main_in_check->value_changed.connect (bind (mem_fun (*this, &LooperPanel::check_events), wxT("use_common_ins"))); _use_main_in_check->bind_request.connect (bind (mem_fun (*this, &LooperPanel::control_bind_events), (int) _use_main_in_check->GetId())); _maininsizer->Add (_use_main_in_check, 0, wxALL|wxEXPAND|wxALIGN_CENTRE_VERTICAL ,0); _maininsizer->Layout(); _feedback_control->set_label(wxT("feedb")); } else { _has_discrete_io = false; _dry_control = 0; } for (int i=0; i < _chan_count; ++i) { float defval = 0.5f; if (_chan_count == 2) { defval = (i == 0) ? 0.0f : 1.0f; } _panners[i] = slider = new SliderBar(this, ID_Panner, 0.0f, 1.0f, defval, true, wxDefaultPosition, wxSize(barwidth,-1)); slider->set_units(wxT("")); if (_chan_count > 1) { slider->set_label(wxString::Format(wxT("pan %d"), i+1)); } else { slider->set_label(wxString::Format(wxT("pan"))); } slider->set_style (SliderBar::CenterStyle); slider->set_decimal_digits (3); slider->set_show_value (false); slider->SetFont(sliderFont); slider->value_changed.connect (bind (mem_fun (*this, &LooperPanel::pan_events), (int) i)); slider->bind_request.connect (bind (mem_fun (*this, &LooperPanel::pan_bind_events), (int) i)); if (!_has_discrete_io) { _toppansizer->Add (slider, 1, (i==0) ? wxEXPAND : wxEXPAND|wxLEFT, 2); } else if (_chan_count <= 2 || i < (int) ceil(_chan_count*0.5)) { _toppansizer->Add (slider, 0, wxEXPAND|wxLEFT, 2); } else { _botpansizer->Add (slider, 0, wxEXPAND|wxLEFT, 2); } } _toppansizer->Layout(); _botpansizer->Layout(); GetSizer()->Layout(); Refresh(false); } void LooperPanel::set_selected (bool flag) { if (flag) { _leftSelbar->SetBackgroundColour (_selbgcolor); _rightSelbar->SetBackgroundColour (_selbgcolor); _bottomSelbar->SetBackgroundColour (_selbgcolor); _topSelbar->SetBackgroundColour (_selbgcolor); //this->SetBackgroundColour (_selbgcolor); } else { _leftSelbar->SetBackgroundColour (_bgcolor); _rightSelbar->SetBackgroundColour (_bgcolor); _topSelbar->SetBackgroundColour (_bgcolor); _bottomSelbar->SetBackgroundColour (_bgcolor); //this->SetBackgroundColour (_bgcolor); } _leftSelbar->Refresh(); _rightSelbar->Refresh(); _bottomSelbar->Refresh(); _topSelbar->Refresh(); } void LooperPanel::set_index(int ind) { _index = ind; _time_panel->set_index (_index); } void LooperPanel::bind_events() { _undo_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::pressed_events), wxString(wxT("undo")))); _undo_button->released.connect (bind (mem_fun (*this, &LooperPanel::released_events), wxString(wxT("undo")))); _undo_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("undo")))); _redo_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::pressed_events), wxString(wxT("redo")))); _redo_button->released.connect (bind (mem_fun (*this, &LooperPanel::released_events), wxString(wxT("redo")))); _redo_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("redo")))); _record_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::pressed_events), wxString(wxT("record")))); _record_button->released.connect (bind (mem_fun (*this, &LooperPanel::released_events), wxString(wxT("record")))); _record_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("record")))); _overdub_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::pressed_events), wxString(wxT("overdub")))); _overdub_button->released.connect (bind (mem_fun (*this, &LooperPanel::released_events), wxString(wxT("overdub")))); _overdub_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("overdub")))); _multiply_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::pressed_events), wxString(wxT("multiply")))); _multiply_button->released.connect (bind (mem_fun (*this, &LooperPanel::released_events), wxString(wxT("multiply")))); _multiply_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("multiply")))); _replace_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::pressed_events), wxString(wxT("replace")))); _replace_button->released.connect (bind (mem_fun (*this, &LooperPanel::released_events), wxString(wxT("replace")))); _replace_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("replace")))); _insert_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::pressed_events), wxString(wxT("insert")))); _insert_button->released.connect (bind (mem_fun (*this, &LooperPanel::released_events), wxString(wxT("insert")))); _insert_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("insert")))); _once_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::pressed_events), wxString(wxT("oneshot")))); _once_button->released.connect (bind (mem_fun (*this, &LooperPanel::released_events), wxString(wxT("oneshot")))); _once_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("oneshot")))); _trig_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::pressed_events), wxString(wxT("trigger")))); _trig_button->released.connect (bind (mem_fun (*this, &LooperPanel::released_events), wxString(wxT("trigger")))); _trig_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("trigger")))); _delay_button->pressed.connect (mem_fun (*this, &LooperPanel::delay_button_press_event)); _delay_button->released.connect (mem_fun (*this, &LooperPanel::delay_button_release_event)); _delay_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("delay_trigger")))); _reverse_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::pressed_events), wxString(wxT("reverse")))); _reverse_button->released.connect (bind (mem_fun (*this, &LooperPanel::released_events), wxString(wxT("reverse")))); _reverse_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("reverse")))); _substitute_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::pressed_events), wxString(wxT("substitute")))); _substitute_button->released.connect (bind (mem_fun (*this, &LooperPanel::released_events), wxString(wxT("substitute")))); _substitute_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("substitute")))); _mute_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::pressed_events), wxString(wxT("mute")))); _mute_button->released.connect (bind (mem_fun (*this, &LooperPanel::released_events), wxString(wxT("mute")))); _mute_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("mute")))); _pause_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::pressed_events), wxString(wxT("pause")))); _pause_button->released.connect (bind (mem_fun (*this, &LooperPanel::released_events), wxString(wxT("pause")))); _pause_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("pause")))); _solo_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::pressed_events), wxString(wxT("solo")))); _solo_button->released.connect (bind (mem_fun (*this, &LooperPanel::released_events), wxString(wxT("solo")))); _solo_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("solo")))); _halfx_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::rate_button_event), 0.5f)); _halfx_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::rate_bind_events), 0.5f)); _1x_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::rate_button_event), 1.0f)); _1x_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::rate_bind_events), 1.0f)); _2x_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::rate_button_event), 2.0f)); _2x_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::rate_bind_events), 2.0f)); _scratch_button->pressed.connect (bind (mem_fun (*this, &LooperPanel::pressed_events), wxString(wxT("scratch")))); _scratch_button->released.connect (bind (mem_fun (*this, &LooperPanel::released_events), wxString(wxT("scratch")))); _scratch_button->bind_request.connect (bind (mem_fun (*this, &LooperPanel::button_bind_events), wxString(wxT("scratch")))); _save_button->clicked.connect (bind (mem_fun (*this, &LooperPanel::clicked_events), wxString(wxT("save")))); _load_button->clicked.connect (bind (mem_fun (*this, &LooperPanel::clicked_events), wxString(wxT("load")))); _scratch_control->pressed.connect (bind (mem_fun (*this, &LooperPanel::scratch_events), wxString(wxT("scratch_press")))); _scratch_control->released.connect (bind (mem_fun (*this, &LooperPanel::scratch_events), wxString(wxT("scratch_release")))); _loop_control->MidiBindingChanged.connect (mem_fun (*this, &LooperPanel::got_binding_changed)); _loop_control->MidiLearnCancelled.connect (mem_fun (*this, &LooperPanel::got_learn_canceled)); } void LooperPanel::create_buttons() { _undo_button = new PixButton(this, ID_UndoButton); _redo_button = new PixButton(this, ID_RedoButton); _record_button = new PixButton(this, ID_RecordButton); _overdub_button = new PixButton(this, ID_OverdubButton); _multiply_button = new PixButton(this, ID_MultiplyButton); _replace_button = new PixButton(this, ID_ReplaceButton); _delay_button = new PixButton(this, ID_TapButton); _insert_button = new PixButton(this, ID_InsertButton); _reverse_button = new PixButton(this, ID_ReverseButton); //_reverse_button->SetToolTip(wxT("reverses direction")); _substitute_button = new PixButton(this, ID_SubstituteButton); _load_button = new PixButton(this, ID_LoadButton, false); _save_button = new PixButton(this, ID_SaveButton, false); _trig_button = new PixButton(this, ID_TrigButton); _once_button = new PixButton(this, ID_OnceButton); _mute_button = new PixButton(this, ID_MuteButton); _pause_button = new PixButton(this, ID_PauseButton); _solo_button = new PixButton(this, ID_SoloButton); _scratch_button = new PixButton(this, ID_ScratchButton); _halfx_button = new PixButton(this, ID_HalfXButton, true); _1x_button = new PixButton(this, ID_OneXButton, true); _2x_button = new PixButton(this, ID_DoubleXButton, true); // load them all up manually _undo_button->set_normal_bitmap (wxBitmap(undo_normal)); _undo_button->set_selected_bitmap (wxBitmap(undo_selected)); _undo_button->set_focus_bitmap (wxBitmap(undo_focus)); _undo_button->set_disabled_bitmap (wxBitmap(undo_disabled)); _undo_button->set_active_bitmap (wxBitmap(undo_active)); _redo_button->set_normal_bitmap (wxBitmap(redo_normal)); _redo_button->set_selected_bitmap (wxBitmap(redo_selected)); _redo_button->set_focus_bitmap (wxBitmap(redo_focus)); _redo_button->set_disabled_bitmap (wxBitmap(redo_disabled)); _redo_button->set_active_bitmap (wxBitmap(redo_active)); _record_button->set_normal_bitmap (wxBitmap(record_normal)); _record_button->set_selected_bitmap (wxBitmap(record_selected)); _record_button->set_focus_bitmap (wxBitmap(record_focus)); _record_button->set_disabled_bitmap (wxBitmap(record_disabled)); _record_button->set_active_bitmap (wxBitmap(record_active)); _overdub_button->set_normal_bitmap (wxBitmap(overdub_normal)); _overdub_button->set_selected_bitmap (wxBitmap(overdub_selected)); _overdub_button->set_focus_bitmap (wxBitmap(overdub_focus)); _overdub_button->set_disabled_bitmap (wxBitmap(overdub_disabled)); _overdub_button->set_active_bitmap (wxBitmap(overdub_active)); _multiply_button->set_normal_bitmap (wxBitmap(multiply_normal)); _multiply_button->set_selected_bitmap (wxBitmap(multiply_selected)); _multiply_button->set_focus_bitmap (wxBitmap(multiply_focus)); _multiply_button->set_disabled_bitmap (wxBitmap(multiply_disabled)); _multiply_button->set_active_bitmap (wxBitmap(multiply_active)); _replace_button->set_normal_bitmap (wxBitmap(replace_normal)); _replace_button->set_selected_bitmap (wxBitmap(replace_selected)); _replace_button->set_focus_bitmap (wxBitmap(replace_focus)); _replace_button->set_disabled_bitmap (wxBitmap(replace_disabled)); _replace_button->set_active_bitmap (wxBitmap(replace_active)); _delay_button->set_normal_bitmap (wxBitmap(delay_normal)); _delay_button->set_selected_bitmap (wxBitmap(delay_selected)); _delay_button->set_focus_bitmap (wxBitmap(delay_focus)); _delay_button->set_disabled_bitmap (wxBitmap(delay_disabled)); _delay_button->set_active_bitmap (wxBitmap(delay_active)); _insert_button->set_normal_bitmap (wxBitmap(insert_normal)); _insert_button->set_selected_bitmap (wxBitmap(insert_selected)); _insert_button->set_focus_bitmap (wxBitmap(insert_focus)); _insert_button->set_disabled_bitmap (wxBitmap(insert_disabled)); _insert_button->set_active_bitmap (wxBitmap(insert_active)); _reverse_button->set_normal_bitmap (wxBitmap(reverse_normal)); _reverse_button->set_selected_bitmap (wxBitmap(reverse_selected)); _reverse_button->set_focus_bitmap (wxBitmap(reverse_focus)); _reverse_button->set_disabled_bitmap (wxBitmap(reverse_disabled)); _reverse_button->set_active_bitmap (wxBitmap(reverse_active)); _substitute_button->set_normal_bitmap (wxBitmap(substitute_normal)); _substitute_button->set_selected_bitmap (wxBitmap(substitute_selected)); _substitute_button->set_focus_bitmap (wxBitmap(substitute_focus)); _substitute_button->set_disabled_bitmap (wxBitmap(substitute_disabled)); _substitute_button->set_active_bitmap (wxBitmap(substitute_active)); _mute_button->set_normal_bitmap (wxBitmap(mute_normal)); _mute_button->set_selected_bitmap (wxBitmap(mute_selected)); _mute_button->set_focus_bitmap (wxBitmap(mute_focus)); _mute_button->set_disabled_bitmap (wxBitmap(mute_disabled)); _mute_button->set_active_bitmap (wxBitmap(mute_active)); _pause_button->set_normal_bitmap (wxBitmap(pause_normal)); _pause_button->set_selected_bitmap (wxBitmap(pause_selected)); _pause_button->set_focus_bitmap (wxBitmap(pause_focus)); _pause_button->set_disabled_bitmap (wxBitmap(pause_disabled)); _pause_button->set_active_bitmap (wxBitmap(pause_active)); _solo_button->set_normal_bitmap (wxBitmap(solo_normal)); _solo_button->set_selected_bitmap (wxBitmap(solo_selected)); _solo_button->set_focus_bitmap (wxBitmap(solo_focus)); _solo_button->set_disabled_bitmap (wxBitmap(solo_disabled)); _solo_button->set_active_bitmap (wxBitmap(solo_active)); _scratch_button->set_normal_bitmap (wxBitmap(scratch_normal)); _scratch_button->set_selected_bitmap (wxBitmap(scratch_selected)); _scratch_button->set_focus_bitmap (wxBitmap(scratch_focus)); _scratch_button->set_disabled_bitmap (wxBitmap(scratch_disabled)); _scratch_button->set_active_bitmap (wxBitmap(scratch_active)); _load_button->set_normal_bitmap (wxBitmap(load_normal)); _load_button->set_selected_bitmap (wxBitmap(load_selected)); _load_button->set_focus_bitmap (wxBitmap(load_focus)); _load_button->set_disabled_bitmap (wxBitmap(load_disabled)); _load_button->set_active_bitmap (wxBitmap(load_active)); _save_button->set_normal_bitmap (wxBitmap(save_normal)); _save_button->set_selected_bitmap (wxBitmap(save_selected)); _save_button->set_focus_bitmap (wxBitmap(save_focus)); _save_button->set_disabled_bitmap (wxBitmap(save_disabled)); _save_button->set_active_bitmap (wxBitmap(save_active)); _once_button->set_normal_bitmap (wxBitmap(once_normal)); _once_button->set_selected_bitmap (wxBitmap(once_selected)); _once_button->set_focus_bitmap (wxBitmap(once_focus)); _once_button->set_disabled_bitmap (wxBitmap(once_disabled)); _once_button->set_active_bitmap (wxBitmap(once_active)); _trig_button->set_normal_bitmap (wxBitmap(trig_normal)); _trig_button->set_selected_bitmap (wxBitmap(trig_selected)); _trig_button->set_focus_bitmap (wxBitmap(trig_focus)); _trig_button->set_disabled_bitmap (wxBitmap(trig_disabled)); _trig_button->set_active_bitmap (wxBitmap(trig_active)); _1x_button->set_normal_bitmap (wxBitmap(onex_rate_normal)); _1x_button->set_selected_bitmap (wxBitmap(onex_rate_selected)); _1x_button->set_focus_bitmap (wxBitmap(onex_rate_focus)); _1x_button->set_disabled_bitmap (wxBitmap(onex_rate_disabled)); _1x_button->set_active_bitmap (wxBitmap(onex_rate_active)); _2x_button->set_normal_bitmap (wxBitmap(double_rate_normal)); _2x_button->set_selected_bitmap (wxBitmap(double_rate_selected)); _2x_button->set_focus_bitmap (wxBitmap(double_rate_focus)); _2x_button->set_disabled_bitmap (wxBitmap(double_rate_disabled)); _2x_button->set_active_bitmap (wxBitmap(double_rate_active)); _halfx_button->set_normal_bitmap (wxBitmap(half_rate_normal)); _halfx_button->set_selected_bitmap (wxBitmap(half_rate_selected)); _halfx_button->set_focus_bitmap (wxBitmap(half_rate_focus)); _halfx_button->set_disabled_bitmap (wxBitmap(half_rate_disabled)); _halfx_button->set_active_bitmap (wxBitmap(half_rate_active)); } void LooperPanel::update_controls() { // get recent controls from loop control float val; // first see if we have channel count yet if (_chan_count == 0 && _loop_control->is_updated(_index, wxT("channel_count")) && _loop_control->is_updated(_index, wxT("has_discrete_io"))) { _loop_control->get_value(_index, wxT("channel_count"), val); _chan_count = (int) val; // do post_init post_init(); } if (_loop_control->is_updated(_index, wxT("feedback"))) { _loop_control->get_value(_index, wxT("feedback"), val); _feedback_control->set_value ((val * 100.0f)); } if (_loop_control->is_updated(_index, wxT("input_gain"))) { _loop_control->get_value(_index, wxT("input_gain"), val); _in_gain_control->set_value (val); } if (_loop_control->is_updated(_index, wxT("rec_thresh"))) { _loop_control->get_value(_index, wxT("rec_thresh"), val); _thresh_control->set_value (val); } if (_has_discrete_io) { if (_loop_control->is_updated(_index, wxT("in_peak_meter"))) { _loop_control->get_value(_index, wxT("in_peak_meter"), val); _thresh_control->set_indicator_value (val); } if (_loop_control->is_updated(_index, wxT("dry"))) { _loop_control->get_value(_index, wxT("dry"), val); _dry_control->set_value (val); } } else { if (_loop_control->is_updated(_index, wxT("in_peak_meter"))) { _loop_control->get_value(_index, wxT("in_peak_meter"), val); _thresh_control->set_indicator_value (val); } } if (_loop_control->is_updated(_index, wxT("out_peak_meter"))) { _loop_control->get_value(_index, wxT("out_peak_meter"), val); _wet_control->set_indicator_value (val); } if (_loop_control->is_updated(_index, wxT("wet"))) { _loop_control->get_value(_index, wxT("wet"), val); _wet_control->set_value (val); } if (_loop_control->is_updated(_index, wxT("rate"))) { _loop_control->get_value(_index, wxT("rate"), val); _rate_control->set_value (val); update_rate_buttons(val); } if (_loop_control->is_updated(_index, wxT("stretch_ratio"))) { _loop_control->get_value(_index, wxT("stretch_ratio"), val); _stretch_control->set_value (val); } if (_loop_control->is_updated(_index, wxT("pitch_shift"))) { _loop_control->get_value(_index, wxT("pitch_shift"), val); _pitch_control->set_value (val); } if (_loop_control->is_updated(_index, wxT("rate_output"))) { _loop_control->get_value(_index, wxT("rate_output"), val); if (val < 0.0) { _reverse_button->set_active(true); } else { _reverse_button->set_active(false); } } if (_loop_control->is_updated(_index, wxT("scratch_pos"))) { _loop_control->get_value(_index, wxT("scratch_pos"), val); _scratch_control->set_value (val); _scratch_control->set_indicator_value (val); } /* if (_loop_control->is_updated(_index, wxT("output_latency"))) { _loop_control->get_value(_index, wxT("output_latency"), val); _outlatency_spin->set_value (val); } if (_loop_control->is_updated(_index, wxT("input_latency"))) { _loop_control->get_value(_index, wxT("input_latency"), val); _inlatency_spin->set_value (val); } if (_loop_control->is_updated(_index, wxT("trigger_latency"))) { _loop_control->get_value(_index, wxT("trigger_latency"), val); _triglatency_spin->set_value (val); } */ // if (_loop_control->is_updated(_index, "quantize")) { // _loop_control->get_value(_index, "quantize", val); // //_quantize_choice->set_index_value ((int)val); // _quantize_check->SetValue (val > 0.0); // } // if (_loop_control->is_updated(_index, "round")) { // _loop_control->get_value(_index, "round", val); // _round_check->SetValue (val > 0.0); // } if (_loop_control->is_updated(_index, wxT("sync"))) { _loop_control->get_value(_index, wxT("sync"), val); _sync_check->set_value (val > 0.0f); } if (_loop_control->is_updated(_index, wxT("playback_sync"))) { _loop_control->get_value(_index, wxT("playback_sync"), val); _play_sync_check->set_value (val > 0.0f); } if (_loop_control->is_updated(_index, wxT("use_feedback_play"))) { _loop_control->get_value(_index, wxT("use_feedback_play"), val); _play_feed_check->set_value (val > 0.0f); } if (_loop_control->is_updated(_index, wxT("tempo_stretch"))) { _loop_control->get_value(_index, wxT("tempo_stretch"), val); _tempo_stretch_check->set_value (val > 0.0f); } if (_loop_control->is_updated(_index, wxT("is_soloed"))) { _loop_control->get_value(_index, wxT("is_soloed"), val); _solo_button->set_active(val > 0.0f); } for (int i=0; i < _chan_count; ++i) { wxString panstr = wxString::Format(wxT("pan_%d"), i+1); if (_loop_control->is_updated(_index, panstr)) { _loop_control->get_value(_index, panstr, val); _panners[i]->set_value (val); } } if (_use_main_in_check) { if (_loop_control->is_updated(_index, wxT("use_common_ins"))) { _loop_control->get_value(_index, wxT("use_common_ins"), val); _use_main_in_check->set_value (val > 0.0f); } } // if (_loop_control->is_updated(_index, "use_rate")) { // _loop_control->get_value(_index, "use_rate", val); // _rate_button->set_active(val != 0.0f); // } bool state_updated = _loop_control->is_updated(_index, wxT("state")); bool pos_updated = _loop_control->is_updated(_index, wxT("loop_pos")); bool waiting_updated = _loop_control->is_updated(_index, wxT("waiting")); if (_time_panel->update_time()) { _time_panel->Refresh(false); } if (state_updated || waiting_updated) { update_state(); } if (pos_updated /*&& _last_state != LooperStateScratching */) { float looplen; _loop_control->get_value(_index, wxT("loop_len"), looplen); _loop_control->get_value(_index, wxT("loop_pos"), val); _scratch_control->set_indicator_value (val / looplen); } } void LooperPanel::update_state() { wxString statestr, nstatestr; LooperState state, nextstate; float val; float soloed = false; _loop_control->get_state(_index, state, statestr); _loop_control->get_next_state(_index, nextstate, nstatestr); _loop_control->get_value(_index, wxT("waiting"), val); _loop_control->get_value(_index, wxT("is_soloed"), soloed); _waiting = (val > 0.0f) ? true : false; if (!_waiting && _flashing_button) { // clear flashing _flashing_button->set_active(false); _flashing_button = 0; } //_rate_button->Enable(false); // set not active for all state buttons switch(_last_state) { case LooperStateRecording: case LooperStateWaitStop: _record_button->set_active(false); break; case LooperStateOverdubbing: _overdub_button->set_active(false); break; case LooperStateMultiplying: _multiply_button->set_active(false); break; case LooperStateReplacing: _replace_button->set_active(false); break; case LooperStateSubstitute: _substitute_button->set_active(false); break; case LooperStateDelay: _delay_button->set_active(false); break; case LooperStateInserting: _insert_button->set_active(false); break; case LooperStateScratching: _scratch_button->set_active(false); break; case LooperStateMuted: case LooperStateOffMuted: _mute_button->set_active(false); break; case LooperStateOneShot: _once_button->set_active(false); break; case LooperStatePaused: _pause_button->set_active(false); break; default: break; } switch(state) { case LooperStateRecording: case LooperStateWaitStop: _record_button->set_active(true); _flashing_button = _record_button; break; case LooperStateWaitStart: _flashing_button = _record_button; break; case LooperStateOverdubbing: _overdub_button->set_active(true); _flashing_button = _overdub_button; break; case LooperStateMultiplying: _multiply_button->set_active(true); _flashing_button = _multiply_button; break; case LooperStateReplacing: _replace_button->set_active(true); _flashing_button = _replace_button; break; case LooperStateSubstitute: _substitute_button->set_active(true); _flashing_button = _substitute_button; break; case LooperStateDelay: _delay_button->set_active(true); _flashing_button = _delay_button; break; case LooperStateInserting: _insert_button->set_active(true); _flashing_button = _insert_button; break; case LooperStateScratching: _scratch_button->set_active(true); _scratch_control->set_style(SliderBar::CenterStyle); //_rate_button->Enable(true); break; case LooperStateMuted: case LooperStateOffMuted: _mute_button->set_active(true); _flashing_button = _mute_button; break; case LooperStateOneShot: _once_button->set_active(true); _flashing_button = _once_button; break; case LooperStatePaused: _pause_button->set_active(true); _flashing_button = _pause_button; break; default: break; } if (state != LooperStateScratching) { _scratch_control->set_style(SliderBar::HiddenStyle); } if (_waiting) { if (nextstate != LooperStateUnknown) { // reset flashing button to use switch(nextstate) { case LooperStateRecording: case LooperStateWaitStart: case LooperStateWaitStop: _flashing_button = _record_button; break; case LooperStateOverdubbing: _flashing_button = _overdub_button; break; case LooperStateMultiplying: _flashing_button = _multiply_button; break; case LooperStateReplacing: _flashing_button = _replace_button; break; case LooperStateSubstitute: _flashing_button = _substitute_button; break; case LooperStateDelay: _flashing_button = _delay_button; break; case LooperStateInserting: _flashing_button = _insert_button; break; case LooperStateOneShot: _flashing_button = _once_button; break; case LooperStateMuted: case LooperStateOffMuted: if (state == LooperStatePlaying) _flashing_button = _mute_button; else if ( state == LooperStateMuted) _flashing_button = _reverse_button; break; case LooperStatePlaying: //if (soloed) { // _flashing_button = _solo_button; //} if (state == LooperStatePlaying) _flashing_button = _reverse_button; else if( state == LooperStateMuted) { _flashing_button = _mute_button; } break; default: break; } } else if (state == LooperStatePlaying || state == LooperStateMuted) { // special case, we are pending reverse //if (soloed) { // _flashing_button = _solo_button; //} else { _flashing_button = _reverse_button; //} } // make sure flash time is going if (!_flash_timer->IsRunning()) { _flash_timer->Start ((int)FlashRate); } } else { if (_flash_timer->IsRunning()) { _flash_timer->Stop(); _loop_control->get_value(_index, wxT("rate_output"), val); if (val < 0.0f) { _reverse_button->set_active(true); } else { _reverse_button->set_active(false); } _solo_button->set_active(soloed); } } _last_state = state; } void LooperPanel::update_rate_buttons(float val) { if (val == 1.0f) { _1x_button->set_active(true); _2x_button->set_active(false); _halfx_button->set_active(false); } else if (val == 2.0f) { _1x_button->set_active(false); _2x_button->set_active(true); _halfx_button->set_active(false); } else if (val == 0.5f) { _1x_button->set_active(false); _2x_button->set_active(false); _halfx_button->set_active(true); } else { _1x_button->set_active(false); _2x_button->set_active(false); _halfx_button->set_active(false); } } void LooperPanel::on_flash_timer (wxTimerEvent &ev) { // toggle the active state of current flash button if (_flashing_button) { _flashing_button->set_active (!_flashing_button->get_active()); } } void LooperPanel::pressed_events (int button, wxString cmd) { _loop_control->post_down_event (_index, cmd); } void LooperPanel::released_events (int button, wxString cmd) { if (button == PixButton::MiddleButton) { // force up _loop_control->post_up_event (_index, cmd, true); } else { _loop_control->post_up_event (_index, cmd); } } void LooperPanel::scratch_events (wxString cmd) { if (_last_state == LooperStateRecording) return; if (cmd == wxT("scratch_press") && (_last_state != LooperStateScratching)) { // toggle scratch on _scratch_pressed = true; _loop_control->post_down_event (_index, wxT("scratch")); } else if (_scratch_pressed) { // toggle scratch off _loop_control->post_down_event (_index, wxT("scratch")); _scratch_pressed = false; } } void LooperPanel::button_bind_events (wxString cmd) { MidiBindInfo info; char cmdbuf[100]; info.channel = 0; info.type = "n"; snprintf(cmdbuf, sizeof(cmdbuf), "%s", (const char *) cmd.ToAscii()); info.control = cmdbuf; if (cmd == wxT("delay_trigger")) { info.command = "set"; } else { info.command = "note"; // should this be something else? } info.instance = _index; info.lbound = 0.0f; info.ubound = 1.0f; start_learning (info); } void LooperPanel::rate_bind_events (float val) { MidiBindInfo info; info.channel = 0; info.type = "n"; info.control = "rate"; info.command = "set"; info.instance = _index; info.lbound = val; info.ubound = val; start_learning (info); } void LooperPanel::delay_button_press_event (int button) { _tap_val *= -1.0f; post_control_event (wxString(wxT("delay_trigger")), _tap_val); } void LooperPanel::delay_button_release_event (int button) { if (button == PixButton::MiddleButton) { _tap_val *= -1.0f; post_control_event (wxString(wxT("delay_trigger")), _tap_val); } } void LooperPanel::rate_button_event (int button, float rate) { // float val = 0.0; // _loop_control->get_value(_index, "use_rate", val); // val = val == 0.0f ? 1.0f : 0.0f; // post_control_event (wxString("use_rate"), val); post_control_event (wxString(wxT("rate")), rate); update_rate_buttons (rate); _rate_control->set_value (rate); } void LooperPanel::clicked_events (int button, wxString cmd) { if (cmd == wxT("save")) { wxString filename = _mainpanel->do_file_selector (wxT("Choose file to save loop"), wxT("wav"), wxT("WAVE files (*.wav)|*.wav;*.WAV;*.Wav"), wxSAVE|wxCHANGE_DIR|wxOVERWRITE_PROMPT); if ( !filename.empty() ) { // add .wav if there isn't one already if (filename.size() <= 4 || (filename.size() > 4 && filename.substr(filename.size() - 4, 4) != wxT(".wav"))) { filename += wxT(".wav"); } // todo: specify format _loop_control->post_save_loop (_index, filename); } } else if (cmd == wxT("load")) { wxString filename = _mainpanel->do_file_selector(wxT("Choose file to open"), wxT(""), wxT("Audio files (*.wav,*.aif)|*.wav;*.WAV;*.Wav;*.aif;*.aiff;*.AIF;*.AIFF|All files (*.*)|*.*"), wxOPEN|wxCHANGE_DIR); if ( !filename.empty() ) { _loop_control->post_load_loop (_index, filename); } } } void LooperPanel::slider_events(float val, int id) { wxString ctrl; switch(id) { case ID_ThreshControl: ctrl = wxT("rec_thresh"); val = val; break; case ID_FeedbackControl: ctrl = wxT("feedback"); val = _feedback_control->get_value() / 100.0f; break; case ID_InputGainControl: ctrl = wxT("input_gain"); val = _in_gain_control->get_value(); break; case ID_DryControl: ctrl = wxT("dry"); val = _dry_control->get_value(); break; case ID_WetControl: ctrl = wxT("wet"); val = _wet_control->get_value(); break; case ID_ScratchControl: ctrl = wxT("scratch_pos"); val = _scratch_control->get_value(); break; case ID_RateControl: ctrl = wxT("rate"); val = _rate_control->get_value(); update_rate_buttons (val); break; case ID_StretchControl: ctrl = wxT("stretch_ratio"); val = _stretch_control->get_value(); break; case ID_PitchControl: ctrl = wxT("pitch_shift"); val = _pitch_control->get_value(); break; case ID_OutputLatency: ctrl = wxT("output_latency"); cerr << "outlat " << val << endl; break; case ID_InputLatency: ctrl = wxT("input_latency"); cerr << "inlat " << val << endl; break; case ID_TriggerLatency: ctrl = wxT("trigger_latency"); cerr << "triglat " << val << endl; break; default: break; } if (!ctrl.empty()) { post_control_event (ctrl, val); } } void LooperPanel::control_bind_events(int id) { MidiBindInfo info; bool donothing = false; info.channel = 0; info.type = "cc"; info.command = "set"; info.instance = _index; info.lbound = 0.0f; info.ubound = 1.0f; switch(id) { case ID_ThreshControl: info.control = "rec_thresh"; info.style = MidiBindInfo::GainStyle; break; case ID_FeedbackControl: info.control = "feedback"; info.style = MidiBindInfo::NormalStyle; break; case ID_DryControl: info.control = "dry"; info.style = MidiBindInfo::GainStyle; break; case ID_InputGainControl: info.control = "input_gain"; info.style = MidiBindInfo::GainStyle; break; case ID_WetControl: info.control = "wet"; info.command = "set"; info.style = MidiBindInfo::GainStyle; break; case ID_ScratchControl: info.control = "scratch_pos"; info.style = MidiBindInfo::NormalStyle; break; case ID_RateControl: info.control = "rate"; info.style = MidiBindInfo::NormalStyle; info.lbound = 0.25; info.ubound = 4.0; break; case ID_StretchControl: info.control = "stretch_ratio"; info.style = MidiBindInfo::NormalStyle; info.lbound = 0.5; info.ubound = 4.0; break; case ID_PitchControl: info.control = "pitch_shift"; info.style = MidiBindInfo::IntegerStyle; info.lbound = -12; info.ubound = 12; break; case ID_SyncCheck: info.control = "sync"; info.style = MidiBindInfo::NormalStyle; break; case ID_PlaySyncCheck: info.control = "playback_sync"; info.style = MidiBindInfo::NormalStyle; break; case ID_UseFeedbackPlayCheck: info.control = "use_feedback_play"; info.style = MidiBindInfo::NormalStyle; break; case ID_TempoStretchCheck: info.control = "tempo_stretch"; info.style = MidiBindInfo::NormalStyle; break; default: donothing = true; break; } if (!donothing) { start_learning(info); } } void LooperPanel::pan_events(float val, int chan) { wxString ctrl = wxString::Format(wxT("pan_%d"), chan+1); post_control_event (ctrl, val); } void LooperPanel::pan_bind_events(int chan) { MidiBindInfo info; char cmdbuf[20]; info.channel = 0; info.type = "cc"; info.command = "set"; info.instance = _index; info.lbound = 0.0f; info.ubound = 1.0f; info.style = MidiBindInfo::NormalStyle; snprintf (cmdbuf, sizeof(cmdbuf), "pan_%d", chan+1); info.control = cmdbuf; start_learning(info); } void LooperPanel::start_learning(MidiBindInfo & info) { if (!_learning) { _learning = true; _leftSelbar->SetBackgroundColour (_learnbgcolor); _rightSelbar->SetBackgroundColour (_learnbgcolor); _topSelbar->SetBackgroundColour (_learnbgcolor); _bottomSelbar->SetBackgroundColour (_learnbgcolor); _leftSelbar->Refresh(); _rightSelbar->Refresh(); _topSelbar->Refresh(); _bottomSelbar->Refresh(); } _loop_control->learn_midi_binding(info, true); } void LooperPanel::got_binding_changed(SooperLooper::MidiBindInfo & info) { if (_learning) { _leftSelbar->SetBackgroundColour (_bgcolor); _rightSelbar->SetBackgroundColour (_bgcolor); _topSelbar->SetBackgroundColour (_bgcolor); _bottomSelbar->SetBackgroundColour (_bgcolor); _leftSelbar->Refresh(); _rightSelbar->Refresh(); _topSelbar->Refresh(); _bottomSelbar->Refresh(); _learning = false; } } void LooperPanel::got_learn_canceled() { if (_learning) { _leftSelbar->SetBackgroundColour (_bgcolor); _rightSelbar->SetBackgroundColour (_bgcolor); _topSelbar->SetBackgroundColour (_bgcolor); _bottomSelbar->SetBackgroundColour (_bgcolor); _leftSelbar->Refresh(); _rightSelbar->Refresh(); _topSelbar->Refresh(); _bottomSelbar->Refresh(); _learning = false; } } void LooperPanel::check_events(bool val, wxString which) { post_control_event (which, val ? 1.0f: 0.0f); } void LooperPanel::on_quantize_change (int index, wxString strval) { // 0 is none, 1 is cycle, 2 is eighth, 3 is loop post_control_event (wxT("quantize"), (float) index); } void LooperPanel::post_control_event (wxString ctrl, float val) { _loop_control->post_ctrl_change (_index, ctrl, val); } sooperlooper-1.7.3~dfsg0/src/gui/prefs_dialog.cpp0000644000175000017500000000637711754453701020577 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include #include #include #include #include "main_panel.hpp" #include "prefs_dialog.hpp" #include "config_panel.hpp" #include "keys_panel.hpp" #include "midi_bind_panel.hpp" #include "latency_panel.hpp" #include "loop_control.hpp" #include "keyboard_target.hpp" using namespace SooperLooperGui; using namespace std; #define DEFAULT_OSC_PORT 9951 enum { ID_ConnectButton = 8000, ID_CloseButton, ID_DisconnectButton, ID_MidiBrowseButton, ID_DefaultButton, ID_CommitButton, ID_RevertButton }; BEGIN_EVENT_TABLE(SooperLooperGui::PrefsDialog, wxFrame) EVT_CLOSE(SooperLooperGui::PrefsDialog::on_close) END_EVENT_TABLE() // ctor(s) PrefsDialog::PrefsDialog(MainPanel * parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style , const wxString& name) : wxFrame ((wxWindow *)parent, id, title, pos, size, style, name), _parent (parent) { init(); } PrefsDialog::~PrefsDialog() { } void PrefsDialog::init() { wxBoxSizer * topsizer = new wxBoxSizer(wxVERTICAL); _notebook = new wxNotebook (this, -1); #if wxCHECK_VERSION(2,6,0) #else wxNotebookSizer *nbs = new wxNotebookSizer( _notebook ); #endif _config_panel = new ConfigPanel (_parent, _notebook, -1); _notebook->AddPage (_config_panel, wxT("Connection"), true); _keys_panel = new KeysPanel(_parent, _notebook, -1); _notebook->AddPage (_keys_panel, wxT("Key Bindings"), false); _midi_panel = new MidiBindPanel(_parent, _notebook, -1); _notebook->AddPage (_midi_panel, wxT("MIDI Bindings"), false); _latency_panel = new LatencyPanel(_parent, _notebook, -1); _notebook->AddPage (_latency_panel, wxT("Latency/Misc"), false); #if wxCHECK_VERSION(2,6,0) topsizer->Add (_notebook, 1, wxEXPAND|wxALL, 6); #else topsizer->Add (nbs, 1, wxEXPAND|wxALL, 6); #endif this->SetAutoLayout( true ); // tell dialog to use sizer this->SetSizer( topsizer ); // actually set the sizer topsizer->Fit( this ); // set size to minimum size as calculated by the sizer topsizer->SetSizeHints( this ); // set size hints to honour mininum size } void PrefsDialog::refresh_state () { _config_panel->refresh_state(); _keys_panel->refresh_state(); _midi_panel->refresh_state(); _latency_panel->refresh_state(); } void PrefsDialog::on_close (wxCloseEvent &ev) { if (!ev.CanVeto()) { Destroy(); } else { ev.Veto(); Show(false); } } sooperlooper-1.7.3~dfsg0/src/gui/Makefile.am0000644000175000017500000000154511754453700017460 0ustar miramirabin_PROGRAMS = slgui #pixmapdir = $(datadir)/sooperlooper/pixmaps #pixmap_DATA = \ # $(wildcard pixmaps/*.png) #DEFS = -DPIXMAPDIR=\""$(pixmapdir)/"\" AM_CXXFLAGS = -I.. @LOSC_CFLAGS@ @SIGCPP_CFLAGS@ @XML_CFLAGS@ @WX_CFLAGS@ slgui_LDADD = ../libslcore.a @BASE_LIBS@ @LOSC_LIBS@ @WX_LIBS@ @SIGCPP_LIBS@ @XML_LIBS@ slgui_SOURCES = \ gui_app.cpp \ main_panel.cpp \ app_frame.cpp \ pix_button.cpp \ looper_panel.cpp \ loop_control.cpp \ time_panel.cpp \ slider_bar.cpp \ choice_box.cpp \ spin_box.cpp \ keyboard_target.cpp \ keys_panel.cpp \ check_box.cpp \ midi_bind_panel.cpp \ config_panel.cpp \ prefs_dialog.cpp \ help_window.cpp \ latency_panel.cpp noinst_HEADERS = $(wildcard *.hpp *.h) EXTRA_DIST = $(wildcard pixmaps/*.xpm) # `@WX_CONFIG@ --rezflags` slgui mac: slgui /Developer/Tools/Rez -d __DARWIN__ -t APPL Carbon.r -o slgui sooperlooper-1.7.3~dfsg0/src/gui/pixmap_includes.hpp0000644000175000017500000001140711754453701021320 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_pixmap_includes__ #define __sooperlooper_pixmap_includes__ // include all the default pixmaps #include "pixmaps/1x_rate_active.xpm" #include "pixmaps/1x_rate_disabled.xpm" #include "pixmaps/1x_rate_focus.xpm" #include "pixmaps/1x_rate_normal.xpm" #include "pixmaps/1x_rate_selected.xpm" #include "pixmaps/delay_active.xpm" #include "pixmaps/delay_disabled.xpm" #include "pixmaps/delay_focus.xpm" #include "pixmaps/delay_normal.xpm" #include "pixmaps/delay_selected.xpm" #include "pixmaps/double_rate_active.xpm" #include "pixmaps/double_rate_disabled.xpm" #include "pixmaps/double_rate_focus.xpm" #include "pixmaps/double_rate_normal.xpm" #include "pixmaps/double_rate_selected.xpm" #include "pixmaps/half_rate_active.xpm" #include "pixmaps/half_rate_disabled.xpm" #include "pixmaps/half_rate_focus.xpm" #include "pixmaps/half_rate_normal.xpm" #include "pixmaps/half_rate_selected.xpm" #include "pixmaps/insert_active.xpm" #include "pixmaps/insert_disabled.xpm" #include "pixmaps/insert_focus.xpm" #include "pixmaps/insert_normal.xpm" #include "pixmaps/insert_selected.xpm" #include "pixmaps/load_active.xpm" #include "pixmaps/load_disabled.xpm" #include "pixmaps/load_focus.xpm" #include "pixmaps/load_normal.xpm" #include "pixmaps/load_selected.xpm" #include "pixmaps/multiply_active.xpm" #include "pixmaps/multiply_disabled.xpm" #include "pixmaps/multiply_focus.xpm" #include "pixmaps/multiply_normal.xpm" #include "pixmaps/multiply_selected.xpm" #include "pixmaps/mute_active.xpm" #include "pixmaps/mute_disabled.xpm" #include "pixmaps/mute_focus.xpm" #include "pixmaps/mute_normal.xpm" #include "pixmaps/mute_selected.xpm" #include "pixmaps/once_active.xpm" #include "pixmaps/once_disabled.xpm" #include "pixmaps/once_focus.xpm" #include "pixmaps/once_normal.xpm" #include "pixmaps/once_selected.xpm" #include "pixmaps/overdub_active.xpm" #include "pixmaps/overdub_disabled.xpm" #include "pixmaps/overdub_focus.xpm" #include "pixmaps/overdub_normal.xpm" #include "pixmaps/overdub_selected.xpm" #include "pixmaps/record_active.xpm" #include "pixmaps/record_disabled.xpm" #include "pixmaps/record_focus.xpm" #include "pixmaps/record_normal.xpm" #include "pixmaps/record_selected.xpm" #include "pixmaps/redo_active.xpm" #include "pixmaps/redo_disabled.xpm" #include "pixmaps/redo_focus.xpm" #include "pixmaps/redo_normal.xpm" #include "pixmaps/redo_selected.xpm" #include "pixmaps/replace_active.xpm" #include "pixmaps/replace_disabled.xpm" #include "pixmaps/replace_focus.xpm" #include "pixmaps/replace_normal.xpm" #include "pixmaps/replace_selected.xpm" #include "pixmaps/reverse_active.xpm" #include "pixmaps/reverse_disabled.xpm" #include "pixmaps/reverse_focus.xpm" #include "pixmaps/reverse_normal.xpm" #include "pixmaps/reverse_selected.xpm" #include "pixmaps/save_active.xpm" #include "pixmaps/save_disabled.xpm" #include "pixmaps/save_focus.xpm" #include "pixmaps/save_normal.xpm" #include "pixmaps/save_selected.xpm" #include "pixmaps/scratch_active.xpm" #include "pixmaps/scratch_disabled.xpm" #include "pixmaps/scratch_focus.xpm" #include "pixmaps/scratch_normal.xpm" #include "pixmaps/scratch_selected.xpm" #include "pixmaps/trig_active.xpm" #include "pixmaps/trig_disabled.xpm" #include "pixmaps/trig_focus.xpm" #include "pixmaps/trig_normal.xpm" #include "pixmaps/trig_selected.xpm" #include "pixmaps/undo_active.xpm" #include "pixmaps/undo_disabled.xpm" #include "pixmaps/undo_focus.xpm" #include "pixmaps/undo_normal.xpm" #include "pixmaps/undo_selected.xpm" #include "pixmaps/substitute_active.xpm" #include "pixmaps/substitute_disabled.xpm" #include "pixmaps/substitute_focus.xpm" #include "pixmaps/substitute_normal.xpm" #include "pixmaps/substitute_selected.xpm" #include "pixmaps/pause_active.xpm" #include "pixmaps/pause_disabled.xpm" #include "pixmaps/pause_focus.xpm" #include "pixmaps/pause_normal.xpm" #include "pixmaps/pause_selected.xpm" #include "pixmaps/solo_active.xpm" #include "pixmaps/solo_disabled.xpm" #include "pixmaps/solo_focus.xpm" #include "pixmaps/solo_normal.xpm" #include "pixmaps/solo_selected.xpm" #endif sooperlooper-1.7.3~dfsg0/src/gui/config_panel.cpp0000644000175000017500000003661312230652224020550 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include #include #include #include "main_panel.hpp" #include "config_panel.hpp" #include "loop_control.hpp" #include "keyboard_target.hpp" using namespace SooperLooperGui; using namespace std; #define DEFAULT_OSC_PORT 9951 enum { ID_ConnectButton = 8000, ID_CloseButton, ID_DisconnectButton, ID_MidiBrowseButton, ID_DefaultButton, ID_CommitButton, ID_RevertButton, ID_SessionBrowseButton }; BEGIN_EVENT_TABLE(SooperLooperGui::ConfigPanel, wxPanel) EVT_BUTTON (ID_CloseButton, SooperLooperGui::ConfigPanel::on_button) EVT_BUTTON (ID_ConnectButton, SooperLooperGui::ConfigPanel::on_button) EVT_BUTTON (ID_DisconnectButton, SooperLooperGui::ConfigPanel::on_button) EVT_BUTTON (ID_DefaultButton, SooperLooperGui::ConfigPanel::on_button) EVT_BUTTON (ID_CommitButton, SooperLooperGui::ConfigPanel::on_button) EVT_BUTTON (ID_RevertButton, SooperLooperGui::ConfigPanel::on_button) EVT_BUTTON (ID_MidiBrowseButton, SooperLooperGui::ConfigPanel::on_button) EVT_BUTTON (ID_SessionBrowseButton, SooperLooperGui::ConfigPanel::on_button) END_EVENT_TABLE() // ctor(s) ConfigPanel::ConfigPanel(MainPanel * mainpan, wxWindow * parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style , const wxString& name) : wxPanel ((wxWindow *)parent, id, pos, size, style, name), _parent (mainpan) { init(); } ConfigPanel::~ConfigPanel() { } void ConfigPanel::init() { wxBoxSizer * topsizer = new wxBoxSizer(wxVERTICAL); LoopControl::SpawnConfig & config = _parent->get_loop_control().get_default_spawn_config(); LoopControl::SpawnConfig & currconfig = _parent->get_loop_control().get_spawn_config(); wxStaticBox * shotBox = new wxStaticBox(this, -1, wxT("Current Connection"), wxDefaultPosition, wxDefaultSize); wxStaticBoxSizer * colsizer = new wxStaticBoxSizer(shotBox, wxVERTICAL); wxBoxSizer * rowsizer = new wxBoxSizer(wxHORIZONTAL); wxStaticText * statText = new wxStaticText(this, -1, wxT("Host:")); rowsizer->Add (statText, 0, wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL|wxALL, 2); _host_text = new wxTextCtrl(this, -1, wxT(""), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, wxT("KeyAware")); _host_text->SetValue (wxString::FromAscii(config.host.c_str())); _host_text->SetToolTip(wxT("hostname of engine to attempt connection to -- leave empty for local machine")); rowsizer->Add (_host_text, 1, wxALL|wxALIGN_CENTRE_VERTICAL, 2); statText = new wxStaticText(this, -1, wxT("Port:")); rowsizer->Add (statText, 0, wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL|wxALL, 2); _port_text = new wxTextCtrl(this, -1, wxT(""), wxDefaultPosition, wxSize(70, -1), 0, wxDefaultValidator, wxT("KeyAware")); _port_text->SetValue (wxString::Format(wxT("%ld"), config.port)); rowsizer->Add (_port_text, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); wxButton * butt = new wxButton(this, ID_DefaultButton, wxT("Defaults")); rowsizer->Add (butt, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); colsizer->Add (rowsizer, 0 , wxEXPAND|wxALL, 1); rowsizer = new wxBoxSizer(wxHORIZONTAL); statText = new wxStaticText(this, -1, wxT("Status:")); rowsizer->Add (statText, 0, wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL|wxALL, 2); _status_text = new wxTextCtrl(this, -1, wxT(""), wxDefaultPosition, wxSize(100, -1), wxTE_READONLY, wxDefaultValidator, wxT("KeyAware")); rowsizer->Add (_status_text, 1, wxALL|wxALIGN_CENTRE_VERTICAL, 2); colsizer->Add (rowsizer, 0 , wxEXPAND|wxALL, 1); rowsizer = new wxBoxSizer(wxHORIZONTAL); _connect_button = new wxButton(this, ID_ConnectButton, wxT("Connect")); rowsizer->Add (_connect_button, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); _force_spawn = new wxCheckBox(this, -1, wxT("start new engine")); rowsizer->Add (_force_spawn, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); cerr << "never spawn: " << config.never_spawn << endl; if (currconfig.never_spawn) { _force_spawn->Enable(false); } colsizer->Add (rowsizer, 0 , wxEXPAND|wxALL, 1); rowsizer = new wxBoxSizer(wxHORIZONTAL); _disconnect_button = new wxButton(this, ID_DisconnectButton, wxT("Disconnect")); rowsizer->Add (_disconnect_button, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); _shutdown_check = new wxCheckBox(this, -1, wxT("shutdown engine")); rowsizer->Add (_shutdown_check, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); if (currconfig.never_spawn) { _shutdown_check->Enable(false); } colsizer->Add (rowsizer, 0 , wxEXPAND|wxALL, 1); topsizer->Add (colsizer, 0, wxEXPAND|wxALL, 4); shotBox = new wxStaticBox(this, -1, wxT("Startup Default Configuration"), wxDefaultPosition, wxDefaultSize); colsizer = new wxStaticBoxSizer(shotBox, wxVERTICAL); rowsizer = new wxBoxSizer(wxHORIZONTAL); statText = new wxStaticText(this, -1, wxT("Host:")); rowsizer->Add (statText, 0, wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL|wxALL, 2); _def_host_text = new wxTextCtrl(this, -1, wxT(""), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, wxT("KeyAware")); _def_host_text->SetValue (wxString::FromAscii(config.host.c_str())); _def_host_text->SetToolTip(wxT("hostname of engine to attempt connection to -- leave empty for local machine")); rowsizer->Add (_def_host_text, 1, wxALL|wxALIGN_CENTRE_VERTICAL, 2); statText = new wxStaticText(this, -1, wxT("Port:")); rowsizer->Add (statText, 0, wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL|wxALL, 2); _def_port_text = new wxTextCtrl(this, -1, wxT(""), wxDefaultPosition, wxSize(70, -1), 0, wxDefaultValidator, wxT("KeyAware")); _def_port_text->SetValue (wxString::Format(wxT("%ld"), config.port)); rowsizer->Add (_def_port_text, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); _def_force_spawn = new wxCheckBox(this, -1, wxT("always start new engine")); rowsizer->Add (_def_force_spawn, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); colsizer->Add (rowsizer, 0 , wxEXPAND|wxALL, 1); wxFlexGridSizer * setsizer = new wxFlexGridSizer(0, 2, 4, 4); statText = new wxStaticText(this, -1, wxT("# Loops:")); setsizer->Add (statText, 0, wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL); _num_loops_spin = new wxSpinCtrl(this, -1, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 16, config.num_loops, wxT("KeyAware")); _num_loops_spin->SetValue (config.num_loops); setsizer->Add (_num_loops_spin, 0); statText = new wxStaticText(this, -1, wxT("# Channels per loop:")); setsizer->Add (statText, 0, wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL); rowsizer = new wxBoxSizer(wxHORIZONTAL); _num_channels_spin = new wxSpinCtrl(this, -1, wxT("2"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 16, config.num_channels, wxT("KeyAware")); _num_channels_spin->SetValue (config.num_channels); rowsizer->Add (_num_channels_spin, 0, wxRIGHT, 3); _discrete_io_check = new wxCheckBox(this, -1, wxT("Separate I/O ports")); rowsizer->Add (_discrete_io_check, 0, wxALIGN_CENTRE_VERTICAL); setsizer->Add (rowsizer, 0); statText = new wxStaticText(this, -1, wxT("Loop time (secs minimum):")); setsizer->Add (statText, 0, wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL); _secs_per_channel_spin = new wxSpinCtrl(this, -1, wxT("40"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 4, 1000, (int)config.mem_secs, wxT("KeyAware")); _secs_per_channel_spin->SetValue ((int)config.mem_secs); setsizer->Add (_secs_per_channel_spin, 0); statText = new wxStaticText(this, -1, wxT("JACK client name:")); setsizer->Add (statText, 0, wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL); _def_jack_name_text = new wxTextCtrl(this, -1, wxT(""), wxDefaultPosition, wxSize(100, -1), 0, wxDefaultValidator, wxT("KeyAware")); _def_jack_name_text->SetToolTip(wxT("JACK client base name -- leave blank for default")); _def_jack_name_text->SetValue (wxString::FromAscii(config.jack_name.c_str())); setsizer->Add (_def_jack_name_text, 0, wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL); colsizer->Add (setsizer, 0, wxEXPAND|wxALL, 3); rowsizer = new wxBoxSizer(wxHORIZONTAL); statText = new wxStaticText(this, -1, wxT("Default loaded session:")); rowsizer->Add (statText, 0, wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL|wxALL, 2); _def_session_text = new wxTextCtrl(this, -1, wxT(""), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, wxT("KeyAware")); _def_session_text->SetValue (wxString::FromAscii(config.session_path.c_str())); rowsizer->Add (_def_session_text, 1, wxALL|wxALIGN_CENTRE_VERTICAL, 2); _session_browse_button = new wxButton(this, ID_SessionBrowseButton, wxT("Browse...")); rowsizer->Add (_session_browse_button, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); colsizer->Add (rowsizer, 0, wxEXPAND|wxALL, 3); rowsizer = new wxBoxSizer(wxHORIZONTAL); statText = new wxStaticText(this, -1, wxT("Default MIDI bindings:")); rowsizer->Add (statText, 0, wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL|wxALL, 2); _def_midi_bind_text = new wxTextCtrl(this, -1, wxT(""), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, wxT("KeyAware")); _def_midi_bind_text->SetValue (wxString::FromAscii(config.midi_bind_path.c_str())); rowsizer->Add (_def_midi_bind_text, 1, wxALL|wxALIGN_CENTRE_VERTICAL, 2); _midi_browse_button = new wxButton(this, ID_MidiBrowseButton, wxT("Browse...")); rowsizer->Add (_midi_browse_button, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); colsizer->Add (rowsizer, 0, wxEXPAND|wxALL, 3); rowsizer = new wxBoxSizer(wxHORIZONTAL); rowsizer->Add (1,1,1); butt = new wxButton(this, ID_RevertButton, wxT("Revert")); rowsizer->Add (butt, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); butt = new wxButton(this, ID_CommitButton, wxT("Commit Changes")); rowsizer->Add (butt, 0, wxALL|wxALIGN_CENTRE_VERTICAL, 2); rowsizer->Add (1,1,1); colsizer->Add (rowsizer, 0, wxEXPAND|wxALL, 3); topsizer->Add (colsizer, 0, wxEXPAND|wxALL, 4); _parent->get_loop_control().LooperConnected.connect(mem_fun (*this, &ConfigPanel::looper_connected)); _parent->get_loop_control().Disconnected.connect(mem_fun (*this, &ConfigPanel::refresh_state)); refresh_state(); refresh_defaults(); this->SetAutoLayout( true ); // tell dialog to use sizer this->SetSizer( topsizer ); // actually set the sizer //topsizer->Fit( this ); // set size to minimum size as calculated by the sizer //topsizer->SetSizeHints( this ); // set size hints to honour mininum size } void ConfigPanel::refresh_state() { LoopControl & loopctrl = _parent->get_loop_control(); // refresh current connection _host_text->SetValue (loopctrl.get_engine_host()); _port_text->SetValue (wxString::Format(wxT("%d"), loopctrl.get_engine_port())); if (loopctrl.connected()) { _status_text->SetValue(wxT("Connected")); } else { _status_text->SetValue(wxT("Not Connected")); } } void ConfigPanel::refresh_defaults() { LoopControl & loopctrl = _parent->get_loop_control(); LoopControl::SpawnConfig & def_config = loopctrl.get_default_spawn_config(); // refresh defaults _def_host_text->SetValue (wxString::FromAscii(def_config.host.c_str())); _def_port_text->SetValue (wxString::Format(wxT("%ld"), def_config.port)); _def_force_spawn->SetValue (def_config.force_spawn); _num_loops_spin->SetValue( (int) def_config.num_loops); _num_channels_spin->SetValue( (int) def_config.num_channels); _discrete_io_check->SetValue (def_config.discrete_io); _secs_per_channel_spin->SetValue( (int) def_config.mem_secs); _def_jack_name_text->SetValue (wxString::FromAscii(def_config.jack_name.c_str())); _def_midi_bind_text->SetValue (wxString::FromAscii(def_config.midi_bind_path.c_str())); _def_session_text->SetValue (wxString::FromAscii(def_config.session_path.c_str())); } void ConfigPanel::looper_connected(int num) { // just refresh state refresh_state(); } void ConfigPanel::commit_changes() { LoopControl & loopctrl = _parent->get_loop_control(); LoopControl::SpawnConfig & config = loopctrl.get_default_spawn_config(); config.host = _def_host_text->GetValue().ToAscii(); _def_port_text->GetValue().ToLong(&config.port); config.num_loops = (long) _num_loops_spin->GetValue(); config.num_channels = (long) _num_channels_spin->GetValue(); config.discrete_io = (bool) _discrete_io_check->GetValue(); config.mem_secs = (double) _secs_per_channel_spin->GetValue(); config.jack_name = _def_jack_name_text->GetValue().ToAscii(); config.midi_bind_path = _def_midi_bind_text->GetValue().ToAscii(); config.session_path = _def_session_text->GetValue().ToAscii(); config.force_spawn = _def_force_spawn->GetValue(); _parent->save_rc(); } void ConfigPanel::on_button (wxCommandEvent &ev) { if (ev.GetId() == ID_CloseButton) { Show(false); } else if (ev.GetId() == ID_DisconnectButton) { wxString host = _host_text->GetValue(); wxString portstr = _port_text->GetValue(); _parent->get_loop_control().disconnect (_shutdown_check->GetValue()); // restore them _host_text->SetValue(host); _port_text->SetValue(portstr); } else if (ev.GetId() == ID_ConnectButton) { // set up info LoopControl & loopctrl = _parent->get_loop_control(); LoopControl::SpawnConfig & config = loopctrl.get_spawn_config(); long tmplong; wxString tmpval = _port_text->GetValue(); if (tmpval.ToLong (&tmplong)) { config.port = tmplong; } loopctrl.disconnect(); // first loopctrl.get_spawn_config().host = _host_text->GetValue().ToAscii(); config.num_loops = (long) _num_loops_spin->GetValue(); config.num_channels = (long) _num_channels_spin->GetValue(); config.mem_secs = (double) _secs_per_channel_spin->GetValue(); config.jack_name = _def_jack_name_text->GetValue().ToAscii(); config.midi_bind_path = _def_midi_bind_text->GetValue().ToAscii(); config.session_path = _def_session_text->GetValue().ToAscii(); config.force_spawn = false; config.never_spawn = !_force_spawn->GetValue(); loopctrl.connect (); //refresh_state(); } else if (ev.GetId() == ID_DefaultButton) { _host_text->SetValue(wxT("")); _port_text->SetValue (wxString::Format(wxT("%d"), DEFAULT_OSC_PORT)); } else if (ev.GetId() == ID_CommitButton) { commit_changes(); } else if (ev.GetId() == ID_RevertButton) { refresh_defaults(); } else if (ev.GetId() == ID_MidiBrowseButton) { _parent->get_keyboard().set_enabled(false); wxString filename = _parent->do_file_selector(wxT("Choose midi binding file to use"), wxT(""), wxT("*.slb"), wxOPEN|wxCHANGE_DIR); _parent->get_keyboard().set_enabled(true); if ( !filename.empty() ) { _def_midi_bind_text->SetValue(filename); } } else if (ev.GetId() == ID_SessionBrowseButton) { _parent->get_keyboard().set_enabled(false); wxString filename = _parent->do_file_selector(wxT("Choose session file to use"), wxT(""), wxT("*.slsess"), wxOPEN|wxCHANGE_DIR); //wxString filename = wxFileSelector(wxT("Choose session file to use"), wxT(""), wxT(""), wxT(""), wxT("*.slsess"), wxOPEN|wxCHANGE_DIR); _parent->get_keyboard().set_enabled(true); if ( !filename.empty() ) { _def_session_text->SetValue(filename); } } else { ev.Skip(); } } sooperlooper-1.7.3~dfsg0/src/gui/app_frame.cpp0000644000175000017500000002704412322010567020054 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include #include #include #include #include #include #include #include #include "version.h" #include "app_frame.hpp" #include "main_panel.hpp" #include "gui_app.hpp" #include "keyboard_target.hpp" #include "help_window.hpp" #include "prefs_dialog.hpp" #include "loop_control.hpp" #include "pixmaps/sl_splash.xpm" #include #include using namespace SooperLooper; using namespace SooperLooperGui; using namespace std; enum { ID_UpdateTimer = 9000, ID_AboutMenu, ID_HelpTipsMenu, ID_PreferencesMenu, ID_ConnectionMenu, ID_KeybindingsMenu, ID_MidiBindingsMenu, ID_LoadSession, ID_SaveSession, ID_SaveSessionAudio, ID_Quit, ID_QuitStop, ID_AddLoop, ID_AddMonoLoop, ID_AddStereoLoop, ID_RemoveLoop, ID_TempoSlider, ID_SyncChoice, ID_EighthSlider, ID_QuantizeChoice, ID_RoundCheck, ID_RelSyncCheck, ID_TapTempoButton, ID_TapTempoTimer, ID_AddCustomLoop, ID_XfadeSlider, ID_DryControl, ID_WetControl, ID_InGainControl, ID_StayOnTop, }; BEGIN_EVENT_TABLE(AppFrame, wxFrame) EVT_CLOSE(AppFrame::OnClose) EVT_ACTIVATE (AppFrame::OnActivate) EVT_ACTIVATE_APP (AppFrame::OnActivate) EVT_MENU(ID_Quit, AppFrame::OnQuit) EVT_MENU(ID_QuitStop, AppFrame::OnQuit) EVT_MENU(ID_AboutMenu, AppFrame::on_about) EVT_MENU(ID_HelpTipsMenu, AppFrame::on_help) EVT_MENU(ID_AddLoop, AppFrame::on_add_loop) EVT_MENU(ID_AddMonoLoop, AppFrame::on_add_loop) EVT_MENU(ID_AddStereoLoop, AppFrame::on_add_loop) EVT_MENU(ID_AddCustomLoop, AppFrame::on_add_custom_loop) EVT_MENU(ID_RemoveLoop, AppFrame::on_remove_loop) EVT_MENU(ID_PreferencesMenu, AppFrame::on_view_menu) EVT_MENU(ID_KeybindingsMenu, AppFrame::on_view_menu) EVT_MENU(ID_MidiBindingsMenu, AppFrame::on_view_menu) EVT_MENU(ID_ConnectionMenu, AppFrame::on_view_menu) EVT_MENU(ID_LoadSession, AppFrame::on_load_session) EVT_MENU(ID_SaveSession, AppFrame::on_save_session) EVT_MENU(ID_SaveSessionAudio, AppFrame::on_save_session_audio) EVT_MENU(ID_StayOnTop, AppFrame::on_view_menu) END_EVENT_TABLE() AppFrame::AppFrame(const wxString& title, const wxPoint& pos, const wxSize& size, bool stay_on_top, bool embedded) : wxFrame((wxFrame *)NULL, -1, title, pos, size, // embedded ? (stay_on_top ? wxSTAY_ON_TOP : 0) : (wxDEFAULT_FRAME_STYLE | (stay_on_top ? wxSTAY_ON_TOP : 0)) embedded ? (wxRESIZE_BORDER | wxCAPTION | (stay_on_top ? wxSTAY_ON_TOP : 0)) : (wxDEFAULT_FRAME_STYLE | (stay_on_top ? wxSTAY_ON_TOP : 0)) // (wxDEFAULT_FRAME_STYLE | (stay_on_top ? wxSTAY_ON_TOP : 0)) , wxT("sooperlooper")), _embedded(embedded) { _prefs_dialog = 0; _help_window = 0; _toolbar = 0; #ifdef __WXMAC__ if (!_embedded) { wxApp::s_macAboutMenuItemId = ID_AboutMenu; wxApp::s_macPreferencesMenuItemId = ID_PreferencesMenu; wxApp::s_macExitMenuItemId = ID_QuitStop; wxApp::s_macHelpMenuTitleName = wxT("&Help"); } #endif init(); } AppFrame::~AppFrame() { _mainpanel->save_rc(); //wxLogWarning(wxT("appframe destroy")); } void AppFrame::init() { _topsizer = new wxBoxSizer(wxVERTICAL); SetBackgroundColour(*wxBLACK); SetThemeEnabled(false); wxFont sliderFont = *wxSMALL_FONT; _mainpanel = new MainPanel(this, -1, wxDefaultPosition, wxDefaultSize); _mainpanel->PreferredSizeChange.connect (mem_fun (*this, &AppFrame::on_preferred_size)); _mainpanel->set_force_local(_embedded); if (!_embedded) { wxMenuBar *menuBar = new wxMenuBar(); wxMenu *menuFile = new wxMenu(wxT("")); menuFile->Append(ID_LoadSession, wxT("Load Session\tCtrl-L"), wxT("Load session")); menuFile->Append(ID_SaveSession, wxT("Save Session\tCtrl-E"), wxT("Save session")); menuFile->Append(ID_SaveSessionAudio, wxT("Save Session with Audio\tCtrl-Shift-P"), wxT("Save session with Audio")); menuFile->AppendSeparator(); //menuFile->Append(ID_AddLoop, wxT("Add Default Loop"), wxT("Add one default loop")); menuFile->Append(ID_AddMonoLoop, wxT("Add Mono Loop\tCtrl-1"), wxT("Add one default mono loop")); menuFile->Append(ID_AddStereoLoop, wxT("Add Stereo Loop\tCtrl-2"), wxT("Add one default stereo loop")); menuFile->Append(ID_AddCustomLoop, wxT("Add Custom Loop(s)...\tCtrl-A"), wxT("Add one or more custom loops, where loop memory can be specified")); menuFile->Append(ID_RemoveLoop, wxT("Remove Last Loop\tCtrl-D"), wxT("Remove last loop")); menuFile->AppendSeparator(); menuFile->Append(ID_PreferencesMenu, wxT("&Preferences...\tCtrl-P"), wxT("Preferences...")); #ifndef __WXMAC__ menuFile->AppendSeparator(); #endif menuFile->Append(ID_Quit, wxT("Quit but Leave Engine Running\tCtrl-Shift-Q"), wxT("Exit from GUI and leave engine running")); menuFile->Append(ID_QuitStop, wxT("Quit and Stop Engine\tCtrl-Q"), wxT("Exit from GUI and stop engine")); menuBar->Append(menuFile, wxT("&Session")); //wxMenu *menuView = new wxMenu(wxT("")); //menuBar->Append(menuView, wxT("&View")); wxMenu *menuHelp = new wxMenu(wxT("")); menuHelp->Append(ID_HelpTipsMenu, wxT("&Usage Tips..."), wxT("Show Usage Tips window")); menuHelp->Append(ID_AboutMenu, wxT("&About..."), wxT("Show about dialog")); menuBar->Append(menuHelp, wxT("&Help")); // ... and attach this menu bar to the frame SetMenuBar(menuBar); } else { int xSize = 8; int ySize = 8; wxImage * image = new wxImage(xSize, ySize); if (!image->HasAlpha()){ image->SetAlpha(); } memset((void*)image->GetAlpha(), 0x0, xSize * ySize ); wxBitmap bitmap(*image, 32); delete image; wxToolBar * toolbar = new wxToolBar(this, wxID_ANY, wxDefaultPosition, wxSize(-1, 24), wxTB_TEXT/*|wxTB_NOICONS*/); toolbar->SetToolSeparation(10); toolbar->AddTool(ID_AddMonoLoop, wxT("Add Mono"), bitmap, wxNullBitmap, wxITEM_NORMAL, wxT("Add one default mono loop")); toolbar->AddTool(ID_AddStereoLoop, wxT("Add Stereo"), bitmap, wxNullBitmap, wxITEM_NORMAL, wxT("Add one default stereo loop")); toolbar->AddTool(ID_AddCustomLoop, wxT("Add Custom"), bitmap , wxNullBitmap, wxITEM_NORMAL, wxT("Add one or more custom loops, where loop memory can be specified")); toolbar->AddTool(ID_RemoveLoop, wxT("Remove Last"), bitmap, wxNullBitmap, wxITEM_NORMAL, wxT("Remove last loop")); #if wxCHECK_VERSION(2,9,0) toolbar->AddStretchableSpace(); #endif toolbar->AddTool(ID_LoadSession, wxT("Load"), bitmap, wxNullBitmap, wxITEM_NORMAL, wxT("Load session...")); toolbar->AddTool(ID_SaveSession, wxT("Save"), bitmap, wxNullBitmap, wxITEM_NORMAL, wxT("Save session...")); toolbar->AddSeparator(); toolbar->AddTool(ID_PreferencesMenu, wxT("Prefs"), bitmap, wxNullBitmap, wxITEM_NORMAL, wxT("Preferences...")); toolbar->Realize(); //Connect(ID_AddMonoLoop, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(AppFrame::on_add_loop)); toolbar->SetSize(0, 0, -1, 24); _toolbar = toolbar; _topsizer->Add(toolbar, 0, wxEXPAND); } _topsizer->Add (_mainpanel, 1, wxEXPAND); this->SetAutoLayout( true ); // tell dialog to use sizer this->SetSizer( _topsizer ); // actually set the sizer _topsizer->Fit( this ); // set size to minimum size as calculated by the sizer _topsizer->SetSizeHints( this ); // set size hints to honour mininum size } void AppFrame::OnActivate(wxActivateEvent &ev) { if (ev.GetActive()) { _mainpanel->get_keyboard().set_enabled (true); } else { _mainpanel->get_keyboard().set_enabled (false); } ev.Skip(); } void AppFrame::on_preferred_size(int w, int h) { int topheight = 0; #ifndef __WXMAC__ if (GetMenuBar()) { topheight += GetMenuBar()->GetSize().GetHeight(); } #else topheight += 32; if (_embedded && _toolbar) { topheight += _toolbar->GetSize().GetHeight(); } #endif //if (!_embedded) { SetSize (w, h + topheight); //} } void AppFrame::OnClose(wxCloseEvent &event) { // send quit command to looper if we spawned this engine _mainpanel->do_close(_mainpanel->get_loop_control().we_spawned()); Destroy(); } void AppFrame::OnQuit(wxCommandEvent& event) { int id = event.GetId(); if (id == ID_Quit) { _mainpanel->do_close(false); Destroy(); } else if (id == ID_QuitStop) { // send quit command to looper _mainpanel->do_close(true); Destroy(); } } void AppFrame::on_add_loop (wxCommandEvent &ev) { int id = ev.GetId(); if (id == ID_AddLoop) { _mainpanel->do_add_loop (); } else if (id == ID_AddMonoLoop) { _mainpanel->do_add_loop ("mono"); } else if (id == ID_AddStereoLoop) { _mainpanel->do_add_loop ("stereo"); } } void AppFrame::on_add_custom_loop (wxCommandEvent &ev) { _mainpanel->do_add_custom_loop(); } void AppFrame::on_remove_loop (wxCommandEvent &ev) { _mainpanel->do_remove_loop(); } void AppFrame::on_view_menu (wxCommandEvent &ev) { if (ev.GetId() == ID_PreferencesMenu) { if (!_prefs_dialog) { _prefs_dialog = new PrefsDialog(_mainpanel, -1, wxT("SooperLooper Preferences"), wxDefaultPosition, wxSize(230, 410)); //_prefs_dialog->SetSize (230,410); } else if (!_prefs_dialog->IsShown()) { _prefs_dialog->refresh_state(); } _prefs_dialog->Show(true); _prefs_dialog->Raise(); } } void AppFrame::on_about (wxCommandEvent &ev) { // construct splash wxBitmap bitmap(sl_splash_xpm); // add version info { wxMemoryDC mdc; mdc.SelectObject(bitmap); int w,h; wxString vstr = wxString::Format(wxT("v %s"), wxString::FromAscii(sooperlooper_version).c_str()); // mdc.SetFont(*wxSWISS_FONT); mdc.SetTextForeground(*wxWHITE); mdc.SetTextBackground(*wxBLACK); mdc.GetTextExtent(vstr, &w, &h); mdc.DrawText(vstr, bitmap.GetWidth() / 2 - (w/2), 148); } wxSplashScreen* splash = new wxSplashScreen(bitmap, wxSPLASH_CENTRE_ON_PARENT|wxSPLASH_NO_TIMEOUT, 6000, this, -1, wxDefaultPosition, wxDefaultSize, wxSTAY_ON_TOP); splash->SetTitle(wxT("About SooperLooper")); } void AppFrame::on_help (wxCommandEvent &ev) { // for now just refer to website if (!_help_window) { _help_window = new HelpWindow(this, -1, wxT("Online Help")); } _help_window->Show(true); _help_window->Raise(); } void AppFrame::on_load_session (wxCommandEvent &ev) { _mainpanel->do_load_session(); } void AppFrame::on_save_session (wxCommandEvent &ev) { _mainpanel->do_save_session(); } void AppFrame::on_save_session_audio (wxCommandEvent &ev) { _mainpanel->do_save_session(true); } sooperlooper-1.7.3~dfsg0/src/gui/._keys_panel.cpp0000644000175000017500000000025312271475435020476 0ustar miramiraMac OS X  2y«ATTR«œœcom.apple.TextEncodingutf-8;134217984sooperlooper-1.7.3~dfsg0/src/gui/xml++.hpp0000644000175000017500000000655211754453701017067 0ustar miramira/* xml++.h * libxml++ and this file are copyright (C) 2000 by Ari Johnson, and * are covered by the GNU Lesser General Public License, which should be * included with libxml++ as the file COPYING. */ #include #include #include #include #include #include #include #ifndef __XMLPP_H #define __XMLPP_H using std::string; using std::map; using std::list; class XMLTree; class XMLNode; typedef list XMLNodeList; typedef XMLNodeList::iterator XMLNodeIterator; typedef XMLNodeList::const_iterator XMLNodeConstIterator; class XMLProperty; typedef list XMLPropertyList; typedef XMLPropertyList::iterator XMLPropertyIterator; typedef XMLPropertyList::const_iterator XMLPropertyConstIterator; typedef map XMLPropertyMap; class XMLTree { private: string _filename; XMLNode *_root; int _compression; bool _initialized; public: XMLTree() : _filename(), _root(0), _compression(0), _initialized(false) { }; XMLTree(const string &fn) : _filename(fn), _root(0), _compression(0), _initialized(false) { read(); }; XMLTree(const XMLTree *); ~XMLTree(); bool initialized() const { return _initialized; }; XMLNode *root() const { return _root; }; XMLNode *set_root(XMLNode *n) { return _root = n; }; const string & filename() const { return _filename; }; const string & set_filename(const string &fn) { return _filename = fn; }; int compression() const { return _compression; }; int set_compression(int); bool read(); bool read(const string &fn) { set_filename(fn); return read(); }; bool read_buffer(const string &); bool write() const; bool write(const string &fn) { set_filename(fn); return write(); }; const string & write_buffer() const; }; class XMLNode { private: bool _initialized; string _name; bool _is_content; string _content; XMLNodeList _children; XMLPropertyList _proplist; XMLPropertyMap _propmap; public: XMLNode(const string &); XMLNode(const string &, const string &); XMLNode(const XMLNode&); ~XMLNode(); bool initialized() const { return _initialized; }; const string name() const { return _name; }; bool is_content() const { return _is_content; }; const string & content() const { return _content; }; const string & set_content(const string &); XMLNode *add_content(const string & = string()); const XMLNodeList & children(const string & = string()) const; XMLNode *add_child(const string &); XMLNode *add_child_copy(const XMLNode&); void add_child_nocopy (XMLNode&); const XMLPropertyList & properties() const { return _proplist; }; XMLProperty *property(const string &); const XMLProperty *property(const string &n) const { return ((XMLNode *) this)->property(n); }; XMLProperty *add_property(const string &, const string & = string()); void remove_property(const string &); XMLNode * find_named_node (const string & name); /** Remove all nodes with the name passed to remove_nodes */ void remove_nodes(const string &); }; class XMLProperty { private: string _name; string _value; public: XMLProperty(const string &n, const string &v = string()) : _name(n), _value(v) { }; const string & name() const { return _name; }; const string & value() const { return _value; }; const string & set_value(const string &v) { return _value = v; }; }; #endif /* __XML_H */ sooperlooper-1.7.3~dfsg0/src/gui/time_panel.cpp0000644000175000017500000002434111754453701020245 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include #include #include "time_panel.hpp" #include "loop_control.hpp" using namespace SooperLooperGui; using namespace std; BEGIN_EVENT_TABLE(TimePanel, wxPanel) EVT_PAINT(TimePanel::OnPaint) EVT_SIZE(TimePanel::OnSize) END_EVENT_TABLE() TimePanel::TimePanel(LoopControl * control, wxWindow * parent, wxWindowID id, const wxPoint& pos, const wxSize& size) : wxPanel(parent, id, pos, size), _loop_control(control), _index(0), _width(1), _height(1) { _backing_store = 0; update_size(); init(); draw_area(); } TimePanel::~TimePanel() { _memdc.SelectObject(wxNullBitmap); if (_backing_store) { delete _backing_store; } delete _pos_bm; delete _cyc_bm; delete _state_bm; delete _other_bm; delete _wait_bm; } void TimePanel::init() { SetThemeEnabled(false); _curr_ccnt = -1; _curr_currc = -1; _transbrush.SetStyle(wxTRANSPARENT); _bgcolor.Set(34, 49, 71); SetBackgroundColour(_bgcolor); _bgbrush.SetColour(_bgcolor); _pos_font.SetFamily(wxSWISS); _pos_font.SetStyle(wxNORMAL); _pos_font.SetWeight(wxBOLD); _pos_color.Set(244, 255, 158); _pos_str = wxT("00:00.00"); _pos_font.SetPointSize(10); normalize_font_size(_pos_font, 110, 40, wxT("00:00.00")); _pos_bm = new wxBitmap(110,25); _posdc.SelectObject(*_pos_bm); _posdc.SetFont(_pos_font); _posdc.SetTextForeground(_pos_color); _posdc.SetBackground (_bgbrush); _cyc_font.SetFamily(wxSWISS); _cyc_font.SetStyle(wxNORMAL); _cyc_font.SetWeight(wxNORMAL); _cyc_color.Set(154, 255, 168); _cyc_font.SetPointSize(10); normalize_font_size(_cyc_font, 20, 20, wxT("00")); _cyc_cnt_str = wxT("-"); _cyc_curr_str = wxT("-"); _cyc_bm = new wxBitmap(20,42); _cycdc.SelectObject(*_cyc_bm); _cycdc.SetFont(_cyc_font); _cycdc.SetTextForeground(_cyc_color); _cycdc.SetPen(*wxWHITE_PEN); _cycdc.SetBackground (_bgbrush); _state_font.SetFamily(wxSWISS); _state_font.SetWeight(wxBOLD); _state_font.SetStyle(wxNORMAL); _state_color.Set(154, 255, 168); _state_str = wxT("not connected"); _state_font.SetPointSize(10); normalize_font_size(_state_font, 110, 30, wxT("ooooooooooo")); _state_bm = new wxBitmap(110,20); _statedc.SelectObject(*_state_bm); _statedc.SetFont(_state_font); _statedc.SetTextForeground(_state_color); _statedc.SetBackground (_bgbrush); _time_font.SetFamily(wxSWISS); _time_font.SetStyle(wxNORMAL); _time_font.SetWeight(wxNORMAL); _time_color.Set(244, 255, 178); _time_font.SetPointSize(7); normalize_font_size(_time_font, 45, 20, wxT("00:00.00")); _tot_str = wxT("00:00.00"); _cyc_str = wxT("00:00.00"); _rem_str = wxT("00:00.00"); _sw = _sh = _tw = _th = _pw = _ph = _mh = _mw = _ww = _wh = 0; _other_bm = new wxBitmap(90,60); _otherdc.SelectObject(*_other_bm); _otherdc.SetFont(_time_font); _otherdc.SetBackground (_bgbrush); _legend_color.Set(225, 225, 225); _wait_bm = new wxBitmap(110,20); _waitdc.SelectObject(*_wait_bm); _waitdc.SetFont (_time_font); _waitdc.SetBackground (_bgbrush); _waitdc.SetTextForeground(_legend_color); calc_text_extents(); _waiting = false; } void TimePanel::normalize_font_size(wxFont & fnt, int width, int height, wxString fitstr) { int fontw, fonth, desch, lead, lastw=0, lastsize = fnt.GetPointSize(); GetTextExtent(fitstr, &fontw, &fonth, &desch, &lead, &fnt); //printf ("Text extent for %s: %d %d %d %d sz: %d\n", fitstr.c_str(), fontw, desch, lead, fonth, fnt.GetPointSize()); while (fonth < height && fontw < width) { lastsize = fnt.GetPointSize(); fnt.SetPointSize(fnt.GetPointSize() + 1); GetTextExtent(fitstr, &fontw, &fonth, &desch, &lead, &fnt); //printf ("Text extent for buttfont: %d %d %d %d sz: %d\n", fontw, fonth, desch, lead, fnt.GetPointSize()); //if (lastw == fontw) break; // safety lastw = fontw; } fnt.SetPointSize(lastsize); } void TimePanel::format_time(wxString & timestr, float val) { // seconds int minutes = (int) (val / 60.0f); float secs = fabs(val - minutes*60.0f); timestr.Printf(wxT("%02d:%05.2f"), minutes, secs); } void TimePanel::update_cyc() { float llen, lpos, clen; _loop_control->get_value(_index, wxT("loop_len"), llen); _loop_control->get_value(_index, wxT("loop_pos"), lpos); _loop_control->get_value(_index, wxT("cycle_len"), clen); if (clen > 0.0f) { int cntc = (int) roundf (llen / clen); int currc = (int) ceilf (lpos / (clen)); if (currc > cntc) currc = cntc; if (cntc != _curr_ccnt || currc != _curr_currc) { _curr_ccnt = cntc; _curr_currc = currc; _cyc_cnt_str.Printf(wxT("%2d"), cntc); _cyc_curr_str.Printf(wxT("%2d"), currc); draw_cycle(); } } else { _cyc_curr_str.Printf(wxT("-")); _cyc_cnt_str.Printf(wxT("-")); if (_curr_currc != 0 || _curr_ccnt != 0) { _curr_currc = 0; _curr_ccnt = 0; draw_cycle(); } } } bool TimePanel::update_time() { float val; bool ret = false; bool up_cyc = false; bool up_other = false; bool up_pos = false; bool up_state = false; if (_loop_control->is_updated(_index, wxT("loop_pos"))) { _loop_control->get_value(_index, wxT("loop_pos"), val); format_time (_pos_str, val); ret = true; up_cyc = true; up_pos = true; } if (_loop_control->is_updated(_index, wxT("loop_len"))) { _loop_control->get_value(_index, wxT("loop_len"), val); format_time (_tot_str, val); up_cyc = true; up_other = true; ret = true; } if (_loop_control->is_updated(_index, wxT("cycle_len"))) { _loop_control->get_value(_index, wxT("cycle_len"), val); format_time (_cyc_str, val); up_cyc = true; ret = true; } if (_loop_control->is_updated(_index, wxT("free_time"))) { _loop_control->get_value(_index, wxT("free_time"), val); format_time (_rem_str, val); ret = true; } if (_loop_control->is_updated(_index, wxT("total_time"))) { _loop_control->get_value(_index, wxT("total_time"), val); format_time (_mem_str, val); ret = true; up_other = true; } if (_loop_control->is_updated(_index, wxT("waiting"))) { _loop_control->get_value(_index, wxT("waiting"), val); _waiting = (val > 0.0f) ? true : false; ret = true; up_state = true; } if (_loop_control->is_updated(_index, wxT("state"))) { SooperLooper::LooperState tmpstate; _loop_control->get_state(_index, tmpstate, _state_str); calc_text_extents(); ret = true; up_state = true; } if (up_cyc) { update_cyc(); } if (up_other) { draw_other(); } if (up_state) { draw_state(); } if (up_pos) { draw_pos(); } return ret; } void TimePanel::update_size() { GetClientSize(&_width, &_height); if (_width > 0 && _height > 0) { _memdc.SelectObject (wxNullBitmap); if (_backing_store) { delete _backing_store; } _backing_store = new wxBitmap(_width, _height); _memdc.SelectObject(*_backing_store); } } void TimePanel::OnSize (wxSizeEvent &ev) { update_size(); do_redraw(); ev.Skip(); } void TimePanel::do_redraw () { if (!_backing_store) { return; } draw_area(); Refresh(false); } void TimePanel::OnPaint(wxPaintEvent &ev) { wxPaintDC pdc(this); // if (!_backing_store) { // return; // } // draw_area(_memdc); pdc.Blit(0, 0, _width, _height, &_memdc, 0, 0); } void TimePanel::calc_text_extents() { _posdc.GetTextExtent(_pos_str, &_pw, &_ph); _statedc.GetTextExtent(_state_str, &_sw, &_sh); _otherdc.GetTextExtent(_tot_str, &_tw, &_th); _tw += 3; _otherdc.GetTextExtent(wxT("mem"), &_mw, &_mh); _waitdc.GetTextExtent(wxT("waiting for sync"), &_ww, &_wh); } void TimePanel::draw_other() { // other times _otherdc.SetTextForeground(_time_color); _otherdc.Clear(); _otherdc.DrawText (_tot_str, _other_bm->GetWidth() - _tw, 0); _otherdc.DrawText (_cyc_str, _other_bm->GetWidth() - _tw, 2 + _th); // // rem time //_otherdc.DrawText (_rem_str, _other_bm->GetWidth() - tw, 10 + th + th); _otherdc.DrawText (_mem_str, _other_bm->GetWidth() - _tw, 10 + _th + _th); // legends _otherdc.SetTextForeground(_legend_color); _otherdc.DrawText (wxT("tot"), _other_bm->GetWidth() - _tw - _mw + 6, 0); _otherdc.DrawText (wxT("cyc"), _other_bm->GetWidth() - _tw - _mw + 6, 2 + _th); _otherdc.DrawText (wxT("mem"), _other_bm->GetWidth() - _tw - _mw - 5, 10 + _th + _th); _memdc.Blit (120, 5, _other_bm->GetWidth(), _other_bm->GetHeight(), &_otherdc, 0, 0); // sadly we have to draw cycle too, because it can overlap draw_cycle(); } void TimePanel::draw_pos() { _posdc.Clear(); _posdc.DrawText (_pos_str, 0, 0); _memdc.Blit (5,3, _pos_bm->GetWidth(), _pos_bm->GetHeight(), &_posdc, 0, 0); } void TimePanel::draw_state() { if (!_waiting) { _waitdc.Clear(); _memdc.Blit (5, _ph , _ww, _wh, &_waitdc, 0, 0); } _statedc.Clear(); _statedc.DrawText (_state_str, 0, 0); _memdc.Blit (5, _height - _sh - 5, _state_bm->GetWidth(), _state_bm->GetHeight(), &_statedc, 0, 0); // waiting string if (_waiting) { _waitdc.Clear(); //dc.SetFont(_legend_font); //dc.DrawText (wxT("waiting for sync"), 5, _height - sh - 17); _waitdc.DrawText (wxT("waiting for sync"), 0, 0); _memdc.Blit (5, _ph , _ww, _wh, &_waitdc, 0, 0); } } void TimePanel::draw_cycle() { // draw it _cycdc.Clear(); _cycdc.DrawText (_cyc_curr_str, 0, 0); _cycdc.DrawText (_cyc_cnt_str, 0, 18); _cycdc.DrawLine (5, 17, 13, 17); _memdc.Blit (_pos_bm->GetWidth() + 3, 2, _cyc_bm->GetWidth(), _cyc_bm->GetHeight(), &_cycdc, 0, 0); } void TimePanel::draw_area() { //wxCoord sw=0, sh=0, tw=0, th=0, w=0, h=0; // wxCoord cw=0, ch=0, rw=0, rh=0; _memdc.SetBackground(_bgbrush); _memdc.Clear(); // main pos draw_pos(); // state draw_state(); // other times draw_other(); draw_cycle(); } sooperlooper-1.7.3~dfsg0/src/gui/._gui_app.cpp0000644000175000017500000000025312316066013017754 0ustar miramiraMac OS X  2y«ATTR«œœcom.apple.TextEncodingutf-8;134217984sooperlooper-1.7.3~dfsg0/src/gui/spin_box.cpp0000644000175000017500000003560311754453701017754 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include "spin_box.hpp" using namespace SooperLooperGui; using namespace std; // Convert a value in dB's to a coefficent #define DB_CO(g) ((g) > -144.0 ? pow(10.0, (g) * 0.05) : 0.0) #define CO_DB(v) (20.0 * log10(v)) static inline double gain_to_slider_position (double g) { if (g == 0) return 0; //return pow((6.0*log(g)/log(2.0)+192.0)/198.0, 8.0); return pow((6.0*log(g)/log(2.0)+198.0)/198.0, 8.0); } static inline double slider_position_to_gain (double pos) { if (pos == 0) { return 0.0; } /* XXX Marcus writes: this doesn't seem right to me. but i don't have a better answer ... */ //return pow (2.0,(sqrt(sqrt(sqrt(pos)))*198.0-192.0)/6.0); return pow (2.0,(sqrt(sqrt(sqrt(pos)))*198.0-198.0)/6.0); } enum { ID_TextCtrl = 8000, ID_EditMenuOp, ID_DefaultMenuOp, ID_BindMenuOp, ID_UpdateTimer }; BEGIN_EVENT_TABLE(SpinBox, wxWindow) EVT_SIZE(SpinBox::OnSize) EVT_PAINT(SpinBox::OnPaint) EVT_MOUSE_EVENTS(SpinBox::OnMouseEvents) EVT_MOUSEWHEEL (SpinBox::OnMouseEvents) //EVT_TEXT (ID_TextCtrl, SpinBox::on_text_event) EVT_TEXT_ENTER (ID_TextCtrl, SpinBox::on_text_event) EVT_MENU (ID_EditMenuOp , SpinBox::on_menu_events) EVT_MENU (ID_DefaultMenuOp , SpinBox::on_menu_events) EVT_MENU (ID_BindMenuOp , SpinBox::on_menu_events) EVT_TIMER (ID_UpdateTimer, SpinBox::on_update_timer) EVT_KILL_FOCUS (SpinBox::OnFocusEvent) END_EVENT_TABLE() SpinBox::SpinBox(wxWindow * parent, wxWindowID id, float lb, float ub, float val, bool midibindable, const wxPoint& pos, const wxSize& size) : wxWindow(parent, id, pos, size) { _lower_bound = lb; _upper_bound = ub; _default_val = _value = val; _backing_store = 0; _dragging = false; _decimal_digits = 1; _text_ctrl = 0; _ignoretext = false; _oob_flag = false; _showval_flag = true; _increment = 1.0f; _direction = 0.0f; _bgcolor.Set(30,30,30); _disabled_bgcolor.Set(60,60,60); _bgbrush.SetColour (_bgcolor); SetBackgroundColour (_bgcolor); SetThemeEnabled(false); _valuecolor.Set(244, 255, 178); _textcolor = *wxWHITE; _barcolor.Set(14, 50, 100); _overbarcolor.Set(20, 50, 80); _barbrush.SetColour(_bgcolor); //_bgbordercolor.Set(30,30,30); _bordercolor.Set(67, 83, 103); _borderpen.SetColour(_bordercolor); _borderpen.SetWidth(1); _borderbrush.SetColour(_bgcolor); _linebrush.SetColour(wxColour(154, 245, 168)); _scale_mode = LinearMode; _snap_mode = NoSnap; _popup_menu = new wxMenu(wxT("")); _popup_menu->Append ( new wxMenuItem(_popup_menu, ID_EditMenuOp, wxT("Edit"))); _popup_menu->Append ( new wxMenuItem(_popup_menu, ID_DefaultMenuOp, wxT("Set to default"))); if (midibindable) { _popup_menu->AppendSeparator(); _popup_menu->Append ( new wxMenuItem(_popup_menu, ID_BindMenuOp, wxT("Learn MIDI Binding"))); } _update_timer = new wxTimer(this, ID_UpdateTimer); update_size(); } SpinBox::~SpinBox() { _memdc.SelectObject(wxNullBitmap); if (_backing_store) { delete _backing_store; } } bool SpinBox::SetFont(const wxFont & fnt) { bool ret = wxWindow::SetFont(fnt); _memdc.SetFont(fnt); return ret; } void SpinBox::set_snap_mode (SnapMode md) { if (md != _snap_mode) { _snap_mode = md; } } void SpinBox::set_scale_mode (ScaleMode mode) { if (mode != _scale_mode) { _scale_mode = mode; update_value_str(); Refresh(false); } } void SpinBox::set_bounds (float lb, float ub) { if (_lower_bound != lb || _upper_bound != ub) { _lower_bound = lb; _upper_bound = ub; // force value to within if (_value < _lower_bound) { _value = _lower_bound; update_value_str(); Refresh(false); } else if (_value > _upper_bound) { _value = _upper_bound; update_value_str(); Refresh(false); } } } void SpinBox::set_label (const wxString & label) { _label_str = label; Refresh(false); } void SpinBox::set_units (const wxString & units) { _units_str = units; update_value_str(); Refresh(false); } void SpinBox::set_decimal_digits (int val) { _decimal_digits = val; update_value_str(); Refresh(false); } void SpinBox::set_value (float val) { float newval = val; if (_scale_mode == ZeroGainMode) { newval = gain_to_slider_position (val); } // if (_snap_mode == IntegerSnap) { // newval = nearbyintf (newval); // } if (!_oob_flag) { newval = min (newval, _upper_bound); newval = max (newval, _lower_bound); } if (newval != _value) { _value = newval; update_value_str(); Refresh(false); } } float SpinBox::get_value () { if (_scale_mode == ZeroGainMode) { return slider_position_to_gain(_value); } else { return _value; } } void SpinBox::update_value_str() { if (_scale_mode == ZeroGainMode) { float gain = slider_position_to_gain(_value); if (gain == 0) { _value_str.Printf(wxT("-inf %s"), _units_str.c_str()); } else { _value_str.Printf(wxT("%.*f %s"), _decimal_digits, CO_DB(gain), _units_str.c_str()); } } else { _value_str.Printf(wxT("%.*f %s"), _decimal_digits, _value, _units_str.c_str()); } } wxString SpinBox::get_precise_value_str() { wxString valstr; if (_scale_mode == ZeroGainMode) { float gain = slider_position_to_gain(_value); if (gain == 0) { valstr.Printf(wxT("-inf")); } else if (_snap_mode == IntegerSnap) { valstr.Printf(wxT("%g"), CO_DB(gain)); } else { valstr.Printf(wxT("%.8f"), CO_DB(gain)); } } else { if (_snap_mode == IntegerSnap) { valstr.Printf(wxT("%g"), _value); } else { valstr.Printf(wxT("%.8f"), _value); } } return valstr; } void SpinBox::set_bg_color (const wxColour & col) { _bgcolor = col; _bgbrush.SetColour (col); SetBackgroundColour (col); Refresh(false); } void SpinBox::set_disabled_bg_color (const wxColour & col) { _disabled_bgcolor = col; if (!IsEnabled()) { _bgbrush.SetColour (col); SetBackgroundColour (col); Refresh(false); } } void SpinBox::set_text_color (const wxColour & col) { _textcolor = col; Refresh(false); } void SpinBox::set_border_color (const wxColour & col) { _bordercolor = col; _borderbrush.SetColour (col); Refresh(false); } void SpinBox::set_bar_color (const wxColour & col) { _barcolor = col; _barbrush.SetColour (col); Refresh(false); } void SpinBox::update_size() { GetClientSize(&_width, &_height); if (_width > 0 && _height > 0) { _val_scale = (_upper_bound - _lower_bound) / (_width); _memdc.SelectObject (wxNullBitmap); if (_backing_store) { delete _backing_store; } _backing_store = new wxBitmap(_width, _height); _memdc.SelectObject(*_backing_store); _memdc.SetFont(GetFont()); _border_shape[0].x = 0; _border_shape[0].y = _height-3; _border_shape[1].x = 0; _border_shape[1].y = 2; _border_shape[2].x = 2; _border_shape[2].y = 0; _border_shape[3].x = _width - 3; _border_shape[3].y = 0; _border_shape[4].x = _width -1; _border_shape[4].y = 2; _border_shape[5].x = _width -1; _border_shape[5].y = _height - 3; _border_shape[6].x = _width -3; _border_shape[6].y = _height - 1; _border_shape[7].x = 2; _border_shape[7].y = _height - 1; update_bar_shape(); } } void SpinBox::update_bar_shape() { if (_direction < 0) { _bar_shape[0].x = 1; _bar_shape[0].y = 1; _bar_shape[1].x = _width/2 - 1; _bar_shape[1].y = 1; _bar_shape[2].x = _width/2 - _height/2; _bar_shape[2].y = _height/2; _bar_shape[3].x = _width/2 - 1; _bar_shape[3].y = _height - 1; _bar_shape[4].x = 1; _bar_shape[4].y = _height - 1; } else { _bar_shape[0].x = _width - 1; _bar_shape[0].y = 1; _bar_shape[1].x = _width/2 ; _bar_shape[1].y = 1; _bar_shape[2].x = _width/2 + _height/2 - 1; _bar_shape[2].y = _height/2; _bar_shape[3].x = _width/2; _bar_shape[3].y = _height - 1; _bar_shape[4].x = _width - 1; _bar_shape[4].y = _height - 1; } } void SpinBox::OnSize(wxSizeEvent & event) { update_size(); event.Skip(); } void SpinBox::OnPaint(wxPaintEvent & event) { wxPaintDC pdc(this); if (!_backing_store) { return; } draw_area(_memdc); pdc.Blit(0, 0, _width, _height, &_memdc, 0, 0); } void SpinBox::on_update_timer (wxTimerEvent &ev) { // update value with current adjust float newval = _value; long deltatime = ::wxGetLocalTime() - _press_time; if (deltatime > 2) { newval += _curr_adjust * deltatime * deltatime * deltatime; } else { newval += _curr_adjust; } if (_snap_mode == IntegerSnap) { newval = nearbyintf (newval); } newval = max (min (newval, _upper_bound), _lower_bound); _value = newval; value_changed (get_value()); // emit update_value_str(); Refresh(false); _update_timer->Start (_curr_timeout, true); } void SpinBox::OnMouseEvents (wxMouseEvent &ev) { if (!IsEnabled()) { ev.Skip(); return; } if (ev.Entering() && !_dragging) { //_borderbrush.SetColour(_overbarcolor); _direction = ev.GetX() < _width/2 ? -1.0f : 1.0f; update_bar_shape(); _barbrush.SetColour(_overbarcolor); Refresh(false); } else if (ev.Leaving() && !_dragging) { _barbrush.SetColour(_bgcolor); //_borderbrush.SetColour(_bgcolor); _direction = 0; Refresh(false); } if (ev.Dragging() && _dragging) { ev.Skip(); } else if (ev.Moving()) { // do nothing float dirct = ev.GetX() < _width/2 ? -1.0f : 1.0f; if (dirct != _direction) { _direction = dirct; update_bar_shape(); Refresh(false); } } else if (ev.GetEventType() == wxEVT_MOUSEWHEEL) { float fscale = (ev.ShiftDown() ? 10.0f : 1.0f) * (ev.ControlDown() ? 2.0f: 1.0f); float newval; if (ev.GetWheelRotation() > 0) { //newval = _value + (_upper_bound - _lower_bound) * fscale; newval = _value + _increment * fscale; } else { newval = _value - _increment * fscale; } if (_snap_mode == IntegerSnap) { newval = nearbyintf (newval); } newval = max (min (newval, _upper_bound), _lower_bound); _value = newval; value_changed (get_value()); // emit update_value_str(); Refresh(false); } else if (ev.RightDown()) { this->PopupMenu ( _popup_menu, ev.GetX(), ev.GetY()); } else if (ev.RightUp()) { //this->PopupMenu ( _popup_menu, ev.GetX(), ev.GetY()); } else if (ev.ButtonDown() || ev.LeftDClick()) { CaptureMouse(); _dragging = true; _curr_timeout = -1; _barbrush.SetColour(_barcolor); pressed(); // emit if (ev.MiddleDown() && !ev.ControlDown()) { // start editing show_text_ctrl (); } else if (ev.LeftDown() && ev.ShiftDown()) { // set to default _value = max (min (_default_val, _upper_bound), _lower_bound); value_changed(get_value()); update_value_str(); } else { float newval = _value; _direction = ev.GetX() < _width/2 ? -1.0f : 1.0f; _curr_adjust = _increment * _direction; newval += _curr_adjust; if (_snap_mode == IntegerSnap) { newval = nearbyintf (newval); } newval = max (min (newval, _upper_bound), _lower_bound); _value = newval; value_changed (get_value()); // emit update_value_str(); _press_time = ::wxGetLocalTime(); // seconds _curr_timeout = 20; // for now _update_timer->Start(400, true); // oneshot update_bar_shape(); } Refresh(false); } else if (ev.ButtonUp()) { _dragging = false; _update_timer->Stop(); _curr_timeout = -1; ReleaseMouse(); if (ev.GetX() >= _width || ev.GetX() < 0 || ev.GetY() < 0 || ev.GetY() > _height) { //_borderbrush.SetColour(_bgcolor); _barbrush.SetColour(_bgcolor); Refresh(false); } else { //_borderbrush.SetColour(_overbarcolor); _barbrush.SetColour(_overbarcolor); Refresh(false); } if (ev.MiddleUp() && ev.ControlDown()) { // binding click bind_request(); // emit } released(); // emit } else { ev.Skip(); } } void SpinBox::OnFocusEvent (wxFocusEvent &ev) { if (ev.GetEventType() == wxEVT_KILL_FOCUS) { // focus kill _borderbrush.SetColour(_bgcolor); _barbrush.SetColour(_bgcolor); Refresh(false); } ev.Skip(); } void SpinBox::on_menu_events (wxCommandEvent &ev) { if (ev.GetId() == ID_BindMenuOp) { bind_request(); // emit } else if (ev.GetId() == ID_EditMenuOp) { show_text_ctrl (); } else if (ev.GetId() == ID_DefaultMenuOp) { _value = max (min (_default_val, _upper_bound), _lower_bound); value_changed(get_value()); update_value_str(); Refresh(false); } } void SpinBox::draw_area(wxDC & dc) { wxCoord w,h; dc.SetBackground(_bgbrush); dc.Clear(); dc.SetBrush(_borderbrush); dc.SetPen(_borderpen); //dc.DrawRectangle (0, 0, _width, _height); dc.DrawPolygon (8, _border_shape); dc.SetPen(*wxTRANSPARENT_PEN); dc.SetBrush(_barbrush); if (_direction != 0.0f) { dc.DrawPolygon (5, _bar_shape); } dc.SetTextForeground(_textcolor); dc.GetTextExtent(_label_str, &w, &h); dc.DrawText (_label_str, 3, _height - h - 3); if (_showval_flag) { dc.SetTextForeground(_valuecolor); dc.GetTextExtent(_value_str, &w, &h); dc.DrawText (_value_str, _width - w - 3, _height - h - 3); } } void SpinBox::show_text_ctrl () { wxString valstr = get_precise_value_str(); if (!_text_ctrl) { _text_ctrl = new HidingTextCtrl(this, ID_TextCtrl, valstr, wxPoint(1,1), wxSize(_width - 2, _height - 2), wxTE_PROCESS_ENTER|wxTE_RIGHT); _text_ctrl->SetName (wxT("KeyAware")); _text_ctrl->SetFont(GetFont()); } _text_ctrl->SetValue (valstr); _text_ctrl->SetSelection (-1, -1); _text_ctrl->SetSize (_width - 2, _height - 2); _text_ctrl->Show(true); _text_ctrl->SetFocus(); } void SpinBox::hide_text_ctrl () { if (_text_ctrl && _text_ctrl->IsShown()) { _text_ctrl->Show(false); SetFocus(); } } void SpinBox::on_text_event (wxCommandEvent &ev) { if (ev.GetEventType() == wxEVT_COMMAND_TEXT_ENTER) { // commit change bool good = false; bool neginf = false; double newval = 0.0; if (_scale_mode == ZeroGainMode && _text_ctrl->GetValue().Strip(wxString::both) == wxT("-inf")) { newval = 0.0; good = neginf = true; } else if (_text_ctrl->GetValue().ToDouble(&newval)) { good = true; } if (good) { if (_scale_mode == ZeroGainMode && !neginf) { newval = DB_CO(newval); } set_value ((float) newval); value_changed (get_value()); // emit } hide_text_ctrl(); } } BEGIN_EVENT_TABLE(SpinBox::HidingTextCtrl, wxTextCtrl) EVT_KILL_FOCUS (SpinBox::HidingTextCtrl::on_focus_event) END_EVENT_TABLE() void SpinBox::HidingTextCtrl::on_focus_event (wxFocusEvent & ev) { if (ev.GetEventType() == wxEVT_KILL_FOCUS) { Show(false); } ev.Skip(); } sooperlooper-1.7.3~dfsg0/src/gui/latency_panel.hpp0000644000175000017500000000441012230252703020733 0ustar miramira/* ** Copyright (C) 2006 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_latency_panel__ #define __sooperlooper_latency_panel__ #include #include #include #include #include class wxListCtrl; namespace SooperLooperGui { class MainPanel; class SpinBox; class LatencyPanel : public wxPanel, public sigc::trackable { public: // ctor(s) LatencyPanel(MainPanel * guiframe, wxWindow * parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(400,600), long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxT("LatencyMiscPanel")); virtual ~LatencyPanel(); void refresh_state(); protected: void init(); void on_check (wxCommandEvent &ev); void on_spin_change (float value, int id); //void learning_stopped (); void onSize(wxSizeEvent &ev); void onPaint(wxPaintEvent &ev); void OnUpdateTimer(wxTimerEvent &ev); wxCheckBox * _auto_check; wxCheckBox * _auto_disable_check; SpinBox * _input_spin; SpinBox * _output_spin; wxCheckBox * _round_tempo_integer_check; wxCheckBox * _jack_timebase_master_check; wxCheckBox * _use_midi_start_check; wxCheckBox * _use_midi_stop_check; wxCheckBox * _send_midi_start_on_trigger_check; wxCheckBox * _output_clock_check; MainPanel * _parent; bool _justResized; wxTimer * _update_timer; bool _do_request; private: // any class wishing to process wxWindows events must use this macro DECLARE_EVENT_TABLE() }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/._main_panel.cpp0000644000175000017500000000025312317550250020435 0ustar miramiraMac OS X  2y«ATTR«œœcom.apple.TextEncodingutf-8;134217984sooperlooper-1.7.3~dfsg0/src/gui/plugin_app.hpp0000644000175000017500000000510412271473064020266 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_plugin_app__ #define __sooperlooper_plugin_app__ #include namespace SooperLooperGui { class MainPanel; class PluginApp : public wxApp { public: // override base class virtuals // ---------------------------- PluginApp(); virtual ~PluginApp(); // this one is called on application startup and is a good place for the app // initialization (doing it here and not in the ctor allows to have an error // return: if OnInit() returns false, the application terminates) virtual bool OnInit(); virtual int OnRun(); void cleanup_stuff(); MainPanel * get_main_panel() {return _mainpanel; } wxPanel * get_top_panel() {return _toppanel; } wxFrame * get_main_frame() { return _frame; } wxString get_host() { return _host; } void set_host(wxString host) { _host = host;} int get_port() const { return _port; } void set_port(int port) { _port = port; } void set_stay_on_top(bool flag) { _stay_on_top = flag; } bool get_stay_on_top() const { return _stay_on_top; } bool get_force_spawn() { return _force_spawn; } wxString get_exec_name() { return _exec_name; } wxChar ** get_engine_args () { return _engine_argv; } protected: bool parse_options (int argc, wxChar **argv); void process_key_event (wxKeyEvent &ev); void * _externalView; MainPanel * _mainpanel; wxFrame * _frame; wxPanel * _toppanel; wxString _host; int _port; int _show_usage; int _show_version; wxString _exec_name; bool _force_spawn; bool _never_spawn; int _loop_count; int _channels; float _mem_secs; wxString _midi_bind_file; wxString _server_name; wxString _client_name; bool _stay_on_top; wxChar ** _engine_argv; // DECLARE_EVENT_TABLE() }; }; //DECLARE_APP(SooperLooperGui::PluginApp); #endif sooperlooper-1.7.3~dfsg0/src/gui/help_window.hpp0000644000175000017500000000362511754453700020455 0ustar miramira/* ** Copyright (C) 2002 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_help_window_hpp__ #define __sooperlooper_help_window_hpp__ #include #include #include #include namespace SooperLooperGui { class HelpWindowHtmlWin : public wxHtmlWindow { public: HelpWindowHtmlWin (wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxHW_SCROLLBAR_AUTO, const wxString& name = wxT("htmlWindow")); virtual ~HelpWindowHtmlWin() {} void OnLinkClicked(const wxHtmlLinkInfo& link); bool browseToUrl(const wxString& url); }; class HelpWindow : public wxFrame { public: HelpWindow(wxWindow * parent, wxWindowID id, const wxString & title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(300,400), long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxT("HelpWin")); virtual ~HelpWindow(); protected: void init(); void on_close (wxCloseEvent &ev); HelpWindowHtmlWin * _htmlWin; private: // any class wishing to process wxWindows events must use this macro DECLARE_EVENT_TABLE() }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/._keyboard_target.cpp0000644000175000017500000000025312271476500021504 0ustar miramiraMac OS X  2y«ATTR«œœcom.apple.TextEncodingutf-8;134217984sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/0000755000175000017500000000000012503567205017077 5ustar miramirasooperlooper-1.7.3~dfsg0/src/gui/pixmaps/solo_disabled.xpm0000644000175000017500000000445011754453701022435 0ustar miramira/* XPM */ static char * solo_disabled[] = { "46 25 69 1", " c #475160", ". c #202D42", "+ c #202E43", "@ c #FFFFFF", "# c #ACB1B7", "$ c #646C79", "% c #C7CACE", "& c #F1F2F3", "* c #FDFDFD", "= c #F5F5F6", "- c #DCDEE0", "; c #A4A9B0", "> c #707884", ", c #CACDD1", "' c #F3F4F5", ") c #FBFCFC", "! c #E6E8EA", "~ c #A9AEB5", "{ c #4E5866", "] c #DFE1E4", "^ c #FEFEFE", "/ c #DEE0E2", "( c #E2E4E6", "_ c #DDDFE2", ": c #747B87", "< c #F2F3F4", "[ c #DFE0E3", "} c #D3D5D9", "| c #485261", "1 c #FBFBFB", "2 c #C0C4C9", "3 c #505967", "4 c #D2D4D8", "5 c #ECEDEE", "6 c #525B69", "7 c #9298A1", "8 c #7E858F", "9 c #C5C8CC", "0 c #D4D6DA", "a c #A8ADB4", "b c #58616F", "c c #F8F8F9", "d c #B7BBC1", "e c #223046", "f c #4B5564", "g c #8E949D", "h c #BFC2C8", "i c #D6D8DB", "j c #79808B", "k c #4B5463", "l c #BDC1C6", "m c #223047", "n c #D9DCDF", "o c #FCFCFD", "p c #B5B9BF", "q c #F7F7F8", "r c #EFF0F1", "s c #5D6673", "t c #CBCED2", "u c #F4F5F6", "v c #233249", "w c #24334A", "x c #141C2A", "y c #16202E", "z c #141C29", "A c #172130", "B c #17202F", "C c #182231", "D c #101621", " .", " .", " .", " +", " +", " +", " +", " @@# +", " @@# +", " @@# +", " $%&*=-; >,')!~{ @@# >,')!~{ +", " ]@^/(*_ :)@<[^@}| @@# :)@<[^@}| +", " 1@2 3> 4@56 7@@8 @@# 4@56 7@@8 +", " 9@@&0ab c@d 6@@; @@# c@d 6@@; e", " fgh/^@i c@d 6@@; @@# c@d 6@@; +", " jk l@) 4@56 7@@8 @@# 4@56 7@@8 m", " @c/]^@n :o@tu)!~{ @@# >tu)!~{ m", " m", " v", " m", " v", " w", " w", "xxxxxyzxxxxxxxxxxzzzzzzxxxxxxyxyyyyyyyyABBBCBD"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/mute_focus.xpm0000644000175000017500000000514011754453701022000 0ustar miramira/* XPM */ static char * mute_focus[] = { "46 25 90 1", " c #43608C", ". c #202D42", "+ c #202E43", "@ c #496590", "# c #46628E", "$ c #FFFFFF", "% c #AAB7CB", "& c #AFBBCE", "* c #B0BCCF", "= c #F5F6F9", "- c #EEF1F5", "; c #98A8C0", "> c #526D95", ", c #C2CBDA", "' c #F8F9FA", ") c #96A6BF", "! c #7086A8", "~ c #CED5E1", "{ c #F5F7F9", "] c #F9FAFB", "^ c #D4DAE4", "/ c #7389A9", "( c #FAFBFC", "_ c #ECEFF3", ": c #EFF1F5", "< c #E8ECF1", "[ c #EBEEF3", "} c #F0F2F6", "| c #6C83A5", "1 c #D6DDE6", "2 c #EDEFF4", "3 c #7288A9", "4 c #FCFDFD", "5 c #E9ECF1", "6 c #E6EAF0", "7 c #4A6690", "8 c #5D769C", "9 c #E4E9EF", "0 c #9EADC3", "a c #D1D8E3", "b c #BEC8D7", "c c #44618C", "d c #CBD3DF", "e c #CED6E1", "f c #B2BED0", "g c #45628D", "h c #A9B7CB", "i c #F6F8FA", "j c #223046", "k c #ABB8CC", "l c #4D6892", "m c #E7EBF1", "n c #D6DCE6", "o c #BFC9D8", "p c #8194B2", "q c #D0D7E2", "r c #CAD2DF", "s c #47648F", "t c #506B94", "u c #899BB7", "v c #223047", "w c #C6CFDC", "x c #FEFEFF", "y c #DFE4EC", "z c #FBFCFD", "A c #D9DFE8", "B c #6E85A7", "C c #FBFBFC", "D c #F2F4F7", "E c #DAE0E8", "F c #E5E9EF", "G c #FEFEFE", "H c #5B749A", "I c #889BB6", "J c #DFE4EB", "K c #6980A3", "L c #C4CDDB", "M c #F1F3F6", "N c #FDFDFE", "O c #CFD6E2", "P c #99A8C0", "Q c #233249", "R c #24334A", "S c #141C2A", "T c #16202E", "U c #141C29", "V c #172130", "W c #17202F", "X c #182231", "Y c #101621", " .", " .", " .", " +", " +", " +", " +", " @@# +", " $$% +", " $$% +", " $$&*=-;>,'-) $$% $$% $$$$$$ !~{]^/ +", " $$(_:$$<[}$$| $$% $$% 1$$211 34$5<$4! +", " $$678$$978$$0 $$% $$% $$% a$bccd$e +", " $$f g$$f c$$h $$% $$% $$% '$$$$$$i j", " $$% $$% $$% $$k l$$% $$% '$m1111n +", " $$% $$% $$% =$o p$$% 4$f q$rs tu v", " $$% $$% $$% w$x~=$$% y$zA1 BC$DEFG$ v", " $$% $$% $$% H^z5I$$% 3J4$$ KLMNMOP v", " v", " Q", " v", " Q", " R", " R", "SSSSSTUSSSSSSSSSSUUUUUUSSSSSSTSTTTTTTTTVWWWXWY"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/once_selected.xpm0000644000175000017500000000354111754453701022426 0ustar miramira/* XPM */ static char *once_selected[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #2F7868", "8 c #468779", "9 c #5D9689", "0 c #74A59A", "q c #8BB4AB", "w c #A2C3BB", "e c #BAD2CD", "r c #D1E1DD", "t c #E7F0EE", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "7777777qtyyr9777ee0wyyw7778wtyyr777qryyr97777:", "777777eyyrryy977yyyyyyy077tyyrey77wyyeryy9777:", "777778yyw77tyr77yyt88tye7qyyq77878yy977qyr777:", "777770yy077eyy77yy077eye7eyy777770yyyyyyyy777:", "777770yy077eyy77yy077eye7eyy777770yyeeeeee7771", "777778yyw77tyr77yy077eye7qyyq77878yy077780777:", "777777eyyeryy977yy077eye77tyyeey77wyyeerye7772", "7777777qtyyr9777yy077eye778wtyyr777qryyye07772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXX%.XXXXXXXXXX......XXXXXX%X%%%%%%%%*&&&-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/replace_selected.xpm0000644000175000017500000000471011754453701023114 0ustar miramira/* XPM */ static char * replace_selected[] = { "77 25 28 1", " c None", ". c #212E44", "+ c #2F7868", "@ c #202D42", "# c #293A54", "$ c #1F2D41", "% c #1F2C41", "& c #1F2C40", "* c #5D9689", "= c #BAD2CD", "- c #283954", "; c #74A59A", "> c #FFFFFF", ", c #1F2B3F", "' c #8BB4AB", ") c #A2C3BB", "! c #D1E1DD", "~ c #E7F0EE", "{ c #468779", "] c #283953", "^ c #1E2B3F", "/ c #293A55", "( c #293B56", "_ c #202E43", ": c #2A3B56", "< c #2A3B57", "[ c #2A3C57", "} c #2A3C58", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", "@+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "&++++++++++++++++++++++++++++++++++++*==++++++++++++++++++++++++++++++++++++-", "&++++++++++++++++++++++++++++++++++++;>>++++++++++++++++++++++++++++++++++++-", "&++++++++++++++++++++++++++++++++++++;>>++++++++++++++++++++++++++++++++++++-", ",++++++++++'=')>>++'!>>!*++*==*!>~;++;>>++'~>>>={+++*=>>>'++{)~>>){+++++++++]", "^++++++++++=>>>>>+)>>=!>>*+;>>>=~>>;+;>>++=~==~>~++*>>>=!=++~>~=~>~+++++++++]", "^++++++++++=>>;+{{>>*++'>!+;>>;+{~>!+;>>++{+++{>>;+!>>{++{+'>~+++!>'++++++++]", "^++++++++++=>!+++;>>>>>>>>+;>>+++=>>+;>>++;!>>>>>;+>>=+++++=>>>>>>>=++++++++]", "^++++++++++=>=+++;>>======+;>>+++=>>+;>>+{>>);;>>;+>>=+++++=>~====='++++++++]", ",++++++++++=>=+++{>>;+++{;+;>>;+{~>!+;>>+;>>++;>>;+!>>{++{+'>~{+++**++++++++-", "&++++++++++=>=++++)>>==!>=+;>>>=~>>;+;>>+{>>!=>>>;+*>>~=!=++~>~==~>;++++++++#", "&++++++++++=>=+++++'!>>>=;+;>>*!>~;++;>>++;~>!;>>;++*=>>>'++{)~>>~={++++++++#", "$++++++++++++++++++++++++++;>>++++++++++++++++++++++++++++++++++++++++++++++/", "@++++++++++++++++++++++++++;>>++++++++++++++++++++++++++++++++++++++++++++++/", "@++++++++++++++++++++++++++;>>++++++++++++++++++++++++++++++++++++++++++++++(", "_+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++:", "_+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/save_active.xpm0000644000175000017500000000353711754453701022130 0ustar miramira/* XPM */ static char *save_active[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #750924", "8 c #84243C", "9 c #933F54", "0 c #A35B6D", "q c #B27685", "w c #C1919D", "e c #D1ADB6", "r c #E0C8CE", "t c #EFE3E6", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777778qeeeq8779weeeq8779007777009779wee077777:", "77777tyyyyy077eyyyyyy970yy9779yy070yyyyyr7777:", "77770yy878097709779tyr77tyw77eyy79yye78yyw777:", "77770yye00777777000ryy77wyy77yyw7wyy000ryt777:", "77777tyyyyy077wyyyyyyy779yy00yy97eyyyyyyyy7771", "7777770eeyyt79yyr00ryy777ryeeyr77eyy000000777:", "7777877770yy70yy078tyy777qyyyyq770yyq777807772", "77770yreeyyr78yytetyyy7777yyyy7777eyyrerye7772", "77779ryyytw8770tytqeyy7777eyye77777wtyyte07772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXXX%.XXXXXXXXX......XXXXXX%X%%%%%%%&&%-%-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/sl_splash.xpm0000644000175000017500000026620312274220635021624 0ustar miramira/* XPM */ static char * sl_splash_xpm[] = { "215 180 946 2", " c None", ". c #101010", "+ c #2A3033", "@ c #353F48", "# c #465875", "$ c #4C6285", "% c #536C93", "& c #5D729E", "* c #6676A6", "= c #6771A1", "- c #656894", "; c #64648C", "> c #675F86", ", c #675A80", "' c #67557B", ") c #695275", "! c #695475", "~ c #655679", "{ c #655A7E", "] c #655C82", "^ c #655477", "/ c #6B4D6D", "( c #76425D", "_ c #7C394F", ": c #7E364B", "< c #803246", "[ c #843041", "} c #892A3E", "| c #91293E", "1 c #89283C", "2 c #88273D", "3 c #7D3042", "4 c #723C52", "5 c #6B455E", "6 c #694B69", "7 c #694964", "8 c #6F4057", "9 c #77364A", "0 c #822A3C", "a c #86273A", "b c #7D273A", "c c #372125", "d c #141314", "e c #353136", "f c #3E3740", "g c #403843", "h c #3B333B", "i c #1E1C1D", "j c #111010", "k c #33292B", "l c #413035", "m c #4A313A", "n c #463037", "o c #3C2B30", "p c #171313", "q c #121010", "r c #3B2429", "s c #49262D", "t c #532631", "u c #48262A", "v c #363E49", "w c #4B5F81", "x c #5873A1", "y c #6080B3", "z c #6385B9", "A c #6484B6", "B c #687FB2", "C c #697BAD", "D c #6A74A6", "E c #696D9D", "F c #696895", "G c #6B648F", "H c #6E5F8A", "I c #6E5C85", "J c #696794", "K c #697CAF", "L c #6581B5", "M c #6780B3", "N c #696FA1", "O c #7C547B", "P c #923954", "Q c #96344F", "R c #9B314C", "S c #9E2E44", "T c #A12A44", "U c #A22A43", "V c #A02A45", "W c #8A425E", "X c #6D608B", "Y c #6977A9", "Z c #677DB1", "` c #687DB0", " . c #6A76A6", ".. c #6B6590", "+. c #7F4F73", "@. c #9A304B", "#. c #9A2940", "$. c #3F2126", "%. c #111111", "&. c #45414D", "*. c #5E5271", "=. c #6B5A80", "-. c #715A82", ";. c #715880", ">. c #675071", ",. c #55455A", "'. c #362C2F", "). c #643F52", "!. c #7B4563", "~. c #854869", "{. c #864767", "]. c #874665", "^. c #874362", "/. c #763E54", "(. c #53323C", "_. c #3A2529", ":. c #743040", "<. c #8F334A", "[. c #99314B", "}. c #9A3049", "|. c #9D2F48", "1. c #372126", "2. c #343D45", "3. c #4F688F", "4. c #6A648F", "5. c #6584B9", "6. c #6C6089", "7. c #923B55", "8. c #78557B", "9. c #6582B5", "0. c #687BAC", "a. c #6978A9", "b. c #6D5F8A", "c. c #953753", "d. c #28272B", "e. c #5F5578", "f. c #6D5F88", "g. c #6F5D86", "h. c #735981", "i. c #72567E", "j. c #72557D", "k. c #6E5275", "l. c #453943", "m. c #4F3745", "n. c #804B6E", "o. c #844B6C", "p. c #844969", "q. c #894464", "r. c #8A4364", "s. c #8B415E", "t. c #743A50", "u. c #231A1C", "v. c #43262D", "w. c #8D344D", "x. c #98344E", "y. c #98344D", "z. c #43536A", "A. c #5D7BAC", "B. c #6A6691", "C. c #6878AC", "D. c #6582B7", "E. c #6F5A80", "F. c #7C5276", "G. c #6972A3", "H. c #6F5A82", "I. c #97334C", "J. c #9A2942", "K. c #141414", "L. c #585372", "M. c #6A628C", "N. c #73557B", "O. c #715376", "P. c #40323B", "Q. c #46333D", "R. c #7C4C6E", "S. c #824C71", "T. c #8C405E", "U. c #6D384C", "V. c #171112", "W. c #7F334A", "X. c #963650", "Y. c #1B1E1E", "Z. c #516A93", "`. c #6485B8", " + c #6781B5", ".+ c #804E71", "++ c #9D2F45", "@+ c #77537B", "#+ c #4D4960", "$+ c #6A638D", "%+ c #77547C", "&+ c #724F72", "*+ c #1E1B1C", "=+ c #332A2C", "-+ c #7C4C6F", ";+ c #804E72", ">+ c #7F4564", ",+ c #804463", "'+ c #8D3F5C", ")+ c #5B3240", "!+ c #5A2E38", "~+ c #953751", "{+ c #30373B", "]+ c #536C95", "^+ c #696996", "/+ c #6B6691", "(+ c #96344D", "_+ c #6D6089", ":+ c #696590", "<+ c #933854", "[+ c #412127", "}+ c #141415", "|+ c #665E87", "1+ c #775479", "2+ c #4E3C4A", "3+ c #5A4052", "4+ c #693E53", "5+ c #382B2F", "6+ c #3D2C31", "7+ c #713D53", "8+ c #7C3B53", "9+ c #1E1718", "0+ c #7C3449", "a+ c #5C79A9", "b+ c #6A75A6", "c+ c #903B57", "d+ c #6A79AA", "e+ c #6C5F88", "f+ c #814B6E", "g+ c #696B9A", "h+ c #403F4B", "i+ c #6A6590", "j+ c #655578", "k+ c #47404E", "l+ c #413943", "m+ c #5D4A66", "n+ c #6F567C", "o+ c #6B4B69", "p+ c #121112", "q+ c #141212", "r+ c #724B68", "s+ c #73445D", "t+ c #161313", "u+ c #1E1819", "v+ c #231B1C", "w+ c #50333E", "x+ c #88425F", "y+ c #8A3E58", "z+ c #462C32", "A+ c #171213", "B+ c #88374F", "C+ c #99314C", "D+ c #7C2D3E", "E+ c #772A3B", "F+ c #2F1E20", "G+ c #131514", "H+ c #4E668B", "I+ c #696998", "J+ c #7F4F75", "K+ c #824C6D", "L+ c #804C6E", "M+ c #696E9F", "N+ c #824A6A", "O+ c #864564", "P+ c #6A6693", "Q+ c #943650", "R+ c #9B2E44", "S+ c #7E5076", "T+ c #6974A5", "U+ c #942D43", "V+ c #4D4B63", "W+ c #403A44", "X+ c #151414", "Y+ c #634E6C", "Z+ c #785378", "`+ c #151213", " @ c #362C30", ".@ c #764D6D", "+@ c #593949", "@@ c #74425A", "#@ c #78425B", "$@ c #7E415C", "%@ c #894360", "&@ c #54303A", "*@ c #332427", "=@ c #8A3750", "-@ c #813043", ";@ c #1B1314", ">@ c #101111", ",@ c #4F678A", "'@ c #804E75", ")@ c #854868", "!@ c #715981", "~@ c #765479", "{@ c #A22A45", "]@ c #903D58", "^@ c #73547C", "/@ c #933046", "(@ c #555271", "_@ c #65587E", ":@ c #151415", "<@ c #504254", "[@ c #3B3035", "}@ c #7B4D6F", "|@ c #4F3642", "1@ c #5B323E", "2@ c #372629", "3@ c #8C3750", "4@ c #642A37", "5@ c #37434D", "6@ c #687CAE", "7@ c #6E5D88", "8@ c #804E73", "9@ c #71567E", "0@ c #9B2E46", "a@ c #696D9A", "b@ c #76547C", "c@ c #932E45", "d@ c #595576", "e@ c #605576", "f@ c #5A4862", "g@ c #1B1818", "h@ c #382F33", "i@ c #784D6E", "j@ c #553745", "k@ c #1B1617", "l@ c #633C4D", "m@ c #643B4C", "n@ c #66394B", "o@ c #66394A", "p@ c #663749", "q@ c #68374A", "r@ c #683648", "s@ c #683647", "t@ c #482C33", "u@ c #5D2A36", "v@ c #151717", "w@ c #55719B", "x@ c #6585B7", "y@ c #94364E", "z@ c #7F4F76", "A@ c #962A40", "B@ c #595677", "C@ c #5F5475", "D@ c #171516", "E@ c #383339", "F@ c #232022", "G@ c #4C4151", "H@ c #6E547C", "I@ c #744F73", "J@ c #121212", "K@ c #231D1E", "L@ c #754C6A", "M@ c #72435C", "N@ c #141112", "O@ c #5C2934", "P@ c #3D4C5D", "Q@ c #6081B5", "R@ c #913A54", "S@ c #97334A", "T@ c #686897", "U@ c #894363", "V@ c #332E33", "W@ c #6D5A80", "X@ c #665376", "Y@ c #725880", "Z@ c #5E455C", "`@ c #6D4964", " # c #5B3949", ".# c #372A2D", "+# c #583543", "@# c #5C7BAB", "## c #686895", "$# c #71557B", "%# c #9B3048", "&# c #735275", "*# c #3B3137", "=# c #46353F", "-# c #623748", ";# c #2F373A", "># c #6A6D9A", ",# c #913C56", "'# c #5B465B", ")# c #69455F", "!# c #86425E", "~# c #4B3038", "{# c #43556E", "]# c #696B98", "^# c #6A77A8", "/# c #923B57", "(# c #725479", "_# c #5E4960", ":# c #1E191B", "<# c #69455E", "[# c #88405C", "}# c #432C32", "|# c #516990", "1# c #6A6794", "2# c #696C9A", "3# c #95374F", "4# c #913A56", "5# c #6581B3", "6# c #864563", "7# c #9E2E47", "8# c #9A2A41", "9# c #412128", "0# c #544356", "a# c #1E1A1B", "b# c #69425A", "c# c #773D54", "d# c #3D292F", "e# c #202526", "f# c #5774A0", "g# c #68628A", "h# c #6A5C87", "i# c #6D5880", "j# c #6D577D", "k# c #67648F", "l# c #6872A2", "m# c #6877A8", "n# c #6778AB", "o# c #6873A4", "p# c #676792", "q# c #7C4E72", "r# c #8B3D58", "s# c #913754", "t# c #93334E", "u# c #97314B", "v# c #992E43", "w# c #9F2A44", "x# c #69638D", "y# c #6F5B84", "z# c #9B3046", "A# c #232123", "B# c #5D506C", "C# c #5F4F6D", "D# c #5C4A68", "E# c #514354", "F# c #231E20", "G# c #3B2E32", "H# c #5B394A", "I# c #713F56", "J# c #693C51", "K# c #623749", "L# c #442E35", "M# c #60303C", "N# c #67303E", "O# c #682F3B", "P# c #692E3C", "Q# c #46262D", "R# c #2E3437", "S# c #5A78A5", "T# c #474A5E", "U# c #383840", "V# c #363539", "W# c #363337", "X# c #373237", "Y# c #363035", "Z# c #372F33", "`# c #363033", " $ c #373337", ".$ c #373339", "+$ c #363034", "@$ c #3B292E", "#$ c #3C282B", "$$ c #3D262B", "%$ c #3E252A", "&$ c #3F2429", "*$ c #432229", "=$ c #792637", "-$ c #141313", ";$ c #141213", ">$ c #151314", ",$ c #151112", "'$ c #323A40", ")$ c #5D7CAE", "!$ c #606F9D", "~$ c #33363B", "{$ c #672633", "]$ c #432127", "^$ c #343D47", "/$ c #677DAF", "($ c #424B5C", "_$ c #353E46", ":$ c #607FB1", "<$ c #6279AA", "[$ c #323B42", "}$ c #5E7DAF", "|$ c #5C73A1", "1$ c #31373D", "2$ c #607BAB", "3$ c #131414", "4$ c #3D3B47", "5$ c #444352", "6$ c #454252", "7$ c #454151", "8$ c #46414F", "9$ c #403A46", "0$ c #2B3437", "a$ c #5876A3", "b$ c #6084B5", "c$ c #38434E", "d$ c #51698F", "e$ c #4E6689", "f$ c #455774", "g$ c #323940", "h$ c #566E98", "i$ c #6281B4", "j$ c #37404B", "k$ c #475A78", "l$ c #556C95", "m$ c #141515", "n$ c #432227", "o$ c #36414B", "p$ c #6282B6", "q$ c #3A4350", "r$ c #692634", "s$ c #5D76A4", "t$ c #37424C", "u$ c #3D4653", "v$ c #526B94", "w$ c #4F6588", "x$ c #384552", "y$ c #607CAD", "z$ c #4D6386", "A$ c #434E64", "B$ c #442229", "C$ c #566992", "D$ c #9D2A42", "E$ c #4B232A", "F$ c #4D6486", "G$ c #5F79AA", "H$ c #A12A43", "I$ c #56242E", "J$ c #394755", "K$ c #5F80B0", "L$ c #2E3033", "M$ c #652633", "N$ c #5F2531", "O$ c #2E3439", "P$ c #5A78A7", "Q$ c #393D45", "R$ c #5C242F", "S$ c #81273B", "T$ c #141010", "U$ c #313A3F", "V$ c #3D4351", "W$ c #48222A", "X$ c #44546E", "Y$ c #3F4653", "Z$ c #4D232B", "`$ c #5D2530", " % c #3D2126", ".% c #1E1416", "+% c #5F7EB0", "@% c #393E47", "#% c #97293F", "$% c #8F293E", "%% c #7F2739", "&% c #7F273B", "*% c #58252E", "=% c #4A262D", "-% c #6B2A39", ";% c #722E3C", ">% c #732F3D", ",% c #682D3B", "'% c #4C2930", ")% c #5F3746", "!% c #663B4C", "~% c #653C4E", "{% c #5C3848", "]% c #433037", "^% c #121111", "/% c #433740", "(% c #544254", "_% c #59455C", ":% c #57455A", "<% c #4C4050", "[% c #373137", "}% c #4E4D67", "|% c #54536F", "1% c #545473", "2% c #4F5069", "3% c #404350", "4% c #3E4A5A", "5% c #4D5F81", "6% c #50678B", "7% c #4E6587", "8% c #6384B7", "9% c #3B4959", "0% c #2F3638", "a% c #93293F", "b% c #6C2633", "c% c #52262E", "d% c #912E44", "e% c #99334A", "f% c #89344B", "g% c #4F2A33", "h% c #4D2F38", "i% c #803F5A", "j% c #8A4362", "k% c #884565", "l% c #874668", "m% c #784562", "n% c #463139", "o% c #4F3B4A", "p% c #765176", "q% c #79557B", "r% c #75557B", "s% c #72547C", "t% c #73557D", "u% c #624E6A", "v% c #44434F", "w% c #645F86", "x% c #696A98", "y% c #636792", "z% c #424654", "A% c #3A434E", "B% c #657BAD", "C% c #36404B", "D% c #55729E", "E% c #131314", "F% c #5E2632", "G% c #992E44", "H% c #552D37", "I% c #54313C", "J% c #8B435F", "K% c #7E4868", "L% c #4B3441", "M% c #594153", "N% c #7C5278", "O% c #71577F", "P% c #675477", "Q% c #3C363E", "R% c #474454", "S% c #69628A", "T% c #666D9E", "U% c #434757", "V% c #373F49", "W% c #6077A5", "X% c #677EB1", "Y% c #5C76A3", "Z% c #9E2E45", "`% c #8F3751", " & c #4F2D34", ".& c #55303C", "+& c #8D415F", "@& c #824A6B", "#& c #7F496A", "$& c #46333C", "%& c #5B4153", "&& c #7D5378", "*& c #7D5379", "=& c #685578", "-& c #484455", ";& c #6971A1", ">& c #414755", ",& c #6276A6", "'& c #4C5B7C", ")& c #49232A", "!& c #362124", "~& c #932941", "{& c #86374E", "]& c #151011", "^& c #2B1F21", "/& c #813C56", "(& c #844B6F", "_& c #744763", ":& c #794E71", "<& c #5A4D69", "[& c #151515", "}& c #675C82", "|& c #6B638D", "1& c #5F5F86", "2& c #6A6A97", "3& c #606C98", "4& c #6381B3", "5& c #32383E", "6& c #8B283D", "7& c #6B2633", "8& c #652631", "9& c #8C3146", "0& c #8C3148", "a& c #97354E", "b& c #933A55", "c& c #572F39", "d& c #5B323F", "e& c #874460", "f& c #7D425C", "g& c #7C435E", "h& c #824C6E", "i& c #4C3743", "j& c #583E4F", "k& c #7E5276", "l& c #745477", "m& c #6A506E", "n& c #6D5174", "o& c #4B4657", "p& c #696592", "q& c #4F4E68", "r& c #40434E", "s& c #676A98", "t& c #404554", "u& c #4F5C7D", "v& c #5B719E", "w& c #1E2223", "x& c #171011", "y& c #983048", "z& c #6A2A38", "A& c #382426", "B& c #732F3F", "C& c #743548", "D& c #71374C", "E& c #5D3644", "F& c #2F2326", "G& c #33272A", "H& c #683D51", "I& c #644156", "J& c #67475F", "K& c #745376", "L& c #4C3C4A", "M& c #2F292C", "N& c #644C6A", "O& c #4B4353", "P& c #58506C", "Q& c #605D82", "R& c #252526", "S& c #383A43", "T& c #3E3E4A", "U& c #464759", "V& c #646893", "W& c #4F5776", "X& c #55668A", "Y& c #3B4857", "Z& c #414B5D", "`& c #1B1213", " * c #26181B", ".* c #882E43", "+* c #161111", "@* c #843349", "#* c #7F374C", "$* c #803B55", "%* c #733D54", "&* c #141111", "** c #76435C", "=* c #6E445E", "-* c #1B1718", ";* c #5F465D", ">* c #6C5477", ",* c #584B65", "'* c #605679", ")* c #565372", "!* c #65648F", "~* c #565F82", "{* c #576891", "]* c #586F9A", "^* c #5E78A7", "/* c #98283F", "(* c #7E2D40", "_* c #753043", ":* c #81374F", "<* c #1B1415", "[* c #843C55", "}* c #6C3B4F", "|* c #6A3F54", "1* c #714660", "2* c #513F4F", "3* c #161415", "4* c #665071", "5* c #5A4C68", "6* c #1B191A", "7* c #64587E", "8* c #666590", "9* c #586085", "0* c #596A93", "a* c #52688F", "b* c #39434F", "c* c #6E2635", "d* c #26181A", "e* c #8A3043", "f* c #261A1C", "g* c #332225", "h* c #8A3349", "i* c #7D374D", "j* c #7E3B52", "k* c #793F57", "l* c #33272B", "m* c #7B4562", "n* c #6C445D", "o* c #231D1F", "p* c #4A3A46", "q* c #423843", "r* c #564A64", "s* c #5E5578", "t* c #5A577B", "u* c #383941", "v* c #3A3B44", "w* c #393D47", "x* c #3A3D48", "y* c #3A3E48", "z* c #3A3F4A", "A* c #34373E", "B* c #51678A", "C* c #4F6386", "D* c #772D3D", "E* c #42252A", "F* c #40252A", "G* c #763042", "H* c #733448", "I* c #6E3749", "J* c #693A4D", "K* c #3B2A2F", "L* c #3A2B30", "M* c #6B3E53", "N* c #624155", "O* c #3E343B", "P* c #483A47", "Q* c #4A3C4A", "R* c #6B5073", "S* c #494151", "T* c #584F6B", "U* c #67638D", "V* c #3A3A43", "W* c #516A91", "X* c #492B33", "Y* c #503039", "Z* c #8C3E5B", "`* c #423037", " = c #4F3F4E", ".= c #6E5B81", "+= c #45414F", "@= c #6C5F8A", "#= c #676592", "$= c #464659", "%= c #444555", "&= c #62638C", "*= c #414553", "== c #2F3438", "-= c #2F1C20", ";= c #7B2738", ">= c #72455F", ",= c #584A64", "'= c #675C85", ")= c #646791", "!= c #546D98", "~= c #282C2F", "{= c #5A242F", "]= c #46222A", "^= c #992A43", "/= c #3E262B", "(= c #422B30", "_= c #873F5B", ":= c #774764", "<= c #372C30", "[= c #5F506E", "}= c #171616", "|= c #3E3A46", "1= c #665F86", "2= c #5B628A", "3= c #27282B", "4= c #392125", "5= c #6C2635", "6= c #54262E", "7= c #972E43", "8= c #4B2A31", "9= c #413037", "0= c #434250", "a= c #6A638B", "b= c #686D9E", "c= c #555A7D", "d= c #622531", "e= c #9F2A42", "f= c #3D2226", "g= c #7B2A3D", "h= c #69303F", "i= c #2B1D20", "j= c #3A282C", "k= c #6C394E", "l= c #82415C", "m= c #7C4462", "n= c #5B3B4A", "o= c #6A5275", "p= c #4E4354", "q= c #37373D", "r= c #646793", "s= c #4A4C66", "t= c #161717", "u= c #5F7FB2", "v= c #485B79", "w= c #7C2638", "x= c #96283F", "y= c #632631", "z= c #3D2428", "A= c #552831", "B= c #622D38", "C= c #522932", "D= c #392A2D", "E= c #4C313A", "F= c #583743", "G= c #583745", "H= c #49323A", "I= c #33292A", "J= c #383036", "K= c #524254", "L= c #4F4151", "M= c #433943", "N= c #35353B", "O= c #424250", "P= c #4A4960", "Q= c #47485A", "R= c #3B3C45", "S= c #333337", "T= c #33373D", "U= c #373D46", "V= c #363E47", "W= c #31373B", "X= c #455874", "Y= c #44556E", "Z= c #141717", "`= c #333B43", " - c #3F4E64", ".- c #445571", "+- c #4A6080", "@- c #5B78A8", "#- c #30373E", "$- c #121413", "%- c #7E5075", "&- c #1E1B1B", "*- c #754C6C", "=- c #764D6E", "-- c #754E71", ";- c #764F73", ">- c #744F74", ",- c #463843", "'- c #2B2426", ")- c #2B2526", "!- c #6D7145", "~- c #A4AA68", "{- c #363822", "]- c #F6FF9C", "^- c #525534", "/- c #1B1C11", "(- c #DAE28A", "_- c #BFC679", ":- c #888D56", "<- c #000000", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + @ # $ % & * = - ; > , ' ) ! ~ { ] ^ / ( _ : < [ } | | 1 1 2 3 4 5 6 7 8 9 0 a a a a b c . . . . . d e f g h i . . . . . . . . . . . j k l m n o p . . . . . . . . . . q r s t u q . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v w x y z z A B C D E F G H I J K L z z z M N O P Q R S T U U V W X Y Z ` K ...+.@.U U U #.$.. . . %.&.*.=.I -.;.>.,.i . . . . . . . . '.).!.~.{.].^./.(.q . . . . . . . _.:.<.[.}.|.1.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3.z z z z z z A B C D E F G 4.K z z z z z z z z 5.6.7.R S T U }.8.9.9.M Z ` K 0.a. .b.c.U U #.$.. . d.e.H f.g.I -.h.i.j.k.l.. . . . . . m.n.o.p.~.{.].q.r.s.t.u.. . . . . v.w.x.y.[.}.|.1.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . %.z.A.z z z z z z z A B C D E F B.C.z z z z z z z z z z D.E.[.S T S F.M A 9.M Z ` K 0.a. .G.H.I.U J.$.. K.L.M.H f.g.I -.h.i.j.N.O.P.. . . . Q.R.S.o.p.~.{.].q.r.s.T.U.q . . . V.W.X.x.y.[.}.|.1.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Y.Z.`.z z z z z z z z A B C D E F a.z z z z z z z z z z z z +.+++T s.D.z A 9.M Z ` K 0.a. .G.N @+V J.$.. #+$+M.H f.g.I -.h.i.j.N.%+&+*+. . =+-+;+S.o.p.~.>+,+q.r.s.T.'+)+. . . !+~+X.x.y.[.}.|.1.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . {+]+z z z z z z z z z z A B C D E ^+L z z z z z z z z z z z z z /+(+V _+z z A 9.M Z ` K 0.a. .G.N :+<+J.[+}+|+$+M.H f.g.I -.h.i.j.N.%+1+2+. . 3+;+;+S.o.p.4+5+6+7+r.s.T.'+8+9+. . 0+~+X.x.y.[.}.|.1.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + a+z z z z z z z z z z z A B C D E b+z z z z z L F g.E D.z z z z M '+c+d+z z A 9.Z e+f+@+N a. .G.N g+f+J.[+h+i+$+M.H f.j+k+l+m+n+j.N.%+8.o+p+q+r+;+;+S.o.s+t+u+v+w+x+s.T.'+y+z+. A+B+~+X.x.y.C+D+E+F+. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G+H+z z z z z z z z z z z z A B C D E C z z z z z I+J+K+L+M+z z z z z N+O+Z z z A 9.P+Q+U R+S+T+ .G.N E O U+[+V+i+$+M.H f.W+. . X+Y+j.N.%+8.Z+`+ @.@;+;+S.o.+@u+@@#@$@%@s.T.'+'+&@. *@=@~+X.x.y.-@;@j . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . >@,@z z z z z z z z z z z z z A B C D E ` z z z z `.E.'@K+)@!@z z z z z F.N+M z z A 9.~@{@U U ]@^+ .G.N E ^@/@[+(@i+$+M.H _@:@. . . <@j.N.%+8.O *+[@}@;+;+S.o.|@5+{.].q.r.s.T.'+'+1@. 2@3@~+X.x.y.4@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5@`.z z z z z z z z z z z z z A B C D E 6@z z z z z 7@'@K+)@f.z z z z z 8@~.M z z A 9.9@0@U U s.a@ .G.N E b@c@[+d@i+$+M.H e@K.. . j f@j.N.%+8.O g@h@i@;+;+S.o.j@k@l@m@n@o@p@q@r@s@t@. 2@3@~+X.x.y.u@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v@w@z z z z z z z z z z z z z z A B C D E a.z z z z z ` j.F.i.` z z z z x@q.T.K z z A 9.C.N+y@]@f.a. .G.N E z@A@[+B@i+$+M.H C@D@E@F@G@H@j.N.%+8.I@J@K@L@;+;+S.o.M@N@. . . . . . . . . . 2@3@~+X.x.y.O@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P@Q@z z z z z z z z z z z z z z A B C D E E z z z z z z B d+M z z z z z d+R@S@M+z z A 9.M C.:+^+0.a. .G.N T@U@J.[+B@i+$+M.H C@V@W@X@Y@i.j.N.%+8.Z@j . `@;+;+S.o.p. #A+.#+#q . . . . . . 2@3@~+X.x.y.O@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . >@@#z z z z z z z z z z z z z z z A B C D E ##6@z z z z z z z z z z z z 5.$#%#T ;+`.z A 9.M Z ` K 0.a. .G.N I %#J.[+B@i+$+M.H C@V@I -.h.i.j.N.%+&#*#. . =#;+;+S.o.p.~.{.].q.-#j . . . . . 2@3@~+X.x.y.O@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ;#z z z z z z z z z z z z z z z z A B C D E F ># +z z z z z z z z z z z d+,#S T y.I+z A 9.M Z ` K 0.a. .G.I+U@U J.[+B@i+$+M.H C@V@I -.h.i.j.N.%+'#. . . q+)#;+S.o.p.~.{.].q.!#~#. . . . . 2@3@~+X.x.y.O@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . {#z z z z z z z z z z z z z z z z A B C D E F G ]# +z z z z z z z z z ^#O+R S T U /#^+A 9.M Z ` K 0.a. .^+)@V U J.[+B@i+$+M.H C@V@I -.h.i.j.(#_#p+. . . . :#<#S.o.p.~.{.].q.r.[#}#. . . . 2@3@~+X.x.y.O@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . %.|#z z z z z z z z z z z z z z z z A B C D E F G b.1#B z z z z z z z 2#)@3#R S T U U 4#..5#M Z ` K 0.a.P+6#7#U U 8#9#B@i+$+M.H C@V@I -.h.i.j.0#q+. . . . . . a#b#o.p.~.{.].q.r.c#d#. . . . 2@3@~+X.x.y.O@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . e#f#z z z z z z z z z z z z z z z z A B C D E F g#h#i#j#k#l#m#n#o#p#q#r#s#t#u#v#w#U U U V U@;.x#P+$+y#N+z#U U U U 8#9#B@i+$+M.H C@A#B#C#D#E#F#. . . . . . . . . . G#H#4+I#J#K#L#. . . . . . 9+M#N#O#P#P#Q#. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . R#S#z z z z z z z z z z z z z z z z A B C = T#U#V#W#X#Y#Z#`# $.$+$5+@$#$$$%$&$*$=$U U U U U S I.~+(+|.U U U U U U 8#9#B@i+$+M.H C@-$;$>$p+. . . . . . . . . . . . . . j ,$q . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . '$)$z z z z z z z z z z z z z z z z A B !$~$. . . . . . . . . . . . . . . . . . {$U U U U U U U U U U U U U U U U 8#]$B@i+$+M.H C@J@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ^$y z z z z z z z z z z z z z z z z A /$($. . . . . . . . . . . . . . . . . . . {$U U U U U U U U U U U U U U U U 8#]$B@i+$+M.H C@J@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . _$:$z z z z z z z z z z z z z z z z A <$G+. . . . . . . . . . . . . . . . . . . {$U U U U U U U U U U U U U U U U 8#]$B@i+$+M.H C@J@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [$}$z z z z z z z z z z z z z z z z A |$. . . . . . . . . . . . . . . . . . . . {$U U U U U U U U U U U U U U U U 8#]$B@i+$+M.H C@J@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1$@#z z z z z z z z z z z z z z z z `.2$3$. . . . . . . . . . . . . . . . . . . {$U U U U U U U U U U U U U U U U 8#]$4$5$6$7$8$9$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0$a$z z z z z z z z z z z z z z z z z b$c$. . . . . . . . . . . . . . . . . . . {$U U U U U U U U U U U U U U U U 8#]$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . >@d$z z z z z z z z z z z z z z z z z z e$%.. . . . . . . . . . . . . . . . . . {$U U U U U U U U U U U U U U U U 8#]$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . f$z z z z z z z z z z z z z z z z z z :$g$. . . . . . . . . . . . . . . . . . {$U U U U U U U U U U U U U U U U 8#]$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ^$z z z z z z z z z z z z z z z z z z z h$. . . . . . . . . . . . . . . . . . {$U U U U U U U U U U U U U U U U 8#]$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . J@}$z z z z z z z z z z z z z z z z z z i$j$. . . . . . . . . . . . . . . . . {$U U U U U U U U U U U U U U U U 8#]$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . k$z z z z z z z z z z z z z z z z z z z l$m$. . . . . . . . . . . . . . . . {$U U U U U U U U U U U U U U U U 8#n$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . o$:$z z z z z z z z z z z z z z z z z z p$q$. . . . . . . . . . . . . . . . r$U U U U U U U U U U U U U U U U 8#n$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . J@H+z z z z z z z z z z z z z z z z z z z s$%.. . . . . . . . . . . . . . . r$U U U U U U U U U U U U U U U U 8#n$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . t$z z z z z z z z z z z z z z z z z z z i$u$. . . . . . . . . . . . . . . r$U U U U U U U U U U U U U U U U 8#n$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v$z z z z z z z z z z z z z z z z z z z w$%.. . . . . . . . . . . . . . r$U U U U U U U U U U U U U U U U 8#n$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x$:$z z z z z z z z z z z z z z z z z z y$R#. . . . . . . . . . . . . . r$U U U U U U U U U U U U U U U U 8#n$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . %.z$z z z z z z z z z z z z z z z z z z z A$. . . . . . . . . . . . . . r$U U U U U U U U U U U U U U U U 8#B$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [$`.z z z z z z z z z z z z z z z z z z C$. . . . . . . . . . . . . . r$U U U U U U U U U U U U U U U U D$E$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F$z z z z z z z z z z z z z z z z z z G$. . . . . . . . . . . . . . r$U U U U U U U U U U U U U U U U H$I$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . J$p$z z z z z z z z z z z z z z z z z K$L$. . . . . . . . . . . . . M$U U U U U U U U U U U U U U U U U N$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . O$P$z z z z z z z z z z z z z z z z z y Q$. . . . . . . . . . . . . R$U U U U U U U U U U U U U U U U U S$T$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . U$A.z z z z z z z z z z z z z z z z z i$V$. . . . . . . . . . . . . I$U U U U U U U U U U U U U U U U U D$W$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . Y.. . . . . . . . . . . . . . . X$`.z z z z z z z z z z z z z z z z z p$Y$. . . . . . . . . . . . . Z$H$U U U U U U U U U U U U U U U U U 8#`$ %F+.%T$q q q q q q q q T$j . . . . . . . . j j . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . %.. . . . . . . . . . . . . . . %.. . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . w@w @ v@. . . . . . . . . . . '$+%z z z z z z z z z z z z z z z z z z y @%. . . . . . . . . . . . . W$D$U U U U U U U U U U U U U U U U U U U #%$%1 S$%%%%%%%%&%&%&%&%&%*%. . . . . q =%-%;%>%,%'%q . . . . . . . . . . q L#)%!%~%{%]%j . . . . . . . . . . ^%/%(%_%:%<%[%. . . . . . . . . . . %.h+}%|%1%2%3%%.. . . . . . . . . 3$4%5%6%7%;#. . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . 8%z z z )$H+{#9%2.{+Y.3$v@0%# +%z z z z z z z z z z z z z z z z z z z K$L$. . . . . . . . . . . . . c a%U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U b%. . . j c%d%}.[.e%y.x.X.f%g%j . . . . . . j h%i%j%q.k%l%{.~.m%n%. . . . . . . ^%o%p%q%b@r%s%t%i.u% $. . . . . . . . v%w%P+J F ^+x%E y%z%. . . . . . . A%B%M 9.A `.C%. . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . 8%z z z z z z z Q@@#D%v$w@P$z z z z z z z z z z z z z z z z z z z z z }$E%. . . . . . . . . . . . . j 2 U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U b%. . . F%G%%#}.[.e%y.x.X.~+3@H%. . . . . . I%[#J%j%q.k%l%{.~.p.K%L%. . . . . ^%M%N%O q%b@r%s%t%i.O%P%Q%. . . . . . R%S%i+P+J F ^+x%E M+T%U%. . . . . V%W%X%M 9.A `.C%. . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . 8%z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z Y%. . . . . . . . . . . . . . . r$U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U b%. . `$R+Z%%#}.[.e%y.x.X.~+c.`% &. . . . .&T.+&J%j%q.k%l%{.~.p.@&#&$&. . . . %&&&*&O q%b@r%s%t%i.O%!@=&E@. . . . -&M.G i+P+J F ^+x%E M+;&T%>&. . . J@,&Z X%M 9.A `.C%. . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . 8%z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z '&. . . . . . . . . . . . . . . )&U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U b%. !&~&S Z%%#}.[.e%y.x.X.~+c.<+{&]&. . ^&/&T.+&J%j%q.k%l%{.~.p.@&(&_&^%. . '.:&&&*&O q%b@r%s%t%i.O%!@-.<&. . . [&}&|&G i+P+J ; 1&2&E M+;&G.3&%.. . u$6@Z X%M 9.A `.C%. . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . 8%z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z 4&5&. . . . . . . . . . . . . . . q 6&U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U 7&j 8&T S Z%%#}.C+9&0&a&X.~+c.<+b&c&. . d&'+T.+&J%j%e&f&g&{.~.p.@&(&h&i&. . j&k&&&*&O q%l&m&n&t%i.O%!@-.I E@. . o&X |&G i+p&q&%.. r&s&M+;&G. .t&. . u&` Z X%M 9.A `.C%. . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . 8%z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z v&w&. . . . . . . . . . . . . . . . R$H$U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U 7&x&S${@S Z%%#y&z&A&A&B&X.~+c.<+b&C&. T$D&'+T.+&J%x+E&F&G&H&~.p.@&(&h&I&. q+J&k&&&*&O K&L&i M&N&i.O%!@-.I O&. %.P&X |&G i+Q&R&S&T&U&V&M+;&G. .W&. 3$X&` Z X%M 5#z$Y&+ . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . 8%z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z 8%Z&. . . . . . . . . . . . . . . . . `&6&U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U 7& *a%{@S Z%%#.*]&. . +*@*~+c.<+b&#*T$A+$*'+T.+&J%%*&*. . A+**p.@&(&h&=*^%-*.@k&&&*&O ;*^%. . F@>*O%!@-.I ,*. X+'*X |&G i+)*d !*^+x%E M+;&G. .~*%.m${*` Z X%M ]*w&. . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . 8%z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z ^*J@. . . . . . . . . . . . . . . . . . *%U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U 7&F+/*{@S Z%%#(*. . . &*_*~+c.<+b&:*A+<*[*'+T.+&J%}*. . . N@|*p.@&(&h&1*,$a#q#k&&&*&O 2*. . . 3*4*O%!@-.I 5*. 6*7*X |&G i+(@K.8*^+x%E M+;&G. .9*J@v@0*` Z X%M a*J@. . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . 8%z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z i$b*. . . . . . . . . . . . . . . . . . . . c*H$U U U U U U U U U U U U U U U U U U U U U U U U U U U U 7&d*$%{@S Z%%#e*f*. . g*h*~+c.<+b&i*T$V.j*'+T.+&J%k*u+. . l*m*p.@&(&h&n*j o*z@k&&&*&O p*j . . q*n+O%!@-.I r*. X+s*X |&G i+t*[&u*v*v*w*x*x*y*z*A*. v@0*` Z X%M B*%.. . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . 8%z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z `.C*J@. . . . . . . . . . . . . . . . . . . . .%1 U U U U U U U U U U U U U U U U U U U U U U U U U U U U 7&x&b {@S Z%%#y&D*E*F*G*X.~+c.<+b&H*. q I*'+T.+&J%x+J*K*L*M*~.p.@&(&h&N*. o*z@k&&&*&O p*O*P*Q*R*i.O%!@-.I S*. %.T*X |&G i+U*V*. . . . . . . . . . v@0*` Z X%M B*%.. . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . 8%z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z W*%.. . . . . . . . . . . . . . . . . . . . . . !&1 H$U U U U U U U U U U U U U U U U U U U U U U U U U U 7&. I$w#S Z%%#}.[.e%y.x.X.~+c.<+b&X*. . Y*Z*T.+&J%j%q.k%l%{.~.p.@&(&h&`*. o*z@k&&&*&O p* =r%s%t%i.O%!@-..=F@. . +=@=|&G i+P+#=$=%=&=*=. . . . . . v@0*` Z X%M B*%.. . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . 8%z z z z z z z z z z z z z z z z z z z z z z z z z z z z z f#==. . . . . . . . . . . . . . . . . . . . . . . . -=;=U U U U U U U U U U U U U U U U U U U U U U U U U U 7&. .%| S Z%%#}.[.e%y.x.X.~+c.<+#*]&. . A+$*T.+&J%j%q.k%l%{.~.p.@&(&>=^%. o*z@k&&&*&O p* =r%s%t%i.O%!@-.,=. . . X+'=|&G i+P+J F ^+x%)=L$. . . . . v@0*` Z X%M B*%.. . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . 8%z z z z z z z z z z z z z z z z z z z z z z z z z z z `.!=~=. . . . . . . . . . . . . . . . . . . . . . . . . . . {=| U U U U U U U U U U U U U U U U U U U U U U U U 7&. . ]=^=Z%%#}.[.e%y.x.X.~+c.B+/=. . . . (=_=+&J%j%q.k%l%{.~.p.@&:=<=. . o*z@k&&&*&O p* =r%s%t%i.O%!@[=}=. . . . |=1=G i+P+J F ^+x%E 2=3=. . . . v@0*` Z X%M B*%.. . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . 8%z z z z z z z z z z z z z z z z z z z z z z z z z z `.|#+ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4=5=D$U U U U U U U U U U U U U U U U U U U U U U 7&. . . 6=7=%#}.[.e%y.x.X.~+`%8=. . . . . . h%[#J%j%q.k%l%{.~.p.K%9=. . . o*z@k&&&*&O p* =r%s%t%i.O%P%V@. . . . . . 0=a=i+P+J F ^+x%E b=c=. . . . v@0*` Z X%M B*%.. . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . 8%z z z z z z z z z z z z z z z z z z z z z z z z `.a+f$. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x&d=b | e=U U U U U U U U U U U U U U U U U U 7&. . . . f=g=/@[.e%y.x.w.h=i=. . . . . . . . j=k=l=q.k%l%{.m=n=k@. . . . o*z@k&&&*&O p* =r%s%t%o=p=-$. . . . . . . . q=L.U*J F ^+x%r=s=t=. . . . v@0*` Z X%M B*%.. . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . y z z z z z z z z z z z z z z z z z z z z z z z u=v={+. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . q !&]=M$c*w=a | x=x=x=x=x=x=x=x=x=x=x=x=x=y=. . . . . T$z=A=4@B=C=_.j . . . . . . . . . . q D=E=F=G=H=I=. . . . . . o*z@k&&&*&O p*J=K=L=M=F@. . . . . . . . . . . J@N=O=P=Q=R=S=. . . . . . . T=U=V=V=V=W=. . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . %.[$X=3.w@P$y `.z z z z z z z z z z z z `.A.v$Y=Z=. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . o*z@k&&&*&O p*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . %.Y.R#`=J$ -.-+-3.w@@-p$z Q@@-!=7%P@#-$-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . o*z@k&&&*&O p*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . o*z@k&&&*&O p*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K@%-k&&&*&O p*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . &-*-=---;->-,-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . '-'-)-)-)-J@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . !-~-!-. . ~-~-{-. . . . . . . . . . . . . . . . . . . . . . . . . ~-~-{-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ~-~-{-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ~-~-{-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . ~-]-~-. . ]-]-^-. . . . . . . . . . . . . . . . . . . . . . . . . ]-]-^-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ]-]-^-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ]-]-^-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . ~-]-~-. . ^-^-/-. . . . . . . . . . . . . . . . . . . . . . . . . ]-]-^-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ^-^-/-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ]-]-^-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . ~-]-~-. . ~-~-{-/-~-~-/-. . {-~-~-/-. {-~-]-]-(-!-. . . . . . . . ]-]-^-. . {-_-]-]-(-!-. . . . !-(-]-]-_-{-. . . ~-~-^-:-]-]-:-. . . ~-~-{-. {-~-~-{-_-]-(-^-. . . ^-(-]-_-{-~-~-{-. . . . . . /-_-]-]-]-_-{-. . ~-]-]-]-(-:-. . . !-~-!-:-]-]-:-. :-]-]-:-. . . ~-~-^-:-]-]-:-. . . ]-]-^-. . {-~-]-]-(-!-. . . ~-~-^-_-]-~-. . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . ~-]-~-. . ]-]-^-. (-]-:-. . :-]-(-. {-]-]-_-~-]-]-:-. . . . . . . ]-]-^-. ^-]-]-(-~-]-]-:-. . ~-]-]-_-_-]-]-{-. . ]-]-]-_-_-]-]-~-. . ]-]-^-. ^-]-]-]-]-]-]-]-. . ^-]-]-(-~-]-]-]-^-. . . . . . (-]-(-~-~-]-^-. . ]-_-~-~-]-]-:-. . ~-]-]-]-]-]-]-(-]-]-]-]-^-. . ]-]-]-_-_-]-]-~-. . ]-]-^-. {-]-]-_-~-]-]-:-. . ]-]-]-]-]-~-. . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . ~-]-~-. . ]-]-^-. !-]-(-. . (-]-!-. _-]-:-<-<-/-]-]-/-. . . . . . ]-]-^-. _-]-(-<-<-:-]-]-/-/-]-]-:-<-<-(-]-_-. . ]-]-~-<-<-~-]-]-/-. ]-]-^-. ^-]-]-~-. ^-]-]-^-. _-]-(-/-<-!-]-]-^-. . . . . . ]-]-!-<-<-<-/-. . /-<-<-<-!-]-]-. . ~-]-]-{-. (-]-]-{-. (-]-~-. . ]-]-~-<-<-~-]-]-/-. ]-]-^-. _-]-:-<-<-/-]-]-/-. ]-]-(-/-. /-. . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . ~-]-~-. . ]-]-^-. /-]-]-{-{-]-]-/-. ]-]-]-]-]-]-]-]-^-. . . . . . ]-]-^-. ]-]-~-<-<-^-]-]-^-^-]-]-^-<-<-~-]-]-. . ]-]-^-<-<-^-]-]-^-. ]-]-^-. ^-]-]-. . . ]-]-^-. ]-]-~-<-<-<-]-]-^-. . . . . . _-]-]-]-_-:-/-. . :-(-]-]-]-]-]-. . ~-]-~-. . ~-]-~-. . ~-]-~-. . ]-]-^-<-<-^-]-]-^-. ]-]-^-. ]-]-]-]-]-]-]-]-^-. ]-]-!-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . ~-]-~-. . ]-]-^-. . _-]-:-:-]-_-. . ]-]-_-~-~-~-~-~-{-. . . . . . ]-]-^-. ]-]-~-<-<-^-]-]-^-^-]-]-^-<-<-~-]-]-. . ]-]-^-<-<-^-]-]-^-. ]-]-^-. ^-]-]-. . . ]-]-^-. ]-]-~-<-<-<-]-]-^-. . . . . . /-!-~-(-]-]-_-. !-]-(-!-^-:-]-]-. . ~-]-~-. . ~-]-~-. . ~-]-~-. . ]-]-^-<-<-^-]-]-^-. ]-]-^-. ]-]-_-~-~-~-~-~-{-. ]-]-^-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . ~-]-~-. . ]-]-^-. . ^-]-(-]-]-^-. . _-]-~-<-<-<-<-!-. . . . . . . ]-]-^-. _-]-(-<-<-:-]-]-/-/-]-]-:-<-<-(-]-_-. . ]-]-~-<-<-~-]-]-/-. ]-]-^-. ^-]-]-. . . ]-]-^-. _-]-(-<-<-!-]-]-^-. . . . . . /-<-<-<-!-]-]-. ~-]-~-<-<-~-]-]-. . ~-]-~-. . ~-]-~-. . ~-]-~-. . ]-]-~-<-<-~-]-]-/-. ]-]-^-. _-]-~-<-<-<-<-!-. . ]-]-^-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . ~-]-~-. . ]-]-^-. . . (-]-]-(-. . . {-]-]-_-~-~-]-]-. . . . . . . ]-]-^-. ^-]-]-_-~-]-]-:-. . ~-]-]-~-_-]-]-{-. . ]-]-]-_-_-]-]-~-. . ]-]-^-. ^-]-]-. . . ]-]-^-. ^-]-]-(-~-]-]-]-^-. . . . . . ]-(-~-~-(-]-_-. !-]-]-~-_-]-]-]-. . ~-]-~-. . ~-]-~-. . ~-]-~-. . ]-]-]-_-_-]-]-~-. . ]-]-^-. {-]-]-_-~-~-]-]-. . ]-]-^-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . ~-]-~-. . ]-]-^-. . . :-]-]-:-. . . . {-~-]-]-]-_-:-. . . . . . . ]-]-^-. . {-_-]-]-(-!-. . . . !-(-]-]-_-{-. . . ]-]-!-:-]-]-:-. . . ]-]-^-. ^-]-]-. . . ]-]-^-. . ^-(-]-_-{-]-]-^-. . . . . . ~-]-]-]-]-~-/-. . :-]-]-~-!-]-]-. . ~-]-~-. . ~-]-~-. . ~-]-~-. . ]-]-!-:-]-]-:-. . . ]-]-^-. . {-~-]-]-]-_-:-. . ]-]-^-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ]-]-^-. . . . . . . . . . . . . . . . . . . . . . /-<-<-<-^-]-]-/-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ]-]-^-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ]-]-^-. . . . . . . . . . . . . . . . . . . . . . ]-_-~-_-]-]-~-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ]-]-^-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ]-]-^-. . . . . . . . . . . . . . . . . . . . . . _-]-]-]-_-!-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ]-]-^-. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/record_selected.xpm0000644000175000017500000000747011754453701022765 0ustar miramira/* XPM */ static char *record_selected[] = { /* columns rows colors chars-per-pixel */ "96 33 32 1", " c #24334A", ". c #24334B", "X c #24344C", "o c #25344C", "O c #25354D", "+ c #26354E", "@ c #26364E", "# c #26364F", "$ c #263650", "% c #273750", "& c #273751", "* c #273851", "= c #273852", "- c #283852", "; c #283953", ": c #283954", "> c #293A54", ", c #293A55", "< c #293B56", "1 c #2A3B56", "2 c #2A3B57", "3 c #2A3C57", "4 c #2F7868", "5 c #468779", "6 c #5D9689", "7 c #74A59A", "8 c #8BB4AB", "9 c #A2C3BB", "0 c #BAD2CD", "q c #D1E1DD", "w c #E7F0EE", "e c gray100", /* pixels */ "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "o4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444447ee7444444444444444444=", " 4444444444444444444444444444444444444444444444444444444444444444444444447ee7444444444444444444=", "o4444444444444444444444444444444444444444444444444444444444444444444444447ee7444444444444444444=", "o444444444444444444480050ee4460eee95444460eeew64459weeq844460069we746qee97ee7444444444444444444=", "o44444444444444444440eeweee47eeeeeew5447eeeeee745weeeeee0447eeweee75weeeeeee7444444444444444444=", " 44444444444444444440eew5454wew646ee944wee0446649ee045wee647eee74459ee045wee7444444444444444444=", " 44444444444444444440ee64446ee0777qew46eew444444wee5448ee947ee94444eee5448ee7444444444444444444=", " 44444444444444444440ee44447eeeeeeeee47ee0444444eee4447ee047ee74444eee4447ee7444444444444444444=", " 44444444444444444440ee44447ee977777747eeq444444eee4447ee047ee74444eee4447ee7444444444444444444=", "X44444444444444444440ee44444eeq44445744eee6444540ee844qee747ee74444qee844qee7444444444444444444=", " 44444444444444444440ee444449eew00we0449eee00w746eee0qeew447ee744447eee0qeee7444444444444444444=", "X44444444444444444440ee4444449eeeeew74449eeeee7447weeeeq5447ee7444449eeew0ee74444444444444444442", " 4444444444444444444444444444447775444444477764444467754444444444444457744444444444444444444444=", "X4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", "X44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442" }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/record_normal.xpm0000644000175000017500000000746611754453701022472 0ustar miramira/* XPM */ static char *record_normal[] = { /* columns rows colors chars-per-pixel */ "96 33 32 1", " c #24334A", ". c #24334B", "X c #24344C", "o c #25344C", "O c #25354D", "+ c #26354E", "@ c #26364E", "# c #26364F", "$ c #263650", "% c #273750", "& c #273751", "* c #273851", "= c #273852", "- c #283852", "; c #283953", ": c #283954", "> c #293A54", ", c #293A55", "< c #293B56", "1 c #2A3B56", "2 c #2A3B57", "3 c #2A3C57", "4 c #374E72", "5 c #4D6181", "6 c #637591", "7 c #7A89A1", "8 c #909CB0", "9 c #A6B0C0", "0 c #BCC4D0", "q c #D2D7DF", "w c #E8EBEF", "e c gray100", /* pixels */ "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "o4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444447ee7444444444444444444=", " 4444444444444444444444444444444444444444444444444444444444444444444444447ee7444444444444444444=", "o4444444444444444444444444444444444444444444444444444444444444444444444447ee7444444444444444444=", "o444444444444444444480050ee4460eee95444460eeew64459weeq844460069we746qee97ee7444444444444444444=", "o44444444444444444440eeweee47eeeeeew5447eeeeee745weeeeee0447eeweee75weeeeeee7444444444444444444=", " 44444444444444444440eew5454wew646ee944wee0446649ee045wee647eee74459ee045wee7444444444444444444=", " 44444444444444444440ee64446ee0777qew46eew444444wee5448ee947ee94444eee5448ee7444444444444444444=", " 44444444444444444440ee44447eeeeeeeee47ee0444444eee4447ee047ee74444eee4447ee7444444444444444444=", " 44444444444444444440ee44447ee977777747eeq444444eee4447ee047ee74444eee4447ee7444444444444444444=", "X44444444444444444440ee44444eeq44445744eee6444540ee844qee747ee74444qee844qee7444444444444444444=", " 44444444444444444440ee444449eew00we0449eee00w746eee0qeew447ee744447eee0qeee7444444444444444444=", "X44444444444444444440ee4444449eeeeew74449eeeee7447weeeeq5447ee7444449eeew0ee74444444444444444442", " 4444444444444444444444444444447775444444477764444467754444444444444457744444444444444444444444=", "X4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", "X44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442" }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/solo_focus.xpm0000644000175000017500000000446411754453701022012 0ustar miramira/* XPM */ static char * solo_focus[] = { "46 25 70 1", " c #43608C", ". c #202D42", "+ c #202E43", "@ c #FFFFFF", "# c #AAB7CB", "$ c #60799E", "% c #C5CEDC", "& c #F1F3F6", "* c #FDFDFE", "= c #F5F6F9", "- c #DBE0E9", "; c #A2B0C6", "> c #6D84A6", ", c #C9D1DE", "' c #F3F5F8", ") c #FBFCFD", "! c #E6EAF0", "~ c #A7B5C9", "{ c #4A6691", "] c #DFE4EB", "^ c #FEFEFE", "/ c #DDE2EA", "( c #E2E6ED", "_ c #DCE2EA", ": c #7187A8", "< c #F2F4F7", "[ c #DEE3EB", "} c #FEFEFF", "| c #D2D9E3", "1 c #44618D", "2 c #FBFBFC", "3 c #BFC9D8", "4 c #4C6791", "5 c #D1D8E3", "6 c #EBEEF3", "7 c #4E6993", "8 c #90A1BB", "9 c #7B8FAE", "0 c #C3CCDA", "a c #D3DAE4", "b c #A7B4C9", "c c #556F97", "d c #F8F9FA", "e c #B5C1D2", "f c #223046", "g c #47648F", "h c #8B9DB8", "i c #BDC8D7", "j c #D5DBE5", "k c #768BAB", "l c #47638E", "m c #BCC6D6", "n c #223047", "o c #D9DFE8", "p c #FCFDFD", "q c #B3BFD1", "r c #F7F8FA", "s c #EFF1F5", "t c #5A739A", "u c #CAD2DF", "v c #F4F6F8", "w c #233249", "x c #24334A", "y c #141C2A", "z c #16202E", "A c #141C29", "B c #172130", "C c #17202F", "D c #182231", "E c #101621", " .", " .", " .", " +", " +", " +", " +", " @@# +", " @@# +", " @@# +", " $%&*=-; >,')!~{ @@# >,')!~{ +", " ]@^/(*_ :)@<[}@|1 @@# :)@<[}@|1 +", " 2@3 4> 5@67 8@@9 @@# 5@67 8@@9 +", " 0@@&abc d@e 7@@; @@# d@e 7@@; f", " ghi/}@j d@e 7@@; @@# d@e 7@@; +", " kl m@) 5@67 8@@9 @@# 5@67 8@@9 n", " @d/]}@o :p@uv)!~{ @@# >uv)!~{ n", " n", " w", " n", " w", " x", " x", "yyyyyzAyyyyyyyyyyAAAAAAyyyyyyzyzzzzzzzzBCCCDCE"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/tap_tempo_normal.xpm0000644000175000017500000000131611754453701023170 0ustar miramira/* XPM */ static char *tap_tempo_normal[] = { /* columns rows colors chars-per-pixel */ "22 22 2 1", " c #374E72", ". c gray100", /* pixels */ " ", " ", " ", " ", " ", " ", " ", " .. ", " .. ", " ..... ..... ..... ", " .. .. .. .. ", " .. ..... .. .. ", " .. .. .. .. .. ", " .... ...... ..... ", " .. ", " .. ", " ", " ", " ", " ", " ", " " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/pause_selected.xpm0000644000175000017500000001031511754453701022614 0ustar miramira/* XPM */ static char * pause_selected[] = { "46 25 115 2", " c #2F7868", ". c #202D42", "+ c #202E43", "@ c #FFFFFF", "# c #95BAB2", "$ c #E7EFED", "% c #F8FBFA", "& c #B5CFC9", "* c #367C6D", "= c #428476", "- c #D0E0DD", "; c #F1F6F5", "> c #FDFEFE", ", c #F0F5F4", "' c #BAD2CD", ") c #438576", "! c #569184", "~ c #669B90", "{ c #D5E3E0", "] c #F8FAFA", "^ c #FBFCFC", "/ c #E3EDEB", "( c #ABC8C2", "_ c #307969", ": c #8CB4AC", "< c #E2ECEA", "[ c #E8F0EE", "} c #96BBB3", "| c #317969", "1 c #EDF3F2", "2 c #ACC9C3", "3 c #EEF4F3", "4 c #9EC0B9", "5 c #4B8A7C", "6 c #CFE0DC", "7 c #A9C7C1", "8 c #DDE9E6", "9 c #C0D6D1", "0 c #EBF2F0", "a c #CCDEDA", "b c #A9C7C0", "c c #C8DCD7", "d c #DAE7E4", "e c #8EB6AD", "f c #AAC8C1", "g c #DFEAE8", "h c #79A89E", "i c #7BA99F", "j c #699E92", "k c #97BBB3", "l c #A3C3BC", "m c #B8D1CB", "n c #F5F9F8", "o c #F3F7F6", "p c #A0C2BA", "q c #5E978A", "r c #397E6F", "s c #327A6A", "t c #E5EEEC", "u c #B9D1CC", "v c #A4C4BD", "w c #BAD3CD", "x c #5B9588", "y c #5C9589", "z c #FCFDFD", "A c #599487", "B c #7AA99E", "C c #ECF3F1", "D c #94BAB1", "E c #FEFEFE", "F c #223046", "G c #E9F1EF", "H c #7FACA2", "I c #317A6A", "J c #6B9F93", "K c #639A8E", "L c #80ACA3", "M c #357C6C", "N c #49897B", "O c #92B8B0", "P c #F6F9F8", "Q c #EBF2F1", "R c #A1C2BB", "S c #D4E3E0", "T c #ADCAC4", "U c #D2E2DE", "V c #9DBFB8", "W c #BFD6D1", "X c #A8C6C0", "Y c #E7F0EE", "Z c #F4F8F7", "` c #B2CDC7", " . c #ADCAC3", ".. c #223047", "+. c #88B2A9", "@. c #B7D0CB", "#. c #377D6E", "$. c #60988C", "%. c #DEEAE7", "&. c #579285", "*. c #BDD4CF", "=. c #FDFDFD", "-. c #85B0A6", ";. c #FAFCFB", ">. c #D9E7E4", ",. c #A0C1BA", "'. c #233249", "). c #24334A", "!. c #141C2A", "~. c #16202E", "{. c #141C29", "]. c #172130", "^. c #17202F", "/. c #182231", "(. c #101621", " . ", " . ", " . ", " + ", " + ", " + ", " + ", " + ", " + ", " + ", " @ @ # $ % & * = - ; > , ' ) @ @ ! ! @ @ ~ { ] ^ / ( _ : < ^ [ } | + ", " @ @ 1 2 3 @ 4 5 6 2 7 8 @ 9 @ @ ! ! @ @ 0 @ a b c d e @ < f g @ # + ", " @ @ h i @ [ _ j k l m @ n @ @ ! ! @ @ o @ p q r s t @ u v w @ [ + ", " @ @ x y @ z ( @ @ @ @ @ @ @ @ ! A @ @ B C @ @ ^ D z @ @ @ @ @ E F ", " @ @ h i @ G % @ H I J @ @ ^ @ K L @ @ M _ N O @ P t @ J 5 + ", " @ @ Q 2 3 @ R / @ S T Q @ @ U @ { V , @ @ o W X - @ Y : @ Z ` .S E ..", " @ @ +.g % @.#. $.%.z %.+.@ @ &.d z < # @ @ *.[ =.] - q -.d ;.% >.,. ..", " @ @ ! ..", " @ @ ! ..", " @ @ ! '.", " ..", " '.", " ).", " ).", "!.!.!.!.!.~.{.!.!.!.!.!.!.!.!.!.!.{.{.{.{.{.{.!.!.!.!.!.!.~.!.~.~.~.~.~.~.~.~.].^.^.^./.^.(."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/reverse_selected.xpm0000644000175000017500000000270711754453701023160 0ustar miramira/* XPM */ static char * reverse_selected[] = { "36 25 28 1", " c None", ". c #212E44", "+ c #2F7868", "@ c #202D42", "# c #293A54", "$ c #1F2D41", "% c #1F2C41", "& c #1F2C40", "* c #283954", "= c #1F2B3F", "- c #8BB4AB", "; c #BAD2CD", "> c #A2C3BB", ", c #FFFFFF", "' c #D1E1DD", ") c #5D9689", "! c #468779", "~ c #283953", "{ c #1E2B3F", "] c #E7F0EE", "^ c #74A59A", "/ c #293A55", "( c #293B56", "_ c #202E43", ": c #2A3B56", "< c #2A3B57", "[ c #2A3C57", "} c #2A3C58", ".++++++++++++++++++++++++++++++++++.", "@++++++++++++++++++++++++++++++++++#", "$++++++++++++++++++++++++++++++++++#", "$++++++++++++++++++++++++++++++++++#", "%++++++++++++++++++++++++++++++++++#", "&++++++++++++++++++++++++++++++++++#", "&++++++++++++++++++++++++++++++++++*", "&++++++++++++++++++++++++++++++++++*", "&++++++++++++++++++++++++++++++++++*", "=+++++-;->,,++-',,')+!;;!++);;!++++~", "{+++++;,,,,,+>,,;',,)+],>++>,]+++++~", "{+++++;,,^+!!,,)++-,'+-,]++],-+++++~", "{+++++;,'+++^,,,,,,,,+!,,)),,!+++++~", "{+++++;,;+++^,,;;;;;;++',>>,'++++++~", "=+++++;,;+++!,,^+++!^++^,],,^++++++*", "&+++++;,;++++>,,;;',;+++],,]+++++++#", "&+++++;,;+++++-',,,;^+++>,,>+++++++#", "$++++++++++++++++++++++++++++++++++/", "@++++++++++++++++++++++++++++++++++/", "@++++++++++++++++++++++++++++++++++(", "_++++++++++++++++++++++++++++++++++:", "_++++++++++++++++++++++++++++++++++<", ".++++++++++++++++++++++++++++++++++[", ".++++++++++++++++++++++++++++++++++}", ".++++++++++++++++++++++++++++++++++."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/trig_selected.xpm0000644000175000017500000000354111754453701022447 0ustar miramira/* XPM */ static char *trig_selected[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #2F7868", "8 c #468779", "9 c #5D9689", "0 c #74A59A", "q c #8BB4AB", "w c #A2C3BB", "e c #BAD2CD", "r c #D1E1DD", "t c #E7F0EE", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777009777777777777777777:", "7777777779ee977777777777yye777777777777777777:", "7777777770yy077777777777eeq777777777777777777:", "777777779wyyw00780089eq7009777qew890077777777:", "77777777eyyyyyy70yyeyye7yye77eyyyytyy77777777:", "77777777qryyree70yyyw007yye79yyt0eyyy77777777:", "7777777770yy07770yyw7777yye7wyy877tyy77777777:", "7777777770yy07770yy07777yye7eyy777eyy777777771", "7777777770yy07770yy07777yye7eyy777ryy77777777:", "7777777770yyq7770yy07777yye70yyw70yyy777777772", "7777777778yyyye70yy07777yye77tyyyyyyy777777772", "77777777770tyye70yy07777yye778rytqeyy777777772", "7777777777777777777777777777777777tyt777777772", "77777777777777777777777777777ww00ryyq777777774", "77777777777777777777777777777eyyyyyq7777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXXX%.XXXXXXXXX......XXXXXX%X%%%%%%%&&%-%-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/insert_selected.xpm0000644000175000017500000000470711754453701023013 0ustar miramira/* XPM */ static char * insert_selected[] = { "77 25 28 1", " c None", ". c #212E44", "+ c #2F7868", "@ c #202D42", "# c #293A54", "$ c #1F2D41", "% c #1F2C41", "& c #1F2C40", "* c #8BB4AB", "= c #BAD2CD", "- c #283954", "; c #FFFFFF", "> c #5D9689", ", c #74A59A", "' c #1F2B3F", ") c #A2C3BB", "! c #E7F0EE", "~ c #D1E1DD", "{ c #283953", "] c #1E2B3F", "^ c #468779", "/ c #293A55", "( c #293B56", "_ c #202E43", ": c #2A3B56", "< c #2A3B57", "[ c #2A3C57", "} c #2A3C58", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", "@+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "&++++++++++++++++*=*++++++++++++++++++++++++++++++++++++++++++++++++++++++++-", "&++++++++++++++++=;=++++++++++++++++++++++++++++++++++++>==+++++++++++++++++-", "&++++++++++++++++>,>++++++++++++++++++++++++++++++++++++,;;+++++++++++++++++-", "'++++++++++++++++*=*++==,);;)+++);;;!*+++*~;;~>++>==,!;~~;;==*++++++++++++++{", "]++++++++++++++++=;=++;;;;;;;,+);;==!=++);;=~;;>+,;;;;;;;;;;;=++++++++++++++{", "]++++++++++++++++=;=++;;!^^!;=+=;~+++^+^;;>++*;~+,;;=++^,;;+++++++++++++++++{", "]++++++++++++++++=;=++;;,++=;=+*;;;!=>+,;;;;;;;;+,;;^+++,;;+++++++++++++++++{", "]++++++++++++++++=;=++;;,++=;=++,=~;;;^,;;======+,;;++++,;;+++++++++++++++++{", "'++++++++++++++++=;=++;;,++=;=+^+++^;;,^;;,+++^,+,;;++++,;;+++++++++++++++++-", "&++++++++++++++++=;=++;;,++=;=+=;==~;;^+);;==~;=+,;;++++>;;~=>++++++++++++++#", "&++++++++++++++++=;=++;;,++=;=+*!;;;~,+++*~;;;=,+,;;+++++);;;,++++++++++++++#", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/", "@+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/", "@+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++(", "_+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++:", "_+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/1x_rate_disabled.xpm0000644000175000017500000000216511754453701023025 0ustar miramira/* XPM */ static char * onex_rate_disabled[] = { "26 25 22 1", " c None", ". c #475160", "+ c #202D42", "@ c #202E43", "# c #6F7783", "$ c #848B95", "% c #C2C5CA", "& c #FFFFFF", "* c #999EA6", "= c #ADB1B8", "- c #EAEBED", "; c #5B6471", "> c #212E44", ", c #212F44", "' c #D6D8DB", ") c #212F45", "! c #223046", "~ c #223047", "{ c #233148", "] c #233249", "^ c #24334A", "/ c #24334B", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................@", "......#$$$...............@", ".....%&&&&...............@", ".....*==&&...............@", ".......$&&...$&&#.=&-;...@", ".......$&&....=&-$&&#....@", ".......$&&.....%&&&$.....>", ".......$&&.....#&&-......,", ".......$&&.....'&&&*.....)", ".....#%'&&%%..=&';&&#....)", ".....$&&&&&&.$&&;.*&-;...!", ".........................~", ".........................{", ".........................{", ".........................]", ".........................]", ".........................^", "........................./", ".........................{"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/save_normal.xpm0000644000175000017500000000353711754453701022145 0ustar miramira/* XPM */ static char *save_normal[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #374E72", "8 c #4D6181", "9 c #637591", "0 c #7A89A1", "q c #909CB0", "w c #A6B0C0", "e c #BCC4D0", "r c #D2D7DF", "t c #E8EBEF", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777778qeeeq8779weeeq8779007777009779wee077777:", "77777tyyyyy077eyyyyyy970yy9779yy070yyyyyr7777:", "77770yy878097709779tyr77tyw77eyy79yye78yyw777:", "77770yye00777777000ryy77wyy77yyw7wyy000ryt777:", "77777tyyyyy077wyyyyyyy779yy00yy97eyyyyyyyy7771", "7777770eeyyt79yyr00ryy777ryeeyr77eyy000000777:", "7777877770yy70yy078tyy777qyyyyq770yyq777807772", "77770yreeyyr78yytetyyy7777yyyy7777eyyrerye7772", "77779ryyytw8770tytqeyy7777eyye77777wtyyte07772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXXX%.XXXXXXXXX......XXXXXX%X%%%%%%%&&%-%-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/half_rate_disabled.xpm0000644000175000017500000000226111754453701023404 0ustar miramira/* XPM */ static char * half_rate_disabled[] = { "26 25 26 1", " c None", ". c #475160", "+ c #202D42", "@ c #999EA6", "# c #C2C5CA", "$ c #ADB1B8", "% c #D6D8DB", "& c #202E43", "* c #EAEBED", "= c #848B95", "- c #FFFFFF", "; c #6F7783", "> c #5B6471", ", c #CCCFD3", "' c #CED1D5", ") c #CFD1D5", "! c #C5C8CD", "~ c #212E44", "{ c #212F44", "] c #212F45", "^ c #223046", "/ c #223047", "( c #233148", "_ c #233249", ": c #24334A", "< c #24334B", ".........................+", ".........................+", ".........................+", ".........................+", ".....@#@.................+", ".....$%#.................+", "......##.................&", "......##.................&", "......##.................&", ".....#**#................&", ".....====....=--;.$-*>...&", "..............$-*=--;....&", "....,''))'!....#---=.....~", "...............;--*......{", ".....>$#$>.....%---@.....]", ".....=$=#*....$-%>--;....]", "........=-...=-->.@-*>...^", ".......;*#.............../", "......=-#................(", ".....;--##...............(", ".....>====..............._", "........................._", ".........................:", ".........................<", ".........................("}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/overdub_disabled.xpm0000644000175000017500000000747111754453701023135 0ustar miramira/* XPM */ static char *overdub_disabled[] = { /* columns rows colors chars-per-pixel */ "96 33 32 1", " c #24334A", ". c #24334B", "X c #24344C", "o c #25344C", "O c #25354D", "+ c #26354E", "@ c #26364E", "# c #26364F", "$ c #263650", "% c #273750", "& c #273751", "* c #273851", "= c #273852", "- c #283852", "; c #283953", ": c #283954", "> c #293A54", ", c #293A55", "< c #293B56", "1 c #2A3B56", "2 c #2A3B57", "3 c #2A3C57", "4 c #475160", "5 c #5B6471", "6 c #6F7783", "7 c #848B95", "8 c #999EA6", "9 c #ADB1B8", "0 c #C2C5CA", "q c #D6D8DB", "w c #EAEBED", "e c gray100", /* pixels */ "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "o4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#44444444444444444444444444444444444444444444444444444444447ee744444444444440ee4444444444444444=", " 44444444444444444444444444444444444444444444444444444444447ee744444444444440ee4444444444444444=", "o44444444444444444444444444444444444444444444444444444444447ee744444444444440ee4444444444444444=", "o444444444444460eee064470064448005459weeq644460069we746qee97ee744008444008440ee5qee944444444444=", "o4444444444447eeeeeee746ee9444wew45weeeeee7447eeweee75weeeeeee744ee0444ee0440eeeeeee04444444444=", " 444444444444wee747eew44qew447ee849ee845qew447eee74459ee045wee744ee0444ee0440ee045wee6444444444=", " 444444444446eeq444qee648ee740ee54wew7779ee647ee94444eee5448ee744ee0444ee0440ee5448ee9444444444=", " 444444444447ee04440ee744ee04ee044eeeeeeeee747ee74444eee4447ee744ee0444ee0440ee4447ee0444444444=", " 444444444447ee04440ee7449ee8ee644eeq777777547ee74444eee4447ee744ee0444ee0440ee4447ee0444444444=", "X444444444444eee545eee4446eeeew4440ee544448447ee74444qee844qee744eeq448ee0440ee844qee7444444444=", " 4444444444449eew0wee94444qeee84446eee00qee447ee744447eee0qeee744qeeq0eee0440eee0qeew4444444444=", "X44444444444449eeeee9444448eee544447weeeee9447ee7444449eeew0ee7445weee8ee0440ee7eeew644444444442", " 4444444444444447774444444444444444446776444444444444445774444444447754444444444477444444444444=", "X4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", "X44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442" }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/substitute_normal.xpm0000644000175000017500000000461511754453701023420 0ustar miramira/* XPM */ static char * substitute_normal[] = { "77 25 24 1", " c None", ". c #212E44", "+ c #374E72", "@ c #293A54", "# c #202D42", "$ c #1F2D41", "% c #1F2C41", "& c #1F2C40", "* c #283954", "= c #7A89A1", "- c #FFFFFF", "; c #BCC4D0", "> c #4D6181", ", c #637591", "' c #1F2B3F", ") c #1E2B3F", "! c #A6B0C0", "~ c #909CB0", "{ c #D2D7DF", "] c #E8EBEF", "^ c #202E43", "/ c #293A55", "( c #293B55", "_ c #293B56", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*", "&+++++++++++++++++++=-;+++++++++++++>=,+++--++,=>+++++++++++>=,+++++++++++++*", "'+++++++++++++++++++=-;+++++++++++++=-;+++;;++;-=+++++++++++=-;+++++++++++++@", ")++++,!;;~>+;;++,;~+=-;,;!>++>~;;!,,{-];;+;;+~]-{;~,;~++~;,,{-];;++=;;~>++++@", ")+++,--;;-=+--++=-;+=-----]>+]-{;];=-----+--+;----;=-;++;-==-----+;-];-]>+++@", ")+++=-{+++>+--++=-;+=-]>+;-!+-->++>+=-;+++--++;-=++=-;++;-=+=-;++,-]++~-~+++@", ")+++>]--]!>+--++=-;+=-;++=-;+;---;,+=-;+++--++;-=++=-;++;-=+=-;++=------;+++@", "'+++++,=;-!+--++!-;+=-{++~-;++>=~-]+=-;+++--++;-=++=-;++]-=+=-;++=-{====,+++*", "&+++=;==;-!+{-{{--;+=--{;--,+{~=~-]+=--;~+--++;-];,>--;]--=+=--;~+]-!==;=+++@", "&+++,{---;>+,]-{!-;+=-{!-]=++;---{=++;--;+--++>]--=+~--!{-=++;--;+>;---{,+++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "^+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "^+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++(", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/replace_normal.xpm0000644000175000017500000000461211754453701022615 0ustar miramira/* XPM */ static char * replace_normal[] = { "77 25 24 1", " c None", ". c #212E44", "+ c #374E72", "@ c #293A54", "# c #202D42", "$ c #1F2D41", "% c #1F2C41", "& c #1F2C40", "* c #637591", "= c #BCC4D0", "- c #283954", "; c #7A89A1", "> c #FFFFFF", ", c #1F2B3F", "' c #909CB0", ") c #A6B0C0", "! c #D2D7DF", "~ c #E8EBEF", "{ c #4D6181", "] c #1E2B3F", "^ c #202E43", "/ c #293A55", "( c #293B55", "_ c #293B56", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&++++++++++++++++++++++++++++++++++++*==++++++++++++++++++++++++++++++++++++-", "&++++++++++++++++++++++++++++++++++++;>>++++++++++++++++++++++++++++++++++++-", "&++++++++++++++++++++++++++++++++++++;>>++++++++++++++++++++++++++++++++++++-", ",++++++++++'=')>>++'!>>!*++*==*!>~;++;>>++'~>>>={+++*=>>>'++{)~>>){+++++++++@", "]++++++++++=>>>>>+)>>=!>>*+;>>>=~>>;+;>>++=~==~>~++*>>>=!=++~>~=~>~+++++++++@", "]++++++++++=>>;+{{>>*++'>!+;>>;+{~>!+;>>++{+++{>>;+!>>{++{+'>~+++!>'++++++++@", "]++++++++++=>!+++;>>>>>>>>+;>>+++=>>+;>>++;!>>>>>;+>>=+++++=>>>>>>>=++++++++@", "]++++++++++=>=+++;>>======+;>>+++=>>+;>>+{>>);;>>;+>>=+++++=>~====='++++++++@", ",++++++++++=>=+++{>>;+++{;+;>>;+{~>!+;>>+;>>++;>>;+!>>{++{+'>~{+++**++++++++-", "&++++++++++=>=++++)>>==!>=+;>>>=~>>;+;>>+{>>!=>>>;+*>>~=!=++~>~==~>;++++++++@", "&++++++++++=>=+++++'!>>>=;+;>>*!>~;++;>>++;~>!;>>;++*=>>>'++{)~>>~={++++++++@", "$++++++++++++++++++++++++++;>>++++++++++++++++++++++++++++++++++++++++++++++@", "#++++++++++++++++++++++++++;>>++++++++++++++++++++++++++++++++++++++++++++++@", "#++++++++++++++++++++++++++;>>++++++++++++++++++++++++++++++++++++++++++++++@", "^+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "^+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++(", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/reverse_normal.xpm0000644000175000017500000000261111754453701022652 0ustar miramira/* XPM */ static char * reverse_normal[] = { "36 25 24 1", " c None", ". c #212E44", "+ c #374E72", "@ c #293A54", "# c #202D42", "$ c #1F2D41", "% c #1F2C41", "& c #1F2C40", "* c #283954", "= c #1F2B3F", "- c #909CB0", "; c #BCC4D0", "> c #A6B0C0", ", c #FFFFFF", "' c #D2D7DF", ") c #637591", "! c #4D6181", "~ c #1E2B3F", "{ c #E8EBEF", "] c #7A89A1", "^ c #202E43", "/ c #293A55", "( c #293B55", "_ c #293B56", ".++++++++++++++++++++++++++++++++++@", "#++++++++++++++++++++++++++++++++++@", "$++++++++++++++++++++++++++++++++++@", "$++++++++++++++++++++++++++++++++++@", "%++++++++++++++++++++++++++++++++++@", "&++++++++++++++++++++++++++++++++++@", "&++++++++++++++++++++++++++++++++++*", "&++++++++++++++++++++++++++++++++++*", "&++++++++++++++++++++++++++++++++++*", "=+++++-;->,,++-',,')+!;;!++);;!++++@", "~+++++;,,,,,+>,,;',,)+{,>++>,{+++++@", "~+++++;,,]+!!,,)++-,'+-,{++{,-+++++@", "~+++++;,'+++],,,,,,,,+!,,)),,!+++++@", "~+++++;,;+++],,;;;;;;++',>>,'++++++@", "=+++++;,;+++!,,]+++!]++],{,,]++++++*", "&+++++;,;++++>,,;;',;+++{,,{+++++++@", "&+++++;,;+++++-',,,;]+++>,,>+++++++@", "$++++++++++++++++++++++++++++++++++@", "#++++++++++++++++++++++++++++++++++@", "#++++++++++++++++++++++++++++++++++@", "^++++++++++++++++++++++++++++++++++@", "^++++++++++++++++++++++++++++++++++/", ".++++++++++++++++++++++++++++++++++(", ".++++++++++++++++++++++++++++++++++_", ".++++++++++++++++++++++++++++++++++@"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/replace_focus.xpm0000644000175000017500000000470511754453701022447 0ustar miramira/* XPM */ static char * replace_focus[] = { "77 25 28 1", " c None", ". c #1E2B3F", "+ c #43608C", "@ c #293A54", "# c #202D42", "$ c #1F2D41", "% c #1F2C41", "& c #1F2C40", "* c #6C83A5", "= c #C0CAD9", "- c #283954", "; c #8295B2", "> c #FFFFFF", ", c #1F2B3F", "' c #96A6BF", ") c #ABB8CC", "! c #D5DBE5", "~ c #EAEDF2", "{ c #587199", "] c #283953", "^ c #293A55", "/ c #293B56", "( c #202E43", "_ c #2A3B56", ": c #2A3B57", "< c #212E44", "[ c #2A3C57", "} c #2A3C58", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&++++++++++++++++++++++++++++++++++++*==++++++++++++++++++++++++++++++++++++-", "&++++++++++++++++++++++++++++++++++++;>>++++++++++++++++++++++++++++++++++++-", "&++++++++++++++++++++++++++++++++++++;>>++++++++++++++++++++++++++++++++++++-", ",++++++++++'=')>>++'!>>!*++*==*!>~;++;>>++'~>>>={+++*=>>>'++{)~>>){+++++++++]", ".++++++++++=>>>>>+)>>=!>>*+;>>>=~>>;+;>>++=~==~>~++*>>>=!=++~>~=~>~+++++++++]", ".++++++++++=>>;+{{>>*++'>!+;>>;+{~>!+;>>++{+++{>>;+!>>{++{+'>~+++!>'++++++++]", ".++++++++++=>!+++;>>>>>>>>+;>>+++=>>+;>>++;!>>>>>;+>>=+++++=>>>>>>>=++++++++]", ".++++++++++=>=+++;>>======+;>>+++=>>+;>>+{>>);;>>;+>>=+++++=>~====='++++++++]", ",++++++++++=>=+++{>>;+++{;+;>>;+{~>!+;>>+;>>++;>>;+!>>{++{+'>~{+++**++++++++-", "&++++++++++=>=++++)>>==!>=+;>>>=~>>;+;>>+{>>!=>>>;+*>>~=!=++~>~==~>;++++++++@", "&++++++++++=>=+++++'!>>>=;+;>>*!>~;++;>>++;~>!;>>;++*=>>>'++{)~>>~={++++++++@", "$++++++++++++++++++++++++++;>>++++++++++++++++++++++++++++++++++++++++++++++^", "#++++++++++++++++++++++++++;>>++++++++++++++++++++++++++++++++++++++++++++++^", "#++++++++++++++++++++++++++;>>++++++++++++++++++++++++++++++++++++++++++++++/", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++:", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/record_focus.xpm0000644000175000017500000000746511754453701022320 0ustar miramira/* XPM */ static char *record_focus[] = { /* columns rows colors chars-per-pixel */ "96 33 32 1", " c #24334A", ". c #24334B", "X c #24344C", "o c #25344C", "O c #25354D", "+ c #26354E", "@ c #26364E", "# c #26364F", "$ c #263650", "% c #273750", "& c #273751", "* c #273851", "= c #273852", "- c #283852", "; c #283953", ": c #283954", "> c #293A54", ", c #293A55", "< c #293B56", "1 c #2A3B56", "2 c #2A3B57", "3 c #2A3C57", "4 c #43608C", "5 c #587199", "6 c #6C83A5", "7 c #8295B2", "8 c #96A6BF", "9 c #ABB8CC", "0 c #C0CAD9", "q c #D5DBE5", "w c #EAEDF2", "e c gray100", /* pixels */ "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "o4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444447ee7444444444444444444=", " 4444444444444444444444444444444444444444444444444444444444444444444444447ee7444444444444444444=", "o4444444444444444444444444444444444444444444444444444444444444444444444447ee7444444444444444444=", "o444444444444444444480050ee4460eee95444460eeew64459weeq844460069we746qee97ee7444444444444444444=", "o44444444444444444440eeweee47eeeeeew5447eeeeee745weeeeee0447eeweee75weeeeeee7444444444444444444=", " 44444444444444444440eew5454wew646ee944wee0446649ee045wee647eee74459ee045wee7444444444444444444=", " 44444444444444444440ee64446ee0777qew46eew444444wee5448ee947ee94444eee5448ee7444444444444444444=", " 44444444444444444440ee44447eeeeeeeee47ee0444444eee4447ee047ee74444eee4447ee7444444444444444444=", " 44444444444444444440ee44447ee977777747eeq444444eee4447ee047ee74444eee4447ee7444444444444444444=", "X44444444444444444440ee44444eeq44445744eee6444540ee844qee747ee74444qee844qee7444444444444444444=", " 44444444444444444440ee444449eew00we0449eee00w746eee0qeew447ee744447eee0qeee7444444444444444444=", "X44444444444444444440ee4444449eeeeew74449eeeee7447weeeeq5447ee7444449eeew0ee74444444444444444442", " 4444444444444444444444444444447775444444477764444467754444444444444457744444444444444444444444=", "X4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", "X44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442" }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/reverse_focus.xpm0000644000175000017500000000270411754453701022504 0ustar miramira/* XPM */ static char * reverse_focus[] = { "36 25 28 1", " c None", ". c #1E2B3F", "+ c #43608C", "@ c #293A54", "# c #202D42", "$ c #1F2D41", "% c #1F2C41", "& c #1F2C40", "* c #283954", "= c #1F2B3F", "- c #96A6BF", "; c #C0CAD9", "> c #ABB8CC", ", c #FFFFFF", "' c #D5DBE5", ") c #6C83A5", "! c #587199", "~ c #283953", "{ c #EAEDF2", "] c #8295B2", "^ c #293A55", "/ c #293B56", "( c #202E43", "_ c #2A3B56", ": c #2A3B57", "< c #212E44", "[ c #2A3C57", "} c #2A3C58", ".++++++++++++++++++++++++++++++++++@", "#++++++++++++++++++++++++++++++++++@", "$++++++++++++++++++++++++++++++++++@", "$++++++++++++++++++++++++++++++++++@", "%++++++++++++++++++++++++++++++++++@", "&++++++++++++++++++++++++++++++++++@", "&++++++++++++++++++++++++++++++++++*", "&++++++++++++++++++++++++++++++++++*", "&++++++++++++++++++++++++++++++++++*", "=+++++-;->,,++-',,')+!;;!++);;!++++~", ".+++++;,,,,,+>,,;',,)+{,>++>,{+++++~", ".+++++;,,]+!!,,)++-,'+-,{++{,-+++++~", ".+++++;,'+++],,,,,,,,+!,,)),,!+++++~", ".+++++;,;+++],,;;;;;;++',>>,'++++++~", "=+++++;,;+++!,,]+++!]++],{,,]++++++*", "&+++++;,;++++>,,;;',;+++{,,{+++++++@", "&+++++;,;+++++-',,,;]+++>,,>+++++++@", "$++++++++++++++++++++++++++++++++++^", "#++++++++++++++++++++++++++++++++++^", "#++++++++++++++++++++++++++++++++++/", "(++++++++++++++++++++++++++++++++++_", "(++++++++++++++++++++++++++++++++++:", "<++++++++++++++++++++++++++++++++++[", "<++++++++++++++++++++++++++++++++++}", ".++++++++++++++++++++++++++++++++++@"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/tap_tempo_selected.xpm0000644000175000017500000000132011754453701023463 0ustar miramira/* XPM */ static char *tap_tempo_selected[] = { /* columns rows colors chars-per-pixel */ "22 22 2 1", " c #2F7868", ". c gray100", /* pixels */ " ", " ", " ", " ", " ", " ", " ", " .. ", " .. ", " ..... ..... ..... ", " .. .. .. .. ", " .. ..... .. .. ", " .. .. .. .. .. ", " .... ...... ..... ", " .. ", " .. ", " ", " ", " ", " ", " ", " " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/scratch_active.xpm0000644000175000017500000000270011754453701022610 0ustar miramira/* XPM */ static char * scratch_active[] = { "46 25 11 1", " c None", ". c #750924", "+ c #933F54", "@ c #A35B6D", "# c #D1ADB6", "$ c #FFFFFF", "% c #EFE3E6", "& c #E0C8CE", "* c #C1919D", "= c #B27685", "- c #84243C", "..............................................", "..............................................", "..............................................", "..............................................", "..............................................", "..............................................", "..............................................", ".....................................+@.......", "..........................+#+........#$.......", "..........................@$@........#$.......", "..+%$$&..*$$%..$&&$@$$$%@@$$$$.@%$$+.#$*$$@...", "..#$+.=.=$@.@..$$==-+@@%$.@$@.-$#.-+.#$@.&$...", "..@$$$&.#$.....$#..@$&#%$.@$@.@$@....#$..#$...", "..-.-*$@*$-.-..$#..#$..&$.@$@.+$=..-.#$..#$...", "..#&#%$--%%#%..$#..@$&&%$.+$&#.#$#&@.#$..#$...", "...@@@....@@+..@+...+@-+@..+@@..+@@..+@..+@...", "..............................................", "..............................................", "..............................................", "..............................................", "..............................................", "..............................................", "..............................................", "..............................................", ".............................................."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/mute_selected.xpm0000644000175000017500000000506611754453701022460 0ustar miramira/* XPM */ static char * mute_selected[] = { "46 25 87 1", " c #2F7868", ". c #202D42", "+ c #202E43", "@ c #367C6D", "# c #327A6A", "$ c #FFFFFF", "% c #A1C2BB", "& c #A6C5BE", "* c #A8C6C0", "= c #F4F8F7", "- c #ECF3F1", "; c #8DB5AC", "> c #408374", ", c #BBD3CE", "' c #F7FAF9", ") c #8BB4AB", "! c #61988C", "~ c #C8DCD7", "{ c #F8FBFA", "] c #CFE0DC", "^ c #649A8E", "/ c #F9FBFB", "( c #EAF1F0", "_ c #EDF3F2", ": c #E6EFED", "< c #E9F1EF", "[ c #EEF4F3", "} c #5D9689", "| c #D2E2DE", "1 c #EBF2F0", "2 c #639A8E", "3 c #FCFDFD", "4 c #E7EFED", "5 c #E3EDEB", "6 c #367D6D", "7 c #4C8B7D", "8 c #E2ECEA", "9 c #93B9B1", "0 c #CCDEDA", "a c #B7D0CB", "b c #307969", "c c #C5D9D5", "d c #C9DCD8", "e c #AAC8C1", "f c #317A6A", "g c #A0C2BA", "h c #F5F9F8", "i c #223046", "j c #A2C3BB", "k c #3A7F70", "l c #E5EEEC", "m c #D1E1DE", "n c #B8D1CB", "o c #74A49A", "p c #CBDDD9", "q c #C4D9D4", "r c #347B6C", "s c #3E8273", "t c #7CAAA0", "u c #223047", "v c #C0D6D1", "w c #FEFEFE", "x c #DCE8E6", "y c #FBFCFC", "z c #D5E4E1", "A c #5F978B", "B c #FAFCFB", "C c #F1F6F5", "D c #D6E5E1", "E c #FDFEFE", "F c #49897B", "G c #DBE8E5", "H c #599487", "I c #BED5D0", "J c #F0F5F4", "K c #FDFDFD", "L c #CADDD9", "M c #8EB5AD", "N c #233249", "O c #24334A", "P c #141C2A", "Q c #16202E", "R c #141C29", "S c #172130", "T c #17202F", "U c #182231", "V c #101621", " .", " .", " .", " +", " +", " +", " +", " @@# +", " $$% +", " $$% +", " $$&*=-;>,'-) $$% $$% $$$$$$ !~={]^ +", " $$/(_$$:<[$$} $$% $$% |$$1|| 23$4:$3! +", " $$567$$867$$9 $$% $$% $$% 0$abbc$d +", " $$e f$$e b$$g $$% $$% $$% '$$$$$$h i", " $$% $$% $$% $$j k$$% $$% '$l||||m +", " $$% $$% $$% =$n o$$% 3$e p$qr st u", " $$% $$% $$% v$w~=$$% x$yz| AB$CD8E$ u", " $$% $$% $$% F]y4t$$% 2G3$$ HIJKJLM u", " u", " N", " u", " N", " O", " O", "PPPPPQRPPPPPPPPPPRRRRRRPPPPPPQPQQQQQQQQSTTTUTV"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/undo_focus.xpm0000644000175000017500000001724611754453701022005 0ustar miramira/* XPM */ static char *undo_focus[] = { /* columns rows colors chars-per-pixel */ "57 52 100 2", " c black", ". c #000101", "X c #010101", "o c #010102", "O c #010203", "+ c #020203", "@ c #020304", "# c #020305", "$ c #030406", "% c #040608", "& c #050609", "* c #05070A", "= c #06090D", "- c #070A0E", "; c #070A0F", ": c #080C11", "> c #090C12", ", c #090D12", "< c #090D13", "1 c #0A0E14", "2 c #0A0E15", "3 c #0A0F15", "4 c #0B1017", "5 c #0C1118", "6 c #0D131C", "7 c #0E141D", "8 c #0F151F", "9 c #111822", "0 c #121925", "q c #131B28", "w c #141C29", "e c #151E2C", "r c #161F2E", "t c #17202F", "y c #182232", "u c #182333", "i c #192333", "p c #192435", "a c #1B2739", "s c #1D293C", "d c #1E2B3F", "f c #1F2C40", "g c #1F2C41", "h c #202D42", "j c #202E43", "k c #212E44", "l c #212F44", "z c #212F45", "x c #223046", "c c #223047", "v c #223147", "b c #233148", "n c #233248", "m c #233249", "M c #24324A", "N c #24334A", "B c #24334B", "V c #24344C", "C c #25344C", "Z c #25354D", "A c #26354E", "S c #26364E", "D c #26364F", "F c #263650", "G c #273852", "H c #293A55", "J c #293B56", "K c #2A3B57", "L c #2B3D59", "P c #2B3D5A", "I c #2C3E5A", "U c #2C3E5B", "Y c #304463", "T c #314667", "R c #364D71", "E c #3A5379", "W c #3D577E", "Q c #3D5880", "! c #3E5981", "~ c #3F5A82", "^ c #3F5B84", "/ c #405C87", "( c #415D86", ") c #425E87", "_ c #415D88", "` c #415F88", "' c #425E89", "] c #425F8B", "[ c #435F8A", "{ c #43608C", "} c #44608B", "| c #587199", " . c #6C83A5", ".. c #8295B2", "X. c #96A6BF", "o. c #ABB8CC", "O. c #C0CAD9", "+. c #D5DBE5", "@. c #EAEDF2", "#. c gray100", /* pixels */ " 1 w d N G U E Q { { { { { z ", " = j U { { { { { { { { { { { { { { z ", " = p T { { { { { { { { { { { { { { { { { b ", " w J { { ] { { { { { { { { { { { { { { { { { z ", " @ t Q { { { { { { { { { { { { { { { { { { { { { { v ", " e Q { { { { { { { { { { { { { { { { { { { { { { { { z ", " w E { { { { { { { { { { { { { { { { { { { { { { { { { { v ", " > U { { { { { { { { { { { { { { { { { { { { { { { { { { { { b ", " p _ { { { { { { { { { { { { { { { { { { { { { { { { { { { { { N ", " ; J { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { N ", " e _ { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { b ", " D { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { b ", " * J { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { N ", " ; R { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { v ", " 4 ( } { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { N ", " 8 ( } } { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { N ", " 8 _ { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { m ", " > Q { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { m ", " * W { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { C ", " @ I { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { m ", " D } { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { D ", " s { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { C ", " 8 } { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { ] C ", " @ W } { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { ] C ", " v { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { C ", " 0 { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { D ", " * Q { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { D ", " N { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { C ", " 1 } { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { C ", " D { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { C ", " 1 } { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { N ", " D { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { N ", " 4 { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { #.#.O.{ { { { { { { { { { { { { { { m ", " F { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { #.#.O.{ { { { { { { { { { { { { { { N ", " = } { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { #.#.O.{ { { { { { { { { { { { { { { m ", " i { { { { { X.O.O.{ { { X.O.O.{ { .O.O. .o.#.#.+.| { { { | o.#.#.+.| #.#.O.{ { { .O.#.#.#.O. .{ { { { { m ", " I { { { { { O.#.#.{ { { O.#.#.{ { ..#.#.#.#.#.#.#.@.{ { { O.#.#.#.#.#.#.#.O.{ { ..#.#.#.#.#.#.#...{ { { { m ", " > { { { { { { O.#.#.{ { { O.#.#.{ { ..#.#.@. .{ O.#.#...{ .#.#.@.| { O.#.#.O.{ { @.#.#...{ ..#.#.@.{ { { { m ", " a { { { { { { O.#.#.{ { { O.#.#.{ { ..#.#.X.{ { ..#.#...{ O.#.#.X.{ { | #.#.O.{ .#.#.+.{ { { +.#.#. .{ { { v ", " R { { { { { { O.#.#.{ { { O.#.#.{ { ..#.#...{ { ..#.#...{ O.#.#...{ { { #.#.O.{ ..#.#.O.{ { { O.#.#...{ { { v ", " 1 { { { { { { { O.#.#.{ { { O.#.#.{ { ..#.#...{ { ..#.#...{ O.#.#...{ { { #.#.O.{ ..#.#.O.{ { { O.#.#...{ { { m ", " t { { { { { { { O.#.#.| { | #.#.#.{ { ..#.#...{ { ..#.#...{ X.#.#.+.{ { X.#.#.O.{ { #.#.#.| { | #.#.#.{ { { { v ", " v { { { { { { { X.#.#.@.O.@.#.#.#.{ { ..#.#...{ { ..#.#...{ | @.#.#.+.O.#.#.#.O.{ { o.#.#.@.O.@.#.#.o.{ { { { v ", " T { { { { { { { { O.#.#.#.O.+.#.#.{ { ..#.#...{ { ..#.#...{ { ..@.#.#.#.o.#.#.O.{ { { o.#.#.#.#.#.o.{ { { { { g ", "@ ] { { { { { { { { { ... .{ { { { { { { { { { { { { { { { { { { { ....| { { { { { { { { { ......{ { { { { { { v ", "5 { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { g ", "0 { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { v ", "i { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { g ", "s { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { g ", "z { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { g ", "z { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { } } { { { { { { { { { { { { g ", "v { { { { { { { { { { { { { { { _ { [ _ _ _ } _ _ _ ( _ ( ( ( _ ^ _ _ _ _ _ _ _ ^ ^ } } } } ^ { } } } ^ } } { { f " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/tap_tempo_focus.xpm0000644000175000017500000000131511754453701023016 0ustar miramira/* XPM */ static char *tap_tempo_focus[] = { /* columns rows colors chars-per-pixel */ "22 22 2 1", " c #43608C", ". c gray100", /* pixels */ " ", " ", " ", " ", " ", " ", " ", " .. ", " .. ", " ..... ..... ..... ", " .. .. .. .. ", " .. ..... .. .. ", " .. .. .. .. .. ", " .... ...... ..... ", " .. ", " .. ", " ", " ", " ", " ", " ", " " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/load_active.xpm0000644000175000017500000000353711754453701022111 0ustar miramira/* XPM */ static char *load_active[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #750924", "8 c #84243C", "9 c #933F54", "0 c #A35B6D", "q c #B27685", "w c #C1919D", "e c #D1ADB6", "r c #E0C8CE", "t c #EFE3E6", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777900777777777777777777777777777700977777:", "777777eyy7777777777777777777777777777yye77777:", "777777eyy7777777777777777777777777777yye77777:", "777777eyy7778qeew97778qeeew977778weq7yye77777:", "777777eyy778tyyyyy0770yyyyyyw778tyyytyye77777:", "777777eyy77tyyq0tyy9790778eyy87wyye0tyye77777:", "777777eyy79yyw779yyw777900wyy07tyr778yye77777:", "777777eyy70yy0777yye70tyyyyyy07yye777yye777771", "777777eyy70yy0778yye7tytq0wyy07yye777yye77777:", "777777eyy77yyt87eyy07yye77eyy07eyy97eyye777772", "777777eyy770yyyyyye77ryyeryyy079yyyyyyye777772", "777777eyy7770ryytw7778ryywqyy0770tyr9yye777772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXXX%.XXXXXXXXX......XXXXXX%X%%%%%%%&&%-%-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/multiply_focus.xpm0000644000175000017500000000746711754453701022723 0ustar miramira/* XPM */ static char *multiply_focus[] = { /* columns rows colors chars-per-pixel */ "96 33 32 1", " c #24334A", ". c #24334B", "X c #24344C", "o c #25344C", "O c #25354D", "+ c #26354E", "@ c #26364E", "# c #26364F", "$ c #263650", "% c #273750", "& c #273751", "* c #273851", "= c #273852", "- c #283852", "; c #283953", ": c #283954", "> c #293A54", ", c #293A55", "< c #293B56", "1 c #2A3B56", "2 c #2A3B57", "3 c #2A3C57", "4 c #43608C", "5 c #587199", "6 c #6C83A5", "7 c #8295B2", "8 c #96A6BF", "9 c #ABB8CC", "0 c #C0CAD9", "q c #D5DBE5", "w c #EAEDF2", "e c gray100", /* pixels */ "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "o4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#444444444444444444444444444444444444444440ee44477644440ee44444444444444ee044444444444444444444=", " 444444444444444444444444444444444444444440ee444ee044440ee44444444444444ee044444444444444444444=", "o444444444444444444444444444444444444444440ee444ee0444467744444444444444ee044444444444444444444=", "o44444444444448006qew849weq5444008444008440ee460eew00848004460069eeq5444ee047006444800544444444=", "o44444444444440eeeeeeeqeeeew444ee0444ee0440ee47eeeeee040ee447eeeeeeew544ee045ee9444wew444444444=", " 44444444444440ee047eee740ee744ee0444ee0440ee457eeq77640ee447eew540ee944ee044qee446ee8444444444=", " 44444444444440ee544eeq447ee744ee0444ee0440ee444ee044440ee447ee8445eew44ee0446ee849ee5444444444=", " 44444444444440ee444ee0447ee744ee0444ee0440ee444ee044440ee447ee7444eee44ee0444weq4we04444444444=", " 44444444444440ee444ee0447ee744ee0444ee0440ee444ee044440ee447ee7444eee44ee04448ee8ee64444444444=", "X44444444444440ee444ee0447ee744eeq448ee0440ee444eeq44440ee447eeq448ee044ee04444wewew44444444444=", " 44444444444440ee444ee0447ee744qeeq0eee0440ee444qeeee740ee447eeeq0eee644ee044449eee844444444444=", "X44444444444440ee444ee0447ee7445weee8ee0440ee4445qeee740ee447ee0weee8444ee044445eee5444444444442", " 444444444444444444444444444444447754444444444444444444444447ee74775444444444444we0444444444444=", "X444444444444444444444444444444444444444444444444444444444447ee7444444444444460qee6444444444444=", " 444444444444444444444444444444444444444444444444444444444447ee744444444444447eee044444444444442", "X44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442" }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/insert_normal.xpm0000644000175000017500000000461111754453701022505 0ustar miramira/* XPM */ static char * insert_normal[] = { "77 25 24 1", " c None", ". c #212E44", "+ c #374E72", "@ c #293A54", "# c #202D42", "$ c #1F2D41", "% c #1F2C41", "& c #1F2C40", "* c #909CB0", "= c #BCC4D0", "- c #283954", "; c #FFFFFF", "> c #637591", ", c #7A89A1", "' c #1F2B3F", ") c #A6B0C0", "! c #E8EBEF", "~ c #D2D7DF", "{ c #1E2B3F", "] c #4D6181", "^ c #202E43", "/ c #293A55", "( c #293B55", "_ c #293B56", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&++++++++++++++++*=*++++++++++++++++++++++++++++++++++++++++++++++++++++++++-", "&++++++++++++++++=;=++++++++++++++++++++++++++++++++++++>==+++++++++++++++++-", "&++++++++++++++++>,>++++++++++++++++++++++++++++++++++++,;;+++++++++++++++++-", "'++++++++++++++++*=*++==,);;)+++);;;!*+++*~;;~>++>==,!;~~;;==*++++++++++++++@", "{++++++++++++++++=;=++;;;;;;;,+);;==!=++);;=~;;>+,;;;;;;;;;;;=++++++++++++++@", "{++++++++++++++++=;=++;;!]]!;=+=;~+++]+];;>++*;~+,;;=++],;;+++++++++++++++++@", "{++++++++++++++++=;=++;;,++=;=+*;;;!=>+,;;;;;;;;+,;;]+++,;;+++++++++++++++++@", "{++++++++++++++++=;=++;;,++=;=++,=~;;;],;;======+,;;++++,;;+++++++++++++++++@", "'++++++++++++++++=;=++;;,++=;=+]+++];;,];;,+++],+,;;++++,;;+++++++++++++++++-", "&++++++++++++++++=;=++;;,++=;=+=;==~;;]+);;==~;=+,;;++++>;;~=>++++++++++++++@", "&++++++++++++++++=;=++;;,++=;=+*!;;;~,+++*~;;;=,+,;;+++++);;;,++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "^+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "^+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++(", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/half_rate_active.xpm0000644000175000017500000000201211754453701023102 0ustar miramira/* XPM */ static char * half_rate_active[] = { "26 25 15 1", " c None", ". c #750924", "+ c #B27685", "@ c #D1ADB6", "# c #C1919D", "$ c #E0C8CE", "% c #EFE3E6", "& c #A35B6D", "* c #FFFFFF", "= c #933F54", "- c #84243C", "; c #D9BBC2", "> c #DABDC5", ", c #DBBEC5", "' c #D4B2BA", "..........................", "..........................", "..........................", "..........................", ".....+@+..................", ".....#$@..................", "......@@..................", "......@@..................", "......@@..................", ".....@%%@.................", ".....&&&&....&**=.#*%-....", "..............#*%&**=.....", "....;>>,,>'....@***&......", "...............=**%.......", ".....-#@#-.....$***+......", ".....&#&@%....#*$-**=.....", "........&*...&**-.+*%-....", ".......=%@................", "......&*@.................", ".....=**@@................", ".....-&&&&................", "..........................", "..........................", "..........................", ".........................."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/double_rate_disabled.xpm0000644000175000017500000000216711754453701023751 0ustar miramira/* XPM */ static char * double_rate_disabled[] = { "26 25 22 1", " c None", ". c #475160", "+ c #202D42", "@ c #202E43", "# c #6F7783", "$ c #999EA6", "% c #C2C5CA", "& c #ADB1B8", "* c #FFFFFF", "= c #848B95", "- c #D6D8DB", "; c #5B6471", "> c #EAEBED", ", c #212E44", "' c #212F44", ") c #212F45", "! c #223046", "~ c #223047", "{ c #233148", "] c #233249", "^ c #24334A", "/ c #24334B", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................@", ".....#$%%&#..............@", ".....******=.............@", ".....-=.;%*>.............@", ".........=**.=**#.&*>;...@", ".........%*-..&*>=**#....@", "........%*>;...%***=.....,", "......;-*>;....#**>......'", ".....;>*-;.....-***$.....)", ".....>**%%%%..&*-;**#....)", ".....*******.=**;.$*>;...!", ".........................~", ".........................{", ".........................{", ".........................]", ".........................]", ".........................^", "........................./", ".........................{"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/solo_normal.xpm0000644000175000017500000000446511754453701022164 0ustar miramira/* XPM */ static char * solo_normal[] = { "46 25 70 1", " c #374E72", ". c #202D42", "+ c #202E43", "@ c #FFFFFF", "# c #A5AFBF", "$ c #566A88", "% c #C2C9D4", "& c #F0F2F4", "* c #FDFDFD", "= c #F4F5F7", "- c #D9DDE4", "; c #9CA8B9", "> c #647692", ", c #C6CCD7", "' c #F2F4F6", ") c #FBFCFC", "! c #E4E7EC", "~ c #A2ACBD", "{ c #3F5578", "] c #DCE0E7", "^ c #FDFEFE", "/ c #DBDFE6", "( c #E0E3E9", "_ c #DADEE5", ": c #687994", "< c #F1F3F5", "[ c #DCE0E6", "} c #FEFEFE", "| c #CFD5DD", "1 c #394F73", "2 c #FAFBFC", "3 c #BBC3CF", "4 c #405679", "5 c #CED3DC", "6 c #EAECF0", "7 c #43587A", "8 c #8996AC", "9 c #73839C", "0 c #BFC7D2", "a c #D0D5DE", "b c #A1ACBD", "c c #4A5F7F", "d c #F7F8F9", "e c #B1BAC8", "f c #223046", "g c #3C5275", "h c #8492A8", "i c #B9C1CE", "j c #D2D7DF", "k c #6D7E98", "l c #3B5175", "m c #B8C0CD", "n c #223047", "o c #D6DBE2", "p c #FCFCFD", "q c #AEB8C6", "r c #F6F7F9", "s c #EEF0F3", "t c #4F6483", "u c #C7CDD7", "v c #F3F5F7", "w c #233249", "x c #24334A", "y c #141C2A", "z c #16202E", "A c #141C29", "B c #172130", "C c #17202F", "D c #182231", "E c #101621", " .", " .", " .", " +", " +", " +", " +", " @@# +", " @@# +", " @@# +", " $%&*=-; >,')!~{ @@# >,')!~{ +", " ]@^/(*_ :)@<[}@|1 @@# :)@<[}@|1 +", " 2@3 4> 5@67 8@@9 @@# 5@67 8@@9 +", " 0@@&abc d@e 7@@; @@# d@e 7@@; f", " ghi/}@j d@e 7@@; @@# d@e 7@@; +", " kl m@) 5@67 8@@9 @@# 5@67 8@@9 n", " @d/]}@o :p@uv)!~{ @@# >uv)!~{ n", " n", " w", " n", " w", " x", " x", "yyyyyzAyyyyyyyyyyAAAAAAyyyyyyzyzzzzzzzzBCCCDCE"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/multiply_selected.xpm0000644000175000017500000000747211754453701023370 0ustar miramira/* XPM */ static char *multiply_selected[] = { /* columns rows colors chars-per-pixel */ "96 33 32 1", " c #24334A", ". c #24334B", "X c #24344C", "o c #25344C", "O c #25354D", "+ c #26354E", "@ c #26364E", "# c #26364F", "$ c #263650", "% c #273750", "& c #273751", "* c #273851", "= c #273852", "- c #283852", "; c #283953", ": c #283954", "> c #293A54", ", c #293A55", "< c #293B56", "1 c #2A3B56", "2 c #2A3B57", "3 c #2A3C57", "4 c #2F7868", "5 c #468779", "6 c #5D9689", "7 c #74A59A", "8 c #8BB4AB", "9 c #A2C3BB", "0 c #BAD2CD", "q c #D1E1DD", "w c #E7F0EE", "e c gray100", /* pixels */ "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "o4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#444444444444444444444444444444444444444440ee44477644440ee44444444444444ee044444444444444444444=", " 444444444444444444444444444444444444444440ee444ee044440ee44444444444444ee044444444444444444444=", "o444444444444444444444444444444444444444440ee444ee0444467744444444444444ee044444444444444444444=", "o44444444444448006qew849weq5444008444008440ee460eew00848004460069eeq5444ee047006444800544444444=", "o44444444444440eeeeeeeqeeeew444ee0444ee0440ee47eeeeee040ee447eeeeeeew544ee045ee9444wew444444444=", " 44444444444440ee047eee740ee744ee0444ee0440ee457eeq77640ee447eew540ee944ee044qee446ee8444444444=", " 44444444444440ee544eeq447ee744ee0444ee0440ee444ee044440ee447ee8445eew44ee0446ee849ee5444444444=", " 44444444444440ee444ee0447ee744ee0444ee0440ee444ee044440ee447ee7444eee44ee0444weq4we04444444444=", " 44444444444440ee444ee0447ee744ee0444ee0440ee444ee044440ee447ee7444eee44ee04448ee8ee64444444444=", "X44444444444440ee444ee0447ee744eeq448ee0440ee444eeq44440ee447eeq448ee044ee04444wewew44444444444=", " 44444444444440ee444ee0447ee744qeeq0eee0440ee444qeeee740ee447eeeq0eee644ee044449eee844444444444=", "X44444444444440ee444ee0447ee7445weee8ee0440ee4445qeee740ee447ee0weee8444ee044445eee5444444444442", " 444444444444444444444444444444447754444444444444444444444447ee74775444444444444we0444444444444=", "X444444444444444444444444444444444444444444444444444444444447ee7444444444444460qee6444444444444=", " 444444444444444444444444444444444444444444444444444444444447ee744444444444447eee044444444444442", "X44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442" }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/once_normal.xpm0000644000175000017500000000353711754453701022133 0ustar miramira/* XPM */ static char *once_normal[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #374E72", "8 c #4D6181", "9 c #637591", "0 c #7A89A1", "q c #909CB0", "w c #A6B0C0", "e c #BCC4D0", "r c #D2D7DF", "t c #E8EBEF", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "7777777qtyyr9777ee0wyyw7778wtyyr777qryyr97777:", "777777eyyrryy977yyyyyyy077tyyrey77wyyeryy9777:", "777778yyw77tyr77yyt88tye7qyyq77878yy977qyr777:", "777770yy077eyy77yy077eye7eyy777770yyyyyyyy777:", "777770yy077eyy77yy077eye7eyy777770yyeeeeee7771", "777778yyw77tyr77yy077eye7qyyq77878yy077780777:", "777777eyyeryy977yy077eye77tyyeey77wyyeerye7772", "7777777qtyyr9777yy077eye778wtyyr777qryyye07772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXX%.XXXXXXXXXX......XXXXXX%X%%%%%%%%*&&&-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/double_rate_selected.xpm0000644000175000017500000000216711754453701023772 0ustar miramira/* XPM */ static char * double_rate_selected[] = { "26 25 22 1", " c None", ". c #2F7868", "+ c #202D42", "@ c #202E43", "# c #5D9689", "$ c #8BB4AB", "% c #BAD2CD", "& c #A2C3BB", "* c #FFFFFF", "= c #74A59A", "- c #D1E1DD", "; c #468779", "> c #E7F0EE", ", c #212E44", "' c #212F44", ") c #212F45", "! c #223046", "~ c #223047", "{ c #233148", "] c #233249", "^ c #24334A", "/ c #24334B", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................@", ".....#$%%&#..............@", ".....******=.............@", ".....-=.;%*>.............@", ".........=**.=**#.&*>;...@", ".........%*-..&*>=**#....@", "........%*>;...%***=.....,", "......;-*>;....#**>......'", ".....;>*-;.....-***$.....)", ".....>**%%%%..&*-;**#....)", ".....*******.=**;.$*>;...!", ".........................~", ".........................{", ".........................{", ".........................]", ".........................]", ".........................^", "........................./", ".........................]"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/1x_rate_selected.xpm0000644000175000017500000000216511754453701023046 0ustar miramira/* XPM */ static char * onex_rate_selected[] = { "26 25 22 1", " c None", ". c #2F7868", "+ c #202D42", "@ c #202E43", "# c #5D9689", "$ c #74A59A", "% c #BAD2CD", "& c #FFFFFF", "* c #8BB4AB", "= c #A2C3BB", "- c #E7F0EE", "; c #468779", "> c #212E44", ", c #212F44", "' c #D1E1DD", ") c #212F45", "! c #223046", "~ c #223047", "{ c #233148", "] c #233249", "^ c #24334A", "/ c #24334B", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................@", "......#$$$...............@", ".....%&&&&...............@", ".....*==&&...............@", ".......$&&...$&&#.=&-;...@", ".......$&&....=&-$&&#....@", ".......$&&.....%&&&$.....>", ".......$&&.....#&&-......,", ".......$&&.....'&&&*.....)", ".....#%'&&%%..=&';&&#....)", ".....$&&&&&&.$&&;.*&-;...!", ".........................~", ".........................{", ".........................{", ".........................]", ".........................]", ".........................^", "........................./", ".........................]"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/save_selected.xpm0000644000175000017500000000354111754453701022440 0ustar miramira/* XPM */ static char *save_selected[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #2F7868", "8 c #468779", "9 c #5D9689", "0 c #74A59A", "q c #8BB4AB", "w c #A2C3BB", "e c #BAD2CD", "r c #D1E1DD", "t c #E7F0EE", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777778qeeeq8779weeeq8779007777009779wee077777:", "77777tyyyyy077eyyyyyy970yy9779yy070yyyyyr7777:", "77770yy878097709779tyr77tyw77eyy79yye78yyw777:", "77770yye00777777000ryy77wyy77yyw7wyy000ryt777:", "77777tyyyyy077wyyyyyyy779yy00yy97eyyyyyyyy7771", "7777770eeyyt79yyr00ryy777ryeeyr77eyy000000777:", "7777877770yy70yy078tyy777qyyyyq770yyq777807772", "77770yreeyyr78yytetyyy7777yyyy7777eyyrerye7772", "77779ryyytw8770tytqeyy7777eyye77777wtyyte07772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXXX%.XXXXXXXXX......XXXXXX%X%%%%%%%&&%-%-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/delay_selected.xpm0000644000175000017500000000470611754453701022604 0ustar miramira/* XPM */ static char * delay_selected[] = { "77 25 28 1", " c None", ". c #212E44", "+ c #2F7868", "@ c #202D42", "# c #293A54", "$ c #1F2D41", "% c #1F2C41", "& c #1F2C40", "* c #5D9689", "= c #BAD2CD", "- c #283954", "; c #74A59A", "> c #FFFFFF", ", c #1F2B3F", "' c #A2C3BB", ") c #8BB4AB", "! c #D1E1DD", "~ c #E7F0EE", "{ c #468779", "] c #283953", "^ c #1E2B3F", "/ c #293A55", "( c #293B56", "_ c #202E43", ": c #2A3B56", "< c #2A3B57", "[ c #2A3C57", "} c #2A3C58", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", "@+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "&+++++++++++++++++++++++*==+++++++++++*==+++++++++++++++++++++++++++++++++++-", "&+++++++++++++++++++++++;>>+++++++++++;>>+++++++++++++++++++++++++++++++++++-", "&+++++++++++++++++++++++;>>+++++++++++;>>+++++++++++++++++++++++++++++++++++-", ",+++++++++++++++++++'>>')>>+++)!>>!*++;>>++)~>>>={+{==*++{=={+++++++++++++++]", "^++++++++++++++++++=>>!!>>>++'>>=!>>*+;>>++=~==~>~++!>'++'>~++++++++++++++++]", "^+++++++++++++++++{>>=++=>>+{>>*++)>!+;>>++{+++{>>;+)>~++~>'++++++++++++++++]", "^+++++++++++++++++;>>;++;>>+;>>>>>>>>+;>>++;!>>>>>;++~>;*>>{++++++++++++++++]", "^+++++++++++++++++;>>;++;>>+;>>======+;>>+{>>';;>>;++'>!'>!+++++++++++++++++]", ",+++++++++++++++++{>>=++=>>+{>>;+++{;+;>>+;>>++;>>;++{>>~>;+++++++++++++++++-", "&++++++++++++++++++=>>!!>>>++'>>==!>=+;>>+{>>!=>>>;+++=>>~++++++++++++++++++#", "&+++++++++++++++++++'>>')>>+++)!>>>=;+;>>++;~>!;>>;+++*>>'++++++++++++++++++#", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++{>>*++++++++++++++++++/", "@++++++++++++++++++++++++++++++++++++++++++++++++++++=~>!+++++++++++++++++++/", "@++++++++++++++++++++++++++++++++++++++++++++++++++++>>!{+++++++++++++++++++(", "_+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++:", "_+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/half_rate_normal.xpm0000644000175000017500000000225711754453701023132 0ustar miramira/* XPM */ static char * half_rate_normal[] = { "26 25 26 1", " c None", ". c #374E72", "+ c #202D42", "@ c #909CB0", "# c #BCC4D0", "$ c #A6B0C0", "% c #D2D7DF", "& c #202E43", "* c #E8EBEF", "= c #7A89A1", "- c #FFFFFF", "; c #637591", "> c #4D6181", ", c #C7CED8", "' c #CAD0D9", ") c #CAD0DA", "! c #C0C7D3", "~ c #212E44", "{ c #212F44", "] c #212F45", "^ c #223046", "/ c #223047", "( c #233148", "_ c #233249", ": c #24334A", "< c #24334B", ".........................+", ".........................+", ".........................+", ".........................+", ".....@#@.................+", ".....$%#.................+", "......##.................&", "......##.................&", "......##.................&", ".....#**#................&", ".....====....=--;.$-*>...&", "..............$-*=--;....&", "....,''))'!....#---=.....~", "...............;--*......{", ".....>$#$>.....%---@.....]", ".....=$=#*....$-%>--;....]", "........=-...=-->.@-*>...^", ".......;*#.............../", "......=-#................(", ".....;--##...............(", ".....>====..............._", "........................._", ".........................:", ".........................<", "........................._"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/insert_disabled.xpm0000644000175000017500000000470711754453701022772 0ustar miramira/* XPM */ static char * insert_disabled[] = { "77 25 28 1", " c None", ". c #1F2C40", "+ c #475160", "@ c #293A54", "# c #202D42", "$ c #1F2D41", "% c #1F2C41", "& c #999EA6", "* c #C2C5CA", "= c #283954", "- c #FFFFFF", "; c #6F7783", "> c #848B95", ", c #1F2B3F", "' c #ADB1B8", ") c #EAEBED", "! c #D6D8DB", "~ c #283953", "{ c #1E2B3F", "] c #5B6471", "^ c #293A55", "/ c #293B56", "( c #202E43", "_ c #2A3B56", ": c #2A3B57", "< c #212E44", "[ c #2A3C57", "} c #2A3C58", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", ".++++++++++++++++&*&++++++++++++++++++++++++++++++++++++++++++++++++++++++++=", ".++++++++++++++++*-*++++++++++++++++++++++++++++++++++++;**+++++++++++++++++=", ".++++++++++++++++;>;++++++++++++++++++++++++++++++++++++>--+++++++++++++++++=", ",++++++++++++++++&*&++**>'--'+++'---)&+++&!--!;++;**>)-!!--**&++++++++++++++~", "{++++++++++++++++*-*++------->+'--**)*++'--*!--;+>-----------*++++++++++++++~", "{++++++++++++++++*-*++--)]])-*+*-!+++]+]--;++&-!+>--*++]>--+++++++++++++++++~", "{++++++++++++++++*-*++-->++*-*+&---)*;+>--------+>--]+++>--+++++++++++++++++~", "{++++++++++++++++*-*++-->++*-*++>*!---]>--******+>--++++>--+++++++++++++++++~", ",++++++++++++++++*-*++-->++*-*+]+++]-->]-->+++]>+>--++++>--+++++++++++++++++=", ".++++++++++++++++*-*++-->++*-*+*-**!--]+'--**!-*+>--++++;--!*;++++++++++++++@", ".++++++++++++++++*-*++-->++*-*+&)---!>+++&!---*>+>--+++++'--->++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++^", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++^", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++:", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/delay_active.xpm0000644000175000017500000000434311754453701022264 0ustar miramira/* XPM */ static char * delay_active[] = { "77 25 13 1", " c None", ". c #4B0719", "+ c #750924", "@ c #4A0719", "# c #933F54", "$ c #D1ADB6", "% c #A35B6D", "& c #FFFFFF", "* c #C1919D", "= c #B27685", "- c #E0C8CE", "; c #EFE3E6", "> c #84243C", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++#$$+++++++++++#$$+++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++%&&+++++++++++%&&+++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++%&&+++++++++++%&&+++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++*&&*=&&+++=-&&-#++%&&++=;&&&$>+>$$#++>$$>+++++++++++++++.", ".++++++++++++++++++$&&--&&&++*&&$-&&#+%&&++$;$$;&;++-&*++*&;++++++++++++++++.", ".+++++++++++++++++>&&$++$&&+>&&#++=&-+%&&++>+++>&&%+=&;++;&*++++++++++++++++.", ".+++++++++++++++++%&&%++%&&+%&&&&&&&&+%&&++%-&&&&&%++;&%#&&>++++++++++++++++.", ".+++++++++++++++++%&&%++%&&+%&&$$$$$$+%&&+>&&*%%&&%++*&-*&-+++++++++++++++++.", ".+++++++++++++++++>&&$++$&&+>&&%+++>%+%&&+%&&++%&&%++>&&;&%+++++++++++++++++.", ".++++++++++++++++++$&&--&&&++*&&$$-&$+%&&+>&&-$&&&%+++$&&;++++++++++++++++++.", ".+++++++++++++++++++*&&*=&&+++=-&&&$%+%&&++%;&-%&&%+++#&&*++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++>&&#++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++++++++++++++++++++$;&-+++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++++++++++++++++++++&&->+++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/once_active.xpm0000644000175000017500000000353711754453701022116 0ustar miramira/* XPM */ static char *once_active[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #750924", "8 c #84243C", "9 c #933F54", "0 c #A35B6D", "q c #B27685", "w c #C1919D", "e c #D1ADB6", "r c #E0C8CE", "t c #EFE3E6", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "7777777qtyyr9777ee0wyyw7778wtyyr777qryyr97777:", "777777eyyrryy977yyyyyyy077tyyrey77wyyeryy9777:", "777778yyw77tyr77yyt88tye7qyyq77878yy977qyr777:", "777770yy077eyy77yy077eye7eyy777770yyyyyyyy777:", "777770yy077eyy77yy077eye7eyy777770yyeeeeee7771", "777778yyw77tyr77yy077eye7qyyq77878yy077780777:", "777777eyyeryy977yy077eye77tyyeey77wyyeerye7772", "7777777qtyyr9777yy077eye778wtyyr777qryyye07772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXX%.XXXXXXXXXX......XXXXXX%X%%%%%%%%*&&&-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/save_disabled.xpm0000644000175000017500000000354111754453701022417 0ustar miramira/* XPM */ static char *save_disabled[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #475160", "8 c #5B6471", "9 c #6F7783", "0 c #848B95", "q c #999EA6", "w c #ADB1B8", "e c #C2C5CA", "r c #D6D8DB", "t c #EAEBED", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777778qeeeq8779weeeq8779007777009779wee077777:", "77777tyyyyy077eyyyyyy970yy9779yy070yyyyyr7777:", "77770yy878097709779tyr77tyw77eyy79yye78yyw777:", "77770yye00777777000ryy77wyy77yyw7wyy000ryt777:", "77777tyyyyy077wyyyyyyy779yy00yy97eyyyyyyyy7771", "7777770eeyyt79yyr00ryy777ryeeyr77eyy000000777:", "7777877770yy70yy078tyy777qyyyyq770yyq777807772", "77770yreeyyr78yytetyyy7777yyyy7777eyyrerye7772", "77779ryyytw8770tytqeyy7777eyye77777wtyyte07772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXXX%.XXXXXXXXX......XXXXXX%X%%%%%%%&&%-%-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/substitute_active.xpm0000644000175000017500000000435011754453701023377 0ustar miramira/* XPM */ static char * substitute_active[] = { "77 25 13 1", " c None", ". c #4B0719", "+ c #750924", "@ c #4A0719", "# c #A35B6D", "$ c #FFFFFF", "% c #D1ADB6", "& c #84243C", "* c #933F54", "= c #C1919D", "- c #B27685", "; c #E0C8CE", "> c #EFE3E6", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++#$%+++++++++++++&#*+++$$++*#&+++++++++++&#*+++++++++++++.", ".+++++++++++++++++++#$%+++++++++++++#$%+++%%++%$#+++++++++++#$%+++++++++++++.", ".++++*=%%-&+%%++*%-+#$%*%=&++&-%%=**;$>%%+%%+->$;%-*%-++-%**;$>%%++#%%-&++++.", ".+++*$$%%$#+$$++#$%+#$$$$$>&+>$;%>%#$$$$$+$$+%$$$$%#$%++%$##$$$$$+%$>%$>&+++.", ".+++#$;+++&+$$++#$%+#$>&+%$=+$$&++&+#$%+++$$++%$#++#$%++%$#+#$%++*$>++-$-+++.", ".+++&>$$>=&+$$++#$%+#$%++#$%+%$$$%*+#$%+++$$++%$#++#$%++%$#+#$%++#$$$$$$%+++.", ".+++++*#%$=+$$++=$%+#$;++-$%++&#-$>+#$%+++$$++%$#++#$%++>$#+#$%++#$;####*+++.", ".+++#%##%$=+;$;;$$%+#$$;%$$*+;-#-$>+#$$%-+$$++%$>%*&$$%>$$#+#$$%-+>$=##%#+++.", ".+++*;$$$%&+*>$;=$%+#$;=$>#++%$$$;#++%$$%+$$++&>$$#+-$$=;$#++%$$%+&%$$$;*+++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/redo_selected.xpm0000644000175000017500000001723011754453701022433 0ustar miramira/* XPM */ static char *redo_selected[] = { /* columns rows colors chars-per-pixel */ "57 52 99 2", " c black", ". c #000101", "X c #010101", "o c #010102", "O c #010203", "+ c #020203", "@ c #020304", "# c #020305", "$ c #030406", "% c #040608", "& c #050609", "* c #05070A", "= c #06090D", "- c #070A0E", "; c #070A0F", ": c #080C11", "> c #090C12", ", c #090D12", "< c #090D13", "1 c #0A0E14", "2 c #0A0E15", "3 c #0A0F15", "4 c #0B1017", "5 c #0C1118", "6 c #0D131C", "7 c #0E141D", "8 c #0F151F", "9 c #111822", "0 c #121925", "q c #131B28", "w c #141C29", "e c #151E2C", "r c #161F2E", "t c #17202F", "y c #182232", "u c #182333", "i c #192333", "p c #192435", "a c #1B2739", "s c #1D293C", "d c #1E2B3F", "f c #1F2C40", "g c #1F2C41", "h c #202D42", "j c #202E43", "k c #212E44", "l c #212F44", "z c #212F45", "x c #223046", "c c #223047", "v c #223147", "b c #233148", "n c #233248", "m c #233249", "M c #24324A", "N c #24334A", "B c #24334B", "V c #24344C", "C c #25344C", "Z c #25354D", "A c #26354E", "S c #26364E", "D c #26364F", "F c #263650", "G c #273852", "H c #293A55", "J c #293B56", "K c #2A3B57", "L c #2B3D59", "P c #2B3D5A", "I c #2C3E5A", "U c #2C3E5B", "Y c #2C475B", "T c #2B4B5B", "R c #2A575B", "E c #29625A", "W c #29685A", "Q c #2A695B", "! c #2A6B5C", "~ c #2B6C5D", "^ c #2B6E5F", "/ c #2C6F60", "( c #2D7263", ") c #2E7362", "_ c #2E7364", "` c #2E7565", "' c #2E7766", "] c #2F7666", "[ c #2F7868", "{ c #307767", "} c #468779", "| c #5D9689", " . c #74A59A", ".. c #8BB4AB", "X. c #A2C3BB", "o. c #BAD2CD", "O. c #D1E1DD", "+. c #E7F0EE", "@. c gray100", /* pixels */ "x [ [ [ [ [ [ [ [ [ [ [ [ [ [ { ' ' ' ' ' ' ( _ _ _ ( ( ( ( ( ( ( ( ( _ _ _ _ _ _ _ _ ) _ _ ' _ ' [ { _ ' ' { _ f ", "z [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ { { [ [ { { [ { [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ j ", "z [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ { { [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ j ", "d [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ j ", "y [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ j ", "0 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", "5 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ j ", "@ ' [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " T [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ o.@.@.[ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ j ", " x [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ o.@.@.[ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " t [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ o.@.@.[ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " 2 [ [ [ [ [ [ [ [ [ [ ..o.o.} o.@.@.[ [ | o.@.@.@.X.} [ [ [ [ ..+.@.+. .o.@.@.[ [ [ } X.+.@.@.O...[ [ [ [ [ [ x ", " R [ [ [ [ [ [ [ [ [ o.@.@.+.@.@.@.[ .@.@.@.@.@.@.+.} [ [ .@.@.@.@.@.@.@.@.[ [ } +.@.@.@.@.@.@.o.[ [ [ [ [ x ", " a [ [ [ [ [ [ [ [ [ o.@.@.+.} [ } [ +.@.+.| [ | @.@.X.[ [ +.@.@. .[ .@.@.@.[ [ X.@.@.o.[ } +.@.@.| [ [ [ [ v ", " : [ [ [ [ [ [ [ [ [ o.@.@.| [ [ [ | @.@.o. . . .O.@.+.[ .@.@.O.[ [ [ O.@.@.[ [ +.@.@.} [ [ ..@.@.X.[ [ [ [ B ", " U [ [ [ [ [ [ [ [ o.@.@.[ [ [ [ .@.@.@.@.@.@.@.@.@.[ .@.@.o.[ [ [ o.@.@.[ [ @.@.@.[ [ [ .@.@.o.[ [ [ [ x ", " y [ [ [ [ [ [ [ [ o.@.@.[ [ [ [ .@.@.X. . . . . . .[ .@.@.o.[ [ [ o.@.@.[ [ @.@.@.[ [ [ .@.@.o.[ [ [ [ v ", " = [ [ [ [ [ [ [ [ o.@.@.[ [ [ [ [ @.@.O.[ [ [ [ } .[ } @.@.@.} [ } @.@.@.[ [ o.@.@...[ [ O.@.@. .[ [ [ [ B ", " F [ [ [ [ [ [ [ o.@.@.[ [ [ [ [ X.@.@.+.o.o.+.@.o.[ [ o.@.@.+.o.+.@.@.@.[ [ | @.@.@.o.O.@.@.+.[ [ [ [ [ B ", " 5 [ [ [ [ [ [ [ o.@.@.[ [ [ [ [ [ X.@.@.@.@.@.+. .[ [ } O.@.@.@.O.O.@.@.[ [ [ .+.@.@.@.@.O.} [ [ [ [ [ B ", " Z [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ . . .} [ [ [ [ [ [ | .| [ [ [ [ [ [ [ [ [ | . .} [ [ [ [ [ [ [ B ", " 2 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " Z [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ C ", " 2 { [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ C ", " B [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ C ", " & ^ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ Z ", " 9 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ Z ", " x [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ C ", " $ W [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ C ", " 6 { [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ C ", " d [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ C ", " Z [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " @ U [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " & W [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " : / [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " 7 ' [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " 7 _ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " 5 ~ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " - R [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ b ", " & K [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " $ Z [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ v ", " r ( [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " : K [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " y _ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " : U [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " w E [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " r ! [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " r ! [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " w K [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " = p Y [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " - z U [ [ [ [ [ { [ [ [ [ [ [ [ [ z ", " : w f B G P E / { [ [ [ [ z " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/load_disabled.xpm0000644000175000017500000000354111754453701022400 0ustar miramira/* XPM */ static char *load_disabled[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #475160", "8 c #5B6471", "9 c #6F7783", "0 c #848B95", "q c #999EA6", "w c #ADB1B8", "e c #C2C5CA", "r c #D6D8DB", "t c #EAEBED", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777900777777777777777777777777777700977777:", "777777eyy7777777777777777777777777777yye77777:", "777777eyy7777777777777777777777777777yye77777:", "777777eyy7778qeew97778qeeew977778weq7yye77777:", "777777eyy778tyyyyy0770yyyyyyw778tyyytyye77777:", "777777eyy77tyyq0tyy9790778eyy87wyye0tyye77777:", "777777eyy79yyw779yyw777900wyy07tyr778yye77777:", "777777eyy70yy0777yye70tyyyyyy07yye777yye777771", "777777eyy70yy0778yye7tytq0wyy07yye777yye77777:", "777777eyy77yyt87eyy07yye77eyy07eyy97eyye777772", "777777eyy770yyyyyye77ryyeryyy079yyyyyyye777772", "777777eyy7770ryytw7778ryywqyy0770tyr9yye777772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXXX%.XXXXXXXXX......XXXXXX%X%%%%%%%&&%-%-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/multiply_disabled.xpm0000644000175000017500000000747211754453701023347 0ustar miramira/* XPM */ static char *multiply_disabled[] = { /* columns rows colors chars-per-pixel */ "96 33 32 1", " c #24334A", ". c #24334B", "X c #24344C", "o c #25344C", "O c #25354D", "+ c #26354E", "@ c #26364E", "# c #26364F", "$ c #263650", "% c #273750", "& c #273751", "* c #273851", "= c #273852", "- c #283852", "; c #283953", ": c #283954", "> c #293A54", ", c #293A55", "< c #293B56", "1 c #2A3B56", "2 c #2A3B57", "3 c #2A3C57", "4 c #475160", "5 c #5B6471", "6 c #6F7783", "7 c #848B95", "8 c #999EA6", "9 c #ADB1B8", "0 c #C2C5CA", "q c #D6D8DB", "w c #EAEBED", "e c gray100", /* pixels */ "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "o4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#444444444444444444444444444444444444444440ee44477644440ee44444444444444ee044444444444444444444=", " 444444444444444444444444444444444444444440ee444ee044440ee44444444444444ee044444444444444444444=", "o444444444444444444444444444444444444444440ee444ee0444467744444444444444ee044444444444444444444=", "o44444444444448006qew849weq5444008444008440ee460eew00848004460069eeq5444ee047006444800544444444=", "o44444444444440eeeeeeeqeeeew444ee0444ee0440ee47eeeeee040ee447eeeeeeew544ee045ee9444wew444444444=", " 44444444444440ee047eee740ee744ee0444ee0440ee457eeq77640ee447eew540ee944ee044qee446ee8444444444=", " 44444444444440ee544eeq447ee744ee0444ee0440ee444ee044440ee447ee8445eew44ee0446ee849ee5444444444=", " 44444444444440ee444ee0447ee744ee0444ee0440ee444ee044440ee447ee7444eee44ee0444weq4we04444444444=", " 44444444444440ee444ee0447ee744ee0444ee0440ee444ee044440ee447ee7444eee44ee04448ee8ee64444444444=", "X44444444444440ee444ee0447ee744eeq448ee0440ee444eeq44440ee447eeq448ee044ee04444wewew44444444444=", " 44444444444440ee444ee0447ee744qeeq0eee0440ee444qeeee740ee447eeeq0eee644ee044449eee844444444444=", "X44444444444440ee444ee0447ee7445weee8ee0440ee4445qeee740ee447ee0weee8444ee044445eee5444444444442", " 444444444444444444444444444444447754444444444444444444444447ee74775444444444444we0444444444444=", "X444444444444444444444444444444444444444444444444444444444447ee7444444444444460qee6444444444444=", " 444444444444444444444444444444444444444444444444444444444447ee744444444444447eee044444444444442", "X44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442" }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/pause_active.xpm0000644000175000017500000001023011754453701022273 0ustar miramira/* XPM */ static char * pause_active[] = { "46 25 112 2", " c None", ". c #750924", "+ c #500619", "@ c #FFFFFF", "# c #B9828F", "$ c #EFE2E5", "% c #FBF7F8", "& c #CEA7B1", "* c #79112B", "= c #811F38", "- c #E0C7CD", "; c #F6EFF0", "> c #FEFDFD", ", c #F5EEF0", "' c #D1ADB6", ") c #822039", "! c #8F374D", "~ c #994A5E", "{ c #E3CDD2", "] c #FAF6F7", "^ c #FCFAFB", "/ c #EDDEE2", "( c #C79CA7", "_ c #760A25", ": c #B37786", "< c #ECDDE1", "[ c #F0E4E7", "} c #B98390", "| c #760B26", "1 c #F3EAEC", "2 c #C89DA7", "3 c #F4EBED", "4 c #BF8C99", "5 c #872A41", "6 c #DFC6CC", "7 c #C69AA5", "8 c #E8D6DB", "9 c #D5B5BD", "0 c #F1E7EA", "a c #DDC2C9", "b c #C699A4", "c c #DBBEC5", "d c #E7D4D8", "e c #B47A88", "f c #C79BA6", "g c #EAD9DE", "h c #A66172", "i c #A76374", "j c #9B4D61", "k c #BA8491", "l c #C2929E", "m c #D0ABB4", "n c #F9F3F5", "o c #F7F1F2", "p c #C08F9B", "q c #944156", "r c #7B152E", "s c #770D27", "t c #EEE0E4", "u c #D0ACB5", "v c #C394A0", "w c #D2AEB7", "x c #923D52", "y c #933E53", "z c #FDFBFC", "A c #913B51", "B c #A76273", "C c #F3E9EB", "D c #B8818E", "E c #FEFEFE", "F c #F0E5E8", "G c #AA6878", "H c #770C27", "I c #9D4F63", "J c #98475B", "K c #AB6979", "L c #79102A", "M c #86283F", "N c #B67E8C", "O c #F9F4F6", "P c #F2E8EA", "Q c #C1909C", "R c #E2CCD1", "S c #C99FA9", "T c #E1CAD0", "U c #BE8B98", "V c #D5B4BC", "W c #C598A3", "X c #EFE3E6", "Y c #F7F1F3", "Z c #CCA4AE", "` c #C89EA8", " . c #B07282", ".. c #CFAAB3", "+. c #7A132D", "@. c #954358", "#. c #E9D8DD", "$. c #90384E", "%. c #ECDCE0", "&. c #D3B1B9", "*. c #FDFCFC", "=. c #AE6E7E", "-. c #FCF9FA", ";. c #E6D3D7", ">. c #C08E9B", ",. c #141C2A", "'. c #16202E", "). c #141C29", "!. c #172130", "~. c #17202F", "{. c #182231", "]. c #101621", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . @ @ # $ % & * . . = - ; > , ' ) . . @ @ ! . ! @ @ . . ~ { ] ^ / ( . . _ : < ^ [ } | . + ", ". . @ @ 1 2 3 @ 4 . . 5 6 2 7 8 @ 9 . . @ @ ! . ! @ @ . . 0 @ a b c d . . e @ < f g @ # . + ", ". . @ @ h . i @ [ . . _ j k l m @ n . . @ @ ! . ! @ @ . . o @ p q r s . . t @ u v w @ [ . + ", ". . @ @ x . y @ z . . ( @ @ @ @ @ @ . . @ @ ! . A @ @ . . B C @ @ ^ D . . z @ @ @ @ @ E . + ", ". . @ @ h . i @ F . . % @ G H I @ @ . . ^ @ J . K @ @ . . L _ M N @ O . . t @ I . . . 5 . + ", ". . @ @ P 2 3 @ Q . . / @ R S P @ @ . . T @ { U , @ @ . . o V W - @ X . . : @ Y Z ` R E . + ", ". . @ @ .g % ..+.. . @.#.z #. .@ @ . . $.d z %.# @ @ . . &.[ *.] - q . . . =.d -.% ;.>.. + ", ". . @ @ ! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . @ @ ! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . @ @ ! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ", ",.,.,.,.,.'.).,.,.,.,.,.,.,.,.,.,.).).).).).).,.,.,.,.,.,.'.,.'.'.'.'.'.'.'.'.!.~.~.~.{.~.]."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/multiply_normal.xpm0000644000175000017500000000747011754453701023066 0ustar miramira/* XPM */ static char *multiply_normal[] = { /* columns rows colors chars-per-pixel */ "96 33 32 1", " c #24334A", ". c #24334B", "X c #24344C", "o c #25344C", "O c #25354D", "+ c #26354E", "@ c #26364E", "# c #26364F", "$ c #263650", "% c #273750", "& c #273751", "* c #273851", "= c #273852", "- c #283852", "; c #283953", ": c #283954", "> c #293A54", ", c #293A55", "< c #293B56", "1 c #2A3B56", "2 c #2A3B57", "3 c #2A3C57", "4 c #374E72", "5 c #4D6181", "6 c #637591", "7 c #7A89A1", "8 c #909CB0", "9 c #A6B0C0", "0 c #BCC4D0", "q c #D2D7DF", "w c #E8EBEF", "e c gray100", /* pixels */ "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "o4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#444444444444444444444444444444444444444440ee44477644440ee44444444444444ee044444444444444444444=", " 444444444444444444444444444444444444444440ee444ee044440ee44444444444444ee044444444444444444444=", "o444444444444444444444444444444444444444440ee444ee0444467744444444444444ee044444444444444444444=", "o44444444444448006qew849weq5444008444008440ee460eew00848004460069eeq5444ee047006444800544444444=", "o44444444444440eeeeeeeqeeeew444ee0444ee0440ee47eeeeee040ee447eeeeeeew544ee045ee9444wew444444444=", " 44444444444440ee047eee740ee744ee0444ee0440ee457eeq77640ee447eew540ee944ee044qee446ee8444444444=", " 44444444444440ee544eeq447ee744ee0444ee0440ee444ee044440ee447ee8445eew44ee0446ee849ee5444444444=", " 44444444444440ee444ee0447ee744ee0444ee0440ee444ee044440ee447ee7444eee44ee0444weq4we04444444444=", " 44444444444440ee444ee0447ee744ee0444ee0440ee444ee044440ee447ee7444eee44ee04448ee8ee64444444444=", "X44444444444440ee444ee0447ee744eeq448ee0440ee444eeq44440ee447eeq448ee044ee04444wewew44444444444=", " 44444444444440ee444ee0447ee744qeeq0eee0440ee444qeeee740ee447eeeq0eee644ee044449eee844444444444=", "X44444444444440ee444ee0447ee7445weee8ee0440ee4445qeee740ee447ee0weee8444ee044445eee5444444444442", " 444444444444444444444444444444447754444444444444444444444447ee74775444444444444we0444444444444=", "X444444444444444444444444444444444444444444444444444444444447ee7444444444444460qee6444444444444=", " 444444444444444444444444444444444444444444444444444444444447ee744444444444447eee044444444444442", "X44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442" }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/double_rate_focus.xpm0000644000175000017500000000216411754453701023316 0ustar miramira/* XPM */ static char * double_rate_focus[] = { "26 25 22 1", " c None", ". c #43608C", "+ c #202D42", "@ c #202E43", "# c #6C83A5", "$ c #96A6BF", "% c #C0CAD9", "& c #ABB8CC", "* c #FFFFFF", "= c #8295B2", "- c #D5DBE5", "; c #587199", "> c #EAEDF2", ", c #212E44", "' c #212F44", ") c #212F45", "! c #223046", "~ c #223047", "{ c #233148", "] c #233249", "^ c #24334A", "/ c #24334B", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................@", ".....#$%%&#..............@", ".....******=.............@", ".....-=.;%*>.............@", ".........=**.=**#.&*>;...@", ".........%*-..&*>=**#....@", "........%*>;...%***=.....,", "......;-*>;....#**>......'", ".....;>*-;.....-***$.....)", ".....>**%%%%..&*-;**#....)", ".....*******.=**;.$*>;...!", ".........................~", ".........................{", ".........................{", ".........................]", ".........................]", ".........................^", "........................./", ".........................{"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/overdub_normal.xpm0000644000175000017500000000746711754453701022663 0ustar miramira/* XPM */ static char *overdub_normal[] = { /* columns rows colors chars-per-pixel */ "96 33 32 1", " c #24334A", ". c #24334B", "X c #24344C", "o c #25344C", "O c #25354D", "+ c #26354E", "@ c #26364E", "# c #26364F", "$ c #263650", "% c #273750", "& c #273751", "* c #273851", "= c #273852", "- c #283852", "; c #283953", ": c #283954", "> c #293A54", ", c #293A55", "< c #293B56", "1 c #2A3B56", "2 c #2A3B57", "3 c #2A3C57", "4 c #374E72", "5 c #4D6181", "6 c #637591", "7 c #7A89A1", "8 c #909CB0", "9 c #A6B0C0", "0 c #BCC4D0", "q c #D2D7DF", "w c #E8EBEF", "e c gray100", /* pixels */ "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "o4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#44444444444444444444444444444444444444444444444444444444447ee744444444444440ee4444444444444444=", " 44444444444444444444444444444444444444444444444444444444447ee744444444444440ee4444444444444444=", "o44444444444444444444444444444444444444444444444444444444447ee744444444444440ee4444444444444444=", "o444444444444460eee064470064448005459weeq644460069we746qee97ee744008444008440ee5qee944444444444=", "o4444444444447eeeeeee746ee9444wew45weeeeee7447eeweee75weeeeeee744ee0444ee0440eeeeeee04444444444=", " 444444444444wee747eew44qew447ee849ee845qew447eee74459ee045wee744ee0444ee0440ee045wee6444444444=", " 444444444446eeq444qee648ee740ee54wew7779ee647ee94444eee5448ee744ee0444ee0440ee5448ee9444444444=", " 444444444447ee04440ee744ee04ee044eeeeeeeee747ee74444eee4447ee744ee0444ee0440ee4447ee0444444444=", " 444444444447ee04440ee7449ee8ee644eeq777777547ee74444eee4447ee744ee0444ee0440ee4447ee0444444444=", "X444444444444eee545eee4446eeeew4440ee544448447ee74444qee844qee744eeq448ee0440ee844qee7444444444=", " 4444444444449eew0wee94444qeee84446eee00qee447ee744447eee0qeee744qeeq0eee0440eee0qeew4444444444=", "X44444444444449eeeee9444448eee544447weeeee9447ee7444449eeew0ee7445weee8ee0440ee7eeew644444444442", " 4444444444444447774444444444444444446776444444444444445774444444447754444444444477444444444444=", "X4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", "X44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442" }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/record_disabled.xpm0000644000175000017500000000747011754453701022744 0ustar miramira/* XPM */ static char *record_disabled[] = { /* columns rows colors chars-per-pixel */ "96 33 32 1", " c #24334A", ". c #24334B", "X c #24344C", "o c #25344C", "O c #25354D", "+ c #26354E", "@ c #26364E", "# c #26364F", "$ c #263650", "% c #273750", "& c #273751", "* c #273851", "= c #273852", "- c #283852", "; c #283953", ": c #283954", "> c #293A54", ", c #293A55", "< c #293B56", "1 c #2A3B56", "2 c #2A3B57", "3 c #2A3C57", "4 c #475160", "5 c #5B6471", "6 c #6F7783", "7 c #848B95", "8 c #999EA6", "9 c #ADB1B8", "0 c #C2C5CA", "q c #D6D8DB", "w c #EAEBED", "e c gray100", /* pixels */ "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "o4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444447ee7444444444444444444=", " 4444444444444444444444444444444444444444444444444444444444444444444444447ee7444444444444444444=", "o4444444444444444444444444444444444444444444444444444444444444444444444447ee7444444444444444444=", "o444444444444444444480050ee4460eee95444460eeew64459weeq844460069we746qee97ee7444444444444444444=", "o44444444444444444440eeweee47eeeeeew5447eeeeee745weeeeee0447eeweee75weeeeeee7444444444444444444=", " 44444444444444444440eew5454wew646ee944wee0446649ee045wee647eee74459ee045wee7444444444444444444=", " 44444444444444444440ee64446ee0777qew46eew444444wee5448ee947ee94444eee5448ee7444444444444444444=", " 44444444444444444440ee44447eeeeeeeee47ee0444444eee4447ee047ee74444eee4447ee7444444444444444444=", " 44444444444444444440ee44447ee977777747eeq444444eee4447ee047ee74444eee4447ee7444444444444444444=", "X44444444444444444440ee44444eeq44445744eee6444540ee844qee747ee74444qee844qee7444444444444444444=", " 44444444444444444440ee444449eew00we0449eee00w746eee0qeew447ee744447eee0qeee7444444444444444444=", "X44444444444444444440ee4444449eeeeew74449eeeee7447weeeeq5447ee7444449eeew0ee74444444444444444442", " 4444444444444444444444444444447775444444477764444467754444444444444457744444444444444444444444=", "X4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", "X44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442" }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/trig_active.xpm0000644000175000017500000000353711754453701022137 0ustar miramira/* XPM */ static char *trig_active[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #750924", "8 c #84243C", "9 c #933F54", "0 c #A35B6D", "q c #B27685", "w c #C1919D", "e c #D1ADB6", "r c #E0C8CE", "t c #EFE3E6", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777009777777777777777777:", "7777777779ee977777777777yye777777777777777777:", "7777777770yy077777777777eeq777777777777777777:", "777777779wyyw00780089eq7009777qew890077777777:", "77777777eyyyyyy70yyeyye7yye77eyyyytyy77777777:", "77777777qryyree70yyyw007yye79yyt0eyyy77777777:", "7777777770yy07770yyw7777yye7wyy877tyy77777777:", "7777777770yy07770yy07777yye7eyy777eyy777777771", "7777777770yy07770yy07777yye7eyy777ryy77777777:", "7777777770yyq7770yy07777yye70yyw70yyy777777772", "7777777778yyyye70yy07777yye77tyyyyyyy777777772", "77777777770tyye70yy07777yye778rytqeyy777777772", "7777777777777777777777777777777777tyt777777772", "77777777777777777777777777777ww00ryyq777777774", "77777777777777777777777777777eyyyyyq7777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXXX%.XXXXXXXXX......XXXXXX%X%%%%%%%&&%-%-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/solo_selected.xpm0000644000175000017500000000445011754453701022456 0ustar miramira/* XPM */ static char * solo_selected[] = { "46 25 69 1", " c #2F7868", ". c #202D42", "+ c #202E43", "@ c #FFFFFF", "# c #A1C2BB", "$ c #508D80", "% c #BFD6D1", "& c #F0F5F4", "* c #FDFDFD", "= c #F4F8F7", "- c #D7E5E2", "; c #98BCB4", "> c #5D968A", ", c #C3D8D4", "' c #F2F7F6", ") c #FBFCFC", "! c #E3EDEB", "~ c #9EC0B9", "{ c #377D6E", "] c #DBE8E5", "^ c #FDFEFE", "/ c #D9E7E4", "( c #DEEAE7", "_ c #D9E6E3", ": c #62998D", "< c #DAE7E4", "[ c #FEFEFE", "} c #CDDFDB", "| c #317969", "1 c #FAFCFB", "2 c #B8D1CB", "3 c #397E6F", "4 c #CCDEDA", "5 c #E9F1EF", "6 c #3B8071", "7 c #84AFA6", "8 c #6DA095", "9 c #BDD4CF", "0 c #CEDFDB", "a c #9DBFB8", "b c #438576", "c c #F7FAF9", "d c #ADCAC4", "e c #223046", "f c #347B6C", "g c #7FACA2", "h c #B6D0CA", "i c #D1E1DD", "j c #679D91", "k c #337B6B", "l c #B5CFC9", "m c #223047", "n c #D5E3E0", "o c #FCFDFD", "p c #ABC8C2", "q c #F6F9F8", "r c #EDF3F2", "s c #48887A", "t c #C4D9D4", "u c #F3F7F6", "v c #233249", "w c #24334A", "x c #141C2A", "y c #16202E", "z c #141C29", "A c #172130", "B c #17202F", "C c #182231", "D c #101621", " .", " .", " .", " +", " +", " +", " +", " @@# +", " @@# +", " @@# +", " $%&*=-; >,')!~{ @@# >,')!~{ +", " ]@^/(*_ :)@&<[@}| @@# :)@&<[@}| +", " 1@2 3> 4@56 7@@8 @@# 4@56 7@@8 +", " 9@@&0ab c@d 6@@; @@# c@d 6@@; e", " fgh/[@i c@d 6@@; @@# c@d 6@@; +", " jk l@) 4@56 7@@8 @@# 4@56 7@@8 m", " @c/][@n :o@&/[@}| @@# :o@&/[@}| m", " p_q^r2s >tu)!~{ @@# >tu)!~{ m", " m", " v", " m", " v", " w", " w", "xxxxxyzxxxxxxxxxxzzzzzzxxxxxxyxyyyyyyyyABBBCBD"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/1x_rate_active.xpm0000644000175000017500000000171611754453701022532 0ustar miramira/* XPM */ static char * onex_rate_active[] = { "26 25 11 1", " c None", ". c #750924", "+ c #933F54", "@ c #A35B6D", "# c #D1ADB6", "$ c #FFFFFF", "% c #B27685", "& c #C1919D", "* c #EFE3E6", "= c #84243C", "- c #E0C8CE", "..........................", "..........................", "..........................", "..........................", "..........................", "..........................", "..........................", "......+@@@................", ".....#$$$$................", ".....%&&$$................", ".......@$$...@$$+.&$*=....", ".......@$$....&$*@$$+.....", ".......@$$.....#$$$@......", ".......@$$.....+$$*.......", ".......@$$.....-$$$%......", ".....+#-$$##..&$-=$$+.....", ".....@$$$$$$.@$$=.%$*=....", "..........................", "..........................", "..........................", "..........................", "..........................", "..........................", "..........................", ".........................."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/delay_disabled.xpm0000644000175000017500000000470611754453701022563 0ustar miramira/* XPM */ static char * delay_disabled[] = { "77 25 28 1", " c None", ". c #1F2C40", "+ c #475160", "@ c #293A54", "# c #202D42", "$ c #1F2D41", "% c #1F2C41", "& c #6F7783", "* c #C2C5CA", "= c #283954", "- c #848B95", "; c #FFFFFF", "> c #1F2B3F", ", c #ADB1B8", "' c #999EA6", ") c #D6D8DB", "! c #EAEBED", "~ c #5B6471", "{ c #283953", "] c #1E2B3F", "^ c #293A55", "/ c #293B56", "( c #202E43", "_ c #2A3B56", ": c #2A3B57", "< c #212E44", "[ c #2A3C57", "} c #2A3C58", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", ".+++++++++++++++++++++++&**+++++++++++&**+++++++++++++++++++++++++++++++++++=", ".+++++++++++++++++++++++-;;+++++++++++-;;+++++++++++++++++++++++++++++++++++=", ".+++++++++++++++++++++++-;;+++++++++++-;;+++++++++++++++++++++++++++++++++++=", ">+++++++++++++++++++,;;,';;+++');;)&++-;;++'!;;;*~+~**&++~**~+++++++++++++++{", "]++++++++++++++++++*;;));;;++,;;*);;&+-;;++*!**!;!++);,++,;!++++++++++++++++{", "]+++++++++++++++++~;;*++*;;+~;;&++';)+-;;++~+++~;;-+';!++!;,++++++++++++++++{", "]+++++++++++++++++-;;-++-;;+-;;;;;;;;+-;;++-);;;;;-++!;-&;;~++++++++++++++++{", "]+++++++++++++++++-;;-++-;;+-;;******+-;;+~;;,--;;-++,;),;)+++++++++++++++++{", ">+++++++++++++++++~;;*++*;;+~;;-+++~-+-;;+-;;++-;;-++~;;!;-+++++++++++++++++=", ".++++++++++++++++++*;;));;;++,;;**);*+-;;+~;;)*;;;-+++*;;!++++++++++++++++++@", ".+++++++++++++++++++,;;,';;+++');;;*-+-;;++-!;)-;;-+++&;;,++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++~;;&++++++++++++++++++^", "#++++++++++++++++++++++++++++++++++++++++++++++++++++*!;)+++++++++++++++++++^", "#++++++++++++++++++++++++++++++++++++++++++++++++++++;;)~+++++++++++++++++++/", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++:", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/delay_normal.xpm0000644000175000017500000000461011754453701022276 0ustar miramira/* XPM */ static char * delay_normal[] = { "77 25 24 1", " c None", ". c #212E44", "+ c #374E72", "@ c #293A54", "# c #202D42", "$ c #1F2D41", "% c #1F2C41", "& c #1F2C40", "* c #637591", "= c #BCC4D0", "- c #283954", "; c #7A89A1", "> c #FFFFFF", ", c #1F2B3F", "' c #A6B0C0", ") c #909CB0", "! c #D2D7DF", "~ c #E8EBEF", "{ c #4D6181", "] c #1E2B3F", "^ c #202E43", "/ c #293A55", "( c #293B55", "_ c #293B56", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&+++++++++++++++++++++++*==+++++++++++*==+++++++++++++++++++++++++++++++++++-", "&+++++++++++++++++++++++;>>+++++++++++;>>+++++++++++++++++++++++++++++++++++-", "&+++++++++++++++++++++++;>>+++++++++++;>>+++++++++++++++++++++++++++++++++++-", ",+++++++++++++++++++'>>')>>+++)!>>!*++;>>++)~>>>={+{==*++{=={+++++++++++++++@", "]++++++++++++++++++=>>!!>>>++'>>=!>>*+;>>++=~==~>~++!>'++'>~++++++++++++++++@", "]+++++++++++++++++{>>=++=>>+{>>*++)>!+;>>++{+++{>>;+)>~++~>'++++++++++++++++@", "]+++++++++++++++++;>>;++;>>+;>>>>>>>>+;>>++;!>>>>>;++~>;*>>{++++++++++++++++@", "]+++++++++++++++++;>>;++;>>+;>>======+;>>+{>>';;>>;++'>!'>!+++++++++++++++++@", ",+++++++++++++++++{>>=++=>>+{>>;+++{;+;>>+;>>++;>>;++{>>~>;+++++++++++++++++-", "&++++++++++++++++++=>>!!>>>++'>>==!>=+;>>+{>>!=>>>;+++=>>~++++++++++++++++++@", "&+++++++++++++++++++'>>')>>+++)!>>>=;+;>>++;~>!;>>;+++*>>'++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++{>>*++++++++++++++++++@", "#++++++++++++++++++++++++++++++++++++++++++++++++++++=~>!+++++++++++++++++++@", "#++++++++++++++++++++++++++++++++++++++++++++++++++++>>!{+++++++++++++++++++@", "^+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "^+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++(", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/undo_selected.xpm0000644000175000017500000001723011754453701022447 0ustar miramira/* XPM */ static char *undo_selected[] = { /* columns rows colors chars-per-pixel */ "57 52 99 2", " c black", ". c #000101", "X c #010101", "o c #010102", "O c #010203", "+ c #020203", "@ c #020304", "# c #020305", "$ c #030406", "% c #040608", "& c #050609", "* c #05070A", "= c #06090D", "- c #070A0E", "; c #070A0F", ": c #080C11", "> c #090C12", ", c #090D12", "< c #090D13", "1 c #0A0E14", "2 c #0A0E15", "3 c #0A0F15", "4 c #0B1017", "5 c #0C1118", "6 c #0D131C", "7 c #0E141D", "8 c #0F151F", "9 c #111822", "0 c #121925", "q c #131B28", "w c #141C29", "e c #151E2C", "r c #161F2E", "t c #17202F", "y c #182232", "u c #182333", "i c #192333", "p c #192435", "a c #1B2739", "s c #1D293C", "d c #1E2B3F", "f c #1F2C40", "g c #1F2C41", "h c #202D42", "j c #202E43", "k c #212E44", "l c #212F44", "z c #212F45", "x c #223046", "c c #223047", "v c #223147", "b c #233148", "n c #233248", "m c #233249", "M c #24324A", "N c #24334A", "B c #24334B", "V c #24344C", "C c #25344C", "Z c #25354D", "A c #26354E", "S c #26364E", "D c #26364F", "F c #263650", "G c #273852", "H c #293A55", "J c #293B56", "K c #2A3B57", "L c #2B3D59", "P c #2B3D5A", "I c #2C3E5A", "U c #2C3E5B", "Y c #2C475B", "T c #2B4B5B", "R c #2A575B", "E c #29625A", "W c #29685A", "Q c #2A695B", "! c #2A6B5C", "~ c #2B6C5D", "^ c #2B6E5F", "/ c #2C6F60", "( c #2D7263", ") c #2E7362", "_ c #2E7364", "` c #2E7565", "' c #2E7766", "] c #2F7666", "[ c #2F7868", "{ c #307767", "} c #468779", "| c #5D9689", " . c #74A59A", ".. c #8BB4AB", "X. c #A2C3BB", "o. c #BAD2CD", "O. c #D1E1DD", "+. c #E7F0EE", "@. c gray100", /* pixels */ " > w d B G U E ( { ' [ [ [ z ", " - x U [ [ [ [ ' [ [ [ [ [ ' [ [ [ z ", " = p Y [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", " w J [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ v ", " @ t ~ ' [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ v ", " e Q [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ v ", " w E [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ v ", " > U [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ v ", " p _ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " ; J [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ v ", " e _ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " D [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ v ", " * J [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " ; R [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ m ", " 4 ~ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " 8 ` [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " 7 ` [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " > ( [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " * Q ` [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " @ L [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " D [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " s [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " 7 { [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " @ Q [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ ' D ", " v [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " 9 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ D ", " * ~ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ D ", " M [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " 1 { [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " D [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ D ", " 4 ` [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " D [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " 4 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ @.@.o.[ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " F [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ @.@.o.[ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " = [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ @.@.o.[ [ [ [ [ [ [ [ [ [ [ [ [ [ [ m ", " i [ [ [ [ [ ..o.o.[ [ [ ..o.o.[ [ | o.o.| X.@.@.O.} [ [ [ } X.@.@.O.} @.@.o.[ [ [ | o.@.@.@.o.| [ [ [ [ [ m ", " L [ [ [ [ [ o.@.@.[ [ [ o.@.@.[ [ .@.@.@.@.@.@.@.+.[ [ [ o.@.@.@.@.@.@.@.o.[ [ .@.@.@.@.@.@.@. .[ [ [ [ m ", " > [ [ [ [ [ [ o.@.@.[ [ [ o.@.@.[ [ .@.@.+.| [ o.@.@. .[ | @.@.+.} [ o.@.@.o.[ [ +.@.@. .[ .@.@.+.[ [ [ [ v ", " a [ [ [ [ [ [ o.@.@.[ [ [ o.@.@.[ [ .@.@...[ [ .@.@. .[ o.@.@...[ [ } @.@.o.[ | @.@.O.[ [ [ O.@.@.| [ [ [ m ", " R [ [ [ [ [ [ o.@.@.[ [ [ o.@.@.[ [ .@.@. .[ [ .@.@. .[ o.@.@. .[ [ [ @.@.o.[ .@.@.o.[ [ [ o.@.@. .[ [ [ v ", " 1 [ [ [ [ [ [ [ o.@.@.[ [ [ o.@.@.[ [ .@.@. .[ [ .@.@. .[ o.@.@. .[ [ [ @.@.o.[ .@.@.o.[ [ [ o.@.@. .[ [ [ z ", " t [ [ [ [ [ [ [ o.@.@.} [ } @.@.@.[ [ .@.@. .[ [ .@.@. .[ ..@.@.O.[ [ ..@.@.o.[ [ @.@.@.} [ } @.@.@.[ [ [ [ v ", " v [ [ [ [ [ [ [ ..@.@.+.o.+.@.@.@.[ [ .@.@. .[ [ .@.@. .[ } +.@.@.O.o.@.@.@.o.[ [ X.@.@.+.o.+.@.@.X.[ [ [ [ z ", " T [ [ [ [ [ [ [ [ o.@.@.@.o.O.@.@.[ [ .@.@. .[ [ .@.@. .[ [ .+.@.@.@.X.@.@.o.[ [ [ X.@.@.@.@.@.X.[ [ [ [ [ z ", "@ ` [ [ [ [ [ [ [ [ [ | .| [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ . .} [ [ [ [ [ [ [ [ [ . . .[ [ [ [ [ [ [ z ", "5 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", "0 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", "i [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ { j ", "s [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ j ", "v [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ j ", "z [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ ' [ [ [ [ [ ` [ [ [ [ [ [ j ", "v [ [ [ [ [ [ [ [ [ [ [ [ [ [ ` ' ` { ` ` ` ( ` _ _ ( ( ( ( ( ( ( _ _ _ _ _ _ _ ` ) ) ( ` ` ` ` ` { { ` { ` { ' g " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/overdub_active.xpm0000644000175000017500000000675511754453701022645 0ustar miramira/* XPM */ static char *overdub_active[] = { /* columns rows colors chars-per-pixel */ "96 33 10 1", " c #750924", ". c #84243C", "X c #933F54", "o c #A35B6D", "O c #B27685", "+ c #C1919D", "@ c #D1ADB6", "# c #E0C8CE", "$ c #EFE3E6", "% c gray100", /* pixels */ " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " o%%o @%% ", " o%%o @%% ", " o%%o @%% ", " X@%%%@X o@@X O@@. .+$%%#X X@@X+$%o X#%%+o%%o @@O @@O @%%.#%%+ ", " o%%%%%%%o X%%+ $%$ .$%%%%%%o o%%$%%%o.$%%%%%%%o %%@ %%@ @%%%%%%%@ ", " $%%o o%%$ #%$ o%%O +%%O .#%$ o%%%o .+%%@ .$%%o %%@ %%@ @%%@ .$%%X ", " X%%# #%%X O%%o @%%. $%$ooo+%%X o%%+ %%%. O%%o %%@ %%@ @%%. O%%+ ", " o%%@ @%%o %%@ %%@ %%%%%%%%%o o%%o %%% o%%o %%@ %%@ @%% o%%@ ", " o%%@ @%%o +%%O%%X %%#oooooo. o%%o %%% o%%o %%@ %%@ @%% o%%@ ", " %%%. .%%% X%%%%$ @%%. O o%%o #%%O #%%o %%# O%%@ @%%O #%%o ", " +%%$@$%%+ #%%%O X%%%@@#%% o%%o o%%%@#%%%o #%%#@%%%@ @%%%@#%%$ ", " +%%%%%+ O%%%. o$%%%%%+ o%%o +%%%$@%%o .$%%%O%%@ @%%o%%%$X ", " ooo XooX .oo oo. oo ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/double_rate_normal.xpm0000644000175000017500000000216511754453701023470 0ustar miramira/* XPM */ static char * double_rate_normal[] = { "26 25 22 1", " c None", ". c #374E72", "+ c #202D42", "@ c #202E43", "# c #637591", "$ c #909CB0", "% c #BCC4D0", "& c #A6B0C0", "* c #FFFFFF", "= c #7A89A1", "- c #D2D7DF", "; c #4D6181", "> c #E8EBEF", ", c #212E44", "' c #212F44", ") c #212F45", "! c #223046", "~ c #223047", "{ c #233148", "] c #233249", "^ c #24334A", "/ c #24334B", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................@", ".....#$%%&#..............@", ".....******=.............@", ".....-=.;%*>.............@", ".........=**.=**#.&*>;...@", ".........%*-..&*>=**#....@", "........%*>;...%***=.....,", "......;-*>;....#**>......'", ".....;>*-;.....-***$.....)", ".....>**%%%%..&*-;**#....)", ".....*******.=**;.$*>;...!", ".........................~", ".........................{", ".........................{", ".........................]", ".........................]", ".........................^", "........................./", ".........................]"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/trig_focus.xpm0000644000175000017500000000353611754453701022002 0ustar miramira/* XPM */ static char *trig_focus[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #43608C", "8 c #587199", "9 c #6C83A5", "0 c #8295B2", "q c #96A6BF", "w c #ABB8CC", "e c #C0CAD9", "r c #D5DBE5", "t c #EAEDF2", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777009777777777777777777:", "7777777779ee977777777777yye777777777777777777:", "7777777770yy077777777777eeq777777777777777777:", "777777779wyyw00780089eq7009777qew890077777777:", "77777777eyyyyyy70yyeyye7yye77eyyyytyy77777777:", "77777777qryyree70yyyw007yye79yyt0eyyy77777777:", "7777777770yy07770yyw7777yye7wyy877tyy77777777:", "7777777770yy07770yy07777yye7eyy777eyy777777771", "7777777770yy07770yy07777yye7eyy777ryy77777777:", "7777777770yyq7770yy07777yye70yyw70yyy777777772", "7777777778yyyye70yy07777yye77tyyyyyyy777777772", "77777777770tyye70yy07777yye778rytqeyy777777772", "7777777777777777777777777777777777tyt777777772", "77777777777777777777777777777ww00ryyq777777774", "77777777777777777777777777777eyyyyyq7777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXXX%.XXXXXXXXX......XXXXXX%X%%%%%%%&&%-%-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/redo_active.xpm0000644000175000017500000001012611754453701022113 0ustar miramira/* XPM */ static char *redo_active[] = { /* columns rows colors chars-per-pixel */ "57 52 60 1", " c black", ". c #000101", "X c #010101", "o c #010102", "O c #010202", "+ c #020204", "@ c #020304", "# c #020305", "$ c #030405", "% c #030406", "& c #030507", "* c #050609", "= c #06080C", "- c #070A0E", "; c #080B10", ": c #080C11", "> c #090C12", ", c #090D13", "< c #0E141E", "1 c #0F151E", "2 c #101721", "3 c #101722", "4 c #111924", "5 c #121925", "6 c #131B27", "7 c #141C2A", "8 c #151D2B", "9 c #151E2C", "0 c #161F2D", "q c #16202E", "w c #172130", "e c #192333", "r c #1B2739", "t c #1C283A", "y c #1C283B", "u c #1E2A3D", "i c #1E2B3F", "p c #202D42", "a c #2C2C43", "s c #2C2D43", "d c #342B44", "f c #3B2840", "g c #3B2841", "h c #501F3A", "j c #5D1934", "k c #49223C", "l c #49223D", "z c #6F0D28", "x c #631530", "c c #750924", "v c #422540", "b c #84243C", "n c #933F54", "m c #A35B6D", "M c #B27685", "N c #C1919D", "B c #D1ADB6", "V c #E0C8CE", "C c #EFE3E6", "Z c gray100", /* pixels */ "8cccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "9cccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "9cccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "8cccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "1cccccccccccccccccccccccccccccccccccccccccccccccccccccccc", ",cccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "&cccccccccccccccccccccccccccccccccccccccccccccccccccccccc", " cccccccccccccccccccccccccccccccccccccccccccccccccccccccc", " kcccccccccccccccccccccccccccccccccccBZZccccccccccccccccc", " rcccccccccccccccccccccccccccccccccccBZZccccccccccccccccc", " 2cccccccccccccccccccccccccccccccccccBZZccccccccccccccccc", " &ccccccccccMBBbBZZccnBZZZNbccccMCZCmBZZcccbNCZZVMccccccc", " kcccccccccBZZCZZZcmZZZZZZCbccmZZZZZZZZccbCZZZZZZBcccccc", " 7cccccccccBZZCbcbcCZCncnZZNccCZZmcmZZZccNZZBcbCZZnccccc", " &cccccccccBZZncccnZZBmmmVZCcmZZVcccVZZccCZZbccMZZNccccc", " fccccccccBZZccccmZZZZZZZZZcmZZBcccBZZccZZZcccmZZBccccc", " 1ccccccccBZZccccmZZNmmmmmmcmZZBcccBZZccZZZcccmZZBccccc", " ccccccccBZZcccccZZVccccbmcbZZZbcbZZZccBZZMccVZZmccccc", " wcccccccBZZcccccNZZCBBCZBccBZZCBCZZZccnZZZBVZZCcccccc", " &cccccccBZZccccccNZZZZZCmccbVZZZVVZZcccmCZZZZVbcccccc", " ycccccccccccccccccmmmbccccccnmncccccccccnmmbcccccccc", " &ccccccccccccccccccccccccccccccccccccccccccccccccccc", " ecccccccccccccccccccccccccccccccccccccccccccccccccc", " cccccccccccccccccccccccccccccccccccccccccccccccccc", " 2ccccccccccccccccccccccccccccccccccccccccccccccccc", " dcccccccccccccccccccccccccccccccccccccccccccccccc", " *cccccccccccccccccccccccccccccccccccccccccccccccc", " 6ccccccccccccccccccccccccccccccccccccccccccccccc", " scccccccccccccccccccccccccccccccccccccccccccccc", " #cccccccccccccccccccccccccccccccccccccccccccccc", " >ccccccccccccccccccccccccccccccccccccccccccccc", " 6cccccccccccccccccccccccccccccccccccccccccccc", " uccccccccccccccccccccccccccccccccccccccccccc", " scccccccccccccccccccccccccccccccccccccccccc", " kccccccccccccccccccccccccccccccccccccccccc", " #jcccccccccccccccccccccccccccccccccccccccc", " &jccccccccccccccccccccccccccccccccccccccc", " #lcccccccccccccccccccccccccccccccccccccc", " accccccccccccccccccccccccccccccccccccc", " pcccccccccccccccccccccccccccccccccccc", " 6ccccccccccccccccccccccccccccccccccc", " ,cccccccccccccccccccccccccccccccccc", " #scccccccccccccccccccccccccccccccc", " 2ccccccccccccccccccccccccccccccc", " #uccccccccccccccccccccccccccccc", " -xccccccccccccccccccccccccccc", " 6cccccccccccccccccccccccccc", " 9cccccccccccccccccccccccc", " 6hccccccccccccccccccccc", " -rccccccccccccccccccc", " :qgccccccccccccccc", " >6rfzccccccccc" }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/pause_focus.xpm0000644000175000017500000001027211754453701022145 0ustar miramira/* XPM */ static char * pause_focus[] = { "46 25 114 2", " c #43608C", ". c #202D42", "+ c #202E43", "@ c #FFFFFF", "# c #9FAEC4", "$ c #E9ECF1", "% c #F9FAFB", "& c #BCC6D6", "* c #496590", "= c #546E96", "- c #D4DBE5", "; c #F2F4F7", "> c #FEFEFE", ", c #C0CAD9", "' c #556F97", ") c #667EA2", "! c #748AAA", "~ c #D9DFE8", "{ c #F8F9FB", "] c #FBFCFD", "^ c #E6EAF0", "/ c #B3BFD1", "( c #44618C", "_ c #97A7BF", ": c #E5E9EF", "< c #EAEEF2", "[ c #A0AFC5", "} c #44618D", "| c #EFF1F5", "1 c #B4BFD1", "2 c #F0F2F6", "3 c #A7B5C9", "4 c #5C759B", "5 c #D4DAE4", "6 c #B2BED0", "7 c #E0E5EC", "8 c #C6CFDC", "9 c #EDEFF4", "0 c #D1D8E3", "a c #B1BDCF", "b c #CED5E1", "c c #DEE3EB", "d c #99A9C1", "e c #E2E7ED", "f c #8699B5", "g c #889AB6", "h c #778CAC", "i c #A1AFC5", "j c #ACB9CC", "k c #BFC9D8", "l c #F6F8FA", "m c #F4F6F8", "n c #A9B7CB", "o c #6E84A6", "p c #4C6791", "q c #46628E", "r c #E7EBF1", "s c #C0C9D8", "t c #ADBACD", "u c #C1CBD9", "v c #6B82A4", "w c #6C82A5", "x c #FCFDFD", "y c #6980A3", "z c #8799B5", "A c #EEF1F5", "B c #9EADC4", "C c #FEFEFF", "D c #223046", "E c #EBEEF3", "F c #8B9DB8", "G c #45628D", "H c #798EAD", "I c #7288A9", "J c #8C9EB9", "K c #48648F", "L c #5B749A", "M c #9CABC3", "N c #F7F8FA", "O c #EDF0F4", "P c #AAB7CB", "Q c #D8DEE7", "R c #B5C1D2", "S c #D6DDE6", "T c #A7B4C9", "U c #C5CEDC", "V c #B0BCCF", "W c #EAEDF2", "X c #F5F6F9", "Y c #BAC4D5", "Z c #B5C0D1", "` c #223047", " . c #93A4BD", ".. c #BEC8D7", "+. c #4A6691", "@. c #6F85A7", "#. c #E2E6ED", "$. c #677FA2", "%. c #E4E9EF", "&. c #C3CCDA", "*. c #FDFDFE", "=. c #90A1BB", "-. c #FBFBFC", ";. c #DDE2EA", ">. c #A9B6CA", ",. c #233249", "'. c #24334A", "). c #141C2A", "!. c #16202E", "~. c #141C29", "{. c #172130", "]. c #17202F", "^. c #182231", "/. c #101621", " . ", " . ", " . ", " + ", " + ", " + ", " + ", " + ", " + ", " + ", " @ @ # $ % & * = - ; > ; , ' @ @ ) ) @ @ ! ~ { ] ^ / ( _ : ] < [ } + ", " @ @ | 1 2 @ 3 4 5 1 6 7 @ 8 @ @ ) ) @ @ 9 @ 0 a b c d @ : 6 e @ # + ", " @ @ f g @ < ( h i j k @ l @ @ ) ) @ @ m @ n o p q r @ s t u @ < + ", " @ @ v w @ x / @ @ @ @ @ @ @ @ ) y @ @ z A @ @ ] B x @ @ @ @ @ C D ", " @ @ f g @ E % @ F G H @ @ ] @ I J @ @ K ( L M @ N r @ H 4 + ", " @ @ O 1 2 @ P ^ @ Q R O @ @ S @ ~ T ; @ @ m U V - @ W _ @ X Y Z Q C ` ", " @ @ .e % ..+. @.#.x #. .@ @ $.c x %.# @ @ &.< *.{ - o =.c -.% ;.>. ` ", " @ @ ) ` ", " @ @ ) ` ", " @ @ ) ,.", " ` ", " ,.", " '.", " '.", ").).).).).!.~.).).).).).).).).).).~.~.~.~.~.~.).).).).).).!.).!.!.!.!.!.!.!.!.{.].].].^.]./."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/load_focus.xpm0000644000175000017500000000353611754453701021754 0ustar miramira/* XPM */ static char *load_focus[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #43608C", "8 c #587199", "9 c #6C83A5", "0 c #8295B2", "q c #96A6BF", "w c #ABB8CC", "e c #C0CAD9", "r c #D5DBE5", "t c #EAEDF2", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777900777777777777777777777777777700977777:", "777777eyy7777777777777777777777777777yye77777:", "777777eyy7777777777777777777777777777yye77777:", "777777eyy7778qeew97778qeeew977778weq7yye77777:", "777777eyy778tyyyyy0770yyyyyyw778tyyytyye77777:", "777777eyy77tyyq0tyy9790778eyy87wyye0tyye77777:", "777777eyy79yyw779yyw777900wyy07tyr778yye77777:", "777777eyy70yy0777yye70tyyyyyy07yye777yye777771", "777777eyy70yy0778yye7tytq0wyy07yye777yye77777:", "777777eyy77yyt87eyy07yye77eyy07eyy97eyye777772", "777777eyy770yyyyyye77ryyeryyy079yyyyyyye777772", "777777eyy7770ryytw7778ryywqyy0770tyr9yye777772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXXX%.XXXXXXXXX......XXXXXX%X%%%%%%%&&%-%-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/pause_disabled.xpm0000644000175000017500000001025511754453701022576 0ustar miramira/* XPM */ static char * pause_disabled[] = { "46 25 113 2", " c #475160", ". c #202D42", "+ c #202E43", "@ c #FFFFFF", "# c #A1A6AE", "$ c #E9EBEC", "% c #F9FAFA", "& c #BDC1C6", "* c #4D5665", "= c #58616E", "- c #D5D7DB", "; c #F3F3F4", "> c #FEFEFE", ", c #F2F3F4", "' c #C2C5CA", ") c #58616F", "! c #6A727E", "~ c #777F8A", "{ c #D9DCDF", "] c #F9F9F9", "^ c #FBFCFC", "/ c #E6E8EA", "( c #B5B9BF", "_ c #485261", ": c #999FA7", "< c #E6E7E9", "[ c #EBECEE", "} c #A2A7AF", "| c #EFF0F1", "1 c #F0F1F2", "2 c #A9AEB5", "3 c #606875", "4 c #D4D7DA", "5 c #B3B7BE", "6 c #E1E2E5", "7 c #C7CACF", "8 c #EDEEEF", "9 c #D2D4D8", "0 c #B3B7BD", "a c #CFD1D5", "b c #DFE0E3", "c c #9BA1A9", "d c #B4B8BE", "e c #E3E4E7", "f c #898F99", "g c #8A909A", "h c #7A818C", "i c #A3A8AF", "j c #ADB2B9", "k c #C0C4C9", "l c #F6F7F8", "m c #F4F5F6", "n c #ABB0B7", "o c #717984", "p c #505967", "q c #4A5462", "r c #E8E9EB", "s c #C1C4C9", "t c #AFB3BA", "u c #C2C6CB", "v c #6E7682", "w c #6F7782", "x c #FCFCFD", "y c #6D7480", "z c #899099", "A c #EEEFF1", "B c #A0A6AD", "C c #223046", "D c #ECEDEE", "E c #8E949D", "F c #495362", "G c #7C838E", "H c #757D88", "I c #8E959E", "J c #4C5664", "K c #5E6774", "L c #9EA4AB", "M c #F7F7F8", "N c #EEEFF0", "O c #ACB1B7", "P c #D9DBDE", "Q c #B7BBC1", "R c #D7D9DD", "S c #A8ADB4", "T c #C7CACE", "U c #B2B6BC", "V c #EAEBED", "W c #F5F5F6", "X c #BBBFC4", "Y c #B6BAC0", "Z c #223047", "` c #969BA4", " . c #C0C3C8", ".. c #4E5866", "+. c #727A85", "@. c #E2E4E6", "#. c #6A727F", "$. c #E5E6E9", "%. c #C5C8CC", "&. c #FDFDFD", "*. c #9399A1", "=. c #FBFBFB", "-. c #DEE0E2", ";. c #ABAFB6", ">. c #233249", ",. c #24334A", "'. c #141C2A", "). c #16202E", "!. c #141C29", "~. c #172130", "{. c #17202F", "]. c #182231", "^. c #101621", " . ", " . ", " . ", " + ", " + ", " + ", " + ", " + ", " + ", " + ", " @ @ # $ % & * = - ; > , ' ) @ @ ! ! @ @ ~ { ] ^ / ( _ : < ^ [ } _ + ", " @ @ | ( 1 @ 2 3 4 ( 5 6 @ 7 @ @ ! ! @ @ 8 @ 9 0 a b c @ < d e @ # + ", " @ @ f g @ [ _ h i j k @ l @ @ ! ! @ @ m @ n o p q r @ s t u @ [ + ", " @ @ v w @ x ( @ @ @ @ @ @ @ @ ! y @ @ z A @ @ ^ B x @ @ @ @ @ > C ", " @ @ f g @ D % @ E F G @ @ ^ @ H I @ @ J _ K L @ M r @ G 3 + ", " @ @ N ( 1 @ O / @ P Q N @ @ R @ { S , @ @ m T U - @ V : @ W X Y P > Z ", " @ @ ` e % ... +.@.x @.` @ @ #.b x $.# @ @ %.[ &.] - o *.b =.% -.;. Z ", " @ @ ! Z ", " @ @ ! Z ", " @ @ ! >.", " Z ", " >.", " ,.", " ,.", "'.'.'.'.'.).!.'.'.'.'.'.'.'.'.'.'.!.!.!.!.!.!.'.'.'.'.'.'.).'.).).).).).).).).~.{.{.{.].{.^."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/half_rate_focus.xpm0000644000175000017500000000225611754453701022760 0ustar miramira/* XPM */ static char * half_rate_focus[] = { "26 25 26 1", " c None", ". c #43608C", "+ c #202D42", "@ c #96A6BF", "# c #C0CAD9", "$ c #ABB8CC", "% c #D5DBE5", "& c #202E43", "* c #EAEDF2", "= c #8295B2", "- c #FFFFFF", "; c #6C83A5", "> c #587199", ", c #CBD3DF", "' c #CDD5E0", ") c #CED5E1", "! c #C4CDDB", "~ c #212E44", "{ c #212F44", "] c #212F45", "^ c #223046", "/ c #223047", "( c #233148", "_ c #233249", ": c #24334A", "< c #24334B", ".........................+", ".........................+", ".........................+", ".........................+", ".....@#@.................+", ".....$%#.................+", "......##.................&", "......##.................&", "......##.................&", ".....#**#................&", ".....====....=--;.$-*>...&", "..............$-*=--;....&", "....,''))'!....#---=.....~", "...............;--*......{", ".....>$#$>.....%---@.....]", ".....=$=#*....$-%>--;....]", "........=-...=-->.@-*>...^", ".......;*#.............../", "......=-#................(", ".....;--##...............(", ".....>====..............._", "........................._", ".........................:", ".........................<", ".........................("}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/mute_disabled.xpm0000644000175000017500000000512411754453701022432 0ustar miramira/* XPM */ static char * mute_disabled[] = { "46 25 89 1", " c #475160", ". c #202D42", "+ c #202E43", "@ c #4D5665", "# c #4A5462", "$ c #FFFFFF", "% c #ACB1B7", "& c #B0B5BB", "* c #B2B6BC", "= c #F5F5F6", "- c #EEEFF1", "; c #9A9FA8", "> c #565F6D", ", c #C3C6CB", "' c #F8F8F9", ") c #999EA6", "! c #737B86", "~ c #CFD1D5", "{ c #F6F6F7", "] c #F9FAFA", "^ c #D4D7DA", "/ c #767D89", "( c #FAFAFB", "_ c #ECEDEF", ": c #EFF0F1", "< c #E9EAEC", "[ c #ECEDEE", "} c #F0F1F2", "| c #6F7783", "1 c #D7D9DD", "2 c #EDEEEF", "3 c #757D88", "4 c #FCFCFD", "5 c #E9EBEC", "6 c #E6E8EA", "7 c #4D5766", "8 c #606976", "9 c #E5E6E9", "0 c #A0A5AD", "a c #D2D5D8", "b c #C0C3C8", "c c #485261", "d c #CCCFD3", "e c #CFD2D6", "f c #B4B8BE", "g c #495362", "h c #ABB0B7", "i c #F6F7F8", "j c #223046", "k c #ADB1B8", "l c #505A68", "m c #E8E9EB", "n c #D7D9DC", "o c #C0C4C9", "p c #848A94", "q c #D1D3D7", "r c #CBCED2", "s c #4B5564", "t c #545D6B", "u c #8C929B", "v c #223047", "w c #C7CACF", "x c #FEFEFE", "y c #E0E2E4", "z c #FBFCFC", "A c #DADCDF", "B c #727985", "C c #FBFBFB", "D c #F3F3F4", "E c #DBDDE0", "F c #E6E7E9", "G c #5E6774", "H c #8B919B", "I c #DFE1E4", "J c #6D7480", "K c #C5C8CD", "L c #F1F2F3", "M c #FDFDFD", "N c #D0D3D6", "O c #9BA0A8", "P c #233249", "Q c #24334A", "R c #141C2A", "S c #16202E", "T c #141C29", "U c #172130", "V c #17202F", "W c #182231", "X c #101621", " .", " .", " .", " +", " +", " +", " +", " @@# +", " $$% +", " $$% +", " $$&*=-;>,'-) $$% $$% $$$$$$ !~{]^/ +", " $$(_:$$<[}$$| $$% $$% 1$$211 34$5<$4! +", " $$678$$978$$0 $$% $$% $$% a$bccd$e +", " $$f g$$f c$$h $$% $$% $$% '$$$$$$i j", " $$% $$% $$% $$k l$$% $$% '$m1111n +", " $$% $$% $$% =$o p$$% 4$f q$rs tu v", " $$% $$% $$% w$x~=$$% y$zA1 BC$DEFx$ v", " $$% $$% $$% G^z5H$$% 3I4$$ JKLMLNO v", " v", " P", " v", " P", " Q", " Q", "RRRRRSTRRRRRRRRRRTTTTTTRRRRRRSRSSSSSSSSUVVVWVX"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/trig_disabled.xpm0000644000175000017500000000354111754453701022426 0ustar miramira/* XPM */ static char *trig_disabled[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #475160", "8 c #5B6471", "9 c #6F7783", "0 c #848B95", "q c #999EA6", "w c #ADB1B8", "e c #C2C5CA", "r c #D6D8DB", "t c #EAEBED", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777009777777777777777777:", "7777777779ee977777777777yye777777777777777777:", "7777777770yy077777777777eeq777777777777777777:", "777777779wyyw00780089eq7009777qew890077777777:", "77777777eyyyyyy70yyeyye7yye77eyyyytyy77777777:", "77777777qryyree70yyyw007yye79yyt0eyyy77777777:", "7777777770yy07770yyw7777yye7wyy877tyy77777777:", "7777777770yy07770yy07777yye7eyy777eyy777777771", "7777777770yy07770yy07777yye7eyy777ryy77777777:", "7777777770yyq7770yy07777yye70yyw70yyy777777772", "7777777778yyyye70yy07777yye77tyyyyyyy777777772", "77777777770tyye70yy07777yye778rytqeyy777777772", "7777777777777777777777777777777777tyt777777772", "77777777777777777777777777777ww00ryyq777777774", "77777777777777777777777777777eyyyyyq7777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXXX%.XXXXXXXXX......XXXXXX%X%%%%%%%&&%-%-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/save_focus.xpm0000644000175000017500000000353611754453701021773 0ustar miramira/* XPM */ static char *save_focus[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #43608C", "8 c #587199", "9 c #6C83A5", "0 c #8295B2", "q c #96A6BF", "w c #ABB8CC", "e c #C0CAD9", "r c #D5DBE5", "t c #EAEDF2", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777778qeeeq8779weeeq8779007777009779wee077777:", "77777tyyyyy077eyyyyyy970yy9779yy070yyyyyr7777:", "77770yy878097709779tyr77tyw77eyy79yye78yyw777:", "77770yye00777777000ryy77wyy77yyw7wyy000ryt777:", "77777tyyyyy077wyyyyyyy779yy00yy97eyyyyyyyy7771", "7777770eeyyt79yyr00ryy777ryeeyr77eyy000000777:", "7777877770yy70yy078tyy777qyyyyq770yyq777807772", "77770yreeyyr78yytetyyy7777yyyy7777eyyrerye7772", "77779ryyytw8770tytqeyy7777eyye77777wtyyte07772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXXX%.XXXXXXXXX......XXXXXX%X%%%%%%%&&%-%-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/half_rate_selected.xpm0000644000175000017500000000226111754453701023425 0ustar miramira/* XPM */ static char * half_rate_selected[] = { "26 25 26 1", " c None", ". c #2F7868", "+ c #202D42", "@ c #8BB4AB", "# c #BAD2CD", "$ c #A2C3BB", "% c #D1E1DD", "& c #202E43", "* c #E7F0EE", "= c #74A59A", "- c #FFFFFF", "; c #5D9689", "> c #468779", ", c #C5D9D5", "' c #C8DBD7", ") c #C8DCD7", "! c #BED5D0", "~ c #212E44", "{ c #212F44", "] c #212F45", "^ c #223046", "/ c #223047", "( c #233148", "_ c #233249", ": c #24334A", "< c #24334B", ".........................+", ".........................+", ".........................+", ".........................+", ".....@#@.................+", ".....$%#.................+", "......##.................&", "......##.................&", "......##.................&", ".....#**#................&", ".....====....=--;.$-*>...&", "..............$-*=--;....&", "....,''))'!....#---=.....~", "...............;--*......{", ".....>$#$>.....%---@.....]", ".....=$=#*....$-%>--;....]", "........=-...=-->.@-*>...^", ".......;*#.............../", "......=-#................(", ".....;--##...............(", ".....>====..............._", "........................._", ".........................:", ".........................<", "........................._"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/mute_active.xpm0000644000175000017500000000502611754453701022137 0ustar miramira/* XPM */ static char * mute_active[] = { "46 25 85 1", " c #750924", ". c #500619", "+ c #79112B", "@ c #770D27", "# c #FFFFFF", "$ c #C1909C", "% c #C496A1", "& c #C598A3", "* c #F7F1F3", "= c #F3E9EB", "- c #B37887", "; c #801D36", "> c #D2AFB8", ", c #FAF5F6", "' c #B27685", ") c #964458", "! c #DBBEC5", "~ c #F8F2F4", "{ c #FBF7F8", "] c #DFC6CC", "^ c #98485C", "/ c #FBF8F9", "( c #F1E6E9", "_ c #F3EAEC", ": c #EEE1E4", "< c #F0E5E8", "[ c #F4EBED", "} c #933F54", "| c #E1CAD0", "1 c #F1E7EA", "2 c #98475B", "3 c #FDFBFC", "4 c #EFE2E5", "5 c #EDDEE2", "6 c #7A122C", "7 c #882B42", "8 c #ECDCE0", "9 c #B8808E", "0 c #DDC3CA", "a c #CFAAB3", "b c #760A25", "c c #D9BBC2", "d c #DBBFC6", "e c #C79BA6", "f c #770C27", "g c #C08F9B", "h c #F9F3F5", "i c #C1919D", "j c #7C162F", "k c #EEE0E4", "l c #E1C9CF", "m c #D0ABB4", "n c #A25A6C", "o c #DCC1C8", "p c #D8BAC1", "q c #780F29", "r c #7F1A33", "s c #A86576", "t c #D5B5BD", "u c #FEFEFE", "v c #E8D6DA", "w c #FCFAFB", "x c #E3CED3", "y c #954257", "z c #FCF9FA", "A c #F6EFF0", "B c #E4CFD4", "C c #ECDDE1", "D c #FEFDFD", "E c #86283F", "F c #A86475", "G c #E7D5D9", "H c #913B51", "I c #D4B2BA", "J c #F5EDEF", "K c #FDFCFC", "L c #DCC0C7", "M c #B47988", "N c #141C2A", "O c #16202E", "P c #141C29", "Q c #172130", "R c #17202F", "S c #182231", "T c #101621", " .", " .", " .", " .", " .", " .", " .", " ++@ .", " ##$ .", " ##$ .", " ##%&*=-;>,=' ##$ ##$ ###### )!~{]^ .", " ##/(_##:<[##} ##$ ##$ |##1|| 23#4:#3) .", " ##567##867##9 ##$ ##$ ##$ 0#abbc#d .", " ##e f##e b##g ##$ ##$ ##$ ,######h .", " ##$ ##$ ##$ ##i j##$ ##$ ,#k||||l .", " ##$ ##$ ##$ *#m n##$ 3#e o#pq rs .", " ##$ ##$ ##$ t#u!*##$ v#wx| yz#ABCD# .", " ##$ ##$ ##$ E]w4F##$ 2G3## HIJKJLM .", " .", " .", " .", " .", " .", " .", "NNNNNOPNNNNNNNNNNPPPPPPNNNNNNONOOOOOOOOQRRRSRT"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/reverse_disabled.xpm0000644000175000017500000000270711754453701023137 0ustar miramira/* XPM */ static char * reverse_disabled[] = { "36 25 28 1", " c None", ". c #1F2C40", "+ c #475160", "@ c #293A54", "# c #202D42", "$ c #1F2D41", "% c #1F2C41", "& c #283954", "* c #1F2B3F", "= c #999EA6", "- c #C2C5CA", "; c #ADB1B8", "> c #FFFFFF", ", c #D6D8DB", "' c #6F7783", ") c #5B6471", "! c #283953", "~ c #1E2B3F", "{ c #EAEBED", "] c #848B95", "^ c #293A55", "/ c #293B56", "( c #202E43", "_ c #2A3B56", ": c #2A3B57", "< c #212E44", "[ c #2A3C57", "} c #2A3C58", ".++++++++++++++++++++++++++++++++++@", "#++++++++++++++++++++++++++++++++++@", "$++++++++++++++++++++++++++++++++++@", "$++++++++++++++++++++++++++++++++++@", "%++++++++++++++++++++++++++++++++++@", ".++++++++++++++++++++++++++++++++++@", ".++++++++++++++++++++++++++++++++++&", ".++++++++++++++++++++++++++++++++++&", ".++++++++++++++++++++++++++++++++++&", "*+++++=-=;>>++=,>>,'+)--)++'--)++++!", "~+++++->>>>>+;>>-,>>'+{>;++;>{+++++!", "~+++++->>]+))>>'++=>,+=>{++{>=+++++!", "~+++++->,+++]>>>>>>>>+)>>''>>)+++++!", "~+++++->-+++]>>------++,>;;>,++++++!", "*+++++->-+++)>>]+++)]++]>{>>]++++++&", ".+++++->-++++;>>--,>-+++{>>{+++++++@", ".+++++->-+++++=,>>>-]+++;>>;+++++++@", "$++++++++++++++++++++++++++++++++++^", "#++++++++++++++++++++++++++++++++++^", "#++++++++++++++++++++++++++++++++++/", "(++++++++++++++++++++++++++++++++++_", "(++++++++++++++++++++++++++++++++++:", "<++++++++++++++++++++++++++++++++++[", "<++++++++++++++++++++++++++++++++++}", ".++++++++++++++++++++++++++++++++++@"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/load_selected.xpm0000644000175000017500000000354111754453701022421 0ustar miramira/* XPM */ static char *load_selected[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #2F7868", "8 c #468779", "9 c #5D9689", "0 c #74A59A", "q c #8BB4AB", "w c #A2C3BB", "e c #BAD2CD", "r c #D1E1DD", "t c #E7F0EE", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777900777777777777777777777777777700977777:", "777777eyy7777777777777777777777777777yye77777:", "777777eyy7777777777777777777777777777yye77777:", "777777eyy7778qeew97778qeeew977778weq7yye77777:", "777777eyy778tyyyyy0770yyyyyyw778tyyytyye77777:", "777777eyy77tyyq0tyy9790778eyy87wyye0tyye77777:", "777777eyy79yyw779yyw777900wyy07tyr778yye77777:", "777777eyy70yy0777yye70tyyyyyy07yye777yye777771", "777777eyy70yy0778yye7tytq0wyy07yye777yye77777:", "777777eyy77yyt87eyy07yye77eyy07eyy97eyye777772", "777777eyy770yyyyyye77ryyeryyy079yyyyyyye777772", "777777eyy7770ryytw7778ryywqyy0770tyr9yye777772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXXX%.XXXXXXXXX......XXXXXX%X%%%%%%%&&%-%-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/substitute_focus.xpm0000644000175000017500000000471011754453701023243 0ustar miramira/* XPM */ static char * substitute_focus[] = { "77 25 28 1", " c None", ". c #1E2B3F", "+ c #43608C", "@ c #293A54", "# c #202D42", "$ c #1F2D41", "% c #1F2C41", "& c #1F2C40", "* c #283954", "= c #8295B2", "- c #FFFFFF", "; c #C0CAD9", "> c #587199", ", c #6C83A5", "' c #1F2B3F", ") c #283953", "! c #ABB8CC", "~ c #96A6BF", "{ c #D5DBE5", "] c #EAEDF2", "^ c #293A55", "/ c #293B56", "( c #202E43", "_ c #2A3B56", ": c #2A3B57", "< c #212E44", "[ c #2A3C57", "} c #2A3C58", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*", "&+++++++++++++++++++=-;+++++++++++++>=,+++--++,=>+++++++++++>=,+++++++++++++*", "'+++++++++++++++++++=-;+++++++++++++=-;+++;;++;-=+++++++++++=-;+++++++++++++)", ".++++,!;;~>+;;++,;~+=-;,;!>++>~;;!,,{-];;+;;+~]-{;~,;~++~;,,{-];;++=;;~>++++)", ".+++,--;;-=+--++=-;+=-----]>+]-{;];=-----+--+;----;=-;++;-==-----+;-];-]>+++)", ".+++=-{+++>+--++=-;+=-]>+;-!+-->++>+=-;+++--++;-=++=-;++;-=+=-;++,-]++~-~+++)", ".+++>]--]!>+--++=-;+=-;++=-;+;---;,+=-;+++--++;-=++=-;++;-=+=-;++=------;+++)", "'+++++,=;-!+--++!-;+=-{++~-;++>=~-]+=-;+++--++;-=++=-;++]-=+=-;++=-{====,+++*", "&+++=;==;-!+{-{{--;+=--{;--,+{~=~-]+=--;~+--++;-];,>--;]--=+=--;~+]-!==;=+++@", "&+++,{---;>+,]-{!-;+=-{!-]=++;---{=++;--;+--++>]--=+~--!{-=++;--;+>;---{,+++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++^", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++^", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++:", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/scratch_normal.xpm0000644000175000017500000000314511754453701022631 0ustar miramira/* XPM */ static char * scratch_normal[] = { "46 25 22 1", " c None", ". c #374E72", "+ c #202D42", "@ c #202E43", "# c #637591", "$ c #7A89A1", "% c #BCC4D0", "& c #FFFFFF", "* c #E8EBEF", "= c #D2D7DF", "- c #A6B0C0", "; c #909CB0", "> c #4D6181", ", c #212E44", "' c #212F44", ") c #212F45", "! c #223046", "~ c #223047", "{ c #233148", "] c #233249", "^ c #24334A", "/ c #24334B", ".............................................+", ".............................................+", ".............................................+", ".............................................+", ".............................................+", ".............................................+", ".............................................@", ".....................................#$......@", "..........................#%#........%&......@", "..........................$&$........%&......@", "..#*&&=..-&&*..&==&$&&&*$$&&&&.$*&&#.%&-&&$..@", "..%&#.;.;&$.$..&&;;>#$$*&.$&$.>&%.>#.%&$.=&..@", "..$&&&=.%&.....&%..$&=%*&.$&$.$&$....%&..%&..,", "..>.>-&$-&>.>..&%..%&..=&.$&$.#&;..>.%&..%&..'", "..%=%*&>>**%*..&%..$&==*&.#&=%.%&%=$.%&..%&..)", "...$$$....$$#..$#...#$>#$..#$$..#$$..#$..#$..)", ".............................................!", ".............................................~", ".............................................{", ".............................................{", ".............................................]", ".............................................]", ".............................................^", "............................................./", ".............................................{"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/undo_normal.xpm0000644000175000017500000001736711754453701022162 0ustar miramira/* XPM */ static char *undo_normal[] = { /* columns rows colors chars-per-pixel */ "57 52 105 2", " c black", ". c #000101", "X c #010101", "o c #010102", "O c #010203", "+ c #020203", "@ c #020304", "# c #020305", "$ c #030406", "% c #040608", "& c #050609", "* c #05070A", "= c #06090D", "- c #070A0E", "; c #070A0F", ": c #080C11", "> c #090C12", ", c #090D12", "< c #090D13", "1 c #0A0E14", "2 c #0A0E15", "3 c #0A0F15", "4 c #0B1017", "5 c #0C1118", "6 c #0D131C", "7 c #0E141D", "8 c #0F151F", "9 c #111822", "0 c #121925", "q c #131B28", "w c #141C29", "e c #151E2C", "r c #161F2E", "t c #17202F", "y c #182232", "u c #182333", "i c #192333", "p c #192435", "a c #1B2739", "s c #1D293C", "d c #1E2B3F", "f c #1F2C40", "g c #1F2C41", "h c #202D42", "j c #202E43", "k c #212E44", "l c #212F44", "z c #212F45", "x c #223046", "c c #223047", "v c #223147", "b c #233148", "n c #233248", "m c #233249", "M c #24324A", "N c #24334A", "B c #24334B", "V c #24344C", "C c #25344C", "Z c #25354D", "A c #26354E", "S c #26364E", "D c #26364F", "F c #263650", "G c #273852", "H c #293A55", "J c #293B56", "K c #2A3B57", "L c #2B3D59", "P c #2B3D5A", "I c #2C3E5A", "U c #2C3E5B", "Y c #2D405D", "T c #2D405E", "R c #2E4160", "E c #2E4260", "W c #2F4362", "Q c #304463", "! c #304464", "~ c #314666", "^ c #324767", "/ c #324768", "( c #33486A", ") c #33496A", "_ c #344A6C", "` c #344A6D", "' c #354B6D", "] c #354B6E", "[ c #354C6E", "{ c #354C6F", "} c #364C6F", "| c #364C70", " . c #364D70", ".. c #364D71", "X. c #374D71", "o. c #374E72", "O. c #4D6181", "+. c #637591", "@. c #7A89A1", "#. c #909CB0", "$. c #A6B0C0", "%. c #BCC4D0", "&. c #D2D7DF", "*. c #E8EBEF", "=. c gray100", /* pixels */ " > w d B G L W _ o.o.o.o.o.v ", " - x L o.o.o.o.o.o.o.o.o.o.o.o.o.o.k ", " ; p Y o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.k ", " w J o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.v ", " @ t ! o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.v ", " e ! o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.v ", " w W o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.v ", " > U o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.v ", " p ] o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.v ", " ; J o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.v ", " e ] o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.m ", " D o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.v ", " * J o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.M ", " ; W o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.m ", " 5 ! o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.M ", " 8 } o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.M ", " 8 } o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.B ", " > ) o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.B ", " * Q o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.B ", " L o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.B ", " D o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.B ", " d o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.B ", " 8 o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.B ", " $ Q o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.D ", " v o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.B ", " 0 o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.D ", " * ! o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.D ", " M o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.B ", " 1 o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.B ", " D o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.D ", " > o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.M ", " D o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.M ", " 4 o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.=.=.%.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.M ", " D o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.=.=.%.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.M ", " ; o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.=.=.%.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.m ", " y o.o.o.o.o.#.%.%.o.o.o.#.%.%.o.o.+.%.%.+.$.=.=.&.O.o.o.o.O.$.=.=.&.O.=.=.%.o.o.o.+.%.=.=.=.%.+.o.o.o.o.o.m ", " U o.o.o.o.o.%.=.=.o.o.o.%.=.=.o.o.@.=.=.=.=.=.=.=.*.o.o.o.%.=.=.=.=.=.=.=.%.o.o.@.=.=.=.=.=.=.=.@.o.o.o.o.m ", " ; o.o.o.o.o.o.%.=.=.o.o.o.%.=.=.o.o.@.=.=.*.+.o.%.=.=.@.o.+.=.=.*.O.o.%.=.=.%.o.o.*.=.=.@.o.@.=.=.*.o.o.o.o.v ", " a o.o.o.o.o.o.%.=.=.o.o.o.%.=.=.o.o.@.=.=.#.o.o.@.=.=.@.o.%.=.=.#.o.o.O.=.=.%.o.+.=.=.&.o.o.o.&.=.=.+.o.o.o.m ", " W o.o.o.o.o.o.%.=.=.o.o.o.%.=.=.o.o.@.=.=.@.o.o.@.=.=.@.o.%.=.=.@.o.o.o.=.=.%.o.@.=.=.%.o.o.o.%.=.=.@.o.o.o.v ", " 1 o.o.o.o.o.o.o.%.=.=.o.o.o.%.=.=.o.o.@.=.=.@.o.o.@.=.=.@.o.%.=.=.@.o.o.o.=.=.%.o.@.=.=.%.o.o.o.%.=.=.@.o.o.o.m ", " t o.o.o.o.o.o.o.%.=.=.O.o.O.=.=.=.o.o.@.=.=.@.o.o.@.=.=.@.o.#.=.=.&.o.o.#.=.=.%.o.o.=.=.=.O.o.O.=.=.=.o.o.o.o.v ", " v o.o.o.o.o.o.o.#.=.=.*.%.*.=.=.=.o.o.@.=.=.@.o.o.@.=.=.@.o.O.*.=.=.&.%.=.=.=.%.o.o.$.=.=.*.%.*.=.=.$.o.o.o.o.v ", " U o.o.o.o.o.o.o.o.%.=.=.=.%.&.=.=.o.o.@.=.=.@.o.o.@.=.=.@.o.o.@.*.=.=.=.$.=.=.%.o.o.o.$.=.=.=.=.=.$.o.o.o.o.o.g ", "@ o.o.o.o.o.o.o.o.o.o.+.@.+.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.@.@.O.o.o.o.o.o.o.o.o.o.@.@.@.o.o.o.o.o.o.o.v ", "5 o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.v ", "0 o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.g ", "y o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.g ", "g o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.g ", "k o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.g ", "k o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.g ", "v o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.} | ] } } } ] ] ` ` ` ` _ ` ` ` ] ] ) ] ] ] } ' ' } } ' ' ..} } o.' o.o.' ....g " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/undo_active.xpm0000644000175000017500000001012611754453701022127 0ustar miramira/* XPM */ static char *undo_active[] = { /* columns rows colors chars-per-pixel */ "57 52 60 1", " c black", ". c #000101", "X c #010101", "o c #010102", "O c #010202", "+ c #020204", "@ c #020304", "# c #020305", "$ c #030405", "% c #030406", "& c #030507", "* c #050609", "= c #06080C", "- c #070A0E", "; c #080B10", ": c #080C11", "> c #090C12", ", c #090D13", "< c #0E141E", "1 c #0F151E", "2 c #101721", "3 c #101722", "4 c #111924", "5 c #121925", "6 c #131B27", "7 c #141C2A", "8 c #151D2B", "9 c #151E2C", "0 c #161F2D", "q c #16202E", "w c #172130", "e c #192333", "r c #1B2739", "t c #1C283A", "y c #1C283B", "u c #1E2A3D", "i c #1E2B3F", "p c #202D42", "a c #2C2C43", "s c #2C2D43", "d c #342B44", "f c #3B2840", "g c #3B2841", "h c #501F3A", "j c #5D1934", "k c #49223C", "l c #49223D", "z c #6F0D28", "x c #631530", "c c #750924", "v c #422540", "b c #84243C", "n c #933F54", "m c #A35B6D", "M c #B27685", "N c #C1919D", "B c #D1ADB6", "V c #E0C8CE", "C c #EFE3E6", "Z c gray100", /* pixels */ " :5rgzccccccccc", " ;qgccccccccccccccc", " -yccccccccccccccccccc", " 5hccccccccccccccccccccc", " 7cccccccccccccccccccccccc", " 5cccccccccccccccccccccccccc", " -xccccccccccccccccccccccccccc", " #iccccccccccccccccccccccccccccc", " 2ccccccccccccccccccccccccccccccc", " #scccccccccccccccccccccccccccccccc", " :cccccccccccccccccccccccccccccccccc", " 5ccccccccccccccccccccccccccccccccccc", " pcccccccccccccccccccccccccccccccccccc", " sccccccccccccccccccccccccccccccccccccc", " %vcccccccccccccccccccccccccccccccccccccc", " %jccccccccccccccccccccccccccccccccccccccc", " #jcccccccccccccccccccccccccccccccccccccccc", " lccccccccccccccccccccccccccccccccccccccccc", " scccccccccccccccccccccccccccccccccccccccccc", " iccccccccccccccccccccccccccccccccccccccccccc", " 6cccccccccccccccccccccccccccccccccccccccccccc", " :ccccccccccccccccccccccccccccccccccccccccccccc", " #cccccccccccccccccccccccccccccccccccccccccccccc", " scccccccccccccccccccccccccccccccccccccccccccccc", " 5ccccccccccccccccccccccccccccccccccccccccccccccc", " *cccccccccccccccccccccccccccccccccccccccccccccccc", " dcccccccccccccccccccccccccccccccccccccccccccccccc", " 2ccccccccccccccccccccccccccccccccccccccccccccccccc", " #cccccccccccccccccccccccccccccccccccccccccccccccccc", " ecccccccccccccccccccccccccccccccccccccccccccccccccc", " %ccccccccccccccccccccccccccccccccccccccccccccccccccc", " yccccccccccccccccccccccccccccccccccccccccccccccccccc", " cccccccccccccccccccccccccccccccccZZBcccccccccccccccc", " ecccccccccccccccccccccccccccccccccZZBcccccccccccccccc", " ccccccccccccccccccccccccccccccccccZZBcccccccccccccccc", " 1cccccMBBcccMBBccnBBnNZZVbcccbNZZVbZZBcccnBZZZBncccccc", " fcccccBZZcccBZZccmZZZZZZZCcccBZZZZZZZBccmZZZZZZZmccccc", " %ccccccBZZcccBZZccmZZCncBZZmcnZZCbcBZZBccCZZmcmZZCccccc", " 7ccccccBZZcccBZZccmZZMccmZZmcBZZMccbZZBcnZZVcccVZZncccc", " lccccccBZZcccBZZccmZZmccmZZmcBZZmcccZZBcmZZBcccBZZmcccc", " %cccccccBZZcccBZZccmZZmccmZZmcBZZmcccZZBcmZZBcccBZZmcccc", " 2cccccccBZZbcbZZZccmZZmccmZZmcMZZVccMZZBccZZZbcbZZZccccc", " rcccccccMZZCBCZZZccmZZmccmZZmcbCZZVBZZZBccNZZCBCZZNccccc", " lccccccccBZZZBVZZccmZZmccmZZmccmCZZZNZZBcccNZZZZZNcccccc", " ccccccccccnmnccccccccccccccccccccmmbcccccccccmmmcccccccc", "%cccccccccccccccccccccccccccccccccccccccccccccccccccccccc", ":cccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "1cccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "7cccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "qcccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "0cccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "7cccccccccccccccccccccccccccccccccccccccccccccccccccccccc" }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/overdub_selected.xpm0000644000175000017500000000747111754453701023156 0ustar miramira/* XPM */ static char *overdub_selected[] = { /* columns rows colors chars-per-pixel */ "96 33 32 1", " c #24334A", ". c #24334B", "X c #24344C", "o c #25344C", "O c #25354D", "+ c #26354E", "@ c #26364E", "# c #26364F", "$ c #263650", "% c #273750", "& c #273751", "* c #273851", "= c #273852", "- c #283852", "; c #283953", ": c #283954", "> c #293A54", ", c #293A55", "< c #293B56", "1 c #2A3B56", "2 c #2A3B57", "3 c #2A3C57", "4 c #2F7868", "5 c #468779", "6 c #5D9689", "7 c #74A59A", "8 c #8BB4AB", "9 c #A2C3BB", "0 c #BAD2CD", "q c #D1E1DD", "w c #E7F0EE", "e c gray100", /* pixels */ "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "o4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#44444444444444444444444444444444444444444444444444444444447ee744444444444440ee4444444444444444=", " 44444444444444444444444444444444444444444444444444444444447ee744444444444440ee4444444444444444=", "o44444444444444444444444444444444444444444444444444444444447ee744444444444440ee4444444444444444=", "o444444444444460eee064470064448005459weeq644460069we746qee97ee744008444008440ee5qee944444444444=", "o4444444444447eeeeeee746ee9444wew45weeeeee7447eeweee75weeeeeee744ee0444ee0440eeeeeee04444444444=", " 444444444444wee747eew44qew447ee849ee845qew447eee74459ee045wee744ee0444ee0440ee045wee6444444444=", " 444444444446eeq444qee648ee740ee54wew7779ee647ee94444eee5448ee744ee0444ee0440ee5448ee9444444444=", " 444444444447ee04440ee744ee04ee044eeeeeeeee747ee74444eee4447ee744ee0444ee0440ee4447ee0444444444=", " 444444444447ee04440ee7449ee8ee644eeq777777547ee74444eee4447ee744ee0444ee0440ee4447ee0444444444=", "X444444444444eee545eee4446eeeew4440ee544448447ee74444qee844qee744eeq448ee0440ee844qee7444444444=", " 4444444444449eew0wee94444qeee84446eee00qee447ee744447eee0qeee744qeeq0eee0440eee0qeew4444444444=", "X44444444444449eeeee9444448eee544447weeeee9447ee7444449eeew0ee7445weee8ee0440ee7eeew644444444442", " 4444444444444447774444444444444444446776444444444444445774444444447754444444444477444444444444=", "X4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", "X44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442" }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/once_disabled.xpm0000644000175000017500000000354111754453701022405 0ustar miramira/* XPM */ static char *once_disabled[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #475160", "8 c #5B6471", "9 c #6F7783", "0 c #848B95", "q c #999EA6", "w c #ADB1B8", "e c #C2C5CA", "r c #D6D8DB", "t c #EAEBED", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "7777777qtyyr9777ee0wyyw7778wtyyr777qryyr97777:", "777777eyyrryy977yyyyyyy077tyyrey77wyyeryy9777:", "777778yyw77tyr77yyt88tye7qyyq77878yy977qyr777:", "777770yy077eyy77yy077eye7eyy777770yyyyyyyy777:", "777770yy077eyy77yy077eye7eyy777770yyeeeeee7771", "777778yyw77tyr77yy077eye7qyyq77878yy077780777:", "777777eyyeryy977yy077eye77tyyeey77wyyeerye7772", "7777777qtyyr9777yy077eye778wtyyr777qryyye07772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXX%.XXXXXXXXXX......XXXXXX%X%%%%%%%%*&&&-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/solo_active.xpm0000644000175000017500000000435211754453701022142 0ustar miramira/* XPM */ static char * solo_active[] = { "46 25 65 1", " c #770978", ". c #4F0650", "+ c #FFFFFF", "@ c #C290C2", "# c #8C308D", "$ c #D5B4D6", "% c #F5EDF5", "& c #FDFCFD", "* c #F8F1F8", "= c #E5D0E5", "- c #BC85BC", "; c #954096", "> c #D8B9D8", ", c #F6F0F7", "' c #FCFAFC", ") c #EDDEED", "! c #C08CC0", "~ c #7C137D", "{ c #E8D5E8", "] c #FEFDFE", "^ c #E6D3E7", "/ c #EAD8EA", "( c #E6D2E6", "_ c #984599", ": c #F5EEF5", "< c #E7D4E7", "[ c #FEFEFE", "} c #DEC4DF", "| c #780B79", "1 c #FCF9FC", "2 c #D1ABD1", "3 c #7D157E", "4 c #DDC2DE", "5 c #F1E5F1", "6 c #7F1780", "7 c #AE6DAF", "8 c #A052A0", "9 c #D4B1D4", "0 c #DFC5DF", "a c #BF8BBF", "b c #842085", "c c #FAF5FA", "d c #CA9FCA", "e c #7A0F7B", "f c #AB68AC", "g c #D0A9D0", "h c #E1C8E1", "i c #9C4C9D", "j c #7A0E7B", "k c #CEA7CF", "l c #E3CDE3", "m c #FDFBFD", "n c #C89CC8", "o c #F9F4F9", "p c #F3EAF3", "q c #882788", "r c #D9BAD9", "s c #F7F1F7", "t c #141C2A", "u c #16202E", "v c #141C29", "w c #172130", "x c #17202F", "y c #182231", "z c #101621", " .", " .", " .", " .", " .", " .", " .", " ++@ .", " ++@ .", " ++@ .", " #$%&*=- ;>,')!~ ++@ ;>,')!~ .", " {+]^/&( _'+:<[+}| ++@ _'+:<[+}| .", " 1+2 3; 4+56 7++8 ++@ 4+56 7++8 .", " 9++%0ab c+d 6++- ++@ c+d 6++- .", " efg^[+h c+d 6++- ++@ c+d 6++- .", " ij k+' 4+56 7++8 ++@ 4+56 7++8 .", " +c^{[+l _m+:^[+}| ++@ _m+:^[+}| .", " n(o]p2q ;rs')!~ ++@ ;rs')!~ .", " .", " .", " .", " .", " .", " .", "tttttuvttttttttttvvvvvvttttttutuuuuuuuuwxxxyxz"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/scratch_disabled.xpm0000644000175000017500000000314711754453701023112 0ustar miramira/* XPM */ static char * scratch_disabled[] = { "46 25 22 1", " c None", ". c #475160", "+ c #202D42", "@ c #202E43", "# c #6F7783", "$ c #848B95", "% c #C2C5CA", "& c #FFFFFF", "* c #EAEBED", "= c #D6D8DB", "- c #ADB1B8", "; c #999EA6", "> c #5B6471", ", c #212E44", "' c #212F44", ") c #212F45", "! c #223046", "~ c #223047", "{ c #233148", "] c #233249", "^ c #24334A", "/ c #24334B", ".............................................+", ".............................................+", ".............................................+", ".............................................+", ".............................................+", ".............................................+", ".............................................@", ".....................................#$......@", "..........................#%#........%&......@", "..........................$&$........%&......@", "..#*&&=..-&&*..&==&$&&&*$$&&&&.$*&&#.%&-&&$..@", "..%&#.;.;&$.$..&&;;>#$$*&.$&$.>&%.>#.%&$.=&..@", "..$&&&=.%&.....&%..$&=%*&.$&$.$&$....%&..%&..,", "..>.>-&$-&>.>..&%..%&..=&.$&$.#&;..>.%&..%&..'", "..%=%*&>>**%*..&%..$&==*&.#&=%.%&%=$.%&..%&..)", "...$$$....$$#..$#...#$>#$..#$$..#$$..#$..#$..)", ".............................................!", ".............................................~", ".............................................{", ".............................................{", ".............................................]", ".............................................]", ".............................................^", "............................................./", ".............................................]"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/tap_tempo_disabled.xpm0000644000175000017500000000132011754453701023442 0ustar miramira/* XPM */ static char *tap_tempo_disabled[] = { /* columns rows colors chars-per-pixel */ "22 22 2 1", " c #475160", ". c gray100", /* pixels */ " ", " ", " ", " ", " ", " ", " ", " .. ", " .. ", " ..... ..... ..... ", " .. .. .. .. ", " .. ..... .. .. ", " .. .. .. .. .. ", " .... ...... ..... ", " .. ", " .. ", " ", " ", " ", " ", " ", " " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/reverse_active.xpm0000644000175000017500000000234411754453701022640 0ustar miramira/* XPM */ static char * reverse_active[] = { "36 25 13 1", " c None", ". c #4B0719", "+ c #750924", "@ c #4A0719", "# c #B27685", "$ c #D1ADB6", "% c #C1919D", "& c #FFFFFF", "* c #E0C8CE", "= c #933F54", "- c #84243C", "; c #EFE3E6", "> c #A35B6D", ".++++++++++++++++++++++++++++++++++@", ".++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++.", ".+++++#$#%&&++#*&&*=+-$$-++=$$-++++.", ".+++++$&&&&&+%&&$*&&=+;&%++%&;+++++.", ".+++++$&&>+--&&=++#&*+#&;++;&#+++++.", ".+++++$&*+++>&&&&&&&&+-&&==&&-+++++.", ".+++++$&$+++>&&$$$$$$++*&%%&*++++++.", ".+++++$&$+++-&&>+++->++>&;&&>++++++.", ".+++++$&$++++%&&$$*&$+++;&&;+++++++.", ".+++++$&$+++++#*&&&$>+++%&&%+++++++.", ".++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/scratch_selected.xpm0000644000175000017500000000314711754453701023133 0ustar miramira/* XPM */ static char * scratch_selected[] = { "46 25 22 1", " c None", ". c #2F7868", "+ c #202D42", "@ c #202E43", "# c #5D9689", "$ c #74A59A", "% c #BAD2CD", "& c #FFFFFF", "* c #E7F0EE", "= c #D1E1DD", "- c #A2C3BB", "; c #8BB4AB", "> c #468779", ", c #212E44", "' c #212F44", ") c #212F45", "! c #223046", "~ c #223047", "{ c #233148", "] c #233249", "^ c #24334A", "/ c #24334B", ".............................................+", ".............................................+", ".............................................+", ".............................................+", ".............................................+", ".............................................+", ".............................................@", ".....................................#$......@", "..........................#%#........%&......@", "..........................$&$........%&......@", "..#*&&=..-&&*..&==&$&&&*$$&&&&.$*&&#.%&-&&$..@", "..%&#.;.;&$.$..&&;;>#$$*&.$&$.>&%.>#.%&$.=&..@", "..$&&&=.%&.....&%..$&=%*&.$&$.$&$....%&..%&..,", "..>.>-&$-&>.>..&%..%&..=&.$&$.#&;..>.%&..%&..'", "..%=%*&>>**%*..&%..$&==*&.#&=%.%&%=$.%&..%&..)", "...$$$....$$#..$#...#$>#$..#$$..#$$..#$..#$..)", ".............................................!", ".............................................~", ".............................................{", ".............................................{", ".............................................]", ".............................................]", ".............................................^", "............................................./", ".............................................]"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/pause_normal.xpm0000644000175000017500000001031311754453701022312 0ustar miramira/* XPM */ static char * pause_normal[] = { "46 25 115 2", " c #374E72", ". c #202D42", "+ c #202E43", "@ c #FFFFFF", "# c #99A5B7", "$ c #E7EAEE", "% c #F9F9FB", "& c #B8C0CD", "* c #3D5476", "= c #495E7F", "- c #D2D7DF", "; c #F2F3F6", "> c #FDFEFE", ", c #F1F3F5", "' c #BCC4D0", ") c #4A5F7F", "! c #5D6F8D", "~ c #6C7D97", "{ c #D6DBE2", "] c #F8F9FA", "^ c #FBFCFC", "/ c #E4E7EC", "( c #AEB8C6", "_ c #384F73", ": c #909DB1", "< c #E9ECF0", "[ c #9AA5B8", "} c #394F73", "| c #EEF0F3", "1 c #AFB8C7", "2 c #EFF0F3", "3 c #A2ACBD", "4 c #526685", "5 c #D1D6DE", "6 c #ADB6C5", "7 c #DEE2E8", "8 c #C3CAD4", "9 c #EBEEF1", "0 c #CED3DC", "a c #ACB5C4", "b c #CAD0DA", "c c #DCE0E6", "d c #939FB3", "e c #ADB7C5", "f c #E0E4E9", "g c #7E8DA4", "h c #808FA5", "i c #6F7F99", "j c #9BA6B8", "k c #A6B1C1", "l c #BBC3CF", "m c #F6F7F8", "n c #F3F5F7", "o c #A4AEBF", "p c #647692", "q c #405679", "r c #3A5174", "s c #E6E9ED", "t c #BCC3CF", "u c #A8B2C2", "v c #BDC5D1", "w c #617390", "x c #627490", "y c #FCFCFD", "z c #60728F", "A c #7F8EA5", "B c #EDEFF2", "C c #98A4B7", "D c #FEFEFE", "E c #223046", "F c #EAECF0", "G c #8492A8", "H c #395074", "I c #70819A", "J c #697A95", "K c #8593A9", "L c #3C5376", "M c #506484", "N c #96A2B5", "O c #F6F7F9", "P c #ECEEF2", "Q c #A5AFBF", "R c #D5DAE2", "S c #B1BAC8", "T c #D4D9E1", "U c #A1ACBD", "V c #C2C9D4", "W c #ABB5C4", "X c #E8EBEF", "Y c #F4F5F7", "Z c #B5BECB", "` c #B0B9C7", " . c #223047", ".. c #8C9AAE", "+. c #BAC2CE", "@. c #3F5578", "#. c #667893", "$. c #E0E3E9", "%. c #5D708D", "&. c #E3E6EB", "*. c #BFC7D2", "=. c #FDFDFD", "-. c #8997AC", ";. c #FAFBFC", ">. c #DBDFE6", ",. c #A3AEBE", "'. c #233249", "). c #24334A", "!. c #141C2A", "~. c #16202E", "{. c #141C29", "]. c #172130", "^. c #17202F", "/. c #182231", "(. c #101621", " . ", " . ", " . ", " + ", " + ", " + ", " + ", " + ", " + ", " + ", " @ @ # $ % & * = - ; > , ' ) @ @ ! ! @ @ ~ { ] ^ / ( _ : / ^ < [ } + ", " @ @ | 1 2 @ 3 4 5 1 6 7 @ 8 @ @ ! ! @ @ 9 @ 0 a b c d @ / e f @ # + ", " @ @ g h @ < _ i j k l @ m @ @ ! ! @ @ n @ o p q r s @ t u v @ < + ", " @ @ w x @ y ( @ @ @ @ @ @ @ @ ! z @ @ A B @ @ ^ C y @ @ @ @ @ D E ", " @ @ g h @ F % @ G H I @ @ ^ @ J K @ @ L _ M N @ O s @ I 4 + ", " @ @ P 1 2 @ Q / @ R S P @ @ T @ { U , @ @ n V W - @ X : @ Y Z ` R D .", " @ @ ..f % +.@. #.$.y $...@ @ %.c y &.# @ @ *.< =.] - p -.c ;.% >.,. .", " @ @ ! .", " @ @ ! .", " @ @ ! '.", " .", " '.", " ).", " ).", "!.!.!.!.!.~.{.!.!.!.!.!.!.!.!.!.!.{.{.{.{.{.{.!.!.!.!.!.!.~.!.~.~.~.~.~.~.~.~.].^.^.^./.^.(."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/replace_active.xpm0000644000175000017500000000434511754453701022603 0ustar miramira/* XPM */ static char * replace_active[] = { "77 25 13 1", " c None", ". c #4B0719", "+ c #750924", "@ c #4A0719", "# c #933F54", "$ c #D1ADB6", "% c #A35B6D", "& c #FFFFFF", "* c #B27685", "= c #C1919D", "- c #E0C8CE", "; c #EFE3E6", "> c #84243C", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++++#$$++++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++++%&&++++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++++++++++++%&&++++++++++++++++++++++++++++++++++++.", ".++++++++++*$*=&&++*-&&-#++#$$#-&;%++%&&++*;&&&$>+++#$&&&*++>=;&&=>+++++++++.", ".++++++++++$&&&&&+=&&$-&&#+%&&&$;&&%+%&&++$;$$;&;++#&&&$-$++;&;$;&;+++++++++.", ".++++++++++$&&%+>>&&#++*&-+%&&%+>;&-+%&&++>+++>&&%+-&&>++>+*&;+++-&*++++++++.", ".++++++++++$&-+++%&&&&&&&&+%&&+++$&&+%&&++%-&&&&&%+&&$+++++$&&&&&&&$++++++++.", ".++++++++++$&$+++%&&$$$$$$+%&&+++$&&+%&&+>&&=%%&&%+&&$+++++$&;$$$$$*++++++++.", ".++++++++++$&$+++>&&%+++>%+%&&%+>;&-+%&&+%&&++%&&%+-&&>++>+*&;>+++##++++++++.", ".++++++++++$&$++++=&&$$-&$+%&&&$;&&%+%&&+>&&-$&&&%+#&&;$-$++;&;$$;&%++++++++.", ".++++++++++$&$+++++*-&&&$%+%&&#-&;%++%&&++%;&-%&&%++#$&&&*++>=;&&;$>++++++++.", ".++++++++++++++++++++++++++%&&++++++++++++++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++%&&++++++++++++++++++++++++++++++++++++++++++++++.", ".++++++++++++++++++++++++++%&&++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/undo_disabled.xpm0000644000175000017500000001721011754453701022424 0ustar miramira/* XPM */ static char *undo_disabled[] = { /* columns rows colors chars-per-pixel */ "57 52 98 2", " c black", ". c #000101", "X c #010101", "o c #010102", "O c #010203", "+ c #020203", "@ c #020304", "# c #020305", "$ c #030406", "% c #040608", "& c #050609", "* c #05070A", "= c #06090D", "- c #070A0E", "; c #070A0F", ": c #080C11", "> c #090C12", ", c #090D12", "< c #090D13", "1 c #0A0E14", "2 c #0A0E15", "3 c #0A0F15", "4 c #0B1017", "5 c #0C1118", "6 c #0D131C", "7 c #0E141D", "8 c #0F151F", "9 c #111822", "0 c #121925", "q c #131B28", "w c #141C29", "e c #151E2C", "r c #161F2E", "t c #17202F", "y c #182232", "u c #182333", "i c #192333", "p c #192435", "a c #1B2739", "s c #1D293C", "d c #1E2B3F", "f c #1F2C40", "g c #1F2C41", "h c #202D42", "j c #202E43", "k c #212E44", "l c #212F44", "z c #212F45", "x c #223046", "c c #223047", "v c #223147", "b c #233148", "n c #233248", "m c #233249", "M c #24324A", "N c #24334A", "B c #24334B", "V c #24344C", "C c #25344C", "Z c #25354D", "A c #26354E", "S c #26364E", "D c #26364F", "F c #263650", "G c #273852", "H c #293A55", "J c #293B56", "K c #2A3B57", "L c #2B3D59", "P c #2B3D5A", "I c #2C3E5A", "U c #2C3E5B", "Y c #364357", "T c #314159", "R c #30405A", "E c #3B4554", "W c #3E4653", "Q c #3F4754", "! c #404855", "~ c #404957", "^ c #414A58", "/ c #424B59", "( c #444D5B", ") c #454E5C", "_ c #454F5C", "` c #454F5E", "' c #464F5D", "] c #46505F", "[ c #475160", "{ c #5B6471", "} c #6F7783", "| c #848B95", " . c #999EA6", ".. c #ADB1B8", "X. c #C2C5CA", "o. c #D6D8DB", "O. c #EAEBED", "+. c gray100", /* pixels */ " > w f B G I E / [ [ [ [ [ z ", " - x I [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", " - p T [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", " w L [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", " @ t ~ ] ] [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " e Q [ [ ] ] [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", " w E [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", " > U [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", " p _ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", " ; J [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " e _ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " D [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", " * J [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " ; Y [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " 5 ~ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " 8 _ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " 7 _ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " > ^ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " * Q [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " U [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " D [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " d [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " 8 ] [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ ] ] Z ", " $ Q ] [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ ] Z ", " z [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ D ", " 9 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " * ^ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ D ", " M [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " 1 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ D ", " D [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ V ", " 1 ] ] [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " D [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " 4 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ +.+.X.[ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " D [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ +.+.X.[ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " - [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ +.+.X.[ [ [ [ [ [ [ [ [ [ [ [ [ [ [ M ", " i [ [ [ [ [ .X.X.[ [ [ .X.X.[ [ } X.X.} ..+.+.o.{ [ [ [ { ..+.+.o.{ +.+.X.[ [ [ } X.+.+.+.X.} [ [ [ [ [ M ", " U [ [ [ [ [ X.+.+.[ [ [ X.+.+.[ [ | +.+.+.+.+.+.+.O.[ [ [ X.+.+.+.+.+.+.+.X.[ [ | +.+.+.+.+.+.+.| [ [ [ [ z ", " > [ [ [ [ [ [ X.+.+.[ [ [ X.+.+.[ [ | +.+.O.} [ X.+.+.| [ } +.+.O.{ [ X.+.+.X.[ [ O.+.+.| [ | +.+.O.[ [ [ [ M ", " a [ [ [ [ [ [ X.+.+.[ [ [ X.+.+.[ [ | +.+. .[ [ | +.+.| [ X.+.+. .[ [ { +.+.X.[ } +.+.o.[ [ [ o.+.+.} [ [ [ z ", " Y [ [ [ [ [ [ X.+.+.[ [ [ X.+.+.[ [ | +.+.| [ [ | +.+.| [ X.+.+.| [ [ [ +.+.X.[ | +.+.X.[ [ [ X.+.+.| [ [ [ M ", " 1 [ [ [ [ [ [ [ X.+.+.[ [ [ X.+.+.[ [ | +.+.| [ [ | +.+.| [ X.+.+.| [ [ [ +.+.X.[ | +.+.X.[ [ [ X.+.+.| [ [ [ c ", " t [ [ [ [ [ [ [ X.+.+.{ [ { +.+.+.[ [ | +.+.| [ [ | +.+.| [ .+.+.o.[ [ .+.+.X.[ [ +.+.+.{ [ { +.+.+.[ [ [ [ c ", " z [ [ [ [ [ [ [ .+.+.O.X.O.+.+.+.[ [ | +.+.| [ [ | +.+.| [ { O.+.+.o.X.+.+.+.X.[ [ ..+.+.O.X.O.+.+...[ [ [ [ k ", " T [ [ [ [ [ [ [ [ X.+.+.+.X.o.+.+.[ [ | +.+.| [ [ | +.+.| [ [ | O.+.+.+...+.+.X.[ [ [ ..+.+.+.+.+...[ [ [ [ [ k ", "@ [ [ [ [ [ [ [ [ [ [ } | } [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ | | { [ [ [ [ [ [ [ [ [ | | | [ [ [ [ [ [ [ c ", "5 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ k ", "0 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ k ", "i [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ k ", "d [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ h ", "k [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ h ", "k [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ g ", "z [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ ] _ _ _ _ _ _ _ ( _ ( ( ( ( ^ _ _ _ ) ) ) ) ) _ _ _ _ [ ) _ [ [ ` [ [ ` [ ` g " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/replace_disabled.xpm0000644000175000017500000000471011754453701023073 0ustar miramira/* XPM */ static char * replace_disabled[] = { "77 25 28 1", " c None", ". c #1F2C40", "+ c #475160", "@ c #293A54", "# c #202D42", "$ c #1F2D41", "% c #1F2C41", "& c #6F7783", "* c #C2C5CA", "= c #283954", "- c #848B95", "; c #FFFFFF", "> c #1F2B3F", ", c #999EA6", "' c #ADB1B8", ") c #D6D8DB", "! c #EAEBED", "~ c #5B6471", "{ c #283953", "] c #1E2B3F", "^ c #293A55", "/ c #293B56", "( c #202E43", "_ c #2A3B56", ": c #2A3B57", "< c #212E44", "[ c #2A3C57", "} c #2A3C58", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", ".++++++++++++++++++++++++++++++++++++&**++++++++++++++++++++++++++++++++++++=", ".++++++++++++++++++++++++++++++++++++-;;++++++++++++++++++++++++++++++++++++=", ".++++++++++++++++++++++++++++++++++++-;;++++++++++++++++++++++++++++++++++++=", ">++++++++++,*,';;++,);;)&++&**&);!-++-;;++,!;;;*~+++&*;;;,++~'!;;'~+++++++++{", "]++++++++++*;;;;;+';;*);;&+-;;;*!;;-+-;;++*!**!;!++&;;;*)*++!;!*!;!+++++++++{", "]++++++++++*;;-+~~;;&++,;)+-;;-+~!;)+-;;++~+++~;;-+);;~++~+,;!+++);,++++++++{", "]++++++++++*;)+++-;;;;;;;;+-;;+++*;;+-;;++-);;;;;-+;;*+++++*;;;;;;;*++++++++{", "]++++++++++*;*+++-;;******+-;;+++*;;+-;;+~;;'--;;-+;;*+++++*;!*****,++++++++{", ">++++++++++*;*+++~;;-+++~-+-;;-+~!;)+-;;+-;;++-;;-+);;~++~+,;!~+++&&++++++++=", ".++++++++++*;*++++';;**);*+-;;;*!;;-+-;;+~;;)*;;;-+&;;!*)*++!;!**!;-++++++++@", ".++++++++++*;*+++++,);;;*-+-;;&);!-++-;;++-!;)-;;-++&*;;;,++~'!;;!*~++++++++@", "$++++++++++++++++++++++++++-;;++++++++++++++++++++++++++++++++++++++++++++++^", "#++++++++++++++++++++++++++-;;++++++++++++++++++++++++++++++++++++++++++++++^", "#++++++++++++++++++++++++++-;;++++++++++++++++++++++++++++++++++++++++++++++/", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++:", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/double_rate_active.xpm0000644000175000017500000000172011754453701023447 0ustar miramira/* XPM */ static char * double_rate_active[] = { "26 25 11 1", " c None", ". c #750924", "+ c #933F54", "@ c #B27685", "# c #D1ADB6", "$ c #C1919D", "% c #FFFFFF", "& c #A35B6D", "* c #E0C8CE", "= c #84243C", "- c #EFE3E6", "..........................", "..........................", "..........................", "..........................", "..........................", "..........................", "..........................", ".....+@##$+...............", ".....%%%%%%&..............", ".....*&.=#%-..............", ".........&%%.&%%+.$%-=....", ".........#%*..$%-&%%+.....", "........#%-=...#%%%&......", "......=*%-=....+%%-.......", ".....=-%*=.....*%%%@......", ".....-%%####..$%*=%%+.....", ".....%%%%%%%.&%%=.@%-=....", "..........................", "..........................", "..........................", "..........................", "..........................", "..........................", "..........................", ".........................."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/1x_rate_focus.xpm0000644000175000017500000000216211754453701022372 0ustar miramira/* XPM */ static char * onex_rate_focus[] = { "26 25 22 1", " c None", ". c #43608C", "+ c #202D42", "@ c #202E43", "# c #6C83A5", "$ c #8295B2", "% c #C0CAD9", "& c #FFFFFF", "* c #96A6BF", "= c #ABB8CC", "- c #EAEDF2", "; c #587199", "> c #212E44", ", c #212F44", "' c #D5DBE5", ") c #212F45", "! c #223046", "~ c #223047", "{ c #233148", "] c #233249", "^ c #24334A", "/ c #24334B", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................@", "......#$$$...............@", ".....%&&&&...............@", ".....*==&&...............@", ".......$&&...$&&#.=&-;...@", ".......$&&....=&-$&&#....@", ".......$&&.....%&&&$.....>", ".......$&&.....#&&-......,", ".......$&&.....'&&&*.....)", ".....#%'&&%%..=&';&&#....)", ".....$&&&&&&.$&&;.*&-;...!", ".........................~", ".........................{", ".........................{", ".........................]", ".........................]", ".........................^", "........................./", ".........................{"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/multiply_active.xpm0000644000175000017500000000675611754453701023057 0ustar miramira/* XPM */ static char *multiply_active[] = { /* columns rows colors chars-per-pixel */ "96 33 10 1", " c #750924", ". c #84243C", "X c #933F54", "o c #A35B6D", "O c #B27685", "+ c #C1919D", "@ c #D1ADB6", "# c #E0C8CE", "$ c #EFE3E6", "% c gray100", /* pixels */ " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " @%% ooX @%% %%@ ", " @%% %%@ @%% %%@ ", " @%% %%@ Xoo %%@ ", " O@@X#%$O +$%#. @@O @@O @%% X@%%$@@O O@@ X@@X+%%#. %%@ o@@X O@@. ", " @%%%%%%%#%%%%$ %%@ %%@ @%% o%%%%%%@ @%% o%%%%%%%$. %%@ .%%+ $%$ ", " @%%@ o%%%o @%%o %%@ %%@ @%% .o%%#ooX @%% o%%$. @%%+ %%@ #%% X%%O ", " @%%. %%# o%%o %%@ %%@ @%% %%@ @%% o%%O .%%$ %%@ X%%O +%%. ", " @%% %%@ o%%o %%@ %%@ @%% %%@ @%% o%%o %%% %%@ $%# $%@ ", " @%% %%@ o%%o %%@ %%@ @%% %%@ @%% o%%o %%% %%@ O%%O%%X ", " @%% %%@ o%%o %%# O%%@ @%% %%# @%% o%%# O%%@ %%@ $%$%$ ", " @%% %%@ o%%o #%%#@%%%@ @%% #%%%%o @%% o%%%#@%%%X %%@ +%%%O ", " @%% %%@ o%%o .$%%%O%%@ @%% .#%%%o @%% o%%@$%%%O %%@ .%%%. ", " oo. o%%o oo. $%@ ", " o%%o X@#%%X ", " o%%o o%%%@ ", " ", " ", " ", " ", " ", " ", " ", " " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/redo_focus.xpm0000644000175000017500000001724611754453701021771 0ustar miramira/* XPM */ static char *redo_focus[] = { /* columns rows colors chars-per-pixel */ "57 52 100 2", " c black", ". c #000101", "X c #010101", "o c #010102", "O c #010203", "+ c #020203", "@ c #020304", "# c #020305", "$ c #030406", "% c #040608", "& c #050609", "* c #05070A", "= c #06090D", "- c #070A0E", "; c #070A0F", ": c #080C11", "> c #090C12", ", c #090D12", "< c #090D13", "1 c #0A0E14", "2 c #0A0E15", "3 c #0A0F15", "4 c #0B1017", "5 c #0C1118", "6 c #0D131C", "7 c #0E141D", "8 c #0F151F", "9 c #111822", "0 c #121925", "q c #131B28", "w c #141C29", "e c #151E2C", "r c #161F2E", "t c #17202F", "y c #182232", "u c #182333", "i c #192333", "p c #192435", "a c #1B2739", "s c #1D293C", "d c #1E2B3F", "f c #1F2C40", "g c #1F2C41", "h c #202D42", "j c #202E43", "k c #212E44", "l c #212F44", "z c #212F45", "x c #223046", "c c #223047", "v c #223147", "b c #233148", "n c #233248", "m c #233249", "M c #24324A", "N c #24334A", "B c #24334B", "V c #24344C", "C c #25344C", "Z c #25354D", "A c #26354E", "S c #26364E", "D c #26364F", "F c #263650", "G c #273852", "H c #293A55", "J c #293B56", "K c #2A3B57", "L c #2B3D59", "P c #2B3D5A", "I c #2C3E5A", "U c #2C3E5B", "Y c #304463", "T c #314667", "R c #364D71", "E c #3A5379", "W c #3D577E", "Q c #3D5880", "! c #3E5981", "~ c #3F5A82", "^ c #3F5B84", "/ c #405C87", "( c #415D86", ") c #425E87", "_ c #415D88", "` c #415F88", "' c #425E89", "] c #425F8B", "[ c #435F8A", "{ c #43608C", "} c #44608B", "| c #587199", " . c #6C83A5", ".. c #8295B2", "X. c #96A6BF", "o. c #ABB8CC", "O. c #C0CAD9", "+. c #D5DBE5", "@. c #EAEDF2", "#. c gray100", /* pixels */ "x { { { { { { { { { { { { { { } ] ] ] ] ] ) ] ) ] ) ) ^ ) ] ^ / ^ ] ) ) ] ) ] ) ^ ] ] ) ] ) ] ] ) ] ] ] [ ] ] ] g ", "z { { { { { { { { { { { { { { { { { } [ { { ] } ] ] { { ] ] ] ] { { { { ] ] { { ] ] { { { { } } { ] { { } } } } h ", "z { { { { { { { { { { { { { { { { { { { { { { { ] { { { { { ] ] { { { { ] { { { { { { { { { { { { { { { { { { { h ", "d { { { { { { { { { { { { { { { { { { { { { { { { { { { { { ] ] { { { { { { { { { { { { { { { { { { { { { { { { h ", "y { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { h ", "0 { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { z ", "5 { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { z ", "@ ] { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { z ", " T { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { O.#.#.{ { { { { { { { { { { { { { { { z ", " x { { { { { { { { { { { { { { { { { { { { { { { { ] ] { { { { { { { { { O.#.#.{ { { { { { { { { { { { { { { { x ", " t { { { { { { { { { { { { { { { { { { { { { { { ] ] ] { { { { { { { { { O.#.#.{ { { { { { { { { { { { { { { { x ", " 2 { { { { { { { { { { X.O.O.| O.#.#.{ { .O.#.#.#.o.| { { { { X.@.#.@...O.#.#.{ { { | o.@.#.#.+.X.{ { { { { { x ", " R { { { { { { { { { O.#.#.@.#.#.#.{ ..#.#.#.#.#.#.@.| { { ..#.#.#.#.#.#.#.#.{ { | @.#.#.#.#.#.#.O.{ { { { { x ", " a { { { { { { { { { O.#.#.@.| { | { @.#.@. .{ .#.#.o.{ { @.#.#...{ ..#.#.#.{ { o.#.#.O.{ | @.#.#. .{ { { { v ", " : { { { { { { { { { O.#.#. .{ { { .#.#.O.......+.#.@.] ..#.#.+.{ { { +.#.#.{ { @.#.#.| { { X.#.#.o.{ { { { v ", " U { { { { { { { { O.#.#.{ { { { ..#.#.#.#.#.#.#.#.#.] ..#.#.O.{ { { O.#.#.{ { #.#.#.{ { { ..#.#.O.{ { { { N ", " p { { { { { { { { O.#.#.{ { { { ..#.#.o.............{ ..#.#.O.{ { { O.#.#.{ { #.#.#.{ { { ..#.#.O.{ { { { v ", " - ] { { { { { { { O.#.#.{ { { { { #.#.+.{ { { { | ..{ | #.#.#.| { | #.#.#.{ { O.#.#.X.{ { +.#.#...{ { { { v ", " F ] { { { { { { O.#.#.{ { { { { o.#.#.@.O.O.@.#.O.{ { O.#.#.@.O.@.#.#.#.{ { .#.#.#.O.+.#.#.@.{ { { { { N ", " 5 ] { { { { { { O.#.#.{ { { { { { o.#.#.#.#.#.@...{ { | +.#.#.#.+.+.#.#.{ { { ..@.#.#.#.#.+.| { { { { { N ", " A { { { { { { { { { { { { { { { { { ......| { { { { { { ... .{ { { { { { { { { .....| { { { { { { { B ", " 4 { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { B ", " A { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { A ", " : } { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { B ", " N { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { A ", " & ~ { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { A ", " 9 { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { A ", " x { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { A ", " $ W { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { B ", " 6 } { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { A ", " d { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { B ", " A { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { B ", " @ U { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { N ", " & W { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { B ", " : ) ] { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { B ", " 5 ] { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { N ", " 8 ) { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { N ", " 4 ~ { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { N ", " - R { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { v ", " & J { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { N ", " @ A } { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { v ", " r ) { { { } { { { { { { { { { { { { { { { { { { { { { { { { { { { { v ", " : J { ] ] { { { { { { { { { { { { { { { { { { { { { { { { { { { { N ", " y ] { { { { { { { { { { { { { { { { { { { { { { { { { { { { { v ", " : U ] { { { { { { { { { { { { { { { { { { { { { { { { { { { N ", " e E { { { { { { { { { { { { { { { { { { { { { { { { { { x ", " e ~ { ] { { { { { { { { { { { { { { { { { { { { { { x ", " @ t ~ { { { { { { { { { { { { { { { { { { { { { { x ", " e J ] ] ] ] ] ] ] } } } { { { { { { { { { { x ", " = y T ] } } ] ] { { { { { { { { { { { { x ", " - x U ] ] { { { { { { { { { { { { z ", " @ : r h N G I E ^ } { { { { z " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/insert_active.xpm0000644000175000017500000000434411754453701022473 0ustar miramira/* XPM */ static char * insert_active[] = { "77 25 13 1", " c None", ". c #4B0719", "+ c #750924", "@ c #4A0719", "# c #B27685", "$ c #D1ADB6", "% c #FFFFFF", "& c #933F54", "* c #A35B6D", "= c #C1919D", "- c #EFE3E6", "; c #E0C8CE", "> c #84243C", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".++++++++++++++++#$#++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".++++++++++++++++$%$++++++++++++++++++++++++++++++++++++&$$+++++++++++++++++.", ".++++++++++++++++&*&++++++++++++++++++++++++++++++++++++*%%+++++++++++++++++.", ".++++++++++++++++#$#++$$*=%%=+++=%%%-#+++#;%%;&++&$$*-%;;%%$$#++++++++++++++.", ".++++++++++++++++$%$++%%%%%%%*+=%%$$-$++=%%$;%%&+*%%%%%%%%%%%$++++++++++++++.", ".++++++++++++++++$%$++%%->>-%$+$%;+++>+>%%&++#%;+*%%$++>*%%+++++++++++++++++.", ".++++++++++++++++$%$++%%*++$%$+#%%%-$&+*%%%%%%%%+*%%>+++*%%+++++++++++++++++.", ".++++++++++++++++$%$++%%*++$%$++*$;%%%>*%%$$$$$$+*%%++++*%%+++++++++++++++++.", ".++++++++++++++++$%$++%%*++$%$+>+++>%%*>%%*+++>*+*%%++++*%%+++++++++++++++++.", ".++++++++++++++++$%$++%%*++$%$+$%$$;%%>+=%%$$;%$+*%%++++&%%;$&++++++++++++++.", ".++++++++++++++++$%$++%%*++$%$+#-%%%;*+++#;%%%$*+*%%+++++=%%%*++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/tap_tempo_active.xpm0000644000175000017500000000131611754453701023153 0ustar miramira/* XPM */ static char *tap_tempo_active[] = { /* columns rows colors chars-per-pixel */ "22 22 2 1", " c #2F7767", ". c gray100", /* pixels */ " ", " ", " ", " ", " ", " ", " ", " .. ", " .. ", " ..... ..... ..... ", " .. .. .. .. ", " .. ..... .. .. ", " .. .. .. .. .. ", " .... ...... ..... ", " .. ", " .. ", " ", " ", " ", " ", " ", " " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/once_focus.xpm0000644000175000017500000000353611754453701021761 0ustar miramira/* XPM */ static char *once_focus[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #43608C", "8 c #587199", "9 c #6C83A5", "0 c #8295B2", "q c #96A6BF", "w c #ABB8CC", "e c #C0CAD9", "r c #D5DBE5", "t c #EAEDF2", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "7777777qtyyr9777ee0wyyw7778wtyyr777qryyr97777:", "777777eyyrryy977yyyyyyy077tyyrey77wyyeryy9777:", "777778yyw77tyr77yyt88tye7qyyq77878yy977qyr777:", "777770yy077eyy77yy077eye7eyy777770yyyyyyyy777:", "777770yy077eyy77yy077eye7eyy777770yyeeeeee7771", "777778yyw77tyr77yy077eye7qyyq77878yy077780777:", "777777eyyeryy977yy077eye77tyyeey77wyyeerye7772", "7777777qtyyr9777yy077eye778wtyyr777qryyye07772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXX%.XXXXXXXXXX......XXXXXX%X%%%%%%%%*&&&-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/redo_disabled.xpm0000644000175000017500000001721011754453701022410 0ustar miramira/* XPM */ static char *redo_disabled[] = { /* columns rows colors chars-per-pixel */ "57 52 98 2", " c black", ". c #000101", "X c #010101", "o c #010102", "O c #010203", "+ c #020203", "@ c #020304", "# c #020305", "$ c #030406", "% c #040608", "& c #050609", "* c #05070A", "= c #06090D", "- c #070A0E", "; c #070A0F", ": c #080C11", "> c #090C12", ", c #090D12", "< c #090D13", "1 c #0A0E14", "2 c #0A0E15", "3 c #0A0F15", "4 c #0B1017", "5 c #0C1118", "6 c #0D131C", "7 c #0E141D", "8 c #0F151F", "9 c #111822", "0 c #121925", "q c #131B28", "w c #141C29", "e c #151E2C", "r c #161F2E", "t c #17202F", "y c #182232", "u c #182333", "i c #192333", "p c #192435", "a c #1B2739", "s c #1D293C", "d c #1E2B3F", "f c #1F2C40", "g c #1F2C41", "h c #202D42", "j c #202E43", "k c #212E44", "l c #212F44", "z c #212F45", "x c #223046", "c c #223047", "v c #223147", "b c #233148", "n c #233248", "m c #233249", "M c #24324A", "N c #24334A", "B c #24334B", "V c #24344C", "C c #25344C", "Z c #25354D", "A c #26354E", "S c #26364E", "D c #26364F", "F c #263650", "G c #273852", "H c #293A55", "J c #293B56", "K c #2A3B57", "L c #2B3D59", "P c #2B3D5A", "I c #2C3E5A", "U c #2C3E5B", "Y c #364357", "T c #314159", "R c #30405A", "E c #3B4554", "W c #3E4653", "Q c #3F4754", "! c #404855", "~ c #404957", "^ c #414A58", "/ c #424B59", "( c #444D5B", ") c #454E5C", "_ c #454F5C", "` c #454F5E", "' c #464F5D", "] c #46505F", "[ c #475160", "{ c #5B6471", "} c #6F7783", "| c #848B95", " . c #999EA6", ".. c #ADB1B8", "X. c #C2C5CA", "o. c #D6D8DB", "O. c #EAEBED", "+. c gray100", /* pixels */ "x [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ ] ] ] ' ' ' ' ' ( ' ( ( ( ( ( ( ( ' ( ' ( ' ' ( ' ' ( ] ] ] ] ] ] ] ] ] ] ] ] ] d ", "z [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ ] [ [ [ [ [ [ [ [ [ [ [ ] [ [ ] [ ] ] [ [ ] ] ] ] [ [ [ [ [ [ j ", "z [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ ] ] [ [ [ [ ] [ [ [ [ [ [ [ j ", "d ] [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ ] [ [ [ [ [ [ [ [ [ [ [ [ j ", "y [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ j ", "0 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", "5 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", "# ] [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", " T [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ X.+.+.[ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", " x [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ X.+.+.[ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " t [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ X.+.+.[ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " 3 [ [ [ [ [ [ [ [ [ [ .X.X.{ X.+.+.[ [ } X.+.+.+...{ [ [ [ [ .O.+.O.| X.+.+.[ [ [ { ..O.+.+.o. .[ [ [ [ [ [ x ", " Y [ [ [ [ [ [ [ [ [ X.+.+.O.+.+.+.[ | +.+.+.+.+.+.O.{ [ [ | +.+.+.+.+.+.+.+.[ [ { O.+.+.+.+.+.+.X.[ [ [ [ [ x ", " a [ [ [ [ [ [ [ [ [ X.+.+.O.{ [ { [ O.+.O.} [ } +.+...[ [ O.+.+.| [ | +.+.+.[ [ ..+.+.X.[ { O.+.+.} [ [ [ [ v ", " : [ [ [ [ [ [ [ [ [ X.+.+.} [ [ [ } +.+.X.| | | o.+.O.[ | +.+.o.[ [ [ o.+.+.[ [ O.+.+.{ [ [ .+.+...[ [ [ [ v ", " U [ [ [ [ [ [ [ [ X.+.+.[ [ [ [ | +.+.+.+.+.+.+.+.+.[ | +.+.X.[ [ [ X.+.+.[ [ +.+.+.[ [ [ | +.+.X.[ [ [ [ B ", " y [ [ [ [ [ [ [ [ X.+.+.[ [ [ [ | +.+...| | | | | | [ | +.+.X.[ [ [ X.+.+.[ [ +.+.+.[ [ [ | +.+.X.[ [ [ [ B ", " = [ [ [ [ [ [ [ [ X.+.+.[ [ [ [ [ +.+.o.[ [ [ [ { | [ { +.+.+.{ [ { +.+.+.[ [ X.+.+. .[ [ o.+.+.| [ [ [ [ n ", " F [ [ [ [ [ [ [ X.+.+.[ [ [ [ [ ..+.+.O.X.X.O.+.X.[ [ X.+.+.O.X.O.+.+.+.[ [ } +.+.+.X.o.+.+.O.[ [ [ [ [ B ", " 5 [ [ [ [ [ [ [ X.+.+.[ [ [ [ [ [ ..+.+.+.+.+.O.| [ [ { o.+.+.+.o.o.+.+.[ [ [ | O.+.+.+.+.o.{ [ [ [ [ [ B ", " Z [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ | | | { [ [ [ [ [ [ } | } [ [ [ [ [ [ [ [ [ } | | { [ [ [ [ [ [ [ B ", " 3 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " Z [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ ] ] B ", " 3 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ ] ] ] B ", " B [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ Z ", " & ^ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ Z ", " 9 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ Z ", " x [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ Z ", " $ W [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " 6 [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ Z ", " d [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " Z [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " # P [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " & W [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " : ( [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " 7 ] [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " 8 ' [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " 5 Q [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " = E [ [ ] [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " & U [ ] ] [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " # Z ] ] [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ v ", " r ( [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ v ", " : J [ ] [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " y ' [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " : U [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ B ", " e E [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " r Q [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " y Q [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " e J ] ] [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " = p T [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ x ", " = j U [ [ [ [ [ [ [ [ [ [ [ [ [ [ z ", " 3 q g B F P E ( ] [ [ [ [ z " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/record_active.xpm0000644000175000017500000000675411754453701022454 0ustar miramira/* XPM */ static char *record_active[] = { /* columns rows colors chars-per-pixel */ "96 33 10 1", " c #750924", ". c #84243C", "X c #933F54", "o c #A35B6D", "O c #B27685", "+ c #C1919D", "@ c #D1ADB6", "# c #E0C8CE", "$ c #EFE3E6", "% c gray100", /* pixels */ " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " o%%o ", " o%%o ", " o%%o ", " O@@.@%% X@%%%+. X@%%%$X .+$%%#O X@@X+$%o X#%%+o%%o ", " @%%$%%% o%%%%%%$. o%%%%%%o .$%%%%%%@ o%%$%%%o.$%%%%%%%o ", " @%%$. . $%$X X%%+ $%%@ XX +%%@ .$%%X o%%%o .+%%@ .$%%o ", " @%%X X%%@ooo#%$ X%%$ $%%. O%%+ o%%+ %%%. O%%o ", " @%% o%%%%%%%%% o%%@ %%% o%%@ o%%o %%% o%%o ", " @%% o%%+oooooo o%%# %%% o%%@ o%%o %%% o%%o ", " @%% %%# .o %%%X . @%%O #%%o o%%o #%%O #%%o ", " @%% +%%$@@$%@ +%%%@@$o X%%%@#%%$ o%%o o%%%@#%%%o ", " @%% +%%%%%$o +%%%%%o o$%%%%#. o%%o +%%%$@%%o ", " ooo. oooX Xoo. .oo ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/insert_focus.xpm0000644000175000017500000000470411754453701022337 0ustar miramira/* XPM */ static char * insert_focus[] = { "77 25 28 1", " c None", ". c #1E2B3F", "+ c #43608C", "@ c #293A54", "# c #202D42", "$ c #1F2D41", "% c #1F2C41", "& c #1F2C40", "* c #96A6BF", "= c #C0CAD9", "- c #283954", "; c #FFFFFF", "> c #6C83A5", ", c #8295B2", "' c #1F2B3F", ") c #ABB8CC", "! c #EAEDF2", "~ c #D5DBE5", "{ c #283953", "] c #587199", "^ c #293A55", "/ c #293B56", "( c #202E43", "_ c #2A3B56", ": c #2A3B57", "< c #212E44", "[ c #2A3C57", "} c #2A3C58", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&++++++++++++++++*=*++++++++++++++++++++++++++++++++++++++++++++++++++++++++-", "&++++++++++++++++=;=++++++++++++++++++++++++++++++++++++>==+++++++++++++++++-", "&++++++++++++++++>,>++++++++++++++++++++++++++++++++++++,;;+++++++++++++++++-", "'++++++++++++++++*=*++==,);;)+++);;;!*+++*~;;~>++>==,!;~~;;==*++++++++++++++{", ".++++++++++++++++=;=++;;;;;;;,+);;==!=++);;=~;;>+,;;;;;;;;;;;=++++++++++++++{", ".++++++++++++++++=;=++;;!]]!;=+=;~+++]+];;>++*;~+,;;=++],;;+++++++++++++++++{", ".++++++++++++++++=;=++;;,++=;=+*;;;!=>+,;;;;;;;;+,;;]+++,;;+++++++++++++++++{", ".++++++++++++++++=;=++;;,++=;=++,=~;;;],;;======+,;;++++,;;+++++++++++++++++{", "'++++++++++++++++=;=++;;,++=;=+]+++];;,];;,+++],+,;;++++,;;+++++++++++++++++-", "&++++++++++++++++=;=++;;,++=;=+=;==~;;]+);;==~;=+,;;++++>;;~=>++++++++++++++@", "&++++++++++++++++=;=++;;,++=;=+*!;;;~,+++*~;;;=,+,;;+++++);;;,++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++^", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++^", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++:", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/overdub_focus.xpm0000644000175000017500000000746611754453701022511 0ustar miramira/* XPM */ static char *overdub_focus[] = { /* columns rows colors chars-per-pixel */ "96 33 32 1", " c #24334A", ". c #24334B", "X c #24344C", "o c #25344C", "O c #25354D", "+ c #26354E", "@ c #26364E", "# c #26364F", "$ c #263650", "% c #273750", "& c #273751", "* c #273851", "= c #273852", "- c #283852", "; c #283953", ": c #283954", "> c #293A54", ", c #293A55", "< c #293B56", "1 c #2A3B56", "2 c #2A3B57", "3 c #2A3C57", "4 c #43608C", "5 c #587199", "6 c #6C83A5", "7 c #8295B2", "8 c #96A6BF", "9 c #ABB8CC", "0 c #C0CAD9", "q c #D5DBE5", "w c #EAEDF2", "e c gray100", /* pixels */ "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "&4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444%", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444#", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "o4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444&", "#44444444444444444444444444444444444444444444444444444444447ee744444444444440ee4444444444444444=", " 44444444444444444444444444444444444444444444444444444444447ee744444444444440ee4444444444444444=", "o44444444444444444444444444444444444444444444444444444444447ee744444444444440ee4444444444444444=", "o444444444444460eee064470064448005459weeq644460069we746qee97ee744008444008440ee5qee944444444444=", "o4444444444447eeeeeee746ee9444wew45weeeeee7447eeweee75weeeeeee744ee0444ee0440eeeeeee04444444444=", " 444444444444wee747eew44qew447ee849ee845qew447eee74459ee045wee744ee0444ee0440ee045wee6444444444=", " 444444444446eeq444qee648ee740ee54wew7779ee647ee94444eee5448ee744ee0444ee0440ee5448ee9444444444=", " 444444444447ee04440ee744ee04ee044eeeeeeeee747ee74444eee4447ee744ee0444ee0440ee4447ee0444444444=", " 444444444447ee04440ee7449ee8ee644eeq777777547ee74444eee4447ee744ee0444ee0440ee4447ee0444444444=", "X444444444444eee545eee4446eeeew4440ee544448447ee74444qee844qee744eeq448ee0440ee844qee7444444444=", " 4444444444449eew0wee94444qeee84446eee00qee447ee744447eee0qeee744qeeq0eee0440eee0qeew4444444444=", "X44444444444449eeeee9444448eee544447weeeee9447ee7444449eeew0ee7445weee8ee0440ee7eeew644444444442", " 4444444444444447774444444444444444446776444444444444445774444444447754444444444477444444444444=", "X4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", "X44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444=", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442", " 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444442" }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/trig_normal.xpm0000644000175000017500000000353711754453701022154 0ustar miramira/* XPM */ static char *trig_normal[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #374E72", "8 c #4D6181", "9 c #637591", "0 c #7A89A1", "q c #909CB0", "w c #A6B0C0", "e c #BCC4D0", "r c #D2D7DF", "t c #E8EBEF", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777009777777777777777777:", "7777777779ee977777777777yye777777777777777777:", "7777777770yy077777777777eeq777777777777777777:", "777777779wyyw00780089eq7009777qew890077777777:", "77777777eyyyyyy70yyeyye7yye77eyyyytyy77777777:", "77777777qryyree70yyyw007yye79yyt0eyyy77777777:", "7777777770yy07770yyw7777yye7wyy877tyy77777777:", "7777777770yy07770yy07777yye7eyy777eyy777777771", "7777777770yy07770yy07777yye7eyy777ryy77777777:", "7777777770yyq7770yy07777yye70yyw70yyy777777772", "7777777778yyyye70yy07777yye77tyyyyyyy777777772", "77777777770tyye70yy07777yye778rytqeyy777777772", "7777777777777777777777777777777777tyt777777772", "77777777777777777777777777777ww00ryyq777777774", "77777777777777777777777777777eyyyyyq7777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXXX%.XXXXXXXXX......XXXXXX%X%%%%%%%&&%-%-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/sl_logo.xpm0000644000175000017500000000337011754453701021270 0ustar miramira/* XPM */ static char * sl_logo_xpm[] = { "31 25 57 1", " c None", ". c #000000", "+ c #0A0C0F", "@ c #1F202C", "# c #201E2A", "$ c #161219", "% c #171017", "& c #180F16", "* c #190D14", "= c #1A0C12", "- c #1A0A10", "; c #1C090E", "> c #1C070D", ", c #131821", "' c #425675", ") c #58688E", "! c #5D6086", "~ c #60597D", "{ c #655274", "] c #694B6B", "^ c #6D4363", "/ c #713C5A", "( c #753552", "_ c #792E49", ": c #7D2641", "< c #811F38", "[ c #2B0B13", "} c #1C2533", "| c #556E97", "1 c #090C10", "2 c #2F3D53", "3 c #4B4561", "4 c #44374E", "5 c #453247", "6 c #492D42", "7 c #4B283C", "8 c #4F2337", "9 c #6B2841", "0 c #484B68", "a c #501E31", "b c #3E4059", "c c #394964", "d c #16141B", "e c #263143", "f c #4B6186", "g c #382D40", "h c #390E19", "i c #64182B", "j c #211B27", "k c #290F18", "l c #561525", "m c #564F6E", "n c #6F223A", "o c #2A0D16", "p c #4E5C7D", "q c #731C31", "r c #0E0406", "...............................", "...............................", "...............................", "..........+@#$%&*=-;>>>>.......", "........,')!~{]^/(_:<<<[.......", ".......}||)!~{]^/(_:<<<[.......", "......1|||)!~{]^/(_:<<<[.......", "......2|||)!~{]^/(_:<<<[.......", "......||||)!3456789:<<<[.......", "......||||)0......a:<<<[.......", "......||||)b......a:<<<[.......", "......c|||)!d.....a:<<<[.......", "......e|||)!3.....a:<<<[.......", ".......f||)!~$....a:<<<[.......", ".......,||)!~g....a:<<<[.......", "........||)!~4....a:<<q<<<<...", "...............................", "...............................", "..............................."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/substitute_selected.xpm0000644000175000017500000000471311754453701023717 0ustar miramira/* XPM */ static char * substitute_selected[] = { "77 25 28 1", " c None", ". c #212E44", "+ c #2F7868", "@ c #202D42", "# c #293A54", "$ c #1F2D41", "% c #1F2C41", "& c #1F2C40", "* c #283954", "= c #74A59A", "- c #FFFFFF", "; c #BAD2CD", "> c #468779", ", c #5D9689", "' c #1F2B3F", ") c #283953", "! c #1E2B3F", "~ c #A2C3BB", "{ c #8BB4AB", "] c #D1E1DD", "^ c #E7F0EE", "/ c #293A55", "( c #293B56", "_ c #202E43", ": c #2A3B56", "< c #2A3B57", "[ c #2A3C57", "} c #2A3C58", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.", "@+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*", "&+++++++++++++++++++=-;+++++++++++++>=,+++--++,=>+++++++++++>=,+++++++++++++*", "'+++++++++++++++++++=-;+++++++++++++=-;+++;;++;-=+++++++++++=-;+++++++++++++)", "!++++,~;;{>+;;++,;{+=-;,;~>++>{;;~,,]-^;;+;;+{^-];{,;{++{;,,]-^;;++=;;{>++++)", "!+++,--;;-=+--++=-;+=-----^>+^-];^;=-----+--+;----;=-;++;-==-----+;-^;-^>+++)", "!+++=-]+++>+--++=-;+=-^>+;-~+-->++>+=-;+++--++;-=++=-;++;-=+=-;++,-^++{-{+++)", "!+++>^--^~>+--++=-;+=-;++=-;+;---;,+=-;+++--++;-=++=-;++;-=+=-;++=------;+++)", "'+++++,=;-~+--++~-;+=-]++{-;++>={-^+=-;+++--++;-=++=-;++^-=+=-;++=-]====,+++*", "&+++=;==;-~+]-]]--;+=--];--,+]{={-^+=--;{+--++;-^;,>--;^--=+=--;{+^-~==;=+++#", "&+++,]---;>+,^-]~-;+=-]~-^=++;---]=++;--;+--++>^--=+{--~]-=++;--;+>;---],+++#", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/", "@+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/", "@+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++(", "_+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++:", "_+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++."}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/substitute_disabled.xpm0000644000175000017500000000471311754453701023676 0ustar miramira/* XPM */ static char * substitute_disabled[] = { "77 25 28 1", " c None", ". c #1F2C40", "+ c #475160", "@ c #293A54", "# c #202D42", "$ c #1F2D41", "% c #1F2C41", "& c #283954", "* c #848B95", "= c #FFFFFF", "- c #C2C5CA", "; c #5B6471", "> c #6F7783", ", c #1F2B3F", "' c #283953", ") c #1E2B3F", "! c #ADB1B8", "~ c #999EA6", "{ c #D6D8DB", "] c #EAEBED", "^ c #293A55", "/ c #293B56", "( c #202E43", "_ c #2A3B56", ": c #2A3B57", "< c #212E44", "[ c #2A3C57", "} c #2A3C58", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&", ".+++++++++++++++++++*=-+++++++++++++;*>+++==++>*;+++++++++++;*>+++++++++++++&", ",+++++++++++++++++++*=-+++++++++++++*=-+++--++-=*+++++++++++*=-+++++++++++++'", ")++++>!--~;+--++>-~+*=->-!;++;~--!>>{=]--+--+~]={-~>-~++~->>{=]--++*--~;++++'", ")+++>==--=*+==++*=-+*=====];+]={-]-*=====+==+-====-*=-++-=**=====+-=]-=];+++'", ")+++*={+++;+==++*=-+*=];+-=!+==;++;+*=-+++==++-=*++*=-++-=*+*=-++>=]++~=~+++'", ")+++;]==]!;+==++*=-+*=-++*=-+-===->+*=-+++==++-=*++*=-++-=*+*=-++*======-+++'", ",+++++>*-=!+==++!=-+*={++~=-++;*~=]+*=-+++==++-=*++*=-++]=*+*=-++*={****>+++&", ".+++*-**-=!+{={{==-+*=={-==>+{~*~=]+*==-~+==++-=]->;==-]==*+*==-~+]=!**-*+++@", ".+++>{===-;+>]={!=-+*={!=]*++-==={*++-==-+==++;]==*+~==!{=*++-==-+;-==={>+++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++^", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++^", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++:", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/1x_rate_normal.xpm0000644000175000017500000000216311754453701022544 0ustar miramira/* XPM */ static char * onex_rate_normal[] = { "26 25 22 1", " c None", ". c #374E72", "+ c #202D42", "@ c #202E43", "# c #637591", "$ c #7A89A1", "% c #BCC4D0", "& c #FFFFFF", "* c #909CB0", "= c #A6B0C0", "- c #E8EBEF", "; c #4D6181", "> c #212E44", ", c #212F44", "' c #D2D7DF", ") c #212F45", "! c #223046", "~ c #223047", "{ c #233148", "] c #233249", "^ c #24334A", "/ c #24334B", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................+", ".........................@", "......#$$$...............@", ".....%&&&&...............@", ".....*==&&...............@", ".......$&&...$&&#.=&-;...@", ".......$&&....=&-$&&#....@", ".......$&&.....%&&&$.....>", ".......$&&.....#&&-......,", ".......$&&.....'&&&*.....)", ".....#%'&&%%..=&';&&#....)", ".....$&&&&&&.$&&;.*&-;...!", ".........................~", ".........................{", ".........................{", ".........................]", ".........................]", ".........................^", "........................./", ".........................]"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/scratch_focus.xpm0000644000175000017500000000314411754453701022457 0ustar miramira/* XPM */ static char * scratch_focus[] = { "46 25 22 1", " c None", ". c #43608C", "+ c #202D42", "@ c #202E43", "# c #6C83A5", "$ c #8295B2", "% c #C0CAD9", "& c #FFFFFF", "* c #EAEDF2", "= c #D5DBE5", "- c #ABB8CC", "; c #96A6BF", "> c #587199", ", c #212E44", "' c #212F44", ") c #212F45", "! c #223046", "~ c #223047", "{ c #233148", "] c #233249", "^ c #24334A", "/ c #24334B", ".............................................+", ".............................................+", ".............................................+", ".............................................+", ".............................................+", ".............................................+", ".............................................@", ".....................................#$......@", "..........................#%#........%&......@", "..........................$&$........%&......@", "..#*&&=..-&&*..&==&$&&&*$$&&&&.$*&&#.%&-&&$..@", "..%&#.;.;&$.$..&&;;>#$$*&.$&$.>&%.>#.%&$.=&..@", "..$&&&=.%&.....&%..$&=%*&.$&$.$&$....%&..%&..,", "..>.>-&$-&>.>..&%..%&..=&.$&$.#&;..>.%&..%&..'", "..%=%*&>>**%*..&%..$&==*&.#&=%.%&%=$.%&..%&..)", "...$$$....$$#..$#...#$>#$..#$$..#$$..#$..#$..)", ".............................................!", ".............................................~", ".............................................{", ".............................................{", ".............................................]", ".............................................]", ".............................................^", "............................................./", ".............................................^"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/delay_focus.xpm0000644000175000017500000000470311754453701022130 0ustar miramira/* XPM */ static char * delay_focus[] = { "77 25 28 1", " c None", ". c #1E2B3F", "+ c #43608C", "@ c #293A54", "# c #202D42", "$ c #1F2D41", "% c #1F2C41", "& c #1F2C40", "* c #6C83A5", "= c #C0CAD9", "- c #283954", "; c #8295B2", "> c #FFFFFF", ", c #1F2B3F", "' c #ABB8CC", ") c #96A6BF", "! c #D5DBE5", "~ c #EAEDF2", "{ c #587199", "] c #283953", "^ c #293A55", "/ c #293B56", "( c #202E43", "_ c #2A3B56", ": c #2A3B57", "< c #212E44", "[ c #2A3C57", "} c #2A3C58", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@", "&+++++++++++++++++++++++*==+++++++++++*==+++++++++++++++++++++++++++++++++++-", "&+++++++++++++++++++++++;>>+++++++++++;>>+++++++++++++++++++++++++++++++++++-", "&+++++++++++++++++++++++;>>+++++++++++;>>+++++++++++++++++++++++++++++++++++-", ",+++++++++++++++++++'>>')>>+++)!>>!*++;>>++)~>>>={+{==*++{=={+++++++++++++++]", ".++++++++++++++++++=>>!!>>>++'>>=!>>*+;>>++=~==~>~++!>'++'>~++++++++++++++++]", ".+++++++++++++++++{>>=++=>>+{>>*++)>!+;>>++{+++{>>;+)>~++~>'++++++++++++++++]", ".+++++++++++++++++;>>;++;>>+;>>>>>>>>+;>>++;!>>>>>;++~>;*>>{++++++++++++++++]", ".+++++++++++++++++;>>;++;>>+;>>======+;>>+{>>';;>>;++'>!'>!+++++++++++++++++]", ",+++++++++++++++++{>>=++=>>+{>>;+++{;+;>>+;>>++;>>;++{>>~>;+++++++++++++++++-", "&++++++++++++++++++=>>!!>>>++'>>==!>=+;>>+{>>!=>>>;+++=>>~++++++++++++++++++@", "&+++++++++++++++++++'>>')>>+++)!>>>=;+;>>++;~>!;>>;+++*>>'++++++++++++++++++@", "$+++++++++++++++++++++++++++++++++++++++++++++++++++++{>>*++++++++++++++++++^", "#++++++++++++++++++++++++++++++++++++++++++++++++++++=~>!+++++++++++++++++++^", "#++++++++++++++++++++++++++++++++++++++++++++++++++++>>!{+++++++++++++++++++/", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_", "(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++:", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[", "<+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}", ".+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++@"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/load_normal.xpm0000644000175000017500000000353711754453701022126 0ustar miramira/* XPM */ static char *load_normal[] = { /* columns rows colors chars-per-pixel */ "46 25 35 1", " c #101621", ". c #141C29", "X c #141C2A", "o c #141D2A", "O c #151D2B", "+ c #151E2B", "@ c #151E2C", "# c #161F2D", "$ c #161F2E", "% c #16202E", "& c #17202F", "* c #172130", "= c #182131", "- c #182231", "; c #202D42", ": c #202E43", "> c #212E44", ", c #212F44", "< c #212F45", "1 c #223046", "2 c #223047", "3 c #233148", "4 c #233249", "5 c #24334A", "6 c #24334B", "7 c #374E72", "8 c #4D6181", "9 c #637591", "0 c #7A89A1", "q c #909CB0", "w c #A6B0C0", "e c #BCC4D0", "r c #D2D7DF", "t c #E8EBEF", "y c gray100", /* pixels */ "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777;", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777777777777777777777777777777777777777777:", "777777900777777777777777777777777777700977777:", "777777eyy7777777777777777777777777777yye77777:", "777777eyy7777777777777777777777777777yye77777:", "777777eyy7778qeew97778qeeew977778weq7yye77777:", "777777eyy778tyyyyy0770yyyyyyw778tyyytyye77777:", "777777eyy77tyyq0tyy9790778eyy87wyye0tyye77777:", "777777eyy79yyw779yyw777900wyy07tyr778yye77777:", "777777eyy70yy0777yye70tyyyyyy07yye777yye777771", "777777eyy70yy0778yye7tytq0wyy07yye777yye77777:", "777777eyy77yyt87eyy07yye77eyy07eyy97eyye777772", "777777eyy770yyyyyye77ryyeryyy079yyyyyyye777772", "777777eyy7770ryytw7778ryywqyy0770tyr9yye777772", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777772", "7777777777777777777777777777777777777777777774", "7777777777777777777777777777777777777777777775", "7777777777777777777777777777777777777777777775", "XXXXXX%.XXXXXXXXX......XXXXXX%X%%%%%%%&&%-%-& " }; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/mute_normal.xpm0000644000175000017500000000512211754453701022151 0ustar miramira/* XPM */ static char * mute_normal[] = { "46 25 89 1", " c #374E72", ". c #202D42", "+ c #202E43", "@ c #3D5476", "# c #3A5174", "$ c #FFFFFF", "% c #A5AFBF", "& c #AAB3C3", "* c #ABB5C4", "= c #F4F5F7", "- c #EDEFF2", "; c #919EB2", "> c #475D7E", ", c #BEC5D1", "' c #F7F8F9", ") c #909CB0", "! c #677894", "~ c #CAD0DA", "{ c #F5F6F8", "] c #F9F9FB", "^ c #D1D6DE", "/ c #6A7B96", "( c #FAFAFB", "_ c #EBEDF1", ": c #EEF0F3", "< c #E7E9EE", "[ c #EAECF0", "} c #EFF0F3", "| c #637591", "1 c #D4D9E1", "2 c #EBEEF1", "3 c #697A95", "4 c #FCFCFD", "5 c #E7EAEE", "6 c #E4E7EC", "7 c #3E5477", "8 c #526685", "9 c #E3E6EB", "0 c #97A3B6", "a c #CED4DD", "b c #BAC2CE", "c c #384F73", "d c #C7CED8", "e c #CBD1DB", "f c #ADB7C5", "g c #395074", "h c #A4AEBF", "i c #F6F7F8", "j c #223046", "k c #A6B0C0", "l c #415779", "m c #E6E9ED", "n c #D3D8E0", "o c #BBC3CF", "p c #7988A0", "q c #CDD3DC", "r c #C7CDD7", "s c #3C5275", "t c #455A7C", "u c #8290A7", "v c #223047", "w c #C3CAD4", "x c #FEFEFE", "y c #DDE1E7", "z c #FBFCFC", "A c #D7DCE3", "B c #657793", "C c #FAFBFC", "D c #F2F3F6", "E c #D8DCE3", "F c #FDFEFE", "G c #506484", "H c #818FA6", "I c #DCE0E7", "J c #60728F", "K c #C0C7D3", "L c #F0F2F4", "M c #FDFDFD", "N c #CCD2DB", "O c #929FB2", "P c #233249", "Q c #24334A", "R c #141C2A", "S c #16202E", "T c #141C29", "U c #172130", "V c #17202F", "W c #182231", "X c #101621", " .", " .", " .", " +", " +", " +", " +", " @@# +", " $$% +", " $$% +", " $$&*=-;>,'-) $$% $$% $$$$$$ !~{]^/ +", " $$(_:$$<[}$$| $$% $$% 1$$211 34$5<$4! +", " $$678$$978$$0 $$% $$% $$% a$bccd$e +", " $$f g$$f c$$h $$% $$% $$% '$$$$$$i j", " $$% $$% $$% $$k l$$% $$% '$m1111n +", " $$% $$% $$% =$o p$$% 4$f q$rs tu v", " $$% $$% $$% w$x~=$$% y$zA1 BC$DE6F$ v", " $$% $$% $$% G^z5H$$% 3I4$$ JKLMLNO v", " v", " P", " v", " P", " Q", " Q", "RRRRRSTRRRRRRRRRRTTTTTTRRRRRRSRSSSSSSSSUVVVWVX"}; sooperlooper-1.7.3~dfsg0/src/gui/pixmaps/redo_normal.xpm0000644000175000017500000001736711754453701022146 0ustar miramira/* XPM */ static char *redo_normal[] = { /* columns rows colors chars-per-pixel */ "57 52 105 2", " c black", ". c #000101", "X c #010101", "o c #010102", "O c #010203", "+ c #020203", "@ c #020304", "# c #020305", "$ c #030406", "% c #040608", "& c #050609", "* c #05070A", "= c #06090D", "- c #070A0E", "; c #070A0F", ": c #080C11", "> c #090C12", ", c #090D12", "< c #090D13", "1 c #0A0E14", "2 c #0A0E15", "3 c #0A0F15", "4 c #0B1017", "5 c #0C1118", "6 c #0D131C", "7 c #0E141D", "8 c #0F151F", "9 c #111822", "0 c #121925", "q c #131B28", "w c #141C29", "e c #151E2C", "r c #161F2E", "t c #17202F", "y c #182232", "u c #182333", "i c #192333", "p c #192435", "a c #1B2739", "s c #1D293C", "d c #1E2B3F", "f c #1F2C40", "g c #1F2C41", "h c #202D42", "j c #202E43", "k c #212E44", "l c #212F44", "z c #212F45", "x c #223046", "c c #223047", "v c #223147", "b c #233148", "n c #233248", "m c #233249", "M c #24324A", "N c #24334A", "B c #24334B", "V c #24344C", "C c #25344C", "Z c #25354D", "A c #26354E", "S c #26364E", "D c #26364F", "F c #263650", "G c #273852", "H c #293A55", "J c #293B56", "K c #2A3B57", "L c #2B3D59", "P c #2B3D5A", "I c #2C3E5A", "U c #2C3E5B", "Y c #2D405D", "T c #2D405E", "R c #2E4160", "E c #2E4260", "W c #2F4362", "Q c #304463", "! c #304464", "~ c #314666", "^ c #324767", "/ c #324768", "( c #33486A", ") c #33496A", "_ c #344A6C", "` c #344A6D", "' c #354B6D", "] c #354B6E", "[ c #354C6E", "{ c #354C6F", "} c #364C6F", "| c #364C70", " . c #364D70", ".. c #364D71", "X. c #374D71", "o. c #374E72", "O. c #4D6181", "+. c #637591", "@. c #7A89A1", "#. c #909CB0", "$. c #A6B0C0", "%. c #BCC4D0", "&. c #D2D7DF", "*. c #E8EBEF", "=. c gray100", /* pixels */ "x o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.] o.] ] ] ] ] ] ] ] ] _ _ _ _ _ ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] o.] o.] o.] o.o.g ", "z o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.j ", "z o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.f ", "d o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.z ", "y o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.f ", "0 o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.z ", "5 o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.z ", "O o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.z ", "O U o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.%.=.=.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.z ", "O j o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.%.=.=.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.z ", "O t o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.%.=.=.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.x ", "O 3 o.o.o.o.o.o.o.o.o.o.#.%.%.O.%.=.=.o.o.+.%.=.=.=.$.O.o.o.o.o.#.*.=.*.@.%.=.=.o.o.o.O.$.*.=.=.&.#.o.o.o.o.o.o.x ", "O O W o.o.o.o.o.o.o.o.o.%.=.=.*.=.=.=.o.@.=.=.=.=.=.=.*.O.o.o.@.=.=.=.=.=.=.=.=.o.o.O.*.=.=.=.=.=.=.%.o.o.o.o.o.x ", "O O p o.o.o.o.o.o.o.o.o.%.=.=.*.O.o.O.o.*.=.*.+.o.+.=.=.$.o.o.*.=.=.@.o.@.=.=.=.o.o.$.=.=.%.o.O.*.=.=.+.o.o.o.o.n ", "O O - o.o.o.o.o.o.o.o.o.%.=.=.+.o.o.o.+.=.=.%.@.@.@.&.=.*.o.@.=.=.&.o.o.o.&.=.=.o.o.*.=.=.O.o.o.#.=.=.$.o.o.o.o.n ", "O O O L o.o.o.o.o.o.o.o.%.=.=.o.o.o.o.@.=.=.=.=.=.=.=.=.=.o.@.=.=.%.o.o.o.%.=.=.o.o.=.=.=.o.o.o.@.=.=.%.o.o.o.o.n ", "O O O y o.o.o.o.o.o.o.o.%.=.=.o.o.o.o.@.=.=.$.@.@.@.@.@.@.o.@.=.=.%.o.o.o.%.=.=.o.o.=.=.=.o.o.o.@.=.=.%.o.o.o.o.n ", "O O O * ] o.o.o.o.o.o.o.%.=.=.o.o.o.o.o.=.=.&.o.o.o.o.O.@.o.O.=.=.=.O.o.O.=.=.=.o.o.%.=.=.#.o.o.&.=.=.@.o.o.o.o.n ", "O O O O A o.o.o.o.o.o.o.%.=.=.o.o.o.o.o.$.=.=.*.%.%.*.=.%.o.o.%.=.=.*.%.*.=.=.=.o.o.+.=.=.=.%.&.=.=.*.o.o.o.o.o.V ", "O O O O 4 o.o.o.o.o.o.o.%.=.=.o.o.o.o.o.o.$.=.=.=.=.=.*.@.o.o.O.&.=.=.=.&.&.=.=.o.o.o.@.*.=.=.=.=.&.O.o.o.o.o.o.n ", "O O O O O A o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.@.@.@.O.o.o.o.o.o.o.+.@.+.o.o.o.o.o.o.o.o.o.+.@.@.O.o.o.o.o.o.o.o.V ", "O O O O O < o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.V ", "O O O O O O A o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.V ", "O O O O O O < o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.C ", "O O O O O O O x o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.V ", "O O O O O O O * ^ o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.Z ", "O O O O O O O O 8 o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.A ", "O O O O O O O O O z o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.A ", "O O O O O O O O O O Q o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.C ", "O O O O O O O O O O 6 o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.C ", "O O O O O O O O O O O s o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.C ", "O O O O O O O O O O O O A o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.C ", "O O O O O O O O O O O O O K o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.C ", "O O O O O O O O O O O O O % Q o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.C ", "O O O O O O O O O O O O O O < _ o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.M ", "O O O O O O O O O O O O O O O 6 ] o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.M ", "O O O O O O O O O O O O O O O O 7 _ o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.M ", "O O O O O O O O O O O O O O O O O 3 ^ o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.M ", "O O O O O O O O O O O O O O O O O O - W o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.n ", "O O O O O O O O O O O O O O O O O O O * H o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.n ", "O O O O O O O O O O O O O O O O O O O O O C o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.n ", "O O O O O O O O O O O O O O O O O O O O O O w _ o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.n ", "O O O O O O O O O O O O O O O O O O O O O O O - H o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.n ", "O O O O O O O O O O O O O O O O O O O O O O O O O y ] o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.n ", "O O O O O O O O O O O O O O O O O O O O O O O O O O ; L o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.b ", "O O O O O O O O O O O O O O O O O O O O O O O O O O O O w T o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.z ", "O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O w W o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.n ", "O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O r ^ o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.z ", "O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O 0 H o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.z ", "O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O - y T o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.z ", "O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O - f L ] o.o.o.o.o.o.o.o.o.o.o.o.o.z ", "O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O : 0 f C G L W _ o.o.o.o.o.z " }; sooperlooper-1.7.3~dfsg0/src/gui/gui_app.hpp0000644000175000017500000000427111754453700017560 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_gui_app__ #define __sooperlooper_gui_app__ #include namespace SooperLooperGui { class AppFrame; class MainPanel; class GuiApp : public wxApp { public: // override base class virtuals // ---------------------------- GuiApp(); virtual ~GuiApp(); // this one is called on application startup and is a good place for the app // initialization (doing it here and not in the ctor allows to have an error // return: if OnInit() returns false, the application terminates) virtual bool OnInit(); virtual int OnRun(); wxString get_host() { return _host; } int get_port() { return _port; } bool get_force_spawn() { return _force_spawn; } wxString get_exec_name() { return _exec_name; } wxChar ** get_engine_args () { return _engine_argv; } virtual void MacOpenFile(const wxString &fileName); protected: bool parse_options (int argc, wxChar **argv); void process_key_event (wxKeyEvent &ev); AppFrame * _frame; wxString _host; int _port; int _show_usage; int _show_version; wxString _exec_name; bool _force_spawn; bool _never_spawn; bool _never_timeout; int _loop_count; int _channels; float _mem_secs; wxString _midi_bind_file; wxString _server_name; wxString _client_name; bool _stay_on_top; wxString _load_session; bool _inited; wxChar ** _engine_argv; DECLARE_EVENT_TABLE() }; }; DECLARE_APP(SooperLooperGui::GuiApp); #endif sooperlooper-1.7.3~dfsg0/src/gui/prefs_dialog.hpp0000644000175000017500000000361712230252703020563 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_prefs_dialog__ #define __sooperlooper_prefs_dialog__ #include #include #include #include #include class wxListCtrl; class wxSpinCtrl; class wxNotebook; namespace SooperLooperGui { class GuiFrame; class KeyboardTarget; class ConfigPanel; class KeysPanel; class MidiBindPanel; class LatencyPanel; class PrefsDialog : public wxFrame, public sigc::trackable { public: // ctor(s) PrefsDialog(MainPanel * parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(400,600), long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxT("PrefsDialog")); virtual ~PrefsDialog(); void refresh_state(); protected: void init(); void on_close (wxCloseEvent &ev); wxNotebook * _notebook; ConfigPanel * _config_panel; KeysPanel * _keys_panel; MidiBindPanel * _midi_panel; LatencyPanel * _latency_panel; MainPanel * _parent; private: // any class wishing to process wxWindows events must use this macro DECLARE_EVENT_TABLE() }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/main_panel.cpp0000644000175000017500000014044412317550250020227 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include #include #include #include #include #include #include #include #include "version.h" #include "main_panel.hpp" #include "gui_app.hpp" #include "looper_panel.hpp" #include "loop_control.hpp" #include "slider_bar.hpp" #include "choice_box.hpp" #include "check_box.hpp" #include "spin_box.hpp" #include "pix_button.hpp" #include "keyboard_target.hpp" #include "help_window.hpp" #include "prefs_dialog.hpp" #include "pixmaps/sl_logo.xpm" #include "pixmaps/tap_tempo_active.xpm" #include "pixmaps/tap_tempo_disabled.xpm" #include "pixmaps/tap_tempo_focus.xpm" #include "pixmaps/tap_tempo_normal.xpm" #include "pixmaps/tap_tempo_selected.xpm" #include #include using namespace SooperLooper; using namespace SooperLooperGui; using namespace std; enum { ID_UpdateTimer = 9000, ID_AboutMenu, ID_HelpTipsMenu, ID_PreferencesMenu, ID_ConnectionMenu, ID_KeybindingsMenu, ID_MidiBindingsMenu, ID_LoadSession, ID_SaveSession, ID_Quit, ID_QuitStop, ID_AddLoop, ID_AddMonoLoop, ID_AddStereoLoop, ID_RemoveLoop, ID_TempoSlider, ID_SyncChoice, ID_EighthSlider, ID_QuantizeChoice, ID_RoundCheck, ID_RelSyncCheck, ID_TapTempoButton, ID_TapTempoTimer, ID_AddCustomLoop, ID_XfadeSlider, ID_DryControl, ID_WetControl, ID_InGainControl, ID_MuteQuantCheck, ID_OdubQuantCheck, ID_SmartEighthCheck, ID_ReplQuantCheck }; BEGIN_EVENT_TABLE(MainPanel, wxPanel) EVT_IDLE(MainPanel::OnIdle) EVT_SIZE(MainPanel::OnSize) EVT_PAINT(MainPanel::OnPaint) EVT_TIMER(ID_UpdateTimer, MainPanel::OnUpdateTimer) EVT_TIMER(ID_TapTempoTimer, MainPanel::on_taptempo_timer) EVT_ACTIVATE (MainPanel::OnActivate) EVT_ACTIVATE_APP (MainPanel::OnActivate) END_EVENT_TABLE() MainPanel::MainPanel(wxWindow * parent, wxWindowID id, const wxPoint& pos, const wxSize& size) : wxPanel(parent, id, pos, size) { _keyboard = new KeyboardTarget (this, "gui_frame"); _curr_loop = -1; _tapdelay_val = 1.0f; _prefs_dialog = 0; _got_new_data = 0; _help_window = 0; _engine_alive = true; _never_timeout = false; _update_timer_time = 11000; // ms _force_local = false; _got_add_custom = false; _add_num_loops = 1; _add_num_channels = 1; _add_discrete = true; _add_secs_channel = 40.0f; _rcdir = wxGetHomeDir() + wxFileName::GetPathSeparator() + wxT(".sooperlooper"); _loop_control = new LoopControl(_rcdir); intialize_keybindings (); load_rc(); init(); _update_timer = new wxTimer(this, ID_UpdateTimer); _update_timer->Start(_update_timer_time, true); _taptempo_button_timer = new wxTimer(this, ID_TapTempoTimer); _connect_failed_connection = _loop_control->ConnectFailed.connect (mem_fun (*this, &MainPanel::on_connect_failed)); _lost_connect_connection = _loop_control->LostConnection.connect (mem_fun (*this, &MainPanel::on_connection_lost)); _isalive_connection = _loop_control->IsAlive.connect (mem_fun (*this, &MainPanel::on_engine_alive)); _error_recvd_connection = _loop_control->ErrorReceived.connect (mem_fun (*this, &MainPanel::on_error_received)); } MainPanel::~MainPanel() { //wxLogWarning(wxT("Mainpanel destroy")); save_rc(); for (unsigned int i=0; i < _looper_panels.size(); ++i) { // unregister _loop_control->register_auto_updates((int) i, true); _loop_control->register_input_controls((int) i, true); // sleep for a little bit so the UDP isn't lost during this barrage #if wxCHECK_VERSION(2,5,3) ::wxMilliSleep(50); #else ::wxUsleep(50); #endif } _loop_connect_connection.disconnect(); _loop_disconnect_connection.disconnect(); _loop_update_connection.disconnect(); _connect_failed_connection.disconnect(); _lost_connect_connection.disconnect(); _isalive_connection.disconnect(); _error_recvd_connection.disconnect(); delete _loop_control; delete _keyboard; delete _update_timer; delete _taptempo_button_timer; } void MainPanel::init() { _main_sizer = new wxBoxSizer(wxVERTICAL); _topsizer = new wxBoxSizer(wxVERTICAL); //wxBoxSizer * rowsizer = new wxBoxSizer(wxHORIZONTAL); wxInitAllImageHandlers(); //SetBackgroundColour(*wxBLACK); //SetThemeEnabled(false); wxFont sliderFont = *wxSMALL_FONT; wxBoxSizer * rowsizer = new wxBoxSizer(wxHORIZONTAL); _top_panel = new wxPanel(this); _top_panel->SetThemeEnabled(false); _top_panel->SetBackgroundColour(*wxBLACK); wxBoxSizer * topcolsizer = new wxBoxSizer(wxVERTICAL); rowsizer->Add (1, 1, 1); _sync_choice = new ChoiceBox (_top_panel, ID_SyncChoice, true, wxDefaultPosition, wxSize (130, 20)); _sync_choice->set_label (wxT("sync to")); _sync_choice->SetFont (sliderFont); _sync_choice->value_changed.connect (mem_fun (*this, &MainPanel::on_syncto_change)); _sync_choice->bind_request.connect (bind (mem_fun (*this, &MainPanel::on_bind_request), wxT("sync"))); rowsizer->Add (_sync_choice, 0, wxALL|wxEXPAND, 2); _tempo_bar = new SpinBox(_top_panel, ID_TempoSlider, 0.0f, 10000.0f, 110.0f, true, wxDefaultPosition, wxSize(120, 20)); _tempo_bar->set_units(wxT("bpm")); _tempo_bar->set_label(wxT("tempo")); _tempo_bar->set_snap_mode (SpinBox::IntegerSnap); _tempo_bar->set_allow_outside_bounds(true); _tempo_bar->SetFont (sliderFont); _tempo_bar->value_changed.connect (mem_fun (*this, &MainPanel::on_tempo_change)); _tempo_bar->bind_request.connect (bind (mem_fun (*this, &MainPanel::on_bind_request), wxT("tempo"))); rowsizer->Add (_tempo_bar, 0, wxALL|wxEXPAND, 2); _taptempo_button = new PixButton(_top_panel, ID_TapTempoButton, true); _taptempo_button->set_normal_bitmap (wxBitmap(tap_tempo_normal)); _taptempo_button->set_selected_bitmap (wxBitmap(tap_tempo_selected)); _taptempo_button->set_focus_bitmap (wxBitmap(tap_tempo_focus)); _taptempo_button->set_disabled_bitmap (wxBitmap(tap_tempo_disabled)); _taptempo_button->set_active_bitmap (wxBitmap(tap_tempo_active)); _taptempo_button->pressed.connect (mem_fun (*this, &MainPanel::on_taptempo_press)); _taptempo_button->released.connect (mem_fun (*this, &MainPanel::on_taptempo_release)); _taptempo_button->bind_request.connect (bind (mem_fun (*this, &MainPanel::on_bind_request), wxT("taptempo"))); rowsizer->Add (_taptempo_button, 0, wxALL|wxEXPAND, 2); _eighth_cycle_bar = new SpinBox(_top_panel, ID_EighthSlider, 1.0f, 1024.0f, 16.0f, true, wxDefaultPosition, wxSize(110, 20)); _eighth_cycle_bar->set_units(wxT("")); _eighth_cycle_bar->set_label(wxT("8th/cycle")); _eighth_cycle_bar->set_snap_mode (SpinBox::IntegerSnap); _eighth_cycle_bar->set_allow_outside_bounds(true); _eighth_cycle_bar->SetFont (sliderFont); _eighth_cycle_bar->value_changed.connect (mem_fun (*this, &MainPanel::on_eighth_change)); _eighth_cycle_bar->bind_request.connect (bind (mem_fun (*this, &MainPanel::on_bind_request), wxT("eighth"))); rowsizer->Add (_eighth_cycle_bar, 0, wxALL|wxEXPAND, 2); _quantize_choice = new ChoiceBox (_top_panel, ID_QuantizeChoice, true, wxDefaultPosition, wxSize (110, 20)); _quantize_choice->SetFont (sliderFont); _quantize_choice->set_label (wxT("quantize")); _quantize_choice->value_changed.connect (mem_fun (*this, &MainPanel::on_quantize_change)); _quantize_choice->bind_request.connect (bind (mem_fun (*this, &MainPanel::on_bind_request), wxT("quantize"))); _quantize_choice->append_choice (wxT("off"), 0); _quantize_choice->append_choice (wxT("cycle"), 1); _quantize_choice->append_choice (wxT("8th"), 2); _quantize_choice->append_choice (wxT("loop"), 3); rowsizer->Add (_quantize_choice, 0, wxALL|wxEXPAND, 2); _mute_quant_check = new CheckBox(_top_panel, ID_MuteQuantCheck, wxT("mute quant"), true, wxDefaultPosition, wxSize(90, 18)); _mute_quant_check->SetFont(sliderFont); _mute_quant_check->SetToolTip(wxT("quantize mute operations")); _mute_quant_check->value_changed.connect (mem_fun (*this, &MainPanel::on_mute_quant_check)); _mute_quant_check->bind_request.connect (bind (mem_fun (*this, &MainPanel::on_bind_request), wxT("mute_quantized"))); rowsizer->Add (_mute_quant_check, 0, wxALL|wxEXPAND, 2); _odub_quant_check = new CheckBox(_top_panel, ID_OdubQuantCheck, wxT("odub quant"), true, wxDefaultPosition, wxSize(90, 18)); _odub_quant_check->SetFont(sliderFont); _odub_quant_check->SetToolTip(wxT("quantize overdub operations")); _odub_quant_check->value_changed.connect (mem_fun (*this, &MainPanel::on_odub_quant_check)); _odub_quant_check->bind_request.connect (bind (mem_fun (*this, &MainPanel::on_bind_request), wxT("overdub_quantized"))); rowsizer->Add (_odub_quant_check, 0, wxALL|wxEXPAND, 2); _repl_quant_check = new CheckBox(_top_panel, ID_ReplQuantCheck, wxT("repl quant"), true, wxDefaultPosition, wxSize(90, 18)); _repl_quant_check->SetFont(sliderFont); _repl_quant_check->SetToolTip(wxT("quantize replace and substitute operations")); _repl_quant_check->value_changed.connect (mem_fun (*this, &MainPanel::on_repl_quant_check)); _repl_quant_check->bind_request.connect (bind (mem_fun (*this, &MainPanel::on_bind_request), wxT("replace_quantized"))); rowsizer->Add (_repl_quant_check, 0, wxALL|wxEXPAND, 2); rowsizer->Add (1, 1, 1); wxStaticBitmap * logobit = new wxStaticBitmap(_top_panel, -1, wxBitmap(sl_logo_xpm)); rowsizer->Add (logobit, 0, wxALIGN_BOTTOM); topcolsizer->Add (rowsizer, 0, wxEXPAND|wxTOP, 3); rowsizer = new wxBoxSizer(wxHORIZONTAL); rowsizer->Add (1, 1, 1); _xfade_bar = new SpinBox(_top_panel, ID_XfadeSlider, 0.0f, 128000.0f, 64.0f, true, wxDefaultPosition, wxSize(100, 20)); _xfade_bar->set_units(wxT("")); _xfade_bar->set_label(wxT("xfade")); _xfade_bar->SetToolTip(wxT("operation crossfade length in samples")); _xfade_bar->set_snap_mode (SpinBox::IntegerSnap); _xfade_bar->set_decimal_digits (0); _xfade_bar->SetFont (sliderFont); _xfade_bar->value_changed.connect (mem_fun (*this, &MainPanel::on_xfade_change)); _xfade_bar->bind_request.connect (bind (mem_fun (*this, &MainPanel::on_bind_request), wxT("fade_samples"))); rowsizer->Add (_xfade_bar, 0, wxALL|wxEXPAND, 2); _common_ingain_bar = new SliderBar(_top_panel, ID_InGainControl, 0.0f, 1.0f, 1.0f, true, wxDefaultPosition, wxSize(132,20)); _common_ingain_bar->set_units(wxT("dB")); _common_ingain_bar->set_label(wxT("input gain")); _common_ingain_bar->set_scale_mode(SliderBar::ZeroGainMode); _common_ingain_bar->set_show_indicator_bar(true); _common_ingain_bar->SetFont(sliderFont); _common_ingain_bar->value_changed.connect (mem_fun (*this, &MainPanel::on_ingain_change)); _common_ingain_bar->bind_request.connect (bind (mem_fun (*this, &MainPanel::on_bind_request), wxT("input_gain"))); rowsizer->Add (_common_ingain_bar, 0, wxALL|wxEXPAND, 2); _common_dry_bar = new SliderBar(_top_panel, ID_DryControl, 0.0f, 1.0f, 1.0f, true, wxDefaultPosition, wxSize(132,20)); _common_dry_bar->set_units(wxT("dB")); _common_dry_bar->set_label(wxT("main in mon")); _common_dry_bar->set_scale_mode(SliderBar::ZeroGainMode); _common_dry_bar->set_show_indicator_bar(true); _common_dry_bar->SetFont(sliderFont); _common_dry_bar->value_changed.connect (mem_fun (*this, &MainPanel::on_dry_change)); _common_dry_bar->bind_request.connect (bind (mem_fun (*this, &MainPanel::on_bind_request), wxT("dry"))); rowsizer->Add (_common_dry_bar, 0, wxALL|wxEXPAND, 2); _common_wet_bar = new SliderBar(_top_panel, ID_WetControl, 0.0f, 1.0f, 1.0f, true, wxDefaultPosition, wxSize(132,20)); _common_wet_bar->set_units(wxT("dB")); _common_wet_bar->set_label(wxT("main out")); _common_wet_bar->set_scale_mode(SliderBar::ZeroGainMode); _common_wet_bar->set_show_indicator_bar(true); _common_wet_bar->SetFont(sliderFont); _common_wet_bar->value_changed.connect (mem_fun (*this, &MainPanel::on_wet_change)); _common_wet_bar->bind_request.connect (bind (mem_fun (*this, &MainPanel::on_bind_request), wxT("wet"))); rowsizer->Add (_common_wet_bar, 0, wxALL|wxEXPAND, 2); _round_check = new CheckBox (_top_panel, ID_RoundCheck, wxT("round"), true, wxDefaultPosition, wxSize(60, 20)); _round_check->SetFont (sliderFont); _round_check->value_changed.connect (mem_fun (*this, &MainPanel::on_round_check)); _round_check->bind_request.connect (bind (mem_fun (*this, &MainPanel::on_bind_request), wxT("round"))); rowsizer->Add (_round_check, 0, wxALL|wxEXPAND, 2); _relsync_check = new CheckBox (_top_panel, ID_RelSyncCheck, wxT("rel sync"), true, wxDefaultPosition, wxSize(75, 20)); _relsync_check->SetFont (sliderFont); _relsync_check->value_changed.connect (mem_fun (*this, &MainPanel::on_relsync_check)); _relsync_check->bind_request.connect (bind (mem_fun (*this, &MainPanel::on_bind_request), wxT("relative_sync"))); rowsizer->Add (_relsync_check, 0, wxALL|wxEXPAND, 2); _smart_eighths_check = new CheckBox(_top_panel, ID_SmartEighthCheck, wxT("auto 8th"), true, wxDefaultPosition, wxSize(80, 18)); _smart_eighths_check->SetFont(sliderFont); _smart_eighths_check->SetToolTip(wxT("auto adjust 8ths per cycle with tempo")); _smart_eighths_check->value_changed.connect (mem_fun (*this, &MainPanel::on_smart_eighths_check)); _smart_eighths_check->bind_request.connect (bind (mem_fun (*this, &MainPanel::on_bind_request), wxT("smart_eighths"))); rowsizer->Add (_smart_eighths_check, 0, wxALL|wxEXPAND, 2); rowsizer->Add (1, 1, 1); topcolsizer->Add (rowsizer, 0, wxEXPAND|wxBOTTOM, 3); _top_panel->SetSizer( topcolsizer ); // actually set the sizer topcolsizer->Fit( _top_panel ); // set size to minimum size as calculated by the sizer topcolsizer->SetSizeHints( _top_panel ); // set size hints to honour mininum size _topsizer->Add (_top_panel, 0, wxEXPAND); _scroller = new wxScrolledWindow(this, -1, wxDefaultPosition, wxDefaultSize, wxVSCROLL); _scroller->SetBackgroundColour(*wxBLACK); // todo request how many loopers to construct based on connection _loop_connect_connection = _loop_control->LooperConnected.connect (mem_fun (*this, &MainPanel::init_loopers)); _loop_disconnect_connection = _loop_control->Disconnected.connect (bind (mem_fun (*this, &MainPanel::init_loopers), 0)); _loop_update_connection = _loop_control->NewDataReady.connect (mem_fun (*this, &MainPanel::osc_data_ready)); _topsizer->Add (_scroller, 1, wxEXPAND); _scroller->SetSizer( _main_sizer ); // actually set the sizer _scroller->SetAutoLayout( true ); // tell dialog to use sizer _scroller->SetScrollRate (0, 30); _scroller->EnableScrolling (true, true); //_main_sizer->Fit( _scroller ); // set size to minimum size as calculated by the sizer _main_sizer->SetSizeHints( _scroller ); // set size hints to honour mininum size this->SetAutoLayout( true ); // tell dialog to use sizer this->SetSizer( _topsizer ); // actually set the sizer _topsizer->Fit( this ); // set size to minimum size as calculated by the sizer _topsizer->SetSizeHints( this ); // set size hints to honour mininum size _scroller->SetFocus(); } void MainPanel::init_syncto_choice() { // BrotherSync = -4, // InternalTempoSync = -3, // MidiClockSync = -2, // JackSync = -1, // NoSync = 0 _sync_choice->clear_choices (); _sync_choice->append_choice (wxT("None"), 0); _sync_choice->append_choice (wxT("Internal"), -3); _sync_choice->append_choice (wxT("MidiClock"), -2); _sync_choice->append_choice (wxT("Jack/Host"), -1); // _sync_choice->append_choice (wxT("BrotherSync"), -4); // the remaining choices are loops for (unsigned int i=0; i < _looper_panels.size(); ++i) { _sync_choice->append_choice (wxString::Format(wxT("Loop %d"), i+1), i+1); } update_syncto_choice (); } void MainPanel::init_loopers (int count) { LooperPanel * looperpan; if (count > (int) _looper_panels.size()) { while (count > (int) _looper_panels.size()) { looperpan = new LooperPanel(this, _loop_control, _scroller, -1); looperpan->set_index(_looper_panels.size()); _main_sizer->Add (looperpan, 0, wxEXPAND|wxALL, 0); _looper_panels.push_back (looperpan); } } else if (count < (int)_looper_panels.size()) { while (count < (int)_looper_panels.size()) { looperpan = _looper_panels.back(); _looper_panels.pop_back(); _main_sizer->Remove(looperpan); looperpan->Destroy(); } } _scroller->SetClientSize(_scroller->GetClientSize()); _scroller->Layout(); _scroller->SetScrollRate(0,30); if (!_looper_panels.empty()) { wxSize bestsz = _looper_panels[0]->GetBestSize(); //cerr << "best w: " << bestsz.GetWidth() << endl; _scroller->SetVirtualSizeHints (bestsz.GetWidth(), -1); _topsizer->Layout(); // _topsizer->Fit(this); // _topsizer->SetSizeHints(this); // maybe resize if (_looper_panels.size() <= 4) { int topheight = _top_panel->GetSize().GetHeight(); //SetSize(GetSize().GetWidth(), bestsz.GetHeight() * _looper_panels.size() + topheight); PreferredSizeChange(GetSize().GetWidth(), bestsz.GetHeight() * _looper_panels.size() + topheight); // emit } } //_main_sizer->Layout(); //_main_sizer->Fit(_scroller); //_main_sizer->SetSizeHints( _scroller ); // set size hints to honour mininum size // request all values for initial state _loop_control->register_all_in_new_thread(_looper_panels.size()); init_syncto_choice (); set_curr_loop (_curr_loop); _engine_alive = true; } void MainPanel::osc_data_ready() { // cerr << "osc ready" << endl; // this is called from another thread _got_new_data++; ::wxWakeUpIdle(); } void MainPanel::on_connect_failed (const std::string & msg) { wxMessageDialog dial(this, wxString::FromAscii(msg.c_str()), wxT("Connection Error"), wxOK); dial.SetTitle(wxT("Connection Error")); dial.ShowModal(); } void MainPanel::on_connection_lost (const std::string & msg) { wxMessageDialog dial(this, wxString::FromAscii(msg.c_str()), wxT("Lost Connection"), wxOK); dial.SetTitle(wxT("Lost Connection")); dial.ShowModal(); } void MainPanel::on_error_received (const std::string & msg) { wxMessageDialog dial(this, wxString::FromAscii(msg.c_str()), wxT("Error Received"), wxOK); dial.SetTitle(wxT("Error Received")); dial.ShowModal(); } void MainPanel::on_engine_alive () { //cerr << "got alive ping" << endl; _engine_alive = true; } void MainPanel::OnUpdateTimer(wxTimerEvent &ev) { // check to see if our connected server is still alive if (_loop_control->connected() || _never_timeout) { _loop_control->update_values(); if (!_engine_alive && !_never_timeout) { _loop_control->disconnect(); on_connection_lost ("Lost connection to SooperLooper engine.\nSee the Preferences->Connections tab to start a new one"); } _engine_alive = false; _loop_control->send_alive_ping(); } _update_timer->Start(_update_timer_time, true); } void MainPanel::set_never_timeout(bool flag) { _never_timeout = flag; if (_never_timeout) { // reduce sleep time to check more often _update_timer_time = 3000; } } void MainPanel::do_close(bool quitengine) { // send quit command to looper by default save_default_midibindings(); _loop_update_connection.disconnect(); _loop_disconnect_connection.disconnect(); _loop_connect_connection.disconnect(); _update_timer->Stop(); _taptempo_button_timer->Stop(); // sleep for a short period before stopping engine #if wxCHECK_VERSION(2,5,3) ::wxMilliSleep(500); #else ::wxUsleep(500); #endif if (quitengine) { _loop_control->send_quit(); } } void MainPanel::OnActivate(wxActivateEvent &ev) { cerr << "mainpan activeate" << endl; if (ev.GetActive()) { _keyboard->set_enabled (true); } else { _keyboard->set_enabled (false); } ev.Skip(); } void MainPanel::on_taptempo_timer(wxTimerEvent &ev) { _taptempo_button->set_active(false); } void MainPanel::update_controls() { // get recent controls from loop control float val; if (_loop_control->is_global_updated(wxT("tempo"))) { _loop_control->get_global_value(wxT("tempo"), val); _tempo_bar->set_value (val); } if (_loop_control->is_global_updated(wxT("tap_tempo"))) { _loop_control->get_global_value(wxT("tap_tempo"), val); float tempo; _loop_control->get_global_value(wxT("tempo"), tempo); // turn on tap active, then timeout to flip it back _taptempo_button->set_active(true); if (tempo > 200) { // half the tempo in ms int ms = (int) (1.0f/tempo * 30000.0f); _taptempo_button_timer->Start(ms, true); } else { _taptempo_button_timer->Start(150, true); } } if (_loop_control->is_global_updated(wxT("eighth_per_cycle"))) { _loop_control->get_global_value(wxT("eighth_per_cycle"), val); _eighth_cycle_bar->set_value (val); } if (_loop_control->is_global_updated(wxT("sync_source"))) { update_syncto_choice (); } // quantize from first loop if (_loop_control->is_updated(0, wxT("quantize"))) { _loop_control->get_value(0, wxT("quantize"), val); val = roundf(val); _quantize_choice->set_index_value ((int)val); } if (_loop_control->is_updated(0, wxT("round"))) { _loop_control->get_value(0, wxT("round"), val); _round_check->set_value (val > 0.0); } if (_loop_control->is_updated(0, wxT("relative_sync"))) { _loop_control->get_value(0, wxT("relative_sync"), val); _relsync_check->set_value (val > 0.0); } if (_loop_control->is_updated(0, wxT("mute_quantized"))) { _loop_control->get_value(0, wxT("mute_quantized"), val); _mute_quant_check->set_value (val > 0.0); } if (_loop_control->is_updated(0, wxT("overdub_quantized"))) { _loop_control->get_value(0, wxT("overdub_quantized"), val); _odub_quant_check->set_value (val > 0.0); } if (_loop_control->is_updated(0, wxT("replace_quantized"))) { _loop_control->get_value(0, wxT("replace_quantized"), val); _repl_quant_check->set_value (val > 0.0); } if (_loop_control->is_global_updated(wxT("smart_eighths"))) { _loop_control->get_global_value(wxT("smart_eighths"), val); _smart_eighths_check->set_value (val > 0.0); } if (_loop_control->is_updated(0, wxT("fade_samples"))) { _loop_control->get_value(0, wxT("fade_samples"), val); _xfade_bar->set_value (val); } if (_loop_control->is_global_updated(wxT("dry"))) { _loop_control->get_global_value(wxT("dry"), val); _common_dry_bar->set_value (val); } if (_loop_control->is_global_updated(wxT("input_gain"))) { _loop_control->get_global_value(wxT("input_gain"), val); _common_ingain_bar->set_value (val); } // don't check, others might be using it _loop_control->get_global_value(wxT("in_peak_meter"), val); _common_dry_bar->set_indicator_value (val); if (_loop_control->is_global_updated(wxT("wet"))) { _loop_control->get_global_value(wxT("wet"), val); _common_wet_bar->set_value (val); } if (_loop_control->is_global_updated (wxT("out_peak_meter"))) { _loop_control->get_global_value (wxT("out_peak_meter"), val); _common_wet_bar->set_indicator_value (val); } if (_loop_control->is_global_updated(wxT("selected_loop_num"))) { _loop_control->get_global_value(wxT("selected_loop_num"), val); set_curr_loop ((int) val); } } void MainPanel::update_syncto_choice() { float val = 0.0f; _loop_control->get_global_value(wxT("sync_source"), val); long data = (long) roundf(val); int index = -1; // BrotherSync = -4, // InternalTempoSync = -3, // MidiClockSync = -2, // JackSync = -1, // NoSync = 0 wxString sval; ChoiceBox::ChoiceList chlist; _sync_choice->get_choices(chlist); int i=0; for (ChoiceBox::ChoiceList::iterator iter = chlist.begin(); iter != chlist.end(); ++iter, ++i) { if ((*iter).second == data) { index = i; break; } } _sync_choice->set_index_value (index); } void MainPanel::OnHide(wxCommandEvent &event) { } void MainPanel::OnSize(wxSizeEvent & event) { event.Skip(); } void MainPanel::OnPaint(wxPaintEvent & event) { event.Skip(); } void MainPanel::OnIdle(wxIdleEvent& event) { if (_got_new_data) { //cerr << "idle update" << endl; _loop_control->update_values(); for (unsigned int i=0; i < _looper_panels.size(); ++i) { _looper_panels[i]->update_controls(); } update_controls(); _got_new_data = 0; } //event.Skip(); } void MainPanel::save_default_midibindings () { wxString dirname = _rcdir; if ( ! wxDirExists(dirname) ) { if (!wxMkdir ( dirname, 0755 )) { printf ("Error creating %s\n", static_cast (dirname.mb_str())); return; } } _loop_control->save_midi_bindings ( (dirname + wxFileName::GetPathSeparator() + wxT("default_midi.slb"))); } void MainPanel::do_add_loop (const string & type) { LoopControl::SpawnConfig & sconf = _loop_control->get_spawn_config(); if (type == "mono") { _loop_control->post_add_loop (1, sconf.mem_secs, sconf.discrete_io); } else if (type == "stereo") { _loop_control->post_add_loop (2, sconf.mem_secs, sconf.discrete_io); } else { _loop_control->post_add_loop(); } } #define IdAddCustomLoop 34567 void MainPanel::on_modal_dialog_close (wxCommandEvent & ev) { #ifdef __WXMAC__ AddCustomLoopDialog * dial = (AddCustomLoopDialog *)((wxWindowModalDialogEvent *)&ev)->GetDialog(); int retcode = ((wxWindowModalDialogEvent *)&ev)->GetReturnCode(); if (retcode == wxID_OK) { // wxLogError("Num loops: %d numchan: %d secs: %g discrete: %d", dial->num_loops, dial->num_channels, dial->secs_channel, dial->discrete); for (int i=0; i < dial->num_loops; ++i) { //cerr << "adding loop with " << dial->num_channels << " secs: " << dial->secs_channel << endl; _loop_control->post_add_loop (dial->num_channels, dial->secs_channel, dial->discrete); } } #endif } void MainPanel::do_add_custom_loop () { #ifdef __WXMAC__ AddCustomLoopDialog * dial = new AddCustomLoopDialog(this, IdAddCustomLoop); this->Connect(IdAddCustomLoop, wxEVT_WINDOW_MODAL_DIALOG_CLOSED, wxCommandEventHandler(MainPanel::on_modal_dialog_close)); dial->CentreOnParent(); dial->ShowWindowModal(); //dial->Show(); #else AddCustomLoopDialog * dial = new AddCustomLoopDialog(this); dial->CentreOnParent(); // it takes care of itself if (dial->ShowModal() == wxID_OK) { for (int i=0; i < dial->num_loops; ++i) { //cerr << "adding loop with " << dial->num_channels << " secs: " << dial->secs_channel << endl; _loop_control->post_add_loop (dial->num_channels, dial->secs_channel, dial->discrete); } } delete dial; #endif } void MainPanel::do_remove_loop () { _loop_control->post_remove_loop(); } void MainPanel::on_bind_request (wxString val) { MidiBindInfo info; bool donothing = false; info.channel = 0; info.type = "cc"; info.command = "set"; info.instance = -2; info.lbound = 0.0; info.ubound = 1.0; info.style = MidiBindInfo::NormalStyle; if (val == wxT("tempo")) { info.lbound = 20.0f; info.ubound = 274.0f; info.control = "tempo"; } else if (val == wxT("taptempo")) { info.control = "tap_tempo"; } else if (val == wxT("eighth")) { info.control = "eighth_per_cycle"; info.lbound = 1.0f; info.ubound = 128.0f; } else if (val == wxT("fade_samples")) { info.control = "fade_samples"; info.lbound = 0.0f; info.ubound = 16384.0f; } else if (val == wxT("dry")) { info.control = "dry"; info.style = MidiBindInfo::GainStyle; } else if (val == wxT("wet")) { info.control = "wet"; info.style = MidiBindInfo::GainStyle; } else if (val == wxT("input_gain")) { info.control = "input_gain"; info.style = MidiBindInfo::GainStyle; } else if (val == wxT("round")) { info.instance = -1; info.control = "round"; } else if (val == wxT("sync")) { info.control = "sync_source"; info.lbound = -3.0f; info.ubound = 16.0f; } else if (val == wxT("quantize")) { info.instance = -1; info.control = "quantize"; info.lbound = 0.0f; info.ubound = 3.0f; } else if (val == wxT("mute_quantized")) { info.control = "mute_quantized"; info.instance = -1; } else if (val == wxT("overdub_quantized")) { info.control = "overdub_quantized"; info.instance = -1; } else if (val == wxT("replace_quantized")) { info.control = "replace_quantized"; info.instance = -1; } else if (val == wxT("smart_eighths")) { info.control = "smart_eighths"; info.instance = -1; } else { donothing = true; } if (!donothing) { _loop_control->learn_midi_binding(info, true); } } void MainPanel::on_tempo_change (float value) { _loop_control->post_global_ctrl_change (wxT("tempo"), value); } void MainPanel::on_eighth_change (float value) { _loop_control->post_global_ctrl_change (wxT("eighth_per_cycle"), value); } void MainPanel::on_xfade_change (float value) { _loop_control->post_ctrl_change (-1, wxT("fade_samples"), value); } void MainPanel::on_dry_change (float value) { //_loop_control->post_global_ctrl_change (wxT("dry"), value); _loop_control->post_ctrl_change (-2, wxT("dry"), value); } void MainPanel::on_wet_change (float value) { _loop_control->post_global_ctrl_change (wxT("wet"), value); } void MainPanel::on_ingain_change (float value) { _loop_control->post_global_ctrl_change (wxT("input_gain"), value); } void MainPanel::on_syncto_change (int index, wxString val) { // BrotherSync = -4, // InternalTempoSync = -3, // MidiClockSync = -2, // JackSync = -1, // NoSync = 0 // >0 is loop number float value = 0.0f; value = (float) _sync_choice->get_data_value(); _loop_control->post_global_ctrl_change (wxT("sync_source"), value); } void MainPanel::on_quantize_change (int index, wxString val) { // 0 is none, 1 is cycle, 2 is eighth, 3 is loop // send for all loops _loop_control->post_ctrl_change (-1, wxT("quantize"), (float) index); } void MainPanel::on_round_check (bool val) { // send for all loops _loop_control->post_ctrl_change (-1, wxT("round"), val ? 1.0f: 0.0f); } void MainPanel::on_mute_quant_check (bool val) { // send for all loops _loop_control->post_ctrl_change (-1, wxT("mute_quantized"), val ? 1.0f: 0.0f); } void MainPanel::on_odub_quant_check (bool val) { // send for all loops _loop_control->post_ctrl_change (-1, wxT("overdub_quantized"), val ? 1.0f: 0.0f); } void MainPanel::on_repl_quant_check (bool val) { // send for all loops cerr << "on replace quan check" << endl; _loop_control->post_ctrl_change (-1, wxT("replace_quantized"), val ? 1.0f: 0.0f); } void MainPanel::on_smart_eighths_check (bool val) { // send for all loops _loop_control->post_global_ctrl_change (wxT("smart_eighths"), val ? 1.0f: 0.0f); } void MainPanel::on_relsync_check (bool val) { // send for all loops _loop_control->post_ctrl_change (-1, wxT("relative_sync"), val ? 1.0f: 0.0f); } void MainPanel::on_taptempo_press (int button) { // needs to be a normal ctrl change for RTness _loop_control->post_ctrl_change (-2, wxT("tap_tempo"), 1.0f); } void MainPanel::on_taptempo_release (int button) { if (button == PixButton::MiddleButton) { _loop_control->post_ctrl_change (-2, wxT("tap_tempo"), 1.0f); } } void MainPanel::process_key_event (wxKeyEvent &ev) { // this is a pretty extreme hack // to let textfields, etc named with the right name // get their key events static wxString textname = wxT("KeyAware"); //cerr << "got " << ev.GetKeyCode() << endl; wxWindow * focwin = wxWindow::FindFocus(); if (focwin && (focwin->GetName() == textname || (focwin->GetParent() && ((focwin->GetParent()->GetName() == textname) || (focwin->GetParent()->GetParent() && focwin->GetParent()->GetParent()->GetName() == textname))))) { ev.Skip(); } else { _keyboard->process_key_event (ev); } } void MainPanel::intialize_keybindings () { _keyboard->add_action ("record", bind (mem_fun (*this, &MainPanel::command_action), wxT("record"))); _keyboard->add_action ("overdub", bind (mem_fun (*this, &MainPanel::command_action), wxT("overdub"))); _keyboard->add_action ("multiply", bind (mem_fun (*this, &MainPanel::command_action), wxT("multiply"))); _keyboard->add_action ("insert", bind (mem_fun (*this, &MainPanel::command_action), wxT("insert"))); _keyboard->add_action ("replace", bind (mem_fun (*this, &MainPanel::command_action), wxT("replace"))); _keyboard->add_action ("reverse", bind (mem_fun (*this, &MainPanel::command_action), wxT("reverse"))); _keyboard->add_action ("scratch", bind (mem_fun (*this, &MainPanel::command_action), wxT("scratch"))); _keyboard->add_action ("substitute", bind (mem_fun (*this, &MainPanel::command_action), wxT("substitute"))); _keyboard->add_action ("mute", bind (mem_fun (*this, &MainPanel::command_action), wxT("mute"))); _keyboard->add_action ("mute_on", bind (mem_fun (*this, &MainPanel::command_action), wxT("mute_on"))); _keyboard->add_action ("mute_off", bind (mem_fun (*this, &MainPanel::command_action), wxT("mute_off"))); _keyboard->add_action ("mute_trigger", bind (mem_fun (*this, &MainPanel::command_action), wxT("mute_trigger"))); _keyboard->add_action ("undo", bind (mem_fun (*this, &MainPanel::command_action), wxT("undo"))); _keyboard->add_action ("redo", bind (mem_fun (*this, &MainPanel::command_action), wxT("redo"))); _keyboard->add_action ("undo_all", bind (mem_fun (*this, &MainPanel::command_action), wxT("undo_all"))); _keyboard->add_action ("redo_all", bind (mem_fun (*this, &MainPanel::command_action), wxT("redo_all"))); _keyboard->add_action ("oneshot", bind (mem_fun (*this, &MainPanel::command_action), wxT("oneshot"))); _keyboard->add_action ("trigger", bind (mem_fun (*this, &MainPanel::command_action), wxT("trigger"))); _keyboard->add_action ("pause", bind (mem_fun (*this, &MainPanel::command_action), wxT("pause"))); _keyboard->add_action ("pause_on", bind (mem_fun (*this, &MainPanel::command_action), wxT("pause_on"))); _keyboard->add_action ("pause_off", bind (mem_fun (*this, &MainPanel::command_action), wxT("pause_off"))); _keyboard->add_action ("solo", bind (mem_fun (*this, &MainPanel::command_action), wxT("solo"))); _keyboard->add_action ("solo_prev", bind (mem_fun (*this, &MainPanel::command_action), wxT("solo_prev"))); _keyboard->add_action ("solo_next", bind (mem_fun (*this, &MainPanel::command_action), wxT("solo_next"))); _keyboard->add_action ("record_solo", bind (mem_fun (*this, &MainPanel::command_action), wxT("record_solo"))); _keyboard->add_action ("record_solo_prev", bind (mem_fun (*this, &MainPanel::command_action), wxT("record_solo_prev"))); _keyboard->add_action ("record_solo_next", bind (mem_fun (*this, &MainPanel::command_action), wxT("record_solo_next"))); _keyboard->add_action ("set_sync_pos", bind (mem_fun (*this, &MainPanel::command_action), wxT("set_sync_pos"))); _keyboard->add_action ("reset_sync_pos", bind (mem_fun (*this, &MainPanel::command_action), wxT("reset_sync_pos"))); _keyboard->add_action ("record_or_overdub", bind (mem_fun (*this, &MainPanel::command_action), wxT("record_or_overdub"))); _keyboard->add_action ("record_exclusive", bind (mem_fun (*this, &MainPanel::command_action), wxT("record_exclusive"))); _keyboard->add_action ("record_exclusive_next", bind (mem_fun (*this, &MainPanel::command_action), wxT("record_exclusive_next"))); _keyboard->add_action ("record_exclusive_prev", bind (mem_fun (*this, &MainPanel::command_action), wxT("record_exclusive_prev"))); _keyboard->add_action ("record_or_overdub_excl", bind (mem_fun (*this, &MainPanel::command_action), wxT("record_or_overdub_excl"))); _keyboard->add_action ("record_or_overdub_excl_next", bind (mem_fun (*this, &MainPanel::command_action), wxT("record_or_overdub_excl_next"))); _keyboard->add_action ("record_or_overdub_excl_prev", bind (mem_fun (*this, &MainPanel::command_action), wxT("record_or_overdub_excl_prev"))); _keyboard->add_action ("record_or_overdub_solo", bind (mem_fun (*this, &MainPanel::command_action), wxT("record_or_overdub_solo"))); _keyboard->add_action ("record_or_overdub_solo_next", bind (mem_fun (*this, &MainPanel::command_action), wxT("record_or_overdub_solo_next"))); _keyboard->add_action ("record_or_overdub_solo_prev", bind (mem_fun (*this, &MainPanel::command_action), wxT("record_or_overdub_solo_prev"))); _keyboard->add_action ("record_overdub_end_solo", bind (mem_fun (*this, &MainPanel::command_action), wxT("record_overdub_end_solo"))); _keyboard->add_action ("record_overdub_end_solo_trig", bind (mem_fun (*this, &MainPanel::command_action), wxT("record_overdub_end_solo_trig"))); _keyboard->add_action ("delay", bind (mem_fun (*this, &MainPanel::misc_action), wxT("delay"))); _keyboard->add_action ("taptempo", bind (mem_fun (*this, &MainPanel::misc_action), wxT("taptempo"))); _keyboard->add_action ("load", bind (mem_fun (*this, &MainPanel::misc_action), wxT("load"))); _keyboard->add_action ("save", bind (mem_fun (*this, &MainPanel::misc_action), wxT("save"))); _keyboard->add_action ("cancel_midi_learn", bind (mem_fun (*this, &MainPanel::misc_action), wxT("cancel_learn"))); _keyboard->add_action ("select_prev_loop", bind (mem_fun (*this, &MainPanel::select_loop_action), -2)); _keyboard->add_action ("select_next_loop", bind (mem_fun (*this, &MainPanel::select_loop_action), -1)); _keyboard->add_action ("select_loop_1", bind (mem_fun (*this, &MainPanel::select_loop_action), 1)); _keyboard->add_action ("select_loop_2", bind (mem_fun (*this, &MainPanel::select_loop_action), 2)); _keyboard->add_action ("select_loop_3", bind (mem_fun (*this, &MainPanel::select_loop_action), 3)); _keyboard->add_action ("select_loop_4", bind (mem_fun (*this, &MainPanel::select_loop_action), 4)); _keyboard->add_action ("select_loop_5", bind (mem_fun (*this, &MainPanel::select_loop_action), 5)); _keyboard->add_action ("select_loop_6", bind (mem_fun (*this, &MainPanel::select_loop_action), 6)); _keyboard->add_action ("select_loop_7", bind (mem_fun (*this, &MainPanel::select_loop_action), 7)); _keyboard->add_action ("select_loop_8", bind (mem_fun (*this, &MainPanel::select_loop_action), 8)); _keyboard->add_action ("select_loop_9", bind (mem_fun (*this, &MainPanel::select_loop_action), 9)); _keyboard->add_action ("select_loop_all", bind (mem_fun (*this, &MainPanel::select_loop_action), 0)); // these are the defaults... they get overridden by rc file _keyboard->add_binding ("r", "record"); _keyboard->add_binding ("o", "overdub"); _keyboard->add_binding ("x", "multiply"); _keyboard->add_binding ("i", "insert"); _keyboard->add_binding ("p", "replace"); _keyboard->add_binding ("v", "reverse"); _keyboard->add_binding ("m", "mute"); _keyboard->add_binding ("u", "undo"); _keyboard->add_binding ("d", "redo"); _keyboard->add_binding ("s", "scratch"); _keyboard->add_binding ("b", "substitute"); _keyboard->add_binding ("l", "delay"); _keyboard->add_binding ("h", "oneshot"); _keyboard->add_binding (" ", "trigger"); _keyboard->add_binding ("t", "taptempo"); _keyboard->add_binding ("z", "pause"); _keyboard->add_binding ("q", "solo"); _keyboard->add_binding ("Control-s", "save"); _keyboard->add_binding ("Control-o", "load"); _keyboard->add_binding ("escape", "cancel_midi_learn"); _keyboard->add_binding ("1", "select_loop_1"); _keyboard->add_binding ("2", "select_loop_2"); _keyboard->add_binding ("3", "select_loop_3"); _keyboard->add_binding ("4", "select_loop_4"); _keyboard->add_binding ("5", "select_loop_5"); _keyboard->add_binding ("6", "select_loop_6"); _keyboard->add_binding ("7", "select_loop_7"); _keyboard->add_binding ("8", "select_loop_8"); _keyboard->add_binding ("9", "select_loop_9"); _keyboard->add_binding ("0", "select_loop_all"); } void MainPanel::command_action (bool release, wxString cmd) { if (release) { _loop_control->post_up_event (_curr_loop, cmd); } else { _loop_control->post_down_event (_curr_loop, cmd); //cerr << "action " << cmd.ToAscii() << endl; } } void MainPanel::select_loop_action (bool release, int index) { if (release) return; if (index == -2) { // prev loop _loop_control->post_ctrl_change(-2, wxT("select_prev_loop"), (float) 1.0f); } else if (index == -1) { // next loop _loop_control->post_ctrl_change(-2, wxT("select_next_loop"), (float) 1.0f); } else { index--; if (index < (int) _looper_panels.size()) { // send osc control _loop_control->post_ctrl_change(-2, wxT("selected_loop_num"), (float) index); set_curr_loop (index); } } } void MainPanel::misc_action (bool release, wxString cmd) { int index = _curr_loop; // only on press if (release) return; if (index < 0) index = -1; if (cmd == wxT("taptempo")) { on_taptempo_press(1); } else if (cmd == wxT("delay")) { _tapdelay_val *= -1.0f; _loop_control->post_ctrl_change (index, wxString(wxT("tap_trigger")), _tapdelay_val); } else if (cmd == wxT("cancel_learn")) { _loop_control->cancel_midi_learn(); } else if (cmd == wxT("save")) { if (index < 0) { index = 0; } wxString filename = do_file_selector (wxT("Choose file to save loop"), wxT("wav"), wxT("WAVE files (*.wav)|*.wav;*.WAV;*.Wav"), wxSAVE|wxCHANGE_DIR|wxOVERWRITE_PROMPT); if ( !filename.empty() ) { // add .wav if there isn't one already if (filename.size() <= 4 || (filename.size() > 4 && filename.substr(filename.size() - 4, 4) != wxT(".wav"))) { filename += wxT(".wav"); } // todo: specify format _loop_control->post_save_loop (index, filename); } } else if (cmd == wxT("load")) { if (index < 0) { index = 0; } wxString filename = do_file_selector (wxT("Choose file to open"), wxT(""), wxT("*.slsess"), wxOPEN|wxCHANGE_DIR); if ( !filename.empty() ) { _loop_control->post_load_loop (index, filename); } } } bool MainPanel::load_rc() { // open file string configfname(static_cast ((_rcdir + wxFileName::GetPathSeparator() + wxT("gui_config.xml")).fn_str() )); XMLTree configdoc (configfname); if (!configdoc.initialized()) { fprintf (stderr, "Error loading config at %s!\n", configfname.c_str()); return false; } XMLNode * rootNode = configdoc.root(); if (!rootNode || rootNode->name() != "SLConfig") { fprintf (stderr, "Preset root node not found in %s!\n", configfname.c_str()); return false; } XMLNode * bindingsNode = rootNode->find_named_node ("KeyBindings"); if (!bindingsNode ) { fprintf(stderr, "Preset Channels node not found in %s!\n", configfname.c_str()); //return false; } else { _keyboard->set_binding_state (*bindingsNode); } bindingsNode = rootNode->find_named_node ("SpawnConfig"); if (!bindingsNode ) { fprintf(stderr, "SpawnConfig node not found in %s!\n", configfname.c_str()); //return false; } else { _loop_control->get_spawn_config().set_state (*bindingsNode); _loop_control->get_default_spawn_config().set_state (*bindingsNode); } return true; } bool MainPanel::save_rc() { wxString dirname = _rcdir; if ( ! wxDirExists(dirname) ) { if (!wxMkdir ( dirname, 0755 )) { printf ("Error creating %s\n", static_cast (dirname.mb_str())); return false; } } // make xmltree XMLTree configdoc; XMLNode * rootNode = new XMLNode("SLConfig"); rootNode->add_property("version", sooperlooper_version); configdoc.set_root (rootNode); XMLNode * bindingsNode = rootNode->add_child ("KeyBindings"); bindingsNode->add_child_nocopy (_keyboard->get_binding_state()); bindingsNode = rootNode->add_child ("SpawnConfig"); bindingsNode->add_child_nocopy (_loop_control->get_default_spawn_config().get_state()); // write doc to file if (configdoc.write (static_cast ((dirname + wxFileName::GetPathSeparator() + wxT("gui_config.xml")).fn_str()))) { fprintf (stderr, "Stored settings into %s\n", static_cast (dirname.fn_str())); return true; } else { fprintf (stderr, "Failed to store settings into %s\n", static_cast (dirname.fn_str())); return false; } } void MainPanel::set_curr_loop (int index) { if (index < 0) index = -1; _curr_loop = index; // cerr << "got loop index " << _curr_loop << endl; int i=0; for (vector::iterator iter = _looper_panels.begin(); iter != _looper_panels.end(); ++iter, ++i) { if (_curr_loop == i) { (*iter)->set_selected (true); } else { (*iter)->set_selected (false); } } } void MainPanel::do_load_session () { wxString filename = do_file_selector (wxT("Choose session to load"), wxT("*.slsess"), wxT("*.slsess"), wxOPEN|wxCHANGE_DIR); if ( !filename.empty() ) { _loop_control->post_load_session (filename); } } void MainPanel::do_save_session (bool write_audio) { wxString filename = do_file_selector (wxT("Choose file to save session"), wxT("slsess"), wxT("*.slsess"), wxSAVE|wxCHANGE_DIR|wxOVERWRITE_PROMPT); if ( !filename.empty() ) { // add .slsession if there isn't one already if (filename.size() <= 7 || (filename.size() > 7 && filename.substr(filename.size() - 7, 7) != wxT(".slsess"))) { filename += wxT(".slsess"); } _loop_control->post_save_session (filename, write_audio); } } wxString MainPanel::do_file_selector(const wxString & message, const wxString & ext, const wxString & wc, int style) { wxString filestring; _keyboard->set_enabled(false); if (_force_local || _loop_control->is_engine_local()) { wxFileName filename; if (_last_used_path.IsEmpty()) { _last_used_path = filename.GetHomeDir(); } filestring = ::wxFileSelector(message, _last_used_path, wxT(""), ext, wc, style); if (!filestring.IsEmpty()) { filename.Assign(filestring); _last_used_path = filename.GetPath(); } } else { // popup basic filename text entry filestring = ::wxGetTextFromUser(wxString::Format(wxT("%s on remote host '%s'"), message.c_str(), _loop_control->get_engine_host().c_str()) , message); } //cerr << "last used:" << _last_used_path.ToAscii() << endl; _keyboard->set_enabled(true); return filestring; } // @@@@@@@@@@@@@@@@@@@2 int AddCustomLoopDialog::num_loops = 1; int AddCustomLoopDialog::num_channels = 2; float AddCustomLoopDialog::secs_channel = 40.0f; bool AddCustomLoopDialog::discrete = true; AddCustomLoopDialog::AddCustomLoopDialog (MainPanel * parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size) : wxDialog ((wxWindow *)parent, id, title, pos, size, wxCAPTION) { _parent = parent; wxBoxSizer *mainsizer = new wxBoxSizer(wxVERTICAL); wxFlexGridSizer * setsizer = new wxFlexGridSizer(0, 2, 4, 4); wxStaticText * statText = new wxStaticText(this, -1, wxT("# Loops to add:")); setsizer->Add (statText, 0, wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL); _num_loops_spin = new wxSpinCtrl(this, -1, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 16, num_loops); _num_loops_spin->SetValue (num_loops); setsizer->Add (_num_loops_spin, 0); statText = new wxStaticText(this, -1, wxT("# Channels per loop:")); setsizer->Add (statText, 0, wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL); _num_channels_spin = new wxSpinCtrl(this, -1, wxT("2"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 16, num_channels); _num_channels_spin->SetValue (num_channels); setsizer->Add (_num_channels_spin, 0); _discrete_check = new wxCheckBox(this, -1, wxT("Individual Loop Ins/Outs")); _discrete_check->SetValue(discrete); setsizer->Add (_discrete_check, 0); setsizer->Add (1,1,1); statText = new wxStaticText(this, -1, wxT("Loop time (secs minimum):")); setsizer->Add (statText, 0, wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL); _secs_per_channel_spin = new wxSpinCtrl(this, -1, wxT("20"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 4, 1000000, (int)secs_channel); _secs_per_channel_spin->SetValue ((int)secs_channel); setsizer->Add (_secs_per_channel_spin, 0); mainsizer->Add (setsizer, 1, wxEXPAND|wxALL, 6); wxBoxSizer * buttsizer = new wxBoxSizer(wxHORIZONTAL); buttsizer->Add (1,1,1); wxButton * butt = new wxButton(this, wxID_CANCEL, wxT("Cancel")); buttsizer->Add (butt, 0, wxALL, 5); butt = new wxButton(this, wxID_OK, wxT("OK")); buttsizer->Add (butt, 0, wxALL, 5); mainsizer->Add (buttsizer, 0, wxEXPAND|wxALL, 8); this->SetAutoLayout( true ); // tell dialog to use sizer this->SetSizer( mainsizer ); // actually set the sizer mainsizer->Fit( this ); // set size to minimum size as calculated by the sizer mainsizer->SetSizeHints( this ); // set size hints to honour mininum size } // called by wxOK bool AddCustomLoopDialog::TransferDataFromWindow () { // set them num_loops = _num_loops_spin->GetValue(); num_channels = _num_channels_spin->GetValue(); secs_channel = (float) _secs_per_channel_spin->GetValue(); discrete = _discrete_check->GetValue(); return true; } sooperlooper-1.7.3~dfsg0/src/gui/spin_box.hpp0000644000175000017500000001203712230252703017742 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_gui_spin_box__ #define __sooperlooper_gui_spin_box__ #include #include namespace SooperLooperGui { class SpinBox : public wxWindow { public: // ctor(s) SpinBox(wxWindow * parent, wxWindowID id=-1, float lb=0.0f, float ub=1.0f, float val=0.5f, bool midibindable=true, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize); virtual ~SpinBox(); enum ScaleMode { LinearMode = 0, ZeroGainMode }; enum SnapMode { NoSnap = 0, IntegerSnap }; virtual bool SetFont(const wxFont & fnt); void set_bounds (float lb, float ub); void get_bounds (float &lb, float &ub) { lb = _lower_bound; ub = _upper_bound; } void set_value (float val); float get_value (); void set_default_value (float val) { _default_val = val; } float get_default_value () { return _default_val; } void set_label (const wxString &label); wxString get_label () { return _label_str; } void set_units (const wxString &units); wxString get_units () { return _units_str; } void set_scale_mode (ScaleMode mode); ScaleMode get_scale_mode () { return _scale_mode; } void set_snap_mode (SnapMode mode); SnapMode get_snap_mode () { return _snap_mode; } void set_allow_outside_bounds (bool val) { _oob_flag = val; } bool get_allow_outside_bounds () { return _oob_flag; } void set_show_value (bool val) { _showval_flag = val; } bool get_show_value () { return _showval_flag; } void set_bg_color (const wxColour & col); wxColour & get_bg_color () { return _bgcolor; } void set_disabled_bg_color (const wxColour & col); wxColour & get_disabled_bg_color () { return _disabled_bgcolor; } void set_bar_color (const wxColour & col); wxColour & get_bar_color () { return _barcolor; } void set_text_color (const wxColour & col); wxColour & get_text_color () { return _textcolor; } void set_value_color (const wxColour & col); wxColour & get_value_color () { return _valuecolor; } void set_border_color (const wxColour & col); wxColour & get_border_color () { return _bordercolor; } void set_decimal_digits (int num); int get_decimal_digits () { return _decimal_digits; } float get_increment () { return _increment; } void set_increment (float val) { _increment = val; } sigc::signal0 pressed; sigc::signal0 released; sigc::signal1 value_changed; sigc::signal0 bind_request; protected: void OnPaint (wxPaintEvent &ev); void OnSize (wxSizeEvent &ev); void OnMouseEvents (wxMouseEvent &ev); void OnFocusEvent (wxFocusEvent &ev); void draw_area (wxDC & dc); void update_size(); void update_bar_shape(); void show_text_ctrl (); void hide_text_ctrl (); void on_text_event (wxCommandEvent &ev); void on_menu_events (wxCommandEvent &ev); void on_update_timer (wxTimerEvent &ev); void update_value_str(); wxString get_precise_value_str(); int _width, _height; wxBitmap * _backing_store; wxMemoryDC _memdc; wxMenu * _popup_menu; wxColour _bgcolor; wxColour _disabled_bgcolor; wxBrush _bgbrush; wxColour _barcolor; wxColour _overbarcolor; wxBrush _barbrush; wxColour _bordercolor; wxBrush _borderbrush; wxPen _borderpen; wxBrush _linebrush; wxColour _textcolor; wxColour _valuecolor; float _value; float _default_val; float _lower_bound, _upper_bound; float _increment; float _direction; wxString _value_str; wxString _label_str; wxString _units_str; class HidingTextCtrl : public wxTextCtrl { public: HidingTextCtrl (wxWindow* par, wxWindowID id, const wxString & value = wxT(""), const wxPoint & pos = wxDefaultPosition, const wxSize & size = wxDefaultSize, long style = 0) : wxTextCtrl (par, id, value, pos, size, style) {} virtual ~HidingTextCtrl() {} void on_focus_event(wxFocusEvent &ev); private: DECLARE_EVENT_TABLE() }; HidingTextCtrl * _text_ctrl; bool _dragging; bool _ignoretext; long _press_time; float _val_scale; ScaleMode _scale_mode; SnapMode _snap_mode; int _decimal_digits; bool _oob_flag; bool _showval_flag; wxTimer *_update_timer; float _curr_adjust; long _curr_timeout; wxPoint _border_shape[8]; wxPoint _bar_shape[8]; private: // any class wishing to process wxWindows events must use this macro DECLARE_EVENT_TABLE() }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/check_box.hpp0000644000175000017500000000550112230252703020044 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_gui_check_box__ #define __sooperlooper_gui_check_box__ #include #include #include namespace SooperLooperGui { class CheckBox : public wxWindow { public: // ctor(s) CheckBox(wxWindow * parent, wxWindowID id=-1, const wxString & label = wxT(""), bool bindable=false, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize); virtual ~CheckBox(); virtual bool SetFont(const wxFont & fnt); void set_value (bool val); bool get_value () { return _value; } void set_label (const wxString &label); wxString get_label () { return _label_str; } void set_bg_color (const wxColour & col); wxColour & get_bg_color () { return _bgcolor; } void set_bg_border_color (const wxColour & col); wxColour & get_bg_border_color () { return _bgbordercolor; } void set_label_color (const wxColour & col); wxColour & get_label_color () { return _textcolor; } void set_value_color (const wxColour & col); wxColour & get_value_color () { return _valuecolor; } void set_border_color (const wxColour & col); wxColour & get_border_color () { return _bordercolor; } sigc::signal1 value_changed; sigc::signal0 bind_request; protected: void OnPaint (wxPaintEvent &ev); void OnSize (wxSizeEvent &ev); void OnMouseEvents (wxMouseEvent &ev); void OnFocusEvent (wxFocusEvent &ev); void on_menu_events (wxCommandEvent &ev); void draw_area (wxDC & dc); void update_size(); int _width, _height; wxBitmap * _backing_store; wxMemoryDC _memdc; wxString _label_str; wxColour _bgcolor; wxBrush _bgbrush; wxColour _barcolor; wxColour _overbarcolor; wxBrush _barbrush; wxColour _bordercolor; wxColour _bgbordercolor; wxBrush _borderbrush; wxPen _borderpen; wxBrush _valuebrush; wxColour _textcolor; wxColour _pressbarcolor; wxColour _valuecolor; int _boxsize; bool _value; wxMenu * _popup_menu; private: // any class wishing to process wxWindows events must use this macro DECLARE_EVENT_TABLE() }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/looper_panel.hpp0000644000175000017500000001077412230252703020606 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_gui_looper_panel__ #define __sooperlooper_gui_looper_panel__ #include #include #include "loop_control.hpp" namespace SooperLooper { class MidiBindInfo; }; namespace SooperLooperGui { class PixButton; class LoopControl; class TimePanel; class SliderBar; class ChoiceBox; class CheckBox; class MainPanel; class SpinBox; class LooperPanel : public wxPanel, public sigc::trackable { public: // ctor(s) LooperPanel (MainPanel * mainpan, LoopControl * control, wxWindow * parent, wxWindowID id=-1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize); virtual ~LooperPanel(); void set_index(int ind); int get_index() { return _index; } void update_controls(); void set_selected (bool flag); protected: void init(); void post_init(); void create_buttons(); void slider_events(float val, int id); void control_bind_events(int id); void pan_events(float val, int chan); void pan_bind_events(int chan); void check_events(bool val, wxString which); void post_control_event (wxString ctrl, float val); void update_state(); void bind_events(); void pressed_events (int button, wxString cmd); void released_events (int button, wxString cmd); void scratch_events (wxString cmd); void clicked_events (int button, wxString cmd); void button_bind_events (wxString cmd); void delay_button_press_event (int button); void delay_button_release_event (int button); void rate_button_event(int button, float rate); void rate_bind_events (float rate); void update_rate_buttons (float rate); void on_quantize_change (int index, wxString strval); void on_flash_timer (wxTimerEvent &ev); void got_binding_changed(SooperLooper::MidiBindInfo & info); void start_learning(SooperLooper::MidiBindInfo & info); void got_learn_canceled(); wxPanel * _leftSelbar; wxPanel * _rightSelbar; wxPanel * _topSelbar; wxPanel * _bottomSelbar; wxColour _bgcolor; wxColour _selbgcolor; wxColour _learnbgcolor; PixButton * _undo_button; PixButton * _redo_button; PixButton * _record_button; PixButton * _overdub_button; PixButton * _multiply_button; PixButton * _replace_button; PixButton * _delay_button; PixButton * _insert_button; PixButton * _reverse_button; PixButton * _substitute_button; PixButton * _mute_button; PixButton * _pause_button; PixButton * _solo_button; PixButton * _scratch_button; PixButton * _load_button; PixButton * _save_button; PixButton * _once_button; PixButton * _trig_button; PixButton * _1x_button; PixButton * _halfx_button; PixButton * _2x_button; SliderBar * _thresh_control; SliderBar * _feedback_control; SliderBar * _in_gain_control; SliderBar * _dry_control; SliderBar * _wet_control; SliderBar * _scratch_control; SliderBar * _rate_control; SliderBar * _stretch_control; SliderBar * _pitch_control; CheckBox * _quantize_check; CheckBox * _round_check; CheckBox * _sync_check; CheckBox * _play_feed_check; CheckBox * _play_sync_check; CheckBox * _tempo_stretch_check; wxBoxSizer * _maininsizer; CheckBox * _use_main_in_check; ChoiceBox * _quantize_choice; SpinBox * _inlatency_spin; SpinBox * _outlatency_spin; SpinBox * _triglatency_spin; wxBoxSizer * _toppansizer; wxBoxSizer * _botpansizer; SliderBar ** _panners; wxStaticText *_index_text; TimePanel * _time_panel; LoopControl * _loop_control; MainPanel * _mainpanel; int _index; int _chan_count; SooperLooper::LooperState _last_state; float _tap_val; bool _learning; bool _scratch_pressed; bool _has_discrete_io; bool _waiting; PixButton * _flashing_button; wxTimer * _flash_timer; private: // any class wishing to process wxWindows events must use this macro DECLARE_EVENT_TABLE() }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/choice_box.hpp0000644000175000017500000000651412230252703020226 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_gui_choice_box__ #define __sooperlooper_gui_choice_box__ #include #include #include namespace SooperLooperGui { class ChoiceBox : public wxWindow { public: // ctor(s) ChoiceBox(wxWindow * parent, wxWindowID id=-1, bool bindable=false, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize); virtual ~ChoiceBox(); typedef std::pair ChoiceItem; typedef std::vector ChoiceList; void append_choice (const wxString & item, long data=0); void clear_choices (); void get_choices (ChoiceList & clist); virtual bool SetFont(const wxFont & fnt); void set_label (const wxString &label); wxString get_label () { return _label_str; } void set_string_value (const wxString &val); wxString get_string_value (); long get_data_value (); void set_index_value (int ind); int get_index_value () { return _curr_index; } void set_bg_color (const wxColour & col); wxColour & get_bg_color () { return _bgcolor; } void set_bg_border_color (const wxColour & col); wxColour & get_bg_border_color () { return _bgbordercolor; } void set_label_color (const wxColour & col); wxColour & get_label_color () { return _textcolor; } void set_value_color (const wxColour & col); wxColour & get_value_color () { return _valuecolor; } void set_border_color (const wxColour & col); wxColour & get_border_color () { return _bordercolor; } sigc::signal2 value_changed; sigc::signal0 bind_request; protected: void OnPaint (wxPaintEvent &ev); void OnSize (wxSizeEvent &ev); void OnMouseEvents (wxMouseEvent &ev); void OnFocusEvent (wxFocusEvent &ev); void draw_area (wxDC & dc); void ensure_popup (bool force_build=false); void on_menu_item (wxCommandEvent &ev); void update_size(); void update_value_str(); int _width, _height; wxBitmap * _backing_store; wxMemoryDC _memdc; wxColour _bgcolor; wxBrush _bgbrush; wxColour _barcolor; wxColour _overbarcolor; wxBrush _barbrush; wxColour _bordercolor; wxColour _bgbordercolor; wxBrush _borderbrush; wxPen _borderpen; wxBrush _linebrush; wxColour _textcolor; wxColour _valuecolor; float _value; float _lower_bound, _upper_bound; int _curr_index; wxString _value_str; wxString _label_str; long _data_value; ChoiceList _choices; wxMenu * _popup_menu; bool _bindable; bool _dragging; int _last_x; private: // any class wishing to process wxWindows events must use this macro DECLARE_EVENT_TABLE() }; }; #endif sooperlooper-1.7.3~dfsg0/src/gui/._main_panel.hpp0000644000175000017500000000025312274213733020446 0ustar miramiraMac OS X  2y«ATTR«œœcom.apple.TextEncodingutf-8;134217984sooperlooper-1.7.3~dfsg0/src/gui/loop_control.cpp0000644000175000017500000013061012143570646020637 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include "loop_control.hpp" #include #include #include #include #include #include #include "plugin.hpp" using namespace std; using namespace SooperLooperGui; using namespace SooperLooper; #define DEFAULT_OSC_PORT 9951 LoopControl::SpawnConfig::SpawnConfig(const wxString & nm) : name(nm), host(""), port(DEFAULT_OSC_PORT), num_loops(1), num_channels(2), mem_secs(40.0f), discrete_io(true), exec_name("sooperlooper"), midi_bind_path(""), force_spawn(false), never_spawn(false), never_timeout(false), jack_name("") { } XMLNode& LoopControl::SpawnConfig::get_state () const { char buf[40]; XMLNode *node = new XMLNode ("context"); node->add_property ("name", (const char *) name.ToAscii()); node->add_property ("host", host); snprintf(buf, sizeof(buf), "%ld", port); node->add_property ("port", buf); snprintf(buf, sizeof(buf), "%ld", num_loops); node->add_property ("num_loops", buf); snprintf(buf, sizeof(buf), "%ld", num_channels); node->add_property ("num_channels", buf); snprintf(buf, sizeof(buf), "%f", mem_secs); node->add_property ("mem_secs", buf); node->add_property ("discrete_io", discrete_io ? "yes": "no"); node->add_property ("exec_name", exec_name); node->add_property ("jack_name", jack_name); node->add_property ("jack_serv_name", jack_serv_name); node->add_property ("midi_bind_path", midi_bind_path); node->add_property ("session_path", session_path); node->add_property ("force_spawn", force_spawn ? "yes": "no"); node->add_property ("never_timeout", never_timeout ? "yes": "no"); return *node; } int LoopControl::SpawnConfig::set_state (const XMLNode& node) { XMLNodeList nlist = node.children(); XMLNodeConstIterator niter; XMLNode *child_node; wxString tmpstr; for (niter = nlist.begin(); niter != nlist.end(); ++niter) { child_node = *niter; if (child_node->name() == "context") { XMLProperty *prop; if ((prop = child_node->property ("name")) != 0) { name = wxString::FromAscii(prop->value().c_str()); } if ((prop = child_node->property ("host")) != 0) { host = prop->value(); } if ((prop = child_node->property ("port")) != 0) { port = atol (prop->value().c_str()); } if ((prop = child_node->property ("num_loops")) != 0) { num_loops = atol (prop->value().c_str()); } if ((prop = child_node->property ("num_channels")) != 0) { num_channels = atol (prop->value().c_str()); } if ((prop = child_node->property ("mem_secs")) != 0) { mem_secs = atof (prop->value().c_str()); } if ((prop = child_node->property ("discrete_io")) != 0) { if (prop->value() == "yes") { discrete_io = true; } else { discrete_io = false; } } if ((prop = child_node->property ("exec_name")) != 0) { exec_name = prop->value(); } if ((prop = child_node->property ("jack_name")) != 0) { jack_name = prop->value(); } if ((prop = child_node->property ("jack_serv_name")) != 0) { jack_serv_name = prop->value(); } if ((prop = child_node->property ("midi_bind_path")) != 0) { midi_bind_path = prop->value(); } if ((prop = child_node->property ("session_path")) != 0) { session_path = prop->value(); } if ((prop = child_node->property ("force_spawn")) != 0) { if (prop->value() == "yes") { force_spawn = true; } else { force_spawn = false; } } /* if ((prop = child_node->property ("never_timeout")) != 0) { if (prop->value() == "yes") { never_timeout = true; } else { never_timeout = false; } } */ break; } } return 0; } LoopControl::LoopControl (const wxString & rcdir) : _spawn_config(wxT("current")), _default_spawn_config(wxT("default")) { _osc_traffic_thread = 0; _osc_addr = 0; _midi_bindings = new MidiBindings(); _rcdir = rcdir; _sentinel = true; _lastchance = false; _we_spawned = false; _engine_id = 0; setup_param_map(); _osc_server = lo_server_new(NULL, NULL); if (!_osc_server) return; char * tmpstr; tmpstr = lo_server_get_url (_osc_server); _our_url = tmpstr; free (tmpstr); _our_port = lo_server_get_port(_osc_server); cerr << "slgui: our URL is " << _our_url << endl; /* add handler for control param callbacks, first is loop index , 2nd arg ctrl string, 3nd arg value */ lo_server_add_method(_osc_server, "/ctrl", "isf", LoopControl::_control_handler, this); // pingack expects: s:engine_url s:version i:loopcount lo_server_add_method(_osc_server, "/pingack", "ssi", LoopControl::_pingack_handler, this); lo_server_add_method(_osc_server, "/pingack", "ssii", LoopControl::_pingack_handler, this); lo_server_add_method(_osc_server, "/alive_resp", "ssi", LoopControl::_alive_handler, this); lo_server_add_method(_osc_server, "/alive_resp", "ssii", LoopControl::_alive_handler, this); lo_server_add_method(_osc_server, "/error", "ss", LoopControl::_error_handler, this); /* add handler for recving midi bindings, s:status s:serialized binding */ lo_server_add_method(_osc_server, "/recv_midi_bindings", "ss", LoopControl::_midi_binding_handler, this); _pingack = false; _waiting = 0; _failed = false; _engine_pid = 0; _updatetimer = new LoopUpdateTimer(this); init_traffic_thread(); } LoopControl::~LoopControl() { terminate_traffic_thread(); disconnect(false); if (_osc_server) { lo_server_free (_osc_server); } delete _updatetimer; delete _midi_bindings; } bool LoopControl::init_traffic_thread() { // thread for watching for new osc traffic _traffic_done = false; if (pipe (_traffic_request_pipe)) { cerr << "Cannot create midi request signal pipe" << strerror (errno) << endl; return false; } if (fcntl (_traffic_request_pipe[0], F_SETFL, O_NONBLOCK)) { cerr << "UI: cannot set O_NONBLOCK on signal read pipe " << strerror (errno) << endl; return false; } if (fcntl (_traffic_request_pipe[1], F_SETFL, O_NONBLOCK)) { cerr << "UI: cannot set O_NONBLOCK on signal write pipe " << strerror (errno) << endl; return false; } pthread_create (&_osc_traffic_thread, NULL, &LoopControl::_osc_traffic, this); if (!_osc_traffic_thread) { return false; } return true; } void LoopControl::terminate_traffic_thread () { void* status; char c = 0; _traffic_done = true; if (write (_traffic_request_pipe[1], &c, 1) != 1) { cerr << "cannot send signal to traffic thread! " << strerror (errno) << endl; } pthread_join (_osc_traffic_thread, &status); close(_traffic_request_pipe[0]); close(_traffic_request_pipe[1]); } void LoopControl::setup_param_map() { state_map[LooperStateOff] = wxT("off"); state_map[LooperStateOffMuted] = wxT("off"); state_map[LooperStateWaitStart] = wxT("waiting start"); state_map[LooperStateRecording] = wxT("recording"); state_map[LooperStateWaitStop] = wxT("waiting stop"); state_map[LooperStatePlaying] = wxT("playing"); state_map[LooperStateOverdubbing] = wxT("overdubbing"); state_map[LooperStateMultiplying] = wxT("multiplying"); state_map[LooperStateInserting] = wxT("inserting"); state_map[LooperStateReplacing] = wxT("replacing"); state_map[LooperStateDelay] = wxT("delay"); state_map[LooperStateMuted] = wxT("muted"); state_map[LooperStatePaused] = wxT("paused"); state_map[LooperStateScratching] = wxT("scratching"); state_map[LooperStateOneShot] = wxT("one shot"); state_map[LooperStateSubstitute] = wxT("substituting"); } bool LoopControl::connect() { if (_osc_addr) { lo_address_free (_osc_addr); } if (_spawn_config.host.empty()) { _osc_addr = lo_address_new(NULL, (const char *) wxString::Format(wxT("%ld"), _spawn_config.port).ToAscii()); } else { _osc_addr = lo_address_new((const char *)_spawn_config.host.c_str(), (const char *) wxString::Format(wxT("%ld"), _spawn_config.port).ToAscii()); } //cerr << "osc errstr: " << lo_address_errstr(_osc_addr) << endl; // if the spawn_config host string is 127.0.0.1 or localhost, make our_url match it if (_spawn_config.host == "127.0.0.1" || _spawn_config.host == "localhost") { char tmpbuf[100]; snprintf (tmpbuf, sizeof(tmpbuf), "osc.udp://localhost:%d/", _our_port); _our_url = tmpbuf; cerr << "Changing our url to be : " << _our_url << endl; } _pingack = false; _registeredauto_loop_map.clear(); _registeredin_loop_map.clear(); if (!_spawn_config.force_spawn) { // send off a ping. set a timer, if we don't have a response, we'll start our own locally _waiting = 0; lo_send(_osc_addr, "/ping", "ssi", _our_url.c_str(), "/pingack", 1); //cerr << "sending ping" << endl; _updatetimer->Start(700, true); } // spawn now else if (!_spawn_config.never_spawn && spawn_looper()) { //cerr << "immediate spawn" << endl; _waiting = 1; _updatetimer->Start(100, true); } else { return false; } return true; } void LoopControl::register_global_updates(bool unreg) { char buf[50]; if (!_osc_addr) return; if (unreg) { snprintf(buf, sizeof(buf), "/unregister_update"); } else { snprintf(buf, sizeof(buf), "/register_update"); } // results will come back with instance = -2 lo_send(_osc_addr, buf, "sss", "tempo", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "sync_source", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "eighth_per_cycle", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "tap_tempo", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "wet", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "dry", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "input_gain", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "auto_disable_latency", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "output_midi_clock", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "use_midi_stop", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "use_midi_start", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "send_midi_start_on_trigger", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "smart_eighths", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "selected_loop_num", _our_url.c_str(), "/ctrl"); if (unreg) { lo_send(_osc_addr, "/unregister_auto_update", "siss", "in_peak_meter", 100, _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, "/unregister_auto_update", "siss", "out_peak_meter", 100, _our_url.c_str(), "/ctrl"); } else { lo_send(_osc_addr, "/register_auto_update", "siss", "in_peak_meter", 100, _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, "/register_auto_update", "siss", "out_peak_meter", 100, _our_url.c_str(), "/ctrl"); } } bool LoopControl::disconnect (bool killit) { if (_osc_addr) { register_global_updates(true); // unregister if (killit) { send_quit(); } lo_address_free (_osc_addr); _osc_addr = 0; } _osc_url = ""; _we_spawned = false; Disconnected(); // emit return true; } void * LoopControl::_osc_traffic (void *arg) { LoopControl * lc = static_cast(arg); lc->osc_traffic(); return 0; } void LoopControl::osc_traffic() { // our only job here in this thread is // to send updates when new data comes in on the osc port int oscfd = lo_server_get_socket_fd(_osc_server); struct pollfd pfd[2]; int timeout = -1; int nfds = 2; struct timespec nsleep = { 0, 20000000 }; pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, NULL); pfd[0].fd = _traffic_request_pipe[0]; pfd[0].events = POLLIN|POLLHUP|POLLERR; pfd[1].fd = oscfd; pfd[1].events = POLLIN|POLLHUP|POLLERR; while (!_traffic_done) { pfd[0].fd = _traffic_request_pipe[0]; pfd[0].events = POLLIN|POLLHUP|POLLERR; pfd[1].fd = oscfd; pfd[1].events = POLLIN|POLLHUP|POLLPRI|POLLERR; pthread_testcancel(); if (poll (pfd, nfds, timeout) < 0) { if (errno == EINTR) { /* gdb at work, perhaps */ // goto again; } cerr << "OSC thread poll failed: " << strerror (errno) << endl; continue; } if (_traffic_done) { break; } if (nfds > 1 && (pfd[1].revents & POLLIN)) { // emit signal // cerr << "got new data" << endl; NewDataReady(); // emit } // sleep for a bit to give someone the chance to read it nanosleep (&nsleep, NULL); } } bool LoopControl::is_engine_local() { // compare host parts of osc_url and our_url bool ret = false; char * remhost = lo_url_get_hostname(_osc_url.c_str()); char * lochost = lo_url_get_hostname(_our_url.c_str()); // cerr << "osc: " << _osc_url << " remhost: " << remhost << " lochost: " << lochost << endl; if (_host == wxT("0.0.0.0") || // special case ridiculous mac-ness (remhost && lochost && (strncmp(remhost, lochost, 30) == 0))) { ret = true; } if (remhost) { free(remhost); } if (lochost) { free(lochost); } return ret; } void LoopControl::pingtimer_expired() { update_values(); // check state of pingack if (_pingack) { // cerr << "got ping response" << endl; } else if (_waiting > 0) { if (_waiting > 80) { if (_lastchance) { // give up cerr << "slgui: gave up on spawned engine" << endl; if (_osc_addr) { lo_address_free(_osc_addr); } _osc_addr = 0; _failed = true; ConnectFailed("No response from SooperLooper engine process.\nPlease make sure the JACK server is running.\nAlso check that the system's hostname resolves properly."); // emit } else { // last ditch effort with 127.0.0.1 all around _osc_addr = lo_address_new("127.0.0.1", (const char *) wxString::Format(wxT("%ld"), _spawn_config.port).ToAscii()); char tmpbuf[100]; int sport = lo_server_get_port (_osc_server); snprintf (tmpbuf, sizeof(tmpbuf), "osc.udp://127.0.0.1:%d/", sport); _our_url = tmpbuf; //cerr << "last chance effort: with oururl " << _our_url << endl; // send off a ping. _pingack = false; _waiting = 60; lo_send(_osc_addr, "/ping", "ssi", _our_url.c_str(), "/pingack", 1); _lastchance = 1; _updatetimer->Start(100, true); } } else { // cerr << "waiting" << endl; _waiting++; // lo_send(_osc_addr, "/ping", "ss", _our_url.c_str(), "/pingack"); _updatetimer->Start(100, true); } } else { // lets try to spawn our own if (!_spawn_config.never_spawn && spawn_looper()) { cerr << "slgui: spawned new engine" << endl; _updatetimer->Start(100, true); _waiting = 1; } else if (!_spawn_config.never_timeout) { //cerr << "execute failed" << endl; if (_osc_addr) { lo_address_free(_osc_addr); } _osc_addr = 0; _failed = true; if (!_spawn_config.never_spawn) { ConnectFailed("Execution of SooperLooper engine process failed."); // emit } } } } bool LoopControl::spawn_looper() { // use wxExecute char tmpbuf[300]; string cmdstr = _spawn_config.exec_name; if (cmdstr.empty()) { cmdstr = "sooperlooper"; // always force something } snprintf(tmpbuf, sizeof(tmpbuf), " -q -U %s -p %ld -l %ld -c %ld -t %d", _our_url.c_str(), _spawn_config.port, _spawn_config.num_loops, _spawn_config.num_channels, (int) _spawn_config.mem_secs ); cmdstr += tmpbuf; if (!_spawn_config.midi_bind_path.empty()) { snprintf(tmpbuf, sizeof(tmpbuf), " -m \"%s\"", _spawn_config.midi_bind_path.c_str()); cmdstr += tmpbuf; } else { // try default //wxString defpath = (_rcdir + wxFileName::GetPathSeparator() + wxT("default_midi.slb")); //cmdstr += wxString::Format(wxT(" -m \"%s\""), defpath.c_str()); string defpath = string(_rcdir.fn_str()) + "/" + "default_midi.slb"; snprintf(tmpbuf, sizeof(tmpbuf), " -m \"%s\"", defpath.c_str()); cmdstr += tmpbuf; } if (!_spawn_config.jack_name.empty()) { //cmdstr += wxString::Format(wxT(" -j \"%s\""), _spawn_config.jack_name.c_str()); snprintf(tmpbuf, sizeof(tmpbuf), " -j \"%s\"", _spawn_config.jack_name.c_str()); cmdstr += tmpbuf; } if (!_spawn_config.jack_serv_name.empty()) { //cmdstr += wxString::Format(wxT(" -S \"%s\""), _spawn_config.jack_serv_name.c_str()); snprintf(tmpbuf, sizeof(tmpbuf), " -S \"%s\"", _spawn_config.jack_serv_name.c_str()); cmdstr += tmpbuf; } if (!_spawn_config.discrete_io) { //cmdstr += wxString::Format(wxT(" -D \"no\"")); snprintf(tmpbuf, sizeof(tmpbuf), " -D no"); cmdstr += tmpbuf; } if (!_spawn_config.session_path.empty()) { //cmdstr += wxString::Format(wxT(" -L \"%s\""), _spawn_config.session_path.c_str()); cerr << "session path not empty when spawning: " << _spawn_config.session_path << endl; snprintf(tmpbuf, sizeof(tmpbuf), " -L \"%s\"", _spawn_config.session_path.c_str()); cmdstr += tmpbuf; } //#ifdef DEBUG cerr << "execing: '" << cmdstr.c_str() << "'" << endl << endl; //#endif _engine_pid = wxExecute(wxString::FromAscii(cmdstr.c_str()), wxEXEC_ASYNC|wxEXEC_MAKE_GROUP_LEADER); #ifdef DEBUG cerr << "pid is " << _engine_pid << endl; #endif if (_engine_pid > 0) { _we_spawned = true; } return _engine_pid > 0; } int LoopControl::_pingack_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { LoopControl * lc = static_cast (user_data); return lc->pingack_handler (path, types, argv, argc, data); } int LoopControl::pingack_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { // s:hosturl s:version i:loopcount string hosturl(&argv[0]->s); string version(&argv[1]->s); int loopcount = argv[2]->i; int uid = 0; char tmpbuf[100]; if (argc > 3) { uid = argv[3]->i; } cerr << "slgui: remote looper is at " << hosturl << " version=" << version << " loopcount=" << loopcount << " id=" << uid << endl; if (loopcount < _registeredin_loop_map.size()) { _registeredin_loop_map.erase(_registeredin_loop_map.find(loopcount), _registeredin_loop_map.end()); _registeredauto_loop_map.erase(_registeredauto_loop_map.find(loopcount), _registeredauto_loop_map.end()); } char * remport = lo_url_get_port(hosturl.c_str()); wxString tmpstr = wxString::FromAscii(remport); tmpstr.ToLong(&_spawn_config.port); free(remport); if (_lastchance) { // force a 127.0.0.1 hostname if this was on our last chance //cerr << "forced a 127" << endl; snprintf(tmpbuf, sizeof(tmpbuf), "osc.udp://127.0.0.1:%ld/", _spawn_config.port); _osc_url = tmpbuf; } else { _osc_url = hosturl; } char * remhost = lo_url_get_hostname(_osc_url.c_str()); if (_spawn_config.host.empty() && !_lastchance) { // only if the spawn config host was empty do we use what is returned _host = wxString::FromAscii(remhost); _spawn_config.host = remhost; } else { // use the one given _host = wxString::FromAscii(_spawn_config.host.c_str()); snprintf(tmpbuf, sizeof(tmpbuf), "osc.udp://%s:%ld/", _spawn_config.host.c_str(), _spawn_config.port); _osc_url = tmpbuf; cerr << " but treating the engine URL as " << _osc_url << endl; } free(remhost); _port = (int) _spawn_config.port; if (_osc_addr) { lo_address_free(_osc_addr); } _osc_addr = lo_address_new_from_url (hosturl.c_str()); if (_engine_id != 0 && _engine_id != uid && uid != 0) { cerr << "new engine ID pingacked us!, re-registering" << endl; _pingack = false; } if (uid != 0) { _engine_id = uid; } if (!_pingack) { // register future configs with it once lo_send(_osc_addr, "/register", "ss", _our_url.c_str(), "/pingack"); register_global_updates(); request_all_midi_bindings(); _pingack = true; } LooperConnected (loopcount); // emit return 0; } int LoopControl::_alive_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { LoopControl * lc = static_cast (user_data); return lc->alive_handler (path, types, argv, argc, data); } int LoopControl::alive_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { // s:hosturl s:version i:loopcount [i:id] if (argc > 3) { int uid = argv[3]->i; if (uid != _engine_id && uid != 0) { cerr << "engine changed on us, redoing connections" << endl; return pingack_handler(path, types, argv, argc, data); } } IsAlive(); // emit return 0; } int LoopControl::_error_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { LoopControl * lc = static_cast (user_data); return lc->error_handler (path, types, argv, argc, data); } int LoopControl::error_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { // s:errstr string errsrc(&argv[0]->s); string errstr(&argv[1]->s); ErrorReceived(errstr); // emit return 0; } int LoopControl::_control_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { LoopControl * lc = static_cast (user_data); return lc->control_handler (path, types, argv, argc, data); } int LoopControl::control_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { // loop instance is 1st arg, 2nd is ctrl string, 3rd is float value int index = argv[0]->i; wxString ctrl = wxString::FromAscii(&argv[1]->s); float val = argv[2]->f; // cerr << "got " << ctrl.ToAscii() << " = " << val << " index=" << index << endl; if (index == -2) { // global ctrls if (_global_val_map.find(ctrl) == _global_val_map.end() || _global_val_map[ctrl] != val) { _global_updated[ctrl] = true; } _global_val_map[ctrl] = val; return 0; } else if (index < 0) { return 0; } else if (index >= (int) _params_val_map.size()) { _params_val_map.resize(index + 1); _updated.resize(index + 1); } if (_params_val_map[index].find(ctrl) == _params_val_map[index].end() || _params_val_map[index][ctrl] != val) { _updated[index][ctrl] = true; } _params_val_map[index][ctrl] = val; return 0; } int LoopControl::_midi_binding_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { LoopControl * lc = static_cast (user_data); return lc->midi_binding_handler (path, types, argv, argc, data); } int LoopControl::midi_binding_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { // s:status s:serialized binding string status(&argv[0]->s); string bindstr(&argv[1]->s); MidiBindInfo info; if (status == "add") { if (info.unserialize (bindstr)) { _midi_bindings->add_binding(info); } } else if (status == "done") { info.unserialize (bindstr); MidiBindingChanged(info); // emit } else if (status == "recv") { info.unserialize (bindstr); ReceivedNextMidi(info); // emit } else if (status == "learn_cancel") { MidiLearnCancelled(); // emit } else if (status == "next_cancel") { NextMidiCancelled(); // emit } return 0; } void LoopControl::request_control_value (int index, wxString ctrl) { if (!_osc_addr) return; char buf[20]; snprintf(buf, sizeof(buf), "/sl/%d/get", index); lo_send(_osc_addr, buf, "sss", (const char *) ctrl.ToAscii(), _our_url.c_str(), "/ctrl"); } void LoopControl::request_global_control_value (wxString ctrl) { if (!_osc_addr) return; char buf[20]; snprintf(buf, sizeof(buf), "/get"); lo_send(_osc_addr, buf, "sss", (const char *) ctrl.ToAscii(), _our_url.c_str(), "/ctrl"); } void LoopControl::request_global_values() { if (!_osc_addr) return; char buf[20]; snprintf(buf, sizeof(buf), "/get"); // send request for updates lo_send(_osc_addr, buf, "sss", "tempo", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "sync_source", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "eighth_per_cycle", _our_url.c_str(), "/ctrl"); //lo_send(_osc_addr, buf, "sss", "tap_tempo", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "dry", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "wet", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "input_gain", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "auto_disable_latency", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "smart_eighths", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "output_midi_clock", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "use_midi_stop", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "use_midi_start", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "send_midi_start_on_trigger", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "selected_loop_num", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "in_peak_meter", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "out_peak_meter", _our_url.c_str(), "/ctrl"); } void LoopControl::request_values(int index) { if (!_osc_addr) return; char buf[20]; snprintf(buf, sizeof(buf), "/sl/%d/get", index); // send request for updates lo_send(_osc_addr, buf, "sss", "state", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "loop_pos", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "loop_len", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "cycle_len", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "free_time", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "total_time", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "waiting", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "next_state", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "rate_output", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "channel_count", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "in_peak_meter", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "out_peak_meter", _our_url.c_str(), "/ctrl"); } void LoopControl::request_all_values(int index) { if (!_osc_addr) return; char buf[20]; snprintf(buf, sizeof(buf), "/sl/%d/get", index); request_values(index); // send request for updates lo_send(_osc_addr, buf, "sss", "rec_thresh", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "feedback", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "use_feedback_play", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "dry", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "wet", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "input_gain", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "rate", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "scratch_pos", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "delay_trigger", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "quantize", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "fade_samples", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "round", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "sync", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "playback_sync", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "redo_is_tap", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "use_rate", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "use_common_outs", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "use_common_ins", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "has_discrete_io", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "relative_sync", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "input_latency", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "output_latency", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "trigger_latency", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "autoset_latency", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "mute_quantized", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "overdub_quantized", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "replace_quantized", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "round_integer_tempo", _our_url.c_str(), "/ctrl"); //lo_send(_osc_addr, buf, "sss", "pitch_shift", _our_url.c_str(), "/ctrl"); //lo_send(_osc_addr, buf, "sss", "stretch_ratio", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "tempo_stretch", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "pan_1", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "pan_2", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "pan_3", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "pan_4", _our_url.c_str(), "/ctrl"); } void LoopControl::request_all_midi_bindings() { if (!_osc_addr) return; _midi_bindings->clear_bindings(); lo_send(_osc_addr, "/get_all_midi_bindings", "ss", _our_url.c_str(), "/recv_midi_bindings"); } void LoopControl::learn_midi_binding(const MidiBindInfo & info, bool exclusive) { if (!_osc_addr) return; lo_send(_osc_addr, "/learn_midi_binding", "ssss", info.serialize().c_str(), exclusive?"exclusive":"",_our_url.c_str(), "/recv_midi_bindings" ); } void LoopControl::request_next_midi_event () { if (!_osc_addr) return; lo_send(_osc_addr, "/get_next_midi_event", "ss", _our_url.c_str(), "/recv_midi_bindings" ); } void LoopControl::add_midi_binding(const MidiBindInfo & info, bool exclusive) { if (!_osc_addr) return; lo_send(_osc_addr, "/add_midi_binding", "ss", info.serialize().c_str(), exclusive?"exclusive":""); } void LoopControl::remove_midi_binding(const MidiBindInfo & info) { if (!_osc_addr) return; lo_send(_osc_addr, "/remove_midi_binding", "ss", info.serialize().c_str(),""); } void LoopControl::clear_midi_bindings() { if (!_osc_addr) return; lo_send(_osc_addr, "/clear_midi_bindings", ""); request_all_midi_bindings(); } void LoopControl::cancel_next_midi_event() { if (!_osc_addr) return; lo_send(_osc_addr, "/cancel_get_next_midi", "ss", _our_url.c_str(), "/recv_midi_bindings" ); } void LoopControl::cancel_midi_learn() { if (!_osc_addr) return; lo_send(_osc_addr, "/cancel_midi_learn", "ss", _our_url.c_str(), "/recv_midi_bindings" ); } void LoopControl::load_midi_bindings(const wxString & filename, bool append) { lo_send(_osc_addr, "/load_midi_bindings", "ss", (const char *) filename.ToAscii(), append ? "add": ""); request_all_midi_bindings(); } void LoopControl::save_midi_bindings(const wxString & filename) { if (!_osc_addr) return; lo_send(_osc_addr, "/save_midi_bindings", "ss", (const char *) filename.ToAscii(), ""); } int LoopControl::register_all_in_new_thread(int number_of_loops) { pthread_t register_thread; get_spawn_config().num_loops = number_of_loops; //XXX why don't we have the right num_loops already? return pthread_create (®ister_thread, NULL, &LoopControl::_register_all, this); } void * LoopControl::_register_all (void *arg) { //send all registrations pausing inbetween toavoid losing osc messages LoopControl * lc = static_cast(arg); lc->request_global_values (); int num_of_loops = lc->get_spawn_config().num_loops; for (int i = 0; i < num_of_loops; i++) { lc->register_auto_updates(i); lc->register_input_controls(i); lc->request_all_values (i); #if wxCHECK_VERSION(2,5,3) ::wxMilliSleep(100); #else ::wxUsleep(100); #endif } return 0; } void LoopControl::register_auto_updates(int index, bool unreg) { if (!_osc_addr) return; char buf[30]; if (unreg) { snprintf(buf, sizeof(buf), "/sl/%d/unregister_auto_update", index); lo_send(_osc_addr, buf, "sss", "state", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "next_state", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "loop_pos", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "loop_len", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "cycle_len", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "free_time", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "total_time", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "waiting", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "rate_output", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "in_peak_meter", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "out_peak_meter", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "is_soloed", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "stretch_ratio", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "pitch_shift", _our_url.c_str(), "/ctrl"); } else { if (_registeredauto_loop_map.find(index) != _registeredauto_loop_map.end()) { // already registered return; } snprintf(buf, sizeof(buf), "/sl/%d/register_auto_update", index); // send request for auto updates lo_send(_osc_addr, buf, "siss", "state", 100, _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "siss", "next_state", 100, _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "siss", "loop_pos", 100, _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "siss", "loop_len", 100, _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "siss", "cycle_len", 100, _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "siss", "free_time", 100, _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "siss", "total_time",100, _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "siss", "waiting", 100, _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "siss", "rate_output",100, _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "siss", "in_peak_meter", 100, _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "siss", "out_peak_meter", 100, _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "siss", "is_soloed", 100, _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "siss", "stretch_ratio", 100, _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "siss", "pitch_shift", 100, _our_url.c_str(), "/ctrl"); _registeredauto_loop_map[index] = true; } } void LoopControl::register_input_controls(int index, bool unreg) { if (!_osc_addr) return; char buf[50]; if (_registeredin_loop_map.find(index) != _registeredin_loop_map.end()) { // already registered return; } if ((int)_params_val_map.size() <= index) { _params_val_map.resize(index + 1); _updated.resize(index + 1); } if ((int)_params_val_map.size() > index) { _params_val_map[index].clear(); _updated[index].clear(); } if (unreg) { snprintf(buf, sizeof(buf), "/sl/%d/unregister_update", index); } else { snprintf(buf, sizeof(buf), "/sl/%d/register_update", index); } // send request for updates lo_send(_osc_addr, buf, "sss", "rec_thresh", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "feedback", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "use_feedback_play", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "dry", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "wet", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "input_gain", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "rate", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "scratch_pos", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "delay_trigger", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "quantize", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "fade_samples", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "round", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "sync", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "playback_sync", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "redo_is_tap", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "use_rate", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "use_common_ins", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "use_common_outs", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "relative_sync", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "input_latency", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "output_latency", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "trigger_latency", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "autoset_latency", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "mute_quantized", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "overdub_quantized", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "replace_quantized", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "round_integer_tempo", _our_url.c_str(), "/ctrl"); //lo_send(_osc_addr, buf, "sss", "pitch_shift", _our_url.c_str(), "/ctrl"); //lo_send(_osc_addr, buf, "sss", "stretch_ratio", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "tempo_stretch", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "pan_1", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "pan_2", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "pan_3", _our_url.c_str(), "/ctrl"); lo_send(_osc_addr, buf, "sss", "pan_4", _our_url.c_str(), "/ctrl"); // cerr << "SENT REGISTERS FOR ALL index: " << index << endl; _registeredin_loop_map[index] = true; } void LoopControl::register_control (int index, wxString ctrl, bool unreg) { if (!_osc_addr) return; char buf[30]; if ((int)_params_val_map.size() > index) { _params_val_map[index].clear(); _updated[index].clear(); } if (unreg) { snprintf(buf, sizeof(buf), "/sl/%d/unregister_update", index); } else { snprintf(buf, sizeof(buf), "/sl/%d/register_update", index); } // send request for updates lo_send(_osc_addr, buf, "sss", (const char *) ctrl.ToAscii(), _our_url.c_str(), "/ctrl"); } void LoopControl::register_auto_update(int index, wxString ctrl, bool unreg) { if (!_osc_addr) return; char buf[50]; if (unreg) { snprintf(buf, sizeof(buf), "/sl/%d/unregister_auto_update", index); lo_send(_osc_addr, buf, "sss", (const char *) ctrl.ToAscii(), _our_url.c_str(), "/ctrl"); } else { snprintf(buf, sizeof(buf), "/sl/%d/register_auto_update", index); lo_send(_osc_addr, buf, "siss", (const char *) ctrl.ToAscii(), 100, _our_url.c_str(), "/ctrl"); } } bool LoopControl::post_down_event(int index, wxString cmd) { if (!_osc_addr) return false; char buf[50]; snprintf(buf, sizeof(buf), "/sl/%d/down", index); if (lo_send(_osc_addr, buf, "s", (const char *)cmd.ToAscii()) == -1) { return false; } return true; } bool LoopControl::post_up_event(int index, wxString cmd, bool force) { if (!_osc_addr) return false; char buf[50]; if (force) { snprintf(buf, sizeof(buf), "/sl/%d/upforce", index); } else { snprintf(buf, sizeof(buf), "/sl/%d/up", index); } if (lo_send(_osc_addr, buf, "s", (const char *) cmd.ToAscii()) == -1) { return false; } return true; } bool LoopControl::post_ctrl_change (int index, wxString ctrl, float val) { if (!_osc_addr) return false; char buf[50]; // go ahead and update our local copy if (index >= 0 && index < (int) _params_val_map.size()) { _params_val_map[index][ctrl] = val; } snprintf(buf, sizeof(buf), "/sl/%d/set", index); if (lo_send(_osc_addr, buf, "sf", (const char *) ctrl.ToAscii(), val) == -1) { return false; } return true; } bool LoopControl::post_global_ctrl_change (wxString ctrl, float val) { if (!_osc_addr) return false; // go ahead and update our local copy _global_val_map[ctrl] = val; if (lo_send(_osc_addr, "/set", "sf", (const char *) ctrl.ToAscii(), val) == -1) { return false; } return true; } bool LoopControl::post_save_loop(int index, wxString fname, wxString format, wxString endian) { if (!_osc_addr) return false; char buf[50]; snprintf(buf, sizeof(buf), "/sl/%d/save_loop", index); // send request for updates if (lo_send(_osc_addr, buf, "sssss", (const char *) fname.ToAscii(), (const char *) format.ToAscii(), (const char *) endian.ToAscii(), (const char *) _our_url.c_str(), "/error") == -1) { return false; } return true; } bool LoopControl::post_load_loop(int index, wxString fname) { if (!_osc_addr) return false; char buf[30]; snprintf(buf, sizeof(buf), "/sl/%d/load_loop", index); // send request for updates if (lo_send(_osc_addr, buf, "sss", (const char *) fname.ToAscii(), _our_url.c_str(), "/error") == -1) { return false; } return true; } bool LoopControl::post_load_session(wxString fname) { if (!_osc_addr) return false; char buf[30]; snprintf(buf, sizeof(buf), "/load_session"); // send request for updates if (lo_send(_osc_addr, buf, "sss", (const char *) fname.ToAscii(), _our_url.c_str(), "/error") == -1) { return false; } return true; } bool LoopControl::post_save_session(wxString fname, bool write_audio) { if (!_osc_addr) return false; char buf[30]; snprintf(buf, sizeof(buf), "/save_session"); if (write_audio) { if (lo_send(_osc_addr, buf, "sssi", (const char *) fname.ToAscii(), _our_url.c_str(), "/error", write_audio) == -1) { return false; } } else { if (lo_send(_osc_addr, buf, "sss", (const char *) fname.ToAscii(), _our_url.c_str(), "/error") == -1) { return false; } } return true; } void LoopControl::send_quit() { if (!_osc_addr) return; lo_send(_osc_addr, "/quit", NULL); } void LoopControl::send_alive_ping() { if (!_osc_addr) return; lo_send(_osc_addr, "/ping", "ssi", _our_url.c_str(), "/alive_resp", 1); } void LoopControl::update_values() { if (!_osc_server) return; // recv commands nonblocking, until none left while (lo_server_recv_noblock (_osc_server, 0) > 0) { // do nothing } } bool LoopControl::is_updated (int index, wxString ctrl) { if (index >= 0 && index < (int) _updated.size()) { ControlValMap::iterator iter = _updated[index].find (ctrl); if (iter != _updated[index].end()) { return (*iter).second; } } return false; } bool LoopControl::get_value (int index, wxString ctrl, float & retval) { bool ret = false; if (index >= 0 && index < (int) _params_val_map.size()) { ControlValMap::iterator iter = _params_val_map[index].find (ctrl); if (iter != _params_val_map[index].end()) { retval = (*iter).second; // set updated to false _updated[index][ctrl] = false; ret = true; } } return ret; } bool LoopControl::is_global_updated (wxString ctrl) { UpdatedCtrlMap::iterator iter = _global_updated.find (ctrl); if (iter != _global_updated.end()) { return (*iter).second; } return false; } bool LoopControl::get_global_value (wxString ctrl, float & retval) { bool ret = false; ControlValMap::iterator iter = _global_val_map.find (ctrl); if (iter != _global_val_map.end()) { retval = (*iter).second; // set updated to false _global_updated[ctrl] = false; ret = true; } return ret; } bool LoopControl::get_state (int index, LooperState & state, wxString & statestr) { bool ret = false; if (index >= 0 && index < (int) _params_val_map.size()) { ControlValMap::iterator iter = _params_val_map[index].find (wxT("state")); if (iter != _params_val_map[index].end()) { state = (LooperState) (int) (*iter).second; statestr = state_map[state]; // set updated to false _updated[index][wxT("state")] = false; ret = true; } } return ret; } bool LoopControl::get_next_state (int index, LooperState & state, wxString & statestr) { bool ret = false; if (index >= 0 && index < (int) _params_val_map.size()) { ControlValMap::iterator iter = _params_val_map[index].find (wxT("next_state")); if (iter != _params_val_map[index].end()) { state = (LooperState) (int) (*iter).second; statestr = state_map[state]; // set updated to false _updated[index][wxT("next_state")] = false; ret = true; } } return ret; } bool LoopControl::post_add_loop(int channels, float secs, bool discrete) { if (!_osc_addr) return false; if (discrete) { if (lo_send(_osc_addr, "/loop_add", "if", channels, secs) == -1) { return false; } } else { if (lo_send(_osc_addr, "/loop_add", "ifi", channels, secs, 0) == -1) { return false; } } return true; } bool LoopControl::post_remove_loop() { if (!_osc_addr) return false; // todo specify loop channels etc int index = -1; if (lo_send(_osc_addr, "/loop_del", "i", index) == -1) { return false; } return true; } sooperlooper-1.7.3~dfsg0/src/gui/pix_button.cpp0000644000175000017500000001522512274257554020332 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include "pix_button.hpp" enum { ID_EditMenuOp = 9000, ID_DefaultMenuOp, ID_BindMenuOp }; using namespace SooperLooperGui; using namespace std; BEGIN_EVENT_TABLE(PixButton, wxWindow) EVT_SIZE(PixButton::OnSize) EVT_PAINT(PixButton::OnPaint) EVT_MOUSE_EVENTS(PixButton::OnMouseEvents) EVT_MENU (ID_BindMenuOp , PixButton::on_menu_events) END_EVENT_TABLE() PixButton::PixButton(wxWindow * parent, wxWindowID id, bool bindable, const wxPoint& pos, const wxSize& size) : wxWindow(parent, id, pos, size) { _bgcolor = *wxBLACK; _bgbrush.SetColour (_bgcolor); _bstate = Normal; _estate = Outside; _backing_store = 0; _active = false; if (bindable) { _popup_menu = new wxMenu(wxT("")); //_popup_menu->Append ( new wxMenuItem(_popup_menu, ID_EditMenuOp, wxT("Edit"))); //_popup_menu->Append ( new wxMenuItem(_popup_menu, ID_DefaultMenuOp, wxT("Set to default"))); //_popup_menu->AppendSeparator(); _popup_menu->Append ( new wxMenuItem(_popup_menu, ID_BindMenuOp, wxT("Learn MIDI Binding"))); } else { _popup_menu = 0; } SetBackgroundColour (_bgcolor); SetThemeEnabled(false); update_size(); } PixButton::~PixButton() { _memdc.SelectObject(wxNullBitmap); if (_backing_store) { delete _backing_store; } } void PixButton::set_normal_bitmap (const wxBitmap & bm) { if (!bm.Ok()) return; _normal_bitmap = bm; SetSizeHints (bm.GetWidth(), bm.GetHeight()); SetClientSize (bm.GetWidth(), bm.GetHeight()); Refresh(false); } void PixButton::set_focus_bitmap (const wxBitmap & bm) { if (!bm.Ok()) return; _focus_bitmap = bm; SetSizeHints (bm.GetWidth(), bm.GetHeight()); SetClientSize (bm.GetWidth(), bm.GetHeight()); Refresh(false); } void PixButton::set_selected_bitmap (const wxBitmap & bm) { if (!bm.Ok()) return; _selected_bitmap = bm; SetSizeHints (bm.GetWidth(), bm.GetHeight()); SetClientSize (bm.GetWidth(), bm.GetHeight()); Refresh(false); } void PixButton::set_disabled_bitmap (const wxBitmap & bm) { if (!bm.Ok()) return; _disabled_bitmap = bm; SetSizeHints (bm.GetWidth(), bm.GetHeight()); SetClientSize (bm.GetWidth(), bm.GetHeight()); Refresh(false); } void PixButton::set_active_bitmap (const wxBitmap & bm) { if (!bm.Ok()) return; _active_bitmap = bm; SetSizeHints (bm.GetWidth(), bm.GetHeight()); SetClientSize (bm.GetWidth(), bm.GetHeight()); Refresh(false); } void PixButton::set_bg_color (const wxColour & col) { _bgcolor = col; _bgbrush.SetColour (col); SetBackgroundColour (col); Refresh(false); } void PixButton::set_active(bool flag) { if (_active != flag) { _active = flag; Refresh(false); } } void PixButton::update_size() { GetClientSize(&_width, &_height); if (_width > 0 && _height > 0) { _memdc.SelectObject (wxNullBitmap); if (_backing_store) { delete _backing_store; } _backing_store = new wxBitmap(_width, _height); _memdc.SelectObject(*_backing_store); } } void PixButton::OnSize(wxSizeEvent & event) { update_size(); event.Skip(); } void PixButton::OnPaint(wxPaintEvent & event) { wxPaintDC pdc(this); if (!_backing_store) { return; } draw_area(_memdc); pdc.Blit(0, 0, _width, _height, &_memdc, 0, 0); } static inline int get_mouse_up_button(const wxMouseEvent &ev) { if (ev.LeftUp()) return (int) PixButton::LeftButton; else if (ev.MiddleUp()) return (int) PixButton::MiddleButton; else if (ev.RightUp()) return (int) PixButton::RightButton; else return 0; } static inline int get_mouse_button(const wxMouseEvent &ev) { if (ev.ButtonDown()) { if (ev.LeftDown()) return (int) PixButton::LeftButton; else if (ev.MiddleDown()) return (int) PixButton::MiddleButton; else if (ev.RightDown()) return (int) PixButton::RightButton; else return 0; } else if (ev.ButtonUp()) { if (ev.LeftUp()) return (int) PixButton::LeftButton; else if (ev.MiddleUp()) return (int) PixButton::MiddleButton; else if (ev.RightUp()) return (int) PixButton::RightButton; else return 0; } else return 0; } void PixButton::OnMouseEvents (wxMouseEvent &ev) { if (!IsEnabled()) { ev.Skip(); return; } if (ev.Moving()) { // do nothing } else if (ev.RightDown()) { if (_popup_menu) { this->PopupMenu ( _popup_menu, ev.GetX(), ev.GetY()); } } else if (ev.RightUp()) { //this->PopupMenu ( _popup_menu, ev.GetX(), ev.GetY()); } else if (ev.ButtonDown()) { if (!(ev.MiddleDown() && ev.ControlDown())) { _bstate = Selected; pressed (get_mouse_button(ev)); // emit CaptureMouse(); _pressed = true; Refresh(false); } } else if (ev.ButtonUp()) { _bstate = Normal; if (_pressed) { ReleaseMouse(); } released (get_mouse_button(ev)); // emit _pressed = false; wxPoint pt = ev.GetPosition(); wxRect bounds = GetRect(); pt.x += bounds.x; pt.y += bounds.y; if (bounds.Inside(pt)) { clicked (get_mouse_button(ev)); // emit if (ev.MiddleUp() && ev.ControlDown()) { bind_request(); // emit } } Refresh(false); } else if (ev.ButtonDClick()) { _bstate = Selected; pressed (get_mouse_button(ev)); // emit Refresh(false); } else if (ev.Entering()) { _estate = Inside; enter(); // emit Refresh(false); } else if (ev.Leaving()) { _estate = Outside; leave(); // emit Refresh(false); } ev.Skip(); } void PixButton::on_menu_events (wxCommandEvent &ev) { if (ev.GetId() == ID_BindMenuOp) { bind_request(); // emit } } void PixButton::draw_area(wxDC & dc) { dc.SetBackground(_bgbrush); dc.Clear(); if (!IsEnabled()) { dc.DrawBitmap (_disabled_bitmap, 0, 0); } else if (_active) { dc.DrawBitmap (_active_bitmap, 0, 0); } else { switch (_bstate) { case Normal: if (_estate == Outside) { dc.DrawBitmap (_normal_bitmap, 0, 0); } else { dc.DrawBitmap (_focus_bitmap, 0, 0); } break; case Selected: dc.DrawBitmap (_selected_bitmap, 0, 0); break; case Disabled: dc.DrawBitmap (_disabled_bitmap, 0, 0); break; } } } sooperlooper-1.7.3~dfsg0/src/midi_bridge.cpp0000644000175000017500000005005012230252703017563 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include "midi_bridge.hpp" #include #include #include #include #include #include #include #include #include #include #include "command_map.hpp" #include "utils.hpp" #include "engine.hpp" using namespace SooperLooper; using namespace std; using namespace MIDI; using namespace PBD; static inline double gain_to_uniform_position (double g) { if (g == 0) return 0; // this one maxes at 6 dB //return pow((6.0*log(g)/log(2.0)+192.0)/198.0, 8.0); // this one maxes out at 0 db return pow((6.0*log(g)/log(2.0)+198.0)/198.0, 8.0); } static inline double uniform_position_to_gain (double pos) { if (pos == 0) { return 0.0; } /* XXX Marcus writes: this doesn't seem right to me. but i don't have a better answer ... */ // this one maxes at 6 dB //return pow (2.0,(sqrt(sqrt(sqrt(pos)))*198.0-192.0)/6.0); // this one maxes out at 0 db return pow (2.0,(sqrt(sqrt(sqrt(pos)))*198.0-198.0)/6.0); } MidiBridge::MidiBridge (string name, string oscurl, PortRequest & req) : _name (name), _oscurl(oscurl) { // talk directly to the engine via signals AND send osc _port = 0; _done = false; _learning = false; _use_osc = true; _addr = 0; _midi_thread = 0; _clock_thread = 0; _clockdone = false; _output_clock = false; _getnext = false; _feedback_out = false; _addr = lo_address_new_from_url (_oscurl.c_str()); if (lo_address_errno (_addr) < 0) { fprintf(stderr, "MidiBridge:: addr error %d: %s\n", lo_address_errno(_addr), lo_address_errstr(_addr)); _use_osc = false; } PortFactory factory; if ((_port = factory.create_port (req)) == 0) { return; } // this is a callback that will be made from the parser _port->input()->any.connect (mem_fun (*this, &MidiBridge::incoming_midi)); init_thread(); init_clock_thread(); _ok = true; } MidiBridge::MidiBridge (string name, PortRequest & req) : _name (name) { // use only midi interface and talk directly to the engine via signals _port = 0; _done = false; _learning = false; _clockdone = false; _use_osc = false; _addr = 0; _midi_thread = 0; _clock_thread = 0; _output_clock = false; _getnext = false; _feedback_out = false; PortFactory factory; if ((_port = factory.create_port (req)) == 0) { cerr << "failed to create port" << endl; return; } // this is a callback that will be made from the parser _port->input()->any.connect (mem_fun (*this, &MidiBridge::incoming_midi)); init_thread(); init_clock_thread(); _ok = true; } MidiBridge::MidiBridge (string name) : _name (name) { // only talk to engine via signals, midi will be injected // by someone else _port = 0; _done = false; _clockdone = false; _learning = false; _use_osc = false; _addr = 0; _midi_thread = 0; _clock_thread = 0; _ok = true; _output_clock = false; _getnext = false; _feedback_out = false; init_clock_thread(); } MidiBridge::~MidiBridge() { if (_addr) { lo_address_free (_addr); } if (_midi_thread) { terminate_midi_thread(); } if (_clock_thread) { terminate_clock_thread(); } if (_port) { delete _port; _port = 0; } } bool MidiBridge::init_thread() { if (pipe (_midi_request_pipe)) { cerr << "Cannot create midi request signal pipe" << strerror (errno) << endl; return false; } if (fcntl (_midi_request_pipe[0], F_SETFL, O_NONBLOCK)) { cerr << "UI: cannot set O_NONBLOCK on signal read pipe " << strerror (errno) << endl; return false; } if (fcntl (_midi_request_pipe[1], F_SETFL, O_NONBLOCK)) { cerr << "UI: cannot set O_NONBLOCK on signal write pipe " << strerror (errno) << endl; return false; } pthread_create (&_midi_thread, NULL, &MidiBridge::_midi_receiver, this); if (!_midi_thread) { return false; } //pthread_detach(_midi_thread); //_port->input()->trace(true, &cerr); return true; } void MidiBridge::terminate_midi_thread () { void* status; _done = true; poke_midi_thread (); pthread_join (_midi_thread, &status); } void MidiBridge::poke_midi_thread () { char c = 0; if (write (_midi_request_pipe[1], &c, 1) != 1) { cerr << "cannot send signal to midi thread! " << strerror (errno) << endl; } } bool MidiBridge::init_clock_thread() { _clock_thread = 0; if (pipe (_clock_request_pipe)) { cerr << "Cannot create midi request signal pipe" << strerror (errno) << endl; return false; } if (fcntl (_clock_request_pipe[0], F_SETFL, O_NONBLOCK)) { cerr << "UI: cannot set O_NONBLOCK on clock signal read pipe " << strerror (errno) << endl; return false; } if (fcntl (_clock_request_pipe[1], F_SETFL, O_NONBLOCK)) { cerr << "UI: cannot set O_NONBLOCK on clock signal write pipe " << strerror (errno) << endl; return false; } _tempo_updated = false; _tempo = 0.0; _beatstamp = 0.0; _pending_start = false; pthread_create (&_clock_thread, NULL, &MidiBridge::_clock_thread_entry, this); if (!_clock_thread) { return false; } return true; } void * MidiBridge::_clock_thread_entry (void * arg) { return ((MidiBridge *)arg)->clock_thread_entry(); } void MidiBridge::terminate_clock_thread() { void* status; if (_clock_thread) { _clockdone = true; poke_clock_thread (); pthread_join (_clock_thread, &status); } } void MidiBridge::poke_clock_thread() { char c = 0; if (write (_clock_request_pipe[1], &c, 1) != 1) { cerr << "cannot send signal to midi clock thread! " << strerror (errno) << endl; } } void MidiBridge::start_learn (MidiBindInfo & info, bool exclus) { //cerr << "starting learn" << endl; _learninfo = info; _learning = true; } void MidiBridge::start_get_next () { //cerr << "starting getnext" << endl; _getnext = true; } void MidiBridge::finish_learn(MIDI::byte chcmd, MIDI::byte param, MIDI::byte val) { int chan; string type; TentativeLockMonitor lm (_bindings_lock, __LINE__, __FILE__); if (!lm.locked()) { // just drop it if we don't get the lock return; } if (_learning) { if (_midi_bindings.get_channel_and_type (chcmd, chan, type)) { _learninfo.channel = chan; _learninfo.type = type; _learninfo.param = param; // if type is n, then lets force the command to be note as well if (CommandMap::instance().is_command(_learninfo.control)) { if (_learninfo.type == "pc" || _learninfo.type == "cc") { _learninfo.command = "hit"; } else { _learninfo.command = "note"; } } //_bindings.add_binding(_learninfo); // notify of new learn //cerr << "learned new one: " << _learninfo.serialize() << endl; BindingLearned(_learninfo); // emit _learning = false; } else { //cerr << "invalid event to learn: " << (int) chcmd << endl; } } else if (_getnext) { if (_midi_bindings.get_channel_and_type (chcmd, chan, type)) { MidiBindInfo info; info.channel = chan; info.type = type; info.param = param; // notify of new learn //cerr << "recvd new one: " << info.serialize() << endl; NextMidiReceived (info); // emit _getnext = false; } else { //cerr << "invalid event to get: " << (int) chcmd << endl; } } } void MidiBridge::cancel_learn() { //cerr << "cancel learn" << endl; _learning = false; } void MidiBridge::cancel_get_next() { //cerr << "cancel get next" << endl; _getnext = false; } void MidiBridge::incoming_midi (Parser &p, byte *msg, size_t len, timestamp_t timestamp) { /* we only respond to channel messages */ byte b1 = msg[0]; byte b2 = len>1 ? msg[1]: 0; byte b3 = len>2 ? msg[2]: 0; // if ((msg[0] & 0xF0) < 0x80 || (msg[0] & 0xF0) > 0xE0) { // return; // } // convert noteoffs to noteons with val = 0 if ((msg[0] & 0xF0) == MIDI::off) { b1 = MIDI::on | (b1 & 0x0F); b3 = 0; } // fprintf(stderr, "incmoing: %02x %02x %02x\n", (int) b1,(int) b2, (int) b3); if (_learning || _getnext) { finish_learn(b1, b2, b3); } else { queue_midi (b1, b2, b3, -1, timestamp); } } void MidiBridge::inject_midi (MIDI::byte chcmd, MIDI::byte param, MIDI::byte val, long framepos) { // convert noteoffs to noteons with val = 0 if ((chcmd & 0xF0) == MIDI::off) { chcmd = MIDI::on | (chcmd & 0x0F); val = 0; } if (_learning || _getnext) { finish_learn(chcmd, param, val); } else { queue_midi (chcmd, param, val, framepos); } } void MidiBridge::queue_midi (MIDI::byte chcmd, MIDI::byte param, MIDI::byte val, long framepos, timestamp_t timestamp) { TentativeLockMonitor lm (_bindings_lock, __LINE__, __FILE__); if (!lm.locked()) { // just drop it if we don't get the lock return; } // convert midi to lookup key // lookup key = (chcmd << 8) | param int key = (chcmd << 8) | param; switch(chcmd & 0xF0) { case MIDI::chanpress: val = param; // fallthrough intentional case MIDI::pitchbend: key = chcmd << 8; break; default: break;// nothing } MidiBindings::BindingsMap::iterator iter = _midi_bindings.bindings_map().find(key); if (iter != _midi_bindings.bindings_map().end()) { MidiBindings::BindingList & elist = (*iter).second; for (MidiBindings::BindingList::iterator eiter = elist.begin(); eiter != elist.end(); ++eiter) { MidiBindInfo & info = (*eiter); float scaled_val = 0.0; float val_ratio; int clamped_val; if ((((info.type == "off") || (info.type == "ccon")) && val > 0) || (((info.type == "on") || (info.type == "ccoff")) && val == 0)) { // binding was for note off or on only, skip this continue; } // clamp it if ((chcmd & 0xF0) == MIDI::pitchbend) { clamped_val = min( info.data_max, max(info.data_min, (param | (val << 7)))); // cerr << "Pitchbend: " << (int) (param | (val << 7)) << " clamped: " << clamped_val << endl; } else { clamped_val = min((MIDI::byte) info.data_max, max((MIDI::byte) info.data_min, val)); } if (info.data_min == info.data_max) { val_ratio = 0.0f; } else { // calculate value as a ratio to map to the target range val_ratio = (clamped_val - info.data_min) / (float)(info.data_max - info.data_min); } if (info.style == MidiBindInfo::GainStyle) { scaled_val = (float) (val_ratio * ( info.ubound - info.lbound)) + info.lbound; scaled_val = uniform_position_to_gain (scaled_val); } else if (info.style == MidiBindInfo::NormalStyle) { scaled_val = (float) (val_ratio * ( info.ubound - info.lbound)) + info.lbound; } else if (info.style == MidiBindInfo::IntegerStyle) { // round to nearest integer value scaled_val = (float) nearbyintf((val_ratio * ( info.ubound - info.lbound)) + info.lbound); } else { // toggle style is a bit of a hack, but here we go if (info.last_toggle_val != info.ubound) { scaled_val = info.ubound; } else { scaled_val = info.lbound; } info.last_toggle_val = scaled_val; } //fprintf(stderr, "found binding: key: %x val: %02x scaled: %g type: %s\n", (int) key, (int) val, scaled_val, info.type.c_str()); //cerr << "ctrl: " << info.control << " cmd: " << info.command << endl; send_event (info, scaled_val, framepos); } } else if (chcmd == MIDI::start || chcmd == MIDI::contineu) { // MIDI start if (_use_osc) { lo_send(_addr, "/sl/midi_start", ""); } MidiSyncEvent (Event::MidiStart, framepos, timestamp); // emit //cerr << "got start" << endl; } else if (chcmd == MIDI::stop) { // MIDI stop if (_use_osc) { lo_send(_addr, "/sl/midi_stop", ""); } MidiSyncEvent (Event::MidiStop, framepos, timestamp); // emit //cerr << "got stop" << endl; } else if (chcmd == MIDI::timing) { // MIDI clock tick if (_use_osc) { lo_send(_addr, "/sl/midi_tick", ""); } MidiSyncEvent (Event::MidiTick, framepos, timestamp); // emit } else { // fprintf(stderr, "binding %x not found\n", key); } } void MidiBridge::send_event (const MidiBindInfo & info, float val, long framepos) { static char tmpbuf[100]; string cmd = info.command; CommandMap & cmdmap = CommandMap::instance(); Event::type_t optype = cmdmap.to_type_t (cmd); Event::control_t ctrltype = cmdmap.to_control_t (info.control); Event::command_t cmdtype = cmdmap.to_command_t (info.control); if (cmd == "set") { if (_use_osc) { snprintf (tmpbuf, sizeof(tmpbuf)-1, "/sl/%d/%s", info.instance, cmd.c_str()); if (lo_send(_addr, tmpbuf, "sf", info.control.c_str(), val) < 0) { fprintf(stderr, "OSC error %d: %s\n", lo_address_errno(_addr), lo_address_errstr(_addr)); } } MidiControlEvent (optype, ctrltype, val, (int8_t) info.instance, framepos); // emit } else { if (cmd == "note") { if (val > 0.0f) { //cerr << "val is " << val << " type is: " << info.type << endl; cmd = "down"; optype = Event::type_cmd_down; } else { cmd = "up"; optype = Event::type_cmd_up; } } else if (cmd == "susnote") { if (val > 0.0f) { cmd = "down"; optype = Event::type_cmd_down; } else { cmd = "upforce"; optype = Event::type_cmd_upforce; } } if (_use_osc) { snprintf (tmpbuf, sizeof(tmpbuf)-1, "/sl/%d/%s", info.instance, cmd.c_str()); if (lo_send(_addr, tmpbuf, "s", info.control.c_str()) < 0) { fprintf(stderr, "OSC error %d: %s\n", lo_address_errno(_addr), lo_address_errstr(_addr)); } } MidiCommandEvent (optype, cmdtype, (int8_t) info.instance, framepos); // emit } } void * MidiBridge::_midi_receiver(void *arg) { MidiBridge * bridge = static_cast (arg); bridge->midi_receiver(); return 0; } void MidiBridge::midi_receiver() { struct pollfd pfd[3]; int nfds = 0; int timeout = -1; MIDI::byte buf[512]; while (!_done) { nfds = 0; pfd[nfds].fd = _midi_request_pipe[0]; pfd[nfds].events = POLLIN|POLLHUP|POLLERR; nfds++; if (_port && _port->selectable() >= 0) { pfd[nfds].fd = _port->selectable(); pfd[nfds].events = POLLIN|POLLHUP|POLLERR; nfds++; } again: // cerr << "poll on " << nfds << " for " << timeout << endl; if (poll (pfd, nfds, timeout) < 0) { if (errno == EINTR) { /* gdb at work, perhaps */ goto again; } cerr << "MIDI thread poll failed: " << strerror (errno) << endl; break; } if (_done) { break; } if ((pfd[0].revents & ~POLLIN)) { cerr << "Transport: error polling extra MIDI port" << endl; break; } if (nfds > 1 && pfd[1].revents & POLLIN) { /* reading from the MIDI port activates the Parser that in turn generates signals that we care about. the port is already set to NONBLOCK so that can read freely here. */ while (1) { // cerr << "+++ READ ON " << port->name() << endl; int nread = _port->read (buf, sizeof (buf)); // cerr << "-- READ (" << nread << " ON " << port->name() << endl; if (nread > 0) { if ((size_t) nread < sizeof (buf)) { break; } else { continue; } } else if (nread == 0) { break; } else if (errno == EAGAIN) { break; } else { cerr << "Error reading from midi port" << endl; _done = true; break; } } } } } void * MidiBridge::clock_thread_entry() { //struct pollfd pfd[3]; int nfds = 0; double ticktime = -1; int ret; MIDI::byte clockmsg = MIDI::timing; MIDI::byte startmsg = MIDI::start; MIDI::byte stopmsg = MIDI::stop; //MIDI::byte contmsg = MIDI::contineu; struct timeval timeoutval = {1, 0}; double steady_timeout = 0.03333333333; struct timeval steady_timeout_val = { 0, 33333 }; // 1/30 sec struct timeval noout_timeoutval = {1, 0}; struct timeval * timeoutp = 0; MIDI::timestamp_t nextstamp = 0; double nowtime; fd_set pfd; char buf[10]; unsigned long ticks = 0; if (!_port) return 0; //cerr << "entering clock thread" << endl; while (!_clockdone) { nfds = 0; /* if (_port && _port->selectable() >= 0) { pfd[nfds].fd = _port->selectable(); pfd[nfds].events = POLLIN|POLLHUP|POLLERR; nfds++; } */ again: FD_SET(_clock_request_pipe[0], &pfd); nfds = _clock_request_pipe[0] + 1; //cerr << "select on " << nfds << " for " << steady_timeout << endl; if ((ret = select (nfds, &pfd, NULL, NULL, timeoutp)) < 0) { if (errno == EINTR) { /* gdb at work, perhaps */ goto again; } cerr << "MIDI thread select failed: " << strerror (errno) << endl; break; } if (_clockdone) { break; } // time to write out a clock message, the timer expired nowtime = _port->get_current_host_time(); if (ret == 1) { ::read(_clock_request_pipe[0], &buf, 1); //cerr << "poke event read" << endl; } else if (_output_clock && nextstamp > 0) { if (_pending_start) { _port->write(&startmsg, 1); _pending_start = false; } // write out clocks until the next limit in the future double nextlimit = nowtime + 2*steady_timeout; while (nextstamp <= nextlimit) { _port->write_at(&clockmsg, 1, nextstamp); //cerr << "CLOCK output at" << nextstamp << endl; nextstamp += ticktime; ++ticks; } } else { //cerr << "ret was : " << ret << " timeoutp: " << timeoutp << endl; } if (!_output_clock) { //cerr << "no clock output" << endl; noout_timeoutval.tv_sec = 1; noout_timeoutval.tv_usec = 0; timeoutp = &noout_timeoutval; continue; } // recalculate timeout if (_tempo_updated) { // Example: At a tempo of 120 BPM, there are 120 quarter notes per minute. // There are 24 MIDI clocks in each quarter note. // Therefore, there should be 24 * 120 MIDI Clocks per minute. // So, each MIDI Clock is sent at a rate of 60/(24 * 120) seconds) // timeout interval = 60/(24 * bpm); if (_tempo > 0.0) { ticktime = (60.0/(24 * _tempo)); // first timeout will sync us up to the correct beat timestamp, // then the steady state one will be used // wait just enough to get us to the next multiple of the beat stamp nextstamp = _beatstamp; ticks = 0; //fprintf(stderr, "beatstamp: %.14g nowtime: %.14g\n", _beatstamp, nowtime); double delta = fabs(nowtime - nextstamp); ticks = lrint(delta/ticktime) + 1; nextstamp += ticks * ticktime; // fprintf(stderr, "beatstamp: %.14g nowtime: %.14g nextstamp: %.14g\n", _beatstamp, nowtime, nextstamp); timeoutval = steady_timeout_val; timeoutp = &timeoutval; } else { timeoutp = NULL; _port->write(&stopmsg, 1); } _tempo_updated = false; } else if (_tempo > 0) { timeoutval = steady_timeout_val; timeoutp = &timeoutval; } else { // tempo is 0 timeoutp = NULL; } } //cerr << "clock thread ending" << endl; return 0; } void MidiBridge::tempo_clock_update(double tempo, MIDI::timestamp_t timestamp, bool forcestart) { //cerr << "set tempo to: " << tempo << " at: " << timestamp << endl; while (tempo > 240.0) { tempo *= 0.5; } if (forcestart || (_tempo == 0.0 && tempo > 0.0)) { _pending_start = true; } _tempo = tempo; _beatstamp = timestamp; _tempo_updated = true; poke_clock_thread(); } MIDI::timestamp_t MidiBridge::get_current_host_time() { if (_port) { return _port->get_current_host_time(); } else return 0; } void MidiBridge::parameter_changed(int ctrl_id, int instance, Engine *engine) { if (!_feedback_out) return; int selected_loop = (int) engine->get_control_value(Event::SelectedLoopNum, -2); bool selected = (selected_loop == instance || selected_loop == -1 || engine->loop_count()==1); if (ctrl_id == SooperLooper::Event::State) { int currstate = (int) engine->get_control_value(Event::State, instance); } else { float value = engine->get_control_value((Event::control_t)ctrl_id, instance); if (instance == -1) { // all loops } else { // normal control } } } sooperlooper-1.7.3~dfsg0/src/slconsole.cpp0000644000175000017500000002560611754453701017352 0ustar miramira/* * Copyright (C) 2004 Steve Harris, Uwe Koloska * * This program 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. * * $Id$ */ #include #include #include #include #include #include #include #include #include #include #include using namespace std; static lo_address addr; static string our_url; static lo_server osc_server = 0; static pthread_t osc_thread = 0; map params_val_map; map state_map; volatile bool updated = false; volatile bool _acked = false; volatile bool do_shutdown = false; const char *optstring = "H:P:h"; struct option long_options[] = { { "help", 0, 0, 'h' }, { "connect-host", 1, 0, 'H' }, { "connect-port", 1, 0, 'P' }, { 0, 0, 0, 0 } }; char * _host = 0; int _port=0; int _show_usage=0; char ** _engine_argv = 0; #define DEFAULT_OSC_PORT 9951 static void usage(char *argv0) { fprintf(stderr, "Usage: %s [options...]\n", argv0); fprintf(stderr, "Options:\n"); fprintf(stderr, " -H host, --connect-host=host connect to sooperlooper engine on given host (default is localhost)\n"); fprintf(stderr, " -P , --connect-port= connect to sooperlooper engine on given port (default is %d)\n", DEFAULT_OSC_PORT); fprintf(stderr, " -h , --help this usage output\n"); fprintf(stderr, "\nBy default, the gui will try to connect to an engine running\n"); fprintf(stderr, "at the given (or default) host and port.\n"); } static void parse_options (int argc, char **argv) { int longopt_index = 0; int c; bool stop_proc = false; while (!stop_proc && (c = getopt_long (argc, argv, optstring, long_options, &longopt_index)) >= 0) { if (c >= 255) break; switch (c) { case 1: /* getopt signals end of '-' options */ stop_proc = true; break; case 'h': _show_usage++; break; case 'H': _host = optarg; break; case 'P': sscanf(optarg, "%d", &_port); break; default: fprintf (stderr, "argument error: %c\n", c); _show_usage++; break; } if (_show_usage > 0) { break; } } _engine_argv = argv + optind; } static int do_control_change(char cmd) { float val = 0.0; int ret = 0; char * control = NULL; int row = 17; char fname[200]; noraw(); echo(); timeout(-1); curs_set(2); switch (cmd) { case '1': control = "dry"; mvprintw (row, 0, "Enter Dry Level (-90..0) dB : "); clrtoeol(); refresh(); ret = scanw ("%f", &val); break; case '2': control = "wet"; mvprintw (row, 0, "Enter Wet Level (-90..0) dB : "); clrtoeol(); refresh(); ret = scanw ("%f", &val); break; case '3': control = "feedback"; mvprintw (row, 0, "Enter Feedback (0..1) : "); clrtoeol(); refresh(); ret = scanw ("%f", &val); break; case '4': control = "rate"; mvprintw (row, 0, "Enter Rate (-4..4) : "); clrtoeol(); refresh(); ret = scanw ("%f", &val); break; case '5': control = "quantize"; mvprintw (row, 0, "Enter Quantize flag (0 or 1) : "); clrtoeol(); refresh(); ret = scanw ("%f", &val); break; case '6': control = "round"; mvprintw (row, 0, "Enter Round flag (0 or 1) : "); clrtoeol(); refresh(); ret = scanw ("%f", &val); break; case '7': control = "rec_thresh"; mvprintw (row, 0, "Enter Rec Thresh (0..1) : "); clrtoeol(); refresh(); ret = scanw ("%f", &val); break; case 'l': mvprintw (row, 0, "Filename to load : "); clrtoeol(); refresh(); ret = scanw ("%s", fname); break; case 'a': mvprintw (row, 0, "Filename to save loop to : "); clrtoeol(); refresh(); ret = scanw ("%s", fname); break; default: break; } if (ret > 0) { if (cmd == 'l') { lo_send(addr, "/sl/-1/load_loop", "sss", fname, our_url.c_str(), "/blah"); } else if (cmd == 'a') { lo_send(addr, "/sl/-1/save_loop", "sssss", fname, "float", "little", our_url.c_str(), "/blah"); } else { lo_send(addr, "/sl/-1/set", "sf", control, val); } } mvprintw (row, 0, ""); clrtoeol (); refresh(); raw(); noecho(); curs_set(0); return 0; } static int post_event(char cmd) { int ret = 1; switch (cmd) { case 'q': lo_send (addr, "/quit", NULL); ret = -1; break; case 'b': ret = -1; break; case 'r': lo_send(addr, "/sl/-1/down", "s", "record"); break; case 'o': lo_send(addr, "/sl/-1/down", "s", "overdub"); break; case 'x': lo_send(addr, "/sl/-1/down", "s", "multiply"); break; case 'i': lo_send(addr, "/sl/-1/down", "s", "insert"); break; case 'p': lo_send(addr, "/sl/-1/down", "s", "replace"); break; case 'm': lo_send(addr, "/sl/-1/down", "s", "mute"); break; case 'u': lo_send(addr, "/sl/-1/down", "s", "undo"); break; case 'd': lo_send(addr, "/sl/-1/down", "s", "redo"); break; case 'v': lo_send(addr, "/sl/-1/down", "s", "reverse"); break; default: ret = 0; break; } return ret; } static int ctrl_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { // 1st arg is instance, 2nd ctrl string, 3nd is float value //int index = argv[0]->i; string ctrl(&argv[1]->s); float val = argv[2]->f; params_val_map[ctrl] = val; updated = true; return 0; } static int pingack_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { // pingack expects: s:engine_url s:version i:loopcount // 1st arg is instance, 2nd ctrl string, 3nd is float value //int index = argv[0]->i; //string eurl(&argv[0]->s); //string vers (&argv[1]->s); //int loops = argv[2]->i; _acked = true; return 0; } static void setup_param_map() { params_val_map["state"] = 0.0f; params_val_map["loop_len"] = 0.0f; params_val_map["loop_pos"] = 0.0f; params_val_map["cycle_len"] = 0.0f; params_val_map["free_time"] = 0.0f; params_val_map["total_time"] = 0.0f; state_map[0] = "Off"; state_map[1] = "Threshold Start"; state_map[2] = "RECORDING"; state_map[3] = "Threshold Stop"; state_map[4] = "PLAYING"; state_map[5] = "OVERDUBBING"; state_map[6] = "MULTIPLYING"; state_map[7] = "INSERTING"; state_map[8] = "REPLACING"; state_map[9] = "TAP DELAY"; state_map[10] = "MUTED"; state_map[11] = "SCRATCHING"; state_map[12] = "ONE SHOT"; } static void request_values() { lo_send(addr, "/sl/0/get", "sss", "state", our_url.c_str(), "/ctrl"); lo_send(addr, "/sl/0/get", "sss", "loop_pos", our_url.c_str(), "/ctrl"); lo_send(addr, "/sl/0/get", "sss", "loop_len", our_url.c_str(), "/ctrl"); lo_send(addr, "/sl/0/get", "sss", "cycle_len", our_url.c_str(), "/ctrl"); } static void update_values() { if (updated) { updated = false; mvprintw(13, 0, "State: %10s\n", state_map[(int)params_val_map["state"]].c_str()); printw ( "Pos: %7.1f CycleLen: %7.1f LoopLen: %7.1f\n", params_val_map["loop_pos"], params_val_map["cycle_len"], params_val_map["loop_len"]); } } static void * osc_receiver(void * arg) { while (!do_shutdown) { lo_server_recv (osc_server); } return 0; } static void cleanup() { do_shutdown = true; // send an event to self lo_address addr = lo_address_new_from_url (our_url.c_str()); lo_send(addr, "/ping", ""); lo_address_free (addr); pthread_join (osc_thread, NULL); lo_server_free (osc_server); endwin(); } int main(int argc, char *argv[]) { int done = 0; char ch; int ret; char tmpstr[30]; _engine_argv = &argv[1]; _port = DEFAULT_OSC_PORT; parse_options(argc, argv); if (_show_usage > 0) { usage(argv[0]); exit(1); } /* an address to send messages to. sometimes it is better to let the server * pick a port number for you by passing NULL as the last argument */ snprintf(tmpstr, sizeof(tmpstr), "%d", _port); addr = lo_address_new(_host, tmpstr); /* send a message to /foo/bar with two float arguments, report any * errors */ /* if (lo_send(t, "/sl/0/up", "ff", 0.12345678f, 23.0f) == -1) { */ /* printf("OSC error %d: %s\n", lo_address_errno(t), lo_address_errstr(t)); */ /* } */ if (_engine_argv[0]) { post_event (_engine_argv[0][0]); exit (0); } setup_param_map(); /* start a new server on a free port to recieve param callbacks */ osc_server = lo_server_new(NULL, NULL); our_url = lo_server_get_url (osc_server); /* add handler for control param callbacks, first arg ctrl string, 2nd arg value */ lo_server_add_method(osc_server, "/ctrl", "isf", ctrl_handler, NULL); // pingack expects: s:engine_url s:version i:loopcount lo_server_add_method(osc_server, "/pingack", "ssi", pingack_handler, NULL); // start up our thread pthread_create (&osc_thread, NULL, osc_receiver, NULL); // send ping lo_send(addr, "/ping", "ss", our_url.c_str(), "/pingack"); // first make sure we are connected struct timespec ts = { 0, 100000000 }; for (int i = 0; !_acked && i < 10; ++i) { nanosleep(&ts, NULL); } if (!_acked) { fprintf(stderr, "Error, no sooperlooper engine found\n"); exit(2); } /* now do some basic curses stuff */ initscr(); atexit(cleanup); raw(); keypad(stdscr, TRUE); noecho(); curs_set(0); printw("SooperLooper OSC test client\n"); printw(" r - record o - overdub x - multiply\n"); printw(" i - insert p - replace v - reverse s - scratch\n"); printw(" m - mute u - undo d - redo\n"); printw(" l - load loop a - save loop\n"); printw(" q - shutdown sooperlooper and quit\n"); printw(" b - just quit\n"); printw("\n"); printw(" 1 - set dry level (0..1) 2 - set wet level (0..1)\n"); printw(" 3 - set feedback level (0..1) 4 - set rate (-4..4)\n"); printw(" 5 - set quantize (0 or 1) 6 - set round (0 or 1)\n"); printw(" 7 - set rec thresh (0..1) \n"); refresh(); /* status on line 5 */ timeout (100); while (!done) { ch = getch(); ret = 0; if (ch == 0 || ch == ERR) { /* timeout */ request_values(); update_values(); // normal timeout timeout (100); continue; } if ((ch >= '1' && ch <= '9') || ch == 'l' || ch == 'a') { do_control_change (ch); // normal timeout timeout (100); } else { ret = post_event (ch); // faster timeout timeout (50); } if (ret < 0) { done = 1; } request_values(); update_values(); } endwin(); return 0; } /* vi:set ts=8 sts=4 sw=4: */ sooperlooper-1.7.3~dfsg0/src/audio_driver.cpp0000644000175000017500000000204111754453700020010 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include "audio_driver.hpp" using namespace SooperLooper; using namespace std; AudioDriver::AudioDriver(string client_name, string serv_name) : _client_name(client_name), _server_name(serv_name), _engine(0), _samplerate(0) { } AudioDriver::~AudioDriver() { } sooperlooper-1.7.3~dfsg0/src/plugin.cc0000644000175000017500000047775112336660304016462 0ustar miramira/* SooperLooper.c : Copyright (C) 2002-2005 Jesse Chappell // This program 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 // ------------------------------------------------------------------------ This is still based on the original LADSPA plugin, yeah it's a mess. */ /*****************************************************************************/ #include #include #include #include #include #include #include using namespace std; /*****************************************************************************/ #include "ladspa.h" #include "plugin.hpp" #include "utils.hpp" #include "event.hpp" using namespace SooperLooper; /*****************************************************************************/ //#define LOOPDEBUG #ifdef LOOPDEBUG #define DBG(x) x #else #define DBG(x) #endif #define VERSION "1.6" /* The maximum sample memory (in seconds). */ #ifndef SAMPLE_MEMORY #define SAMPLE_MEMORY 80.0 #endif #define XFADE_SAMPLES 128 // settle time for tap trigger (trigger if two changes // happen within at least X samples) //#define TRIG_SETTLE 4410 #define TRIG_SETTLE 2205 // another thing that shouldn't be hardcoded #define MAX_LOOPS 512 #define SAFETY_FEEDBACK 0.96f /*****************************************************************************/ /* States of the sampler */ #define STATE_OFF 0 #define STATE_TRIG_START 1 #define STATE_RECORD 2 #define STATE_TRIG_STOP 3 #define STATE_PLAY 4 #define STATE_OVERDUB 5 #define STATE_MULTIPLY 6 #define STATE_INSERT 7 #define STATE_REPLACE 8 #define STATE_DELAY 9 #define STATE_MUTE 10 #define STATE_SCRATCH 11 #define STATE_ONESHOT 12 #define STATE_SUBSTITUTE 13 #define STATE_PAUSED 14 #define STATE_UNDO_ALL 15 #define STATE_TRIGGER_PLAY 16 #define STATE_UNDO 17 #define STATE_REDO 18 #define STATE_REDO_ALL 19 #define STATE_OFF_MUTE 20 /* 1s digit of * Multicontroller parameter functions */ #define MULTI_UNDO 0 #define MULTI_REDO 1 // posibbly MULTI_DELAY if toggled, or REDO_TOG if muted #define MULTI_REPLACE 2 // QUANT_TOG in mute mode #define MULTI_REVERSE 3 // ROUND_TOG in mute mode #define MULTI_SCRATCH 4 #define MULTI_RECORD 5 #define MULTI_OVERDUB 6 #define MULTI_MULTIPLY 7 #define MULTI_INSERT 8 #define MULTI_MUTE 9 // extra features, cannot be picked directly #define MULTI_DELAY 10 // only #define MULTI_REDO_TOG 11 // only when in mute mode #define MULTI_QUANT_TOG 12 // only when in mute mode #define MULTI_ROUND_TOG 13 // only when in mute mode #define MULTI_ONESHOT 14 #define MULTI_TRIGGER 15 #define MULTI_SUBSTITUTE 16 #define MULTI_UNDO_ALL 17 #define MULTI_REDO_ALL 18 #define MULTI_MUTE_ON 19 #define MULTI_MUTE_OFF 20 #define MULTI_PAUSE 21 #define MULTI_PAUSE_ON 22 #define MULTI_PAUSE_OFF 23 #define MULTI_SET_SYNC_POS Event::SET_SYNC_POS #define MULTI_RESET_SYNC_POS Event::RESET_SYNC_POS #define MULTI_MUTE_TRIGGER Event::MUTE_TRIGGER #define MULTI_RECORD_OR_OVERDUB Event::RECORD_OR_OVERDUB #define MULTI_RECORD_OVERDUB_END Event::RECORD_OVERDUB_END_SOLO #define MULTI_UNDO_TWICE Event::UNDO_TWICE /*****************************************************************************/ #define LIMIT_BETWEEN_0_AND_1(x) \ f_clamp (x, 0.0f, 1.0f) #define LIMIT_BETWEEN_NEG1_AND_1(x) \ f_clamp (x, -1.0f, 1.0f) #define MAX(x,y) \ f_max (x, y) // reads loop audio into buffer, up to frames length, starting from loop_offset. if fewer frames are // available returns amount read. if 0 is returned loop is done. unsigned long sl_read_current_loop_audio (LADSPA_Handle instance, float * buf, unsigned long frames, unsigned long loop_offset) { SooperLooperI * pLS = (SooperLooperI *)instance; if (!pLS || !buf) return 0; LoopChunk * loop = pLS->headLoopChunk; if (!loop) return 0; if (loop_offset > loop->lLoopLength) return 0; // adjust for sync pos, so that a loop_offset of 0 actually means start from the syncpos unsigned long adj_offset = (loop_offset + (loop->lLoopLength - loop->lSyncPos)) % loop->lLoopLength; unsigned long frames_left = loop->lLoopLength - loop_offset; unsigned long startpos = (loop->lLoopStart + adj_offset) & pLS->lBufferSizeMask; unsigned long first_chunk; unsigned long second_chunk=0; if (adj_offset > (loop->lLoopLength - loop->lSyncPos)) { // between sync and end of loop mem, clamp frames frames = std::min(loop->lLoopLength-adj_offset, frames); } if (frames > frames_left) { frames = frames_left; } if ( startpos > ((startpos + frames) & pLS->lBufferSizeMask)) { // crosses buffer boundary, 2 chunks needed first_chunk = pLS->lBufferSize - startpos; second_chunk = frames - first_chunk; } else { first_chunk = frames; second_chunk = 0; } // read first chunk memcpy ((char *)buf, (char *) &pLS->pSampleBuf[startpos], first_chunk * sizeof(LADSPA_Data)); if (second_chunk) { memcpy ((char *) (buf + first_chunk), (char *) pLS->pSampleBuf, second_chunk * sizeof(LADSPA_Data)); } return frames; } void sl_set_samples_since_sync (LADSPA_Handle instance, unsigned long frames) { SooperLooperI * pLS = (SooperLooperI *)instance; if (!pLS) return; pLS->lSamplesSinceSync = frames; } void sl_set_replace_quantized (LADSPA_Handle instance, bool value) { SooperLooperI * pLS = (SooperLooperI *)instance; if (!pLS) return; pLS->bReplaceQuantized = value; } void sl_set_loop_index (LADSPA_Handle instance, unsigned int value, unsigned int chan) { SooperLooperI * pLS = (SooperLooperI *)instance; if (!pLS) return; pLS->lLoopIndex = value; pLS->lChannelIndex = chan; DBG(fprintf(stderr, "set loop: %u chan: %u\n", pLS->lLoopIndex, pLS->lChannelIndex)); } bool sl_get_replace_quantized (LADSPA_Handle instance) { SooperLooperI * pLS = (SooperLooperI *)instance; if (!pLS) return false; return pLS->bReplaceQuantized; } bool sl_has_loop (const LADSPA_Handle instance) { const SooperLooperI * pLS = (const SooperLooperI *)instance; if (!pLS) return false; return pLS->headLoopChunk != 0; } static bool invalidateTails (SooperLooperI * pLS, unsigned long bufstart, unsigned long buflen, LoopChunk * currloop) { LoopChunk * tailLoop = pLS->tailLoopChunk; LoopChunk * tmploop; if (!tailLoop) { return false; } while (tailLoop && tailLoop != currloop && (((bufstart + buflen) < pLS->lBufferSize && (tailLoop->lLoopStart >= bufstart && tailLoop->lLoopStart < (bufstart + buflen))) || ((bufstart + buflen) >= pLS->lBufferSize && (tailLoop->lLoopStart < ((bufstart + buflen) & pLS->lBufferSizeMask) || tailLoop->lLoopStart >= bufstart)))) { // this invalidates a loop if (tailLoop->valid) { DBG(fprintf(stderr, "%u:%u invalidating %08x\n", pLS->lLoopIndex, pLS->lChannelIndex, (unsigned) tailLoop)); tailLoop->valid = 0; if (tailLoop->next) { tailLoop->next->prev = 0; } tmploop = tailLoop->next; //tailLoop->next = 0; tailLoop = tmploop; } else { // this really shouldn't happen DBG(fprintf(stderr, "%u:%u we've hit the last tail this shoudlnt happen\n",pLS->lLoopIndex, pLS->lChannelIndex)); tailLoop = 0; } // tailLoop = (tailLoop == pLS->lastLoopChunk) ? pLS->pLoopChunks: tailLoop + 1; pLS->tailLoopChunk = tailLoop; } // if (!tailLoop || tailLoop == currloop) { // DBG(fprintf(stderr, "we've hit nothing or ourselves, returning false\n")); // return false; // } if (pLS->tailLoopChunk == NULL) { // we invalidated the last loop pLS->tailLoopChunk = currloop; } return true; } static LoopChunk * ensureLoopSpace(SooperLooperI* pLS, LoopChunk *loop, unsigned long morelength, LoopChunk * pendsrc) { // TODO: check to see if we'll require more space than the buffer allows if (!loop) { loop = (pLS->headLoopChunk == pLS->lastLoopChunk) ? pLS->pLoopChunks: pLS->headLoopChunk + 1; loop->lLoopStart = (pLS->headLoopChunk->lLoopStart + pLS->headLoopChunk->lLoopLength) & pLS->lBufferSizeMask; loop->lLoopLength = 0; loop->lCycleLength = 0; loop->lCycles = 0; loop->dCurrPos = 0; loop->frontfill = 0; loop->backfill = 0; loop->valid = 1; loop->mult_out = 0; loop->lSyncOffset = 0; loop->lSyncPos = 0; loop->lOrigSyncPos = 0; loop->next = NULL; loop->prev = pLS->headLoopChunk; if (loop->prev) { loop->prev->next = loop; // do this to help out the overdub fail case loop->lCycles = loop->prev->lCycles; loop->lCycleLength = loop->prev->lCycleLength; loop->lLoopLength = loop->prev->lLoopLength; loop->dCurrPos = loop->prev->dCurrPos; } loop->srcloop = pendsrc; pLS->headLoopChunk = loop; } else { // check to see if we'll require more space than the buffer allows if (loop->lLoopLength + morelength > pLS->lBufferSize) { DBG(fprintf(stderr, "%u:%u requesting more space than exists in buffer!\n",pLS->lLoopIndex, pLS->lChannelIndex)); return NULL; } } // invalidate any tails in this area invalidateTails (pLS, loop->lLoopStart, loop->lLoopLength + morelength, loop); return loop; } // creates a new loop chunk and puts it on the head of the list // returns the new chunk static LoopChunk * pushNewLoopChunk(SooperLooperI* pLS, unsigned long initLength, LoopChunk * pendsrc) { LoopChunk * loop; if (pLS->headLoopChunk) { // use the next spot in memory loop = ensureLoopSpace (pLS, NULL, initLength, pendsrc); if (!loop) { return NULL; } // we are the new head pLS->headLoopChunk = loop; } else { // first loop on the list! loop = pLS->pLoopChunks; loop->next = loop->prev = NULL; pLS->headLoopChunk = pLS->tailLoopChunk = loop; loop->lLoopStart = 0; loop->valid = 1; } DBG(fprintf(stderr, "%u:%u New head is %08x start: %lu\n",pLS->lLoopIndex, pLS->lChannelIndex, (unsigned)loop, loop->lLoopStart);) return loop; } // pop the head off and free it static void popHeadLoop(SooperLooperI *pLS, bool forceClear) { LoopChunk *dead; dead = pLS->headLoopChunk; if (dead && dead->prev) { // leave the next where is is for redo //dead->prev->next = NULL; pLS->headLoopChunk = dead->prev; if (!pLS->headLoopChunk->prev) { pLS->tailLoopChunk = pLS->headLoopChunk; } } else if (dead && (!dead->next || forceClear)) { // only clear the loop if this was the only loop in history pLS->headLoopChunk = NULL; // pLS->tailLoopChunk is still valid to support redo // from nothing } } // clear all LoopChunks (undoAll , can still redo them back) static void clearLoopChunks(SooperLooperI *pLS) { pLS->headLoopChunk = NULL; } static void undoLoop(SooperLooperI *pLS, bool forceClear) { LoopChunk *loop = pLS->headLoopChunk; LoopChunk *prevloop; if (!loop) return; prevloop = loop->prev; //if (prevloop && prevloop == loop->srcloop) { // if the previous was the source of the one we're undoing // pass the dCurrPos along, otherwise leave it be. // nevermind, ALWAYS pass it along, what the hell if (prevloop) { prevloop->dCurrPos = fmod(loop->dCurrPos+loop->lStartAdj, prevloop->lLoopLength); } popHeadLoop(pLS, forceClear); DBG(fprintf(stderr, "%u:%u Undoing last loop %08x: new head is %08x\n" , pLS->lLoopIndex, pLS->lChannelIndex, (unsigned)loop, (unsigned)pLS->headLoopChunk);) } static void redoLoop(SooperLooperI *pLS) { LoopChunk *loop = NULL; LoopChunk *nextloop = NULL; if (pLS->headLoopChunk) { loop = pLS->headLoopChunk; nextloop = loop->next; } else if (pLS->tailLoopChunk) { // we've undone everything, use the tail loop = NULL; nextloop = pLS->tailLoopChunk; } if (nextloop) { //if (loop && loop == nextloop->srcloop) { // if the next is using us as a source // pass the dCurrPos along, otherwise leave it be. // nevermind, ALWAYS pass it along if (loop) { nextloop->dCurrPos = fmod(loop->dCurrPos+loop->lStartAdj, nextloop->lLoopLength); } else { // start at loop beginning nextloop->dCurrPos = nextloop->lLoopLength - nextloop->lSyncPos; } pLS->headLoopChunk = nextloop; DBG(fprintf(stderr, "%u:%u Redoing last loop %08x: new head is %08x\n", pLS->lLoopIndex, pLS->lChannelIndex, (unsigned)loop, (unsigned)pLS->headLoopChunk);) } } /*****************************************************************************/ /* Construct a new plugin instance. */ LADSPA_Handle instantiateSooperLooper(const LADSPA_Descriptor * Descriptor, unsigned long SampleRate) { SooperLooperI * pLS; char * sampmem; // important note: using calloc to zero all data pLS = (SooperLooperI *) calloc(1, sizeof(SooperLooperI)); if (pLS == NULL) return NULL; pLS->pSampleBuf = NULL; pLS->pLoopChunks = NULL; pLS->pInputBuf = NULL; pLS->fSampleRate = (LADSPA_Data)SampleRate; pLS->fTotalSecs = SAMPLE_MEMORY; // HACK for the moment! sampmem = getenv("SL_SAMPLE_TIME"); if (sampmem != NULL) { if (sscanf(sampmem, "%f", &pLS->fTotalSecs) != 1) { pLS->fTotalSecs = SAMPLE_MEMORY; } // printf ("Got sample mem: %f\n", pLS->fTotalSecs); } // we do include the LoopChunk structures in the Buf, so we really // get a little less the SAMPLE_MEMORY seconds //pLS->lBufferSize = (unsigned long)((LADSPA_Data)SampleRate * pLS->fTotalSecs * sizeof(LADSPA_Data)); pLS->lBufferSize = (unsigned long) pow (2.0, ceil (log2 ((LADSPA_Data)SampleRate * pLS->fTotalSecs))); pLS->fTotalSecs = pLS->lBufferSize / (float) SampleRate; pLS->lBufferSizeMask = pLS->lBufferSize - 1; // not using calloc to force touching all memory ahead of time // this could be bad if you try to allocate too much for your system // well, we are using calloc again... so sad pLS->pSampleBuf = (LADSPA_Data *) calloc(pLS->lBufferSize, sizeof(LADSPA_Data)); if (pLS->pSampleBuf == NULL) { goto cleanup; } // we'll warm up up to 50 secs worth of the loop mem as a tradeoff to the low-mem mac people // Removed because this causes heavy cpu load on first record!!! //memset (pLS->pSampleBuf, 0, min(pLS->lBufferSize, (unsigned long) (SampleRate * 50) ) * sizeof(LADSPA_Data)); pLS->lLoopChunkCount = MAX_LOOPS; // not using calloc to force touching all memory ahead of time -- PSYCHE! pLS->pLoopChunks = (LoopChunk *) calloc(pLS->lLoopChunkCount, sizeof(LoopChunk)); if (pLS->pLoopChunks == NULL) { goto cleanup; } memset (pLS->pLoopChunks, 0, pLS->lLoopChunkCount * sizeof(LoopChunk)); pLS->lastLoopChunk = pLS->pLoopChunks + pLS->lLoopChunkCount - 1; // this is the input buffer to handle input latency. 32k max samples of input latency pLS->lInputBufSize = 32768; pLS->lInputBufMask = pLS->lInputBufSize - 1; pLS->pInputBuf = (LADSPA_Data *) calloc(pLS->lInputBufSize, sizeof(LADSPA_Data)); pLS->lInputBufWritePos = 0; pLS->lInputBufReadPos = 0; /* just one for now */ //pLS->lLoopStart = 0; //pLS->lLoopStop = 0; //pLS->lCurrPos = 0; pLS->state = STATE_OFF; pLS->wasMuted = false; pLS->recSyncEnded = false; DBG(fprintf(stderr,"%u:%u instantiated with buffersize: %lu\n", pLS->lLoopIndex, pLS->lChannelIndex, pLS->lBufferSize)); pLS->pfQuantMode = &pLS->fQuantizeMode; pLS->pfRoundMode = &pLS->fRoundMode; pLS->pfRedoTapMode = &pLS->fRedoTapMode; //cerr << "INSTANTIATE: " << pLS << endl; return pLS; cleanup: if (pLS->pSampleBuf) { free (pLS->pSampleBuf); } if (pLS->pLoopChunks) { free (pLS->pLoopChunks); } return NULL; } /*****************************************************************************/ /* Throw away a simple delay line. */ void cleanupSooperLooper(LADSPA_Handle Instance) { SooperLooperI * pLS; pLS = (SooperLooperI *)Instance; if (pLS->pLoopChunks) { free (pLS->pLoopChunks); } if (pLS->pSampleBuf) { free (pLS->pSampleBuf); } //cerr << "******* cleanup SL instance" << endl; free(pLS); } /*****************************************************************************/ /* Initialise and activate a plugin instance. */ void activateSooperLooper(LADSPA_Handle Instance) { SooperLooperI * pLS; pLS = (SooperLooperI *)Instance; //cerr << "Activate: " << pLS << endl; pLS->lLastMultiCtrl = -1; pLS->lScratchSamples = 0; pLS->lTapTrigSamples = 0; pLS->lRampSamples = 0; pLS->bPreTap = 1; // first tap init pLS->fLastScratchVal = 0.0f; pLS->fLastTapCtrl = -1; pLS->fCurrRate = 1.0f; pLS->fNextCurrRate = 0.0f; pLS->fQuantizeMode = 0; pLS->fRoundMode = 0; pLS->bHoldMode = 0; pLS->fSyncMode = 0; pLS->fMuteQuantized = 0; pLS->fOverdubQuantized = 0; pLS->bReplaceQuantized = true; pLS->fRedoTapMode = 1; pLS->bRateCtrlActive = (int) *pLS->pfRateCtrlActive; pLS->waitingForSync = 0; pLS->donePlaySync = false; pLS->rounding = false; pLS->safetyFeedback = true; pLS->fWetCurr = pLS->fWetTarget = *pLS->pfWet; pLS->fDryCurr = pLS->fDryTarget = *pLS->pfDry; pLS->fFeedbackCurr = pLS->fFeedbackTarget = *pLS->pfFeedback; pLS->fRateCurr = pLS->fRateTarget = *pLS->pfRate; pLS->fScratchPosCurr = pLS->fScratchPosTarget = *pLS->pfScratchPos; pLS->fLoopFadeDelta = 0.0f; pLS->fLoopFadeAtten = 0.0f; pLS->fLoopSrcFadeDelta = 0.0f; pLS->fLoopSrcFadeAtten = 0.0f; pLS->fFeedSrcFadeDelta = 0.0f; pLS->fFeedSrcFadeAtten = 1.0f; pLS->fPlayFadeDelta = 0.0f; pLS->fPlayFadeAtten = 0.0f; pLS->fFeedFadeDelta = 0.0f; pLS->fFeedFadeAtten = 1.0f; // todo make this a port, for now 2ms //pLS->fLoopXfadeSamples = 0.002 * pLS->fSampleRate; pLS->state = STATE_OFF; pLS->nextState = -1; pLS->wasMuted = false; pLS->recSyncEnded = false; pLS->lSamplesSinceSync = 0; pLS->lInputBufWritePos = 0; pLS->lFramesUntilInput = 0; pLS->lFramesUntilFilled = 0; memset (pLS->pInputBuf, 0, pLS->lInputBufSize * sizeof(LADSPA_Data)); clearLoopChunks(pLS); if (pLS->pfSecsTotal) { *pLS->pfSecsTotal = (LADSPA_Data) pLS->fTotalSecs; } if (pLS->pfSecsFree) { *pLS->pfSecsFree = pLS->lBufferSize / pLS->fSampleRate; } //fprintf(stderr,"activated\n"); } /*****************************************************************************/ /* Connect a port to a data location. */ void connectPortToSooperLooper(LADSPA_Handle Instance, unsigned long Port, LADSPA_Data * DataLocation) { SooperLooperI * pLS; //fprintf(stderr,"connectPortTo %d %08x\n", Port, DataLocation); pLS = (SooperLooperI *)Instance; switch (Port) { case DryLevel: pLS->pfDry = DataLocation; break; case WetLevel: pLS->pfWet = DataLocation; break; case Feedback: pLS->pfFeedback = DataLocation; break; case TriggerThreshold: pLS->pfTrigThresh = DataLocation; break; case Rate: pLS->pfRate = DataLocation; break; case ScratchPosition: pLS->pfScratchPos = DataLocation; break; case Multi: pLS->pfMultiCtrl = DataLocation; break; case TapDelayTrigger: pLS->pfTapCtrl = DataLocation; break; case UseFeedbackPlay: pLS->pfUseFeedbackPlay = DataLocation; break; case Quantize: pLS->pfQuantMode = DataLocation; break; case Sync: pLS->pfSyncMode = DataLocation; break; case PlaybackSync: pLS->pfPlaybackSyncMode = DataLocation; break; case UseRate: pLS->pfRateCtrlActive = DataLocation; break; case FadeSamples: pLS->pfXfadeSamples = DataLocation; break; case TempoInput: pLS->pfTempo = DataLocation; break; case EighthPerCycleLoop: pLS->pfEighthPerCycle = DataLocation; break; case Round: pLS->pfRoundMode = DataLocation; break; case RedoTap: pLS->pfRedoTapMode = DataLocation; break; case UseSafetyFeedback: pLS->pfUseSafetyFeedback = DataLocation; break; case OutputLatency: pLS->pfOutputLatency = DataLocation; break; case InputLatency: pLS->pfInputLatency = DataLocation; break; case TriggerLatency: pLS->pfTriggerLatency = DataLocation; break; case MuteQuantized: pLS->pfMuteQuantized = DataLocation; break; case OverdubQuantized: pLS->pfOverdubQuantized = DataLocation; break; case SyncOffsetSamples: pLS->pfSyncOffsetSamples = DataLocation; break; case RoundIntegerTempo: pLS->pfRoundIntegerTempo = DataLocation; break; case AudioInputPort: pLS->pfInput = DataLocation; break; case AudioOutputPort: pLS->pfOutput = DataLocation; break; case SyncInputPort: pLS->pfSyncInput = DataLocation; break; case SyncOutputPort: pLS->pfSyncOutput = DataLocation; break; case State: pLS->pfStateOut = DataLocation; break; case LoopLength: pLS->pfLoopLength = DataLocation; break; case LoopPosition: pLS->pfLoopPos = DataLocation; break; case CycleLength: pLS->pfCycleLength = DataLocation; break; case LoopFreeMemory: pLS->pfSecsFree = DataLocation; break; case LoopMemory: pLS->pfSecsTotal= DataLocation; break; case Waiting: pLS->pfWaiting= DataLocation; break; case TrueRate: pLS->pfRateOutput= DataLocation; break; case NextState: pLS->pfNextStateOut = DataLocation; break; } } static inline void fillLoops(SooperLooperI *pLS, LoopChunk *mloop, unsigned long lCurrPos, bool leavemarks) { LoopChunk *loop=NULL, *nloop, *srcloop; // descend to the oldest valid unfilled loop for (nloop=mloop; nloop; nloop = nloop->srcloop) { if (nloop->valid && (nloop->frontfill || nloop->backfill)) { loop = nloop; continue; } break; } // everything is filled! if (!loop) return; // do filling from earliest to latest for (; loop; loop=loop->next) { srcloop = loop->srcloop; // leavemarks is a special hack if (leavemarks || (loop->frontfill && lCurrPos<=loop->lMarkH && lCurrPos>=loop->lMarkL)) { if (!srcloop->valid) { // if src is not valid, fill with silence pLS->pSampleBuf[(loop->lLoopStart + lCurrPos) & pLS->lBufferSizeMask] = 0.0f; //DBG(fprintf(stderr, "srcloop invalid\n")); } else if (srcloop->lLoopLength) { // we need to finish off a previous pLS->pSampleBuf[(loop->lLoopStart + lCurrPos) & pLS->lBufferSizeMask] = pLS->pSampleBuf[(srcloop->lLoopStart + (lCurrPos % srcloop->lLoopLength)) & pLS->lBufferSizeMask]; } if (!leavemarks) { // move the right mark according to rate if (pLS->fCurrRate > 0) { loop->lMarkL = lCurrPos; } else { loop->lMarkH = lCurrPos; } // ASSUMPTION: our overdub rate is +/- 1 only if (loop->lMarkL == loop->lMarkH) { // now we take the input from ourself DBG(fprintf(stderr,"%u:%u front segment filled for %08x for %08x in at %lu\n", pLS->lLoopIndex, pLS->lChannelIndex, (unsigned)loop, (unsigned) srcloop, loop->lMarkL);); loop->frontfill = 0; loop->lMarkL = loop->lMarkH = LONG_MAX; } } } else if (loop->backfill && lCurrPos<=loop->lMarkEndH && lCurrPos>=loop->lMarkEndL) { if (srcloop && !srcloop->valid) { // if src is not valid, fill with silence pLS->pSampleBuf[(loop->lLoopStart + lCurrPos) & pLS->lBufferSizeMask] = 0.0f; //DBG(fprintf(stderr, "srcloop invalid\n")); } else if (srcloop && srcloop->lLoopLength) { // we need to finish off a previous pLS->pSampleBuf[(loop->lLoopStart + lCurrPos) & pLS->lBufferSizeMask] = pLS->pSampleBuf[(srcloop->lLoopStart + ((lCurrPos + loop->lStartAdj - loop->lEndAdj) % srcloop->lLoopLength)) & pLS->lBufferSizeMask]; } if (!leavemarks) { // move the right mark according to rate if (pLS->fCurrRate > 0) { loop->lMarkEndL = lCurrPos; } else { loop->lMarkEndH = lCurrPos; } // ASSUMPTION: our overdub rate is +/- 1 only if (loop->lMarkEndL == loop->lMarkEndH) { // now we take the input from ourself DBG(fprintf(stderr,"%u:%u back segment filled in for %08x from %08x at %lu\n", pLS->lLoopIndex, pLS->lChannelIndex, (unsigned)loop, (unsigned)srcloop, loop->lMarkEndL);); loop->backfill = 0; loop->lMarkEndL = loop->lMarkEndH = LONG_MAX; } } } if (mloop == loop) break; } } static LoopChunk* transitionToNext(SooperLooperI *pLS, LoopChunk *loop, int nextstate); static LoopChunk* beginMultiply(SooperLooperI *pLS, LoopChunk *loop) { LoopChunk * srcloop = loop; int xfadeSamples = (int) (*pLS->pfXfadeSamples); if (xfadeSamples < 1) xfadeSamples = 1; int prevstate = pLS->state; // first check if this is a multi-increase if (loop && loop->mult_out == (int)loop->lCycles && loop->backfill) { //fprintf(stderr, "got a first multi-increase\n"); // increase by one cycle length loop->mult_out += 1; pLS->state = STATE_MULTIPLY; pLS->fLoopFadeDelta = 1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; pLS->nextState = STATE_PLAY; return loop; } else { // make new loop chunk loop = pushNewLoopChunk(pLS, loop->lCycleLength, loop); } if (loop) { // if there is no source bail if (!loop->prev) { // lets just back out and revalidate the passed in loop loop->next = NULL; DBG(fprintf(stderr, "begin mult: there is no source\n")); loop = srcloop; pLS->headLoopChunk = pLS->tailLoopChunk = loop; loop->next = NULL; loop->prev = NULL; loop->valid = 1; // no mult op return NULL; // this is already set if we have no srcloop anymore } else { loop->srcloop = srcloop = loop->prev; } int prevstate = pLS->state; pLS->state = STATE_MULTIPLY; if (prevstate == STATE_TRIG_STOP || prevstate == STATE_RECORD) { // coming out of record we can actually // set the loopfadeatten to 0 without harm // since we're fading out the loopsrcfade pLS->fLoopFadeAtten = 0.0f; } // if (*pLS->pfQuantMode == 0.0f) { // we'll do this later if we are quantizing pLS->fLoopFadeDelta = 1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; // } pLS->fPlayFadeDelta = 1.0f / xfadeSamples; // added by jlc 20120709 //pLS->fPlayFadeDelta = -1.0f / xfadeSamples; long lInputLatency = (long) (*pLS->pfInputLatency); long lOutputLatency = (long) (*pLS->pfOutputLatency); long lTriggerLatency = (long) (*pLS->pfTriggerLatency); pLS->lFramesUntilInput = (long) lInputLatency - lTriggerLatency; // start out with the single cycle as our length as a marker loop->lLoopLength = srcloop->lCycleLength; //loop->lLoopLength = srcloop->lLoopLength; // start out at same pos loop->dCurrPos = srcloop->dCurrPos; loop->lCycles = 1; // start with 1 by default //loop->lCycles = srcloop->lCycles; loop->lCycleLength = srcloop->lCycleLength; loop->lSyncPos = srcloop->lSyncPos; loop->lOrigSyncPos = srcloop->lOrigSyncPos; loop->lSyncOffset = srcloop->lSyncOffset; // force rate to +1 pLS->fCurrRate = 1.0; loop->frontfill = 1; loop->backfill = 0; loop->firsttime = 1; loop->lStartAdj = 0; loop->lEndAdj = 0; pLS->nextState = -1; loop->dOrigFeedback = LIMIT_BETWEEN_0_AND_1(*pLS->pfFeedback); // handle the case where the src loop // is already multiplied if (srcloop->lCycles > 1) { // we effectively remove the first cycles from our new one if (*pLS->pfQuantMode == QUANT_CYCLE) { //loop->lStartAdj = ((int)floor(fabs((srcloop->dCurrPos-1) / srcloop->lCycleLength)) // + 1) * srcloop->lCycleLength; loop->lStartAdj = ((int)floorf(fabs((srcloop->dCurrPos) / srcloop->lCycleLength))) * srcloop->lCycleLength; loop->frontfill = 0; // no need. DBG(fprintf(stderr, "%u:%u start adj = %lu\n", pLS->lLoopIndex, pLS->lChannelIndex, loop->lStartAdj)); } else { // whatever cycle we are in will become the first loop->lStartAdj = ((int)floorf(fabs((srcloop->dCurrPos) / srcloop->lCycleLength))) * srcloop->lCycleLength; } // adjust dCurrPos by start adj. // we handle this properly in the processing section loop->dCurrPos = loop->dCurrPos - loop->lStartAdj; // start with 1 because we could end up with none! // which will be subtracted at the end loop->lCycles = 1; loop->lLoopLength = srcloop->lCycleLength; //loop->lLoopLength = 0; DBG(fprintf(stderr,"%u:%u Quantize ignoring first %d cycles. Orig length %lu\n", pLS->lLoopIndex, pLS->lChannelIndex, ((int)floor(srcloop->dCurrPos / srcloop->lCycleLength)+ 1), srcloop->lLoopLength)); } double rCurrPos = srcloop->dCurrPos; if (prevstate != STATE_RECORD && prevstate != STATE_TRIG_STOP) { rCurrPos -= lInputLatency - lOutputLatency; if (rCurrPos < 0) { rCurrPos += loop->lLoopLength; } rCurrPos = fmod (rCurrPos, loop->lLoopLength); } if (loop->dCurrPos > 0) { loop->lMarkL = 0; //loop->lMarkH = (unsigned long) rCurrPos - 1; //loop->lMarkH = (unsigned long) max (rCurrPos - (lOutputLatency + lInputLatency), 1.0) - 1; long markh = (long) fmod (rCurrPos - (lOutputLatency + lInputLatency), loop->lLoopLength) - 1; //cerr << "Low MARK H: " << markh << endl; if (markh < 0) markh = 0; loop->lMarkH = markh; if (loop->lMarkH == 0) { loop->frontfill = 0; loop->lMarkL = loop->lMarkH = LONG_MAX; } } else { DBG(cerr << "no frontfill, dcurrpos: " << loop->dCurrPos << endl); // no need to frontfill loop->frontfill = 0; loop->lMarkL = loop->lMarkH = LONG_MAX; } loop->lMarkEndL = loop->lMarkEndH = LONG_MAX; DBG(fprintf(stderr,"%u:%u Mark at L:%lu h:%lu\n", pLS->lLoopIndex, pLS->lChannelIndex,loop->lMarkL, loop->lMarkH); fprintf(stderr,"%u:%u EndMark at L:%lu h:%lu\n", pLS->lLoopIndex, pLS->lChannelIndex,loop->lMarkEndL, loop->lMarkEndH); fprintf(stderr,"%u:%u Entering MULTIPLY state with cyclecount=%lu curpos=%g looplen=%lu\n", pLS->lLoopIndex, pLS->lChannelIndex, loop->lCycles, loop->dCurrPos, loop->lLoopLength)); if (prevstate == STATE_RECORD || prevstate == STATE_TRIG_STOP) { // input always immediately available pLS->lFramesUntilInput = 0; // rest is handled elsewhere pLS->fLoopSrcFadeDelta = -1.0f / xfadeSamples; pLS->fFeedSrcFadeDelta = 1.0f / xfadeSamples; } } return loop; } // encapsulates what happens when a multiply is ended static LoopChunk * endMultiply(SooperLooperI *pLS, LoopChunk *loop, int nextstate) { LoopChunk *srcloop; int xfadeSamples = (int) (*pLS->pfXfadeSamples); if (xfadeSamples < 1) xfadeSamples = 1; srcloop = loop->srcloop; if (*pLS->pfQuantMode != 0 && srcloop->lCycles > 1 && loop->lCycles<1) { DBG(fprintf(stderr,"%u:%u Zero length loop now: at %d!\n", pLS->lLoopIndex, pLS->lChannelIndex, (int)loop->dCurrPos)); DBG(fprintf(stderr,"%u:%u Entering %d from MULTIPLY\n", pLS->lLoopIndex, pLS->lChannelIndex, nextstate)); pLS->state = nextstate; loop->backfill = 0; loop->lLoopLength = 0; } else { if (*pLS->pfQuantMode != 0 && srcloop->lCycles > 1) { // subtract a cycle right off? //loop->lCycles -= 1; } long lInputLatency = (long) (*pLS->pfInputLatency); long lOutputLatency = (long) (*pLS->pfOutputLatency); pLS->lFramesUntilFilled = lInputLatency + lOutputLatency; // to take care of leftover filling if (*pLS->pfRoundMode == 0) { // calculate loop length loop->lLoopLength = loop->lCycles * loop->lCycleLength; loop->backfill = 1; // adjust curr position //loop->dCurrPos -= loop->lStartAdj; loop->lMarkEndL = (unsigned long) loop->dCurrPos; loop->lMarkEndH = loop->lLoopLength - 1; DBG(fprintf(stderr,"%u:%u Entering %d from MULTIPLY. Length %lu. %lu cycles\n", pLS->lLoopIndex, pLS->lChannelIndex,nextstate, loop->lLoopLength, loop->lCycles)); DBG(fprintf(stderr,"%u:%u EndMark at L:%lu h:%lu\n", pLS->lLoopIndex, pLS->lChannelIndex,loop->lMarkEndL, loop->lMarkEndH)); pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; loop = transitionToNext(pLS, loop, nextstate); } else { // in round mode we need to wait it out // and keep recording till the end DBG(fprintf(stderr,"%u:%u Finishing MULTIPLY rounded\n", pLS->lLoopIndex, pLS->lChannelIndex)); loop->lMarkEndL = (unsigned long)loop->dCurrPos; // loop->lMarkEndH = loop->lLoopLength + loop->lStartAdj - 1; loop->lMarkEndH = loop->lLoopLength - 1; pLS->nextState = nextstate; pLS->rounding = true; } } return loop; } static LoopChunk * beginInsert(SooperLooperI *pLS, LoopChunk *loop) { LoopChunk *srcloop = loop; int xfadeSamples = (int) (*pLS->pfXfadeSamples); if (xfadeSamples < 1) xfadeSamples = 1; int prevstate = pLS->state; // try to get a new one with at least 1 cycle more length loop = pushNewLoopChunk(pLS, loop->lLoopLength + loop->lCycleLength, loop); if (loop) { DBG(fprintf(stderr,"%u:%u Entering INSERT state\n", pLS->lLoopIndex, pLS->lChannelIndex)); if (!loop->prev) { // lets just back out and revalidate the passed in loop loop->next = NULL; DBG(fprintf(stderr, "begin ins: there is no source\n")); loop = srcloop; pLS->headLoopChunk = pLS->tailLoopChunk = loop; loop->next = NULL; loop->prev = NULL; loop->valid = 1; // no mult op return NULL; // this is already set if we have no srcloop anymore } else { loop->srcloop = srcloop = loop->prev; } pLS->state = STATE_INSERT; if (*pLS->pfQuantMode == 0.0f) { // we'll do this later if we are quantizing pLS->fLoopFadeDelta = 1.0f / xfadeSamples; pLS->fFeedFadeDelta = -1.0f / xfadeSamples; } pLS->fPlayFadeDelta = -1.0f / xfadeSamples; long lInputLatency = (long) (*pLS->pfInputLatency); long lOutputLatency = (long) (*pLS->pfOutputLatency); long lTriggerLatency = (long) (*pLS->pfTriggerLatency); pLS->lFramesUntilInput = (long) lInputLatency - lTriggerLatency; // start out with the single cycle extra as our length loop->lLoopLength = srcloop->lLoopLength + srcloop->lCycleLength; loop->dCurrPos = srcloop->dCurrPos; loop->lCycles = srcloop->lCycles + 1; // start with src by default loop->lCycleLength = srcloop->lCycleLength; loop->dOrigFeedback = LIMIT_BETWEEN_0_AND_1(*pLS->pfFeedback); // force rate to +1 pLS->fCurrRate = 1.0; loop->frontfill = 1; loop->backfill = 0; loop->firsttime = 1; loop->lStartAdj = 0; loop->lEndAdj = 0; if (*pLS->pfQuantMode == QUANT_CYCLE) { // the next cycle boundary loop->lInsPos = ((int)floor(fabs(srcloop->dCurrPos-1) / srcloop->lCycleLength) + 1) * srcloop->lCycleLength; } else { loop->lInsPos = (unsigned long) loop->dCurrPos; } if (*pLS->pfRoundMode != 0) { loop->lRemLen = (unsigned long) (srcloop->lLoopLength - loop->lInsPos); } else { loop->lRemLen = (unsigned long) (srcloop->lLoopLength - loop->dCurrPos); } pLS->nextState = -1; double rCurrPos = srcloop->dCurrPos; if (prevstate != STATE_RECORD && prevstate != STATE_TRIG_STOP) { //rCurrPos -= lInputLatency + lOutputLatency; //if (rCurrPos < 0) { // rCurrPos += loop->lLoopLength; //} //rCurrPos = fmod (rCurrPos, loop->lLoopLength); } if (loop->dCurrPos > 0) { long markh = (long) fmod (rCurrPos - (lOutputLatency + lInputLatency), loop->lLoopLength) - 1; if (markh < 0) markh = 0; loop->lMarkL = 0; loop->lMarkH = (unsigned long) markh; } else { loop->frontfill = 0; loop->lMarkL = loop->lMarkH = LONG_MAX; } loop->lMarkEndL = loop->lMarkEndH = LONG_MAX; DBG(fprintf(stderr, "%u:%u InsPos=%lu RemLen=%lu\n", pLS->lLoopIndex, pLS->lChannelIndex, loop->lInsPos, loop->lRemLen)); DBG(fprintf(stderr,"%u:%u Total cycles now=%lu\n", pLS->lLoopIndex, pLS->lChannelIndex, loop->lCycles)); } return loop; } // encapsulates what happens when a insert is ended static LoopChunk * endInsert(SooperLooperI *pLS, LoopChunk *loop, int nextstate) { LoopChunk *srcloop; int xfadeSamples = (int) (*pLS->pfXfadeSamples); if (xfadeSamples < 1) xfadeSamples = 1; srcloop = loop->srcloop; // we wait it out in insert until the end of the loop // in round mode we need to wait it out // and keep recording till the end // the end adjust is the difference in length between us and our source // now set our end adjustment for later backfill loop->lEndAdj = loop->lLoopLength - srcloop->lLoopLength; long lInputLatency = (long) (*pLS->pfInputLatency); long lOutputLatency = (long) (*pLS->pfOutputLatency); pLS->lFramesUntilFilled = lInputLatency + lOutputLatency; // to take care of leftover filling loop->lMarkEndL = (unsigned long)loop->dCurrPos; loop->lMarkEndH = loop->lLoopLength - loop->lRemLen; DBG(fprintf(stderr,"%u:%u Finishing INSERT... lMarkEndL=%lu lMarkEndH=%lu ll=%lu rl=%lu\n", pLS->lLoopIndex, pLS->lChannelIndex, loop->lMarkEndL, loop->lMarkEndH, loop->lLoopLength, loop->lRemLen)); pLS->nextState = nextstate; if (*pLS->pfRoundMode == 0.0f) { pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fPlayFadeDelta = 1.0f / xfadeSamples; } pLS->rounding = true; return loop; } static LoopChunk * beginOverdub(SooperLooperI *pLS, LoopChunk *loop) { LoopChunk * srcloop = loop; int xfadeSamples = (int) (*pLS->pfXfadeSamples); if (xfadeSamples < 1) xfadeSamples = 1; // make new loop chunk //loop = pushNewLoopChunk(pLS, loop->lLoopLength, loop); loop = pushNewLoopChunk(pLS, 0, loop); if (loop) { int prevstate = pLS->state; pLS->state = STATE_OVERDUB; // always the same length as previous loop if (prevstate == STATE_TRIG_STOP || prevstate == STATE_RECORD) { // coming out of record we can actually // set the loopfadeatten to 0 without harm // since we're fading out the loopsrcfade pLS->fLoopFadeAtten = 0.0f; } pLS->fLoopFadeDelta = 1.0f / xfadeSamples; long lInputLatency = (long) (*pLS->pfInputLatency); long lOutputLatency = (long) (*pLS->pfOutputLatency); long lTriggerLatency = (long) (*pLS->pfTriggerLatency); pLS->fLoopSrcFadeDelta = -1.0f / xfadeSamples; pLS->fFeedSrcFadeDelta = 1.0f / xfadeSamples; pLS->fPlayFadeDelta = 1.0f / xfadeSamples; // added by jlc 20120709 pLS->lFramesUntilInput = (long) lInputLatency - lTriggerLatency; pLS->lFramesUntilFilled = lOutputLatency + lInputLatency; DBG(cerr << pLS->lLoopIndex << ":" << pLS->lChannelIndex << " frames until input: " << pLS->lFramesUntilInput << " xfade samps: " << xfadeSamples << endl); if (!loop->prev) { // then we are overwriting our own source // lets just back out and revalidate the passed in loop loop->next = NULL; DBG(fprintf(stderr, "%u:%u OVERdub using self\n", pLS->lLoopIndex, pLS->lChannelIndex)); loop = srcloop; pLS->headLoopChunk = pLS->tailLoopChunk = loop; loop->next = NULL; loop->prev = NULL; loop->valid = 1; loop->srcloop = loop; // !!! pLS->nextState = -1; return loop; // this is already set if we have no srcloop anymore } else { loop->srcloop = srcloop = loop->prev; } loop->lCycles = srcloop->lCycles; loop->lCycleLength = srcloop->lCycleLength; loop->lLoopLength = srcloop->lLoopLength; loop->dCurrPos = srcloop->dCurrPos; loop->lSyncPos = srcloop->lSyncPos; loop->lOrigSyncPos = srcloop->lOrigSyncPos; loop->lSyncOffset = srcloop->lSyncOffset; loop->lStartAdj = 0; loop->lEndAdj = 0; pLS->nextState = -1; loop->dOrigFeedback = LIMIT_BETWEEN_0_AND_1(*pLS->pfFeedback); //double rCurrPos = loop->dCurrPos - lInputLatency - lOutputLatency; double rCurrPos = loop->dCurrPos; if (rCurrPos < 0) { rCurrPos += loop->lLoopLength; } rCurrPos = fmod (rCurrPos, loop->lLoopLength); if (rCurrPos > 0) loop->frontfill = 1; else loop->frontfill = 0; loop->backfill = 1; // logically we need to fill in the cycle up to the // srcloop's current position. // we let the overdub loop itself do this when it gets around to it if (pLS->fCurrRate < 0) { pLS->fCurrRate = -1.0; // negative rate // need to fill in between these values loop->lMarkL = (unsigned long) rCurrPos + 1; loop->lMarkH = loop->lLoopLength - 1; loop->lMarkEndL = 0; //loop->lMarkEndH = (unsigned long) rCurrPos; loop->lMarkEndH = (unsigned long) fmod (rCurrPos + (lOutputLatency + lInputLatency), loop->lLoopLength); if (loop->lMarkEndH < loop->lMarkL) { DBG(cerr << pLS->lLoopIndex << ":" << pLS->lChannelIndex << " Border line rev" << endl); loop->lMarkL = loop->lMarkEndH; loop->lMarkEndH = (unsigned long) rCurrPos + 1; } } else { pLS->fCurrRate = 1.0; loop->lMarkL = 0; //loop->lMarkH = (unsigned long) fmod (rCurrPos - (lOutputLatency + lInputLatency), loop->lLoopLength)) - 1; long markh = (long) fmod (rCurrPos - (lOutputLatency + lInputLatency), loop->lLoopLength) - 1; if (markh < 0) markh = 0; loop->lMarkH = (unsigned long) markh; loop->lMarkEndL = (unsigned long) rCurrPos; loop->lMarkEndH = loop->lLoopLength - 1; if (loop->lMarkH > loop->lMarkEndL) { DBG(cerr << "Border line" << endl); loop->lMarkEndL = loop->lMarkH; loop->lMarkH = (unsigned long) rCurrPos; } } DBG(fprintf(stderr,"%u:%u Mark at L:%lu h:%lu\n", pLS->lLoopIndex, pLS->lChannelIndex,loop->lMarkL, loop->lMarkH)); DBG(fprintf(stderr,"%u:%u EndMark at L:%lu h:%lu\n", pLS->lLoopIndex, pLS->lChannelIndex,loop->lMarkEndL, loop->lMarkEndH)); DBG(fprintf(stderr,"%u:%u Entering OVERDUB/repl/subs state: srcloop is %08x\n", pLS->lLoopIndex, pLS->lChannelIndex, (unsigned)srcloop)); } return loop; } static LoopChunk * beginSubstitute(SooperLooperI *pLS, LoopChunk *loop) { LoopChunk * tloop = beginOverdub(pLS, loop); int xfadeSamples = (int) (*pLS->pfXfadeSamples); if (xfadeSamples < 1) xfadeSamples = 1; if (tloop) { pLS->state = STATE_SUBSTITUTE; pLS->fFeedFadeDelta = -1.0f / xfadeSamples; pLS->fPlayFadeDelta = 1.0f / xfadeSamples; } return tloop; } static LoopChunk * beginReplace(SooperLooperI *pLS, LoopChunk *loop) { LoopChunk * tloop = beginOverdub(pLS, loop); int xfadeSamples = (int) (*pLS->pfXfadeSamples); if (xfadeSamples < 1) xfadeSamples = 1; if (tloop) { pLS->state = STATE_REPLACE; pLS->fPlayFadeDelta = -1.0f / xfadeSamples; pLS->fFeedFadeDelta = -1.0f / xfadeSamples; } return tloop; } static LoopChunk * transitionToNext(SooperLooperI *pLS, LoopChunk *loop, int nextstate) { LoopChunk * newloop = loop; int xfadeSamples = (int) (*pLS->pfXfadeSamples); if (xfadeSamples < 1) xfadeSamples = 1; unsigned int eighthSamples = 0; unsigned int syncSamples = 0; if (*pLS->pfTempo > 0.0f) { eighthSamples = (unsigned int) (pLS->fSampleRate * 30.0 / *pLS->pfTempo); if (*pLS->pfQuantMode == QUANT_CYCLE || *pLS->pfQuantMode == QUANT_LOOP) { syncSamples = (unsigned int) (eighthSamples * *pLS->pfEighthPerCycle / 2); } else if (*pLS->pfQuantMode == QUANT_8TH) { syncSamples = (eighthSamples / 2); } } switch(nextstate) { case STATE_PLAY: pLS->fLoopFadeDelta = -1.0f / (xfadeSamples); pLS->fLoopSrcFadeDelta = -1.0f / xfadeSamples; pLS->fPlayFadeDelta = 1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; pLS->fFeedSrcFadeDelta = 1.0f / xfadeSamples; pLS->wasMuted = false; if (pLS->state == STATE_PAUSED && loop) { // set current loop position to paused position loop->dCurrPos = pLS->dPausedPos; DBG(fprintf(stderr, "%u:%u t2n setting loop pos to pause pos: %g\n", pLS->lLoopIndex, pLS->lChannelIndex, pLS->dPausedPos)); } break; case STATE_MUTE: case STATE_PAUSED: pLS->fLoopFadeDelta = -1.0f / (xfadeSamples); pLS->fPlayFadeDelta = -1.0f / xfadeSamples; pLS->fLoopSrcFadeDelta = -1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; pLS->fFeedSrcFadeDelta = 1.0f / xfadeSamples; pLS->wasMuted = true; if (nextstate == STATE_PAUSED && loop) { pLS->dPausedPos = loop->dCurrPos; pLS->wasMuted = false; } break; case STATE_OVERDUB: newloop = beginOverdub(pLS, loop); break; case STATE_REPLACE: newloop = beginReplace(pLS, loop); break; case STATE_SUBSTITUTE: newloop = beginSubstitute(pLS, loop); break; case STATE_INSERT: newloop = beginInsert(pLS, loop); if (!newloop) { nextstate = -1; } break; case STATE_MULTIPLY: newloop = beginMultiply(pLS, loop); if (!newloop) { nextstate = -1; } break; case STATE_TRIGGER_PLAY: pLS->fLoopFadeDelta = -1.0f / (xfadeSamples); pLS->fPlayFadeDelta = 1.0f / xfadeSamples; pLS->fLoopSrcFadeDelta = -1.0f / xfadeSamples; pLS->fFeedSrcFadeDelta = 1.0f / xfadeSamples; if (loop) { pLS->state = STATE_PLAY; nextstate = STATE_PLAY; pLS->wasMuted = false; if (pLS->fCurrRate > 0) { DBG(fprintf(stderr, "%u:%u trigger play : pre loop pos: %g\n", pLS->lLoopIndex, pLS->lChannelIndex, loop->dCurrPos)); loop->dCurrPos = (double) loop->lLoopLength - loop->lSyncPos; DBG(fprintf(stderr, "%u:%u trigger play %08x: syncpos: %ld\n", pLS->lLoopIndex, pLS->lChannelIndex, (unsigned)pLS, loop->lSyncPos)); //loop->dCurrPos = fmod(loop->dCurrPos, loop->lLoopLength); // wrapx if (*pLS->pfSyncMode >= 1.0f && pLS->lSamplesSinceSync < eighthSamples) { // if rel sync is on, shift it forward to account for not being quantized loop->dCurrPos += pLS->lSamplesSinceSync; // jlc DBG(fprintf(stderr, "%u:%u after adding %u pos = %g\n", pLS->lLoopIndex, pLS->lChannelIndex, pLS->lSamplesSinceSync, loop->dCurrPos)); } } else { loop->dCurrPos = (loop->lLoopLength - loop->lSyncPos) - 1; if (*pLS->pfSyncMode >= 1.0f && pLS->lSamplesSinceSync < eighthSamples) { // if rel sync is on, shift it forward to account for not being quantized loop->dCurrPos -= pLS->lSamplesSinceSync; // jlc DBG(fprintf(stderr, "%u:%u after sub %u pos = %g\n", pLS->lLoopIndex, pLS->lChannelIndex, pLS->lSamplesSinceSync, loop->dCurrPos)); } } } break; case STATE_ONESHOT: // play the loop one_shot mode pLS->fLoopFadeDelta = -1.0f / (xfadeSamples); pLS->fPlayFadeDelta = 1.0f / xfadeSamples; pLS->fLoopSrcFadeDelta = -1.0f / xfadeSamples; pLS->fFeedSrcFadeDelta = 1.0f / xfadeSamples; if (loop) { DBG(fprintf(stderr,"%u:%u Starting ONESHOT state\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->state = STATE_ONESHOT; if (pLS->fCurrRate > 0) { loop->dCurrPos = (loop->lLoopLength - loop->lSyncPos) + *pLS->pfSyncOffsetSamples; if (*pLS->pfSyncMode == 2.0f && pLS->lSamplesSinceSync < eighthSamples) { // if rel sync is on, shift it forward to account for not being quantized loop->dCurrPos += pLS->lSamplesSinceSync; // jlc DBG(fprintf(stderr, "%u:%u after adding %u pos = %g\n", pLS->lLoopIndex, pLS->lChannelIndex, pLS->lSamplesSinceSync, loop->dCurrPos)); } } else { loop->dCurrPos = (loop->lLoopLength - loop->lSyncPos) - 1; if (*pLS->pfSyncMode == 2.0f && pLS->lSamplesSinceSync < eighthSamples) { // if rel sync is on, shift it forward to account for not being quantized loop->dCurrPos -= pLS->lSamplesSinceSync; // jlc DBG(fprintf(stderr, "%u:%u after sub %u pos = %g\n", pLS->lLoopIndex, pLS->lChannelIndex, pLS->lSamplesSinceSync, loop->dCurrPos)); } } // wrap loop->dCurrPos = fmod(loop->dCurrPos, loop->lLoopLength); DBG(fprintf(stderr,"%u:%u Starting ONESHOT state, currpos now: %g\n", pLS->lLoopIndex, pLS->lChannelIndex, loop->dCurrPos)); } break; } if (nextstate != -1) { if (loop) { DBG(fprintf(stderr,"%u:%u Entering state %d from %d at %g\n", pLS->lLoopIndex, pLS->lChannelIndex, nextstate, pLS->state, loop->dCurrPos)); } pLS->state = nextstate; } else { DBG(fprintf(stderr,"%u:%u Next state is -1?? Why?\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->state = STATE_PLAY; pLS->wasMuted = false; } // never wait for input when transitioning pLS->lFramesUntilInput = 0; return newloop; } /*****************************************************************************/ /* Run the sampler for a block of SampleCount samples. */ void runSooperLooper(LADSPA_Handle Instance, unsigned long SampleCount) { LADSPA_Data * pfBuffer; LADSPA_Data * pfInput; LADSPA_Data * pfOutput; LADSPA_Data * pfSyncInput; LADSPA_Data * pfSyncOutput; LADSPA_Data * pfInputLatencyBuf; LADSPA_Data fDry=1.0f, fWet=1.0f, tmpWet; LADSPA_Data dryDelta=0.0f, wetDelta=0.0f, dryTarget=1.0f, wetTarget=1.0f; LADSPA_Data fInputSample; LADSPA_Data fOutputSample; LADSPA_Data fRate = 1.0f; LADSPA_Data fScratchPos = 0.0f; //LADSPA_Data rateDelta=0.0f, rateTarget=1.0f; LADSPA_Data scratchDelta=0.0f, scratchTarget=0.0f; LADSPA_Data fTrigThresh = 0.0f; LADSPA_Data fTempo; unsigned int eighthSamples = 1; unsigned int syncSamples = 0; unsigned int eighthPerCycle = 8; int lMultiCtrl=-1; bool useFeedbackPlay = false; LADSPA_Data fTapTrig = 0.0f; LADSPA_Data fFeedback = 1.0f; LADSPA_Data feedbackDelta=0.0f, feedbackTarget=1.0f; unsigned int lCurrPos = 0; unsigned int xCurrPos = 0; unsigned int lpCurrPos = 0; LADSPA_Data *pLoopSample, *spLoopSample, *rLoopSample, *rpLoopSample, *xLoopSample; long slCurrPos; double rCurrPos; double rpCurrPos; double dDummy; int firsttime, backfill; int useDelay = 0; int prevstate; float fPosRatio; int xfadeSamples = XFADE_SAMPLES; SooperLooperI * pLS; LoopChunk *loop, *srcloop=0; LoopChunk *lastloop, *prevloop, *nextloop; LADSPA_Data fSyncMode = 0.0f; LADSPA_Data fQuantizeMode = 0.0f; LADSPA_Data fPlaybackSyncMode = 0.0f; LADSPA_Data fMuteQuantized = 0.0f; LADSPA_Data fOverdubQuantized = 0.0f; bool bReplaceQuantized = true; LADSPA_Data fSyncOffsetSamples = 0.0f; bool bRoundIntegerTempo = false; unsigned long lSampleIndex; LADSPA_Data fSafetyFeedback; pLS = (SooperLooperI *)Instance; if (!pLS || !pLS->pfInput || !pLS->pfOutput) { // something is badly wrong!!! return; } pfInput = pLS->pfInput; pfOutput = pLS->pfOutput; pfBuffer = (LADSPA_Data *)pLS->pSampleBuf; pfSyncOutput = pLS->pfSyncOutput; pfSyncInput = pLS->pfSyncInput; pfInputLatencyBuf = (LADSPA_Data *) pLS->pInputBuf; xfadeSamples = (int) (*pLS->pfXfadeSamples); if (xfadeSamples < 1) xfadeSamples = 1; fTrigThresh = *pLS->pfTrigThresh; pLS->bRateCtrlActive = (int) *pLS->pfRateCtrlActive; fSyncMode = *pLS->pfSyncMode; fPlaybackSyncMode = *pLS->pfPlaybackSyncMode; fQuantizeMode = *pLS->pfQuantMode; fMuteQuantized = *pLS->pfMuteQuantized; fOverdubQuantized = *pLS->pfOverdubQuantized; bReplaceQuantized = pLS->bReplaceQuantized; fSyncOffsetSamples = *pLS->pfSyncOffsetSamples; bRoundIntegerTempo = *pLS->pfRoundIntegerTempo; eighthPerCycle = (unsigned int) *pLS->pfEighthPerCycle; fSafetyFeedback = (*pLS->pfUseSafetyFeedback != 0.0f) ? SAFETY_FEEDBACK : 1.0f; fTempo = *pLS->pfTempo; if (fTempo > 0.0f) { eighthSamples = (unsigned int) (pLS->fSampleRate * 30.0 / fTempo); if (fQuantizeMode == QUANT_CYCLE || fQuantizeMode == QUANT_LOOP) { syncSamples = (unsigned int) (eighthSamples * eighthPerCycle / 2); } else if (fQuantizeMode == QUANT_8TH) { syncSamples = (eighthSamples / 2); } } lMultiCtrl = (int) *(pLS->pfMultiCtrl); useFeedbackPlay = (bool) *(pLS->pfUseFeedbackPlay); fTapTrig = *(pLS->pfTapCtrl); if (lMultiCtrl == pLS->lLastMultiCtrl) { // ignore it, we must have a change to trigger an action // and it must be the right 10s. lMultiCtrl = -1; } else { DBG(fprintf(stderr, "Multi change from %d to %d\n", pLS->lLastMultiCtrl, lMultiCtrl)); pLS->lLastMultiCtrl = lMultiCtrl; } // force use delay if (lMultiCtrl == MULTI_REDO && *pLS->pfRedoTapMode != 0) { useDelay = 1; } else if (lMultiCtrl == MULTI_MUTE_ON) { if ((pLS->state != STATE_MUTE) && (pLS->state != STATE_OFF_MUTE)) { // lets mute it lMultiCtrl = MULTI_MUTE; } else { // already muted, do nothing lMultiCtrl = -1; } } else if (lMultiCtrl == MULTI_MUTE_OFF) { if ((pLS->state == STATE_MUTE) || (pLS->state == STATE_OFF_MUTE)) { // lets unmute it lMultiCtrl = MULTI_MUTE; } else { // already not muted, do nothing lMultiCtrl = -1; } } else if (lMultiCtrl == MULTI_MUTE_TRIGGER) { if (pLS->state != STATE_MUTE) { // lets mute it lMultiCtrl = MULTI_MUTE; } else { // already muted, Trigger lMultiCtrl = MULTI_TRIGGER; } } else if (lMultiCtrl == MULTI_RECORD_OR_OVERDUB) { if (!pLS->headLoopChunk || pLS->state == STATE_OFF || pLS->state == STATE_OFF_MUTE || pLS->state == STATE_RECORD || pLS->state == STATE_TRIG_START || pLS->state == STATE_TRIG_STOP || pLS->state == STATE_DELAY) { // we record lMultiCtrl = MULTI_RECORD; } else { // otherwise overdub lMultiCtrl = MULTI_OVERDUB; } } else if (lMultiCtrl == MULTI_RECORD_OVERDUB_END) { if (!pLS->headLoopChunk || pLS->state == STATE_OFF || pLS->state == STATE_OFF_MUTE || pLS->state == STATE_DELAY) { // we record lMultiCtrl = MULTI_RECORD; } else { // otherwise overdub lMultiCtrl = MULTI_OVERDUB; } } else if (lMultiCtrl == MULTI_PAUSE_ON) { if (pLS->state != STATE_PAUSED) { // lets pause it lMultiCtrl = MULTI_PAUSE; } else { // already paused, do nothing lMultiCtrl = -1; } } else if (lMultiCtrl == MULTI_PAUSE_OFF) { if (pLS->state == STATE_PAUSED) { // lets unpause it lMultiCtrl = MULTI_PAUSE; } else { // already not paused, do nothing lMultiCtrl = -1; } } if (fTapTrig == pLS->fLastTapCtrl) { // ignore it, we must have a change to trigger a tap } else if (pLS->lTapTrigSamples >= TRIG_SETTLE) { // signal to below to trigger the delay tap command if (pLS->bPreTap) { // ignore the first time pLS->bPreTap = 0; } else { DBG(fprintf(stderr, "%u:%u Tap triggered\n", pLS->lLoopIndex, pLS->lChannelIndex)); lMultiCtrl = MULTI_REDO; useDelay = 1; } } pLS->fLastTapCtrl = fTapTrig; //fRateSwitch = *(pLS->pfRateSwitch); if (pLS->pfScratchPos) { scratchTarget = LIMIT_BETWEEN_0_AND_1(*(pLS->pfScratchPos)); fScratchPos = LIMIT_BETWEEN_0_AND_1(pLS->fScratchPosCurr); scratchDelta = (scratchTarget - fScratchPos) / MAX(1, (SampleCount - 1)); } // the rate switch is ON if it is below 1 but not 0 // rate is 1 if rate switch is off //if (fRateSwitch > 1.0 || fRateSwitch==0.0) { // fRate = 1.0; //} //else { //fprintf(stderr, "rateswitch is 1.0: %f!\n", fRate); //} wetTarget = LIMIT_BETWEEN_0_AND_1(*(pLS->pfWet)); fWet = LIMIT_BETWEEN_0_AND_1(pLS->fWetCurr); wetDelta = (wetTarget - fWet) / MAX(1, (SampleCount - 1)); // wetTarget += wetDelta; // fWet = fWet * 0.1f + wetTarget * 0.9f; dryTarget = LIMIT_BETWEEN_0_AND_1(*(pLS->pfDry)); fDry = LIMIT_BETWEEN_0_AND_1(pLS->fDryCurr); dryDelta = (dryTarget - fDry) / MAX(1, (SampleCount - 1)); feedbackTarget = LIMIT_BETWEEN_0_AND_1(*(pLS->pfFeedback)); fFeedback = LIMIT_BETWEEN_0_AND_1(pLS->fFeedbackCurr); feedbackDelta = (feedbackTarget - fFeedback) / MAX(1, (SampleCount - 1)); // probably against the rules, but I'm doing it anyway *pLS->pfFeedback = feedbackTarget; loop = pLS->headLoopChunk; // clear sync out if (fSyncMode == 0.0f || pfSyncInput != pfSyncOutput) { memset(pfSyncOutput, 0, SampleCount * sizeof(LADSPA_Data)); } unsigned long lInputLatency = (unsigned long) (*pLS->pfInputLatency); unsigned long lOutputLatency = (unsigned long) (*pLS->pfOutputLatency); // copy input signal to input latency buffer unsigned long lbuf_wpos = pLS->lInputBufWritePos; for (unsigned long n=0; n < SampleCount; ++n) { pfInputLatencyBuf[lbuf_wpos] = pfInput[n]; lbuf_wpos = (lbuf_wpos+1) & pLS->lInputBufMask; } // calculate initial offset for reading for input unsigned long lInputReadPos = (lInputLatency <= pLS->lInputBufWritePos) ? (pLS->lInputBufWritePos - lInputLatency) : (pLS->lInputBufSize - (lInputLatency - pLS->lInputBufWritePos)) ; // transitions due to control triggering if (lMultiCtrl >= 0 && lMultiCtrl <= 127) { DBG(fprintf(stderr, "Multictrl val is %ld\n", lMultiCtrl)); //lMultiCtrl = lMultiCtrl; // change the value if necessary if (lMultiCtrl==MULTI_REDO && useDelay) { lMultiCtrl = MULTI_DELAY; } switch(lMultiCtrl) { case MULTI_RECORD: { switch(pLS->state) { case STATE_RECORD: if (fSyncMode == 0.0f && (fTrigThresh==0.0f) && !bRoundIntegerTempo) { // skip trig stop pLS->state = STATE_PLAY; pLS->wasMuted = false; pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fPlayFadeDelta = 1.0f / xfadeSamples; pLS->fLoopSrcFadeDelta = -1.0f / xfadeSamples; pLS->fFeedSrcFadeDelta = 1.0f / xfadeSamples; DBG(fprintf(stderr,"%u:%u from rec Entering PLAY state loop len: %lu\n", pLS->lLoopIndex, pLS->lChannelIndex, loop->lLoopLength)); // then send out a sync here for any slaves pfSyncOutput[0] = 2.0f; if (loop) { // we need to increment loop position by output latency (+ IL ?) loop->dCurrPos = fmod(loop->dCurrPos + ( lOutputLatency + lInputLatency) * fRate, loop->lLoopLength); pLS->lFramesUntilFilled = lOutputLatency + lInputLatency; DBG(fprintf(stderr,"%u:%u from rec Entering PLAY state at %g\n", pLS->lLoopIndex, pLS->lChannelIndex, loop->dCurrPos)); } } else { pLS->state = STATE_TRIG_STOP; pLS->nextState = STATE_PLAY; DBG(fprintf(stderr,"%u:%u Entering TRIG_STOP state\n", pLS->lLoopIndex, pLS->lChannelIndex)); } break; case STATE_MULTIPLY: // special ending for multiply // the loop ends immediately and the cycle length changes // and #cycles becomes 1 if (loop) { loop->backfill = 0; loop->lLoopLength = (unsigned long) (loop->dCurrPos - loop->lStartAdj); loop->lCycleLength = loop->lLoopLength; loop->lCycles = 1; pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fPlayFadeDelta = 1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; pLS->fLoopSrcFadeDelta = -1.0f / xfadeSamples; pLS->fFeedSrcFadeDelta = 1.0f / xfadeSamples; pLS->state = STATE_PLAY; pLS->wasMuted = false; DBG(fprintf(stderr,"%u:%u Entering PLAY state after Multiply NEW loop\n", pLS->lLoopIndex, pLS->lChannelIndex)); // we need to increment loop position by output latency (+ IL ?) loop->dCurrPos = loop->dCurrPos + ( lOutputLatency + lInputLatency) * fRate; pLS->lFramesUntilFilled = lOutputLatency + lInputLatency; } break; case STATE_INSERT: // special ending for insert // the loop ends immediately and the cycle length changes // and #cycles becomes 1 if (loop) { // how much loop was remaining when the insert started loop->lEndAdj = loop->lRemLen; loop->lLoopLength = (unsigned long) (loop->dCurrPos + loop->lRemLen); loop->backfill = 1; loop->lMarkEndL = (unsigned long) loop->dCurrPos; loop->lMarkEndH = loop->lLoopLength - 1; loop->lCycleLength = loop->lLoopLength; loop->lCycles = 1; pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fPlayFadeDelta = 1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; pLS->fLoopSrcFadeDelta = -1.0f / xfadeSamples; pLS->fFeedSrcFadeDelta = 1.0f / xfadeSamples; pLS->state = STATE_PLAY; pLS->wasMuted = false; DBG(fprintf(stderr,"%u:%u Entering PLAY state after Multiply NEW loop\n", pLS->lLoopIndex, pLS->lChannelIndex)); // we need to increment loop position by output latency (+ IL ?) loop->dCurrPos = loop->dCurrPos + ( lOutputLatency + lInputLatency) * fRate; pLS->lFramesUntilFilled = lOutputLatency + lInputLatency; } break; case STATE_DELAY: // goes back to play mode // pop the delay loop off.... if (loop) { undoLoop(pLS, false); } pLS->state = STATE_TRIG_START; DBG(fprintf(stderr,"%u:%u Entering TRIG_START state from DELAY\n", pLS->lLoopIndex, pLS->lChannelIndex)); break; default: pLS->state = STATE_TRIG_START; DBG(fprintf(stderr,"%u:%u Entering TRIG_START state\n", pLS->lLoopIndex, pLS->lChannelIndex)); } } break; case MULTI_OVERDUB: { switch(pLS->state) { case STATE_OVERDUB: // don't sync overdub ops unless asked to if ((fOverdubQuantized == 0.0f) || (fSyncMode == 0.0f && fQuantizeMode == QUANT_OFF)) { pLS->state = STATE_PLAY; pLS->wasMuted = false; DBG(fprintf(stderr,"%u:%u Entering PLAY state\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fPlayFadeDelta = 1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; // then send out a sync here for any slaves pfSyncOutput[0] = 1.0f; } else { pLS->nextState = STATE_PLAY; pLS->waitingForSync = 1; } break; case STATE_MULTIPLY: if (loop) { loop = endMultiply(pLS, loop, STATE_OVERDUB); } break; case STATE_INSERT: if (loop) { loop = endInsert(pLS, loop, STATE_OVERDUB); } break; case STATE_RECORD: case STATE_TRIG_STOP: // lets sync on ending record with overdub if (fSyncMode == 0.0f && !bRoundIntegerTempo) { if (loop) { loop = beginOverdub(pLS, loop); if (loop) srcloop = loop->srcloop; else srcloop = NULL; // we need to increment loop position by output latency (+ IL ?) loop->dCurrPos = loop->dCurrPos + ( lOutputLatency + lInputLatency) * fRate; DBG(fprintf(stderr,"%u:%u from rec Entering overdub state at %g\n", pLS->lLoopIndex, pLS->lChannelIndex, loop->dCurrPos)); pLS->lFramesUntilFilled = lOutputLatency + lInputLatency; // input always immediately available pLS->lFramesUntilInput = 0; pLS->fLoopSrcFadeDelta = -1.0f / xfadeSamples; pLS->fFeedSrcFadeDelta = 1.0f / xfadeSamples; // then send out a sync here for any slaves //pfSyncOutput[0] = 1.0f; } } else { DBG(fprintf(stderr, "%u:%u starting syncwait for overdub: %f\n", pLS->lLoopIndex, pLS->lChannelIndex, fSyncMode)); pLS->state = STATE_TRIG_STOP; pLS->nextState = STATE_OVERDUB; pLS->waitingForSync = 1; } break; case STATE_DELAY: // goes back to overdub mode // pop the delay loop off.... if (loop) { undoLoop(pLS, false); loop = pLS->headLoopChunk; } // continue through to default default: if ((fOverdubQuantized == 0.0f) || (fSyncMode == 0.0f && fQuantizeMode == QUANT_OFF)) { if (loop) { loop = beginOverdub(pLS, loop); if (loop) srcloop = loop->srcloop; else srcloop = NULL; } // then send out a sync here for any slaves pfSyncOutput[0] = 1.0f; } else { if (pLS->state == STATE_RECORD) { pLS->state = STATE_TRIG_STOP; } DBG(fprintf(stderr, "%u:%u starting syncwait for overdub\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->nextState = STATE_OVERDUB; pLS->waitingForSync = 1; } } } break; case MULTI_MULTIPLY: { switch(pLS->state) { case STATE_MULTIPLY: // set mark if (fSyncMode == 0.0f) { if (loop) { if (loop->mult_out > 0) { // we're in a multiincrease loop->mult_out += 1; //fprintf(stderr, "mult out added for %d\n", loop->mult_out); } else { loop->mult_out = loop->lCycles; //fprintf(stderr, "mult out initiated\n"); loop = endMultiply(pLS, loop, STATE_PLAY); } } // put a sync marker at the beginning here // mostly for slave purposes, it might screw up others pfSyncOutput[0] = 1.0f; } else { if (loop) { if (loop->mult_out > 0) { // we're in a multiincrease loop->mult_out += 1; //fprintf(stderr, "mult out added for %d\n", loop->mult_out); } else { loop->mult_out = loop->lCycles; //fprintf(stderr, "mult out initiated\n"); // loop = endMultiply(pLS, loop, STATE_PLAY); DBG(fprintf(stderr, "%u:%u waiting for sync multi end\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->nextState = STATE_PLAY; pLS->waitingForSync = 1; } } } break; case STATE_INSERT: if (loop) { loop = endInsert(pLS, loop, STATE_MULTIPLY); } break; case STATE_DELAY: // goes back to play mode // pop the delay loop off.... if (loop) { undoLoop(pLS, false); loop = pLS->headLoopChunk; } // continue through to default default: if (fSyncMode == 0.0f && fQuantizeMode == QUANT_OFF && !(pLS->state == STATE_RECORD && bRoundIntegerTempo)) { if (loop) { prevstate = pLS->state; loop = beginMultiply(pLS, loop); if (loop) srcloop = loop->srcloop; else srcloop = NULL; if (prevstate == STATE_RECORD || prevstate == STATE_TRIG_STOP) { // input always immediately available pLS->lFramesUntilInput = 0; // we need to increment loop position by output latency (+ IL ?) loop->dCurrPos = loop->dCurrPos + ( lOutputLatency + lInputLatency) * fRate; DBG(fprintf(stderr,"%u:%u from rec Entering multiply state at %g\n", pLS->lLoopIndex, pLS->lChannelIndex, loop->dCurrPos)); pLS->lFramesUntilFilled = lOutputLatency + lInputLatency; pLS->fLoopSrcFadeDelta = -1.0f / xfadeSamples; pLS->fFeedSrcFadeDelta = 1.0f / xfadeSamples; } } // then send out a sync here for any slaves pfSyncOutput[0] = 1.0f; } else { if (pLS->state == STATE_RECORD) { pLS->state = STATE_TRIG_STOP; } DBG(fprintf(stderr, "%u:%u starting syncwait for multiply\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->nextState = STATE_MULTIPLY; pLS->waitingForSync = 1; } } } break; case MULTI_INSERT: { switch(pLS->state) { case STATE_INSERT: if (loop) { loop = endInsert(pLS, loop, STATE_PLAY); } break; case STATE_MUTE: case STATE_ONESHOT: // play the loop one_shot mode if (loop) { DBG(fprintf(stderr,"Starting ONESHOT state\n")); pLS->state = STATE_ONESHOT; if (pLS->fCurrRate > 0) loop->dCurrPos = (loop->lLoopLength - loop->lSyncPos) ; else loop->dCurrPos = (loop->lLoopLength - loop->lSyncPos) - 1; // wrap loop->dCurrPos = fmod(loop->dCurrPos, loop->lLoopLength); } break; case STATE_MULTIPLY: if (loop) { loop = endMultiply(pLS, loop, STATE_INSERT); } break; case STATE_DELAY: // goes back to play mode // pop the delay loop off.... if (loop) { undoLoop(pLS, false); loop = pLS->headLoopChunk; } // continue through to default default: // make new loop chunk if (fSyncMode == 0.0f && fQuantizeMode == QUANT_OFF && !(pLS->state == STATE_RECORD && bRoundIntegerTempo)) { if (loop) { prevstate = pLS->state; loop = beginInsert(pLS, loop); if (loop) srcloop = loop->srcloop; else srcloop = NULL; if (prevstate == STATE_RECORD || prevstate == STATE_TRIG_STOP) { // input always immediately available pLS->lFramesUntilInput = 0; // we need to increment loop position by output latency (+ IL ?) loop->dCurrPos = loop->dCurrPos + ( lOutputLatency + lInputLatency) * fRate; DBG(fprintf(stderr,"from rec Entering insert state at %g\n", loop->dCurrPos)); pLS->fLoopSrcFadeDelta = -1.0f / xfadeSamples; pLS->fFeedSrcFadeDelta = 1.0f / xfadeSamples; pLS->lFramesUntilFilled = lOutputLatency + lInputLatency; } } // then send out a sync here for any slaves pfSyncOutput[0] = 1.0f; } else { if (pLS->state == STATE_RECORD) { pLS->state = STATE_TRIG_STOP; } DBG(fprintf(stderr, "starting syncwait for insert\n")); pLS->nextState = STATE_INSERT; pLS->waitingForSync = 1; } } } break; case MULTI_REPLACE: // also MULTI_TOG_REDO in mute mode { switch(pLS->state) { case STATE_REPLACE: if ((bReplaceQuantized == 0.0f) || (fSyncMode == 0.0f && fQuantizeMode == QUANT_OFF)) { pLS->state = STATE_PLAY; pLS->wasMuted = false; DBG(fprintf(stderr,"%u:%u Entering PLAY state\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fPlayFadeDelta = 1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; // then send out a sync here for any slaves pfSyncOutput[0] = 1.0f; } else { pLS->nextState = STATE_PLAY; pLS->waitingForSync = 1; } break; case STATE_MULTIPLY: if (loop) { loop = endMultiply(pLS, loop, STATE_REPLACE); } break; case STATE_DELAY: // this toggles HOLD mode pLS->bHoldMode = !pLS->bHoldMode; DBG(fprintf(stderr, "HoldMode is now %d\n", pLS->bHoldMode)); break; case STATE_INSERT: if (loop) { loop = endInsert(pLS, loop, STATE_REPLACE); } break; default: if (((bReplaceQuantized == 0.0f) || (fSyncMode == 0.0f && fQuantizeMode == QUANT_OFF)) && !(pLS->state == STATE_RECORD && bRoundIntegerTempo)) { if (loop) { prevstate = pLS->state; DBG(fprintf(stderr, "starting replace immediately\n")); loop = beginReplace(pLS, loop); if (loop) srcloop = loop->srcloop; else srcloop = NULL; if (prevstate == STATE_RECORD || prevstate == STATE_TRIG_STOP) { // input always immediately available pLS->lFramesUntilInput = 0; // we need to increment loop position by output latency (+ IL ?) loop->dCurrPos = loop->dCurrPos + ( lOutputLatency + lInputLatency) * fRate; DBG(fprintf(stderr,"from rec Entering multiply state at %g\n", loop->dCurrPos)); pLS->fLoopSrcFadeDelta = -1.0f / xfadeSamples; pLS->fFeedSrcFadeDelta = 1.0f / xfadeSamples; pLS->lFramesUntilFilled = lOutputLatency + lInputLatency; } } // then send out a sync here for any slaves pfSyncOutput[0] = 1.0f; } else { if (pLS->state == STATE_RECORD) { pLS->state = STATE_TRIG_STOP; } DBG(fprintf(stderr, "starting syncwait for replace\n")); pLS->nextState = STATE_REPLACE; pLS->waitingForSync = 1; } } } break; case MULTI_SUBSTITUTE: // also MULTI_TOG_REDO in mute mode { switch(pLS->state) { case STATE_SUBSTITUTE: if ((bReplaceQuantized == 0.0f) || (fSyncMode == 0.0f && fQuantizeMode == QUANT_OFF)) { pLS->state = STATE_PLAY; pLS->wasMuted = false; DBG(fprintf(stderr,"Entering PLAY state\n")); pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fPlayFadeDelta = 1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; // then send out a sync here for any slaves pfSyncOutput[0] = 1.0f; } else { pLS->nextState = STATE_PLAY; pLS->waitingForSync = 1; } break; case STATE_MULTIPLY: if (loop) { loop = endMultiply(pLS, loop, STATE_SUBSTITUTE); } break; case STATE_INSERT: if (loop) { loop = endInsert(pLS, loop, STATE_SUBSTITUTE); } break; default: if (((bReplaceQuantized == 0.0f) || (fSyncMode == 0.0f && fQuantizeMode == QUANT_OFF)) && !(pLS->state == STATE_RECORD && bRoundIntegerTempo)) { if (loop) { prevstate = pLS->state; DBG(fprintf(stderr, "starting subst immediately\n")); loop = beginSubstitute(pLS, loop); if (loop) srcloop = loop->srcloop; else srcloop = NULL; if (prevstate == STATE_RECORD || prevstate == STATE_TRIG_STOP) { // input always immediately available pLS->lFramesUntilInput = 0; // we need to increment loop position by output latency (+ IL ?) loop->dCurrPos = loop->dCurrPos + ( lOutputLatency + lInputLatency) * fRate; DBG(fprintf(stderr,"from rec Entering multiply state at %g\n", loop->dCurrPos)); pLS->fLoopSrcFadeDelta = -1.0f / xfadeSamples; pLS->fFeedSrcFadeDelta = 1.0f / xfadeSamples; pLS->lFramesUntilFilled = lOutputLatency + lInputLatency; } } if (fQuantizeMode == QUANT_OFF) { // then send out a sync here for any slaves pfSyncOutput[0] = 1.0f; } } else { if (pLS->state == STATE_RECORD) { pLS->state = STATE_TRIG_STOP; } DBG(fprintf(stderr, "starting syncwait for substitute\n")); pLS->nextState = STATE_SUBSTITUTE; pLS->waitingForSync = 1; } } } break; case MULTI_MUTE: case MULTI_PAUSE: { switch(pLS->state) { case STATE_OFF_MUTE: if (lMultiCtrl == MULTI_MUTE) { pLS->state = STATE_OFF; pLS->wasMuted = false; } break; case STATE_OFF: if (lMultiCtrl == MULTI_MUTE) { pLS->state = STATE_OFF_MUTE; pLS->wasMuted = true; } break; case STATE_MUTE: // reset for audio ramp //pLS->lRampSamples = xfadeSamples; case STATE_ONESHOT: case STATE_PAUSED: // this enters play mode but from the continuous position if (loop && ((fMuteQuantized == 0.0f) || (fSyncMode == 0.0f && fQuantizeMode == QUANT_OFF) || pLS->state == STATE_PAUSED)) { if (pLS->state == STATE_MUTE && lMultiCtrl == MULTI_PAUSE) { pLS->state = STATE_PAUSED; pLS->wasMuted = true; DBG(fprintf(stderr,"%u:%u Entering PAUSED state from mute\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->dPausedPos = loop->dCurrPos; } else if (pLS->state == STATE_PAUSED && lMultiCtrl == MULTI_MUTE) { pLS->state = STATE_MUTE; pLS->wasMuted = true; DBG(fprintf(stderr,"%u:%u Entering MUTED state from pause\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->dPausedPos = loop->dCurrPos; } else { pLS->state = STATE_PLAY; pLS->wasMuted = false; DBG(fprintf(stderr,"%u:%u Entering PLAY state continuous\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->fPlayFadeDelta = 1.0f / xfadeSamples; if (lMultiCtrl == MULTI_PAUSE && loop) { // set current loop position to paused position loop->dCurrPos = pLS->dPausedPos; DBG(fprintf(stderr, "%u:%u setting loop pos to pause pos: %g\n", pLS->lLoopIndex, pLS->lChannelIndex, pLS->dPausedPos)); } // then send out a sync here for any slaves pfSyncOutput[0] = 1.0f; } } else if (loop) { // wait for sync if (pLS->state == STATE_RECORD) { pLS->state = STATE_TRIG_STOP; } DBG(fprintf(stderr, "%u:%u starting syncwait for play from mute\n", pLS->lLoopIndex, pLS->lChannelIndex)); if (pLS->state == STATE_PAUSED && lMultiCtrl == MULTI_MUTE) { pLS->nextState = STATE_MUTE; } else { pLS->nextState = STATE_PLAY; } pLS->waitingForSync = 1; } break; case STATE_MULTIPLY: if (loop) { loop = endMultiply(pLS, loop, lMultiCtrl == MULTI_MUTE ? STATE_MUTE: STATE_PAUSED); } break; case STATE_INSERT: if (loop) { loop = endInsert(pLS, loop, lMultiCtrl == MULTI_MUTE ? STATE_MUTE: STATE_PAUSED); } break; case STATE_DELAY: // pop the delay loop off.... if (loop) { undoLoop(pLS, false); loop = pLS->headLoopChunk; } // continue through to default default: if (loop && ((fMuteQuantized == 0.0f) || (fSyncMode == 0.0f && fQuantizeMode == QUANT_OFF)) && !(pLS->state == STATE_RECORD && bRoundIntegerTempo)) { if (pLS->state == STATE_RECORD || pLS->state == STATE_TRIG_STOP) { // we need to increment loop position by output latency (+ IL ?) loop->dCurrPos = loop->dCurrPos + ( lOutputLatency + lInputLatency) * fRate; DBG(fprintf(stderr,"%u:%u from rec Entering mute state at %g\n", pLS->lLoopIndex, pLS->lChannelIndex, loop->dCurrPos)); pLS->lFramesUntilFilled = lOutputLatency + lInputLatency; } pLS->state = (lMultiCtrl==MULTI_MUTE ? STATE_MUTE: STATE_PAUSED); DBG(fprintf(stderr,"%u:%u Entering MUTE/pause state\n", pLS->lLoopIndex, pLS->lChannelIndex)); // reset for audio ramp //pLS->lRampSamples = xfadeSamples; pLS->fPlayFadeDelta = -1.0f / xfadeSamples; pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; pLS->wasMuted = true; if (lMultiCtrl == MULTI_PAUSE) { pLS->dPausedPos = loop->dCurrPos; pLS->wasMuted = false; } // then send out a sync here for any slaves pfSyncOutput[0] = 1.0f; } else if (loop) { // wait for sync if (pLS->state == STATE_RECORD) { pLS->state = STATE_TRIG_STOP; } DBG(fprintf(stderr, "%u:%u starting syncwait for mute\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->nextState = lMultiCtrl==MULTI_MUTE ? STATE_MUTE: STATE_PAUSED; pLS->waitingForSync = 1; } } } break; case MULTI_DELAY: { switch(pLS->state) { case STATE_DELAY: // this is new tap // calculate new length if (loop) { loop->lLoopLength = pLS->lTapTrigSamples; loop->lCycleLength = loop->lLoopLength; if (loop->lLoopLength > (pLS->lBufferSize)) { // ignore this tap, it's too long // just treat as first loop->lLoopLength = 0; loop->lCycleLength = 0; DBG(fprintf(stderr, "Long tap delay ignored....\n")); } pLS->lTapTrigSamples = 0; loop->dCurrPos = 0; // need to clean the whole thing the first time loop->backfill = 1; loop->lMarkEndL = 0; loop->lMarkEndH = loop->lLoopLength - 1; DBG(fprintf(stderr,"New delay length of %g secs\n", loop->lLoopLength / pLS->fSampleRate)); } break; case STATE_REPLACE: case STATE_SUBSTITUTE: case STATE_RECORD: case STATE_INSERT: case STATE_OVERDUB: case STATE_MULTIPLY: // nothing happens break; default: loop = pushNewLoopChunk(pLS, 0, NULL); if (loop) { pLS->state = STATE_DELAY; loop->srcloop = NULL; // initial delay length 0 until next tap loop->lLoopLength = 0; pLS->bHoldMode = 0; pLS->lTapTrigSamples = 0; DBG(fprintf(stderr,"Entering DELAY state: waiting for second tap...\n")); } } } break; case MULTI_SCRATCH: { switch(pLS->state) { case STATE_SCRATCH: pLS->state = STATE_PLAY; pLS->wasMuted = false; DBG(fprintf(stderr,"Entering PLAY state\n")); break; case STATE_MUTE: case STATE_ONESHOT: // this restarts the loop from beginnine pLS->state = STATE_PLAY; pLS->wasMuted = false; if (loop) { loop->dCurrPos = (loop->lLoopLength - loop->lSyncPos) + fSyncOffsetSamples; // wrap loop->dCurrPos = fmod(loop->dCurrPos, loop->lLoopLength); } DBG(fprintf(stderr,"Entering PLAY state from top\n")); break; case STATE_PLAY: if (loop && !loop->frontfill && !loop->backfill) { // good to go, not filling in a loop beginning pLS->state = STATE_SCRATCH; DBG(fprintf(stderr,"Entering SCRATCH state\n")); } break; case STATE_RECORD: case STATE_TRIG_STOP: // THIS puts it into reverse and does a ONE_SHOT after TRIG_STOP if (loop) { fRate = pLS->fCurrRate = -1.0f; pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fPlayFadeDelta = 1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; pLS->state = STATE_ONESHOT; if (pLS->fCurrRate > 0) loop->dCurrPos = (loop->lLoopLength - loop->lSyncPos) + fSyncOffsetSamples; else loop->dCurrPos = (loop->lLoopLength - loop->lSyncPos) - 1 - fSyncOffsetSamples; // we need to increment loop position by output latency (+ IL ?) loop->dCurrPos = loop->dCurrPos + ( lOutputLatency + lInputLatency) * fRate; DBG(fprintf(stderr,"from rec Entering REV ONCE state at %g\n", loop->dCurrPos)); pLS->lFramesUntilFilled = lOutputLatency + lInputLatency; // wrap loop->dCurrPos = fmod(loop->dCurrPos, loop->lLoopLength); DBG(fprintf(stderr,"Enter reversed ONESHOT state\n")); } break; case STATE_OVERDUB: case STATE_MULTIPLY: case STATE_REPLACE: case STATE_SUBSTITUTE: case STATE_INSERT: case STATE_DELAY: case STATE_OFF: case STATE_OFF_MUTE: // nothing happens break; default: pLS->state = STATE_SCRATCH; DBG(fprintf(stderr,"Entering SCRATCH state\n")); } } break; case MULTI_UNDO: case MULTI_UNDO_TWICE: { switch(pLS->state) { case STATE_PLAY: case STATE_RECORD: case STATE_OVERDUB: case STATE_MULTIPLY: case STATE_INSERT: case STATE_TRIG_START: case STATE_TRIG_STOP: case STATE_REPLACE: case STATE_SUBSTITUTE: case STATE_DELAY: case STATE_MUTE: case STATE_PAUSED: // cancel whatever mode, back to play mode (or mute) pLS->state = pLS->wasMuted ? STATE_MUTE : STATE_PLAY; if (pLS->waitingForSync) { // don't undo loop // just return to play (or mute) pLS->waitingForSync = 0; pLS->nextState = -1; } else if (pLS->fNextCurrRate != 0.0f) { // undo pending reverse pLS->fNextCurrRate = 0.0f; } if ( loop && loop->prev) { if (pLS->state == STATE_MUTE) { undoLoop(pLS, false);; } else { //undo with proper xfade pLS->state = STATE_UNDO; pLS->nextState = STATE_PLAY; } } else { LoopChunk *dead; dead = pLS->headLoopChunk; //only go back into off if this is the only action undone if (dead && (!dead->next)) { pLS->state = STATE_UNDO_ALL; } } if (pLS->state == STATE_UNDO) { pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; pLS->fPlayFadeAtten = 0.0f; pLS->fPlayFadeDelta = 1.0f / xfadeSamples; } else if (pLS->state == STATE_MUTE) { pLS->fPlayFadeDelta = 0.0f; } else if (pLS->state == STATE_UNDO_ALL) { pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; pLS->fPlayFadeAtten = 1.0f; pLS->fPlayFadeDelta = -1.0f / xfadeSamples; } DBG(fprintf(stderr,"%u:%u Undoing and reentering PLAY state from UNDO\n", pLS->lLoopIndex, pLS->lChannelIndex)); break; } } break; case MULTI_UNDO_ALL: { if (pLS->state != STATE_OFF && pLS->state != STATE_OFF_MUTE) { DBG(fprintf(stderr,"%u:%u UNDO all loops\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->fPlayFadeDelta = -1.0f / xfadeSamples; pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; pLS->state = pLS->wasMuted ? STATE_MUTE : STATE_PLAY; if (loop && loop->lLoopLength) { pLS->state = STATE_UNDO_ALL; pLS->fLoopFadeDelta = -1.0f / (xfadeSamples); pLS->fPlayFadeDelta = -1.0f / xfadeSamples;// fade out for undo all } } } break; case MULTI_REDO_ALL: { if (pLS->state == STATE_OFF) { pLS->state = STATE_PLAY; pLS->wasMuted = false; } else if (pLS->state == STATE_OFF_MUTE) { pLS->state = STATE_MUTE; } //else { // pLS->state = pLS->wasMuted ? STATE_MUTE : STATE_PLAY; //} if (!loop || (pLS->state == STATE_MUTE)) { lastloop = pLS->headLoopChunk; redoLoop(pLS); while (pLS->headLoopChunk != lastloop) { lastloop = pLS->headLoopChunk; redoLoop(pLS); } if (!pLS->headLoopChunk) { pLS->state = pLS->wasMuted ? STATE_OFF_MUTE : STATE_OFF; } } else { if (loop->next) { pLS->state = STATE_REDO_ALL; pLS->nextState = STATE_PLAY; } } pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; pLS->fPlayFadeAtten = 0.0f; pLS->fPlayFadeDelta = 1.0f / xfadeSamples; if (pLS->state == STATE_MUTE) { pLS->fPlayFadeDelta = 0.0f; } DBG(fprintf(stderr,"REDO all loops\n")); } break; case MULTI_REDO: { switch (pLS->state) { case STATE_PLAY: case STATE_RECORD: case STATE_TRIG_START: case STATE_TRIG_STOP: case STATE_OVERDUB: case STATE_MULTIPLY: case STATE_INSERT: case STATE_REPLACE: case STATE_SUBSTITUTE: case STATE_MUTE: case STATE_PAUSED: case STATE_OFF: case STATE_OFF_MUTE: if (pLS->state == STATE_OFF) { pLS->state = STATE_PLAY; pLS->wasMuted = false; } else if(pLS->state == STATE_OFF_MUTE) { pLS->state = STATE_MUTE; //pLS->state = pLS->wasMuted ? STATE_MUTE : STATE_PLAY; } if (!loop || pLS->state == STATE_MUTE) { // we don't need a fadeout redoLoop(pLS); if (!pLS->headLoopChunk) { pLS->state = pLS->wasMuted ? STATE_OFF_MUTE : STATE_OFF; } } else { // we need a x-fade if (loop->next) { pLS->state = STATE_REDO; pLS->nextState = STATE_PLAY; pLS->fPlayFadeAtten = 0.0f; } } pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; if (pLS->state == STATE_MUTE) { // we don't need a fade in pLS->fPlayFadeDelta = 0.0f; } else { pLS->fPlayFadeDelta = 1.0f / xfadeSamples; } break; } } break; case MULTI_REVERSE: // ALSO MULTI_ROUND toggle in Mute mode { switch(pLS->state) { case STATE_RECORD: case STATE_TRIG_STOP: // ends the record operation NOW // and starts playing in reverse fRate = pLS->fCurrRate *= -1.0f; pLS->state = STATE_PLAY; pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fPlayFadeDelta = 1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; pLS->wasMuted = false; // we need to increment loop position by output latency (+ IL ?) loop->dCurrPos = loop->dCurrPos + ( lOutputLatency + lInputLatency) * fRate; DBG(fprintf(stderr,"from rec Entering ONCE state at %g\n", loop->dCurrPos)); pLS->lFramesUntilFilled = lOutputLatency + lInputLatency; DBG(fprintf(stderr,"Entering PLAY state by reversing\n")); break; case STATE_MULTIPLY: case STATE_INSERT: // ignore for now break; case STATE_SCRATCH: // reverse button toggles rate control active when in scratch mode //pLS->bRateCtrlActive = ! pLS->bRateCtrlActive; //DBG(fprintf(stderr, "Rate control active state now %d\n", pLS->bRateCtrlActive)); break; default: if (pLS->pfQuantMode && *pLS->pfQuantMode != 0) { pLS->fNextCurrRate = pLS->fCurrRate * -1; DBG(fprintf(stderr,"Reversing Rate quantized\n")); } else { // simply negate the current rate fRate = pLS->fCurrRate *= -1.0f; DBG(fprintf(stderr,"Reversing Rate\n")); } } } break; case MULTI_ONESHOT: { switch(pLS->state) { case STATE_MULTIPLY: if (loop) { loop = endMultiply(pLS, loop, STATE_ONESHOT); } break; case STATE_INSERT: if (loop) { loop = endInsert(pLS, loop, STATE_ONESHOT); } break; default: // play the loop one_shot mode if (loop) { if (((fSyncMode == 0.0f) || (fSyncMode >= 1.0f && pLS->lSamplesSinceSync < eighthSamples)) // give it some slack on relsync && !(pLS->state == STATE_RECORD && bRoundIntegerTempo)) { DBG(fprintf(stderr,"Starting ONESHOT state\n")); pLS->fPlayFadeDelta = 1.0f / xfadeSamples; pLS->fLoopFadeDelta = -1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; prevstate = pLS->state; pLS->state = STATE_ONESHOT; if (pLS->fCurrRate > 0) loop->dCurrPos = (loop->lLoopLength - loop->lSyncPos) + fSyncOffsetSamples; else loop->dCurrPos = (loop->lLoopLength - loop->lSyncPos) - 1 - fSyncOffsetSamples; // wrap loop->dCurrPos = fmod(loop->dCurrPos, loop->lLoopLength); DBG(fprintf(stderr,"Starting ONESHOT state at %g\n", loop->dCurrPos)); if (prevstate == STATE_RECORD || prevstate == STATE_TRIG_STOP) { // we need to increment loop position by output latency (+ IL ?) loop->dCurrPos = loop->dCurrPos + ( lOutputLatency + lInputLatency) * fRate; DBG(fprintf(stderr,"from rec Entering ONCE state at %g\n", loop->dCurrPos)); pLS->lFramesUntilFilled = lOutputLatency + lInputLatency; } // then send out a sync here for any slaves pfSyncOutput[0] = 2.0f; } else { if (pLS->state == STATE_RECORD) { pLS->state = STATE_TRIG_STOP; } DBG(fprintf(stderr, "starting syncwait for ONESHOT\n")); pLS->nextState = STATE_ONESHOT; pLS->waitingForSync = 1; } } break; } } break; case MULTI_TRIGGER: { switch(pLS->state) { case STATE_MULTIPLY: if (loop) { loop = endMultiply(pLS, loop, STATE_PLAY); } break; case STATE_INSERT: if (loop) { loop = endInsert(pLS, loop, STATE_PLAY); } break; default: // play the loop from the start if (loop) { if ((fSyncMode == 0.0f || (fSyncMode >= 1.0f && pLS->lSamplesSinceSync < eighthSamples)) // give it some slack && !(pLS->state == STATE_RECORD && bRoundIntegerTempo)) { prevstate = pLS->state; transitionToNext (pLS, loop, STATE_TRIGGER_PLAY); if (prevstate == STATE_RECORD || prevstate == STATE_TRIG_STOP) { // we need to increment loop position by output latency (+ IL ?) loop->dCurrPos = loop->dCurrPos + ( lOutputLatency + lInputLatency) * fRate; DBG(fprintf(stderr,"from rec Entering ONCE state at %g\n", loop->dCurrPos)); pLS->lFramesUntilFilled = lOutputLatency + lInputLatency; } // then send out a sync here for any slaves pfSyncOutput[0] = 2.0f; } else { if (pLS->state == STATE_RECORD) { pLS->state = STATE_TRIG_STOP; } DBG(fprintf(stderr, "starting syncwait for trigger\n")); pLS->nextState = STATE_TRIGGER_PLAY; pLS->waitingForSync = 1; } } break; } } break; case MULTI_SET_SYNC_POS: { // set current loop's sync offset to the current pos if (loop) { loop->lSyncPos = (unsigned long) (loop->lLoopLength - loop->dCurrPos); } } break; case MULTI_RESET_SYNC_POS: { // set current loop's sync offset to the current pos if (loop) { loop->lSyncPos = loop->lOrigSyncPos; } } break; case MULTI_QUANT_TOG: { // toggle quantize // changing input param!!! Not strictly allowed! if (pLS->pfQuantMode) { if (*pLS->pfQuantMode == 0) *pLS->pfQuantMode = (LADSPA_Data) QUANT_CYCLE; else *pLS->pfQuantMode = (LADSPA_Data) QUANT_OFF; DBG(fprintf(stderr,"Quantize mode is now %g\n", *pLS->pfQuantMode)); } } break; case MULTI_ROUND_TOG: { if (pLS->pfRoundMode) { // toggle roundmode // changing input param!!! Not strictly allowed! if (*pLS->pfRoundMode == 0) *pLS->pfRoundMode = 1.0f; else *pLS->pfRoundMode = 0; DBG(fprintf(stderr,"Round mode is now %g\n", *pLS->pfRoundMode)); } } break; } } fRate = pLS->fCurrRate; //fprintf(stderr,"before play\n"); //fprintf(stderr, "fRateSwitch: %f\n", fRateSwitch); // the run loop lSampleIndex = 0; while (lSampleIndex < SampleCount) { loop = pLS->headLoopChunk; switch(pLS->state) { case STATE_TRIG_START: { //fprintf(stderr,"in trigstart\n"); // we are looking for the threshold to actually // start the recording on (while still playing dry signal) for (;lSampleIndex < SampleCount; lSampleIndex++) { fWet += wetDelta; fDry += dryDelta; fFeedback += feedbackDelta; fScratchPos += scratchDelta; // TODO: need to possibly wait IL-TL before actually starting fInputSample = pfInput[lSampleIndex]; if ((fSyncMode == 0.0f && ((fInputSample > fTrigThresh) || (fTrigThresh==0.0f))) || (fSyncMode == 2.0f) // relative sync offset mode || (fSyncMode > 0.0f && pfSyncInput[lSampleIndex] != 0.0f)) { loop = pushNewLoopChunk(pLS, 0, NULL); if (loop) { DBG(fprintf(stderr,"%u:%u Entering RECORD state: syncmode=%g\n", pLS->lLoopIndex, pLS->lChannelIndex, fSyncMode)); pLS->state = STATE_RECORD; // force rate to be 1.0 fRate = pLS->fCurrRate = 1.0f; loop->lLoopLength = 0; loop->lStartAdj = 0; loop->lEndAdj = 0; loop->dCurrPos = 0.0; loop->firsttime = 0; loop->lMarkL = loop->lMarkEndL = LONG_MAX; loop->frontfill = loop->backfill = 0; loop->lCycles = 1; // at first just one loop->srcloop = NULL; pLS->nextState = -1; loop->dOrigFeedback = fFeedback; if (fSyncMode == 2.0f) { // use sync offset loop->lSyncOffset = pLS->lSamplesSinceSync; // this needs to be adjusted for latency //loop->lOrigSyncPos = loop->lSyncPos = pLS->lSamplesSinceSync + (unsigned long) (( lOutputLatency + lInputLatency) * fRate); if (pLS->lSamplesSinceSync < syncSamples/2) { //loop->lOrigSyncPos = loop->lSyncPos = pLS->lSamplesSinceSync + (unsigned long) (( lOutputLatency + lInputLatency) * fRate); loop->lOrigSyncPos = loop->lSyncPos = pLS->lSamplesSinceSync; } else { //loop->lOrigSyncPos = loop->lSyncPos = (pLS->lSamplesSinceSync - syncSamples) + (unsigned long) (( lOutputLatency + lInputLatency) * fRate); loop->lOrigSyncPos = loop->lSyncPos = (pLS->lSamplesSinceSync - syncSamples); } DBG(cerr << pLS->lLoopIndex << ":" << pLS->lChannelIndex << " sync offset is: " << loop->lSyncOffset << " syncpos: " << loop->lSyncPos <lSyncOffset = 0; loop->lOrigSyncPos = loop->lSyncPos = 0; } // cause input-to-loop fade in pLS->fLoopFadeAtten = 0.0f; pLS->fLoopFadeDelta = 1.0f / xfadeSamples; pLS->fPlayFadeDelta = -1.0f / xfadeSamples; // only place this goes up pLS->fLoopSrcFadeDelta = 1.0f / xfadeSamples; // and this goes down pLS->fFeedSrcFadeDelta = -1.0f / xfadeSamples; } else { DBG(fprintf(stderr, "out of memory! back to PLAY mode\n")); pLS->state = STATE_PLAY; pLS->wasMuted = false; } break; } pfOutput[lSampleIndex] = fDry * fInputSample; } } break; case STATE_RECORD: { // play the input out while recording it. //fprintf(stderr,"in record\n"); if ((loop = ensureLoopSpace (pLS, loop, SampleCount - lSampleIndex, NULL)) == NULL) { DBG(fprintf(stderr, "%u:%u Entering PLAY state -- END of memory! %08x\n", pLS->lLoopIndex, pLS->lChannelIndex, (unsigned) (pLS->pSampleBuf + pLS->lBufferSize) )); pLS->state = STATE_PLAY; pLS->wasMuted = false; goto passthrough; } for (;lSampleIndex < SampleCount; lSampleIndex++) { fWet += wetDelta; fDry += dryDelta; fFeedback += feedbackDelta; fScratchPos += scratchDelta; pLS->fLoopFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fLoopFadeAtten + pLS->fLoopFadeDelta); pLS->fLoopSrcFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fLoopSrcFadeAtten + pLS->fLoopSrcFadeDelta); pLS->fFeedSrcFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fFeedSrcFadeAtten + pLS->fFeedSrcFadeDelta); pLS->fPlayFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fPlayFadeAtten + pLS->fPlayFadeDelta); // if (pLS->waitingForSync && (fSyncMode == 0.0 || pfSyncInput[lSampleIndex] != 0.0)) // { // DBG(fprintf(stderr,"Finishing synced record\n")); // pLS->state = pLS->nextState; // pLS->nextState = -1; // pLS->waitingForSync = 0; // break; // } if (fSyncMode != 0.0f) { pfSyncOutput[lSampleIndex] = pfSyncInput[lSampleIndex]; } if (fSyncMode >= 1.0f) { pLS->lSamplesSinceSync++; if (pfSyncInput[lSampleIndex] > 1.5f) { pLS->lSamplesSinceSync = 0; DBG(cerr << pLS->lLoopIndex << ":" << pLS->lChannelIndex <<" rec reseting sync: " << pLS << " at " << loop->dCurrPos << endl); } } // wrap at the proper loop end lCurrPos = (unsigned int) lrint(loop->dCurrPos); pLoopSample = & pLS->pSampleBuf[(loop->lLoopStart + lCurrPos) & pLS->lBufferSizeMask]; // if ((char *)(lCurrPos + loop->pLoopStart) >= (pLS->pSampleBuf + pLS->lBufferSize)) { // // stop the recording RIGHT NOW // // we don't support loop crossing the end of memory // // it's easier. // DBG(fprintf(stderr, "Entering PLAY state -- END of memory! %08x\n", // (unsigned) (pLS->pSampleBuf + pLS->lBufferSize) )); // pLS->state = STATE_PLAY; // break; // } if (lCurrPos == 0) { pfSyncOutput[lSampleIndex] = 1.0f; } fInputSample = pfInput[lSampleIndex]; *pLoopSample = pLS->fLoopFadeAtten * fInputSample; // increment according to current rate loop->dCurrPos = loop->dCurrPos + fRate; pfOutput[lSampleIndex] = fDry * fInputSample; } // update loop values (in case we get stopped by an event) lCurrPos = (unsigned int) lrint(loop->dCurrPos); loop->lLoopLength = (unsigned long) lCurrPos; loop->lCycleLength = loop->lLoopLength; } break; case STATE_TRIG_STOP: { //fprintf(stderr,"in trigstop\n"); // play the input out. Keep recording until we go // above the threshold, then go into next state. loop = ensureLoopSpace (pLS, loop, SampleCount - lSampleIndex, NULL); bool roundTempoDone = false; unsigned int roundedSamples = 0; if (bRoundIntegerTempo) { // logic to figure out if it is time to stop with a rounded tempo float eighths = *pLS->pfEighthPerCycle; double tempo = (30.0 * eighths * pLS->fSampleRate / loop->dCurrPos); while (tempo > 1.0f && (tempo < 60.0f || tempo > 240.0f)) { eighths *= (tempo < 60.0f) ? 2.0f : 0.5f; eighths = max(1.0f, eighths); tempo = (30.0 * eighths * pLS->fSampleRate / loop->dCurrPos); DBG(cerr << "eights adjusted to: " << eighths << " tempo: " << tempo << endl;) if (eighths == 1.0f) break; } roundedSamples = (unsigned int) (pLS->fSampleRate * 30.0 * eighths/ floor(tempo)); //bool roundTempoDone = bRoundIntegerTempo && abs((long)lCurrPos - (long)roundedSamples) < 1; DBG(cerr << pLS->lLoopIndex<< ":" << pLS->lChannelIndex << "rounded samples now: " << roundedSamples << " eighths: " << eighths << " tempo: " << tempo << " currpos: " << loop->dCurrPos << endl;) } for (;lSampleIndex < SampleCount; lSampleIndex++) { fWet += wetDelta; fDry += dryDelta; fFeedback += feedbackDelta; fScratchPos += scratchDelta; pLS->fLoopFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fLoopFadeAtten + pLS->fLoopFadeDelta); pLS->fLoopSrcFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fLoopFadeAtten + pLS->fLoopSrcFadeDelta); pLS->fFeedSrcFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fFeedSrcFadeAtten + pLS->fFeedSrcFadeDelta); pLS->fPlayFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fPlayFadeAtten + pLS->fPlayFadeDelta); lCurrPos = (unsigned int) loop->dCurrPos; pLoopSample = & pLS->pSampleBuf[(loop->lLoopStart + lCurrPos) & pLS->lBufferSizeMask]; fInputSample = pfInput[lSampleIndex]; // if ((fSyncMode == 0.0f && ((fInputSample > fTrigThresh) || (fTrigThresh==0.0))) // || (fSyncMode > 0.0f && pfSyncInput[lSampleIndex] != 0.0)) roundTempoDone = bRoundIntegerTempo && lCurrPos == roundedSamples; // exit immediately if syncmode is off, or we have a sync if ((fSyncMode == 0.0f && (!bRoundIntegerTempo || roundTempoDone)) || (fSyncMode == 1.0f && (pfSyncInput[lSampleIndex] != 0.0f)) || (fSyncMode == 2.0f && pLS->lSamplesSinceSync == loop->lSyncOffset)) { DBG(fprintf(stderr,"%u:%u Entering %d state at %u\n", pLS->lLoopIndex, pLS->lChannelIndex, pLS->nextState, lCurrPos)); //pLS->state = pLS->nextState; // reset for audio ramp //pLS->lRampSamples = xfadeSamples; //loop->dCurrPos = 0.0f; DBG(cerr << pLS->lLoopIndex << ":" << pLS->lChannelIndex << "Round tempo: " << bRoundIntegerTempo << " roundedSamples: " << roundedSamples << endl); if (roundTempoDone) { // force sync for slaves... not sure if this is good pfSyncOutput[lSampleIndex] = 2.0f; } if (fSyncMode == 2.0f) { //cerr << "ending recstop sync2d: " << lCurrPos << endl; pLS->recSyncEnded = true; } else { //cerr << "ending recstop sync1: " << lCurrPos << endl; } // update current info before transition loop->lLoopLength = (unsigned long) lCurrPos; loop->lCycleLength = loop->lLoopLength; loop->lCycles = 1; DBG(fprintf(stderr,"%u:%u transitioning to %d at %g with length: %lu\n", pLS->lLoopIndex, pLS->lChannelIndex, pLS->nextState, loop->dCurrPos, loop->lLoopLength)); loop = transitionToNext (pLS, loop, pLS->nextState); pLS->waitingForSync = 0; //jlc trig // we need to increment loop position by output latency (+ IL ?) loop->dCurrPos = loop->dCurrPos + ( lOutputLatency + lInputLatency ) * fRate; pLS->lFramesUntilFilled = lOutputLatency + lInputLatency; pLS->fLoopSrcFadeDelta = -1.0f / xfadeSamples; break; } if (fSyncMode != 0.0f) { pfSyncOutput[lSampleIndex] = pfSyncInput[lSampleIndex]; } if (fSyncMode >= 1.0f) { pLS->lSamplesSinceSync++; if (pfSyncInput[lSampleIndex] > 1.5f) { DBG(cerr << pLS->lLoopIndex << ":" << pLS->lChannelIndex << " TS reseting sync at pos: " << loop->dCurrPos << " had: " << pLS->lSamplesSinceSync << " sync offset: " << loop->lSyncOffset << endl); pLS->lSamplesSinceSync = 0; } } *(pLoopSample) = pLS->fLoopFadeAtten * fInputSample; // increment according to current rate loop->dCurrPos = loop->dCurrPos + fRate; // if ((char *)(loop->pLoopStart + (unsigned int)loop->dCurrPos) // > (pLS->pSampleBuf + pLS->lBufferSize)) { // // out of space! give up for now! // // undo! // pLS->state = STATE_PLAY; // //undoLoop(pLS); // DBG(fprintf(stderr,"Record Stopped early! Out of memory!\n")); // loop->dCurrPos = 0.0f; // break; // } pfOutput[lSampleIndex] = fDry * fInputSample; } // update loop values (in case we get stopped by an event) if (loop) { loop->lLoopLength = (unsigned long) lCurrPos; loop->lCycleLength = loop->lLoopLength; loop->lCycles = 1; } } break; case STATE_OVERDUB: case STATE_REPLACE: case STATE_SUBSTITUTE: { if (loop && loop->srcloop && loop->lLoopLength) { srcloop = loop->srcloop; for (;lSampleIndex < SampleCount; lSampleIndex++) { fWet += wetDelta; fDry += dryDelta; fFeedback += feedbackDelta; fScratchPos += scratchDelta; pLS->fPlayFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fPlayFadeAtten + pLS->fPlayFadeDelta); pLS->fFeedFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fFeedFadeAtten + pLS->fFeedFadeDelta); lCurrPos =(unsigned int) fmod(loop->dCurrPos, loop->lLoopLength); //rCurrPos = fmod (loop->dCurrPos - lOutputLatency), loop->lLoopLength); rCurrPos = fmod (loop->dCurrPos - (fRate * (lOutputLatency + lInputLatency)), loop->lLoopLength); if (rCurrPos < 0) { rCurrPos += loop->lLoopLength; } rpCurrPos = fmod (loop->dCurrPos - (fRate * (lOutputLatency + lInputLatency)), srcloop->lLoopLength); if (rpCurrPos < 0) { rpCurrPos += srcloop->lLoopLength; } pLoopSample = & pLS->pSampleBuf[(loop->lLoopStart + lCurrPos) & pLS->lBufferSizeMask]; if (pLS->lFramesUntilInput <= 0) { rLoopSample = & pLS->pSampleBuf[(loop->lLoopStart + (unsigned int) rCurrPos) & pLS->lBufferSizeMask]; rpLoopSample = & pLS->pSampleBuf[(srcloop->lLoopStart + (unsigned int) rpCurrPos) & pLS->lBufferSizeMask]; pLS->fLoopFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fLoopFadeAtten + pLS->fLoopFadeDelta); pLS->fLoopSrcFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fLoopSrcFadeAtten + pLS->fLoopSrcFadeDelta); pLS->fFeedSrcFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fFeedSrcFadeAtten + pLS->fFeedSrcFadeDelta); lInputReadPos = - pLS->lFramesUntilInput; // negate it lInputReadPos = (lInputReadPos <= pLS->lInputBufWritePos) ? (pLS->lInputBufWritePos - lInputReadPos) : (pLS->lInputBufSize - (lInputReadPos - pLS->lInputBufWritePos)) ; } else { // jlc over DBG(fprintf(stderr, "%u:%u overdub frames until input: %ld\n", pLS->lLoopIndex, pLS->lChannelIndex, pLS->lFramesUntilInput)); rLoopSample = 0; rpLoopSample = 0; pLS->lFramesUntilInput--; lInputReadPos = pLS->lInputBufWritePos; } if (fSyncMode != 0) { pfSyncOutput[lSampleIndex] = pfSyncInput[lSampleIndex]; pLS->lSamplesSinceSync++; if (pfSyncInput[lSampleIndex] > 1.5f) { // cerr << "od sync reset" << endl; DBG(fprintf(stderr, "%u:%u TS reset sync in overdub\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->lSamplesSinceSync = 0; } if (fSyncMode == 2.0f) { if (pLS->recSyncEnded) { // we just synced, need to noitfy slave... this could be problem pfSyncOutput[lSampleIndex] = 2.0f; DBG(fprintf(stderr, "%u:%u sync out on relsync end on overdub/repl/sub\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->recSyncEnded = false; } } } else { if (fQuantizeMode == QUANT_OFF || (fQuantizeMode == QUANT_CYCLE && (((int)rCurrPos + loop->lSyncPos) % loop->lCycleLength) == 0) || (fQuantizeMode == QUANT_LOOP && (((int) rCurrPos +loop->lSyncPos) % loop->lLoopLength )== 0) || (fQuantizeMode == QUANT_8TH && (((int) rCurrPos + loop->lSyncPos) % eighthSamples) == 0)) { pfSyncOutput[lSampleIndex] = 2.0f; } } if (pLS->waitingForSync && ((fSyncMode == 0.0f && fQuantizeMode == QUANT_OFF) || pfSyncOutput[lSampleIndex] != 0.0f)) { DBG(fprintf(stderr,"%u:%u Finishing synced overdub/replace/subs\n", pLS->lLoopIndex, pLS->lChannelIndex)); loop = transitionToNext (pLS, loop, pLS->nextState); pLS->nextState = -1; pLS->waitingForSync = 0; break; } //fInputSample = pfInput[lSampleIndex]; fInputSample = pfInputLatencyBuf[(lInputReadPos + lSampleIndex) & pLS->lInputBufMask]; // xfade input into source loop (for cases immediately after record) if (rpLoopSample) { *(rpLoopSample) = ((*rpLoopSample) * pLS->fFeedSrcFadeAtten) + pLS->fLoopSrcFadeAtten * fInputSample; } if (pLS->lFramesUntilFilled > 0) { // fill from the record position * and for the play pos !!? //DBG(fprintf(stderr, "filling rcurrpos=%u pppos %d\n", (unsigned int) rCurrPos, lCurrPos)); fillLoops(pLS, loop, (unsigned int) rCurrPos, true); pLS->lFramesUntilFilled--; } fillLoops(pLS, loop, lCurrPos, false); switch(pLS->state) { case STATE_OVERDUB: // use our self as the source (we have been filled by the call above) fOutputSample = fWet * *(pLoopSample) + fDry * fInputSample; if (rLoopSample) { *(rLoopSample) = ((pLS->fLoopFadeAtten * fInputSample) + (fSafetyFeedback * pLS->fFeedFadeAtten * fFeedback * *(rLoopSample))); } break; case STATE_REPLACE: // state REPLACE use only the new input // use our self as the source (we have been filled by the call above) fOutputSample = pLS->fPlayFadeAtten * fWet * *(pLoopSample) + fDry * fInputSample; if (rLoopSample) { *(rLoopSample) = fInputSample * pLS->fLoopFadeAtten + (pLS->fFeedFadeAtten * fFeedback * *(rLoopSample)); } break; case STATE_SUBSTITUTE: default: // use our self as the source (we have been filled by the call above) // hear the loop fOutputSample = fWet * *(pLoopSample) + fDry * fInputSample; // but not feed it back (xfade it really) if (rLoopSample) { *(rLoopSample) = fInputSample * pLS->fLoopFadeAtten + (pLS->fFeedFadeAtten * fFeedback * *(rLoopSample)); } break; } pfOutput[lSampleIndex] = fOutputSample; // increment and wrap at the proper loop end loop->dCurrPos = loop->dCurrPos + fRate; //if (fSyncMode != 0.0 && pLS->fNextCurrRate != 0 && pfSyncInput[lSampleIndex] != 0.0) { if (pLS->fNextCurrRate != 0 && pfSyncOutput[lSampleIndex] > 1.5f) { // commit the new rate at boundary (quantized) pLS->fCurrRate = pLS->fNextCurrRate; pLS->fNextCurrRate = 0.0f; DBG(fprintf(stderr, "%u:%u Starting quantized rate change ovr at %d\n", pLS->lLoopIndex, pLS->lChannelIndex, lCurrPos)); } if (loop->dCurrPos < 0) { // our rate must be negative // adjust around to the back loop->dCurrPos += loop->lLoopLength; if (pLS->fNextCurrRate != 0) { // commit the new rate at boundary (quantized) pLS->fCurrRate = pLS->fNextCurrRate; pLS->fNextCurrRate = 0.0f; DBG(fprintf(stderr, "%u:%u Starting quantized rate change\n", pLS->lLoopIndex, pLS->lChannelIndex)); } } else if (loop->dCurrPos >= loop->lLoopLength) { // wrap around length loop->dCurrPos = fmod(loop->dCurrPos, loop->lLoopLength); if (pLS->fNextCurrRate != 0) { // commit the new rate at boundary (quantized) pLS->fCurrRate = pLS->fNextCurrRate; pLS->fNextCurrRate = 0.0f; DBG(fprintf(stderr, "%u:%u Starting quantized rate change\n", pLS->lLoopIndex, pLS->lChannelIndex)); } } } } else { goto passthrough; } } break; case STATE_MULTIPLY: { if (loop && loop->lLoopLength && loop->srcloop) { srcloop = loop->srcloop; firsttime = loop->firsttime; if (pLS->nextState == STATE_MUTE) { // no loop output fWet = 0.0f; wetDelta = 0.0f; } loop = ensureLoopSpace (pLS, loop, SampleCount - lSampleIndex, NULL); if (!loop || (loop->srcloop && !loop->srcloop->valid)) { // out of space! give up for now! // undo! DBG(fprintf(stderr,"Multiply fail done! Out of memory or lost source!\n")); if (loop) { loop = endMultiply(pLS, loop, STATE_PLAY); } else { pLS->rounding = false; pLS->state = STATE_PLAY; pLS->wasMuted = false; undoLoop(pLS, false); goto passthrough; } break; } for (;lSampleIndex < SampleCount; lSampleIndex++) { fWet += wetDelta; fDry += dryDelta; fFeedback += feedbackDelta; fScratchPos += scratchDelta; // if (slCurrPos > 0 && (unsigned)(loop->pLoopStart + slCurrPos) // > (unsigned)(pLS->pSampleBuf + pLS->lBufferSize)) { // // out of space! give up for now! // // undo! // pLS->state = STATE_PLAY; // undoLoop(pLS); // DBG(fprintf(stderr,"Multiply Undone! Out of memory!\n")); // break; // } lpCurrPos =(unsigned int) fmod(loop->dCurrPos + loop->lStartAdj, srcloop->lLoopLength); slCurrPos =(long) loop->dCurrPos; rCurrPos = fmod (loop->dCurrPos - lOutputLatency - lInputLatency, loop->lLoopLength); if (rCurrPos < 0) { rCurrPos += loop->lLoopLength; } rpCurrPos = fmod (loop->dCurrPos - lOutputLatency - lInputLatency, srcloop->lLoopLength); if (rpCurrPos < 0) { rpCurrPos += srcloop->lLoopLength; } spLoopSample = & pLS->pSampleBuf[(srcloop->lLoopStart + lpCurrPos) & pLS->lBufferSizeMask]; pLoopSample = & pLS->pSampleBuf[(loop->lLoopStart + slCurrPos) & pLS->lBufferSizeMask]; if (pLS->lFramesUntilInput <= 0) { rLoopSample = & pLS->pSampleBuf[(loop->lLoopStart + (unsigned int) rCurrPos) & pLS->lBufferSizeMask]; rpLoopSample = & pLS->pSampleBuf[(srcloop->lLoopStart + (unsigned int) rpCurrPos) & pLS->lBufferSizeMask]; pLS->fLoopFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fLoopFadeAtten + pLS->fLoopFadeDelta); pLS->fLoopSrcFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fLoopSrcFadeAtten + pLS->fLoopSrcFadeDelta); pLS->fFeedFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fFeedFadeAtten + pLS->fFeedFadeDelta); pLS->fFeedSrcFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fFeedSrcFadeAtten + pLS->fFeedSrcFadeDelta); lInputReadPos = - pLS->lFramesUntilInput; // negate it lInputReadPos = (lInputReadPos <= pLS->lInputBufWritePos) ? (pLS->lInputBufWritePos - lInputReadPos) : (pLS->lInputBufSize - (lInputReadPos - pLS->lInputBufWritePos)) ; } else { rLoopSample = 0; rpLoopSample = 0; pLS->lFramesUntilInput--; lInputReadPos = pLS->lInputBufWritePos; } //pLS->fLoopFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fLoopFadeAtten + pLS->fLoopFadeDelta); //pLS->fFeedFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fFeedFadeAtten + pLS->fFeedFadeDelta); if (fSyncMode != 0) { pfSyncOutput[lSampleIndex] = pfSyncInput[lSampleIndex]; if (fSyncMode == 2.0f) { pLS->lSamplesSinceSync++; if (pfSyncInput[lSampleIndex] > 1.5f) { // cerr << "mt sync reset" << endl; DBG(fprintf(stderr, "%u:%u TS reset sync in multiply\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->lSamplesSinceSync = 0; } else if (pLS->recSyncEnded) { // we just synced, need to noitfy slave... this could be problem pfSyncOutput[lSampleIndex] = 2.0f; DBG(fprintf(stderr, "%u:%u sync out on relsync end on multiply\n", pLS->lLoopIndex, pLS->lChannelIndex)); //cerr << "mt notified: " << endl; pLS->recSyncEnded = false; } } } else { if (fQuantizeMode == QUANT_OFF || (fQuantizeMode == QUANT_CYCLE && (((int) rCurrPos + loop->lSyncPos) % loop->lCycleLength) == 0)) { pfSyncOutput[lSampleIndex] = 2.0f; } } if (pLS->waitingForSync && (fSyncMode == 0.0f || pfSyncOutput[lSampleIndex] != 0.0f || slCurrPos >= (long)(loop->lLoopLength))) { DBG(fprintf(stderr,"%u:%u Finishing synced multiply\n", pLS->lLoopIndex, pLS->lChannelIndex)); loop = endMultiply (pLS, loop, pLS->nextState); pfSyncOutput[lSampleIndex] = pfSyncInput[lSampleIndex]; pLS->waitingForSync = 0; break; } fInputSample = pfInputLatencyBuf[(lInputReadPos + lSampleIndex) & pLS->lInputBufMask]; //fInputSample = pfInput[lSampleIndex]; // xfade input into source loop (for cases immediately after record) if (rpLoopSample) { *(rpLoopSample) = ((*rpLoopSample) * pLS->fFeedSrcFadeAtten) + pLS->fLoopSrcFadeAtten * fInputSample; } if (pLS->lFramesUntilFilled > 0) { // fill source from the record position fillLoops(pLS, loop, (unsigned int) rpCurrPos, true); pLS->lFramesUntilFilled--; } //fillLoops(pLS, loop, lpCurrPos, false); fillLoops(pLS, loop, slCurrPos, false); // always use the source loop as the source fOutputSample = (fWet * (*spLoopSample) + fDry * fInputSample); if (slCurrPos < 0) { // this is part of the loop that we need to ignore // fprintf(stderr, "Ignoring at %ul\n", lCurrPos); } else if ((loop->lCycles <=1 && fQuantizeMode != 0)) { // do not include the new input if (rLoopSample) { *(rLoopSample) = pLS->fFeedFadeAtten * fFeedback * (*rpLoopSample); } //*(pLoopSample) // = pLS->fFeedFadeAtten * fFeedback * (*spLoopSample); } if ((slCurrPos > (long) loop->lMarkEndL && *pLS->pfRoundMode == 0)) { // do not include the new input (at end) when not rounding pLS->fLoopFadeDelta = -1.0f / xfadeSamples; if (rLoopSample) { *(rLoopSample) = ((pLS->fLoopFadeAtten * fInputSample) + (pLS->fFeedFadeAtten * fFeedback * *(rpLoopSample))); } //*(pLoopSample) // = (pLS->fFeedFadeAtten * fFeedback * (*spLoopSample)) + (pLS->fLoopFadeAtten * fInputSample); // fprintf(stderr, "Not including input at %ul\n", lCurrPos); } else { pLS->fFeedFadeDelta = 1.0f / xfadeSamples; if (rLoopSample) { *(rLoopSample) = ((pLS->fLoopFadeAtten * fInputSample) + (pLS->fFeedFadeAtten * fSafetyFeedback * fFeedback * *(rpLoopSample))); } //*(pLoopSample) // = ( (pLS->fLoopFadeAtten * fInputSample) + (pLS->fFeedFadeAtten * fSafetyFeedback * fFeedback * (*spLoopSample))); } pfOutput[lSampleIndex] = fOutputSample; // increment loop->dCurrPos = loop->dCurrPos + fRate; // ASSUMPTION: our rate is +1 only if ((unsigned long)loop->dCurrPos >= (loop->lLoopLength)) { if (loop->mult_out == (int) loop->lCycles || (unsigned long)loop->dCurrPos >= loop->lMarkEndH) { // we be done this only happens in round mode // adjust curr position loop->lMarkEndH = LONG_MAX; backfill = loop->backfill = 0; // do adjust it for our new length loop->dCurrPos = 0.0f; loop->lLoopLength = loop->lCycles * loop->lCycleLength; pLS->rounding = false; // fprintf(stderr, "mult is over with %d cyc\n", loop->lCycles); loop = transitionToNext(pLS, loop, pLS->nextState); break; } // increment cycle and looplength loop->lCycles += 1; loop->lLoopLength += loop->lCycleLength; //loop->lLoopStop = loop->lLoopStart + loop->lLoopLength; // this signifies the end of the original cycle loop->firsttime = 0; DBG(fprintf(stderr,"%u:%u Multiply added cycle %lu at %g\n", pLS->lLoopIndex, pLS->lChannelIndex, loop->lCycles, loop->dCurrPos)); // now we set this to rise in case we were quantized pLS->fLoopFadeDelta = 1.0f / xfadeSamples; pLS->fFeedFadeDelta = 1.0f / xfadeSamples; loop = ensureLoopSpace (pLS, loop, SampleCount - lSampleIndex, NULL); if (!loop) { // out of space! give up for now! // undo! pLS->state = STATE_PLAY; pLS->wasMuted = false; undoLoop(pLS, false); DBG(fprintf(stderr,"dfMultiply Undone! Out of memory!\n")); break; } } } } else { goto passthrough; } } break; case STATE_INSERT: { if (loop && loop->lLoopLength && loop->srcloop) { srcloop = loop->srcloop; firsttime = loop->firsttime; if (pLS->nextState == STATE_MUTE) { // no loop output fWet = 0.0f; wetDelta = 0.0f; } for (;lSampleIndex < SampleCount; lSampleIndex++) { fWet += wetDelta; fDry += dryDelta; fFeedback += feedbackDelta; fScratchPos += scratchDelta; pLS->fPlayFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fPlayFadeAtten + pLS->fPlayFadeDelta); //pLS->fLoopFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fLoopFadeAtten + pLS->fLoopFadeDelta); //pLS->fFeedFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fFeedFadeAtten + pLS->fFeedFadeDelta); lpCurrPos =(unsigned int) fmod(loop->dCurrPos, srcloop->lLoopLength); lCurrPos =(unsigned int) loop->dCurrPos; rCurrPos = fmod (loop->dCurrPos - lOutputLatency - lInputLatency, loop->lLoopLength); if (rCurrPos < 0) { rCurrPos += loop->lLoopLength; } rpCurrPos = fmod (loop->dCurrPos - lOutputLatency - lInputLatency, srcloop->lLoopLength); if (rpCurrPos < 0) { rpCurrPos += srcloop->lLoopLength; } spLoopSample = & pLS->pSampleBuf[(srcloop->lLoopStart + lpCurrPos) & pLS->lBufferSizeMask]; pLoopSample = & pLS->pSampleBuf[(loop->lLoopStart + lCurrPos) & pLS->lBufferSizeMask]; if (pLS->lFramesUntilInput <= 0) { rLoopSample = & pLS->pSampleBuf[(loop->lLoopStart + (unsigned int) rCurrPos) & pLS->lBufferSizeMask]; rpLoopSample = & pLS->pSampleBuf[(srcloop->lLoopStart + (unsigned int) rpCurrPos) & pLS->lBufferSizeMask]; pLS->fLoopFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fLoopFadeAtten + pLS->fLoopFadeDelta); pLS->fLoopSrcFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fLoopSrcFadeAtten + pLS->fLoopSrcFadeDelta); pLS->fFeedFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fFeedFadeAtten + pLS->fFeedFadeDelta); pLS->fFeedSrcFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fFeedSrcFadeAtten + pLS->fFeedSrcFadeDelta); lInputReadPos = - pLS->lFramesUntilInput; // negate it lInputReadPos = (lInputReadPos <= pLS->lInputBufWritePos) ? (pLS->lInputBufWritePos - lInputReadPos) : (pLS->lInputBufSize - (lInputReadPos - pLS->lInputBufWritePos)) ; } else { rLoopSample = 0; rpLoopSample = 0; pLS->lFramesUntilInput--; lInputReadPos = pLS->lInputBufWritePos; } //fInputSample = pfInput[lSampleIndex]; fInputSample = pfInputLatencyBuf[(lInputReadPos + lSampleIndex) & pLS->lInputBufMask]; // xfade input into source loop (for cases immediately after record) if (rpLoopSample) { *(rpLoopSample) = ((*rpLoopSample) * pLS->fFeedSrcFadeAtten) + pLS->fLoopSrcFadeAtten * fInputSample; } // fill from the record position if (pLS->lFramesUntilFilled > 0) { fillLoops(pLS, loop, (unsigned int) rCurrPos, true); pLS->lFramesUntilFilled--; } fillLoops(pLS, loop, lCurrPos, false); if (firsttime && *pLS->pfQuantMode != 0 ) { // just the source and input fOutputSample = (pLS->fPlayFadeAtten * fWet * (*spLoopSample)) + fDry * fInputSample; // do not include the new input //*(loop->pLoopStart + lCurrPos) // = fFeedback * *(srcloop->pLoopStart + lpCurrPos); //*(pLoopSample) = (pLS->fFeedFadeAtten * fFeedback * (*pLoopSample)); } else if (lCurrPos > loop->lMarkEndL && *pLS->pfRoundMode == 0) { // insert zeros, we finishing an insert with nothingness pLS->fLoopFadeDelta = -1.0f / xfadeSamples; fOutputSample = fDry * fInputSample; if (rLoopSample) { *(rLoopSample) = fInputSample * pLS->fLoopFadeAtten; } } else { // just the input we are now inserting pLS->fLoopFadeDelta = 1.0f / xfadeSamples; pLS->fFeedFadeDelta = -1.0f / xfadeSamples; pLS->fPlayFadeDelta = -1.0f / xfadeSamples; fOutputSample = fDry * fInputSample + (pLS->fPlayFadeAtten * fWet * (*spLoopSample)); if (rLoopSample) { *(rLoopSample) = (fInputSample * pLS->fLoopFadeAtten) + (pLS->fFeedFadeAtten * fFeedback * (*rLoopSample)); } } pfOutput[lSampleIndex] = fOutputSample; if (fSyncMode != 0) { pfSyncOutput[lSampleIndex] = pfSyncInput[lSampleIndex]; pLS->lSamplesSinceSync++; if (pfSyncInput[lSampleIndex] > 1.5f) { //cerr << "ins sync reset" << endl; pLS->lSamplesSinceSync = 0; } if (fSyncMode == 2.0f) { if (pLS->recSyncEnded) { // we just synced, need to noitfy slave... this could be problem pfSyncOutput[lSampleIndex] = 2.0f; DBG(fprintf(stderr, "%u:%u sync out on relsync end on insert\n", pLS->lLoopIndex, pLS->lChannelIndex)); //cerr << "ins notified" << endl; pLS->recSyncEnded = false; } } } else if (fQuantizeMode == QUANT_OFF || (fQuantizeMode == QUANT_CYCLE && (((int) rCurrPos + loop->lSyncPos) % loop->lCycleLength) == 0) || (fQuantizeMode == QUANT_LOOP && (((int)rCurrPos + loop->lSyncPos) % loop->lLoopLength)== 0) || (fQuantizeMode == QUANT_8TH && (((int)rCurrPos + loop->lSyncPos) % eighthSamples) == 0)) { pfSyncOutput[lSampleIndex] = 2.0f; } // increment loop->dCurrPos = loop->dCurrPos + fRate; if ((unsigned long)loop->dCurrPos >= loop->lMarkEndH) { // we be done.. this only happens in round mode // adjust curr position to 0 loop->lMarkEndL = (unsigned long) loop->dCurrPos; loop->lMarkEndH = loop->lLoopLength - 1; backfill = loop->backfill = 1; pLS->rounding = false; loop->lLoopLength = loop->lCycles * loop->lCycleLength; DBG(fprintf(stderr, "%u:%u Looplength = %lu cycles=%lu\n", pLS->lLoopIndex, pLS->lChannelIndex, loop->lLoopLength, loop->lCycles)); loop = transitionToNext(pLS, loop, pLS->nextState); DBG(fprintf(stderr,"%u:%u Entering state %d from insert\n", pLS->lLoopIndex, pLS->lChannelIndex, pLS->state)); break; } // ASSUMPTION: our rate is +1 only if (firsttime && ((unsigned long)rCurrPos % loop->lCycleLength) == 0) { firsttime = loop->firsttime = 0; DBG(fprintf(stderr, "first time done\n")); // now we set this to rise in case we were quantized pLS->fLoopFadeDelta = 1.0f / xfadeSamples; pLS->fFeedFadeDelta = -1.0f / xfadeSamples; } if ((lCurrPos % loop->lCycleLength) == ((loop->lInsPos-1) % loop->lCycleLength)) { if ((unsigned)(loop->lLoopLength + loop->lCycleLength) > (unsigned)(pLS->lBufferSize)) { // out of space! give up for now! pLS->rounding = false; pLS->state = STATE_PLAY; pLS->wasMuted = false; //undoLoop(pLS); DBG(fprintf(stderr,"Insert finish early! Out of memory!\n")); break; } else { // increment cycle and looplength loop->lCycles += 1; loop->lLoopLength += loop->lCycleLength; //loop->lLoopStop = loop->lLoopStart + loop->lLoopLength; // this signifies the end of the original cycle DBG(fprintf(stderr,"insert added cycle. Total=%lu\n", loop->lCycles)); // now we set this to rise in case we were quantized pLS->fLoopFadeDelta = 1.0f / xfadeSamples; pLS->fFeedFadeDelta = -1.0f / xfadeSamples; } } } } else { goto passthrough; } } break; case STATE_UNDO_ALL: case STATE_REDO_ALL: case STATE_UNDO: case STATE_REDO: case STATE_PLAY: case STATE_ONESHOT: case STATE_SCRATCH: case STATE_MUTE: case STATE_PAUSED: { //fprintf(stderr,"in play begin\n"); // play the input out mixed with the recorded loop. if (loop && loop->lLoopLength) { tmpWet = fWet; if(pLS->state == STATE_SCRATCH) { // calculate new rate if rateSwitch is on fPosRatio = (loop->dCurrPos / loop->lLoopLength); if (pLS->fLastScratchVal != fScratchPos && pLS->lScratchSamples > 0) { // we have a change in scratching pos. Find new rate if (pLS->lScratchSamples < 14000) { pLS->fCurrScratchRate = (fScratchPos - fPosRatio) * loop->lLoopLength / pLS->lScratchSamples; } else if (pLS->bRateCtrlActive && pLS->pfRate) { fRate = *pLS->pfRate; } else { fRate = 0.0f; } pLS->lScratchSamples = 0; pLS->fLastScratchVal = fScratchPos; //fprintf(stderr, "fScratchPos: %f fCurrScratchRate: %f \n", fScratchPos, // pLS->fCurrScratchRate); } else if (fabs(pLS->fCurrScratchRate) < 0.2f || ( pLS->lScratchSamples > 14000) || ( pLS->fCurrScratchRate > 0.0f && (fPosRatio >= pLS->fLastScratchVal )) || ( pLS->fCurrScratchRate < 0.0f && (fPosRatio <= pLS->fLastScratchVal ))) { // we have reached the destination, no more scratching pLS->fCurrScratchRate = 0.0f; if (pLS->bRateCtrlActive && pLS->pfRate) { fRate = *pLS->pfRate; } else { // pure scratching fRate = 0.0f; } //fprintf(stderr, "fScratchPos: %f fCurrScratchRate: %f ******\n", fScratchPos, // pLS->fCurrScratchRate); } else { fRate = pLS->fCurrScratchRate; } } srcloop = loop->srcloop; bool recenter = true; for (;lSampleIndex < SampleCount; lSampleIndex++) { lCurrPos =(unsigned int) fmod(loop->dCurrPos, loop->lLoopLength); //fprintf(stderr, "curr = %u\n", lCurrPos); pLoopSample = & pLS->pSampleBuf[(loop->lLoopStart + lCurrPos) & pLS->lBufferSizeMask]; xLoopSample = 0; // init to nil if (pLS->state == STATE_UNDO){ prevloop = pLS->headLoopChunk->prev; if (prevloop) { xCurrPos = (unsigned int) fmod(loop->dCurrPos, prevloop->lLoopLength); xLoopSample = & pLS->pSampleBuf[(prevloop->lLoopStart + xCurrPos) & pLS->lBufferSizeMask]; } } if (pLS->state == STATE_REDO) { nextloop = pLS->headLoopChunk->next; if (nextloop) { xCurrPos = (unsigned int) fmod(loop->dCurrPos, nextloop->lLoopLength); xLoopSample = & pLS->pSampleBuf[(nextloop->lLoopStart + xCurrPos) & pLS->lBufferSizeMask]; } } if (pLS->state == STATE_REDO_ALL) { nextloop = pLS->headLoopChunk; while (nextloop->next) { nextloop = nextloop->next; } if (nextloop) { xCurrPos = (unsigned int) fmod(loop->dCurrPos, nextloop->lLoopLength); xLoopSample = & pLS->pSampleBuf[(nextloop->lLoopStart + xCurrPos) & pLS->lBufferSizeMask]; } } rCurrPos = fmod (loop->dCurrPos - (fRate * (lOutputLatency + lInputLatency)), loop->lLoopLength); if (rCurrPos < 0) { rCurrPos += loop->lLoopLength; } rLoopSample = & pLS->pSampleBuf[(loop->lLoopStart + (unsigned int) rCurrPos) & pLS->lBufferSizeMask]; lInputReadPos = pLS->lInputBufWritePos; if (rCurrPos == loop->lLoopLength-1) { //DBG(cerr << "In play rcurrpos == : " << rCurrPos << " val: " << *pLoopSample << endl;); } if (fSyncMode != 0.0f) { pfSyncOutput[lSampleIndex] = pfSyncInput[lSampleIndex]; pLS->lSamplesSinceSync++; if (pfSyncInput[lSampleIndex] > 1.5f) { //DBG(cerr << pLS->lLoopIndex << ":" << pLS->lChannelIndex << " TS sync reset at: " << loop->dCurrPos << " with since: " << pLS->lSamplesSinceSync << endl); pLS->lSamplesSinceSync = 0; } if (fSyncMode == 2.0f) { if (pLS->recSyncEnded) { // we just synced, need to noitfy slave... this could be problem pfSyncOutput[lSampleIndex] = 1.0f; DBG(cerr << pLS->lLoopIndex << ":" << pLS->lChannelIndex << " notified rel synced at " << loop->dCurrPos << endl); pLS->recSyncEnded = false; } } } else if (fQuantizeMode == QUANT_OFF || (fQuantizeMode == QUANT_CYCLE && ((lCurrPos + loop->lSyncPos) % loop->lCycleLength) == 0) || (fQuantizeMode == QUANT_LOOP && (((lCurrPos + loop->lSyncPos) % loop->lLoopLength) == 0)) || (fQuantizeMode == QUANT_8TH && ((lCurrPos + loop->lSyncPos) % eighthSamples) == 0)) { pfSyncOutput[lSampleIndex] = 2.0f; } if (pLS->fNextCurrRate != 0 && pfSyncOutput[lSampleIndex] > 1.5f && fTempo > 0.0f) { // commit the new rate at boundary (quantized) pLS->fCurrRate = pLS->fNextCurrRate; pLS->fNextCurrRate = 0.0f; DBG(fprintf(stderr, "%u%u Starting quantized rate change at %d %g\n", pLS->lLoopIndex, pLS->lChannelIndex, lCurrPos, pfSyncOutput[lSampleIndex])); } // test playback sync if (syncSamples && fPlaybackSyncMode != 0.0f && fQuantizeMode != QUANT_OFF && !pLS->donePlaySync && ( pfSyncInput[lSampleIndex] > 1.5f) && (labs((long)(loop->lLoopLength - loop->lSyncPos) - lCurrPos) < syncSamples || (lCurrPos + loop->lSyncPos) < syncSamples)) { DBG(cerr << pLS->lLoopIndex << ":" << pLS->lChannelIndex << "PLAYBACK SYNC " << " hit at " << lCurrPos << endl); //pLS->waitingForSync = 1; pLS->donePlaySync = true; if (pLS->fCurrRate > 0) loop->dCurrPos = (double) (loop->lLoopLength - loop->lSyncPos) + fSyncOffsetSamples; else loop->dCurrPos = (loop->lLoopLength - loop->lSyncPos) - 1 - fSyncOffsetSamples; pfSyncOutput[lSampleIndex] = 2.0f; } if (pLS->waitingForSync && ((fSyncMode == 0.0f && pfSyncOutput[lSampleIndex] != 0.0f) || pfSyncInput[lSampleIndex] != 0.0f || (pLS->nextState == STATE_TRIGGER_PLAY && fSyncMode >= 1.0f && pLS->lSamplesSinceSync < eighthSamples))) // some slack { loop->dCurrPos = lCurrPos + modf(loop->dCurrPos, &dDummy); DBG(fprintf(stderr, "%u:%u transition to next at: %lu: %u %g : %lu\n", pLS->lLoopIndex, pLS->lChannelIndex, lSampleIndex, lCurrPos, loop->dCurrPos, loop->lLoopLength)); loop = transitionToNext (pLS, loop, pLS->nextState); if (loop) srcloop = loop->srcloop; else srcloop = NULL; pLS->waitingForSync = 0; recenter = false; break; } fWet += wetDelta; fDry += dryDelta; fFeedback += feedbackDelta; fScratchPos += scratchDelta; pLS->fLoopFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fLoopFadeAtten + pLS->fLoopFadeDelta); pLS->fLoopSrcFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fLoopSrcFadeAtten + pLS->fLoopSrcFadeDelta); pLS->fFeedSrcFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fFeedSrcFadeAtten + pLS->fFeedSrcFadeDelta); pLS->fPlayFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fPlayFadeAtten + pLS->fPlayFadeDelta); pLS->fFeedFadeAtten = LIMIT_BETWEEN_0_AND_1 (pLS->fFeedFadeAtten + pLS->fFeedFadeDelta); tmpWet = fWet; //if (pLS->fPlayFadeAtten != 0.0f && pLS->fPlayFadeAtten != 1.0f) { //cerr << "play fade: " << pLS->fPlayFadeAtten << endl; //} tmpWet *= pLS->fPlayFadeAtten; // // modify fWet if we are in a ramp up/down // if (pLS->lRampSamples > 0) { // if (pLS->state == STATE_MUTE) { // //negative linear ramp // tmpWet = fWet * (pLS->lRampSamples * 1.0f) / xfadeSamples; // } // else { // // positive linear ramp // tmpWet = fWet * (xfadeSamples - pLS->lRampSamples) // * 1.0f / xfadeSamples; // } // pLS->lRampSamples -= 1; // } //fInputSample = pfInput[lSampleIndex]; fInputSample = pfInputLatencyBuf[(lInputReadPos + lSampleIndex) & pLS->lInputBufMask]; // fill from the record position ?? if (pLS->lFramesUntilFilled > 0) { fillLoops(pLS, loop, (unsigned int) rCurrPos, true); pLS->lFramesUntilFilled--; } fillLoops(pLS, loop, lCurrPos, false); fOutputSample = tmpWet * (*pLoopSample) + fDry * fInputSample; if (xLoopSample && (pLS->state == STATE_UNDO || pLS->state == STATE_REDO || pLS->state == STATE_REDO_ALL)) { //fprintf(stderr, "fading.. :%g\n", tmpWet); fOutputSample = tmpWet * (*xLoopSample) + fDry * fInputSample + (fWet-tmpWet) * (*pLoopSample); } // jlc play // we might add a bit from the input still during xfadeout *(rLoopSample) = ((*rLoopSample) * pLS->fFeedFadeAtten) + pLS->fLoopFadeAtten * fInputSample; // if (pLS->fLoopFadeAtten > 0.9 && pLS->fLoopFadeAtten < 1) fprintf(stderr, "fLoopFadeAtten: %g, SampleIndex: %d\n", pLS->fLoopFadeAtten, lCurrPos); // optionally support feedback during playback (use rLoopSample??) if (useFeedbackPlay) { *(pLoopSample) *= fFeedback * pLS->fFeedFadeAtten; } pfOutput[lSampleIndex] = fOutputSample; if (pLS->state == STATE_PAUSED && pLS->fPlayFadeAtten == 0.0f) { // do not increment time } else { // increment and wrap at the proper loop end loop->dCurrPos = loop->dCurrPos + fRate; } if (pLS->fNextCurrRate != 0 && pfSyncOutput[lSampleIndex] > 1.5f && fTempo > 0.0f) { // commit the new rate at boundary (quantized) pLS->fCurrRate = pLS->fNextCurrRate; pLS->fNextCurrRate = 0.0f; DBG(fprintf(stderr, "%u:%u Starting quantized rate change at %d\n", pLS->lLoopIndex, pLS->lChannelIndex, lCurrPos)); } if (loop->dCurrPos >= loop->lLoopLength) { if (pLS->state == STATE_ONESHOT) { // done with one shot DBG(fprintf(stderr, "%u:%u finished ONESHOT lcurrPos=%d\n", pLS->lLoopIndex, pLS->lChannelIndex, lCurrPos)); pLS->state = STATE_MUTE; pLS->fPlayFadeDelta = -1.0f / xfadeSamples; //pLS->lRampSamples = xfadeSamples; //fWet = 0.0; } if (pLS->fNextCurrRate != 0 && pfSyncOutput[lSampleIndex] > 1.5f) { // commit the new rate at boundary (quantized) pLS->fCurrRate = pLS->fNextCurrRate; pLS->fNextCurrRate = 0.0f; DBG(fprintf(stderr, "%u:%u (2) Starting quantized rate change at %d\n", pLS->lLoopIndex, pLS->lChannelIndex, lCurrPos)); } pLS->donePlaySync = false; } else if (loop->dCurrPos < 0) { // our rate must be negative // adjust around to the back loop->dCurrPos += loop->lLoopLength; if (pLS->state == STATE_ONESHOT) { // done with one shot DBG(fprintf(stderr, "%u:%u finished ONESHOT neg\n", pLS->lLoopIndex, pLS->lChannelIndex)); pLS->state = STATE_MUTE; //fWet = 0.0; pLS->fPlayFadeDelta = -1.0f / xfadeSamples; //pLS->lRampSamples = xfadeSamples; } if (pLS->fNextCurrRate != 0 && pfSyncOutput[lSampleIndex] > 1.5f) { // commit the new rate at boundary (quantized) pLS->fCurrRate = pLS->fNextCurrRate; pLS->fNextCurrRate = 0.0f; DBG(fprintf(stderr, "%u:%u (3) Starting quantized rate change at %d\n", pLS->lLoopIndex, pLS->lChannelIndex, lCurrPos)); } pLS->donePlaySync = false; } } if (pLS->state == STATE_UNDO && pLS->fPlayFadeAtten == 1.0f) { // play some of the old loop first and switch later undoLoop(pLS, false); DBG(fprintf(stderr, "finished UNDO...\n")); pLS->state = pLS->nextState; } if (pLS->state == STATE_REDO && pLS->fPlayFadeAtten == 1.0f) { // play some of the old loop first and switch later redoLoop(pLS); DBG(fprintf(stderr, "finished REDO...\n")); pLS->state = pLS->nextState; } if (pLS->state == STATE_UNDO_ALL && pLS->fPlayFadeAtten == 0.0f) { // fade out the old loop and goto state_off clearLoopChunks(pLS); DBG(fprintf(stderr, "finished UNDO ALL...\n")); if (pLS->wasMuted) pLS->state = STATE_OFF_MUTE; else pLS->state = STATE_OFF; } if (pLS->state == STATE_REDO_ALL && pLS->fPlayFadeAtten == 1.0f) { // play some of the old loop first and switch later lastloop = pLS->headLoopChunk; redoLoop(pLS); while (pLS->headLoopChunk != lastloop) { lastloop = pLS->headLoopChunk; redoLoop(pLS); } DBG(fprintf(stderr, "finished REDO ALL...\n")); pLS->state = pLS->nextState; } // recenter around the mod if (loop) { lCurrPos = (unsigned int) fabs(fmod(loop->dCurrPos, loop->lLoopLength)); if (recenter) { loop->dCurrPos = lCurrPos + modf(loop->dCurrPos, &dDummy); } } } else { goto passthrough; } } break; case STATE_DELAY: { if (loop && loop->lLoopLength) { // the loop length is our delay time. backfill = loop->backfill; for (;lSampleIndex < SampleCount; lSampleIndex++) { fWet += wetDelta; fDry += dryDelta; fFeedback += feedbackDelta; fScratchPos += scratchDelta; // wrap properly lCurrPos =(unsigned int) fmod(loop->dCurrPos, loop->lLoopLength); pLoopSample = & pLS->pSampleBuf[(loop->lLoopStart + lCurrPos) & pLS->lBufferSizeMask]; fInputSample = pfInput[lSampleIndex]; if (backfill && lCurrPos >= loop->lMarkEndL && lCurrPos <= loop->lMarkEndH) { // our delay buffer is invalid here, clear it *(pLoopSample) = 0.0f; if (fRate > 0) { loop->lMarkEndL = lCurrPos; } else { loop->lMarkEndH = lCurrPos; } } fOutputSample = fWet * *(pLoopSample) + fDry * fInputSample; if (!pLS->bHoldMode) { // now fill in from input if we are not holding the delay *(pLoopSample) = (fInputSample + fFeedback * *(pLoopSample)); } pfOutput[lSampleIndex] = fOutputSample; if (fSyncMode != 0 || fQuantizeMode == QUANT_OFF) { pfSyncOutput[lSampleIndex] = pfSyncInput[lSampleIndex]; } else if (((lCurrPos + loop->lSyncPos) % loop->lCycleLength) == 0) { pfSyncOutput[lSampleIndex] = 2.0f; } // increment loop->dCurrPos = loop->dCurrPos + fRate; if (backfill && loop->lMarkEndL == loop->lMarkEndH) { // no need to clear the buf first now backfill = loop->backfill = 0; } else if (loop->dCurrPos < 0) { // our rate must be negative // adjust around to the back loop->dCurrPos += loop->lLoopLength; } } // recenter around the mod lCurrPos = (unsigned int) fabs(fmod(loop->dCurrPos, loop->lLoopLength)); loop->dCurrPos = lCurrPos + modf(loop->dCurrPos, &dDummy); } else { goto passthrough; } } break; default: { goto passthrough; } break; } //goto loopend; continue; passthrough: // simply play the input out directly // no loop has been created yet for (;lSampleIndex < SampleCount; lSampleIndex++) { fWet += wetDelta; fDry += dryDelta; fFeedback += feedbackDelta; fScratchPos += scratchDelta; pfOutput[lSampleIndex] = fDry * pfInput[lSampleIndex]; if (fSyncMode != 0 || fQuantizeMode == QUANT_OFF) { pfSyncOutput[lSampleIndex] = pfSyncInput[lSampleIndex]; } if (fSyncMode >= 1.0f) { pLS->lSamplesSinceSync++; if (pfSyncInput[lSampleIndex] > 1.5f) { //cerr << "passthru resetting sync: " << pLS << endl; pLS->lSamplesSinceSync = 0; } } } } // keep track of time between triggers to ignore settling issues // pLS->lRecTrigSamples += SampleCount; pLS->lScratchSamples += SampleCount; pLS->lTapTrigSamples += SampleCount; // printf ("wet is %g targ was %g\n", fWet, *(pLS->pfWet)); pLS->fWetCurr = wetTarget; pLS->fWetTarget = wetTarget; pLS->fDryCurr = dryTarget; pLS->fDryTarget = dryTarget; pLS->fFeedbackCurr = feedbackTarget; pLS->fFeedbackTarget = feedbackTarget; pLS->fScratchPosCurr = scratchTarget; pLS->fScratchPosTarget = scratchTarget; // update output ports *pLS->pfStateOut = (LADSPA_Data) pLS->state; *pLS->pfNextStateOut = (LADSPA_Data) pLS->nextState; // either waiting for sync, waiting for a reverse, or rounding a mult *pLS->pfWaiting = (pLS->waitingForSync || pLS->state == STATE_TRIG_START || pLS->state == STATE_TRIG_STOP || pLS->fNextCurrRate != 0.0f || pLS->rounding) ? 1.0f: 0.0f; *pLS->pfRateOutput = (LADSPA_Data) pLS->fCurrRate * (*pLS->pfRate); pLS->lInputBufWritePos = (pLS->lInputBufWritePos + SampleCount) & pLS->lInputBufMask; if (pLS->pfSecsFree) { *pLS->pfSecsFree = pLS->lBufferSize / pLS->fSampleRate; // *pLS->pfSecsFree = (pLS->fTotalSecs) - // (pLS->headLoopChunk ? // ((((unsigned)pLS->headLoopChunk->pLoopStop - (unsigned)pLS->pSampleBuf) // / sizeof(LADSPA_Data)) / pLS->fSampleRate) : // 0); } if (loop) { if (pLS->pfLoopPos) *pLS->pfLoopPos = (LADSPA_Data) (loop->dCurrPos / pLS->fSampleRate); if (pLS->pfLoopLength) *pLS->pfLoopLength = ((LADSPA_Data) loop->lLoopLength) / pLS->fSampleRate; if (pLS->pfCycleLength) *pLS->pfCycleLength = ((LADSPA_Data) loop->lCycleLength) / pLS->fSampleRate; } else { if (pLS->pfLoopPos) *pLS->pfLoopPos = 0.0f; if (pLS->pfLoopLength) *pLS->pfLoopLength = 0.0f; if (pLS->pfCycleLength) *pLS->pfCycleLength = 0.0f; if (pLS->pfStateOut && pLS->state != STATE_OFF_MUTE && pLS->state != STATE_MUTE && pLS->state != STATE_TRIG_START) *pLS->pfStateOut = (LADSPA_Data) STATE_OFF; } } /*****************************************************************************/ LADSPA_Descriptor * g_psDescriptor = NULL; /*****************************************************************************/ /* sl_init() is called automatically when the plugin library is first loaded. */ LADSPA_Descriptor * create_sl_descriptor() { char ** pcPortNames; LADSPA_PortDescriptor * piPortDescriptors; LADSPA_PortRangeHint * psPortRangeHints; LADSPA_Descriptor * psDescriptor; psDescriptor = (LADSPA_Descriptor *)malloc(sizeof(LADSPA_Descriptor)); if (psDescriptor) { psDescriptor->UniqueID = 1601; psDescriptor->Label = strdup("SooperLooper"); psDescriptor->Properties = LADSPA_PROPERTY_HARD_RT_CAPABLE; psDescriptor->Name = strdup("SooperLooper"); psDescriptor->Maker = strdup("Jesse Chappell"); psDescriptor->Copyright = strdup("2002, Jesse Chappell"); psDescriptor->PortCount = PORT_COUNT; piPortDescriptors = (LADSPA_PortDescriptor *)calloc(PORT_COUNT, sizeof(LADSPA_PortDescriptor)); psDescriptor->PortDescriptors = (const LADSPA_PortDescriptor *)piPortDescriptors; piPortDescriptors[WetLevel] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[DryLevel] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[Feedback] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[TriggerThreshold] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[Rate] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[ScratchPosition] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[Multi] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[TapDelayTrigger] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[UseFeedbackPlay] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[Quantize] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[Round] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[Sync] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[PlaybackSync] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[UseRate] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[FadeSamples] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[TempoInput] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[RedoTap] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; piPortDescriptors[AudioInputPort] = LADSPA_PORT_INPUT | LADSPA_PORT_AUDIO; piPortDescriptors[AudioOutputPort] = LADSPA_PORT_OUTPUT | LADSPA_PORT_AUDIO; piPortDescriptors[SyncInputPort] = LADSPA_PORT_INPUT | LADSPA_PORT_AUDIO; piPortDescriptors[SyncOutputPort] = LADSPA_PORT_OUTPUT | LADSPA_PORT_AUDIO; piPortDescriptors[State] = LADSPA_PORT_OUTPUT | LADSPA_PORT_CONTROL; piPortDescriptors[LoopPosition] = LADSPA_PORT_OUTPUT | LADSPA_PORT_CONTROL; piPortDescriptors[LoopLength] = LADSPA_PORT_OUTPUT | LADSPA_PORT_CONTROL; piPortDescriptors[CycleLength] = LADSPA_PORT_OUTPUT | LADSPA_PORT_CONTROL; piPortDescriptors[LoopMemory] = LADSPA_PORT_OUTPUT | LADSPA_PORT_CONTROL; piPortDescriptors[LoopFreeMemory] = LADSPA_PORT_OUTPUT | LADSPA_PORT_CONTROL; piPortDescriptors[Waiting] = LADSPA_PORT_OUTPUT | LADSPA_PORT_CONTROL; piPortDescriptors[TrueRate] = LADSPA_PORT_OUTPUT | LADSPA_PORT_CONTROL; piPortDescriptors[NextState] = LADSPA_PORT_OUTPUT | LADSPA_PORT_CONTROL; pcPortNames = (char **)calloc(PORT_COUNT, sizeof(char *)); psDescriptor->PortNames = (const char **)pcPortNames; pcPortNames[DryLevel] = strdup("Dry Level (dB)"); pcPortNames[WetLevel] = strdup("Wet Level (dB)"); pcPortNames[Feedback] = strdup("Feedback"); pcPortNames[TriggerThreshold] = strdup("Trigger Threshold"); pcPortNames[Rate] = strdup("Rate"); pcPortNames[ScratchPosition] = strdup("Scratch Destination"); pcPortNames[Multi] = strdup("Multi Control"); pcPortNames[TapDelayTrigger] = strdup("Tap Delay Trigger"); pcPortNames[UseFeedbackPlay] = strdup("Use Feedback Play"); pcPortNames[Quantize] = strdup("Quantize Mode"); pcPortNames[Round] = strdup("Round Mode"); pcPortNames[RedoTap] = strdup("Redo Tap Mode"); pcPortNames[Sync] = strdup("Sync Mode"); pcPortNames[PlaybackSync] = strdup("Playback Sync Mode"); pcPortNames[UseRate] = strdup("Use Rate Ctrl"); pcPortNames[FadeSamples] = strdup("Fade samples"); pcPortNames[TempoInput] = strdup("Tempo"); pcPortNames[InputLatency] = strdup("InputLatency"); pcPortNames[OutputLatency] = strdup("OutputLatency"); pcPortNames[TriggerLatency] = strdup("TriggerLatency"); pcPortNames[MuteQuantized] = strdup("MuteQuantized"); pcPortNames[OverdubQuantized] = strdup("OverdubQuantized"); pcPortNames[AudioInputPort] = strdup("Input"); pcPortNames[AudioOutputPort] = strdup("Output"); pcPortNames[SyncInputPort] = strdup("Sync Input"); pcPortNames[SyncOutputPort] = strdup("Sync Output"); pcPortNames[State] = strdup("State Output"); pcPortNames[LoopLength] = strdup("Loop Length Out (s)"); pcPortNames[LoopPosition] = strdup("Loop Position Out (s)"); pcPortNames[CycleLength] = strdup("Cycle Length Out (s)"); pcPortNames[LoopMemory] = strdup("Total Sample Mem (s)"); pcPortNames[LoopFreeMemory] = strdup("Free Sample Mem (s)"); pcPortNames[Waiting] = strdup("Waiting"); pcPortNames[TrueRate] = strdup("True Rate"); pcPortNames[NextState] = strdup("Next State Output"); psPortRangeHints = ((LADSPA_PortRangeHint *) calloc(PORT_COUNT, sizeof(LADSPA_PortRangeHint))); psDescriptor->PortRangeHints = (const LADSPA_PortRangeHint *)psPortRangeHints; psPortRangeHints[DryLevel].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE; psPortRangeHints[DryLevel].LowerBound = -90.0f; psPortRangeHints[DryLevel].UpperBound = 0.0; psPortRangeHints[WetLevel].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE; psPortRangeHints[WetLevel].LowerBound = -90.0f; psPortRangeHints[WetLevel].UpperBound = 0.0; psPortRangeHints[Feedback].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE; psPortRangeHints[Feedback].LowerBound = 0.0; psPortRangeHints[Feedback].UpperBound = 1.0; psPortRangeHints[TriggerThreshold].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE; psPortRangeHints[TriggerThreshold].LowerBound = 0.0; psPortRangeHints[TriggerThreshold].UpperBound = 1.0; psPortRangeHints[Rate].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE; psPortRangeHints[Rate].LowerBound = -4.0; psPortRangeHints[Rate].UpperBound = 4.0; psPortRangeHints[TrueRate].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE; psPortRangeHints[TrueRate].LowerBound = -4.0; psPortRangeHints[TrueRate].UpperBound = 4.0; psPortRangeHints[ScratchPosition].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE; psPortRangeHints[ScratchPosition].LowerBound = 0.0; psPortRangeHints[ScratchPosition].UpperBound = 1.0; psPortRangeHints[Multi].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_INTEGER; psPortRangeHints[Multi].LowerBound = 0.0; psPortRangeHints[Multi].UpperBound = 127.0; psPortRangeHints[TapDelayTrigger].HintDescriptor = LADSPA_HINT_TOGGLED; psPortRangeHints[UseFeedbackPlay].HintDescriptor = LADSPA_HINT_TOGGLED; psPortRangeHints[Quantize].HintDescriptor = LADSPA_HINT_BOUNDED_ABOVE|LADSPA_HINT_BOUNDED_BELOW|LADSPA_HINT_INTEGER; psPortRangeHints[Quantize].LowerBound = 0.0f; psPortRangeHints[Quantize].UpperBound = 3.0f; psPortRangeHints[FadeSamples].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_INTEGER; psPortRangeHints[FadeSamples].LowerBound = 0.0f; psPortRangeHints[FadeSamples].UpperBound = 8192.0f; psPortRangeHints[TempoInput].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_INTEGER; psPortRangeHints[TempoInput].LowerBound = 0.0f; psPortRangeHints[TempoInput].UpperBound = 1000.0f; psPortRangeHints[InputLatency].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_INTEGER; psPortRangeHints[InputLatency].LowerBound = 0.0f; psPortRangeHints[InputLatency].UpperBound = 1000000.0f; psPortRangeHints[OutputLatency].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_INTEGER; psPortRangeHints[OutputLatency].LowerBound = 0.0f; psPortRangeHints[OutputLatency].UpperBound = 1000000.0f; psPortRangeHints[TriggerLatency].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_INTEGER; psPortRangeHints[TriggerLatency].LowerBound = 0.0f; psPortRangeHints[TriggerLatency].UpperBound = 1000000.0f; psPortRangeHints[MuteQuantized].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_TOGGLED; psPortRangeHints[MuteQuantized].LowerBound = 0.0f; psPortRangeHints[MuteQuantized].UpperBound = 1.0f; psPortRangeHints[OverdubQuantized].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_TOGGLED; psPortRangeHints[OverdubQuantized].LowerBound = 0.0f; psPortRangeHints[OverdubQuantized].UpperBound = 1.0f; psPortRangeHints[Round].HintDescriptor = LADSPA_HINT_TOGGLED; psPortRangeHints[RedoTap].HintDescriptor = LADSPA_HINT_TOGGLED; psPortRangeHints[Sync].HintDescriptor = LADSPA_HINT_TOGGLED; psPortRangeHints[PlaybackSync].HintDescriptor = LADSPA_HINT_TOGGLED; psPortRangeHints[UseRate].HintDescriptor = LADSPA_HINT_TOGGLED; psPortRangeHints[AudioInputPort].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW; psPortRangeHints[AudioInputPort].LowerBound = 0.0; psPortRangeHints[AudioOutputPort].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW; psPortRangeHints[AudioOutputPort].LowerBound = 0.0; psPortRangeHints[State].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW; psPortRangeHints[LoopPosition].LowerBound = 0.0; psPortRangeHints[LoopPosition].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW; psPortRangeHints[LoopPosition].LowerBound = 0.0; psPortRangeHints[LoopLength].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW; psPortRangeHints[LoopLength].LowerBound = 0.0; psPortRangeHints[CycleLength].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW; psPortRangeHints[CycleLength].LowerBound = 0.0; psPortRangeHints[LoopMemory].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW; psPortRangeHints[LoopMemory].LowerBound = 0.0; psPortRangeHints[LoopFreeMemory].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW; psPortRangeHints[LoopFreeMemory].LowerBound = 0.0; psPortRangeHints[Waiting].HintDescriptor = LADSPA_HINT_TOGGLED; psPortRangeHints[NextState].HintDescriptor = LADSPA_HINT_BOUNDED_BELOW; psPortRangeHints[NextState].LowerBound = 0.0; psDescriptor->instantiate = instantiateSooperLooper; psDescriptor->connect_port = connectPortToSooperLooper; psDescriptor->activate = activateSooperLooper; psDescriptor->run = runSooperLooper; psDescriptor->run_adding = NULL; psDescriptor->set_run_adding_gain = NULL; psDescriptor->deactivate = NULL; psDescriptor->cleanup = cleanupSooperLooper; } return psDescriptor; } /*****************************************************************************/ void cleanup_sl_descriptor(LADSPA_Descriptor * psDescriptor) { unsigned long lIndex; if (psDescriptor) { free((char *)psDescriptor->Label); free((char *)psDescriptor->Name); free((char *)psDescriptor->Maker); free((char *)psDescriptor->Copyright); free((LADSPA_PortDescriptor *)psDescriptor->PortDescriptors); for (lIndex = 0; lIndex < psDescriptor->PortCount; lIndex++) free((char *)(psDescriptor->PortNames[lIndex])); free((char **)psDescriptor->PortNames); free((LADSPA_PortRangeHint *)psDescriptor->PortRangeHints); free(psDescriptor); psDescriptor = 0; } } void sl_init() { if (!g_psDescriptor) { g_psDescriptor = create_sl_descriptor(); } } /* _fini() is called automatically when the library is unloaded. */ void sl_fini() { cleanup_sl_descriptor(g_psDescriptor); } /*****************************************************************************/ /* Return a descriptor of the requested plugin type. Only one plugin type is available in this library. */ const LADSPA_Descriptor * ladspa_descriptor(unsigned long Index) { if (Index == 0) return g_psDescriptor; else return NULL; } /*****************************************************************************/ /* EOF */ sooperlooper-1.7.3~dfsg0/src/midi_bridge.hpp0000644000175000017500000001000712230252703017566 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_midi_bridge__ #define __sooperlooper_midi_bridge__ #include #include #include #include #include #include #include #include #include #include #include "event.hpp" #include "midi_bind.hpp" #include "lockmonitor.hpp" namespace SooperLooper { class Engine; class MidiBridge : public sigc::trackable { public: MidiBridge (std::string name); MidiBridge (std::string name, MIDI::PortRequest & req); MidiBridge (std::string name, std::string oscurl, MIDI::PortRequest & req); virtual ~MidiBridge(); MidiBindings & bindings() { return _midi_bindings; } PBD::NonBlockingLock & bindings_lock() { return _bindings_lock; } virtual bool is_ok() { return _ok; } void start_learn (MidiBindInfo & info, bool exclus=false); void cancel_learn(); void start_get_next (); void cancel_get_next (); sigc::signal1 BindingLearned; sigc::signal1 NextMidiReceived; // type, command, loop index, framepos (-1 if not set) sigc::signal4 MidiCommandEvent; sigc::signal5 MidiControlEvent; sigc::signal3 MidiSyncEvent; void inject_midi (MIDI::byte chcmd, MIDI::byte param, MIDI::byte val, long framepos=-1); // the tempo updated on a beat starting at timestamp void tempo_clock_update(double tempo, MIDI::timestamp_t timestamp, bool forcestart=false); MIDI::timestamp_t get_current_host_time(); void set_output_midi_clock(bool flag) { _output_clock = flag; } void set_feedback_out(bool flag) { _feedback_out = flag; } bool get_feedback_out() const { return _feedback_out; } void parameter_changed(int ctrl_id, int instance, Engine *engine); protected: bool init_thread(); void terminate_midi_thread(); void poke_midi_thread(); void incoming_midi (MIDI::Parser &p, MIDI::byte *msg, size_t len, MIDI::timestamp_t timestamp); void queue_midi (MIDI::byte chcmd, MIDI::byte param, MIDI::byte val, long framepos=-1, MIDI::timestamp_t timestamp=0); static void * _midi_receiver (void * arg); void midi_receiver (); void stop_midireceiver (); void finish_learn(MIDI::byte chcmd, MIDI::byte param, MIDI::byte val); bool init_clock_thread(); void terminate_clock_thread(); static void * _clock_thread_entry (void * arg); void * clock_thread_entry(); void poke_clock_thread(); std::string _name; std::string _oscurl; private: void send_event (const MidiBindInfo & info, float val, long framepos=-1); MidiBindings _midi_bindings; MIDI::Port * _port; lo_address _addr; int _midi_request_pipe[2]; pthread_t _midi_thread; int _clock_request_pipe[2]; pthread_t _clock_thread; PBD::NonBlockingLock _bindings_lock; bool _use_osc; volatile bool _done; volatile bool _clockdone; volatile bool _tempo_updated; volatile double _tempo; volatile MIDI::timestamp_t _beatstamp; volatile bool _pending_start; volatile bool _output_clock; bool _learning; bool _getnext; MidiBindInfo _learninfo; bool _ok; bool _feedback_out; }; }; #endif sooperlooper-1.7.3~dfsg0/src/bcf2000.slb0000644000175000017500000000161011754453700016367 0ustar miramira# midi binding file for sooperlooper # ch type val cmd ctrl instance [min_val_bound max_val_bound scale_style] # type is one of: 'pc' = program change 'cc' = control change 'n' = note # cmd is one of: note down up set # scale_style is one of: gain # this is made for the behringer bcf2000, factory preset #3 9 n 35 note undo 0 9 n 37 note redo 0 9 n 41 note replace 0 9 n 51 note reverse 0 9 n 54 note scratch 0 9 n 36 note record 0 9 n 38 note overdub 0 9 n 40 note multiply 0 9 n 43 note insert 0 9 n 49 note mute 0 9 n 46 note trigger 0 9 n 42 note oneshot 0 0 cc 7 set dry 0 0.0 1.0 gain #0 cc 7 set wet 0 0.0 1.0 gain 1 cc 7 set wet 0 0.0 1.0 gain 2 cc 7 set feedback 0 0.0 1.0 3 cc 7 set rec_thresh 0 0.0 1.0 gain 6 cc 7 set scratch_pos 0 0.0 1.0 7 cc 7 set rate 0 0.25 4.0 # 0 cc 4 set quantize 0 0 1 # 0 cc 5 set round 0 0 1 sooperlooper-1.7.3~dfsg0/src/._looper.cpp0000644000175000017500000000024712442350556017057 0ustar miramiraMac OS X  2u§ATTR§œ œ com.apple.TextEncodingmacintosh;0sooperlooper-1.7.3~dfsg0/src/edp4.slb0000644000175000017500000000170411754453700016173 0ustar miramira0 n 38 note record -1 0 1 0 n 39 note overdub -1 0 1 0 n 40 note multiply -1 0 1 0 n 41 note insert -1 0 1 0 n 42 note mute -1 0 1 0 n 43 note undo -1 0 1 0 n 45 note replace -1 0 1 0 n 49 note reverse -1 0 1 0 n 50 susnote record -1 0 1 0 n 51 susnote overdub -1 0 1 0 n 54 susnote mute -1 0 1 0 n 55 note undo -1 0 1 0 n 57 susnote replace -1 0 1 0 n 59 susnote reverse -1 0 1 0 n 70 set rate -1 1 1 0 n 71 set rate -1 0.5 0.5 0 n 72 note oneshot -1 0.5 0.5 0 n 73 note trigger -1 0.5 0.5 0 n 84 note trigger 0 0.5 0.5 0 n 85 note trigger 1 0.5 0.5 0 n 86 note trigger 2 0.5 0.5 0 n 87 note trigger 3 0.5 0.5 0 n 88 note trigger 4 0.5 0.5 0 n 89 note trigger 5 0.5 0.5 0 n 90 note trigger 6 0.5 0.5 0 n 91 note trigger 7 0.5 0.5 0 n 92 note trigger 8 0.5 0.5 0 n 93 note trigger 9 0.5 0.5 0 cc 1 set feedback -1 0 1 0 cc 2 set wet -1 0 1 gain sooperlooper-1.7.3~dfsg0/src/engine.cpp0000644000175000017500000024336412442352145016614 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include "version.h" #include "engine.hpp" #include "looper.hpp" #include "control_osc.hpp" #include "midi_bind.hpp" #include "midi_bridge.hpp" #include "utils.hpp" using namespace SooperLooper; using namespace std; using namespace PBD; using namespace sigc; #define MAX_EVENTS 1024 #define MAX_SYNC_EVENTS 1024 #define TEMPO_DIFF(t1, t2) (fabs(t1-t2) > 0.000001) //#define DEBUG 1 Engine::Engine () { _ok = false; _driver = 0; _osc = 0; _event_generator = 0; _event_queue = 0; _def_channel_cnt = 2; _def_loop_secs = 200; _tempo = 110.0; _eighth_cycle = 16.0f; _sync_source = NoSync; _tempo_counter = 0; _tempo_frames = 0; _quarter_counter = 0.0; _quarter_note_frames = 0.0; _midi_ticks = 0; _midi_loop_tick = 12; _midi_bridge = 0; _learn_done = false; _received_done = false; _target_common_dry = 0.0f; _curr_common_dry = 0.0f; _target_common_wet = 1.0f; _curr_common_wet = 1.0f; _target_input_gain = 1.0f; _curr_input_gain = 1.0f; _common_input_peak = 0.0f; _common_output_peak = 0.0f; _auto_disable_latency = true; _jack_timebase_master = false; _loading = false; _use_temp_input = true; // all the time for now _ignore_quit = false; _selected_loop = -1; // all _output_midi_clock = false; _smart_eighths = true; _force_next_clock_start = false; _force_discrete = false; _sel_loop_changed = false; _timebase_changed = false; _running_frames = 0; _last_tempo_frame = 0; _tempo_changed = false; _beat_occurred = false; _conns_changed = false; _beatstamp = 0.0; _prev_beatstamp = 0.0; _loop_manage_to_rt_queue = 0; _loop_manage_to_main_queue = 0; _solo_down_stamp = 1 << 31; _use_sync_start = false; _use_sync_stop = false; _send_midi_start_on_trigger = false; _send_midi_start_after_next_hit = false; _load_sess_event = NULL; // for now just use the current time! _unique_id = (int) ::time(NULL); _transport_always_rolls = false; // this only applies for the AU plugin right now pthread_cond_init (&_event_cond, NULL); reset_avg_tempo(); } bool Engine::initialize(AudioDriver * driver, int buschans, int port, string pingurl) { char tmpstr[100]; port_id_t tmpport; _driver = driver; _driver->set_engine(this); if (!_driver->initialize()) { cerr << "cannot connect to audio driver" << endl; return false; } _buffersize = _driver->get_buffersize(); _common_input_buffers.clear(); _common_outputs.clear(); _common_inputs.clear(); // create common io ports for (int i=0; i < buschans; ++i) { snprintf(tmpstr, sizeof(tmpstr), "common_in_%d", i+1); if (_driver->create_input_port (tmpstr, tmpport)) { _common_inputs.push_back (tmpport); } // create temp input buffer sample_t * inbuf = new float[driver->get_buffersize()]; memset(inbuf, 0, sizeof(float) * driver->get_buffersize()); _temp_input_buffers.push_back(inbuf); _common_input_buffers.push_back(0); // fill to correct size snprintf(tmpstr, sizeof(tmpstr), "common_out_%d", i+1); if (_driver->create_output_port (tmpstr, tmpport)) { _common_outputs.push_back (tmpport); } // create temp output buffer sample_t * outbuf = new float[driver->get_buffersize()]; memset(outbuf, 0, sizeof(float) * driver->get_buffersize()); _temp_output_buffers.push_back(outbuf); _common_output_buffers.push_back(0); // fill to correct size } _event_generator = new EventGenerator(_driver->get_samplerate()); _event_queue = new RingBuffer (MAX_EVENTS); _midi_event_queue = new RingBuffer (MAX_EVENTS); _sync_queue = new RingBuffer (MAX_SYNC_EVENTS); _nonrt_update_event_queue = new RingBuffer (MAX_SYNC_EVENTS); _nonrt_event_queue = new RingBuffer (MAX_EVENTS); _loop_manage_to_rt_queue = new RingBuffer (16); _loop_manage_to_main_queue = new RingBuffer (16); // reserve space in instance vectors to try to be RT safe _instances.reserve(128); _rt_instances.reserve(128); _internal_sync_buf = new float[driver->get_buffersize()]; memset(_internal_sync_buf, 0, sizeof(float) * driver->get_buffersize()); _falloff_per_sample = 30.0f / driver->get_samplerate(); // 30db per second falloff _longpress_frames = (nframes_t) lrint (driver->get_samplerate() * 1.0); calculate_tempo_frames(); _osc = new ControlOSC(this, port); if (!_osc->is_ok()) { return false; } _driver->ConnectionsChanged.connect(mem_fun(*this, &Engine::connections_changed)); _ok = true; return true; } void Engine::cleanup() { if (_osc) { delete _osc; _osc = 0; } if (_event_queue) { delete _event_queue; _event_queue = 0; } if (_midi_event_queue) { delete _midi_event_queue; _midi_event_queue = 0; } if (_sync_queue) { delete _sync_queue; _sync_queue = 0; } if (_nonrt_event_queue) { delete _nonrt_event_queue; _nonrt_event_queue = 0; } if (_nonrt_update_event_queue) { delete _nonrt_update_event_queue; _nonrt_update_event_queue = 0; } if (_event_generator) { delete _event_generator; _event_generator = 0; } if (_internal_sync_buf) { delete [] _internal_sync_buf; _internal_sync_buf = 0; } if (_loop_manage_to_rt_queue) { delete _loop_manage_to_rt_queue; _loop_manage_to_rt_queue = 0; } if (_loop_manage_to_main_queue) { delete _loop_manage_to_main_queue; _loop_manage_to_main_queue = 0; } // delete temp common input buffers for (vector::iterator iter = _temp_input_buffers.begin(); iter != _temp_input_buffers.end(); ++iter) { sample_t * inbuf = *iter; if (inbuf) { delete [] inbuf; } } _temp_input_buffers.clear(); // delete temp common input buffers for (vector::iterator iter = _temp_output_buffers.begin(); iter != _temp_output_buffers.end(); ++iter) { sample_t * inbuf = *iter; if (inbuf) { delete [] inbuf; } } _temp_output_buffers.clear(); // safe to do this, we assume all RT activity has stopped here for (Instances::iterator iter = _instances.begin(); iter != _instances.end(); ++iter) { delete *iter; } _instances.clear(); _rt_instances.clear(); _driver = 0; _ok = false; } Engine::~Engine () { if (_driver) { cleanup (); } } void Engine::set_midi_bridge (MidiBridge * bridge) { _midi_bridge = bridge; if (_midi_bridge) { _midi_bridge->BindingLearned.connect(mem_fun(*this, &Engine::binding_learned)); _midi_bridge->NextMidiReceived.connect(mem_fun(*this, &Engine::next_midi_received)); _midi_bridge->MidiCommandEvent.connect (mem_fun(*this, &Engine::push_midi_command_event)); _midi_bridge->MidiControlEvent.connect (mem_fun(*this, &Engine::push_midi_control_event)); _midi_bridge->MidiSyncEvent.connect (mem_fun(*this, &Engine::push_sync_event)); ParamChanged.connect(bind (mem_fun(*_midi_bridge, &MidiBridge::parameter_changed), this)); _midi_bridge->set_output_midi_clock(_output_midi_clock); } } void Engine::quit(bool force) { if (!force && _ignore_quit) { return; } _ok = false; LockMonitor mon(_event_loop_lock, __LINE__, __FILE__); pthread_cond_signal (&_event_cond); } bool Engine::get_common_input (unsigned int chan, port_id_t & port) { if (chan < _common_inputs.size()) { port = _common_inputs[chan]; return true; } return false; } bool Engine::get_common_output (unsigned int chan, port_id_t & port) { if (chan < _common_outputs.size()) { port = _common_outputs[chan]; return true; } return false; } sample_t * Engine::get_common_input_buffer (unsigned int chan) { if (chan < _common_inputs.size()) { if (_use_temp_input) { return _temp_input_buffers[chan]; } else { // assumed this is in process cycle and already cached return _common_input_buffers[chan]; } } return 0; } sample_t * Engine::get_common_output_buffer (unsigned int chan) { if (chan < _common_outputs.size()) { if (_use_temp_input) { return _temp_output_buffers[chan]; } else { // assumed this is in process cycle and already cached return _common_output_buffers[chan]; } //return _driver->get_output_port_buffer (_common_outputs[chan], _buffersize); } return 0; } void Engine::buffersize_changed (nframes_t nframes) { if (_buffersize != nframes) { // called from the audio thread callback size_t m = 0; for (Instances::iterator i = _rt_instances.begin(); i != _rt_instances.end(); ++i, ++m) { (*i)->set_buffer_size(nframes); } // resize temp inbuf and sync buf for (int n=0; n < 2; ++n) { delete [] _temp_input_buffers[n]; delete [] _temp_output_buffers[n]; // create temp input buffer sample_t * inbuf = new float[nframes]; memset(inbuf, 0, sizeof(float) * nframes); _temp_input_buffers[n] = inbuf; // temp output sample_t * outbuf = new float[nframes]; memset(outbuf, 0, sizeof(float) * nframes); _temp_output_buffers[n] = outbuf; } delete [] _internal_sync_buf; _internal_sync_buf = new float[nframes]; memset(_internal_sync_buf, 0, sizeof(float) * nframes); _buffersize = nframes; } } void Engine::connections_changed() { // called from the audio thread callback size_t m = 0; for (Instances::iterator i = _rt_instances.begin(); i != _rt_instances.end(); ++i, ++m) { (*i)->recompute_latencies (); } // cause certain values to be updated _conns_changed = true; } void Engine::fill_common_outs(nframes_t nframes) { sample_t * outbuf, * real_outbuf; sample_t * inbuf; float dry_delta = flush_to_zero(_target_common_dry - _curr_common_dry) / max((nframes_t) 1, (nframes - 1)); float wet_delta = flush_to_zero(_target_common_wet - _curr_common_wet) / max((nframes_t) 1, (nframes - 1)); float currdry = 1.0f, currwet = 1.0f; float inpeak = _common_input_peak; float outpeak = _common_output_peak; // do fixed peak meter falloff inpeak = flush_to_zero (f_clamp (DB_CO (CO_DB(inpeak) - nframes * _falloff_per_sample), 0.0f, 20.0f)); outpeak = flush_to_zero (f_clamp (DB_CO (CO_DB(outpeak) - nframes * _falloff_per_sample), 0.0f, 20.0f)); // assume ins and out count the same for (size_t i=0; i < _common_outputs.size(); ++i) { currdry = _curr_common_dry; currwet = _curr_common_wet; inbuf = _common_input_buffers[i]; // use true common input (not gain attenuated) real_outbuf = _common_output_buffers[i]; if (_use_temp_input) { outbuf = _temp_output_buffers[i]; // use temp outputs } else { outbuf = _common_output_buffers[i]; } //_driver->get_output_port_buffer (_common_outputs[i], _driver->get_buffersize()); for (nframes_t n = 0; n < nframes; ++n) { currdry += dry_delta; currwet += wet_delta; inpeak = f_max (inpeak, fabsf(inbuf[n])); real_outbuf[n] = flush_to_zero ((outbuf[n] * currwet) + (inbuf[n] * currdry)); // outpeak is taken post dry/wet mix for true output metering outpeak = f_max (outpeak, fabsf(real_outbuf[n])); } } _curr_common_dry = flush_to_zero (currdry); _curr_common_wet = flush_to_zero (currwet); if (dry_delta <= 0.00003f) { _curr_common_dry = _target_common_dry; } if (wet_delta <= 0.00003f) { _curr_common_wet = _target_common_wet; } _common_output_peak = outpeak; _common_input_peak = inpeak; } void Engine::prepare_buffers(nframes_t nframes) { sample_t * outbuf, *inbuf; float ing_delta = flush_to_zero(_target_input_gain - _curr_input_gain) / max((nframes_t) 1, (nframes - 1)); float curr_ing = _curr_input_gain; for (size_t i=0; i < _common_outputs.size(); ++i) { sample_t * real_inbuf = _driver->get_input_port_buffer (_common_inputs[i], _driver->get_buffersize()); outbuf = _driver->get_output_port_buffer (_common_outputs[i], _driver->get_buffersize()); //if (real_inbuf != outbuf) { // memset (outbuf, 0, nframes * sizeof(sample_t)); //} memset (_temp_output_buffers[i], 0, nframes * sizeof(sample_t)); // attenuate common inputs _common_output_buffers[i] = outbuf; _common_input_buffers[i] = real_inbuf; // for use later in the process cycle inbuf = _temp_input_buffers[i]; curr_ing = _curr_input_gain; for (nframes_t n = 0; n < nframes; ++n) { curr_ing += ing_delta; inbuf[n] = real_inbuf[n] * curr_ing; } } _curr_input_gain = flush_to_zero (curr_ing); if (ing_delta <= 0.00003f) { // force to == target _curr_input_gain = _target_input_gain; } } bool Engine::add_loop (unsigned int chans, float loopsecs, bool discrete) { int n; n = _instances.size(); Looper * instance; instance = new Looper (_driver, (unsigned int) n, chans, loopsecs, discrete || _force_discrete); if (!(*instance)()) { cerr << "can't create a new loop!\n"; delete instance; return false; } // set some initial controls float quantize_value = QUANT_OFF; float round_value = 0.0f; float relative_sync = 0.0f; float mutequant = 0.0f; float odubquant = 0.0f; bool replquant = false; if (!_instances.empty()) { quantize_value = _instances[0]->get_control_value (Event::Quantize); round_value = _instances[0]->get_control_value (Event::Round); relative_sync = _instances[0]->get_control_value (Event::RelativeSync); mutequant =_instances[0]->get_control_value (Event::MuteQuantized); odubquant =_instances[0]->get_control_value (Event::OverdubQuantized); replquant =_instances[0]->get_control_value (Event::ReplaceQuantized) > 0.0; } instance->set_port (Quantize, quantize_value); instance->set_port (Round, round_value); instance->set_port (RelativeSync, relative_sync); instance->set_port (MuteQuantized, mutequant); instance->set_port (OverdubQuantized, odubquant); instance->set_replace_quantized(replquant); return add_loop (instance); } bool Engine::add_loop (Looper * instance) { _instances.push_back (instance); bool val = _auto_disable_latency && _target_common_dry > 0.0f; instance->set_disable_latency_compensation (val); instance->set_port (EighthPerCycleLoop, _eighth_cycle); instance->set_port (TempoInput, _tempo); update_sync_source(); LoopAdded (instance->get_index(), !_loading); // emit // now we push the added loop to the RT thread LoopManageEvent lmev(LoopManageEvent::AddLoop, instance); push_loop_manage_to_rt (lmev); return true; } bool Engine::remove_loop (Looper * looper) { if (_instances.back() == looper) { _instances.pop_back(); } else { // less efficient Instances::iterator iter = find (_instances.begin(), _instances.end(), looper); if (iter != _instances.end()) { _instances.erase(iter); } } delete looper; LoopRemoved(); // emit update_sync_source(); if (_selected_loop >= (int) _instances.size()) { _selected_loop = 0; } return true; } size_t Engine::get_loop_channel_count (size_t instance, bool realtime) { if (realtime) { if (instance < _rt_instances.size()) return _rt_instances[instance]->get_channel_count(); } else { if (instance < _instances.size()) return _instances[instance]->get_channel_count(); } return 0; } std::string Engine::get_osc_url (bool udp) { if (_osc && _osc->is_ok()) { if (udp) { return _osc->get_server_url(); } else { return _osc->get_unix_server_url(); } } return ""; } int Engine::get_osc_port () { if (_osc && _osc->is_ok()) { return _osc->get_server_port(); } return 0; } static inline Event * next_rt_event (RingBuffer::rw_vector & vec, size_t & pos, RingBuffer::rw_vector & midivec, size_t & midipos) { Event * e1 = 0; Event * e2 = 0; if (pos < vec.len[0]) { e1 = &vec.buf[0][pos]; } else if (pos < (vec.len[0] + vec.len[1])) { e1 = &vec.buf[1][pos - vec.len[0]]; } if (midipos < midivec.len[0]) { e2 = &midivec.buf[0][midipos]; } else if (midipos < (midivec.len[0] + midivec.len[1])) { e2 = &midivec.buf[1][midipos - midivec.len[0]]; } // pick the earliest fragpos if (e1 && e2) { if (e1->FragmentPos() < e2->FragmentPos()) { ++pos; return e1; } else { ++midipos; return e2; } } else if (e1) { ++pos; return e1; } else if (e2) { ++midipos; return e2; } return 0; } void Engine::process_rt_loop_manage_events () { // pull off all loop management events from the main thread LoopManageEvent * lmevt; while (is_ok() && _loop_manage_to_rt_queue->read_space() > 0) { RingBuffer::rw_vector vec; _loop_manage_to_rt_queue->get_read_vector(&vec); lmevt = vec.buf[0]; // we must remove/add this loop from our copy of the vector if (lmevt->etype == LoopManageEvent::RemoveLoop) { if (_rt_instances.back() == lmevt->looper) { _rt_instances.pop_back(); } else { // less efficient Instances::iterator iter = find (_rt_instances.begin(), _rt_instances.end(), lmevt->looper); if (iter != _rt_instances.end()) { _rt_instances.erase(iter); } } // signal mainloop it is safe to delete push_loop_manage_to_main (*lmevt); } else if (lmevt->etype == LoopManageEvent::AddLoop) { _rt_instances.push_back (lmevt->looper); lmevt->looper->recompute_latencies(); } else if (lmevt->etype == LoopManageEvent::LoadSession) { _rt_instances.clear(); // signal main loop push_loop_manage_to_main (*lmevt); } _loop_manage_to_rt_queue->increment_read_ptr(1); } } int Engine::process (nframes_t nframes) { //TentativeLockMonitor lm (_instance_lock, __LINE__, __FILE__); //if (!lm.locked()) { // return 0; //} // process events //cerr << "process" << endl; Event * evt; RingBuffer::rw_vector vec; RingBuffer::rw_vector midivec; // get available events _event_queue->get_read_vector (&vec); _midi_event_queue->get_read_vector (&midivec); // update event generator _event_generator->updateFragmentTime (nframes); // process loop instance rt events process_rt_loop_manage_events(); // update internal sync calculate_tempo_frames (); generate_sync (0, nframes); // clear common output buffers prepare_buffers (nframes); nframes_t usedframes = 0; nframes_t doframes; size_t num = vec.len[0] + midivec.len[0]; size_t n = 0; size_t midi_n = 0; int fragpos; int m, syncm; if (num > 0) { evt = next_rt_event (vec, n, midivec, midi_n); while (evt) { fragpos = (nframes_t) evt->FragmentPos(); if (fragpos < (int) usedframes || fragpos >= (int) nframes) { // bad fragment pos #ifdef DEBUG cerr << "BAD FRAGMENT POS: " << fragpos << endl; #endif // do immediately fragpos = usedframes; } doframes = fragpos - usedframes; // handle special global RT events if (evt->Instance == -2 || evt->Command == Event::SOLO || evt->Command == Event::SOLO_NEXT || evt->Command == Event::SOLO_PREV || evt->Command == Event::RECORD_SOLO_NEXT || evt->Command == Event::RECORD_SOLO_PREV || evt->Command == Event::RECORD_SOLO || evt->Command == Event::RECORD_EXCLUSIVE_NEXT || evt->Command == Event::RECORD_EXCLUSIVE_PREV || evt->Command == Event::RECORD_EXCLUSIVE || evt->Command == Event::RECORD_OR_OVERDUB_SOLO || evt->Command == Event::RECORD_OR_OVERDUB_SOLO_TRIG || evt->Command == Event::RECORD_OVERDUB_END_SOLO || evt->Command == Event::RECORD_OVERDUB_END_SOLO_TRIG || evt->Command == Event::RECORD_OR_OVERDUB_EXCL_NEXT || evt->Command == Event::RECORD_OR_OVERDUB_EXCL_PREV || evt->Command == Event::RECORD_OR_OVERDUB_EXCL || evt->Command == Event::RECORD_OR_OVERDUB_SOLO_NEXT || evt->Command == Event::RECORD_OR_OVERDUB_SOLO_PREV ) { do_global_rt_event (evt, usedframes + doframes, nframes - (usedframes + doframes)); // force the position and do frames to non-zero for these to ensure synced records if (doframes == 0) { doframes = 1; } } m = 0; syncm = -1; if ((int)_sync_source > 0 && (int)_sync_source <= (int)_rt_instances.size()) { // we need to run the sync source loop first syncm = (int) _sync_source - 1; _rt_instances[syncm]->run (usedframes, doframes); if (evt->Instance == -1 || evt->Instance == syncm || (evt->Instance == -3 && (_selected_loop == syncm || _selected_loop == -1))) { _rt_instances[syncm]->do_event (evt); // if event command is trigger and send_midi_start_on_trigger is enabled, do so if (evt->Command == Event::TRIGGER && (evt->Type == Event::type_cmd_down || evt->Type == Event::type_cmd_hit)) { //cerr << "YES, send now" << endl; if (_midi_bridge) { _beatstamp = _midi_bridge->get_current_host_time(); _midi_bridge->tempo_clock_update(_tempo, _beatstamp, _send_midi_start_on_trigger); } //_send_midi_start_after_next_hit = true; } } } for (Instances::iterator i = _rt_instances.begin(); i != _rt_instances.end(); ++i, ++m) { if (syncm == m) continue; // skip if we already ran it // run for the time before this event (*i)->run (usedframes, doframes); // process event if (evt->Instance == -1 || evt->Instance == m || (evt->Instance == -3 && (_selected_loop == m || _selected_loop == -1))) { (*i)->do_event (evt); } } usedframes += doframes; // event is committed, if it is a control event, push it onto the nonrt update queue if (evt->Type == Event::type_control_change || evt->Type == Event::type_global_control_change) { do_push_control_event (_nonrt_update_event_queue, evt->Type, evt->Control, evt->Value, evt->Instance, evt->source); } evt = next_rt_event (vec, n, midivec, midi_n); } // advance events _event_queue->increment_read_ptr (vec.len[0] + vec.len[1]); _midi_event_queue->increment_read_ptr (midivec.len[0] + midivec.len[1]); m = 0; syncm = -1; if ((int)_sync_source > 0 && (int)_sync_source <= (int) _rt_instances.size()) { // we need to run the sync source loop first syncm = (int) _sync_source - 1; _rt_instances[syncm]->run (usedframes, nframes - usedframes); } // run the rest of the frames for (Instances::iterator i = _rt_instances.begin(); i != _rt_instances.end(); ++i ,++m) { if (syncm == m) continue; (*i)->run (usedframes, nframes - usedframes); } } else { // no events int m = 0; int syncm = -1; if ((int)_sync_source > 0 && (int) _sync_source <= (int)_rt_instances.size()) { // we need to run the sync source loop first syncm = (int) _sync_source - 1; _rt_instances[syncm]->run (0, nframes); } for (Instances::iterator i = _rt_instances.begin(); i != _rt_instances.end(); ++i, ++m) { if (syncm == m) continue; (*i)->run (0, nframes); } } // scales output and mixes common dry fill_common_outs (nframes); _running_frames += nframes; return 0; } void Engine::do_global_rt_event (Event * ev, nframes_t offset, nframes_t nframes) { bool exclcmd = ( ev->Command == Event::RECORD_EXCLUSIVE_NEXT || ev->Command == Event::RECORD_EXCLUSIVE_PREV || ev->Command == Event::RECORD_EXCLUSIVE); bool exclocmd = ( ev->Command == Event::RECORD_OR_OVERDUB_EXCL_NEXT || ev->Command == Event::RECORD_OR_OVERDUB_EXCL_PREV || ev->Command == Event::RECORD_OR_OVERDUB_EXCL); bool recOverSoloNext = ( ev->Command == Event::RECORD_OR_OVERDUB_SOLO_NEXT || ev->Command == Event::RECORD_OR_OVERDUB_SOLO_PREV); bool recOverSolo = ( ev->Command == Event::RECORD_OR_OVERDUB_SOLO || ev->Command == Event::RECORD_OR_OVERDUB_SOLO_TRIG || ev->Command == Event::RECORD_OVERDUB_END_SOLO || ev->Command == Event::RECORD_OVERDUB_END_SOLO_TRIG || recOverSoloNext); if (ev->Control == Event::TapTempo) { nframes_t thisframe = _running_frames + offset; if (thisframe > _last_tempo_frame) { double ntempo = ((double) _driver->get_samplerate() / (double)(thisframe - _last_tempo_frame)) * 60.0f; //cerr << "TAP: new tempo: " << _tempo << " off: " << offset << endl; ntempo = avg_tempo(ntempo); set_tempo(ntempo, true); calculate_tempo_frames (); if (_sync_source == InternalTempoSync) { generate_sync (offset, nframes); } _tempo_changed = true; // wake up mainloop safely //TentativeLockMonitor mon(_event_loop_lock, __LINE__, __FILE__); //if (mon.locked()) { pthread_cond_signal (&_event_cond); //} } _last_tempo_frame = thisframe; } else if (ev->Control == Event::DryLevel) { if (ev->Value != _target_common_dry) { // if > 0 and auto_disable_latency is enabled, disable compensation for each loop // otherwise, enable compensation if ((_target_common_dry == 0.0f) || (ev->Value == 0.0f)) { bool val = _auto_disable_latency && ev->Value > 0.0f; for (Instances::iterator i = _rt_instances.begin(); i != _rt_instances.end(); ++i) { (*i)->set_disable_latency_compensation (val); } _conns_changed = true; } _target_common_dry = ev->Value; } } else if (ev->Command == Event::SOLO || ev->Command == Event::SOLO_NEXT || ev->Command == Event::SOLO_PREV || ev->Command == Event::RECORD_SOLO_NEXT || ev->Command == Event::RECORD_SOLO_PREV || ev->Command == Event::RECORD_SOLO || recOverSolo || exclcmd || exclocmd) { // notify all loops they are being soloed or not (this acts as a toggle) int target_instance = (ev->Instance == -3) ? _selected_loop : ev->Instance; if (ev->Type == Event::type_cmd_down || ev->Type == Event::type_cmd_hit || ev->Type == Event::type_cmd_upforce || (ev->Type == Event::type_cmd_up && _running_frames > (_solo_down_stamp + _longpress_frames))) { if (ev->Command == Event::SOLO_NEXT || ev->Command == Event::RECORD_SOLO_NEXT || ev->Command == Event::RECORD_EXCLUSIVE_NEXT || ev->Command == Event::RECORD_OR_OVERDUB_EXCL_NEXT || ev->Command == Event::RECORD_OR_OVERDUB_SOLO_NEXT) { // increment selected _selected_loop = (_selected_loop + 1) % _rt_instances.size(); _sel_loop_changed = true; target_instance = _selected_loop; } else if (ev->Command == Event::SOLO_PREV || ev->Command == Event::RECORD_SOLO_PREV || ev->Command == Event::RECORD_EXCLUSIVE_PREV || ev->Command == Event::RECORD_OR_OVERDUB_EXCL_PREV || ev->Command == Event::RECORD_OR_OVERDUB_SOLO_PREV) { // decrement selected _selected_loop = _selected_loop > 0 ? _selected_loop - 1 : _rt_instances.size() - 1; _sel_loop_changed = true; target_instance = _selected_loop; } else if ( ev->Command == Event::RECORD_EXCLUSIVE || ev->Command == Event::RECORD_OR_OVERDUB_EXCL || recOverSolo) { // select the loop commanded in these cases _selected_loop = target_instance; _sel_loop_changed = true; } } bool target_was_muted = false; if (target_instance >= 0 && target_instance < (int) _rt_instances.size()) { target_was_muted = _rt_instances[target_instance]->is_muted() && _rt_instances[target_instance]->has_loop(); if (ev->Type == Event::type_cmd_down || ev->Type == Event::type_cmd_hit || ev->Type == Event::type_cmd_upforce || (ev->Type == Event::type_cmd_up && _running_frames > (_solo_down_stamp + _longpress_frames))) { if (exclcmd || exclocmd) { int n=0; for (Instances::iterator i = _rt_instances.begin(); i != _rt_instances.end(); ++i, ++n) { if (n != target_instance) { // if it is in any active state, finish that state (*i)->finish_state(); } } } else { // solo commands bool target_solo_state = _rt_instances[target_instance]->is_soloed(); bool retrigger = (ev->Command == Event::RECORD_OR_OVERDUB_SOLO_TRIG || ev->Command == Event::RECORD_OVERDUB_END_SOLO_TRIG); for (Instances::iterator i = _rt_instances.begin(); i != _rt_instances.end(); ++i) { if (recOverSolo) { // for this command we always want it to force solo on (*i)->set_soloed (target_instance, true, retrigger); } else { (*i)->set_soloed (target_instance, !target_solo_state); } } } if (ev->Type == Event::type_cmd_down) { _solo_down_stamp = _running_frames; } else { _solo_down_stamp = 1 << 31; } } } if (ev->Command == Event::RECORD_SOLO_NEXT || ev->Command == Event::RECORD_SOLO_PREV || ev->Command == Event::RECORD_SOLO || exclcmd) { // change the instance to the target we soloed, and the command to record ev->Instance = target_instance; ev->Command = Event::RECORD; } else if (exclocmd || (recOverSolo && (!target_was_muted || recOverSoloNext))) { // change the instance to the target we soloed, and the command to record ev->Instance = target_instance; if ((ev->Command == Event::RECORD_OVERDUB_END_SOLO || ev->Command == Event::RECORD_OVERDUB_END_SOLO_TRIG)) { ev->Command = Event::RECORD_OVERDUB_END_SOLO; } else { ev->Command = Event::RECORD_OR_OVERDUB; } // cerr << "record or overdub exclusive: muted " << target_was_muted << endl; } else { // change the event's instance so it isn't used later in the process call ev->Instance = -100; } } else if (ev->Control == Event::WetLevel) { _target_common_wet = ev->Value; } else if (ev->Control == Event::InputGain) { _target_input_gain = ev->Value; } else if (ev->Control == Event::AutoDisableLatency) { _auto_disable_latency = ev->Value; bool val = _auto_disable_latency && _target_common_dry > 0.0f; for (Instances::iterator i = _rt_instances.begin(); i != _rt_instances.end(); ++i) { (*i)->set_disable_latency_compensation (val); } _conns_changed = true; } else if (ev->Control == Event::OutputMidiClock) { _output_midi_clock = ev->Value; if (_midi_bridge) { _midi_bridge->set_output_midi_clock(_output_midi_clock); } } else if (ev->Control == Event::UseMidiStart) { _use_sync_start = ev->Value; } else if (ev->Control == Event::UseMidiStop) { _use_sync_stop = ev->Value; } else if (ev->Control == Event::SendMidiStartOnTrigger) { _send_midi_start_on_trigger = ev->Value; } else if (ev->Control == Event::SmartEighths) { _smart_eighths = ev->Value; } else if (ev->Control == Event::SelectedLoopNum) { _selected_loop = (int) ev->Value; _sel_loop_changed = true; } else if (ev->Control == Event::SelectAllLoops) { _selected_loop = (int) -1; _sel_loop_changed = true; } else if (ev->Control == Event::SelectPrevLoop) { _selected_loop = _selected_loop > 0 ? _selected_loop - 1 : _rt_instances.size() - 1; _sel_loop_changed = true; } else if (ev->Control == Event::SelectNextLoop) { _selected_loop = (_selected_loop + 1) % _rt_instances.size(); _sel_loop_changed = true; } else if (ev->Control == Event::SyncTo) { if ((int) ev->Value > (int) FIRST_SYNC_SOURCE && ev->Value <= _rt_instances.size()) { _sync_source = (SyncSourceType) (int) roundf(ev->Value); update_sync_source(); } } else if (ev->Control == Event::Tempo) { if (ev->Value > 0.0f) { set_tempo((double) ev->Value, false); } } else if (ev->Control == Event::EighthPerCycle) { if (ev->Value > 0.0f) { _eighth_cycle = ev->Value; // update all loops for (unsigned int n=0; n < _rt_instances.size(); ++n) { _rt_instances[n]->set_port(EighthPerCycleLoop, _eighth_cycle); } if (_jack_timebase_master) { TransportInfo tinfo; tinfo.bpm = _tempo; tinfo.beats_per_bar = _eighth_cycle / 2; // arbitrary tinfo.beat_type = 4.0; _driver->set_transport_info(tinfo); } } calculate_midi_tick(true); } else if (ev->Control == Event::JackTimebaseMaster) { bool flag = ev->Value > 0.0f; _jack_timebase_master = flag; _timebase_changed = true; // apparently can only call the jack_timebase master from main thread } } bool Engine::push_loop_manage_to_rt (LoopManageEvent & lme) { if (_loop_manage_to_rt_queue->write (&lme, 1) != 1) { #ifdef DEBUG cerr << "event loopmanage_to_main full, dropping event" << endl; #endif return false; } return true; } bool Engine::push_loop_manage_to_main (LoopManageEvent & lme) { if (_loop_manage_to_main_queue->write (&lme, 1) != 1) { #ifdef DEBUG cerr << "event loopmanage_to_main full, dropping event" << endl; #endif return false; } return true; } bool Engine::push_command_event (Event::type_t type, Event::command_t cmd, int8_t instance) { bool ret = do_push_command_event (_event_queue, type, cmd, instance); // this is a known race condition, if the osc thread is changing controls // simultaneously. it's just an update :) // do_push_command_event (_nonrt_update_event_queue, type, cmd,instance); // wakeup nonrt loop... this lock should really not block... but still // TentativeLockMonitor mon(_event_loop_lock, __LINE__, __FILE__); // pthread_cond_signal (&_event_cond); return ret; } void Engine::push_midi_command_event (Event::type_t type, Event::command_t cmd, int8_t instance, long framepos) { do_push_command_event (_midi_event_queue, type, cmd, instance, framepos); // this is a known race condition, if the osc thread is changing controls // simultaneously. it's just an update :) // do_push_command_event (_nonrt_update_event_queue, type, cmd,instance); // wakeup nonrt loop... this lock should really not block... but still // TentativeLockMonitor mon(_event_loop_lock, __LINE__, __FILE__); // pthread_cond_signal (&_event_cond); } bool Engine::do_push_command_event (RingBuffer * evqueue, Event::type_t type, Event::command_t cmd, int8_t instance, long framepos) { // todo support more than one simulataneous pusher safely RingBuffer::rw_vector vec; evqueue->get_write_vector (&vec); if (vec.len[0] == 0) { #ifdef DEBUG cerr << "cmd event queue full, dropping event" << endl; #endif return false; } Event * evt = vec.buf[0]; *evt = get_event_generator().createEvent(framepos); evt->Type = type; evt->Command = cmd; evt->Instance = instance; evqueue->increment_write_ptr (1); return true; } bool Engine::do_push_control_event (RingBuffer * evqueue, Event::type_t type, Event::control_t ctrl, float val, int8_t instance, long framepos, int src) { // todo support more than one simulataneous pusher safely RingBuffer::rw_vector vec; evqueue->get_write_vector (&vec); if (vec.len[0] == 0) { #ifdef DEBUG cerr << "ctrl event queue full, dropping event" << endl; #endif return false; } Event * evt = vec.buf[0]; *evt = get_event_generator().createEvent(framepos); evt->Type = type; evt->Control = ctrl; evt->Value = val; evt->Instance = instance; evt->source = src; evqueue->increment_write_ptr (1); return true; } void Engine::push_control_event (Event::type_t type, Event::control_t ctrl, float val, int8_t instance, int src) { do_push_control_event (_event_queue, type, ctrl, val, instance); // the nonrt update queue is now pushed on the realtime thread // this is a known race condition, if the midi thread is changing controls // simultaneously. it's just an update :) //do_push_control_event (_nonrt_update_event_queue, type, ctrl, val, instance, src); // wakeup nonrt loop... this lock should really not block... but still TentativeLockMonitor mon(_event_loop_lock, __LINE__, __FILE__); pthread_cond_signal (&_event_cond); } void Engine::push_midi_control_event (Event::type_t type, Event::control_t ctrl, float val, int8_t instance, long framepos) { do_push_control_event (_midi_event_queue, type, ctrl, val, instance, framepos); // the nonrt update queue is now pushed on the realtime thread // this is a known race condition, if the osc thread is changing controls // simultaneously. it's just an update :) //do_push_control_event (_nonrt_update_event_queue, type, ctrl, val, instance); // wakeup nonrt loop... this lock should really not block... but still TentativeLockMonitor mon(_event_loop_lock, __LINE__, __FILE__); pthread_cond_signal (&_event_cond); } void Engine::push_sync_event (Event::control_t ctrl, long framepos, MIDI::timestamp_t timestamp) { // todo support more than one simulataneous pusher safely if (_sync_source != MidiClockSync && (!_use_sync_stop || ctrl != Event::MidiStop) && (!_use_sync_start || ctrl != Event::MidiStart)) { return; } RingBuffer::rw_vector vec; _sync_queue->get_write_vector (&vec); if (vec.len[0] == 0) { #ifdef DEBUG cerr << "sync event queue full, dropping event" << endl; #endif return; } Event * evt = vec.buf[0]; if (timestamp == 0) { //fprintf(stderr, "creating sync event at frame %ld\n", framepos); *evt = get_event_generator().createEvent(framepos); } else { //fprintf(stderr, "creating sync event at time %.14g\n", timestamp); *evt = get_event_generator().createTimestampedEvent(timestamp); } evt->Type = Event::type_sync; evt->Control = ctrl; _sync_queue->increment_write_ptr (1); return; } //load functions are here rather than in midi_bindings.cpp for easy access to instance values //to initialize the toggle values. bool Engine::load_midi_bindings (string filename, bool append, CommandMap & cmdmap) { //FILE * bindfile = 0; std::ifstream bindfile; bindfile.open(filename.c_str(), ios::in); if (!bindfile.is_open()) { cerr << "sooperlooper warning: could not open for reading: " << filename << endl; return false; } // todo: look for is in systemwide and ~/.sooperlooper/bindings/ return load_midi_bindings (bindfile, append, cmdmap); } bool Engine::load_midi_bindings (std::istream & instream, bool append, CommandMap & cmdmap) { char line[200]; if (!_midi_bridge) { return false; } if (!append) { _midi_bridge->bindings().clear_bindings(); } while ( ! instream.eof()) //while (fgets (line, sizeof(line), bindfile) != NULL) { instream.getline (line, sizeof(line)); // ignore empty lines and # lines if (line[0] == '\n' || line[0] == '#' || line[0] == '\0') { continue; } MidiBindInfo info; if (!info.unserialize(line)) { continue; } //initialize value for toggle with current value if (info.style == MidiBindInfo::ToggleStyle) info.last_toggle_val = get_control_value(cmdmap.to_control_t(info.control), info.instance); _midi_bridge->bindings().add_binding (info); } return true; } float Engine::get_control_value (Event::control_t ctrl, int8_t instance) { // not really anymore, this is only called from the nonrt work thread // that does the allocating of instances if (instance == -3) { instance = _selected_loop; } if (instance == -1) { // just use the first instance = 0; } if (instance >= 0 && instance < (int) _instances.size()) { return _instances[instance]->get_control_value (ctrl); } else if (instance == -2) { if (ctrl == Event::InPeakMeter) { return _common_input_peak; } else if (ctrl == Event::OutPeakMeter) { return _common_output_peak; } else if (ctrl == Event::DryLevel) { return _curr_common_dry; } else if (ctrl == Event::WetLevel) { return _curr_common_wet; } else if (ctrl == Event::InputGain) { return _curr_input_gain; } else if (ctrl == Event::Tempo) { return _tempo; } else if (ctrl == Event::SyncTo) { return _sync_source; } else if (ctrl == Event::EighthPerCycle) { return _eighth_cycle; } else if (ctrl == Event::SelectedLoopNum) { return _selected_loop; } else if (ctrl == Event::SmartEighths) { return _smart_eighths ? 1.0f: 0.0f; } else if (ctrl == Event::OutputMidiClock) { return _output_midi_clock ? 1.0f: 0.0f; } else if (ctrl == Event::UseMidiStart) { return _use_sync_start ? 1.0f: 0.0f; } else if (ctrl == Event::UseMidiStop) { return _use_sync_stop ? 1.0f: 0.0f; } else if (ctrl == Event::SendMidiStartOnTrigger) { return _send_midi_start_on_trigger ? 1.0f: 0.0f; } else if (ctrl == Event::AutoDisableLatency) { return _auto_disable_latency ? 1.0f: 0.0f; } else if (ctrl == Event::JackTimebaseMaster) { return _jack_timebase_master ? 1.0f: 0.0f; } } return 0.0f; } bool Engine::push_nonrt_event (EventNonRT * event) { if (_nonrt_event_queue->write_space() > 0) { _nonrt_event_queue->write(&event, 1); LockMonitor mon(_event_loop_lock, __LINE__, __FILE__); pthread_cond_signal (&_event_cond); return true; } else { //cerr << "UGH, couldn't push event, no writespace" << endl; return false; } } void Engine::binding_learned(MidiBindInfo info) { _learn_done = true; _learninfo = info; LockMonitor mon(_event_loop_lock, __LINE__, __FILE__); pthread_cond_signal (&_event_cond); } void Engine::next_midi_received(MidiBindInfo info) { _received_done = true; _learninfo = info; LockMonitor mon(_event_loop_lock, __LINE__, __FILE__); pthread_cond_signal (&_event_cond); } void Engine::mainloop() { struct timespec timeout; struct timeval now = {0, 0}; struct timeval timeoutv = {0, 0}; struct timeval auto_update_timer_v[AUTO_UPDATE_RANGE]; struct timeval timer_last[AUTO_UPDATE_RANGE]; int wait_ret = 0; EventNonRT * event; Event * evt; LoopManageEvent * lmevt; //initialize auto timeout arrays for (int i = 0; i < AUTO_UPDATE_RANGE; i++) { timer_last[i].tv_sec = 0; timer_last[i].tv_usec = 0; auto_update_timer_v[i].tv_sec = 0; auto_update_timer_v[i].tv_usec = ((AUTO_UPDATE_STEP*(i+1)))*1000; } // non-rt event processing loop while (is_ok()) { // pull off all loop management events from the rt thread while (is_ok() && _loop_manage_to_main_queue->read_space() > 0) { RingBuffer::rw_vector vec; _loop_manage_to_main_queue->get_read_vector(&vec); lmevt = vec.buf[0]; // we must finish the removal if (lmevt->etype == LoopManageEvent::RemoveLoop) { remove_loop (lmevt->looper); } else if (lmevt->etype == LoopManageEvent::LoadSession) { handle_load_session_event(); } _loop_manage_to_main_queue->increment_read_ptr(1); } // pull off all events from nonrt ringbuffer while (is_ok() && _nonrt_event_queue->read_space() > 0 && _nonrt_event_queue->read(&event, 1) == 1) { process_nonrt_event (event); delete event; } // now pull off special update events while (is_ok() && _nonrt_update_event_queue->read_space() > 0) { RingBuffer::rw_vector vec; _nonrt_update_event_queue->get_read_vector(&vec); evt = vec.buf[0]; if (evt->Control == Event::SaveLoop) { int instance = evt->Instance == -3 ? _selected_loop : evt->Instance; cerr << "got save: " << (int) instance << endl; // save with no filename will autogenerate a unique name for (unsigned int n=0; n < _instances.size(); ++n) { if (instance < 0 || instance == (int)n) { _instances[n]->save_loop (); } } } else if (evt->Type == Event::type_control_change) { int instance = evt->Instance == -3 ? _selected_loop : evt->Instance; ConfigUpdateEvent cuev (ConfigUpdateEvent::Send, instance, evt->Control, "", "", evt->Value); cuev.source = evt->source; _osc->finish_update_event (cuev); ParamChanged(evt->Control, instance); // emit } else if (evt->Type == Event::type_cmd_down || evt->Type == Event::type_cmd_hit) { cerr << "got nonrt- command: " << evt->Command << endl; int instance = evt->Instance == -3 ? _selected_loop : evt->Instance; ConfigUpdateEvent cuev (ConfigUpdateEvent::SendCmd, instance, evt->Command, "", ""); cuev.source = evt->source; _osc->finish_update_event (cuev); } _nonrt_update_event_queue->increment_read_ptr(1); } if (!is_ok()) break; // handle special requests from the audio thread // this is a hack for now if (_tempo_changed) { ConfigUpdateEvent cu_event(ConfigUpdateEvent::Send, -2, Event::Tempo, "", "", (float) _tempo); _osc->finish_update_event (cu_event); _tempo_changed = false; ParamChanged(Event::Tempo, -2); // emit } if (_sel_loop_changed) { ConfigUpdateEvent cu_event(ConfigUpdateEvent::Send, -2, Event::SelectedLoopNum, "", "", (float) _selected_loop); _osc->finish_update_event (cu_event); _sel_loop_changed = false; ParamChanged(Event::SelectedLoopNum, -2); // emit } if (_beat_occurred) { //cerr << "beat occurred" << endl; // just use some unique number ConfigUpdateEvent cu_event(ConfigUpdateEvent::Send, -2, Event::TapTempo, "", "", (float) _running_frames); _osc->finish_update_event (cu_event); _beat_occurred = false; } if (_timebase_changed) { if (!_driver->set_timebase_master(_jack_timebase_master)) { _jack_timebase_master = false; } _timebase_changed = false; } if (_conns_changed) { // send latency updates for (unsigned int n=0; n < _instances.size(); ++n) { ConfigUpdateEvent cu_event(ConfigUpdateEvent::Send, n, Event::OutputLatency, "", "", (float) _instances[n]->get_control_value(Event::OutputLatency)); _osc->finish_update_event (cu_event); cu_event.control = Event::InputLatency; cu_event.value = _instances[n]->get_control_value(Event::InputLatency); _osc->finish_update_event (cu_event); } _conns_changed = false; } // handle learning done from the midi thread if (_learn_done && _midi_bridge) { LockMonitor lm (_midi_bridge->bindings_lock(), __LINE__, __FILE__); _midi_bridge->bindings().add_binding (_learninfo, _learn_event.options == "exclusive"); _learn_event.bind_str = _learninfo.serialize(); _osc->finish_midi_binding_event (_learn_event); _learn_done = false; } else if (_received_done) { _learn_event.bind_str = _learninfo.serialize(); _osc->finish_midi_binding_event (_learn_event); _received_done = false; } gettimeofday(&now, NULL); // if now is >= then the last timeout target, we should update if (wait_ret == ETIMEDOUT || timercmp (&now, &timeoutv, >=)) { std::list timeout_list; //work out for which auto timeouts it is time to update for (short int i = 0; i < AUTO_UPDATE_RANGE; i++) { struct timeval timer_diff = {0,0}; timersub(&now, &timer_last[i], &timer_diff); if (timercmp(&timer_diff, &auto_update_timer_v[i], >=)) { timeout_list.push_back((AUTO_UPDATE_STEP*(i+1))); timer_last[i] = now; } } _osc->send_auto_updates(timeout_list); // emit a parameter changed for state and others for (unsigned int n=0; n < _instances.size(); ++n) { ParamChanged(Event::State, n); // emit ParamChanged(Event::Waiting, n); ParamChanged(Event::LoopPosition, n); ParamChanged(Event::LoopLength, n); ParamChanged(Event::CycleLength, n); ParamChanged(Event::FreeTime, n); } // wake up every 10 ms for servicing auto-update parameters // TODO: make it more even more flexible? const long up_interval = AUTO_UPDATE_STEP * 1000; // 10ms timeout.tv_sec = now.tv_sec; timeout.tv_nsec = (now.tv_usec + up_interval) * 1000; if (timeout.tv_nsec > 1000000000) { timeout.tv_sec += 1; timeout.tv_nsec = (timeout.tv_nsec % 1000000000); } timeoutv.tv_sec = timeout.tv_sec; timeoutv.tv_usec = timeout.tv_nsec / 1000; } // sleep on condition { LockMonitor mon(_event_loop_lock, __LINE__, __FILE__); wait_ret = pthread_cond_timedwait (&_event_cond, _event_loop_lock.mutex(), &timeout); } } } bool Engine::process_nonrt_event (EventNonRT * event) { ConfigUpdateEvent * cu_event; GetParamEvent * gp_event; ConfigLoopEvent * cl_event; PingEvent * ping_event; RegisterConfigEvent * rc_event; LoopFileEvent * lf_event; GlobalGetEvent * gg_event; GlobalSetEvent * gs_event; MidiBindingEvent * mb_event; SessionEvent * sess_event; CommandMap & cmdmap = CommandMap::instance(); if ((gp_event = dynamic_cast (event)) != 0) { gp_event->ret_value = get_control_value (gp_event->control, gp_event->instance); _osc->finish_get_event (*gp_event); } else if ((gg_event = dynamic_cast (event)) != 0) { if (gg_event->param == "dry") { gg_event->ret_value = (float) _curr_common_dry; } else if (gg_event->param == "wet") { gg_event->ret_value = (float) _curr_common_wet; } else if (gg_event->param == "input_gain") { gg_event->ret_value = (float) _curr_input_gain; } else if (gg_event->param == "auto_disable_latency") { gg_event->ret_value = (_auto_disable_latency) ? 1.0f: 0.0f; } else if (gg_event->param == "jack_timebase_master") { gg_event->ret_value = (_jack_timebase_master) ? 1.0f: 0.0f; } else if (gg_event->param == "output_midi_clock") { gg_event->ret_value = (_output_midi_clock) ? 1.0f: 0.0f; } else if (gg_event->param == "use_midi_start") { gg_event->ret_value = (_use_sync_start) ? 1.0f: 0.0f; } else if (gg_event->param == "use_midi_stop") { gg_event->ret_value = (_use_sync_stop) ? 1.0f: 0.0f; } else if (gg_event->param == "send_midi_start_on_trigger") { gg_event->ret_value = (_send_midi_start_on_trigger) ? 1.0f: 0.0f; } else if (gg_event->param == "smart_eighths") { gg_event->ret_value = (_smart_eighths) ? 1.0f: 0.0f; } else if (gg_event->param == "selected_loop_num") { gg_event->ret_value = (float) _selected_loop; } else if (gg_event->param == "sync_source") { gg_event->ret_value = (float) _sync_source; } else if (gg_event->param == "tempo") { gg_event->ret_value = (float) _tempo; } else if (gg_event->param == "eighth_per_cycle") { gg_event->ret_value = _eighth_cycle; } _osc->finish_global_get_event (*gg_event); } else if ((gs_event = dynamic_cast (event)) != 0) { if (gs_event->param == "dry") { _target_common_dry = gs_event->value; } else if (gs_event->param == "wet") { _target_common_wet = gs_event->value; } else if (gs_event->param == "input_gain") { _target_input_gain = gs_event->value; } else if (gs_event->param == "auto_disable_latency") { _auto_disable_latency = gs_event->value; //cerr << "NEED TO setting disable_compensation " << endl; } else if (gs_event->param == "jack_timebase_master") { bool flag = gs_event->value > 0.0f; if (_driver->set_timebase_master(flag)) { _jack_timebase_master = flag; } else { _jack_timebase_master = false; } } else if (gs_event->param == "output_midi_clock") { _output_midi_clock = gs_event->value; if (_midi_bridge) { _midi_bridge->set_output_midi_clock(_output_midi_clock); } } else if (gs_event->param == "use_midi_start") { _use_sync_start = gs_event->value > 0.0f; } else if (gs_event->param == "use_midi_stop") { _use_sync_stop = gs_event->value > 0.0f; } else if (gs_event->param == "send_midi_start_on_trigger") { _send_midi_start_on_trigger = gs_event->value > 0.0f; } else if (gs_event->param == "smart_eighths") { _smart_eighths = gs_event->value > 0.0f; } else if (gs_event->param == "selected_loop_num") { _selected_loop = (int) gs_event->value; } else if (gs_event->param == "sync_source") { if ((int) gs_event->value > (int) FIRST_SYNC_SOURCE && gs_event->value <= _instances.size()) { _sync_source = (SyncSourceType) (int) roundf(gs_event->value); update_sync_source(); } } else if (gs_event->param == "tempo") { if (gs_event->value > 0.0f) { set_tempo((double) gs_event->value, true); } } else if (gs_event->param == "eighth_per_cycle") { if (gs_event->value > 0.0f) { _eighth_cycle = gs_event->value; // update all loops for (unsigned int n=0; n < _instances.size(); ++n) { _instances[n]->set_port(EighthPerCycleLoop, _eighth_cycle); } if (_jack_timebase_master) { TransportInfo tinfo; tinfo.bpm = _tempo; tinfo.beats_per_bar = _eighth_cycle / 2; // arbitrary tinfo.beat_type = 4.0; _driver->set_transport_info(tinfo); } } calculate_midi_tick(); } ParamChanged(cmdmap.to_control_t(gs_event->param), -2); // emit } else if ((cu_event = dynamic_cast (event)) != 0) { _osc->finish_update_event (*cu_event); } // to be on the safe side we do not handle loop add and remove commands // while loading a new session else if ((cl_event = dynamic_cast (event)) != 0 && !_loading) { if (cl_event->type == ConfigLoopEvent::Add) { // todo: use secs if (cl_event->channels == 0) { cl_event->channels = _def_channel_cnt; } if (cl_event->secs == 0.0f) { cl_event->secs = _def_loop_secs; } add_loop (cl_event->channels, cl_event->secs, cl_event->discrete || _force_discrete); } else if (cl_event->type == ConfigLoopEvent::Remove) { if (cl_event->index == -1) { cl_event->index = _instances.size() - 1; } // post a new loop remove event to the rt thread // we do the real cleanup when it tells us to if (cl_event->index >= 0 && cl_event->index < (int) _instances.size()) { LoopManageEvent lmev (LoopManageEvent::RemoveLoop, _instances[cl_event->index]); push_loop_manage_to_rt (lmev); } _osc->finish_loop_config_event (*cl_event); } } else if ((mb_event = dynamic_cast (event)) != 0 && _midi_bridge) { if (mb_event->type == MidiBindingEvent::Add) { MidiBindInfo info; if (info.unserialize (mb_event->bind_str)) { bool exclus = (mb_event->options.find("exclusive") != string::npos); //initialize value for toggle with current value if (info.style == MidiBindInfo::ToggleStyle) info.last_toggle_val = get_control_value(cmdmap.to_control_t(info.control), info.instance); LockMonitor lm (_midi_bridge->bindings_lock(), __LINE__, __FILE__); _midi_bridge->bindings().add_binding (info, exclus); } } else if (mb_event->type == MidiBindingEvent::Learn) { MidiBindInfo info; if (info.unserialize (mb_event->bind_str)) { bool exclus = (mb_event->options.find("exclusive") != string::npos); _learn_done = false; _learninfo = info; _learn_event = *mb_event; _midi_bridge->start_learn (info, exclus); } } else if (mb_event->type == MidiBindingEvent::CancelLearn) { _learn_done = false; _midi_bridge->cancel_learn(); _osc->finish_midi_binding_event(*mb_event); } else if (mb_event->type == MidiBindingEvent::CancelGetNext) { //cerr << "gcancel get next" << endl; _received_done = false; _midi_bridge->cancel_get_next(); _osc->finish_midi_binding_event(*mb_event); } else if (mb_event->type == MidiBindingEvent::Remove) { MidiBindInfo info; if (info.unserialize (mb_event->bind_str)) { LockMonitor lm (_midi_bridge->bindings_lock(), __LINE__, __FILE__); _midi_bridge->bindings().remove_binding (info); } } else if (mb_event->type == MidiBindingEvent::GetAll) { LockMonitor lm (_midi_bridge->bindings_lock(), __LINE__, __FILE__); _osc->send_all_midi_bindings (&_midi_bridge->bindings(), mb_event->ret_url, mb_event->ret_path); } else if (mb_event->type == MidiBindingEvent::Clear) { LockMonitor lm (_midi_bridge->bindings_lock(), __LINE__, __FILE__); _midi_bridge->bindings().clear_bindings(); } else if (mb_event->type == MidiBindingEvent::Load) { LockMonitor lm (_midi_bridge->bindings_lock(), __LINE__, __FILE__); load_midi_bindings(mb_event->bind_str, mb_event->options == "add" ? true: false, cmdmap); //_midi_bridge->bindings().load_bindings (mb_event->bind_str, mb_event->options == "add" ? true: false); } else if (mb_event->type == MidiBindingEvent::Save) { LockMonitor lm (_midi_bridge->bindings_lock(), __LINE__, __FILE__); _midi_bridge->bindings().save_bindings (mb_event->bind_str); } else if (mb_event->type == MidiBindingEvent::GetNextMidi) { //cerr << "get next" << endl; _received_done = false; _learn_event = *mb_event; _midi_bridge->start_get_next(); } } else if ((ping_event = dynamic_cast (event)) != 0) { _osc->send_pingack(true, ping_event->use_id, ping_event->ret_url, ping_event->ret_path); } else if ((rc_event = dynamic_cast (event)) != 0) { _osc->finish_register_event (*rc_event); } else if ((lf_event = dynamic_cast (event)) != 0) { for (unsigned int n=0; n < _instances.size(); ++n) { if (lf_event->instance == -1 || lf_event->instance == (int)n) { if (lf_event->type == LoopFileEvent::Load) { if (!_instances[n]->load_loop (lf_event->filename)) { _osc->send_error(lf_event->ret_url, lf_event->ret_path, "Loop Load Failed"); } } else { if (!_instances[n]->save_loop (lf_event->filename)) { _osc->send_error(lf_event->ret_url, lf_event->ret_path, "Loop Save Failed"); } } } } } else if ((sess_event = dynamic_cast (event)) != 0) { if (sess_event->type == SessionEvent::Load) { _loading = true; _load_sess_event = new SessionEvent(*sess_event); LoopManageEvent lmev (LoopManageEvent::LoadSession, NULL); push_loop_manage_to_rt (lmev); } else { if (!save_session (sess_event->filename, sess_event->write_audio)) { _osc->send_error(sess_event->ret_url, sess_event->ret_path, "Session Save Failed"); } } } return true; } void Engine::update_sync_source () { sample_t * sync_buf = _internal_sync_buf; // if sync_source > 0, then get the source from instance if (_sync_source == JackSync) { sync_buf = _internal_sync_buf; } else if (_sync_source == MidiClockSync) { sync_buf = _internal_sync_buf; } else if (_sync_source == InternalTempoSync) { sync_buf = _internal_sync_buf; } else if (_sync_source == BrotherSync) { sync_buf = _internal_sync_buf; } else if (_sync_source > 0 && (int)_sync_source <= (int) _instances.size()) { sync_buf = _instances[(int)_sync_source - 1]->get_sync_out_buf(); // cerr << "using sync from " << _sync_source -1 << endl; } for (Instances::iterator i = _instances.begin(); i != _instances.end(); ++i) { (*i)->use_sync_buf (sync_buf); } _quarter_counter = 0; set_tempo(_tempo, false); } void Engine::set_tempo (double tempo, bool rt) { _tempo = tempo; _quarter_counter = 0; _tempo_counter = 0; // adjust eighths per cycle if tempo is > 240 or < 60 if (_smart_eighths && _tempo > 1.0 && (_tempo > 240.0 || _tempo < 60.0)) { //cerr << "tempo is " << _tempo << endl; if (_tempo > 240.0) { _eighth_cycle *= 0.5; _eighth_cycle = max(1.0f, _eighth_cycle); //cerr << "halving 8ths to : " << _eighth_cycle << endl; //_tempo *= 0.5; } else if (_tempo < 60.0) { _eighth_cycle *= 2; //cerr << "doubl 8ths to : " << _eighth_cycle << endl; //_tempo *= 2.0; } // update all loops if (rt) { for (unsigned int n=0; n < _rt_instances.size(); ++n) { _rt_instances[n]->set_port(EighthPerCycleLoop, _eighth_cycle); } } else { for (unsigned int n=0; n < _instances.size(); ++n) { _instances[n]->set_port(EighthPerCycleLoop, _eighth_cycle); } } calculate_midi_tick(rt); // is this safe? hard to say :) do_push_control_event (_nonrt_update_event_queue, Event::type_control_change, Event::EighthPerCycle, _eighth_cycle, -2, 0); } if (_sync_source == NoSync) { // we set tempo to zero as far as the loop is concerned tempo = 0.0; } if (_tempo <= 1.0) { tempo = 0.0; } // update all loops if (rt) { for (Instances::iterator i = _rt_instances.begin(); i != _rt_instances.end(); ++i) { (*i)->set_port(TempoInput, tempo); } } else { for (Instances::iterator i = _instances.begin(); i != _instances.end(); ++i) { (*i)->set_port(TempoInput, tempo); } } if (_jack_timebase_master) { TransportInfo tinfo; _driver->get_transport_info(tinfo); tinfo.bpm = tempo; tinfo.beats_per_bar = _eighth_cycle / 2; // arbitrary tinfo.beat_type = 4.0; _driver->set_transport_info(tinfo); if (_force_next_clock_start && tempo > 0.0) { // calculate nearest bar boundary pos and set to there nframes_t srate = _driver->get_samplerate(); nframes_t frames_per_bar = (nframes_t) lrint(srate * 60 * tinfo.beats_per_bar / tinfo.bpm); nframes_t cycleframes = (nframes_t) _tempo_frames; nframes_t currpos = 0; if (_sync_source > 0) { if (rt) { cycleframes = (nframes_t) (_rt_instances[_sync_source-1]->get_control_value(Event::CycleLength) * srate); currpos = (nframes_t) (_rt_instances[_sync_source-1]->get_control_value(Event::LoopPosition) * srate); } else { cycleframes = (nframes_t) (_instances[_sync_source-1]->get_control_value(Event::CycleLength) * srate); currpos = (nframes_t) (_instances[_sync_source-1]->get_control_value(Event::LoopPosition) * srate); } } else { // XXX - only works for internal/midi (doesn't really work at all) cycleframes = (nframes_t) _tempo_frames; // XXX - only right when quantize is cycle! currpos = (nframes_t) _quarter_counter; } nframes_t target_frame = ((tinfo.framepos / frames_per_bar) * frames_per_bar) + (currpos % cycleframes); _driver->reposition_transport(target_frame); //cerr << "repos to " << target_frame << " framepos was: " << tinfo.framepos << endl; } } if (_midi_bridge) { // update midi clock output // TODO: make now time be the time of the actual beat //struct timeval tval; //double nowtime; //gettimeofday(&tval, NULL); //nowtime = tval.tv_sec + tval.tv_usec / 1000000.0; _midi_bridge->tempo_clock_update(tempo, _beatstamp, _force_next_clock_start); } _force_next_clock_start = false; } void Engine::calculate_tempo_frames () { float quantize_value = (float) QUANT_8TH; if (!_rt_instances.empty()) { quantize_value = _rt_instances[0]->get_control_value (Event::Quantize); } if (_sync_source == InternalTempoSync || _sync_source == JackSync) { if (_tempo > 0.0) { if (quantize_value == QUANT_8TH) { // calculate number of samples per eighth-note (assuming 2 8ths per beat) // samples / 8th = samplerate * (1 / tempo) * 60/2; _tempo_frames = _driver->get_samplerate() * (1.0/_tempo) * 30.0; } else if (quantize_value == QUANT_CYCLE) { // calculate number of samples per cycle given the current eighths per cycle // samples / 8th = samplerate * (1 / tempo) * 60/2; // samples / cycle = samples / 8th * eighth_per_cycle _tempo_frames = _driver->get_samplerate() * (1.0/_tempo) * 30.0 * _eighth_cycle; } else { _tempo_frames = 0; // ??? } } else { _tempo_frames = 0; } // cerr << "tempo frames is " << _tempo_frames << endl; } else if (_sync_source == MidiClockSync) { calculate_midi_tick (true); } if (_tempo > 0.0) { _quarter_note_frames = _driver->get_samplerate() * (1.0/_tempo) * 60; } else { _quarter_note_frames = 0.0; } } // Calculate the number of ticks to sync loops to void Engine::calculate_midi_tick (bool rt) { float quantize_value = (float) QUANT_8TH; if (rt) { if (!_rt_instances.empty()) quantize_value = _rt_instances[0]->get_control_value (Event::Quantize); } else { if (!_instances.empty()) quantize_value = _instances[0]->get_control_value (Event::Quantize); } if (quantize_value == QUANT_8TH) _midi_loop_tick = 12; // 12 ticks per 8th note else if (quantize_value == QUANT_CYCLE) _midi_loop_tick = static_cast(_eighth_cycle * 12); else _midi_loop_tick = 24; // ..this can't happen, but quarter note is safe } int Engine::generate_sync (nframes_t offset, nframes_t nframes) { nframes_t npos = offset; int hit_at = -1; if (_sync_source == InternalTempoSync) { if (_tempo_frames == 0.0) { // just calculate quarter note beats for update double qcurr = _quarter_counter; qcurr += (double) nframes; if (qcurr >= _quarter_note_frames) { // inaccurate hit_at = (int) npos; qcurr = ((qcurr - _quarter_note_frames) - truncf(qcurr - _quarter_note_frames)) + 1.0; } _quarter_counter = qcurr; // no real sync here for (nframes_t n=offset; n < nframes; ++n) { _internal_sync_buf[n] = 1.0; } } else { double curr = _tempo_counter; double qcurr = _quarter_counter; while (npos < nframes) { while (curr < _tempo_frames && qcurr < _quarter_note_frames && npos < nframes) { _internal_sync_buf[npos++] = 0.0f; curr += 1.0; qcurr += 1.0; } if (qcurr >= _quarter_note_frames) { hit_at = (int) npos; qcurr = ((qcurr - _quarter_note_frames) - truncf(qcurr - _quarter_note_frames)) + 1.0; } if (curr >= _tempo_frames) { // cerr << "tempo hit" << endl; _internal_sync_buf[npos++] = 2.0f; // reset curr counter curr = ((curr - _tempo_frames) - truncf(curr - _tempo_frames)) + 1.0; } } _tempo_counter = curr; _quarter_counter = qcurr; //cerr << "tempo counter is now: " << _tempo_counter << endl; } } else if (_sync_source == MidiClockSync) { RingBuffer::rw_vector vec; Event *evt; // get available events _sync_queue->get_read_vector (&vec); nframes_t usedframes = 0; nframes_t doframes; size_t num = vec.len[0]; size_t n = 0; size_t vecn = 0; nframes_t fragpos; MIDI::timestamp_t timestamp = 0; if (num > 0) { while (n < num) { evt = vec.buf[vecn] + n; fragpos = (nframes_t) (evt->FragmentPos() % nframes); timestamp = evt->getTimestamp(); ++n; // to avoid code copying if (n == num && vecn == 0) { ++vecn; n = 0; num = vec.len[1]; } if (fragpos < usedframes || fragpos >= nframes) { // bad fragment pos #ifdef DEBUG cerr << "BAD SYNC FRAGMENT POS: " << fragpos << endl; #endif // continue; } doframes = fragpos - usedframes; // handle special global RT events if (evt->Control == Event::MidiTick) { _midi_ticks++; } else if (evt->Control == Event::MidiStart) { _midi_ticks = 0; //cerr << "got start at " << fragpos << endl; //calculate_midi_tick(); if (_use_sync_start) { // trigger all loops right now evt->Type = Event::type_cmd_hit; evt->Command = Event::TRIGGER; for (Instances::iterator i = _rt_instances.begin(); i != _rt_instances.end(); ++i) { (*i)->do_event(evt); (*i)->run (0, 0); } } } else if (evt->Control == Event::MidiStop) { // stop playing? //cerr << "got stop at " << fragpos << endl; _prev_beatstamp = 0; if (_use_sync_stop) { // pause all loops right now evt->Type = Event::type_cmd_hit; evt->Command = Event::PAUSE_ON; for (Instances::iterator i = _rt_instances.begin(); i != _rt_instances.end(); ++i) { (*i)->do_event(evt); (*i)->run (0, 0); } } } if ((_midi_ticks % 24) == 0 && TEMPO_DIFF(timestamp,_prev_beatstamp)) { // every quarter note hit_at = (int) fragpos; //double tcount = _quarter_counter + (double) fragpos; // calc new tempo //double ntempo = (_driver->get_samplerate() * 60.0 / tcount); double ntempo = 60 / (timestamp - _prev_beatstamp); ntempo = avg_tempo(ntempo); if (TEMPO_DIFF(ntempo, _tempo)) { //cerr << "new tempo is: " << ntempo << " tcount = " << tcount << " frag: " << fragpos << " used: " << usedframes << " delta: " << (timestamp - _prev_beatstamp) << endl; set_tempo(ntempo, true); _tempo_changed = true; // wake up mainloop safely pthread_cond_signal (&_event_cond); } _quarter_counter = - ((double)usedframes); _prev_beatstamp = timestamp; } if ((_midi_ticks % _midi_loop_tick) == 0) { //cerr << "GOT SYNC TICK at " << fragpos << endl; // zero sync before this event memset (&(_internal_sync_buf[usedframes]), 0, doframes * sizeof(float)); // mark it high _internal_sync_buf[fragpos] = 2.0f; doframes += 1; //_midi_ticks = 0; } usedframes += doframes; } // advance events _sync_queue->increment_read_ptr (vec.len[0] + vec.len[1]); // zero the rest memset (&(_internal_sync_buf[usedframes]), 0, (nframes - usedframes) * sizeof(float)); _quarter_counter += (double) nframes; } else { // no sync events... all zero memset (_internal_sync_buf, 0, nframes * sizeof(float)); _quarter_counter += (double) nframes; } } else if (_sync_source == NoSync) { for (nframes_t n=offset; n < nframes; ++n) { _internal_sync_buf[n] = 1.0; } //memset (_internal_sync_buf, 0, nframes * sizeof(float)); } else if (_sync_source == JackSync) { for (nframes_t n=offset; n < nframes; ++n) { _internal_sync_buf[n] = 0.0; } TransportInfo info; if (_driver->get_transport_info(info)) { if (TEMPO_DIFF(_tempo,info.bpm)) { set_tempo(info.bpm, true); calculate_tempo_frames (); _tempo_changed = true; // wake up mainloop safely pthread_cond_signal (&_event_cond); } if (_tempo_frames > 0.0 && info.state == TransportInfo::ROLLING) { nframes_t thisval = (nframes_t) lrint (fmod ((double) (info.framepos + offset), _tempo_frames)); nframes_t nextval = (nframes_t) lrint (fmod ((double) (info.framepos + offset + nframes), _tempo_frames)); nframes_t diff = lrint(_tempo_frames - thisval); diff = (thisval == 0) ? 0 : diff; //fprintf(stderr, "pos: %lu lastpos: %lu tempoframe: %g thisval: %lu nextval: %lu\n", info.framepos , info.last_framepos, _tempo_frames, thisval, nextval); if (info.framepos < info.last_framepos) { //fprintf(stderr,"framepos discontinuity! setting samples since sync to : %lu last: %lu \n",info.framepos + offset, info.last_framepos); for (Instances::iterator i = _rt_instances.begin(); i != _rt_instances.end(); ++i) { (*i)->set_samples_since_sync(info.framepos + offset); } } if ((thisval == 0 || nextval <= thisval) && diff < nframes) { //cerr << "got tempo frame in this cycle: diff: " << diff << endl; _internal_sync_buf[offset + diff] = 2.0; } } if (_quarter_note_frames > 0.0 && info.state == TransportInfo::ROLLING) { nframes_t thisval = (nframes_t) lrint (fmod ((double) (info.framepos + offset), _quarter_note_frames)); nframes_t nextval = (nframes_t) lrint (fmod ((double) (info.framepos + offset + nframes), _quarter_note_frames)); nframes_t diff = lrint(_quarter_note_frames - thisval); diff = (thisval == 0) ? 0 : diff; //cerr << "pos: " << info.framepos << " qframes: " << _quarter_note_frames << " this: " << thisval << " next: " << nextval << endl; if ((thisval == 0 || nextval <= thisval) && diff < nframes) { // cerr << "got quarter frame in this cycle: diff: " << diff << endl; hit_at = (int) diff; } } } } else if ((int)_sync_source > 0 && (size_t)_sync_source <= _rt_instances.size()) { // a loop for (nframes_t n=offset; n < nframes; ++n) { _internal_sync_buf[n] = 1.0; } if (_rt_instances[_sync_source-1]->get_control_value(Event::State) != LooperStateRecording) { // calc new tempo nframes_t cycleframes = (nframes_t) (_rt_instances[_sync_source-1]->get_control_value(Event::CycleLength) * _driver->get_samplerate()); double ntempo = 0.0; if (cycleframes > 0) { ntempo = (_driver->get_samplerate() * 30.0 * _eighth_cycle / cycleframes); } if (TEMPO_DIFF(ntempo, _tempo)) { //cerr << "new tempo is: " << ntempo << " oldtempo: " << _tempo << endl; if (_midi_bridge) { _beatstamp = _midi_bridge->get_current_host_time(); } _force_next_clock_start = true; set_tempo(ntempo, true); calculate_tempo_frames (); _tempo_changed = true; // wake up mainloop safely pthread_cond_signal (&_event_cond); } // just calculate quarter note beats for update if (_quarter_note_frames > 0.0) { nframes_t currpos = (nframes_t) (_rt_instances[_sync_source-1]->get_control_value(Event::LoopPosition) * _driver->get_samplerate()); nframes_t loopframes = (nframes_t) (_rt_instances[_sync_source-1]->get_control_value(Event::LoopLength) * _driver->get_samplerate()); if (loopframes > 0) { nframes_t testval = (((currpos + nframes) % loopframes) % (nframes_t)_quarter_note_frames); if (testval <= nframes || testval == 0) { // inaccurate //cerr << "quarter hit" << endl; hit_at = (int) 0; } } } } } // handle (midi) sync start and stop events when enabled, even when syncing to something else if ((_use_sync_stop || _use_sync_start) && _sync_source != MidiClockSync) { RingBuffer::rw_vector vec; Event *evt; // get available events _sync_queue->get_read_vector (&vec); size_t num = vec.len[0]; size_t n = 0; size_t vecn = 0; nframes_t fragpos; MIDI::timestamp_t timestamp = 0; while (n < num) { evt = vec.buf[vecn] + n; fragpos = (nframes_t) (evt->FragmentPos() % nframes); timestamp = evt->getTimestamp(); Event tmpevt; if (evt->Control == Event::MidiStart) { //_midi_ticks = 0; //cerr << "got start at " << fragpos << endl; if (_use_sync_start) { // trigger all loops right now evt->Type = Event::type_cmd_hit; evt->Command = Event::TRIGGER; for (Instances::iterator i = _rt_instances.begin(); i != _rt_instances.end(); ++i) { (*i)->do_event(evt); (*i)->run (0, 0); } } } else if (evt->Control == Event::MidiStop) { // stop playing? //cerr << "got stop at " << fragpos << endl; //_prev_beatstamp = 0; if (_use_sync_stop) { // pause all loops right now tmpevt.Type = Event::type_control_change; tmpevt.Control = Event::Quantize; evt->Type = Event::type_cmd_hit; evt->Command = Event::PAUSE_ON; for (Instances::iterator i = _rt_instances.begin(); i != _rt_instances.end(); ++i) { float prevquant = (*i)->get_control_value(Event::Quantize); tmpevt.Value = QUANT_OFF; (*i)->do_event(&tmpevt); // force off quantize for this pause action (*i)->do_event(evt); (*i)->run (0, 0); // now turn quantize back to previous value tmpevt.Value = prevquant; (*i)->do_event(&tmpevt); } } } ++n; // to avoid code copying if (n == num && vecn == 0) { ++vecn; n = 0; num = vec.len[1]; } } // advance events _sync_queue->increment_read_ptr (vec.len[0] + vec.len[1]); } if (hit_at >= 0 && _tempo < 240.0) { _beat_occurred = true; // this is close enough for now, really it should be a bit into the future since this is yet to be output if (_midi_bridge) { _beatstamp = _midi_bridge->get_current_host_time(); } //fprintf(stderr, "beat occurred: at %.13g\n", _beatstamp); if (_send_midi_start_after_next_hit && _midi_bridge) { // force a send now //cerr << "force a send now" << endl; _midi_bridge->tempo_clock_update(_tempo, _beatstamp, true); _send_midi_start_after_next_hit = false; } // wake up mainloop safely //TentativeLockMonitor mon(_event_loop_lock, __LINE__, __FILE__); //if (mon.locked()) { pthread_cond_signal (&_event_cond); } return hit_at; } void Engine::handle_load_session_event () { while (_instances.size() > 0) { remove_loop(_instances.back()); } if (!_load_sess_event) { _loading = false; return; } if (!load_session (_load_sess_event->filename)) { _osc->send_error(_load_sess_event->ret_url, _load_sess_event->ret_path, "Session Load Failed"); } _loading = false; delete _load_sess_event; } bool Engine::load_session (std::string fname, string * readstr) { LocaleGuard lg ("POSIX"); XMLTree sessiondoc; XMLNodeList looper_kids; const XMLProperty* prop; if (readstr) { sessiondoc.read_buffer(*readstr); } else { sessiondoc.read(fname); } if (!sessiondoc.initialized()) { fprintf (stderr, "Error loading session at %s!\n", fname.c_str()); return false; } XMLNode * root_node = sessiondoc.root(); if (!root_node || root_node->name() != "SLSession") { fprintf (stderr, "Preset root node not found in %s!\n", fname.c_str()); return false; } XMLNode * globals_node = root_node->find_named_node("Globals"); if (globals_node) { if ((prop = globals_node->property ("tempo")) != 0) { sscanf (prop->value().c_str(), "%lg", &_tempo); } if ((prop = globals_node->property ("eighth_per_cycle")) != 0) { sscanf (prop->value().c_str(), "%g", &_eighth_cycle); } if ((prop = globals_node->property ("common_dry")) != 0) { sscanf (prop->value().c_str(), "%g", &_curr_common_dry); _target_common_dry = _curr_common_dry; } if ((prop = globals_node->property ("common_wet")) != 0) { sscanf (prop->value().c_str(), "%g", &_curr_common_wet); _target_common_wet = _curr_common_wet; } if ((prop = globals_node->property ("input_gain")) != 0) { sscanf (prop->value().c_str(), "%g", &_curr_input_gain); _target_input_gain = _curr_input_gain; } if ((prop = globals_node->property ("auto_disable_latency")) != 0) { int temp = 0; sscanf (prop->value().c_str(), "%d", &temp); _auto_disable_latency = temp ? true: false; } if ((prop = globals_node->property ("jack_timebase_master")) != 0) { int temp = 0; sscanf (prop->value().c_str(), "%d", &temp); _jack_timebase_master = temp ? true: false; } if ((prop = globals_node->property ("output_midi_clock")) != 0) { int temp = 0; sscanf (prop->value().c_str(), "%d", &temp); _output_midi_clock = temp ? true: false; if (_midi_bridge) { _midi_bridge->set_output_midi_clock(_output_midi_clock); } } if ((prop = globals_node->property ("use_midi_start")) != 0) { int temp = 0; sscanf (prop->value().c_str(), "%d", &temp); _use_sync_start = temp ? true: false; } if ((prop = globals_node->property ("use_midi_stop")) != 0) { int temp = 0; sscanf (prop->value().c_str(), "%d", &temp); _use_sync_stop = temp ? true: false; } if ((prop = globals_node->property ("send_midi_start_on_trigger")) != 0) { int temp = 0; sscanf (prop->value().c_str(), "%d", &temp); _send_midi_start_on_trigger = temp ? true: false; } if ((prop = globals_node->property ("smart_eighths")) != 0) { int temp = 0; sscanf (prop->value().c_str(), "%d", &temp); _smart_eighths = temp ? true: false; } if ((prop = globals_node->property ("sync_source")) != 0) { sscanf (prop->value().c_str(), "%d", (int *) (&_sync_source)); } } // just remove everything for now while (_instances.size() > 0) { LoopManageEvent lmev (LoopManageEvent::RemoveLoop, _instances.back()); // remove it now so indexes for new ones work out _instances.pop_back(); // will be deleted later by us when the RT thread finishes with it push_loop_manage_to_rt (lmev); } XMLNode * loopers_node = root_node->find_named_node ("Loopers"); if (!loopers_node) { return false; } looper_kids = loopers_node->children ("Looper"); _loading = true; for (XMLNodeConstIterator niter = looper_kids.begin(); niter != looper_kids.end(); ++niter) { XMLNode *child; child = (*niter); // add temporary attribute with the pathname for the session file child->add_property("session_filename", fname); Looper * instance = new Looper (_driver, *child); add_loop (instance); } _loading = false; _driver->set_timebase_master(_jack_timebase_master); _osc->send_all_config(); return true; } bool Engine::save_session (std::string fname, bool write_audio, string * writestr) { // make xmltree LocaleGuard lg ("POSIX"); XMLTree sessiondoc; char buf[120]; XMLNode * root_node = new XMLNode("SLSession"); root_node->add_property("version", sooperlooper_version); sessiondoc.set_root (root_node); XMLNode * globals_node = root_node->add_child ("Globals"); snprintf(buf, sizeof(buf), "%.10g", _tempo); globals_node->add_property ("tempo", buf); snprintf(buf, sizeof(buf), "%.10g", _eighth_cycle); globals_node->add_property ("eighth_per_cycle", buf); snprintf(buf, sizeof(buf), "%.10g", _curr_common_dry); globals_node->add_property ("common_dry", buf); snprintf(buf, sizeof(buf), "%.10g", _curr_common_wet); globals_node->add_property ("common_wet", buf); snprintf(buf, sizeof(buf), "%.10g", _curr_input_gain); globals_node->add_property ("input_gain", buf); snprintf(buf, sizeof(buf), "%d", (int)_sync_source); globals_node->add_property ("sync_source", buf); snprintf(buf, sizeof(buf), "%d", (int)_auto_disable_latency ? 1 : 0); globals_node->add_property ("auto_disable_latency", buf); snprintf(buf, sizeof(buf), "%d", (int)_jack_timebase_master ? 1 : 0); globals_node->add_property ("jack_timebase_master", buf); snprintf(buf, sizeof(buf), "%d", (int)_output_midi_clock ? 1 : 0); globals_node->add_property ("output_midi_clock", buf); snprintf(buf, sizeof(buf), "%d", (int)_use_sync_start ? 1 : 0); globals_node->add_property ("use_midi_start", buf); snprintf(buf, sizeof(buf), "%d", (int)_use_sync_stop ? 1 : 0); globals_node->add_property ("use_midi_stop", buf); snprintf(buf, sizeof(buf), "%d", (int)_send_midi_start_on_trigger ? 1 : 0); globals_node->add_property ("send_midi_start_on_trigger", buf); snprintf(buf, sizeof(buf), "%d", (int)_smart_eighths ? 1 : 0); globals_node->add_property ("smart_eighths", buf); XMLNode * loopers_node = root_node->add_child ("Loopers"); int n=0; for (Instances::iterator i = _instances.begin(); i != _instances.end(); ++i, ++n) { XMLNode * node = & ((*i)->get_state()); if (write_audio && !fname.empty() && (*i)->get_control_value(Event::LoopLength) > 0.0f ) { // add property with audio_pathname and write it out char pathstr[512]; snprintf(pathstr, sizeof(pathstr), "%s_loop_%02d.wav", fname.c_str(), n); node->add_property("loop_audio", pathstr); (*i)->save_loop(pathstr, LoopFileEvent::FormatFloat); } loopers_node->add_child_nocopy (*node); } if (writestr) { *writestr = sessiondoc.write_buffer(); } // write doc to file if (!fname.empty()) { if (sessiondoc.write (fname)) { fprintf (stderr, "Stored session as %s\n", fname.c_str()); return true; } else { fprintf (stderr, "Failed to store session as %s\n", fname.c_str()); return false; } } return true; } sooperlooper-1.7.3~dfsg0/src/control_osc.cpp0000644000175000017500000014513512230252703017662 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include #include #include #include #include #include "control_osc.hpp" #include "event_nonrt.hpp" #include "engine.hpp" #include "ringbuffer.hpp" #include "midi_bind.hpp" #include "command_map.hpp" #include "version.h" #include #include using namespace sigc; using namespace SooperLooper; using namespace std; //#define DEBUG 1 static void error_callback(int num, const char *m, const char *path) { #ifdef DEBUG fprintf(stderr, "liblo server error %d in path %s: %s\n", num, path, m); #endif } ControlOSC::ControlOSC(Engine * eng, unsigned int port) : _engine(eng), _port(port) { char tmpstr[255]; _ok = false; _shutdown = false; _osc_server = 0; _osc_unix_server = 0; _osc_thread = 0; _max_instance = 0; for (int j=0; j < 20; ++j) { snprintf(tmpstr, sizeof(tmpstr), "%d", _port); if ((_osc_server = lo_server_new (tmpstr, error_callback))) { break; } #ifdef DEBUG cerr << "can't get osc at port: " << _port << endl; #endif _port++; continue; } /*** APPEARS sluggish for now // attempt to create unix socket server too //snprintf(tmpstr, sizeof(tmpstr), "/tmp/sooperlooper_%d", getpid()); snprintf(tmpstr, sizeof(tmpstr), "/tmp/sooperlooper_XXXXXX"); int fd = mkstemp(tmpstr); if (fd >=0) { unlink(tmpstr); close(fd); _osc_unix_server = lo_server_new (tmpstr, error_callback); if (_osc_unix_server) { _osc_unix_socket_path = tmpstr; } } */ _engine->LoopAdded.connect(mem_fun (*this, &ControlOSC::on_loop_added)); _engine->LoopRemoved.connect(mem_fun (*this, &ControlOSC::on_loop_removed)); register_callbacks(); // for all loops on_loop_added(-1); // for selected loop on_loop_added(-3); // lo_server_thread_add_method(_sthread, NULL, NULL, ControlOSC::_dummy_handler, this); _cmd_map = &CommandMap::instance(); if (!init_osc_thread()) { return; } _ok = true; } ControlOSC::~ControlOSC() { if (!_osc_unix_socket_path.empty()) { // unlink it unlink(_osc_unix_socket_path.c_str()); } // stop server thread terminate_osc_thread(); } void ControlOSC::register_callbacks() { lo_server srvs[2]; lo_server serv; srvs[0] = _osc_server; srvs[1] = _osc_unix_server; for (size_t i=0; i < 2; ++i) { if (!srvs[i]) continue; serv = srvs[i]; /* add method that will match the path /quit with no args */ lo_server_add_method(serv, "/quit", "", ControlOSC::_quit_handler, this); // add ping handler: s:returl s:retpath [useid] lo_server_add_method(serv, "/ping", "ss", ControlOSC::_ping_handler, this); lo_server_add_method(serv, "/ping", "ssi", ControlOSC::_ping_handler, this); // add loop add handler: i:channels i:bytes_per_channel lo_server_add_method(serv, "/loop_add", "if", ControlOSC::_loop_add_handler, this); lo_server_add_method(serv, "/loop_add", "ifi", ControlOSC::_loop_add_handler, this); // load session: s:filename s:returl s:retpath lo_server_add_method(serv, "/load_session", "sss", ControlOSC::_load_session_handler, this); // save session: s:filename s:returl s:retpath (i:write_audio) lo_server_add_method(serv, "/save_session", "sss", ControlOSC::_save_session_handler, this); lo_server_add_method(serv, "/save_session", "sssi", ControlOSC::_save_session_handler, this); // add loop del handler: i:index lo_server_add_method(serv, "/loop_del", "i", ControlOSC::_loop_del_handler, this); // un/register config handler: s:returl s:retpath lo_server_add_method(serv, "/register", "ss", ControlOSC::_register_config_handler, this); lo_server_add_method(serv, "/unregister", "ss", ControlOSC::_unregister_config_handler, this); lo_server_add_method(serv, "/set", "sf", ControlOSC::_global_set_handler, this); lo_server_add_method(serv, "/get", "sss", ControlOSC::_global_get_handler, this); // un/register_update args= s:ctrl s:returl s:retpath lo_server_add_method(serv, "/register_update", "sss", ControlOSC::_global_register_update_handler, this); lo_server_add_method(serv, "/unregister_update", "sss", ControlOSC::_global_unregister_update_handler, this); lo_server_add_method(serv, "/register_auto_update", "siss", ControlOSC::_global_register_auto_update_handler, this); lo_server_add_method(serv, "/unregister_auto_update", "sss", ControlOSC::_global_unregister_auto_update_handler, this); // certain RT global ctrls lo_server_add_method(serv, "/sl/-2/set", "sf", ControlOSC::_set_handler, new CommandInfo(this, -2, Event::type_global_control_change)); // get all midi bindings: s:returl s:retpath lo_server_add_method(serv, "/get_all_midi_bindings", "ss", ControlOSC::_midi_binding_handler, new MidiBindCommand(this, MidiBindCommand::GetAllBinding)); // remove a specific midi binding: s:binding_serialization s:options lo_server_add_method(serv, "/remove_midi_binding", "ss", ControlOSC::_midi_binding_handler, new MidiBindCommand(this, MidiBindCommand::RemoveBinding)); // add a specific midi binding: s:binding_serialization s:options lo_server_add_method(serv, "/add_midi_binding", "ss", ControlOSC::_midi_binding_handler, new MidiBindCommand(this, MidiBindCommand::AddBinding)); // clear all bindings lo_server_add_method(serv, "/clear_midi_bindings", "", ControlOSC::_midi_binding_handler, new MidiBindCommand(this, MidiBindCommand::ClearAllBindings)); // load bindings from file: s:binding_filename s:options lo_server_add_method(serv, "/load_midi_bindings", "ss", ControlOSC::_midi_binding_handler, new MidiBindCommand(this, MidiBindCommand::LoadBindings)); // save bindings to file: s:binding_filename s:options lo_server_add_method(serv, "/save_midi_bindings", "ss", ControlOSC::_midi_binding_handler, new MidiBindCommand(this, MidiBindCommand::SaveBindings)); // learn midi binding: s:binding_serialization s:options s:returl s:retpath lo_server_add_method(serv, "/learn_midi_binding", "ssss", ControlOSC::_midi_binding_handler, new MidiBindCommand(this, MidiBindCommand::LearnBinding)); // return next midi event in a binding serialization: s:returl s:retpath lo_server_add_method(serv, "/get_next_midi_event", "ss", ControlOSC::_midi_binding_handler, new MidiBindCommand(this, MidiBindCommand::GetNextMidi)); // cancel learn or get next midi event in a binding serialization: s:returl s:retpath lo_server_add_method(serv, "/cancel_midi_learn", "ss", ControlOSC::_midi_binding_handler, new MidiBindCommand(this, MidiBindCommand::CancelLearn)); // cancel learn or get next midi event in a binding serialization: s:returl s:retpath lo_server_add_method(serv, "/cancel_get_next_midi", "ss", ControlOSC::_midi_binding_handler, new MidiBindCommand(this, MidiBindCommand::CancelGetNext)); // MIDI clock lo_server_add_method(serv, "/sl/midi_start", NULL, ControlOSC::_midi_start_handler, this); lo_server_add_method(serv, "/sl/midi_stop", NULL, ControlOSC::_midi_stop_handler, this); lo_server_add_method(serv, "/sl/midi_tick", NULL, ControlOSC::_midi_tick_handler, this); } } bool ControlOSC::init_osc_thread () { // create new thread to run server if (pipe (_request_pipe)) { cerr << "Cannot create osc request signal pipe" << strerror (errno) << endl; return false; } if (fcntl (_request_pipe[0], F_SETFL, O_NONBLOCK)) { cerr << "osc: cannot set O_NONBLOCK on signal read pipe " << strerror (errno) << endl; return false; } if (fcntl (_request_pipe[1], F_SETFL, O_NONBLOCK)) { cerr << "osc: cannot set O_NONBLOCK on signal write pipe " << strerror (errno) << endl; return false; } pthread_create (&_osc_thread, NULL, &ControlOSC::_osc_receiver, this); if (!_osc_thread) { return false; } //pthread_detach (_osc_thread); return true; } void ControlOSC::terminate_osc_thread () { void* status; _shutdown = true; poke_osc_thread (); pthread_join (_osc_thread, &status); } void ControlOSC::poke_osc_thread () { char c; if (write (_request_pipe[1], &c, 1) != 1) { cerr << "cannot send signal to osc thread! " << strerror (errno) << endl; } } void ControlOSC::on_loop_added (int instance, bool sendupdate) { // will be called from main event loop char tmpstr[255]; #ifdef DEBUG cerr << "loop added: " << instance << endl; #endif lo_server srvs[2]; lo_server serv; if (instance >= 0 && instance < _max_instance) { // already added this method if (sendupdate) { send_all_config(); } return; } srvs[0] = _osc_server; srvs[1] = _osc_unix_server; for (size_t i=0; i < 2; ++i) { if (!srvs[i]) continue; serv = srvs[i]; snprintf(tmpstr, sizeof(tmpstr), "/sl/%d/down", instance); lo_server_add_method(serv, tmpstr, "s", ControlOSC::_updown_handler, new CommandInfo(this, instance, Event::type_cmd_down)); snprintf(tmpstr, sizeof(tmpstr), "/sl/%d/up", instance); lo_server_add_method(serv, tmpstr, "s", ControlOSC::_updown_handler, new CommandInfo(this, instance, Event::type_cmd_up)); snprintf(tmpstr, sizeof(tmpstr), "/sl/%d/hit", instance); lo_server_add_method(serv, tmpstr, "s", ControlOSC::_updown_handler, new CommandInfo(this, instance, Event::type_cmd_hit)); snprintf(tmpstr, sizeof(tmpstr), "/sl/%d/upforce", instance); lo_server_add_method(serv, tmpstr, "s", ControlOSC::_updown_handler, new CommandInfo(this, instance, Event::type_cmd_upforce)); snprintf(tmpstr, sizeof(tmpstr), "/sl/%d/set", instance); lo_server_add_method(serv, tmpstr, "sf", ControlOSC::_set_handler, new CommandInfo(this, instance, Event::type_control_change)); snprintf(tmpstr, sizeof(tmpstr), "/sl/%d/get", instance); lo_server_add_method(serv, tmpstr, "sss", ControlOSC::_get_handler, new CommandInfo(this, instance, Event::type_control_request)); // load loop: s:filename s:returl s:retpath snprintf(tmpstr, sizeof(tmpstr), "/sl/%d/load_loop", instance); lo_server_add_method(serv, tmpstr, "sss", ControlOSC::_loadloop_handler, new CommandInfo(this, instance, Event::type_control_request)); // save loop: s:filename s:format s:endian s:returl s:retpath snprintf(tmpstr, sizeof(tmpstr), "/sl/%d/save_loop", instance); lo_server_add_method(serv, tmpstr, "sssss", ControlOSC::_saveloop_handler, new CommandInfo(this, instance, Event::type_control_request)); // register_update args= s:ctrl s:returl s:retpath snprintf(tmpstr, sizeof(tmpstr), "/sl/%d/register_update", instance); lo_server_add_method(serv, tmpstr, "sss", ControlOSC::_register_update_handler, new CommandInfo(this, instance, Event::type_control_request)); // unregister_update args= s:ctrl s:returl s:retpath snprintf(tmpstr, sizeof(tmpstr), "/sl/%d/unregister_update", instance); lo_server_add_method(serv, tmpstr, "sss", ControlOSC::_unregister_update_handler, new CommandInfo(this, instance, Event::type_control_request)); // register_audo_update args= s:ctrl i:millisec s:returl s:retpath snprintf(tmpstr, sizeof(tmpstr), "/sl/%d/register_auto_update", instance); lo_server_add_method(serv, tmpstr, "siss", ControlOSC::_register_auto_update_handler, new CommandInfo(this, instance, Event::type_control_request)); // unregister_auto_update args= s:ctrl s:returl s:retpath snprintf(tmpstr, sizeof(tmpstr), "/sl/%d/unregister_auto_update", instance); lo_server_add_method(serv, tmpstr, "sss", ControlOSC::_unregister_auto_update_handler, new CommandInfo(this, instance, Event::type_control_request)); } _max_instance = instance + 1; if (sendupdate) { send_all_config(); } } void ControlOSC::on_loop_removed () { // will be called from main event loop send_all_config(); } std::string ControlOSC::get_server_url() { string url; char * urlstr; if (_osc_server) { urlstr = lo_server_get_url (_osc_server); url = urlstr; free (urlstr); } return url; } std::string ControlOSC::get_unix_server_url() { string url; char * urlstr; if (_osc_unix_server) { urlstr = lo_server_get_url (_osc_unix_server); url = urlstr; free (urlstr); } return url; } /* server thread */ void * ControlOSC::_osc_receiver(void * arg) { static_cast (arg)->osc_receiver(); return 0; } void ControlOSC::osc_receiver() { struct pollfd pfd[3]; int fds[3]; lo_server srvs[3]; int nfds = 0; int timeout = -1; int ret; fds[0] = _request_pipe[0]; nfds++; if (_osc_server && lo_server_get_socket_fd(_osc_server) >= 0) { fds[nfds] = lo_server_get_socket_fd(_osc_server); srvs[nfds] = _osc_server; nfds++; } if (_osc_unix_server && lo_server_get_socket_fd(_osc_unix_server) >= 0) { fds[nfds] = lo_server_get_socket_fd(_osc_unix_server); srvs[nfds] = _osc_unix_server; nfds++; } while (!_shutdown) { for (int i=0; i < nfds; ++i) { pfd[i].fd = fds[i]; pfd[i].events = POLLIN|POLLPRI|POLLHUP|POLLERR; pfd[i].revents = 0; } again: //cerr << "poll on " << nfds << " for " << timeout << endl; if ((ret = poll (pfd, nfds, timeout)) < 0) { if (errno == EINTR) { /* gdb at work, perhaps */ cerr << "EINTR hit " << endl; goto again; } cerr << "OSC thread poll failed: " << strerror (errno) << endl; break; } //cerr << "poll returned " << ret << " pfd[0].revents = " << pfd[0].revents << " pfd[1].revents = " << pfd[1].revents << endl; if (_shutdown) { break; } if ((pfd[0].revents & ~POLLIN)) { cerr << "OSC: error polling extra port" << endl; break; } for (int i=1; i < nfds; ++i) { if (pfd[i].revents & POLLIN) { // this invokes callbacks //cerr << "invoking recv on " << pfd[i].fd << endl; lo_server_recv(srvs[i]); } } } //cerr << "SL engine shutdown" << endl; if (_osc_server) { int fd = lo_server_get_socket_fd(_osc_server); if (fd >=0) { // hack around close(fd); } lo_server_free (_osc_server); _osc_server = 0; } if (_osc_unix_server) { cerr << "freeing unix server" << endl; lo_server_free (_osc_unix_server); _osc_unix_server = 0; } close(_request_pipe[0]); close(_request_pipe[1]); } /* STATIC callbacks */ int ControlOSC::_dummy_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { #ifdef DEBUG cerr << "got path: " << path << endl; #endif return 0; } int ControlOSC::_quit_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->quit_handler (path, types, argv, argc, data); } int ControlOSC::_ping_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->ping_handler (path, types, argv, argc, data); } int ControlOSC::_global_set_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->global_set_handler (path, types, argv, argc, data); } int ControlOSC::_global_get_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->global_get_handler (path, types, argv, argc, data); } int ControlOSC::_updown_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { CommandInfo * cp = static_cast (user_data); return cp->osc->updown_handler (path, types, argv, argc, data, cp); } int ControlOSC::_set_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { CommandInfo * cp = static_cast (user_data); return cp->osc->set_handler (path, types, argv, argc, data, cp); } int ControlOSC::_get_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { CommandInfo * cp = static_cast (user_data); return cp->osc->get_handler (path, types, argv, argc, data, cp); } int ControlOSC::_register_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { CommandInfo * cp = static_cast (user_data); return cp->osc->register_update_handler (path, types, argv, argc, data, cp); } int ControlOSC::_unregister_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { CommandInfo * cp = static_cast (user_data); return cp->osc->unregister_update_handler (path, types, argv, argc, data, cp); } int ControlOSC::_register_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { CommandInfo * cp = static_cast (user_data); return cp->osc->register_auto_update_handler (path, types, argv, argc, data, cp); } int ControlOSC::_unregister_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { CommandInfo * cp = static_cast (user_data); return cp->osc->unregister_auto_update_handler (path, types, argv, argc, data, cp); } int ControlOSC::_loop_add_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->loop_add_handler (path, types, argv, argc, data); } int ControlOSC::_loop_del_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->loop_del_handler (path, types, argv, argc, data); } int ControlOSC::_load_session_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->load_session_handler (path, types, argv, argc, data); } int ControlOSC::_save_session_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->save_session_handler (path, types, argv, argc, data); } int ControlOSC::_register_config_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->register_config_handler (path, types, argv, argc, data); } int ControlOSC::_unregister_config_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->unregister_config_handler (path, types, argv, argc, data); } int ControlOSC::_loadloop_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { CommandInfo * cp = static_cast (user_data); return cp->osc->loadloop_handler (path, types, argv, argc, data, cp); } int ControlOSC::_saveloop_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { CommandInfo * cp = static_cast (user_data); return cp->osc->saveloop_handler (path, types, argv, argc, data, cp); } int ControlOSC::_global_register_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->global_register_update_handler (path, types, argv, argc, data); } int ControlOSC::_global_unregister_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->global_unregister_update_handler (path, types, argv, argc, data); } int ControlOSC::_global_register_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->global_register_auto_update_handler (path, types, argv, argc, data); } int ControlOSC::_global_unregister_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->global_unregister_auto_update_handler (path, types, argv, argc, data); } int ControlOSC::_midi_start_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->midi_start_handler (path, types, argv, argc, data); } int ControlOSC::_midi_stop_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->midi_stop_handler (path, types, argv, argc, data); } int ControlOSC::_midi_tick_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { ControlOSC * osc = static_cast (user_data); return osc->midi_tick_handler (path, types, argv, argc, data); } int ControlOSC::_midi_binding_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { MidiBindCommand * cp = static_cast (user_data); return cp->osc->midi_binding_handler (path, types, argv, argc, data, cp); } /* real callbacks */ int ControlOSC::quit_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { _engine->quit(); return 0; } int ControlOSC::ping_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { string returl (&argv[0]->s); string retpath (&argv[1]->s); validate_returl(returl); bool useid = false; if (argc > 2) { useid = true; } //lo_message msg = (lo_message) data; //lo_address srcaddr = lo_message_get_source (msg); //const char * sport = lo_address_get_port(srcaddr); //int srcport = atoi(sport); //cerr << "got ping from " << srcport << endl; _engine->push_nonrt_event ( new PingEvent (returl, retpath, useid)); return 0; } int ControlOSC::global_get_handler(const char *path, const char *types, lo_arg **argv, int argc,void *data) { // s: param s: returl s: retpath string param (&argv[0]->s); string returl (&argv[1]->s); string retpath (&argv[2]->s); validate_returl(returl); _engine->push_nonrt_event ( new GlobalGetEvent (param, returl, retpath)); return 0; } int ControlOSC::global_set_handler(const char *path, const char *types, lo_arg **argv, int argc,void *data) { // s: param f: val string param(&argv[0]->s); float val = argv[1]->f; lo_message msg = (lo_message) data; lo_address srcaddr = lo_message_get_source (msg); const char * sport = lo_address_get_port(srcaddr); int srcport = atoi(sport); _engine->push_nonrt_event ( new GlobalSetEvent (param, val)); // send out updates to registered in main event loop _engine->push_nonrt_event ( new ConfigUpdateEvent (ConfigUpdateEvent::Send, -2, _cmd_map->to_control_t(param), "", "", val, srcport)); return 0; } int ControlOSC::global_register_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { // un/register_update args= s:ctrl s:returl s:retpath string ctrl (&argv[0]->s); string returl (&argv[1]->s); string retpath (&argv[2]->s); validate_returl(returl); // push this onto a queue for the main event loop to process // -2 means global _engine->push_nonrt_event ( new ConfigUpdateEvent (ConfigUpdateEvent::Register, -2, _cmd_map->to_control_t(ctrl), returl, retpath)); return 0; } int ControlOSC::global_unregister_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { // 1st is return URL string 2nd is retpath string ctrl (&argv[0]->s); string returl (&argv[1]->s); string retpath (&argv[2]->s); validate_returl(returl); // push this onto a queue for the main event loop to process // -2 means global _engine->push_nonrt_event ( new ConfigUpdateEvent (ConfigUpdateEvent::Unregister, -2, _cmd_map->to_control_t(ctrl), returl, retpath)); return 0; } int ControlOSC::global_register_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { // first arg is control string, 2nd is every int millisecs, 3rd is return URL string 4th is retpath string ctrl (&argv[0]->s); short int millisec = argv[1]->i; string returl (&argv[2]->s); string retpath (&argv[3]->s); validate_returl(returl); //round down to the nearest step size millisec -= millisec % AUTO_UPDATE_STEP; if (millisec < AUTO_UPDATE_MIN) millisec = AUTO_UPDATE_MIN; else if (millisec > AUTO_UPDATE_MAX) millisec = AUTO_UPDATE_MAX; // push this onto a queue for the main event loop to process // -2 means global _engine->push_nonrt_event ( new ConfigUpdateEvent (ConfigUpdateEvent::RegisterAuto, -2, _cmd_map->to_control_t(ctrl), returl, retpath,0.0,-1, millisec)); return 0; } int ControlOSC::global_unregister_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { // 1st is return URL string 2nd is retpath string ctrl (&argv[0]->s); string returl (&argv[1]->s); string retpath (&argv[2]->s); validate_returl(returl); // push this onto a queue for the main event loop to process // -2 means global _engine->push_nonrt_event ( new ConfigUpdateEvent (ConfigUpdateEvent::UnregisterAuto, -2, _cmd_map->to_control_t(ctrl), returl, retpath)); return 0; } int ControlOSC::midi_binding_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, MidiBindCommand * info) { if (info->command == MidiBindCommand::GetAllBinding) { // get all midi bindings: s:returl s:retpath string returl (&argv[0]->s); string retpath (&argv[1]->s); validate_returl(returl); _engine->push_nonrt_event ( new MidiBindingEvent (MidiBindingEvent::GetAll, "", "", returl, retpath)); } else if (info->command == MidiBindCommand::RemoveBinding) { // remove a specific midi binding: s:binding_serialization s:options string bindstr (&argv[0]->s); string options (&argv[1]->s); _engine->push_nonrt_event ( new MidiBindingEvent (MidiBindingEvent::Remove, bindstr, options)); } else if (info->command == MidiBindCommand::AddBinding) { // add a specific midi binding: s:binding_serialization s:options string bindstr (&argv[0]->s); string options (&argv[1]->s); _engine->push_nonrt_event ( new MidiBindingEvent (MidiBindingEvent::Add, bindstr, options)); } else if (info->command == MidiBindCommand::LearnBinding) { // add a specific midi binding: s:binding_serialization s:options string bindstr (&argv[0]->s); string options (&argv[1]->s); string returl (&argv[2]->s); string retpath (&argv[3]->s); validate_returl(returl); _engine->push_nonrt_event ( new MidiBindingEvent (MidiBindingEvent::Learn, bindstr, options, returl, retpath)); } else if (info->command == MidiBindCommand::GetNextMidi) { // add a specific midi binding: s:returl s:retpath string returl (&argv[0]->s); string retpath (&argv[1]->s); validate_returl(returl); _engine->push_nonrt_event ( new MidiBindingEvent (MidiBindingEvent::GetNextMidi, "", "", returl, retpath)); } else if (info->command == MidiBindCommand::CancelLearn) { // add a specific midi binding: s:returl s:retpath string returl (&argv[0]->s); string retpath (&argv[1]->s); validate_returl(returl); _engine->push_nonrt_event ( new MidiBindingEvent (MidiBindingEvent::CancelLearn, "", "", returl, retpath)); } else if (info->command == MidiBindCommand::CancelGetNext) { // add a specific midi binding: s:returl s:retpath string returl (&argv[0]->s); string retpath (&argv[1]->s); validate_returl(returl); _engine->push_nonrt_event ( new MidiBindingEvent (MidiBindingEvent::CancelGetNext, "", "", returl, retpath)); } else if (info->command == MidiBindCommand::LoadBindings) { // load from file: s:binding_filename s:options string bindstr (&argv[0]->s); string options (&argv[1]->s); _engine->push_nonrt_event ( new MidiBindingEvent (MidiBindingEvent::Load, bindstr, options)); } else if (info->command == MidiBindCommand::SaveBindings) { // save to file: s:binding_filename s:options string bindstr (&argv[0]->s); string options (&argv[1]->s); _engine->push_nonrt_event ( new MidiBindingEvent (MidiBindingEvent::Save, bindstr, options)); } else if (info->command == MidiBindCommand::ClearAllBindings) { // load from file: s:binding_filename s:options _engine->push_nonrt_event ( new MidiBindingEvent (MidiBindingEvent::Clear, "", "")); } return 0; } int ControlOSC::midi_start_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { _engine->push_sync_event (Event::MidiStart); return 0; } int ControlOSC::midi_stop_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { _engine->push_sync_event (Event::MidiStop); return 0; } int ControlOSC::midi_tick_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { _engine->push_sync_event (Event::MidiTick); return 0; } int ControlOSC::updown_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo *info) { // first arg is a string string cmd(&argv[0]->s); _engine->push_command_event(info->type, _cmd_map->to_command_t(cmd), info->instance); return 0; } int ControlOSC::set_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo *info) { // first arg is a control string, 2nd is float val string ctrl(&argv[0]->s); float val = argv[1]->f; lo_message msg = (lo_message) data; lo_address srcaddr = lo_message_get_source (msg); const char * sport = lo_address_get_port(srcaddr); int srcport = atoi(sport); //cerr << "source is " << srcport << endl; _engine->push_control_event(info->type, _cmd_map->to_control_t(ctrl), val, info->instance, srcport); return 0; } int ControlOSC::loop_add_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { // 1st is an int #channels // 2nd is a float #bytes per channel (if 0, use engine default) int channels = argv[0]->i; float secs = argv[1]->f; int discrete = 1; if (argc > 2) { discrete = argv[2]->i; } _engine->push_nonrt_event ( new ConfigLoopEvent (ConfigLoopEvent::Add, channels, secs, 0, discrete)); return 0; } int ControlOSC::loop_del_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { // 1st is index of loop to delete int index = argv[0]->i; _engine->push_nonrt_event ( new ConfigLoopEvent (ConfigLoopEvent::Remove, 0, 0.0f, index)); return 0; } int ControlOSC::load_session_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { // first arg is fname, 2nd is return URL string 3rd is retpath string fname (&argv[0]->s); string returl (&argv[1]->s); string retpath (&argv[2]->s); validate_returl(returl); // push this onto a queue for the main event loop to process _engine->push_nonrt_event ( new SessionEvent (SessionEvent::Load, fname, returl, retpath)); return 0; } int ControlOSC::save_session_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { // first arg is fname, 2nd is return URL string 3rd is retpath string fname (&argv[0]->s); string returl (&argv[1]->s); string retpath (&argv[2]->s); bool audio = false; validate_returl(returl); if (argc > 3) { audio = (bool) argv[3]->i; } // push this onto a queue for the main event loop to process _engine->push_nonrt_event ( new SessionEvent (SessionEvent::Save, fname, returl, retpath, audio)); return 0; } int ControlOSC::loadloop_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo *info) { // first arg is fname, 2nd is return URL string 3rd is retpath string fname (&argv[0]->s); string returl (&argv[1]->s); string retpath (&argv[2]->s); validate_returl(returl); // push this onto a queue for the main event loop to process _engine->push_nonrt_event ( new LoopFileEvent (LoopFileEvent::Load, info->instance, fname, returl, retpath)); return 0; } int ControlOSC::saveloop_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo *info) { // save loop: s:filename s:format s:endian s:returl s:retpath string fname (&argv[0]->s); string format (&argv[1]->s); string endian (&argv[2]->s); string returl (&argv[3]->s); string retpath (&argv[4]->s); validate_returl(returl); LoopFileEvent::FileFormat fmt = LoopFileEvent::FormatFloat; LoopFileEvent::Endian end = LoopFileEvent::LittleEndian; if (format == "float") { fmt = LoopFileEvent::FormatFloat; } else if (format == "pcm16") { fmt = LoopFileEvent::FormatPCM16; } else if (format == "pcm24") { fmt = LoopFileEvent::FormatPCM24; } else if (format == "pcm32") { fmt = LoopFileEvent::FormatPCM32; } if (endian == "big") { end = LoopFileEvent::BigEndian; } // push this onto a queue for the main event loop to process _engine->push_nonrt_event ( new LoopFileEvent (LoopFileEvent::Save, info->instance, fname, returl, retpath, fmt, end)); return 0; } lo_address ControlOSC::find_or_cache_addr(string returl) { lo_address addr = 0; if (returl.empty()) return 0; if (_retaddr_map.find(returl) == _retaddr_map.end()) { addr = lo_address_new_from_url (returl.c_str()); if (lo_address_errno (addr) < 0) { fprintf(stderr, "addr error %d: %s\n", lo_address_errno(addr), lo_address_errstr(addr)); } _retaddr_map[returl] = addr; } else { addr = _retaddr_map[returl]; } return addr; } int ControlOSC::get_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo *info) { // cerr << "get " << path << endl; // first arg is control string, 2nd is return URL string 3rd is retpath string ctrl (&argv[0]->s); string returl (&argv[1]->s); string retpath (&argv[2]->s); validate_returl(returl); // push this onto a queue for the main event loop to process _engine->push_nonrt_event ( new GetParamEvent (info->instance, _cmd_map->to_control_t(ctrl), returl, retpath)); return 0; } int ControlOSC::register_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo *info) { // first arg is control string, 2nd is return URL string 3rd is retpath string ctrl (&argv[0]->s); string returl (&argv[1]->s); string retpath (&argv[2]->s); validate_returl(returl); // push this onto a queue for the main event loop to process _engine->push_nonrt_event ( new ConfigUpdateEvent (ConfigUpdateEvent::Register, info->instance, _cmd_map->to_control_t(ctrl), returl, retpath)); //cerr << "register update recvd for " << (int)info->instance << " ctrl: " << ctrl << endl; return 0; } int ControlOSC::unregister_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo *info) { // first arg is control string, 2nd is return URL string 3rd is retpath string ctrl (&argv[0]->s); string returl (&argv[1]->s); string retpath (&argv[2]->s); validate_returl(returl); // push this onto a queue for the main event loop to process _engine->push_nonrt_event ( new ConfigUpdateEvent (ConfigUpdateEvent::Unregister, info->instance, _cmd_map->to_control_t(ctrl), returl, retpath)); return 0; } int ControlOSC::register_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo *info) { // first arg is control string, 2nd is every int millisecs, 3rd is return URL string 4th is retpath string ctrl (&argv[0]->s); short int millisec = argv[1]->i; string returl (&argv[2]->s); string retpath (&argv[3]->s); validate_returl(returl); //round down to the nearest step size millisec -= millisec % AUTO_UPDATE_STEP; if (millisec < AUTO_UPDATE_MIN) millisec = AUTO_UPDATE_MIN; else if (millisec > AUTO_UPDATE_MAX) millisec = AUTO_UPDATE_MAX; // push this onto a queue for the main event loop to process _engine->push_nonrt_event ( new ConfigUpdateEvent (ConfigUpdateEvent::RegisterAuto, info->instance, _cmd_map->to_control_t(ctrl), returl, retpath,0.0,-1, millisec)); // cerr << "register autoupdate recvd for " << (int)info->instance << " ctrl: " << ctrl << endl; return 0; } int ControlOSC::unregister_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo *info) { // first arg is control string, 2nd is return URL string 3rd is retpath string ctrl (&argv[0]->s); string returl (&argv[1]->s); string retpath (&argv[2]->s); validate_returl(returl); // push this onto a queue for the main event loop to process _engine->push_nonrt_event ( new ConfigUpdateEvent (ConfigUpdateEvent::UnregisterAuto, info->instance, _cmd_map->to_control_t(ctrl), returl, retpath)); return 0; } int ControlOSC::register_config_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { // 1st is return URL string 2nd is retpath string returl (&argv[0]->s); string retpath (&argv[1]->s); validate_returl(returl); _engine->push_nonrt_event ( new RegisterConfigEvent (RegisterConfigEvent::Register, returl, retpath)); return 0; } int ControlOSC::unregister_config_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data) { // 1st is return URL string 2nd is retpath string returl (&argv[0]->s); string retpath (&argv[1]->s); validate_returl(returl); _engine->push_nonrt_event ( new RegisterConfigEvent (RegisterConfigEvent::Unregister, returl, retpath)); return 0; } void ControlOSC::finish_get_event (GetParamEvent & event) { // called from the main event loop (not osc thread) string ctrl (_cmd_map->to_control_str(event.control)); string returl (event.ret_url); string retpath (event.ret_path); lo_address addr; addr = find_or_cache_addr (returl); if (!addr) { return; } // cerr << "sending to " << returl << " path: " << retpath << " ctrl: " << ctrl << " val: " << event.ret_value << endl; if (lo_send(addr, retpath.c_str(), "isf", event.instance, ctrl.c_str(), event.ret_value) == -1) { fprintf(stderr, "OSC error %d: %s\n", lo_address_errno(addr), lo_address_errstr(addr)); } } void ControlOSC::finish_global_get_event (GlobalGetEvent & event) { // called from the main event loop (not osc thread) string param (event.param); string returl (event.ret_url); string retpath (event.ret_path); lo_address addr; addr = find_or_cache_addr (returl); if (!addr) { return; } // cerr << "sending to " << returl << " path: " << retpath << " ctrl: " << param << " val: " << event.ret_value << endl; if (lo_send(addr, retpath.c_str(), "isf", -2, param.c_str(), event.ret_value) == -1) { fprintf(stderr, "OSC error %d: %s\n", lo_address_errno(addr), lo_address_errstr(addr)); } } void ControlOSC::finish_update_event (ConfigUpdateEvent & event) { // called from the main event loop (not osc thread) lo_address addr; string retpath = event.ret_path; string returl = event.ret_url; string ctrl = _cmd_map->to_control_str (event.control); int source = event.source; if (event.type == ConfigUpdateEvent::Send) { if (event.instance == -1) { for (unsigned int i = 0; i < _engine->loop_count(); ++i) { send_registered_updates (ctrl, event.value, (int) i, source); } } else { send_registered_updates (ctrl, event.value, event.instance, source); } } else if (event.type == ConfigUpdateEvent::Register || event.type == ConfigUpdateEvent::RegisterAuto) { if ((addr = find_or_cache_addr (returl)) == 0) { return; } // add this to register_ctrl map InstancePair ipair(event.instance, ctrl); if (event.type == ConfigUpdateEvent::Register) { ControlRegistrationMap::iterator iter; ControlRegistrationMap * regmap; regmap = &_registration_map; iter = regmap->find (ipair); if (iter == regmap->end()) { (*regmap)[ipair] = UrlList(); iter = regmap->find (ipair); } UrlList & ulist = (*iter).second; UrlPair upair(addr, retpath); if (find(ulist.begin(), ulist.end(), upair) == ulist.end()) { #ifdef DEBUG cerr << "registered " << (int)event.instance << " ctrl: " << ctrl << " " << returl << endl; #endif ulist.push_back (upair); } } else { ControlRegistrationMapAuto::iterator iter; InstancePair ipair(event.instance, ctrl); ControlRegistrationMapAuto * regmap; regmap = &_auto_registration_map; iter = regmap->find (ipair); if (iter == regmap->end()) { (*regmap)[ipair] = UrlListAuto(); iter = regmap->find (ipair); } UrlListAuto & ulist_auto = (*iter).second; UrlListAuto::iterator list_it; UrlPair upair(addr, retpath); UrlPairAuto upair_auto = {upair,event.update_time_ms}; UrlPairAuto upair_dud = {upair,0}; for(list_it = ulist_auto.begin(); list_it != ulist_auto.end(); ++list_it) { if ((*list_it).upair == upair) { if((*list_it).timeout == event.update_time_ms) { break; } else { #ifdef DEBUG cerr << "updated " << (int)event.instance << " ctrl: " << ctrl << " " << returl << " timeout: " << event.update_time_ms << endl; #endif (*list_it).timeout = event.update_time_ms; break; } } } if (list_it == ulist_auto.end()) { #ifdef DEBUG cerr << "registered " << (int)event.instance << " ctrl: " << ctrl << " " << returl << " timeout: " << event.update_time_ms << endl; #endif ulist_auto.push_back(upair_auto); } } } else if (event.type == ConfigUpdateEvent::Unregister || event.type == ConfigUpdateEvent::UnregisterAuto) { if ((addr = find_or_cache_addr (returl)) == 0) { return; } // remove this from register_ctrl map InstancePair ipair(event.instance, ctrl); if (event.type == ConfigUpdateEvent::Unregister) { ControlRegistrationMap * regmap; ControlRegistrationMap::iterator iter; regmap = &_registration_map; iter = regmap->find (ipair); if (iter != regmap->end()) { UrlList & ulist = (*iter).second; UrlPair upair(addr, retpath); UrlList::iterator uiter = find(ulist.begin(), ulist.end(), upair); if (uiter != ulist.end()) { #ifdef DEBUG cerr << "unregistered " << ctrl << " " << returl << endl; #endif ulist.erase (uiter); } } } else { //UnRegisterAuto ControlRegistrationMapAuto * regmap; ControlRegistrationMapAuto::iterator iter; regmap = &_auto_registration_map; iter = regmap->find (ipair); if (iter != regmap->end()) { UrlListAuto & ulist_auto = (*iter).second; UrlPair upair(addr, retpath); UrlPairAuto upair_auto = {upair, 0}; UrlListAuto::iterator list_it; for(list_it = ulist_auto.begin(); list_it != ulist_auto.end(); ++list_it) { if ((*list_it).upair == upair) break; } if (list_it != ulist_auto.end()) { #ifdef DEBUG cerr << "unregistered " << ctrl << " " << returl << endl; #endif ulist_auto.erase (list_it); } } } } } void ControlOSC::finish_loop_config_event (ConfigLoopEvent &event) { if (event.type == ConfigLoopEvent::Remove) { // unregister everything for this instance ControlRegistrationMap::iterator citer = _registration_map.begin(); ControlRegistrationMap::iterator tmp; while ( citer != _registration_map.end()) { if ((*citer).first.first == event.index) { tmp = citer; ++tmp; _registration_map.erase(citer); citer = tmp; } else { ++citer; } } } } void ControlOSC::finish_midi_binding_event (MidiBindingEvent & event) { lo_address addr = find_or_cache_addr (event.ret_url); if (!addr) { return; } if (event.type == MidiBindingEvent::Learn) { // send back the event, then done if (lo_send(addr, event.ret_path.c_str(), "ss", "add", event.bind_str.c_str()) == -1) { fprintf(stderr, "OSC error sending binding %d: %s\n", lo_address_errno(addr), lo_address_errstr(addr)); return; } lo_send(addr, event.ret_path.c_str(), "ss", "done", event.bind_str.c_str()); } else if (event.type == MidiBindingEvent::GetNextMidi) { lo_send(addr, event.ret_path.c_str(), "ss", "recv", event.bind_str.c_str()); } else if (event.type == MidiBindingEvent::CancelLearn) { lo_send(addr, event.ret_path.c_str(), "ss", "learn_cancel", ""); } else if (event.type == MidiBindingEvent::CancelGetNext) { lo_send(addr, event.ret_path.c_str(), "ss", "next_cancel", ""); } } void ControlOSC::send_registered_updates(string ctrl, float val, int instance, int source) { InstancePair ipair(instance, ctrl); ControlRegistrationMap::iterator iter = _registration_map.find (ipair); //LastValueMap::iterator lastval; if (iter != _registration_map.end()) { if ( ! send_registered_updates (iter, ctrl, val, instance, source)) { // remove ipair if false is returned.. no more good registrations _registration_map.erase(ipair); } } else { #ifdef DEBUG //cerr << "not in map: " << instance << " ctrL: " << ctrl << endl; #endif } } void ControlOSC::send_auto_updates (const std::list timeout_list) { ControlRegistrationMapAuto::iterator iter = _auto_registration_map.begin(); ControlRegistrationMapAuto::iterator tmpiter; while (iter != _auto_registration_map.end()) { std::list timeout_after_opt = timeout_list; const InstancePair & ipair = (*iter).first; float val = _engine->get_control_value (_cmd_map->to_control_t(ipair.second), ipair.first); //_engine->ParamChanged(_cmd_map->to_control_t(ipair.second), ipair.first); if ( ! send_registered_auto_updates (iter, ipair, val, timeout_list)) { // remove ipair if false is returned.. no more good registrations tmpiter = iter; ++iter; _auto_registration_map.erase(tmpiter); } else { ++iter; } } } bool ControlOSC::send_registered_auto_updates(ControlRegistrationMapAuto::iterator & iter, const InstancePair & ipair, float val, const std::list timeout_list) { UrlListAuto::iterator tmpurl; UrlListAuto & ulist_auto = (*iter).second; string ctrl = ipair.second; int instance = ipair.first; for (UrlListAuto::iterator url = ulist_auto.begin(); url != ulist_auto.end();) { bool unregister = false; lo_address addr = (*url).upair.first; for (std::list::const_iterator timeout = timeout_list.begin(); timeout != timeout_list.end(); timeout++) { if ((*url).timeout == (*timeout)) { LastValueMap *last_value_map = &_last_value_map[(*url).upair]; //optimize out unecessary updates LastValueMap::iterator lastval = (*last_value_map).find (ipair); if (val != (*lastval).second) { if (lo_send(addr, (*url).upair.second.c_str(), "isf", instance, ctrl.c_str(), val) == -1) unregister = true; else (*last_value_map)[ipair] = val; } break; } } if (unregister) { tmpurl = url; ++url; ulist_auto.erase(tmpurl); } else { ++url; } } if (ulist_auto.empty()) { return false; } return true; } bool ControlOSC::send_registered_updates(ControlRegistrationMap::iterator & iter, string ctrl, float val, int instance, int source) { UrlList::iterator tmpurl; UrlList & ulist = (*iter).second; for (UrlList::iterator url = ulist.begin(); url != ulist.end();) { lo_address addr = (*url).first; const char * port = lo_address_get_port(addr); int aport = atoi (port); if (aport == source) { // ignore if this was caused by a set from this addr //cerr << "ignoreing address to send update for " << ctrl << " port: " << aport << " " << port << endl; } else if (lo_send(addr, (*url).second.c_str(), "isf", instance, ctrl.c_str(), val) == -1) { #ifdef DEBUG fprintf(stderr, "OSC error %d: %s\n", lo_address_errno(addr), lo_address_errstr(addr)); #endif // auto-unregister tmpurl = url; ++url; ulist.erase(tmpurl); continue; } ++url; } if (ulist.empty()) { return false; } return true; } void ControlOSC::finish_register_event (RegisterConfigEvent &event) { AddrPathPair apair(event.ret_url, event.ret_path); AddressList::iterator iter = find (_config_registrations.begin(), _config_registrations.end(), apair); if (iter == _config_registrations.end()) { _config_registrations.push_back (apair); } } void ControlOSC::send_all_config () { // for now just send pingacks to all registered addresses for (AddressList::iterator iter = _config_registrations.begin(); iter != _config_registrations.end(); ++iter) { send_pingack (true, false, (*iter).first, (*iter).second); } } void ControlOSC::send_error (std::string returl, std::string retpath, std::string mesg) { lo_address addr; addr = find_or_cache_addr (returl); if (!addr) { return; } string oururl = get_server_url(); if (lo_send(addr, retpath.c_str(), "ss", oururl.c_str(), mesg.c_str()) < 0) { fprintf(stderr, "OSC error %d: %s\n", lo_address_errno(addr), lo_address_errstr(addr)); } } void ControlOSC::send_pingack (bool useudp, bool use_id, string returl, string retpath) { lo_address addr; addr = find_or_cache_addr (returl); if (!addr) { return; } string oururl; if (!useudp) { oururl = get_unix_server_url(); } // default to udp if (oururl.empty()) { oururl = get_server_url(); } //cerr << "sooperlooper: sending ping response to " << returl << endl; // sends our server URL, the SL version, the loop count, and a unique id for continuity checking if (use_id) { if (lo_send(addr, retpath.c_str(), "ssii", oururl.c_str(), sooperlooper_version, _engine->loop_count(), _engine->get_id()) < 0) { fprintf(stderr, "OSC error %d: %s\n", lo_address_errno(addr), lo_address_errstr(addr)); } } else { if (lo_send(addr, retpath.c_str(), "ssi", oururl.c_str(), sooperlooper_version, _engine->loop_count()) < 0) { fprintf(stderr, "OSC error %d: %s\n", lo_address_errno(addr), lo_address_errstr(addr)); } } } void ControlOSC::send_all_midi_bindings (MidiBindings * bindings, string returl, string retpath) { lo_address addr = find_or_cache_addr (returl); if (!addr) { return; } MidiBindings::BindingList blist; bindings->get_bindings (blist); for (MidiBindings::BindingList::iterator biter = blist.begin(); biter != blist.end(); ++biter) { MidiBindInfo & info = (*biter); if (lo_send(addr, retpath.c_str(), "ss", "add", info.serialize().c_str()) == -1) { fprintf(stderr, "OSC error sending binding %d: %s\n", lo_address_errno(addr), lo_address_errstr(addr)); break; } } lo_send(addr, retpath.c_str(), "ss", "done", ""); } void ControlOSC::validate_returl(std::string & returl) { if (returl.substr(0,10) != "osc.udp://") returl = "osc.udp://" + returl; } sooperlooper-1.7.3~dfsg0/src/midiwizard.slb0000644000175000017500000000135011754453701017500 0ustar miramira# sample midi binding file for sooperlooper # ch type val cmd ctrl instance [min_val_bound max_val_bound scale_style] # # type is one of: 'pc' = program change 'cc' = control change 'n' = note # cmd is one of: hit susnote note down up set # scale_style is one of: gain 0 pc 0 hit undo 0 0 pc 1 hit redo 0 0 pc 2 hit replace 0 0 pc 3 hit reverse 0 0 pc 4 hit scratch 0 0 pc 5 hit record 0 0 pc 6 hit overdub 0 0 pc 7 hit multiply 0 0 pc 8 hit insert 0 0 pc 9 hit mute 0 # 0 cc 0 set feedback 0 0.0 1.0 # 0 cc 1 set dry 0 0.0 1.0 gain # 0 cc 2 set wet 0 0.0 1.0 gain # 0 cc 3 set rate 0 -4.0 4.0 # 0 cc 4 set quantize 0 0 1 # 0 cc 5 set round 0 0 1 # 0 cc 6 set rec_thresh 0 0.0 1.0 gain sooperlooper-1.7.3~dfsg0/src/sooperlooper.cpp0000644000175000017500000002350311755174074020077 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include #include #include #include #include "version.h" #include "control_osc.hpp" #include "engine.hpp" #include "event_nonrt.hpp" #include "midi_bridge.hpp" #include "command_map.hpp" #include // #if WITH_ALSA // #include "alsa_midi_bridge.hpp" // #elif WITH_COREMIDI // #include "coremidi_bridge.hpp" // #endif #include "jack_audio_driver.hpp" using namespace SooperLooper; using namespace std; //extern void sl_init (); //extern void sl_fini (); Engine * engine = 0; int do_shutdown = 0; Transmitter warning (Transmitter::Warning); Transmitter error (Transmitter::Error); #define DEFAULT_OSC_PORT 9951 #define DEFAULT_LOOP_TIME 40.0f char *optstring = "c:l:j:p:m:t:U:S:D:L:qVh"; struct option long_options[] = { { "help", 0, 0, 'h' }, { "quiet", 0, 0, 'q' }, { "channels", 1, 0, 'c' }, { "loopcount", 1, 0, 'l' }, { "looptime", 1, 0, 't' }, { "load-session", 1, 0, 'L' }, { "discrete-io", 1, 0, 'D' }, { "osc-port", 1, 0, 'p' }, { "jack-name", 1, 0, 'j' }, { "jack-server-name", 1, 0, 'S' }, { "load-midi-binding", 1, 0, 'm' }, { "ping-url", 1, 0, 'U' }, { "version", 0, 0, 'V' }, { 0, 0, 0, 0 } }; struct OptionInfo { OptionInfo() : loop_count(1), channels(2), quiet(false), jack_name(""), oscport(DEFAULT_OSC_PORT), loopsecs(DEFAULT_LOOP_TIME), discrete_io(true), show_usage(0), show_version(0), pingurl() {} int loop_count; int channels; bool quiet; string jack_name; string jack_server_name; int oscport; string bindfile; float loopsecs; bool discrete_io; int show_usage; int show_version; string pingurl; string loadsession; }; static void usage(char *argv0) { fprintf(stderr, "SooperLooper %s\nCopyright 2004 Jesse Chappell\nSooperLooper comes with ABSOLUTELY NO WARRANTY\n", sooperlooper_version); fprintf(stderr, "This is free software, and you are welcome to redistribute it\n"); fprintf(stderr, "under certain conditions; see the file COPYING for details\n\n"); fprintf(stderr, "Usage: %s [options...]\n", argv0); fprintf(stderr, "Options:\n"); fprintf(stderr, " -l , --loopcount= number of loopers to create (default is 1)\n"); fprintf(stderr, " -c , --channels= channel count for each looper (default is 2)\n"); fprintf(stderr, " -t , --looptime= number of seconds of loop memory per channel (default is %g), at least\n", DEFAULT_LOOP_TIME); fprintf(stderr, " -L , --load-session= load initial session from pathname\n"); fprintf(stderr, " -D , --discrete-io=[yes] initial loops should have discrete input and output ports (default yes)\n"); fprintf(stderr, " -p , --osc-port= udp port number for OSC server (default is %d)\n", DEFAULT_OSC_PORT); fprintf(stderr, " -j , --jack-name= jack client name, default is sooperlooper\n"); fprintf(stderr, " -S , --jack-server-name= specify jack server name\n"); fprintf(stderr, " -m , --load-midi-binding= loads midi binding from file or preset\n"); fprintf(stderr, " -q , --quiet do not output status to stderr\n"); fprintf(stderr, " -h , --help this usage output\n"); fprintf(stderr, " -V , --version show version only\n"); } static void parse_options (int argc, char **argv, OptionInfo & option_info) { int longopt_index = 0; int c; while ((c = getopt_long (argc, argv, optstring, long_options, &longopt_index)) >= 0) { if (c >= 255) { break; } switch (c) { case 1: /* getopt signals end of '-' options */ break; case 'h': option_info.show_usage++; break; case 'V': option_info.show_version++; break; case 'q': option_info.quiet = true; break; case 'j': option_info.jack_name = optarg; break; case 'S': option_info.jack_server_name = optarg; break; case 'm': option_info.bindfile = optarg; break; case 'c': option_info.channels = (unsigned int) atoi(optarg); break; case 'l': option_info.loop_count = atoi(optarg); break; case 't': sscanf(optarg, "%f", &option_info.loopsecs); break; case 'p': option_info.oscport = atoi(optarg); break; case 'D': option_info.discrete_io = (string("no").compare(optarg) != 0); break; case 'U': option_info.pingurl = optarg; break; case 'L': option_info.loadsession = optarg; break; default: fprintf (stderr, "argument error: %d\n", c); option_info.show_usage++; break; } if (option_info.show_usage > 0) { break; } } } static void* watchdog_thread(void* arg) { sigset_t signalset; int signalno; int exiting = 0; while (!exiting) { sigemptyset(&signalset); /* handle the following signals explicitly */ sigaddset(&signalset, SIGTERM); sigaddset(&signalset, SIGINT); sigaddset(&signalset, SIGHUP); sigaddset(&signalset, SIGPIPE); sigaddset(&signalset, SIGABRT); /* block until a signal received */ sigwait(&signalset, &signalno); fprintf (stderr, "recieved signal %d\n", signalno); if (signalno == SIGHUP) { exiting = 1; } else { exiting = 1; } } if (engine) { engine->quit(); } /* to keep the compilers happy; never actually executed */ return(0); } /** * Sets up a signal mask with sigaction() that blocks * all common signals, and then launces an watchdog * thread that waits on the blocked signals using * sigwait(). */ static void setup_signals() { pthread_t watchdog; int res; /* man pthread_sigmask: * "...signal actions and signal handlers, as set with * sigaction(2), are shared between all threads" */ struct sigaction blockaction; blockaction.sa_handler = SIG_IGN; sigemptyset(&blockaction.sa_mask); blockaction.sa_flags = 0; /* ignore the following signals */ sigaction(SIGTERM, &blockaction, 0); sigaction(SIGINT, &blockaction, 0); sigaction(SIGHUP, &blockaction, 0); sigaction(SIGPIPE, &blockaction, 0); sigaction(SIGABRT, &blockaction, 0); res = pthread_create(&watchdog, NULL, watchdog_thread, NULL); if (res != 0) { fprintf(stderr, "sooperlooper: Warning! Unable to create watchdog thread.\n"); } } int main(int argc, char** argv) { OptionInfo option_info; CommandMap & cmdmap = CommandMap::instance(); //setup_signals(); parse_options (argc, argv, option_info); if (option_info.channels <= 0) { option_info.channels = 1; } if (option_info.loop_count < 0) { option_info.loop_count = 0; } if (option_info.loopsecs <= 0.0f) { option_info.loopsecs = DEFAULT_LOOP_TIME; } if (option_info.show_usage) { usage(argv[0]); exit(1); } if (!option_info.quiet || option_info.show_version) { cerr << "SooperLooper " << sooperlooper_version << endl << "Copyright 2007 Jesse Chappell" << endl; } if (option_info.show_version) { exit(0); } //sl_init (); // create audio driver // todo: a factory AudioDriver * driver = new JackAudioDriver(option_info.jack_name, option_info.jack_server_name); engine = new Engine(); engine->set_default_loop_secs (option_info.loopsecs); engine->set_default_channels (option_info.channels); if (!engine->initialize(driver, 2, option_info.oscport, option_info.pingurl)) { cerr << "cannot initialize sooperlooper\n"; exit (1); } if (!option_info.quiet) { cerr << "OSC server URI (network) is: " << engine->get_osc_url() << endl; //cerr << "OSC server URI (local unix socket) is: " << engine->get_osc_url(false) << endl; } if (option_info.loadsession.empty()) { for (int i=0; i < option_info.loop_count; ++i) { engine->add_loop ((unsigned int) option_info.channels, option_info.loopsecs, option_info.discrete_io); } // set default sync source if (option_info.loop_count > 0) { engine->push_nonrt_event ( new GlobalSetEvent ("sync_source", 1.0f)); } } else { // load session instead engine->load_session (option_info.loadsession); } if (!driver->activate()) { exit(1); } if (!option_info.pingurl.empty()) { // notify whoever asked as to which will be the spawner engine->get_control_osc()->send_pingack (true, true, option_info.pingurl); } MidiBridge * midibridge = 0; #if WITH_ALSA // start up alsamidi bridge MIDI::PortRequest portreq (driver->get_name(), "sooperlooper", "duplex", "alsa/sequencer"); midibridge = new MidiBridge(driver->get_name(), portreq); #elif WITH_COREMIDI MIDI::PortRequest portreq (driver->get_name(), driver->get_name(), "duplex", "coremidi"); midibridge = new MidiBridge(driver->get_name(), portreq); #endif if (midibridge && midibridge->is_ok()) { engine->set_midi_bridge(midibridge); if (!option_info.bindfile.empty()) { engine->load_midi_bindings(option_info.bindfile, false, cmdmap); //midibridge->bindings().load_bindings (option_info.bindfile); } } // go into engine's non-rt event loop // this returns when we quit or signal handler causes it to engine->mainloop(); if (midibridge) { delete midibridge; } driver->deactivate(); usleep(200000); driver->set_engine(0); delete engine; delete driver; //sl_fini (); return 0; } sooperlooper-1.7.3~dfsg0/src/command_map.cpp0000644000175000017500000002676311754453700017630 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include "command_map.hpp" using namespace SooperLooper; using namespace std; CommandMap * CommandMap::_instance = 0; CommandMap::CommandMap() { // initialize string maps _str_type_map["down"] = Event::type_cmd_down; _str_type_map["up"] = Event::type_cmd_up; _str_type_map["upforce"] = Event::type_cmd_upforce; _str_type_map["hit"] = Event::type_cmd_hit; _str_type_map["set"] = Event::type_control_change; _str_type_map["get"] = Event::type_control_request; _str_type_map["g_set"] = Event::type_global_control_change; _str_type_map["sync"] = Event::type_sync; for (StringTypeMap::iterator iter = _str_type_map.begin(); iter != _str_type_map.end(); ++iter) { _type_str_map[(*iter).second] = (*iter).first; } _str_cmd_map["record"] = Event::RECORD; _str_cmd_map["overdub"] = Event::OVERDUB; _str_cmd_map["multiply"] = Event::MULTIPLY; _str_cmd_map["insert"] = Event::INSERT; _str_cmd_map["replace"] = Event::REPLACE; _str_cmd_map["reverse"] = Event::REVERSE; _str_cmd_map["mute"] = Event::MUTE; _str_cmd_map["undo"] = Event::UNDO; _str_cmd_map["redo"] = Event::REDO; _str_cmd_map["scratch"] = Event::SCRATCH; _str_cmd_map["trigger"] = Event::TRIGGER; _str_cmd_map["oneshot"] = Event::ONESHOT; _str_cmd_map["substitute"] = Event::SUBSTITUTE; _str_cmd_map["undo_all"] = Event::UNDO_ALL; _str_cmd_map["redo_all"] = Event::REDO_ALL; _str_cmd_map["mute_on"] = Event::MUTE_ON; _str_cmd_map["mute_off"] = Event::MUTE_OFF; _str_cmd_map["mute_trigger"] = Event::MUTE_TRIGGER; _str_cmd_map["pause"] = Event::PAUSE; _str_cmd_map["pause_on"] = Event::PAUSE_ON; _str_cmd_map["pause_off"] = Event::PAUSE_OFF; _str_cmd_map["solo"] = Event::SOLO; _str_cmd_map["solo_next"] = Event::SOLO_NEXT; _str_cmd_map["solo_prev"] = Event::SOLO_PREV; _str_cmd_map["record_solo"] = Event::RECORD_SOLO; _str_cmd_map["record_solo_next"] = Event::RECORD_SOLO_NEXT; _str_cmd_map["record_solo_prev"] = Event::RECORD_SOLO_PREV; _str_cmd_map["set_sync_pos"] = Event::SET_SYNC_POS; _str_cmd_map["reset_sync_pos"] = Event::RESET_SYNC_POS; _str_cmd_map["record_or_overdub"] = Event::RECORD_OR_OVERDUB; _str_cmd_map["record_exclusive"] = Event::RECORD_EXCLUSIVE; _str_cmd_map["record_exclusive_next"] = Event::RECORD_EXCLUSIVE_NEXT; _str_cmd_map["record_exclusive_prev"] = Event::RECORD_EXCLUSIVE_PREV; _str_cmd_map["record_or_overdub_excl"] = Event::RECORD_OR_OVERDUB_EXCL; _str_cmd_map["record_or_overdub_excl_next"] = Event::RECORD_OR_OVERDUB_EXCL_NEXT; _str_cmd_map["record_or_overdub_excl_prev"] = Event::RECORD_OR_OVERDUB_EXCL_PREV; _str_cmd_map["record_or_overdub_solo"] = Event::RECORD_OR_OVERDUB_SOLO; _str_cmd_map["record_or_overdub_solo_next"] = Event::RECORD_OR_OVERDUB_SOLO_NEXT; _str_cmd_map["record_or_overdub_solo_prev"] = Event::RECORD_OR_OVERDUB_SOLO_PREV; _str_cmd_map["record_or_overdub_solo_trig"] = Event::RECORD_OR_OVERDUB_SOLO_TRIG; _str_cmd_map["record_overdub_end_solo"] = Event::RECORD_OVERDUB_END_SOLO; _str_cmd_map["record_overdub_end_solo_trig"] = Event::RECORD_OVERDUB_END_SOLO_TRIG; for (StringCommandMap::iterator iter = _str_cmd_map.begin(); iter != _str_cmd_map.end(); ++iter) { _cmd_str_map[(*iter).second] = (*iter).first; } add_input_control("rec_thresh", Event::TriggerThreshold, UnitGain, 0.0f, 1.0f, 0.0f); add_input_control("feedback", Event::Feedback, UnitPercent, 0.0f, 1.0f, 1.0f); add_input_control("use_feedback_play", Event::UseFeedbackPlay, UnitBoolean, 0.0f, 1.0f, 0.0f); add_input_control("dry", Event::DryLevel, UnitGain, 0.0f, 1.0f, 0.0f); add_input_control("wet", Event::WetLevel, UnitGain, 0.0f, 1.0f, 1.0f); add_input_control("rate", Event::Rate, UnitRatio, 0.25f, 4.0f, 1.0f); add_input_control("scratch_pos", Event::ScratchPosition, UnitRatio, 0.0f, 1.0f, 0.0f); add_input_control("delay_trigger", Event::TapDelayTrigger, UnitGeneric, 0.0f, 1.0f, 0.0f); add_input_control("quantize", Event::Quantize, UnitIndexed, 0.0f, 6.0f, 0.0f); add_input_control("round", Event::Round, UnitBoolean); add_input_control("redo_is_tap", Event::RedoTap, UnitBoolean); add_input_control("sync", Event::SyncMode, UnitBoolean); add_input_control("playback_sync", Event::PlaybackSync, UnitBoolean); add_input_control("use_rate", Event::UseRate, UnitBoolean); add_input_control("fade_samples", Event::FadeSamples, UnitSamples, 0.0f, 4096.0f, 64.0f); add_input_control("use_safety_feedback", Event::UseSafetyFeedback, UnitBoolean, 0.0f, 1.0f, 1.0f); add_input_control("relative_sync", Event::RelativeSync, UnitBoolean); add_input_control("input_latency", Event::InputLatency, UnitSamples, 0.0f, 32768.0f, 0.0f); add_input_control("output_latency", Event::OutputLatency, UnitSamples, 0.0f, 32768.0f, 0.0f); add_input_control("trigger_latency", Event::TriggerLatency, UnitSamples, 0.0f, 32768.0f, 0.0f); add_input_control("autoset_latency", Event::AutosetLatency, UnitBoolean, 0.0f, 1.0f, 1.0f); add_input_control("mute_quantized", Event::MuteQuantized, UnitBoolean); add_input_control("overdub_quantized", Event::OverdubQuantized, UnitBoolean); add_input_control("replace_quantized", Event::ReplaceQuantized, UnitBoolean); //_input_controls["eighth_per_cycle_loop"] = Event::EighthPerCycleLoop; //_input_controls["tempo_input"] = Event::TempoInput; add_input_control("input_gain", Event::InputGain, UnitGain, 0.0f, 1.0f, 1.0f); add_input_control("use_common_ins", Event::UseCommonIns, UnitBoolean, 0.0f, 1.0f, 1.0f); add_input_control("use_common_outs", Event::UseCommonOuts, UnitBoolean, 0.0f, 1.0f, 1.0f); add_input_control("pan_1", Event::PanChannel1, UnitGeneric, 0.0f, 1.0f, 0.5f); add_input_control("pan_2", Event::PanChannel2, UnitGeneric, 0.0f, 1.0f, 0.5f); add_input_control("pan_3", Event::PanChannel3, UnitGeneric, 0.0f, 1.0f, 0.5f); add_input_control("pan_4", Event::PanChannel4, UnitGeneric, 0.0f, 1.0f, 0.5f); add_input_control("stretch_ratio", Event::StretchRatio, UnitRatio, 0.5f, 4.0f, 1.0f); add_input_control("pitch_shift", Event::PitchShift, UnitSemitones, -12.0f, 12.0f, 0.0f); add_input_control("tempo_stretch", Event::TempoStretch, UnitBoolean); add_input_control("round_integer_tempo", Event::RoundIntegerTempo, UnitBoolean); add_input_control("jack_timebase_master", Event::JackTimebaseMaster, UnitBoolean); _str_ctrl_map.insert (_input_controls.begin(), _input_controls.end()); // outputs add_output_control("waiting", Event::Waiting, UnitBoolean); add_output_control("state", Event::State, UnitIndexed, -1.0f, 20.0f); add_output_control("next_state", Event::NextState, UnitIndexed, -1.0f, 20.0f); add_output_control("loop_len", Event::LoopLength, UnitSeconds, 0.0f, 1e6); add_output_control("loop_pos", Event::LoopPosition, UnitSeconds, 0.0f, 1e6); add_output_control("cycle_len", Event::CycleLength, UnitSeconds, 0.0f, 1e6); add_output_control("free_time", Event::FreeTime, UnitSeconds, 0.0f, 1e6); add_output_control("total_time", Event::TotalTime, UnitSeconds, 0.0f, 1e6); add_output_control("rate_output", Event::TrueRate, UnitGeneric, 0.0f, 8.0f); add_output_control("has_discrete_io", Event::HasDiscreteIO, UnitBoolean); add_output_control("channel_count", Event::ChannelCount, UnitInteger, 0.0f, 16.0f); add_output_control("in_peak_meter", Event::InPeakMeter, UnitGeneric, 0.0f, 4.0f); add_output_control("out_peak_meter", Event::OutPeakMeter, UnitGeneric, 0.0f, 4.0f); add_output_control("is_soloed", Event::IsSoloed, UnitBoolean); _str_ctrl_map.insert (_output_controls.begin(), _output_controls.end()); // control events _event_controls["midi_start"] = Event::MidiStart; _event_controls["midi_stop"] = Event::MidiStop; _event_controls["midi_tick"] = Event::MidiTick; _str_ctrl_map.insert (_event_controls.begin(), _event_controls.end()); // global params add_global_control("tempo", Event::Tempo, UnitTempo, 0.0f, 1000.0f, 120.0f); add_global_control("eighth_per_cycle", Event::EighthPerCycle, UnitIndexed, 0.0, 2048.0f); add_global_control("sync_source", Event::SyncTo, UnitIndexed, -5.0f, 16.0f); add_global_control("tap_tempo", Event::TapTempo, UnitGeneric); add_global_control("save_loop", Event::SaveLoop); add_global_control("auto_disable_latency", Event::AutoDisableLatency, UnitBoolean, 0.0f, 1.0f, 1.0f); add_global_control("select_next_loop", Event::SelectNextLoop); add_global_control("select_prev_loop", Event::SelectPrevLoop); add_global_control("select_all_loops", Event::SelectAllLoops); add_global_control("selected_loop_num", Event::SelectedLoopNum, UnitIndexed, -1.0f, 32.0f); add_global_control("output_midi_clock", Event::OutputMidiClock, UnitBoolean, 0.0f, 1.0f, 1.0f); add_global_control("smart_eighths", Event::SmartEighths, UnitBoolean, 0.0f, 1.0f, 1.0f); add_global_control("use_midi_start", Event::UseMidiStart, UnitBoolean, 0.0f, 1.0f, 1.0f); add_global_control("use_midi_stop", Event::UseMidiStop, UnitBoolean, 0.0f, 1.0f, 1.0f); add_global_control("send_midi_start_on_trigger", Event::SendMidiStartOnTrigger, UnitBoolean, 0.0f, 1.0f, 1.0f); _str_ctrl_map.insert (_global_controls.begin(), _global_controls.end()); // reverse it for (StringControlMap::iterator iter = _str_ctrl_map.begin(); iter != _str_ctrl_map.end(); ++iter) { _ctrl_str_map[(*iter).second] = (*iter).first; } } void CommandMap::get_commands (list & cmdlist) { for (StringCommandMap::iterator iter = _str_cmd_map.begin(); iter != _str_cmd_map.end(); ++iter) { cmdlist.push_back ((*iter).first); } } void CommandMap::get_controls (list & ctrllist) { for (StringControlMap::iterator iter = _str_ctrl_map.begin(); iter != _str_ctrl_map.end(); ++iter) { ctrllist.push_back ((*iter).first); } } void CommandMap::get_global_controls (list & ctrllist) { for (StringControlMap::iterator iter = _global_controls.begin(); iter != _global_controls.end(); ++iter) { ctrllist.push_back ((*iter).first); } } bool CommandMap::get_control_info(const std::string & ctrl, ControlInfo & info) { ControlInfoMap::iterator found = _ctrl_info_map.find(ctrl); if (found != _ctrl_info_map.end()) { info = found->second; return true; } return false; } void CommandMap::add_input_control(const std::string & name, Event::control_t ctrl, ControlUnit unit, float minVal, float maxVal, float defaultVal) { _input_controls[name] = ctrl; _ctrl_info_map[name] = ControlInfo(name, ctrl, unit, minVal, maxVal, defaultVal); } void CommandMap::add_output_control(const std::string & name, Event::control_t ctrl, ControlUnit unit, float minVal, float maxVal, float defaultVal) { _output_controls[name] = ctrl; _ctrl_info_map[name] = ControlInfo(name, ctrl, unit, minVal, maxVal, defaultVal); } void CommandMap::add_global_control(const std::string & name, Event::control_t ctrl, ControlUnit unit, float minVal, float maxVal, float defaultVal) { _global_controls[name] = ctrl; _ctrl_info_map[name] = ControlInfo(name, ctrl, unit, minVal, maxVal, defaultVal); } sooperlooper-1.7.3~dfsg0/src/jack_audio_driver.cpp0000644000175000017500000002565111754453701021015 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include #include #include #include "jack_audio_driver.hpp" #include "engine.hpp" using namespace SooperLooper; using namespace PBD; using namespace std; JackAudioDriver::JackAudioDriver(string client_name, string serv_name) : AudioDriver(client_name, serv_name) { _timebase_master = false; } JackAudioDriver::~JackAudioDriver() { if (_jack) { jack_deactivate (_jack); jack_client_close (_jack); } } bool JackAudioDriver::initialize(string client_name) { if (!client_name.empty()) { _client_name = client_name; } if (connect_to_jack ()) { cerr << "cannot connect to jack" << endl; return false; } _samplerate = jack_get_sample_rate (_jack); _buffersize = jack_get_buffer_size (_jack); if (jack_set_process_callback (_jack, _process_callback, this) != 0) { cerr << "cannot set process callback" << endl; return false; } if (jack_set_buffer_size_callback (_jack, _buffersize_callback, this) != 0) { cerr << "cannot set buffersize callback" << endl; } return true; } bool JackAudioDriver::activate() { if (_jack) { if (jack_activate (_jack)) { cerr << "cannot activate JACK" << endl; return false; } return true; } return false; } bool JackAudioDriver::deactivate() { if (_jack) { if (jack_deactivate (_jack)) { cerr << "cannot deactivate JACK" << endl; return false; } return true; } return false; } static void our_jack_error(const char * err) { // cerr << "Jack error: " << err << endl; } int JackAudioDriver::connect_to_jack () { jack_set_error_function (our_jack_error); _jack = 0; #ifdef HAVE_JACK_CLIENT_OPEN jack_options_t options = JackNullOption; jack_status_t status; const char *server_name = NULL; // support for server name if (!_server_name.empty()) { server_name = _server_name.c_str(); } if (_client_name.empty()) { _client_name = "sooperlooper"; } _jack = jack_client_open (_client_name.c_str(), options, &status, server_name); if (!_jack) { return -1; } if (status & JackServerStarted) { cerr << "JACK server started" << endl; } if (status & JackNameNotUnique) { _client_name = jack_get_client_name (_jack); } #else char namebuf[100]; /* try to become a client of the JACK server */ if (_client_name.empty()) { // find a name predictably for (int i=1; i < 10; i++) { snprintf(namebuf, sizeof(namebuf)-1, "sooperlooper_%d", i); if ((_jack = jack_client_new (namebuf)) != 0) { _client_name = namebuf; break; } } } else { // try the passed name, or base a predictable name from it if ((_jack = jack_client_new (_client_name.c_str())) == 0) { for (int i=1; i < 10; i++) { snprintf(namebuf, sizeof(namebuf)-1, "%s_%d", _client_name.c_str(), i); if ((_jack = jack_client_new (namebuf)) != 0) { _client_name = namebuf; break; } } } } if (!_jack) { return -1; } #endif jack_set_xrun_callback (_jack, _xrun_callback, this); jack_on_shutdown (_jack, _shutdown_callback, this); jack_set_graph_order_callback (_jack, _conn_changed_callback, this); set_timebase_master(_timebase_master); return 0; } int JackAudioDriver::_xrun_callback (void* arg) { cerr << "got xrun" << endl; return 0; } void JackAudioDriver::_shutdown_callback (void* arg) { cerr << "jack shut us down" << endl; return; } int JackAudioDriver::_buffersize_callback (jack_nframes_t nframes, void* arg) { return static_cast (arg)->buffersize_callback (nframes); } int JackAudioDriver::buffersize_callback (jack_nframes_t nframes) { if (_engine) { _buffersize = nframes; _engine->buffersize_changed (nframes); } return 0; } int JackAudioDriver::_process_callback (jack_nframes_t nframes, void* arg) { return static_cast (arg)->process_callback (nframes); } int JackAudioDriver::process_callback (jack_nframes_t nframes) { if (_engine) { _engine->process (nframes); } return 0; } int JackAudioDriver::_conn_changed_callback (void* arg) { return static_cast (arg)->conn_changed_callback (); } int JackAudioDriver::conn_changed_callback () { ConnectionsChanged(); // emit return 0; } bool JackAudioDriver::create_input_port (std::string name, port_id_t & portid) { if (!_jack) return false; jack_port_t * port; if ((port = jack_port_register (_jack, name.c_str(), JACK_DEFAULT_AUDIO_TYPE, JackPortIsInput, 0)) == 0) { cerr << "JackAudioDriver: cannot register input port" << endl; return false; } { //LockMonitor mon(_port_lock, __LINE__, __FILE__); _input_ports.push_back (port); portid = _input_ports.size(); } return true; } bool JackAudioDriver::create_output_port (std::string name, port_id_t & portid) { if (!_jack) return false; jack_port_t * port; if ((port = jack_port_register (_jack, name.c_str(), JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0)) == 0) { cerr << "JackAudioDriver: cannot register input port" << endl; return false; } { //LockMonitor mon(_port_lock, __LINE__, __FILE__); _output_ports.push_back (port); portid = _output_ports.size(); } return true; } bool JackAudioDriver::destroy_output_port (port_id_t portid) { jack_port_t * port = 0; //LockMonitor mon(_port_lock, __LINE__, __FILE__); if (portid <= _output_ports.size() && portid > 0) { port = _output_ports[portid-1]; _output_ports[portid-1] = 0; return (jack_port_unregister (_jack, port) == 0); } return false; } bool JackAudioDriver::destroy_input_port (port_id_t portid) { jack_port_t * port = 0; //LockMonitor mon(_port_lock, __LINE__, __FILE__); if (portid <= _input_ports.size() && portid > 0) { port = _input_ports[portid-1]; _input_ports[portid-1] = 0; return (jack_port_unregister (_jack, port) == 0); } return false; } sample_t * JackAudioDriver::get_input_port_buffer (port_id_t port, nframes_t nframes) { // not locked if (!_jack || port > _input_ports.size() || port == 0) return 0; return (sample_t*) jack_port_get_buffer (_input_ports[port-1], nframes); } sample_t * JackAudioDriver::get_output_port_buffer (port_id_t port, nframes_t nframes) { // not locked if (!_jack || port > _output_ports.size() || port == 0) return 0; return (sample_t*) jack_port_get_buffer (_output_ports[port-1], nframes); } nframes_t JackAudioDriver::get_input_port_latency (port_id_t port) { if (!_jack || port > _input_ports.size() || port == 0) return 0; return jack_port_get_total_latency (_jack, _input_ports[port-1]); } nframes_t JackAudioDriver::get_output_port_latency (port_id_t port) { if (!_jack || port > _output_ports.size() || port == 0) return 0; return jack_port_get_total_latency (_jack, _output_ports[port-1]); } void JackAudioDriver::set_transport_info (const TransportInfo &info) { _transport_info = info; } bool JackAudioDriver::set_timebase_master(bool flag) { bool ret = true; if (_jack) { if (flag) { ret = (jack_set_timebase_callback (_jack, 0, _timebase_callback, this) == 0); if (!ret) { _timebase_master = false; } //cerr << "sett jack timebase to " << _timebase_master << " ret is: " << ret << endl; } else if (_timebase_master) { ret = (jack_release_timebase(_jack) == 0); _timebase_master = false; } } if (ret) { _timebase_master = flag; } return ret; } bool JackAudioDriver::get_transport_info (TransportInfo &info) { if (!_jack) return false; jack_position_t tpos; jack_transport_state_t tstate; tstate = jack_transport_query( _jack, &tpos); switch ( tstate ) { case JackTransportStopped: info.state = TransportInfo::STOPPED; break; case JackTransportRolling: info.state = TransportInfo::ROLLING; break; case JackTransportStarting: info.state = TransportInfo::STOPPED; break; default: break; //errorLog( "[updateTransportInfo] Unknown jack transport state" ); } if ( tpos.valid & JackPositionBBT ) { info.bpm = tpos.beats_per_minute; } info.last_framepos = info.framepos; info.framepos = tpos.frame; return true; } void JackAudioDriver::_timebase_callback(jack_transport_state_t state, jack_nframes_t nframes, jack_position_t *pos, int new_pos, void *arg) { static_cast (arg)->timebase_callback (state, nframes, pos, new_pos); } void JackAudioDriver::timebase_callback(jack_transport_state_t state, jack_nframes_t nframes, jack_position_t *pos, int new_pos) { // FIXME! static const double time_ticks_per_beat = 1920.0; pos->beats_per_minute = _transport_info.bpm; //cerr << "timebase callback bpm: " << _transport_info.bpm << endl; pos->beats_per_bar = _transport_info.beats_per_bar > 0 ? _transport_info.beats_per_bar : 4.0; pos->beat_type = _transport_info.beat_type; pos->ticks_per_beat = time_ticks_per_beat; // we got nothin' special for the other stuff yet, so use example if (new_pos || !(pos->valid & JackPositionBBT)) { /* Compute BBT info from frame number. This is relatively * simple here, but would become complex if we supported tempo * or time signature changes at specific locations in the * transport timeline. */ double minute = pos->frame / ((double) pos->frame_rate * 60.0); long abs_tick = (long) (minute * pos->beats_per_minute * pos->ticks_per_beat); long abs_beat = (long) (abs_tick / pos->ticks_per_beat); pos->bar = (int) (abs_beat / pos->beats_per_bar); pos->beat = (int) (abs_beat - (pos->bar * pos->beats_per_bar) + 1); pos->tick = (int) (abs_tick - (abs_beat * pos->ticks_per_beat)); pos->bar_start_tick = (int) (pos->bar * pos->beats_per_bar * pos->ticks_per_beat); pos->bar++; /* adjust start to bar 1 */ } else { /* Compute BBT info based on previous period. */ pos->tick += (int) ( nframes * pos->ticks_per_beat * pos->beats_per_minute / (pos->frame_rate * 60)); while (pos->tick >= pos->ticks_per_beat) { pos->tick -= (int) pos->ticks_per_beat; if (++pos->beat > pos->beats_per_bar) { pos->beat = 1; ++pos->bar; pos->bar_start_tick += pos->beats_per_bar * pos->ticks_per_beat; } } } pos->valid = JackPositionBBT; } void JackAudioDriver::reposition_transport(nframes_t framepos) { if (_jack) { // this will take effect in two cycles, so lets add two cycles to the time ? (cheating, wrong?) jack_transport_locate(_jack, framepos + 2*_buffersize); } } sooperlooper-1.7.3~dfsg0/src/oxy8.slb0000644000175000017500000000144511754453701016251 0ustar miramira# midi binding file for sooperlooper # ch type val cmd ctrl instance [min_val_bound max_val_bound scale_style] # type is one of: 'pc' = program change 'cc' = control change 'on' = note on # 'off' = note off # cmd is one of: note down up set # scale_style is one of: gain 0 n 49 note undo 0 0 n 51 note redo 0 #0 n 2 note replace 0 0 n 56 note reverse 0 0 n 55 note scratch 0 0 n 48 note record 0 0 n 50 note overdub 0 0 n 52 note multiply 0 #0 n 8 note insert 0 0 n 54 note mute 0 0 cc 1 set feedback 0 0.0 1.0 0 cc 7 set scratch_pos 0 0.0 1.0 0 cc 7 set dry 0 0.0 1.0 gain 0 cc 71 set wet 0 0.0 1.0 gain 0 cc 16 set rate 0 -4.0 4.0 0 cc 81 set quantize 0 0 1 0 cc 91 set round 0 0 1 #0 cc 17 set rec_thresh 0 0.0 1.0 gain sooperlooper-1.7.3~dfsg0/src/plugin.hpp0000644000175000017500000002224112230566075016643 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_plugin_hpp__ #define __sooperlooper_plugin_hpp__ #include "ladspa.h" // TODO, move the whole looping core into a class namespace SooperLooper { enum ControlPort { TriggerThreshold = 0, DryLevel, WetLevel, Feedback, Rate, ScratchPosition, Multi, TapDelayTrigger, UseFeedbackPlay, Quantize, Round, RedoTap, Sync, UseRate, FadeSamples, TempoInput, PlaybackSync, EighthPerCycleLoop, UseSafetyFeedback, InputLatency, OutputLatency, TriggerLatency, MuteQuantized, OverdubQuantized, SyncOffsetSamples, RoundIntegerTempo, LASTCONTROLPORT, RelativeSync // not an enum }; enum OutputPort { State = 26, LoopLength, LoopPosition, CycleLength, LoopFreeMemory, LoopMemory, Waiting, TrueRate, NextState, LASTPORT }; enum AudioPort { AudioInputPort=35, AudioOutputPort, SyncInputPort, SyncOutputPort, PORT_COUNT // must be last }; enum { QUANT_OFF=0, QUANT_CYCLE, QUANT_8TH, QUANT_LOOP }; enum LooperState { LooperStateUnknown = -1, LooperStateOff = 0, LooperStateWaitStart, LooperStateRecording, LooperStateWaitStop, LooperStatePlaying, LooperStateOverdubbing, LooperStateMultiplying, LooperStateInserting, LooperStateReplacing, LooperStateDelay, LooperStateMuted, LooperStateScratching, LooperStateOneShot, LooperStateSubstitute, LooperStatePaused, LooperStateUndoAll, LooperStateTriggerPlay, LooperStateUndo, LooperStateRedo, LooperStateRedoAll, LooperStateOffMuted = 20 }; }; /*****************************************************************************/ // defines all a loop needs to know to cycle properly in memory // one of these will prefix the actual loop data in our buffer memory typedef struct _LoopChunk { /* pointers in buffer memory. */ //LADSPA_Data * pLoopStart; //LADSPA_Data * pLoopStop; // index into main sample buffer unsigned long lLoopStart; //unsigned long lLoopStop; unsigned long lLoopLength; // adjustment needed in the case of multiply/insert unsigned long lStartAdj; unsigned long lEndAdj; unsigned long lInsPos; // used only by INSERT mode unsigned long lRemLen; // used only by INSERT mode // markers needed for frontfilling and backfilling unsigned long lMarkL; unsigned long lMarkH; unsigned long lMarkEndL; unsigned long lMarkEndH; unsigned long lSyncOffset; // used for rel sync long lSyncPos; // used for retriggering long lOrigSyncPos; int firsttime; int frontfill; int backfill; int valid; int mult_out; // used for multi-increase unsigned long lCycles; unsigned long lCycleLength; // current position is double to support alternative rates easier double dCurrPos; // used when doing frontfills LADSPA_Data dOrigFeedback; // the loop where we should be frontfilled and backfilled from struct _LoopChunk* srcloop; struct _LoopChunk* next; struct _LoopChunk* prev; } LoopChunk; /* Instance data */ typedef struct { LADSPA_Data fSampleRate; /* the sample memory */ //LADSPA_Data * pfSampleBuf; LADSPA_Data * pSampleBuf; unsigned int lLoopIndex; unsigned int lChannelIndex; /* Buffer size, IS necessarily a power of two. */ unsigned long lBufferSize; unsigned long lBufferSizeMask; LADSPA_Data * pInputBuf; unsigned long lInputBufSize; unsigned long lInputBufMask; unsigned long lInputBufReadPos; unsigned long lInputBufWritePos; long lFramesUntilInput; // used for input latency compensation long lFramesUntilFilled; // used to fill the gaps right after a record // the loopchunk pool LoopChunk * pLoopChunks; LoopChunk * lastLoopChunk; unsigned long lLoopChunkCount; LADSPA_Data fTotalSecs; /* the current state of the sampler */ int state; int nextState; bool wasMuted; double dPausedPos; bool safetyFeedback; int waitingForSync; bool recSyncEnded; long lLastMultiCtrl; // initial location of params LADSPA_Data fQuantizeMode; LADSPA_Data fRoundMode; LADSPA_Data fRedoTapMode; LADSPA_Data fSyncMode; LADSPA_Data fMuteQuantized; LADSPA_Data fOverdubQuantized; bool bReplaceQuantized; // used only when in DELAY mode int bHoldMode; bool donePlaySync; bool rounding; unsigned long lTapTrigSamples; LADSPA_Data fLastOverTrig; unsigned long lOverTrigSamples; unsigned long lRampSamples; LADSPA_Data fCurrRate; LADSPA_Data fNextCurrRate; LADSPA_Data fLastScratchVal; unsigned long lScratchSamples; LADSPA_Data fCurrScratchRate; LADSPA_Data fLastRateSwitch; int bRateCtrlActive; LADSPA_Data fLastTapCtrl; int bPreTap; // linked list of loop chunks LoopChunk * headLoopChunk; LoopChunk * tailLoopChunk; unsigned int lHeadLoopChunk; unsigned int lTailLoopChunk; LADSPA_Data fWetCurr; LADSPA_Data fWetTarget; LADSPA_Data fDryCurr; LADSPA_Data fDryTarget; LADSPA_Data fRateCurr; LADSPA_Data fRateTarget; LADSPA_Data fScratchPosCurr; LADSPA_Data fScratchPosTarget; LADSPA_Data fFeedbackCurr; LADSPA_Data fFeedbackTarget; LADSPA_Data fLoopFadeAtten; LADSPA_Data fLoopFadeDelta; LADSPA_Data fLoopSrcFadeAtten; LADSPA_Data fLoopSrcFadeDelta; LADSPA_Data fPlayFadeAtten; LADSPA_Data fPlayFadeDelta; LADSPA_Data fFeedFadeAtten; LADSPA_Data fFeedFadeDelta; LADSPA_Data fFeedSrcFadeAtten; LADSPA_Data fFeedSrcFadeDelta; LADSPA_Data fLoopXfadeTime; unsigned int lSamplesSinceSync; /* Ports: ------ */ LADSPA_Data * pfWet; LADSPA_Data * pfDry; /* Feedback 0 for none, 1 for infinite */ LADSPA_Data * pfFeedback; /* Trigger level for record and stop record */ LADSPA_Data * pfTrigThresh; /* The rate of loop playback, if RateSwitch is on */ LADSPA_Data * pfRate; /* The destination position in the loop to scratch to. 0 is the start */ /* and 1.0 is the end of the loop. Only active if RateSwitch is on */ LADSPA_Data * pfScratchPos; /* The multicontrol port. Each value from (0-127) has a * meaning. This is considered a momentary control, thus * ANY change to a value within the value range is only * noticed at the moment it changes from something different. * If you want to do two identical values in a row, you must change * the value to something outside our range for a cycle before using * the real value again. */ LADSPA_Data * pfMultiCtrl; LADSPA_Data * pfUseFeedbackPlay; /* changes on this control signal with more than TAP_THRESH_SAMP samples * between them (to handle settle time) is treated as a a TAP Delay trigger */ LADSPA_Data *pfTapCtrl; /* non zero here toggle quantize and round mode * WARNING: the plugin may set this value internally... cause I want * it controllable (via mute mode) */ LADSPA_Data *pfQuantMode; LADSPA_Data *pfRoundMode; LADSPA_Data *pfSyncMode; LADSPA_Data *pfPlaybackSyncMode; LADSPA_Data *pfRateCtrlActive; LADSPA_Data *pfMuteQuantized; LADSPA_Data *pfOverdubQuantized; LADSPA_Data *pfSyncOffsetSamples; LADSPA_Data *pfRoundIntegerTempo; LADSPA_Data *pfXfadeSamples; LADSPA_Data *pfTempo; LADSPA_Data *pfEighthPerCycle; LADSPA_Data *pfUseSafetyFeedback; LADSPA_Data *pfInputLatency; LADSPA_Data *pfOutputLatency; LADSPA_Data *pfTriggerLatency; /* if non zero, the redo command is treated like a tap trigger */ LADSPA_Data *pfRedoTapMode; /* Input audio port data location. */ LADSPA_Data * pfInput; /* Output audio port data location. */ LADSPA_Data * pfOutput; LADSPA_Data * pfSyncInput; LADSPA_Data * pfSyncOutput; /* Control outputs */ LADSPA_Data * pfStateOut; LADSPA_Data * pfLoopLength; LADSPA_Data * pfLoopPos; LADSPA_Data * pfCycleLength; /* how many seconds of loop memory free and total */ LADSPA_Data * pfSecsFree; LADSPA_Data * pfSecsTotal; LADSPA_Data * pfWaiting; LADSPA_Data * pfRateOutput; LADSPA_Data * pfNextStateOut; } SooperLooperI; // reads loop audio into buffer, up to frames length, starting from loop_offset. if fewer frames are // available returns amount read. if 0 is returned loop is done. extern unsigned long sl_read_current_loop_audio (LADSPA_Handle instance, float * buf, unsigned long frames, unsigned long loop_offset); // override current samples since sync extern void sl_set_samples_since_sync (LADSPA_Handle instance, unsigned long frames); extern void sl_set_replace_quantized (LADSPA_Handle instance, bool value); extern bool sl_get_replace_quantized (LADSPA_Handle instance); extern void sl_set_loop_index (LADSPA_Handle instance, unsigned int index, unsigned int chan); extern bool sl_has_loop (const LADSPA_Handle instance); #endif sooperlooper-1.7.3~dfsg0/src/looper.cpp0000644000175000017500000014500612442350556016645 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #if HAVE_CONFIG_H #include #endif #include "looper.hpp" #include #include #include #include #include #include #include #ifdef HAVE_SNDFILE #include #endif #include #include "ladspa.h" #include "plugin.hpp" #include "filter.hpp" #include "engine.hpp" #include "utils.hpp" #include "panner.hpp" #include "command_map.hpp" using namespace std; using namespace SooperLooper; using namespace PBD; using namespace RubberBand; extern LADSPA_Descriptor* create_sl_descriptor (); extern void cleanup_sl_descriptor (LADSPA_Descriptor *); static const double MinResamplingRate = 0.25f; static const double MaxResamplingRate = 8.0f; static const int SrcAudioQuality = SRC_LINEAR; Looper::Looper (AudioDriver * driver, unsigned int index, unsigned int chan_count, float loopsecs, bool discrete) : _driver (driver), _index(index), _chan_count(chan_count), _loopsecs(loopsecs) { initialize (index, chan_count, loopsecs, discrete); } Looper::Looper (AudioDriver * driver, XMLNode & node) : _driver (driver) { _index = 0; // set from state _chan_count = 1; // set from state _loopsecs = 80.0f; _have_discrete_io = false; _is_soloed = false; if (set_state (node) < 0) { cerr << "Set state errored" << endl; initialize (_index, _chan_count); // default backup } } bool Looper::initialize (unsigned int index, unsigned int chan_count, float loopsecs, bool discrete) { char tmpstr[100]; int dummyerror; _index = index; _chan_count = chan_count; _ok = false; requested_cmd = -1; last_requested_cmd = -1; request_pending = false; _input_ports = 0; _output_ports = 0; _instances = 0; _buffersize = 0; _use_sync_buf = 0; _our_syncin_buf = 0; _our_syncout_buf = 0; _dummy_buf = 0; _tmp_io_bufs = 0; _running_frames = 0; _use_common_ins = true; _use_common_outs = true; _auto_latency = true; // default for now _disable_latency = false; _last_trigger_latency = 0.0f; _last_input_latency = 0.0f; _last_output_latency = 0.0f; _have_discrete_io = discrete; _curr_dry = 0.0f; _target_dry = 0.0f; _curr_input_gain = 1.0f; _targ_input_gain = 1.0f; _input_peak = 0.0f; _output_peak = 0.0f; _panner = 0; _relative_sync = false; descriptor = 0; _pre_solo_muted = false; _stretch_ratio = 1.0; _pitch_shift = 0.0; _stretch_buffer = 0; _tempo_stretch = false; _pending_stretch = false; _pending_stretch_ratio = 0.0; _is_soloed = false; if (!descriptor) { descriptor = create_sl_descriptor (); } _instances = new LADSPA_Handle[_chan_count]; _input_ports = new port_id_t[_chan_count]; _output_ports = new port_id_t[_chan_count]; // SRC stuff _in_src_states = new SRC_STATE*[_chan_count]; _out_src_states = new SRC_STATE*[_chan_count]; memset (_in_src_states, 0, sizeof(SRC_STATE*) * _chan_count); memset (_out_src_states, 0, sizeof(SRC_STATE*) * _chan_count); _insync_src_state = src_new (SRC_LINEAR, 1, &dummyerror); _outsync_src_state = src_new (SRC_LINEAR, 1, &dummyerror); _src_sync_buffer = 0; _src_in_buffer = 0; _src_buffer_len = 0; _src_in_ratio = 1.0; _src_out_ratio = 1.0; _lp_filter = new OnePoleFilter*[_chan_count]; memset (_lp_filter, 0, sizeof(OnePoleFilter*) * _chan_count); _tmp_io_bufs = new float*[_chan_count]; memset(_tmp_io_bufs, 0, sizeof(float *) * _chan_count); nframes_t srate = _driver->get_samplerate(); // rubberband stretch stuff _in_stretcher = new RubberBandStretcher(srate, _chan_count, RubberBandStretcher::OptionProcessRealTime | RubberBandStretcher::OptionTransientsCrisp); _out_stretcher = new RubberBandStretcher(srate, _chan_count, RubberBandStretcher::OptionProcessRealTime | RubberBandStretcher::OptionTransientsCrisp); set_buffer_size(_driver->get_buffersize()); memset (_instances, 0, sizeof(LADSPA_Handle) * _chan_count); memset (_input_ports, 0, sizeof(port_id_t) * _chan_count); memset (_output_ports, 0, sizeof(port_id_t) * _chan_count); memset (ports, 0, sizeof(float) * LASTPORT); memset(_down_stamps, 0, sizeof(nframes_t) * (Event::LAST_COMMAND+1)); /* for (int i=0; i < (int) Event::LAST_COMMAND+1; ++i) { _down_stamps[i] = 1 << 31; } */ _longpress_frames = (nframes_t) lrint (srate * 1.0); // more than 1 secs is SUS _doubletap_frames = (nframes_t) lrint (srate * 0.5); // less than 0.5 sec is double tap _falloff_per_sample = 30.0f / srate; // 30db per second falloff // set some rational defaults ports[DryLevel] = 0.0f; ports[WetLevel] = 1.0f; ports[Feedback] = 1.0f; ports[Rate] = 1.0f; ports[Multi] = -1.0f; ports[Sync] = 0.0f; ports[Quantize] = 0.0f; ports[UseRate] = 0.0f; ports[FadeSamples] = 64.0f; ports[PlaybackSync] = 0.0f; ports[UseSafetyFeedback] = 1.0f; ports[TriggerLatency] = 0; ports[MuteQuantized] = 0; ports[RoundIntegerTempo] = 0; _slave_sync_port = (_relative_sync && ports[Sync]) ? 2.0f : 1.0f; // TODO: fix hack to specify loop length char looptimestr[20]; snprintf(looptimestr, sizeof(looptimestr), "%f", loopsecs); setenv("SL_SAMPLE_TIME", looptimestr, 1); for (unsigned int i=0; i < _chan_count; ++i) { _tmp_io_bufs[i] = new float[_buffersize]; if ((_instances[i] = descriptor->instantiate (descriptor, srate)) == 0) { return false; } sl_set_loop_index(_instances[i], (int)_index, i); if (_have_discrete_io) { snprintf(tmpstr, sizeof(tmpstr), "loop%d_in_%d", _index, i+1); if (!_driver->create_input_port (tmpstr, _input_ports[i])) { cerr << "cannot register loop input port\n"; _have_discrete_io = false; } snprintf(tmpstr, sizeof(tmpstr), "loop%d_out_%d", _index, i+1); if (!_driver->create_output_port (tmpstr, _output_ports[i])) { cerr << "cannot register loop output port\n"; _have_discrete_io = false; } } /* connect all scalar ports to data values */ for (unsigned long n = 0; n < LASTPORT; ++n) { descriptor->connect_port (_instances[i], n, &ports[n]); } // connect dedicated Sync port to all other channels if (i > 0) { descriptor->connect_port (_instances[i], Sync, &_slave_sync_port); descriptor->connect_port (_instances[i], State, &_slave_dummy_port); descriptor->connect_port (_instances[i], LoopLength, &_slave_dummy_port); descriptor->connect_port (_instances[i], LoopPosition, &_slave_dummy_port); descriptor->connect_port (_instances[i], CycleLength, &_slave_dummy_port); descriptor->connect_port (_instances[i], LoopFreeMemory, &_slave_dummy_port); descriptor->connect_port (_instances[i], LoopMemory, &_slave_dummy_port); descriptor->connect_port (_instances[i], Waiting, &_slave_dummy_port); descriptor->connect_port (_instances[i], TrueRate, &_slave_dummy_port); } descriptor->activate (_instances[i]); _lp_filter[i] = new OnePoleFilter(srate); // SRC stuff _in_src_states[i] = src_new (SrcAudioQuality, 1, &dummyerror); _out_src_states[i] = src_new (SrcAudioQuality, 1, &dummyerror); _lp_filter[i]->set_cutoff (_src_in_ratio * _lp_filter[i]->get_samplerate() * 0.48f); } size_t comnouts = _driver->get_engine()->get_common_output_count(); _panner = 0; if (comnouts > 1) { // we really only support panning to 2 outputs right now _panner = new Panner("pan"); _panner->reset (comnouts, _chan_count); if (_chan_count == 1) { (*_panner)[0]->set_position (0.5f); } else if (_chan_count == 2) { (*_panner)[0]->set_position (0.0f); (*_panner)[1]->set_position (1.0f); } else { // eh, no good defaults } } _ok = true; return _ok; } Looper::~Looper () { destroy(); if (descriptor) { cleanup_sl_descriptor (descriptor); } } void Looper::destroy() { for (unsigned int i=0; i < _chan_count; ++i) { if (_instances[i]) { if (descriptor->deactivate) { descriptor->deactivate (_instances[i]); } if (descriptor->cleanup) { descriptor->cleanup (_instances[i]); } _instances[i] = 0; } if (_input_ports[i]) { _driver->destroy_input_port (_input_ports[i]); _input_ports[i] = 0; } if (_output_ports[i]) { _driver->destroy_output_port (_output_ports[i]); _output_ports[i] = 0; } if (_out_src_states[i]) { src_delete (_out_src_states[i]); } if (_in_src_states[i]) { src_delete (_in_src_states[i]); } if (_lp_filter[i]) { delete _lp_filter[i]; } if (_tmp_io_bufs[i]) { delete _tmp_io_bufs[i]; } } delete [] _instances; delete [] _input_ports; delete [] _output_ports; if (_our_syncin_buf) delete [] _our_syncin_buf; if (_our_syncout_buf) delete [] _our_syncout_buf; if (_dummy_buf) delete [] _dummy_buf; if (_tmp_io_bufs) delete [] _tmp_io_bufs; delete [] _lp_filter; if (_panner) { delete _panner; } // SRC stuff delete [] _in_src_states; delete [] _out_src_states; if (_insync_src_state) src_delete (_insync_src_state); if (_outsync_src_state) src_delete (_outsync_src_state); if (_src_sync_buffer) delete [] _src_sync_buffer; if (_src_in_buffer) delete [] _src_in_buffer; // rubberband delete _in_stretcher; delete _out_stretcher; if (_stretch_buffer) { delete [] _stretch_buffer; _stretch_buffer = 0; } } void Looper::set_use_common_ins (bool val) { _use_common_ins = val; } void Looper::set_use_common_outs (bool val) { _use_common_outs = val; } void Looper::use_sync_buf(sample_t * buf) { if (buf) { _use_sync_buf = buf; } else { _use_sync_buf = _our_syncin_buf; } } void Looper::set_samples_since_sync(nframes_t ssync) { // this is a bit of a hack for (unsigned int i=0; i < _chan_count; ++i) { sl_set_samples_since_sync(_instances[i], ssync); } } void Looper::set_replace_quantized(bool flag) { // this is a bit of a hack for (unsigned int i=0; i < _chan_count; ++i) { sl_set_replace_quantized(_instances[i], flag); } } void Looper::set_soloed (int index, bool value, bool retrigger) { if (index != (int) _index) { // someone else is being soloed (or unsoloed), note our mute state, then mute self if (value) { if (ports[State] != LooperStateMuted || ports[State] != LooperStateOffMuted) { _pre_solo_muted = false; Event ev; ev.Type = Event::type_cmd_hit; ev.Command = Event::MUTE_ON; do_event(&ev); } else { _pre_solo_muted = true; } _is_soloed = false; } else { // they are being unsoloed, restore our mute state if (!_pre_solo_muted) { Event ev; ev.Type = Event::type_cmd_hit; ev.Command = Event::MUTE_OFF; do_event(&ev); } } } else { // we are the target of the solo _is_soloed = value; if (value && ports[State] == LooperStateMuted) { // ensure we are not muted if we are soloed Event ev; ev.Type = Event::type_cmd_hit; if (retrigger) { ev.Command = Event::TRIGGER; } else { ev.Command = Event::MUTE_OFF; } do_event(&ev); } } } bool Looper::finish_state() { Event ev; ev.Type = Event::type_cmd_hit; ev.Command = Event::UNKNOWN; switch ((int)ports[State]) { case LooperStateRecording: ev.Command = Event::RECORD; break; case LooperStateOverdubbing: ev.Command = Event::OVERDUB; break; case LooperStateMultiplying: ev.Command = Event::MULTIPLY; break; case LooperStateReplacing: ev.Command = Event::REPLACE; break; case LooperStateSubstitute: ev.Command = Event::SUBSTITUTE; break; case LooperStateInserting: ev.Command = Event::INSERT; break; default: break; } if (ev.Command != Event::UNKNOWN) { do_event(&ev); /* for (unsigned int i=0; i < _chan_count; ++i) { // run it for 0 frames just to change state descriptor->run (_instances[i], 0); } */ return true; } return false; } void Looper::set_buffer_size (nframes_t bufsize) { if (_buffersize != bufsize) { //cerr << "setting buffer size to " << bufsize << endl; if (_use_sync_buf == _our_syncin_buf) { _use_sync_buf = 0; } if (_our_syncin_buf) { delete [] _our_syncin_buf; } if (_our_syncout_buf) delete [] _our_syncout_buf; if (_dummy_buf) delete [] _dummy_buf; for (size_t i=0; i < _chan_count; ++i) { if (_tmp_io_bufs[i]) { delete [] _tmp_io_bufs[i]; } _tmp_io_bufs[i] = new float[_buffersize]; } _buffersize = bufsize; _our_syncin_buf = new float[_buffersize]; _our_syncout_buf = new float[_buffersize]; // big enough for use with resampling too _dummy_buf = new float[(nframes_t) ceil (_buffersize * MaxResamplingRate)]; if (_use_sync_buf == 0) { _use_sync_buf = _our_syncin_buf; } if (_src_sync_buffer) delete [] _src_sync_buffer; if (_src_in_buffer) delete [] _src_in_buffer; _src_buffer_len = (nframes_t) ceil (_buffersize * MaxResamplingRate); _src_sync_buffer = new float[_src_buffer_len]; _src_in_buffer = new float[_src_buffer_len]; _stretch_buffer = new float[_src_buffer_len * _chan_count]; // set automatic latency values if appropriate recompute_latencies(); } } void Looper::set_disable_latency_compensation(bool val) { if (val != _disable_latency) { _disable_latency = val; if (val) { _last_trigger_latency = ports[TriggerLatency]; _last_input_latency = ports[InputLatency]; _last_output_latency = ports[OutputLatency] ; } else { ports[TriggerLatency] = _last_trigger_latency; ports[InputLatency] = _last_input_latency; ports[OutputLatency] = _last_output_latency; } recompute_latencies(); } } void Looper::recompute_latencies() { // auto? if (_auto_latency) { ports[TriggerLatency] = _buffersize; // jitter correction ports[InputLatency] = _driver->get_input_port_latency(_input_ports[0]); if (_use_common_ins) { port_id_t comnport = 0; if (_driver->get_engine()->get_common_input (0, comnport)) { ports[InputLatency] = _driver->get_input_port_latency(comnport); } } ports[OutputLatency] = _driver->get_output_port_latency(_output_ports[0]); if (_use_common_outs) { port_id_t comnport = 0; if (_driver->get_engine()->get_common_output (0, comnport)) { ports[OutputLatency] = _driver->get_output_port_latency(comnport); } } } if (_disable_latency) { ports[TriggerLatency] = 0; // should we? ports[InputLatency] = 0; ports[OutputLatency] = 0; } // add any latency due to timestretch if (_stretch_ratio != 1.0) { //ports[OutputLatency] += _out_stretcher->getLatency(); ports[SyncOffsetSamples] = _out_stretcher->getLatency(); } //cerr << "input lat: " << ports[InputLatency] << endl; //cerr << "output lat: " << ports[OutputLatency] << endl; } bool Looper::has_loop() const { return (_instances && _instances[0] && sl_has_loop(_instances[0])); } float Looper::get_control_value (Event::control_t ctrl) { int index = (int) ctrl; float pan_pos; if (ctrl == Event::DryLevel) { //return _curr_dry; return _target_dry; } else if (index >= 0 && index < LASTPORT) { return ports[index]; } else if (ctrl == Event::OutPeakMeter) { return _output_peak; } else if (ctrl == Event::InPeakMeter) { return _input_peak; } else if (ctrl == Event::InputGain) { return _curr_input_gain; } else if (ctrl == Event::ReplaceQuantized) { return sl_get_replace_quantized(_instances[0]) ? 1.0f : 0.0f; } else if (ctrl == Event::RelativeSync) { return _relative_sync; } else if (ctrl == Event::UseCommonOuts) { return _use_common_outs; } else if (ctrl == Event::UseCommonIns) { return _use_common_ins; } else if (ctrl == Event::HasDiscreteIO) { return _have_discrete_io; } else if (ctrl == Event::AutosetLatency) { return _auto_latency; } else if (ctrl == Event::IsSoloed) { return _is_soloed ? 1.0f : 0.0f; } else if (ctrl == Event::StretchRatio) { return _stretch_ratio; } else if (ctrl == Event::PitchShift) { return _pitch_shift; } else if (ctrl == Event::TempoStretch) { return _tempo_stretch ? 1.0f: 0.0f; } // i wish i could do something better for this else if (ctrl == Event::PanChannel1) { if (_panner && _panner->size() > 0) { (*_panner)[0]->get_position (pan_pos); return pan_pos; } } else if (ctrl == Event::PanChannel2) { if (_panner && _panner->size() > 1) { (*_panner)[1]->get_position (pan_pos); return pan_pos; } } else if (ctrl == Event::PanChannel3) { if (_panner && _panner->size() > 2) { (*_panner)[2]->get_position (pan_pos); return pan_pos; } } else if (ctrl == Event::PanChannel4) { if (_panner && _panner->size() > 3) { (*_panner)[3]->get_position (pan_pos); return pan_pos; } } else if (ctrl == Event::ChannelCount) { return (float) _chan_count; } return 0.0f; } void Looper::set_port (ControlPort n, float val) { switch ((int)n) { case DryLevel: _target_dry = val; break; case RelativeSync: _relative_sync = val; break; case Event::ReplaceQuantized: set_replace_quantized(val > 0.0f ? true : false); break; case TempoInput: if (_tempo_stretch && ports[CycleLength] != 0.0f) { // new ratio is origtempo/newtempo double tempo = (30.0 * ports[EighthPerCycleLoop] / ports[CycleLength]); //cerr << "tempo calc: " << tempo << " tempo input: " << val << endl; // clamp it if close to the same tempo = (abs(tempo-val) < 0.001) ? val: tempo; double newratio = min(4.0, max(0.5, tempo / (double) val)); _pending_stretch_ratio = newratio; _pending_stretch = true; } // fallthrough intentional default: ports[n] = val; break; } } bool Looper::is_longpress (int cmd) { if ((int) cmd >= 0 && (int) cmd < (int) Event::LAST_COMMAND) { return (_down_stamps[cmd] > 0 && _running_frames > (_down_stamps[cmd] + _longpress_frames)); } return false; } void Looper::do_event (Event *ev) { if (ev->Type == Event::type_cmd_hit) { Event::command_t cmd = ev->Command; requested_cmd = cmd; request_pending = true; //fprintf(stderr, "Got HIT cmd: %d\n", cmd); // a few special commands have double-tap logic if (cmd == Event::RECORD_OR_OVERDUB || cmd == Event::RECORD_OR_OVERDUB_EXCL || cmd == Event::RECORD_OR_OVERDUB_SOLO) { if (_down_stamps[cmd] > 0 && _running_frames < (_down_stamps[cmd] + _doubletap_frames)) { // we actually need to undo twice! requested_cmd = Event::UNDO_TWICE; } _down_stamps[cmd] = _running_frames; } } else if (ev->Type == Event::type_cmd_down) { Event::command_t cmd = ev->Command; if ((int) cmd >= 0 && (int) cmd < (int) Event::LAST_COMMAND) { requested_cmd = cmd; request_pending = true; // fprintf(stderr, "Got DOWN cmd: %d\n", cmd); // a few special commands have double-tap logic if (cmd == Event::RECORD_OR_OVERDUB || cmd == Event::RECORD_OR_OVERDUB_EXCL || cmd == Event::RECORD_OR_OVERDUB_SOLO) { if (_down_stamps[cmd] > 0 && _running_frames < (_down_stamps[cmd] + _doubletap_frames)) { // we actually need to undo twice! requested_cmd = Event::UNDO_TWICE; } } _down_stamps[cmd] = _running_frames; } } else if (ev->Type == Event::type_cmd_up || ev->Type == Event::type_cmd_upforce) { // do if release after long press, but not if already in Play Event::command_t cmd = ev->Command; if ((int) cmd >= 0 && (int) cmd < (int) Event::LAST_COMMAND) { if (ports[State] != LooperStatePlaying || cmd == Event::REVERSE || cmd == Event::DELAY || cmd == Event::UNDO || cmd == Event::REDO) { if (ev->Type == Event::type_cmd_upforce) { // special case if current state is mult or insert // and the cmd is mult or insert and we're not quantized // a SUS action here really means an unrounded action if (ports[Quantize] == 0.0f && ((ports[State] == LooperStateMultiplying && cmd == Event::MULTIPLY) || (ports[State] == LooperStateInserting && cmd == Event::INSERT))) { // this really should be handled down in the plugin cmd = Event::RECORD; } //cerr << "force up" << endl; requested_cmd = cmd; request_pending = true; } else if (_down_stamps[cmd] > 0 && _running_frames > (_down_stamps[cmd] + _longpress_frames)) { //cerr << "long up" << endl; requested_cmd = cmd; request_pending = true; // long press undo and redo become their -all versions if (cmd == Event::UNDO) { requested_cmd = Event::UNDO_ALL; } else if (cmd == Event::REDO) { requested_cmd = Event::REDO_ALL; } else if (cmd == Event::RECORD_OR_OVERDUB || cmd == Event::RECORD_OR_OVERDUB_EXCL || cmd == Event::RECORD_OR_OVERDUB_SOLO || cmd == Event::RECORD_OVERDUB_END_SOLO) { // longpress of this turns into undo all for one-button goodness requested_cmd = Event::UNDO_ALL; } } } //fprintf(stderr, "Got UP cmd: %d req: %d\n", cmd, requested_cmd); _down_stamps[cmd] = 0; } } else if (ev->Type == Event::type_control_change) { // todo: specially handle TriggerThreshold to work across all channels if ((int)ev->Control >= (int)Event::TriggerThreshold && (int)ev->Control < (int) Event::State) { if (ev->Control == Event::Rate) { // uses _src_in_ratio = (double) max (MinResamplingRate, min ((double)ev->Value, MaxResamplingRate)); _src_out_ratio = (double) 1.0 / max (MinResamplingRate, min ((double) ev->Value, MaxResamplingRate)); src_set_ratio (_insync_src_state, _src_in_ratio); src_set_ratio (_outsync_src_state, _src_out_ratio); for (unsigned int i=0; i < _chan_count; ++i) { src_set_ratio (_in_src_states[i], _src_in_ratio); src_set_ratio (_out_src_states[i], _src_out_ratio); // set lp cutoff at adjusted SR/2 _lp_filter[i]->set_cutoff (_src_in_ratio * _lp_filter[i]->get_samplerate() * 0.48); } } switch (ev->Control) { case Event::DryLevel: _target_dry = ev->Value; break; case Event::Quantize: ev->Value = roundf(ev->Value); // passthru is intentional default: ports[ev->Control] = ev->Value; //cerr << "set port " << ev->Control << " to: " << ev->Value << endl; break; } } else if (ev->Control == Event::InputGain) { _targ_input_gain = ev->Value; } else if (ev->Control == Event::RelativeSync) { _relative_sync = ev->Value > 0.0f; } else if (ev->Control == Event::UseCommonIns) { _use_common_ins = ev->Value > 0.0f; } else if (ev->Control == Event::UseCommonOuts) { _use_common_outs = ev->Value > 0.0f; } else if (ev->Control == Event::AutosetLatency) { _auto_latency = ev->Value > 0.0f; recompute_latencies(); } else if (ev->Control == Event::PanChannel1) { if (_panner && _panner->size() > 0) { (*_panner)[0]->set_position (ev->Value); } } else if (ev->Control == Event::PanChannel2) { if (_panner && _panner->size() > 1) { (*_panner)[1]->set_position (ev->Value); } } else if (ev->Control == Event::PanChannel3) { if (_panner && _panner->size() > 2) { (*_panner)[2]->set_position (ev->Value); } } else if (ev->Control == Event::PanChannel4) { if (_panner && _panner->size() > 3) { (*_panner)[3]->set_position (ev->Value); } } else if (ev->Control == Event::ReplaceQuantized) { set_replace_quantized(ev->Value > 0.0f ? true : false); } else if (ev->Control == Event::PitchShift) { _pitch_shift = ev->Value; // in semitones _out_stretcher->setPitchScale(pow(2.0, _pitch_shift / 12.0)); } else if (ev->Control == Event::StretchRatio) { _pending_stretch_ratio = min(4.0, max(0.25, (double) ev->Value)); _pending_stretch = true; } else if (ev->Control == Event::TempoStretch) { _tempo_stretch = ev->Value > 0.0; if (_tempo_stretch && ports[CycleLength] != 0.0f) { double tempo = (30.0 * ports[EighthPerCycleLoop] / ports[CycleLength]); //cerr << "tempo calc: " << tempo << endl; // clamp it if close to the same tempo = (abs(tempo-ports[TempoInput]) < 0.001) ? ports[TempoInput]: tempo; _pending_stretch_ratio = min(4.0, max(0.5, (double) tempo / ports[TempoInput])); _pending_stretch = true; } } } // todo other stuff } void Looper::run (nframes_t offset, nframes_t nframes) { // this is the audio thread TentativeLockMonitor lm (_loop_lock, __LINE__, __FILE__); if (!lm.locked()) { // treat as bypassed if (_have_discrete_io) { for (unsigned int i=0; i < _chan_count; ++i) { sample_t * inbuf = _driver->get_input_port_buffer (_input_ports[i], _buffersize); sample_t * outbuf = _driver->get_output_port_buffer (_output_ports[i], _buffersize); if (inbuf && outbuf) { for (nframes_t n=0; n < nframes; ++n) { outbuf[n] = flush_to_zero (inbuf[n] * _curr_dry * _curr_input_gain); } } } } return; } _running_frames += nframes; if (request_pending) { if (ports[Multi] == requested_cmd) { /* defer till next call */ ports[Multi] = -1; //fprintf(stderr,"Deferred to next run\n"); } else { ports[Multi] = requested_cmd; request_pending = false; //fprintf(stderr,"Requested mode: %d\n", requested_cmd); if (requested_cmd == Event::RECORD && ports[State] != LooperStateRecording) { // record cmd, lets reset stretch and pitch ratios to 1 always _pending_stretch_ratio = _stretch_ratio = 1.0; _pending_stretch = true; _pitch_shift = 0.0; _out_stretcher->setPitchScale(pow(2.0, _pitch_shift / 12.0)); } } } else if (ports[Multi] >= 0) { ports[Multi] = -1; //fprintf(stderr,"Reset to -1\n"); //cerr << "reset to -1\n"; } // deal with any pending stretch ratio change from non-rt context if (_pending_stretch) { double newratio = _pending_stretch_ratio; if (_stretch_ratio == 1.0 && newratio != 1.0) { _in_stretcher->reset(); _out_stretcher->reset(); } _stretch_ratio = newratio; _in_stretcher->setTimeRatio(1.0/_stretch_ratio); _out_stretcher->setTimeRatio(_stretch_ratio); _pending_stretch = false; recompute_latencies(); } LADSPA_Data oldsync = ports[Sync]; // ignore sync if we are using our own syncin/outbuf if (_use_sync_buf == _our_syncin_buf || _use_sync_buf == _our_syncout_buf) { ports[Sync] = 0.0f; _slave_sync_port = 1.0f; } else if (_relative_sync && ports[Sync] > 0.0f) { // used for recSync relative mode ports[Sync] = 2.0f; _slave_sync_port = 2.0; } else { _slave_sync_port = 1.0; } // do fixed peak meter falloff _input_peak = flush_to_zero (f_clamp (DB_CO (CO_DB(_input_peak) - nframes * _falloff_per_sample), 0.0f, 20.0f)); _output_peak = flush_to_zero (f_clamp (DB_CO (CO_DB(_output_peak) - nframes * _falloff_per_sample), 0.0f, 20.0f)); run_loops (offset, nframes); /* if (ports[Rate] == 1.0f) { run_loops (offset, nframes); } else { #ifdef HAVE_SAMPLERATE run_loops_resampled (offset, nframes); #else run_loops (offset, nframes); #endif } */ ports[Sync] = oldsync; } void Looper::run_loops (nframes_t offset, nframes_t nframes) { //LADSPA_Data * inbuf = 0 , *outbuf = 0, *real_inbuf = 0; nframes_t alt_frames = nframes; float currdry = _curr_dry; float curr_ing = _curr_input_gain; float ing_delta = flush_to_zero (_targ_input_gain - _curr_input_gain) / max((nframes_t) 1, (nframes - 1)); float dry_delta = flush_to_zero (_target_dry - _curr_dry) / max((nframes_t) 1, (nframes - 1)); bool resampled = ports[Rate] != 1.0f; bool stretched = _stretch_ratio != 1.0; bool pitched = _pitch_shift != 0.0; if (resampled) { _src_data.end_of_input = 0; // resample input audio and sync using Rate _src_data.src_ratio = _src_in_ratio; _src_data.input_frames = nframes; _src_data.output_frames = (long) ceil (nframes * _src_in_ratio); // sync input _src_data.data_in = _use_sync_buf + offset; _src_data.data_out = _src_sync_buffer; src_process (_insync_src_state, &_src_data); alt_frames = _src_data.output_frames_gen; } // get common outputs size_t comnouts = _driver->get_engine()->get_common_output_count(); sample_t* com_obufs[comnouts]; for (size_t n=0; n < comnouts; ++n) { com_obufs[n] = _driver->get_engine()->get_common_output_buffer (n); if (com_obufs[n]) { com_obufs[n] += offset; } } // input bufs sample_t* inbufs[_chan_count]; sample_t* real_inbufs[_chan_count]; sample_t* outbufs[_chan_count]; for (unsigned int i=0; i < _chan_count; ++i) { inbufs[i] = 0; real_inbufs[i] = 0; outbufs[i] = 0; /* (re)connect audio ports */ if (_have_discrete_io) { real_inbufs[i] = (LADSPA_Data*) _driver->get_input_port_buffer (_input_ports[i], _buffersize); if (real_inbufs[i]) { real_inbufs[i] += offset; } inbufs[i] = real_inbufs[i]; outbufs[i] = (LADSPA_Data*) _driver->get_output_port_buffer (_output_ports[i], _buffersize); if (outbufs[i]) { outbufs[i] += offset; } else { outbufs[i] = _tmp_io_bufs[i]; } } else { inbufs[i] = 0; outbufs[i] = _tmp_io_bufs[i]; real_inbufs[i] = 0; } if (_use_common_ins || !_have_discrete_io || !real_inbufs[i]) { // mix common input into this buffer sample_t * comin = _driver->get_engine()->get_common_input_buffer(i); if (comin) { comin += offset; curr_ing = _curr_input_gain; if (_have_discrete_io && real_inbufs[i]) { for (nframes_t pos=0; pos < nframes; ++pos) { curr_ing += ing_delta; _tmp_io_bufs[i][pos] = curr_ing * (real_inbufs[i][pos] + comin[pos]); } inbufs[i] = _tmp_io_bufs[i]; } else { for (nframes_t pos=0; pos < nframes; ++pos) { curr_ing += ing_delta; _tmp_io_bufs[i][pos] = curr_ing * (comin[pos]); } inbufs[i] = _tmp_io_bufs[i]; } } } else { // we have discrete and not using common curr_ing = _curr_input_gain; for (nframes_t pos=0; pos < nframes; ++pos) { curr_ing += ing_delta; _tmp_io_bufs[i][pos] = curr_ing * (real_inbufs[i][pos]); } inbufs[i] = _tmp_io_bufs[i]; } // no longer needed if (inbufs[i] == 0) continue; // calculate input peak compute_peak (inbufs[i], nframes, _input_peak); } if (resampled) { for (unsigned int i=0; i < _chan_count; ++i) { // resample input _src_data.src_ratio = _src_in_ratio; _src_data.input_frames = nframes; _src_data.output_frames = (long) ceil (nframes * _src_in_ratio); _src_data.data_in = (sample_t *) inbufs[i]; _src_data.data_out = _src_in_buffer; src_process (_in_src_states[i], &_src_data); alt_frames = _src_data.output_frames_gen; descriptor->connect_port (_instances[i], AudioInputPort, (LADSPA_Data*) _src_in_buffer); descriptor->connect_port (_instances[i], AudioOutputPort, (LADSPA_Data*) _src_in_buffer); if (i == 0) { descriptor->connect_port (_instances[i], SyncInputPort, (LADSPA_Data*) _src_sync_buffer); descriptor->connect_port (_instances[i], SyncOutputPort, (LADSPA_Data*) _src_sync_buffer); } else { // all others get the first channel's sync-out as input descriptor->connect_port (_instances[i], SyncInputPort, (LADSPA_Data*) _src_sync_buffer); descriptor->connect_port (_instances[i], SyncOutputPort, (LADSPA_Data*) _dummy_buf); } /* do it */ descriptor->run (_instances[i], alt_frames); // resample output _src_data.src_ratio = _src_out_ratio; _src_data.input_frames = alt_frames; if (_src_out_ratio <= 1.0) { _src_data.output_frames = nframes; } else { //_src_data.output_frames = (long) ceil (ceil(nframes * _src_in_ratio) * _src_out_ratio); _src_data.output_frames = nframes ; } _src_data.data_in = _src_in_buffer; _src_data.data_out = (sample_t *) outbufs[i]; src_process (_out_src_states[i], &_src_data); //if (i==0 && _src_data.input_frames != _src_data.input_frames_used) { // cerr << "3 out sup in: " << _src_data.input_frames << " used: " << _src_data.input_frames_used << endl; //} if (_src_data.output_frames_gen != (long) nframes) { //if (i==0) { // cerr << "4 oframes: " << _src_data.output_frames << " gen: " << _src_data.output_frames_gen << " nframes: " << nframes<< endl; //} // reread long leftover = nframes - _src_data.output_frames_gen; _src_data.data_out = _src_data.data_out + _src_data.output_frames_gen; _src_data.data_in = _src_data.data_in + _src_data.input_frames_used - 1; _src_data.input_frames = alt_frames - _src_data.input_frames_used + 1; _src_data.output_frames = leftover; src_process (_out_src_states[i], &_src_data); //if (i==0) { // cerr << "4.5 oframes: " << _src_data.output_frames << " gen: " << _src_data.output_frames_gen << " leftover: " << leftover << endl; //} } //cerr << "out altframes: " << alt_frames << " output: " << _src_data.output_frames << " gen: " << _src_data.output_frames_gen << endl; // lowpass the output if rate < 1 if (_src_in_ratio < 1.0) { // this is just problematic, lets not do it //_lp_filter[i]->run_lowpass (_src_data.data_out, nframes); } } } else if (stretched || pitched) { #if 0 nframes_t needSamples = (nframes_t) floor(nframes / _stretch_ratio); //cerr << "in samps req: " << sampsReq << " need: " << needSamples << endl; alt_frames = needSamples; // stretch input _in_stretcher->process(inbufs, (size_t) nframes, false); size_t avail_samps = _in_stretcher->available(); size_t got_samps = _in_stretcher->retrieve(&_src_in_buffer, avail_samps); if (got_samps < alt_frames) { // clear the remaining cerr << "clearing in " << alt_frames - got_samps << " avail: " << avail_samps << " got samps: " << got_samps << endl; memset(&_src_in_buffer[got_samps], 0, (alt_frames - got_samps) * sizeof(float)); } #endif // resample sync using Rate _src_data.end_of_input = 0; _src_data.src_ratio = _src_in_ratio; _src_data.input_frames = nframes; _src_data.output_frames = (long) ceil (nframes * _stretch_ratio); _src_data.data_in = _use_sync_buf + offset; _src_data.data_out = _src_sync_buffer; src_process (_insync_src_state, &_src_data); //alt_frames = _src_data.output_frames_gen; // stretch output by running the looper as much as we need size_t avail_samps = _out_stretcher->available(); //nframes_t needSamples = (nframes_t) ceil(nframes * _stretch_ratio); while (avail_samps < nframes) { size_t sampsReq = _out_stretcher->getSamplesRequired(); size_t sampsUse = min(sampsReq, (size_t) nframes); // run the looper(s) for (unsigned int i=0; i < _chan_count; ++i) { // zero any input, we're not allowing input while stretching for now memset(outbufs[i], 0, sampsUse * sizeof(float)); // todo sync buf if (i == 0) { descriptor->connect_port (_instances[i], SyncInputPort, (LADSPA_Data*) _src_sync_buffer); descriptor->connect_port (_instances[i], SyncOutputPort, (LADSPA_Data*) _src_sync_buffer); } else { // all others get the first channel's sync-out as input descriptor->connect_port (_instances[i], SyncInputPort, (LADSPA_Data*) _src_sync_buffer); descriptor->connect_port (_instances[i], SyncOutputPort, (LADSPA_Data*) _dummy_buf); } descriptor->connect_port (_instances[i], AudioInputPort, (LADSPA_Data*) outbufs[i]); descriptor->connect_port (_instances[i], AudioOutputPort, (LADSPA_Data*) outbufs[i]); descriptor->run (_instances[i], sampsUse); } // stretch _out_stretcher->process(outbufs, sampsUse, false); avail_samps = _out_stretcher->available(); } _out_stretcher->retrieve(outbufs, nframes); } else { // normal operation for (unsigned int i=0; i < _chan_count; ++i) { descriptor->connect_port (_instances[i], AudioInputPort, inbufs[i]); descriptor->connect_port (_instances[i], AudioOutputPort, outbufs[i]); if (i == 0) { descriptor->connect_port (_instances[i], SyncInputPort, (LADSPA_Data*) _use_sync_buf + offset); descriptor->connect_port (_instances[i], SyncOutputPort, (LADSPA_Data*) _our_syncout_buf + offset); } else { // all others get the first channel's sync-out as input descriptor->connect_port (_instances[i], SyncInputPort, (LADSPA_Data*) _our_syncout_buf + offset); descriptor->connect_port (_instances[i], SyncOutputPort, (LADSPA_Data*) _dummy_buf + offset); } /* do it */ descriptor->run (_instances[i], alt_frames); } } for (unsigned int i=0; i < _chan_count; ++i) { if (_have_discrete_io && real_inbufs[i]) { // just mix the dry into the outputs currdry = _curr_dry; for (nframes_t pos=0; pos < nframes; ++pos) { currdry += dry_delta; outbufs[i][pos] += currdry * real_inbufs[i][pos]; } } if (_panner && _use_common_outs) { // mix this output into common outputs (*_panner)[i]->distribute (outbufs[i], com_obufs, 1.0f, nframes); } // calculate output peak post mixing with dry compute_peak (outbufs[i], nframes, _output_peak); } if (resampled) { // resample out sync _src_data.src_ratio = _src_out_ratio; _src_data.input_frames = alt_frames; _src_data.output_frames = nframes; _src_data.data_in = _src_sync_buffer; _src_data.data_out = _our_syncout_buf + offset; src_process (_outsync_src_state, &_src_data); _curr_dry = flush_to_zero (currdry); if (dry_delta <= 0.00003f) { _curr_dry = _target_dry; } } _curr_input_gain = flush_to_zero (curr_ing); if (ing_delta <= 0.00003f) { // force to == target _curr_input_gain = _targ_input_gain; } _curr_dry = flush_to_zero (currdry); if (dry_delta <= 0.00003f) { // force to == target _curr_dry = _target_dry; } } bool Looper::load_loop (string fname) { bool ret = false; #ifdef HAVE_SNDFILE // this is not called from the audio thread // so we take the loop_lock during the whole procedure LockMonitor lm (_loop_lock, __LINE__, __FILE__); SNDFILE * sfile = 0; SF_INFO sinfo; memset (&sinfo, 0, sizeof(SF_INFO)); if ((sfile = sf_open (fname.c_str(), SFM_READ, &sinfo)) == 0) { cerr << "error opening " << fname << endl; return false; } else { cerr << "opened " << fname << endl; } // verify that we have enough free loop space to load it nframes_t freesamps = (nframes_t) (ports[LoopFreeMemory] * _driver->get_samplerate()); if (sinfo.frames > freesamps) { cerr << "file is too long for available space: file: " << sinfo.frames << " free: " << freesamps << endl; sf_close (sfile); return false; } // make some temporary input buffers nframes_t bufsize = 65536; sample_t ** inbufs = new float*[_chan_count]; for (unsigned int i=0; i < _chan_count; ++i) { inbufs[i] = new float[bufsize]; } sample_t * dummyout = new float[bufsize]; for (unsigned int i=0; i < _chan_count; ++i) { /* connect audio ports */ descriptor->connect_port (_instances[i], AudioInputPort, (LADSPA_Data*) inbufs[i]); descriptor->connect_port (_instances[i], AudioOutputPort, (LADSPA_Data*) dummyout); descriptor->connect_port (_instances[i], SyncInputPort, (LADSPA_Data*) dummyout); descriptor->connect_port (_instances[i], SyncOutputPort, (LADSPA_Data*) dummyout); } // ok, first we need to store some current values float old_recthresh = ports[TriggerThreshold]; float old_syncmode = ports[Sync]; float old_xfadesamples = ports[FadeSamples]; float old_state = ports[State]; float old_in_latency = ports[InputLatency]; float old_out_latency = ports[OutputLatency]; float old_trig_latency = ports[TriggerLatency]; float old_round_tempo = ports[RoundIntegerTempo]; float old_quantize = ports[Quantize]; ports[TriggerThreshold] = 0.0f; ports[Sync] = 0.0f; ports[FadeSamples] = 0.0f; ports[InputLatency] = 0.0f; ports[OutputLatency] = 0.0f; ports[TriggerLatency] = 0.0f; ports[RoundIntegerTempo] = 0.0f; ports[Quantize] = (float) QUANT_OFF; _slave_sync_port = 0.0f; // now set it to mute just to make sure we weren't already recording for (unsigned int i=0; i < _chan_count; ++i) { // run it for 0 frames just to change state ports[Multi] = Event::MUTE_ON; descriptor->run (_instances[i], 0); ports[Multi] = Event::RECORD; descriptor->run (_instances[i], 0); } // now start recording and run for sinfo.frames total nframes_t nframes = bufsize; nframes_t frames_left = sinfo.frames; nframes_t filechans = sinfo.channels; nframes_t bpos; sample_t * databuf; sample_t * bigbuf = new float[bufsize * filechans]; while (frames_left > 0) { if (nframes > frames_left) { nframes = frames_left; } // fill input buffers nframes = sf_readf_float (sfile, bigbuf, nframes); // deinterleave unsigned int n; for (n=0; n < _chan_count && n < filechans; ++n) { databuf = inbufs[n]; bpos = n; for (nframes_t m=0; m < nframes; ++m) { databuf[m] = bigbuf[bpos]; bpos += filechans; } } for (; n < _chan_count; ++n) { // clear leftover channels (maybe we should duplicate last one, we'll see) //memset(inbufs[n], 0, sizeof(float) * nframes); // duplicate last one memcpy (inbufs[n], inbufs[filechans-1], sizeof(float) * nframes); } for (unsigned int i=0; i < _chan_count; ++i) { // run it for nframes descriptor->run (_instances[i], nframes); } frames_left -= nframes; } // change state to unknown, then the end record (with mute optionally) for (unsigned int i=0; i < _chan_count; ++i) { // in the case of an empty file, run undo_all if (sinfo.frames == 0) { ports[Multi] = Event::UNDO_ALL; descriptor->run (_instances[i], 0); continue; } ports[Multi] = Event::UNKNOWN; descriptor->run (_instances[i], 0); if ((int)old_state == LooperStateMuted) { ports[Multi] = Event::MUTE_ON; } else if ((int)old_state == LooperStatePaused || (int)old_state == LooperStateOff) { ports[Multi] = Event::PAUSE_ON; } else { ports[Multi] = Event::RECORD; } descriptor->run (_instances[i], 0); } ports[TriggerThreshold] = old_recthresh; ports[Sync] = old_syncmode; ports[FadeSamples] = old_xfadesamples; ports[InputLatency] = old_in_latency; ports[OutputLatency] = old_out_latency; ports[TriggerLatency] = old_trig_latency; ports[RoundIntegerTempo] = old_round_tempo; ports[Quantize] = old_quantize; _slave_sync_port = _relative_sync ? 2.0f: 1.0f; ret = true; sf_close (sfile); for (unsigned int i=0; i < _chan_count; ++i) { delete [] inbufs[i]; } delete [] inbufs; delete [] dummyout; delete [] bigbuf; #endif return ret; } bool Looper::save_loop (string fname, LoopFileEvent::FileFormat format) { bool ret = false; char tmpname[200]; #ifdef HAVE_SNDFILE // if empty fname, generate name based on loop # and date if (fname.empty()) { struct tm * nowtime; char tmpdate[200]; struct timeval tv = {0,0}; gettimeofday (&tv, NULL); tmpdate[0] = '\0'; nowtime = localtime ((time_t *) &tv.tv_sec); strftime (tmpdate, sizeof(tmpdate), "%Y%m%d-%H:%M:%S", nowtime); snprintf (tmpname, sizeof(tmpname), "sl_%s_loop%02d.wav", tmpdate, _index); fname = tmpname; } // this is called from the main work thread which controls // the allocation of loops and jack ports // thus, our readonly activity to the current loop does not // need a lock to operate safely (because we know it will be safe :) SNDFILE * sfile = 0; SF_INFO sinfo; memset (&sinfo, 0, sizeof(SF_INFO)); switch(format) { case LoopFileEvent::FormatFloat: sinfo.format = SF_FORMAT_WAV | SF_FORMAT_FLOAT; break; case LoopFileEvent::FormatPCM16: sinfo.format = SF_FORMAT_WAV | SF_FORMAT_PCM_16; break; default: sinfo.format = SF_FORMAT_WAV | SF_FORMAT_FLOAT; } sinfo.channels = _chan_count; sinfo.samplerate = _driver->get_samplerate(); if ((sfile = sf_open (fname.c_str(), SFM_WRITE, &sinfo)) == 0) { cerr << "error opening " << fname << endl; return false; } else { cerr << "opened for write: " << fname << endl; } // make some temporary buffers nframes_t bufsize = 65536; sample_t ** outbufs = new float*[_chan_count]; for (unsigned int i=0; i < _chan_count; ++i) { outbufs[i] = new float[bufsize]; } sample_t * bigbuf = new float[bufsize * _chan_count]; nframes_t nframes = bufsize; nframes_t frames_left = (nframes_t) lrintf(ports[LoopLength] * _driver->get_samplerate()); nframes_t bpos; sample_t * databuf; nframes_t looppos = 0; while (frames_left > 0) { nframes = bufsize; if (nframes > frames_left) { nframes = frames_left; } for (unsigned int i=0; i < _chan_count; ++i) { // run it for nframes nframes = sl_read_current_loop_audio (_instances[i], outbufs[i], nframes, looppos); } if (nframes == 0) { // we're done, it shorted us somehow //cerr << "shorted" << endl; break; } // interleave unsigned int n; for (n=0; n < _chan_count; ++n) { databuf = outbufs[n]; bpos = n; for (nframes_t m=0; m < nframes; ++m) { bigbuf[bpos] = databuf[m]; bpos += _chan_count; } } // write out big buffer sf_writef_float (sfile, bigbuf, nframes); frames_left -= nframes; looppos += nframes; } ret = true; sf_close (sfile); for (unsigned int i=0; i < _chan_count; ++i) { delete [] outbufs[i]; } delete [] outbufs; delete [] bigbuf; #endif return ret; } XMLNode& Looper::get_state () const { CommandMap & cmap = CommandMap::instance(); LocaleGuard lg ("POSIX"); XMLNode *node = new XMLNode ("Looper"); char buf[120]; snprintf(buf, sizeof(buf), "%d", _index); node->add_property ("index", buf); snprintf(buf, sizeof(buf), "%d", _chan_count); node->add_property ("channels", buf); snprintf(buf, sizeof(buf), "%.10g", _loopsecs); node->add_property ("loop_secs", buf); snprintf(buf, sizeof(buf), "%s", _have_discrete_io ? "yes": "no"); node->add_property ("discrete_io", buf); snprintf(buf, sizeof(buf), "%s", _use_common_ins ? "yes": "no"); node->add_property ("use_common_ins", buf); snprintf(buf, sizeof(buf), "%s", _use_common_outs ? "yes": "no"); node->add_property ("use_common_outs", buf); snprintf(buf, sizeof(buf), "%s", _relative_sync ? "yes": "no"); node->add_property ("relative_sync", buf); snprintf(buf, sizeof(buf), "%s", _auto_latency ? "yes": "no"); node->add_property ("auto_latency", buf); snprintf(buf, sizeof(buf), "%s", _tempo_stretch ? "yes": "no"); node->add_property ("tempo_stretch", buf); snprintf(buf, sizeof(buf), "%.10g", _stretch_ratio); node->add_property ("stretch_ratio", buf); snprintf(buf, sizeof(buf), "%.10g", _pitch_shift); node->add_property ("pitch_shift", buf); // panner if (_panner) { node->add_child_nocopy (_panner->state (true)); } XMLNode *controls = new XMLNode ("Controls"); for (int n=0; n < LASTCONTROLPORT; ++n) { XMLNode *child; string ctrlstr = cmap.to_control_str((Event::control_t)n); if (ctrlstr == "unknown") continue; snprintf(buf, sizeof(buf), "%s", ctrlstr.c_str()); child = new XMLNode ("Control"); child->add_property ("name", buf); float val = ports[n]; if (n == DryLevel) { val = _curr_dry; } snprintf(buf, sizeof(buf), "%.20g", val); child->add_property ("value", buf); controls->add_child_nocopy (*child); } node->add_child_nocopy (*controls); return *node; } int Looper::set_state (const XMLNode& node) { // assumes everything has already been cleaned up LocaleGuard lg ("POSIX"); const XMLProperty* prop; XMLNodeConstIterator iter; XMLNodeList control_kids; CommandMap & cmap = CommandMap::instance(); if (node.name() != "Looper") { cerr << "incorrect XML node passed to IO object: " << node.name() << endl; return -1; } if ((prop = node.property ("index")) != 0) { sscanf (prop->value().c_str(), "%u", &_index); } if ((prop = node.property ("channels")) != 0) { sscanf (prop->value().c_str(), "%u", &_chan_count); } if ((prop = node.property ("loop_secs")) != 0) { sscanf (prop->value().c_str(), "%g", &_loopsecs); } if ((prop = node.property ("discrete_io")) != 0) { _have_discrete_io = (prop->value() == "yes"); } // initialize self initialize (_index, _chan_count, _loopsecs, _have_discrete_io); if ((prop = node.property ("use_common_ins")) != 0) { _use_common_ins = (prop->value() == "yes"); } if ((prop = node.property ("use_common_outs")) != 0) { _use_common_outs = (prop->value() == "yes"); } if ((prop = node.property ("relative_sync")) != 0) { _relative_sync = (prop->value() == "yes"); } if ((prop = node.property ("auto_latency")) != 0) { _auto_latency = (prop->value() == "yes"); } if ((prop = node.property ("stretch_ratio")) != 0) { sscanf (prop->value().c_str(), "%lg", &_stretch_ratio); _pending_stretch_ratio = _stretch_ratio; _pending_stretch = true; } if ((prop = node.property ("pitch_shift")) != 0) { sscanf (prop->value().c_str(), "%lg", &_pitch_shift); _out_stretcher->setPitchScale(pow(2.0, _pitch_shift / 12.0)); } if ((prop = node.property ("tempo_stretch")) != 0) { _tempo_stretch = (prop->value() == "yes"); } for (iter = node.children().begin(); iter != node.children().end(); ++iter) { if ((*iter)->name() == "Panner") { if (_panner) { _panner->set_state (**iter); } } } XMLNode * controls_node = node.find_named_node ("Controls"); if (!controls_node) { cerr << "no controls found" << endl; return -1; } control_kids = controls_node->children ("Control"); for (XMLNodeConstIterator niter = control_kids.begin(); niter != control_kids.end(); ++niter) { XMLNode *child; child = (*niter); string ctrlstr; Event::control_t ctrl = Event::Unknown; float val = 0.0f; if ((prop = child->property ("name")) != 0) { ctrl = cmap.to_control_t(prop->value()); } if ((prop = child->property ("value")) != 0) { sscanf (prop->value().c_str(), "%g", &val); } if (ctrl == Event::DryLevel) { _curr_dry = _target_dry = val; } else if (ctrl != Event::Unknown) { //cerr << "set " << ctrl << " to " << val << endl; ports[ctrl] = val; } } recompute_latencies(); // load audio if we should if ((prop = node.property ("loop_audio")) != 0) { ports[State] = LooperStatePaused; // force this if (!load_loop(prop->value())) { // use the filename with the path of the session file string filename = prop->value().c_str(); if ((prop = node.property("session_filename")) != 0) { //explicitly make a copy as dirname modifies it's input const char * sessfilename = prop->value().c_str(); char * modifiable_copy = (char *)malloc(strlen(sessfilename) + 1); strcpy(modifiable_copy, sessfilename); char * directory = dirname(modifiable_copy); string newfilename = string(directory) + string("/") + filename; load_loop(newfilename); free (modifiable_copy); } } } return 0; } sooperlooper-1.7.3~dfsg0/src/midi_bind.cpp0000644000175000017500000002116711755175211017263 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #include "midi_bind.hpp" #include #include #include #include #include #include #include using namespace SooperLooper; using namespace std; using namespace MIDI; MidiBindings::MidiBindings() { _typemap["cc"] = MIDI::controller; _typemap["n"] = MIDI::on; _typemap["pc"] = MIDI::program; _typemap["on"] = MIDI::on; _typemap["off"] = MIDI::on; _typemap["pb"] = MIDI::pitchbend; _typemap["kp"] = MIDI::polypress; _typemap["cp"] = MIDI::chanpress; _typemap["ccon"] = MIDI::controller; _typemap["ccoff"] = MIDI::controller; // temp bindings // _bindings[0x9000 | 48] = MidiBindInfo("note", "record", -1); // _bindings[0x9000 | 49] = MidiBindInfo("note", "undo", -1); // _bindings[0x9000 | 50] = MidiBindInfo("note", "overdub", -1); // _bindings[0x9000 | 51] = MidiBindInfo("note", "redo", -1); // _bindings[0x9000 | 52] = MidiBindInfo("note", "multiply", -1); // _bindings[0x9000 | 54] = MidiBindInfo("note", "mute", -1); // _bindings[0x9000 | 55] = MidiBindInfo("note", "scratch", -1); // _bindings[0x9000 | 56] = MidiBindInfo("note", "reverse", -1); // _bindings[0xb000 | 1] = MidiBindInfo("set", "feedback", -1, 0.0, 1.0); // _bindings[0xb000 | 7] = MidiBindInfo("set", "scratch_pos", -1, 0.0, 1.0); // _bindings[0xb000 | 74] = MidiBindInfo("set", "dry", -1, 0.0, 1.0); // _bindings[0xb000 | 71] = MidiBindInfo("set", "wet", -1, 0.0, 1.0); } MidiBindings::~MidiBindings() { } void MidiBindings::get_bindings (BindingList & blist) const { for (BindingsMap::const_iterator biter = _bindings.begin(); biter != _bindings.end(); ++biter) { const BindingList & elist = (*biter).second; for (BindingList::const_iterator eiter = elist.begin(); eiter != elist.end(); ++eiter) { const MidiBindInfo & info = (*eiter); blist.push_back (info); } } } bool MidiBindings::get_channel_and_type(byte chcmd, int & ch, string & type) const { ch = chcmd & 0x0f; byte cmd = chcmd & 0xf0; bool found = false; for (TypeMap::const_iterator titer = _typemap.begin(); titer != _typemap.end(); ++titer) { if ((*titer).second == cmd) { type = titer->first; found = true; break; } } return found; } int MidiBindings::binding_key (const MidiBindInfo & info) const { int typei; int key; TypeMap::const_iterator titer = _typemap.find(info.type); if (titer == _typemap.end()) { //cerr << "invalid midi type str: " << info.type << endl; return 0; } typei = titer->second; key = ((typei + info.channel) << 8) | info.param; return key; } bool MidiBindings::add_binding (const MidiBindInfo & info, bool exclusive) { /// type->typei is { pc = 0xc0 , cc = 0xb0 , on = 0x80 , n = 0x90 , pb = 0xe0 } // chcmd = cmd + ch // lookup key = (chcmd << 8) | param int key; if ((key = binding_key (info)) == 0) { return false; } BindingsMap::iterator biter = _bindings.find(key); if (biter == _bindings.end()) { _bindings.insert (BindingsMap::value_type ( key, BindingList())); } // check for others, and clear them if exclusive if (exclusive && _bindings[key].size() > 0) { //cerr << "cleared existing" << endl; _bindings[key].clear(); } _bindings[key].push_back (info); // cerr << "added binding: " << info.type << " " << info.control << " " << info.instance << " " << info.lbound << " " << info.ubound << endl; // cerr << "added binding: " << info.serialize() << endl; return true; } bool MidiBindings::remove_binding (const MidiBindInfo & info) { int key; if ((key = binding_key (info)) == 0) { return false; } BindingsMap::iterator biter = _bindings.find(key); if (biter == _bindings.end()) { return false; } BindingList & blist = biter->second; for (BindingList::iterator iter = blist.begin(); iter != blist.end(); ++iter) { MidiBindInfo & binfo = (*iter); if (binfo == info) { // cerr << "found match to remove" << endl; blist.erase(iter); break; } } if (blist.empty()) { _bindings.erase(biter); } return true; } void MidiBindings::clear_bindings () { _bindings.clear(); } // Moved to engine for easier access to initial values for toggle bool MidiBindings::load_bindings (string filename, bool append) { //FILE * bindfile = 0; ifstream bindfile; bindfile.open(filename.c_str(), ios::in); if (!bindfile.is_open()) { cerr << "sooperlooper warning: could not open for reading: " << filename << endl; return false; } // todo: look for is in systemwide and ~/.sooperlooper/bindings/ return load_bindings (bindfile, append); } bool MidiBindings::load_bindings (std::istream & instream, bool append) { char line[200]; if (!append) { clear_bindings(); } while ( ! instream.eof()) //while (fgets (line, sizeof(line), bindfile) != NULL) { instream.getline (line, sizeof(line)); // ignore empty lines and # lines if (line[0] == '\n' || line[0] == '#' || line[0] == '\0') { continue; } MidiBindInfo info; if (!info.unserialize(line)) { continue; } add_binding (info); } return true; } bool MidiBindings::save_bindings (string filename) { ofstream bindfile (filename.c_str()); if (!bindfile.is_open()) { cerr << "error: could not open for writing: " << filename << endl; return false; } return save_bindings(bindfile); } bool MidiBindings::save_bindings (std::ostream & outstream) { for (BindingsMap::const_iterator biter = _bindings.begin(); biter != _bindings.end(); ++biter) { const BindingList & elist = (*biter).second; for (BindingList::const_iterator eiter = elist.begin(); eiter != elist.end(); ++eiter) { const MidiBindInfo & info = (*eiter); outstream << info.serialize() << endl; } } return true; } string MidiBindInfo::serialize() const { // ch type param cmd ctrl instance [min_val_bound max_val_bound valstyle min_data max_data] // // ch = midi channel starting from 0 // type is one of: 'pc' = program change 'cc' = control change 'n' = note on/off // 'on' = note on 'off' = note off 'pb' = pitch bend // param = # of midi parameter // // cmd is one of ( note, down, up, set ) // ctrl is an SL control // instance is loop # // min_val_bound is what to treat midi val 0 // max_val_bound is what to treat midi val 127 // valstyle can be 'gain' or 'toggle' // min_data and max_data can be integer values from 0 to 127 char buf[100]; char stylebuf[20]; if (style == GainStyle) { snprintf(stylebuf, sizeof(stylebuf), "gain"); } else if (style == ToggleStyle) { snprintf(stylebuf, sizeof(stylebuf), "toggle"); } else if (style == IntegerStyle) { snprintf(stylebuf, sizeof(stylebuf), "integer"); } else { strncpy(stylebuf, "norm", sizeof(stylebuf)); } // i:ch s:type i:param s:cmd s:ctrl i:instance f:min_val_bound f:max_val_bound s:valstyle i:min_data i:max_data snprintf(buf, sizeof(buf), "%d %s %d %s %s %d %.9g %.9g %s %d %d", channel, type.c_str(), param, command.c_str(), control.c_str(), instance, lbound, ubound, stylebuf, data_min, data_max); return string(buf); } bool MidiBindInfo::unserialize(string strval) { int chan; int parm; char tp[32]; char ctrl[32]; char cmd[32]; char stylestr[32]; int inst = -1; float lb = 0.0f; float ub = 1.0f; int dmin = 0; int dmax = 127; int ret; stylestr[0] = '\0'; if (strval.empty()) return false; if ((ret = sscanf(strval.c_str(), "%d %5s %d %30s %30s %d %g %g %10s %d %d", &chan, tp, &parm, cmd, ctrl, &inst, &lb, &ub, stylestr, &dmin, &dmax)) < 5) { cerr << "ret: " << ret << " invalid input line: " << strval << endl; return false; } channel = chan; type = tp; param = parm; command = cmd; control = ctrl; instance = inst; lbound = lb; ubound = ub; data_min = dmin; data_max = dmax; if (stylestr[0] == 'g') { style = GainStyle; } else if (stylestr[0] == 't') { style = ToggleStyle; } else if (stylestr[0] == 'i') { style = IntegerStyle; } else { style = NormalStyle; } return true; } sooperlooper-1.7.3~dfsg0/src/lockmonitor.hpp0000644000175000017500000000612411754453701017710 0ustar miramira/* Copyright (C) 2000 Paul Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __pbd_lockmonitor_h__ #define __pbd_lockmonitor_h__ #include #undef DEBUG_LOCK_MONITOR #ifdef DEBUG_LOCK_MONITOR #include #include "cycles.h" #endif namespace PBD { class Lock { public: Lock() { pthread_mutex_init (&_mutex, 0); } virtual ~Lock() {} virtual int lock () { return pthread_mutex_lock (&_mutex); } virtual int unlock() { return pthread_mutex_unlock (&_mutex); } pthread_mutex_t *mutex() { return &_mutex; } protected: pthread_mutex_t _mutex; }; class NonBlockingLock : public Lock { public: NonBlockingLock() {} ~NonBlockingLock(){} int lock () { return pthread_mutex_lock (&_mutex); } int trylock () { return pthread_mutex_trylock (&_mutex); } int unlock() { return pthread_mutex_unlock (&_mutex); } }; class LockMonitor { public: LockMonitor (Lock& lck, unsigned long l, const char *f) : lock (lck) #ifdef DEBUG_LOCK_MONITOR , line (l), file (f) #endif { #ifdef DEBUG_LOCK_MONITOR unsigned long long when; when = get_cycles(); std::cerr << when << " lock " << &lock << " at " << line << " in " << file << std::endl; #endif lock.lock (); #ifdef DEBUG_LOCK_MONITOR when = get_cycles(); std::cerr << '\t' << when << " locked at " << &lock << " at " << line << " in " << file << std::endl; #endif } ~LockMonitor () { lock.unlock (); } private: Lock& lock; #ifdef DEBUG_LOCK_MONITOR unsigned long line; const char * file; #endif }; class TentativeLockMonitor { public: TentativeLockMonitor (NonBlockingLock& lck, unsigned long l, const char *f) : lock (lck) #ifdef DEBUG_LOCK_MONITOR , line (l), file (f) #endif { #ifdef DEBUG_LOCK_MONITOR unsigned long long when; when = get_cycles(); std::cerr << when << " tentative lock " << &lock << " at " << line << " in " << file << std::endl; #endif _locked = (lock.trylock() == 0); #ifdef DEBUG_LOCK_MONITOR when = get_cycles(); std::cerr << '\t' << when << ' ' << _locked << " at " << &lock << " at " << line << " in " << file << std::endl; #endif } ~TentativeLockMonitor () { if (_locked) { lock.unlock (); } } bool locked() { return _locked; } private: NonBlockingLock& lock; bool _locked; #ifdef DEBUG_LOCK_MONITOR unsigned long line; const char * file; #endif }; } /* namespace */ #endif /* __pbd_lockmonitor_h__*/ sooperlooper-1.7.3~dfsg0/src/jack_audio_driver.hpp0000644000175000017500000000576511754453701021026 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_jack_audio_driver__ #define __sooperlooper_jack_audio_driver__ #include #include #include #include "audio_driver.hpp" #include "lockmonitor.hpp" namespace SooperLooper { class JackAudioDriver : public AudioDriver { public: JackAudioDriver(std::string client_name="", std::string serv_name=""); virtual ~JackAudioDriver(); bool initialize(std::string client_name=""); bool activate(); bool deactivate(); bool create_input_port (std::string name, port_id_t & portid); bool create_output_port (std::string name, port_id_t & portid); bool destroy_input_port (port_id_t portid); bool destroy_output_port (port_id_t portid); sample_t * get_input_port_buffer (port_id_t port, nframes_t nframes); sample_t * get_output_port_buffer (port_id_t port, nframes_t nframes); unsigned int get_input_port_count () { return _input_ports.size(); } unsigned int get_output_port_count () { return _output_ports.size(); } nframes_t get_input_port_latency (port_id_t portid); nframes_t get_output_port_latency (port_id_t portid); bool get_transport_info (TransportInfo &info); void set_transport_info (const TransportInfo &info); bool set_timebase_master(bool flag); bool get_timebase_master() { return _timebase_master; } void reposition_transport(nframes_t framepos); protected: int connect_to_jack (); int process_callback (jack_nframes_t); static int _process_callback (jack_nframes_t, void*); static int _xrun_callback (void*); static void _shutdown_callback (void*); static void _timebase_callback(jack_transport_state_t state, jack_nframes_t nframes, jack_position_t *pos, int new_pos, void *arg); void timebase_callback(jack_transport_state_t state, jack_nframes_t nframes, jack_position_t *pos, int new_pos); int buffersize_callback (jack_nframes_t); static int _buffersize_callback (jack_nframes_t, void*); int conn_changed_callback (); static int _conn_changed_callback (void*); jack_client_t *_jack; std::vector _input_ports; std::vector _output_ports; bool _timebase_master; TransportInfo _transport_info; PBD::Lock _port_lock; }; }; #endif sooperlooper-1.7.3~dfsg0/src/filter.hpp0000644000175000017500000000304611754453700016634 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_filter_h__ #define __sooperlooper_filter_h__ #include namespace SooperLooper { class OnePoleFilter { protected: float fSampleRate; float fTwoPiOverSampleRate; float fLastOutput; float fLastCutoff; float fCurrCutoff; float fAmountOfCurrent; float fAmountOfLast; public: OnePoleFilter(float srate); virtual ~OnePoleFilter() {} void run_lowpass (float * buf, uint32_t nframes); void run_highpass (float * buf, uint32_t nframes); void set_cutoff (float rate) { fCurrCutoff = rate; } float get_cutoff () { return fCurrCutoff; } float get_samplerate () { return fSampleRate; } void set_samplerate (float rate) { fSampleRate = rate; fTwoPiOverSampleRate = float(2 * M_PI) / fSampleRate; } }; }; #endif sooperlooper-1.7.3~dfsg0/src/event.cpp0000644000175000017500000000724411754453700016467 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** and Benno Senoner and Christian Schoenebeck ** ** This program 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. ** */ #include "event.hpp" #include #include #include using namespace std; namespace SooperLooper { /** * Create an EventGenerator. * * @param SampleRate - sample rate of the sampler engine's audio output * signal (in Hz) */ EventGenerator::EventGenerator(uint32_t sampleRate) { uiSampleRate = sampleRate; uiSamplesProcessed = 0; fragmentTime.end = createTimeStamp(); } /** * Updates the time stamps for the beginning and end of the current audio * fragment. This is needed to be able to calculate the respective sample * point later to which an event belongs to. * * @param SamplesToProcess - number of sample points to process in this * audio fragment cycle */ void EventGenerator::updateFragmentTime(uint32_t samplesToProcess) { // update time stamp for this audio fragment cycle fragmentTime.begin = fragmentTime.end; fragmentTime.end = createTimeStamp(); // recalculate sample ratio for this audio fragment time_stamp_t fragmentDuration = fragmentTime.end - fragmentTime.begin; fragmentTime.sample_ratio = (double) uiSamplesProcessed / (double) fragmentDuration; //cerr << "begin: " << fragmentTime.begin << " end: " << fragmentTime.end << " ratio: " << fragmentTime.sample_ratio << endl; // store amount of samples to process for the next cycle uiSamplesProcessed = samplesToProcess; } /** * Create a new event with the current time as time stamp. */ Event EventGenerator::createEvent(long fragTime) { if (fragTime < 0) { return Event(this, createTimeStamp()); } else { return Event(this, (int) fragTime); } } Event EventGenerator::createTimestampedEvent(time_stamp_t timeStamp) { return Event(this, timeStamp); } // Event EventGenerator::createEvent() // { // time_stamp_t ts = createTimeStamp(); // cerr << "ts is : " << ts << endl; // uint32_t pos = toFragmentPos(ts); // cerr << "event pos: " << pos << endl; // return Event(pos); // } /** * Creates a real time stamp for the current moment. */ EventGenerator::time_stamp_t EventGenerator::createTimeStamp() { struct timeval tv; gettimeofday(&tv, NULL); return (time_stamp_t)(tv.tv_usec * 1e-6) + (time_stamp_t)(tv.tv_sec); } /** * Will be called by an EventGenerator to create a new Event. */ Event::Event(EventGenerator* pGenerator, time_stamp_t Time) { pEventGenerator = pGenerator; TimeStamp = Time; iFragmentPos = -1; } Event::Event(EventGenerator* pGenerator, int fragmentpos) { pEventGenerator = pGenerator; iFragmentPos = fragmentpos; } } // namespace LinuxSampler sooperlooper-1.7.3~dfsg0/src/panner.cpp0000644000175000017500000004524311754453701016633 0ustar miramira/* Copyright (C) 2004 Paul Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include #include #include #include #include #include #include #include #include #include "panner.hpp" #include "utils.hpp" //#include using namespace std; using namespace SooperLooper; string EqualPowerStereoPanner::name = "Equal Power Stereo"; string Multi2dPanner::name = "Multiple (2D)"; StreamPanner::StreamPanner (Panner& p) : parent (p) { _muted = false; x = 0.5; y = 0.5; z = 0.5; } StreamPanner::~StreamPanner () { } void StreamPanner::set_muted (bool yn) { if (yn != _muted) { _muted = yn; StateChanged (); } } void StreamPanner::set_position (float xpos, bool link_call) { if (!link_call && parent.linked()) { parent.set_position (xpos, *this); } if (x != xpos) { x = xpos; update (); Changed (); } } void StreamPanner::set_position (float xpos, float ypos, bool link_call) { if (!link_call && parent.linked()) { parent.set_position (xpos, ypos, *this); } if (x != xpos || y != ypos) { x = xpos; y = ypos; update (); Changed (); } } void StreamPanner::set_position (float xpos, float ypos, float zpos, bool link_call) { if (!link_call && parent.linked()) { parent.set_position (xpos, ypos, zpos, *this); } if (x != xpos || y != ypos || z != zpos) { x = xpos; y = ypos; z = zpos; update (); Changed (); } } int StreamPanner::set_state (const XMLNode& node) { const XMLProperty* prop; XMLNodeConstIterator iter; if ((prop = node.property ("muted"))) { set_muted (prop->value() == "yes"); } return 0; } void StreamPanner::add_state (XMLNode& node) { node.add_property ("muted", (muted() ? "yes" : "no")); } /*---------------------------------------------------------------------- */ BaseStereoPanner::BaseStereoPanner (Panner& p) : StreamPanner (p) { } BaseStereoPanner::~BaseStereoPanner () { } void BaseStereoPanner::distribute (sample_t* src, sample_t** obufs, gain_t gain_coeff, nframes_t nframes) { pan_t delta; sample_t* dst; pan_t pan; if (_muted) { return; } /* LEFT */ dst = obufs[0]; if (fabsf ((delta = (left - desired_left))) > 0.002) { // about 1 degree of arc /* interpolate over 64 frames or nframes, whichever is smaller */ nframes_t limit = min ((nframes_t)64, nframes); nframes_t n; delta = -(delta / (float) (limit)); for (n = 0; n < limit; n++) { left_interp = left_interp + delta; left = left_interp + 0.9 * (left - left_interp); dst[n] += src[n] * left * gain_coeff; } pan = left * gain_coeff; for (; n < nframes; ++n) { dst[n] += src[n] * pan; } } else { left = desired_left; left_interp = left; if ((pan = (left * gain_coeff)) != 1.0f) { if (pan != 0.0f) { for (nframes_t n = 0; n < nframes; ++n) { dst[n] += src[n] * pan; } /* mark that we wrote into the buffer */ // obufs[0] = 0; } } else { for (nframes_t n = 0; n < nframes; ++n) { dst[n] += src[n]; } /* mark that we wrote into the buffer */ // obufs[0] = 0; } } /* RIGHT */ dst = obufs[1]; if (fabsf ((delta = (right - desired_right))) > 0.002) { // about 1 degree of arc /* interpolate over 64 frames or nframes, whichever is smaller */ nframes_t limit = min ((nframes_t)64, nframes); nframes_t n; delta = -(delta / (float) (limit)); for (n = 0; n < limit; n++) { right_interp = right_interp + delta; right = right_interp + 0.9 * (right - right_interp); dst[n] += src[n] * right * gain_coeff; } pan = right * gain_coeff; for (; n < nframes; ++n) { dst[n] += src[n] * pan; } /* XXX it would be nice to mark the buffer as written to */ } else { right = desired_right; right_interp = right; if ((pan = (right * gain_coeff)) != 1.0f) { if (pan != 0.0f) { for (nframes_t n = 0; n < nframes; ++n) { dst[n] += src[n] * pan; } /* XXX it would be nice to mark the buffer as written to */ } } else { for (nframes_t n = 0; n < nframes; ++n) { dst[n] += src[n]; } /* XXX it would be nice to mark the buffer as written to */ } } } /*---------------------------------------------------------------------- */ EqualPowerStereoPanner::EqualPowerStereoPanner (Panner& p) : BaseStereoPanner (p) { update (); left = desired_left; right = desired_right; left_interp = left; right_interp = right; } EqualPowerStereoPanner::~EqualPowerStereoPanner () { } void EqualPowerStereoPanner::update () { /* it would be very nice to split this out into a virtual function that can be accessed from BaseStereoPanner and used in distribute_automated(). but the place where its used in distribute_automated() is a tight inner loop, and making "nframes" virtual function calls to compute values is an absurd overhead. */ const float pan_law_attenuation = -3.0f; const float scale = 2.0f - 4.0f * pow (10.0, pan_law_attenuation/20.0); /* x == 0 => hard left x == 1 => hard right */ float panR = x; float panL = 1 - panR; desired_left = panL * (scale * panL + 1.0f - scale); desired_right = panR * (scale * panR + 1.0f - scale); effective_x = x; } StreamPanner* EqualPowerStereoPanner::factory (Panner& parent) { return new EqualPowerStereoPanner (parent); } XMLNode& EqualPowerStereoPanner::get_state (void) { XMLNode* root = new XMLNode ("StreamPanner"); char buf[64]; LocaleGuard lg ("POSIX"); snprintf (buf, sizeof (buf), "%f", x); root->add_property ("x", buf); root->add_property ("type", EqualPowerStereoPanner::name); StreamPanner::add_state (*root); return *root; } int EqualPowerStereoPanner::set_state (const XMLNode& node) { const XMLProperty* prop; float pos; LocaleGuard lg ("POSIX"); if ((prop = node.property ("x"))) { pos = atof (prop->value().c_str()); set_position (pos, true); } StreamPanner::set_state (node); return 0; } /*----------------------------------------------------------------------*/ Multi2dPanner::Multi2dPanner (Panner& p) : StreamPanner (p) { update (); } Multi2dPanner::~Multi2dPanner () { } void Multi2dPanner::update () { static const float BIAS = FLT_MIN; uint32_t i; uint32_t nouts = parent.outputs.size(); float dsq[nouts]; float f, fr; vector pans; f = 0.0f; for (i = 0; i < nouts; i++) { dsq[i] = ((x - parent.outputs[i].x) * (x - parent.outputs[i].x) + (y - parent.outputs[i].y) * (y - parent.outputs[i].y) + BIAS); if (dsq[i] < 0.0) { dsq[i] = 0.0; } f += dsq[i] * dsq[i]; } fr = 1.0f / sqrtf(f); for (i = 0; i < nouts; ++i) { parent.outputs[i].desired_pan = 1.0f - (dsq[i] * fr); } effective_x = x; } void Multi2dPanner::distribute (sample_t* src, sample_t** obufs, gain_t gain_coeff, nframes_t nframes) { sample_t* dst; pan_t pan; vector::iterator o; uint32_t n; if (_muted) { return; } for (n = 0, o = parent.outputs.begin(); o != parent.outputs.end(); ++o, ++n) { dst = obufs[n]; #ifdef CAN_INTERP if (fabsf ((delta = (left_interp - desired_left))) > 0.002) { // about 1 degree of arc /* interpolate over 64 frames or nframes, whichever is smaller */ nframes_t limit = min ((nframes_t)64, nframes); nframes_t n; delta = -(delta / (float) (limit)); for (n = 0; n < limit; n++) { left_interp = left_interp + delta; left = left_interp + 0.9 * (left - left_interp); dst[n] += src[n] * left * gain_coeff; } pan = left * gain_coeff; for (; n < nframes; ++n) { dst[n] += src[n] * pan; } } else { #else pan = (*o).desired_pan; if ((pan *= gain_coeff) != 1.0f) { if (pan != 0.0f) { for (nframes_t n = 0; n < nframes; ++n) { dst[n] += src[n] * pan; } } } else { for (nframes_t n = 0; n < nframes; ++n) { dst[n] += src[n]; } } #endif #ifdef CAN_INTERP } #endif } return; } StreamPanner* Multi2dPanner::factory (Panner& p) { return new Multi2dPanner (p); } XMLNode& Multi2dPanner::get_state (void) { XMLNode* root = new XMLNode ("StreamPanner"); char buf[64]; LocaleGuard lg ("POSIX"); snprintf (buf, sizeof (buf), "%f", x); root->add_property ("x", buf); snprintf (buf, sizeof (buf), "%f", y); root->add_property ("y", buf); root->add_property ("type", Multi2dPanner::name); return *root; } int Multi2dPanner::set_state (const XMLNode& node) { const XMLProperty* prop; float newx,newy; LocaleGuard lg ("POSIX"); newx = -1; newy = -1; if ((prop = node.property ("x"))) { newx = atof (prop->value().c_str()); } if ((prop = node.property ("y"))) { newy = atof (prop->value().c_str()); } if (x < 0 || y < 0) { cerr << "badly-formed positional data for Multi2dPanner - ignored" << endl; return -1; } set_position (newx, newy); return 0; } /*---------------------------------------------------------------------- */ Panner::Panner (string name) { set_name (name); _linked = false; _link_direction = SameDirection; _bypassed = false; } Panner::~Panner () { clear(); } void Panner::set_linked (bool yn) { if (yn != _linked) { _linked = yn; LinkStateChanged (); /* EMIT SIGNAL */ } } void Panner::set_link_direction (LinkDirection ld) { if (ld != _link_direction) { _link_direction = ld; LinkStateChanged (); /* EMIT SIGNAL */ } } void Panner::set_name (string str) { } void Panner::set_bypassed (bool yn) { if (yn != _bypassed) { _bypassed = yn; StateChanged (); } } void Panner::reset (uint32_t nouts, uint32_t npans) { uint32_t n; bool changed = false; if (nouts < 2 || (nouts == outputs.size() && npans == size())) { return; } n = size(); clear (); if (n != npans) { changed = true; } n = outputs.size(); outputs.clear (); if (n != nouts) { changed = true; } switch (nouts) { case 0: break; case 1: cerr << "programming error:" << "Panner::reset() called with a single output" << endmsg; /*NOTREACHED*/ break; case 2: /* line */ outputs.push_back (Output (0, 0)); outputs.push_back (Output (1.0, 0)); for (n = 0; n < npans; ++n) { push_back (new EqualPowerStereoPanner (*this)); } break; case 3: // triangle outputs.push_back (Output (0.5, 0)); outputs.push_back (Output (0, 1.0)); outputs.push_back (Output (1.0, 1.0)); for (n = 0; n < npans; ++n) { push_back (new Multi2dPanner (*this)); } break; case 4: // square outputs.push_back (Output (0, 0)); outputs.push_back (Output (1.0, 0)); outputs.push_back (Output (1.0, 1.0)); outputs.push_back (Output (0, 1.0)); for (n = 0; n < npans; ++n) { push_back (new Multi2dPanner (*this)); } break; case 5: //square+offcenter center outputs.push_back (Output (0, 0)); outputs.push_back (Output (1.0, 0)); outputs.push_back (Output (1.0, 1.0)); outputs.push_back (Output (0, 1.0)); outputs.push_back (Output (0.5, 0.75)); for (n = 0; n < npans; ++n) { push_back (new Multi2dPanner (*this)); } break; default: /* XXX horrible placement. FIXME */ for (n = 0; n < nouts; ++n) { outputs.push_back (Output (0.1 * n, 0.1 * n)); } for (n = 0; n < npans; ++n) { push_back (new Multi2dPanner (*this)); } break; } for (iterator x = begin(); x != end(); ++x) { (*x)->update (); } /* force hard left/right panning in a common case: 2in/2out */ if (npans == 2 && outputs.size() == 2) { /* Do this only if we changed configuration, or our configuration appears to be the default set up (center). */ float left; float right; front()->get_position (left); back()->get_position (right); if (changed || ((left == 0.5) && (right == 0.5))) { front()->set_position (0.0); back()->set_position (1.0); changed = true; } } if (changed) { Changed (); /* EMIT SIGNAL */ } return; } void Panner::remove (uint32_t which) { vector::iterator i; for (i = begin(); i != end() && which; ++i, --which); if (i != end()) { delete *i; erase (i); } } void Panner::clear () { for (vector::iterator i = begin(); i != end(); ++i) { delete *i; } vector::clear (); } void Panner::set_position (float xpos, StreamPanner& orig) { float xnow; float xdelta ; float xnew; orig.get_position (xnow); xdelta = xpos - xnow; if (_link_direction == SameDirection) { for (vector::iterator i = begin(); i != end(); ++i) { if (*i == &orig) { (*i)->set_position (xpos, true); } else { (*i)->get_position (xnow); xnew = min (1.0f, xnow + xdelta); xnew = max (0.0f, xnew); (*i)->set_position (xnew, true); } } } else { for (vector::iterator i = begin(); i != end(); ++i) { if (*i == &orig) { (*i)->set_position (xpos, true); } else { (*i)->get_position (xnow); xnew = min (1.0f, xnow - xdelta); xnew = max (0.0f, xnew); (*i)->set_position (xnew, true); } } } } void Panner::set_position (float xpos, float ypos, StreamPanner& orig) { float xnow, ynow; float xdelta, ydelta; float xnew, ynew; orig.get_position (xnow, ynow); xdelta = xpos - xnow; ydelta = ypos - ynow; if (_link_direction == SameDirection) { for (vector::iterator i = begin(); i != end(); ++i) { if (*i == &orig) { (*i)->set_position (xpos, ypos, true); } else { (*i)->get_position (xnow, ynow); xnew = min (1.0f, xnow + xdelta); xnew = max (0.0f, xnew); ynew = min (1.0f, ynow + ydelta); ynew = max (0.0f, ynew); (*i)->set_position (xnew, ynew, true); } } } else { for (vector::iterator i = begin(); i != end(); ++i) { if (*i == &orig) { (*i)->set_position (xpos, ypos, true); } else { (*i)->get_position (xnow, ynow); xnew = min (1.0f, xnow - xdelta); xnew = max (0.0f, xnew); ynew = min (1.0f, ynow - ydelta); ynew = max (0.0f, ynew); (*i)->set_position (xnew, ynew, true); } } } } void Panner::set_position (float xpos, float ypos, float zpos, StreamPanner& orig) { float xnow, ynow, znow; float xdelta, ydelta, zdelta; float xnew, ynew, znew; orig.get_position (xnow, ynow, znow); xdelta = xpos - xnow; ydelta = ypos - ynow; zdelta = zpos - znow; if (_link_direction == SameDirection) { for (vector::iterator i = begin(); i != end(); ++i) { if (*i == &orig) { (*i)->set_position (xpos, ypos, zpos, true); } else { (*i)->get_position (xnow, ynow, znow); xnew = min (1.0f, xnow + xdelta); xnew = max (0.0f, xnew); ynew = min (1.0f, ynow + ydelta); ynew = max (0.0f, ynew); znew = min (1.0f, znow + zdelta); znew = max (0.0f, znew); (*i)->set_position (xnew, ynew, znew, true); } } } else { for (vector::iterator i = begin(); i != end(); ++i) { if (*i == &orig) { (*i)->set_position (xpos, ypos, true); } else { (*i)->get_position (xnow, ynow, znow); xnew = min (1.0f, xnow - xdelta); xnew = max (0.0f, xnew); ynew = min (1.0f, ynow - ydelta); ynew = max (0.0f, ynew); znew = min (1.0f, znow + zdelta); znew = max (0.0f, znew); (*i)->set_position (xnew, ynew, znew, true); } } } } struct PanPlugins { string name; uint32_t nouts; StreamPanner* (*factory)(Panner&); }; PanPlugins pan_plugins[] = { { EqualPowerStereoPanner::name, 2, EqualPowerStereoPanner::factory }, { Multi2dPanner::name, 3, Multi2dPanner::factory }, { string (""), 0 } }; XMLNode& Panner::get_state (void) { return state (true); } XMLNode& Panner::state (bool full) { XMLNode* root = new XMLNode ("Panner"); char buf[32]; for (iterator p = begin(); p != end(); ++p) { root->add_child_nocopy ((*p)->get_state ()); } root->add_property ("linked", (_linked ? "yes" : "no")); snprintf (buf, sizeof (buf), "%d", _link_direction); root->add_property ("link_direction", buf); root->add_property ("bypassed", (bypassed() ? "yes" : "no")); /* add each output */ for (vector::iterator o = outputs.begin(); o != outputs.end(); ++o) { XMLNode* onode = new XMLNode ("Output"); snprintf (buf, sizeof (buf), "%f", (*o).x); onode->add_property ("x", buf); snprintf (buf, sizeof (buf), "%f", (*o).y); onode->add_property ("y", buf); root->add_child_nocopy (*onode); } return *root; } int Panner::set_state (const XMLNode& node) { XMLNodeList nlist; XMLNodeConstIterator niter; const XMLProperty *prop; uint32_t i; StreamPanner* sp; LocaleGuard lg ("POSIX"); clear (); outputs.clear (); if ((prop = node.property ("linked")) != 0) { set_linked (prop->value() == "yes"); } if ((prop = node.property ("bypassed")) != 0) { set_bypassed (prop->value() == "yes"); } if ((prop = node.property ("link_direction")) != 0) { sscanf (prop->value().c_str(), "%d", &i); set_link_direction ((LinkDirection) (i)); } nlist = node.children(); for (niter = nlist.begin(); niter != nlist.end(); ++niter) { if ((*niter)->name() == "Output") { float x, y; prop = (*niter)->property ("x"); sscanf (prop->value().c_str(), "%f", &x); prop = (*niter)->property ("y"); sscanf (prop->value().c_str(), "%f", &y); outputs.push_back (Output (x, y)); } } for (niter = nlist.begin(); niter != nlist.end(); ++niter) { if ((*niter)->name() == "StreamPanner") { if ((prop = (*niter)->property ("type"))) { for (i = 0; pan_plugins[i].factory; ++i) { if (prop->value() == pan_plugins[i].name) { /* note that we assume that all the stream panners are of the same type. pretty good assumption, but its still an assumption. */ sp = pan_plugins[i].factory (*this); if (sp->set_state (**niter) == 0) { push_back (sp); } break; } } if (!pan_plugins[i].factory) { cerr << "Unknown panner plugin found in pan state - ignored" << endl; } } else { cerr << "panner plugin node has no type information!" << endl; return -1; } } } return 0; } sooperlooper-1.7.3~dfsg0/src/audio_driver.hpp0000644000175000017500000000647612230252703020023 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_audio_driver__ #define __sooperlooper_audio_driver__ #include #include #include #include namespace SooperLooper { typedef float sample_t; typedef uint32_t nframes_t; typedef uint32_t port_id_t; class Engine; struct TransportInfo { enum State { ROLLING=1, STOPPED }; nframes_t framepos; nframes_t last_framepos; double bpm; State state; // future items // int32_t bar; /**< current bar */ // int32_t beat; /**< current beat-within-bar */ // int32_t tick; /**< current tick-within-beat */ // double bar_start_tick; float beats_per_bar; /**< time signature "numerator" */ float beat_type; /**< time signature "denominator" */ // double ticks_per_beat; // nframes_t bbt_offset; /**< frame offset for the BBT fields */ }; class AudioDriver { public: AudioDriver(std::string client_name="", std::string serv_name=""); virtual ~AudioDriver(); virtual bool initialize(std::string client_name="") = 0; virtual bool activate() = 0; virtual bool deactivate() = 0; virtual bool create_input_port (std::string name, port_id_t & port_id) = 0; virtual bool create_output_port (std::string name, port_id_t & port_id) = 0; virtual bool destroy_input_port (port_id_t portid) = 0; virtual bool destroy_output_port (port_id_t portid) = 0; virtual sample_t * get_input_port_buffer (port_id_t port, nframes_t nframes) = 0; virtual sample_t * get_output_port_buffer (port_id_t port, nframes_t nframes) = 0; virtual unsigned int get_input_port_count () = 0; virtual unsigned int get_output_port_count () = 0; virtual nframes_t get_input_port_latency (port_id_t portid) = 0; virtual nframes_t get_output_port_latency (port_id_t portid) = 0; virtual std::string get_name() { return _client_name; } virtual void set_engine (Engine * engine) { _engine = engine; } virtual Engine * get_engine () { return _engine; } virtual bool get_transport_info (TransportInfo &info) { return false; } virtual void set_transport_info (const TransportInfo &info) {} virtual bool set_timebase_master(bool flag) { return false; } virtual bool get_timebase_master() { return false; } virtual void reposition_transport(nframes_t framepos) {} virtual nframes_t get_samplerate() { return _samplerate; } virtual nframes_t get_buffersize() { return _buffersize; } sigc::signal0 ConnectionsChanged; protected: std::string _client_name; std::string _server_name; Engine * _engine; nframes_t _samplerate; nframes_t _buffersize; }; }; #endif sooperlooper-1.7.3~dfsg0/src/command_map.hpp0000644000175000017500000001413411754453700017622 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_command_map__ #define __sooperlooper_command_map__ #include #include #include #include "event.hpp" namespace SooperLooper { class CommandMap { public: static CommandMap & instance() { if (!_instance) { _instance = new CommandMap(); } return *_instance; } enum ControlUnit { UnitGeneric = 0, UnitGain, UnitPercent, UnitSeconds, UnitBoolean, UnitIndexed, UnitSamples, UnitInteger, UnitSemitones, UnitRatio, UnitTempo }; struct ControlInfo { ControlInfo (const std::string & nm, Event::control_t ctl, ControlUnit unt = UnitGeneric, float minVal=0.0f, float maxVal=1.0f, float defaultVal=0.0f) : name(nm), ctrl(ctl), minValue(minVal), maxValue(maxVal), defaultValue(defaultVal), unit(unt) {} ControlInfo() {} ControlInfo(const ControlInfo & other) : name(other.name), ctrl(other.ctrl), minValue(other.minValue), maxValue(other.maxValue), defaultValue(other.defaultValue), unit(other.unit) {} ControlInfo & operator=(const ControlInfo & other) { name = other.name; ctrl = other.ctrl; maxValue = other.maxValue; minValue = other.minValue; defaultValue = other.defaultValue; unit = other.unit; return *this; } virtual ~ControlInfo() {} std::string name; Event::control_t ctrl; float minValue; float maxValue; float defaultValue; ControlUnit unit; }; inline Event::command_t to_command_t (std::string cmd); inline std::string to_command_str (Event::command_t cmd); inline Event::control_t to_control_t (std::string cmd); inline std::string to_control_str (Event::control_t cmd); inline Event::type_t to_type_t (std::string cmd); inline std::string to_type_str (Event::type_t cmd); void get_commands (std::list & cmdlist); void get_controls (std::list & ctrllist); void get_global_controls (std::list & ctrllist); bool get_control_info(const std::string & ctrl, ControlInfo & info); bool is_command (std::string cmd) { return _str_cmd_map.find(cmd) != _str_cmd_map.end(); } bool is_control (std::string ctrl) { return _str_ctrl_map.find(ctrl) != _str_ctrl_map.end(); } bool is_input_control (std::string ctrl) { return _input_controls.find(ctrl) != _input_controls.end(); } bool is_output_control (std::string ctrl) { return _output_controls.find(ctrl) != _output_controls.end(); } bool is_event_control (std::string ctrl) { return _event_controls.find(ctrl) != _event_controls.end(); } bool is_global_control (std::string ctrl) { return _global_controls.find(ctrl) != _global_controls.end(); } protected: CommandMap(); virtual ~CommandMap() {} void add_input_control(const std::string & name, Event::control_t ctrl, ControlUnit unt = UnitGeneric, float minVal=0.0f, float maxVal=1.0f, float defaultVal=0.0f); void add_output_control(const std::string & name, Event::control_t ctrl, ControlUnit unt = UnitGeneric, float minVal=0.0f, float maxVal=1.0f, float defaultVal=0.0f); void add_global_control(const std::string & name, Event::control_t ctrl, ControlUnit unt = UnitGeneric, float minVal=0.0f, float maxVal=1.0f, float defaultVal=0.0f); static CommandMap * _instance; typedef std::map StringCommandMap; StringCommandMap _str_cmd_map; typedef std::map CommandStringMap; CommandStringMap _cmd_str_map; typedef std::map StringControlMap; StringControlMap _str_ctrl_map; typedef std::map ControlStringMap; ControlStringMap _ctrl_str_map; typedef std::map ControlInfoMap; ControlInfoMap _ctrl_info_map; typedef std::map StringTypeMap; StringTypeMap _str_type_map; typedef std::map TypeStringMap; TypeStringMap _type_str_map; StringControlMap _input_controls; StringControlMap _output_controls; StringControlMap _event_controls; StringControlMap _global_controls; }; inline Event::command_t CommandMap::to_command_t (std::string cmd) { StringCommandMap::iterator result = _str_cmd_map.find(cmd); if (result == _str_cmd_map.end()) { return Event::UNKNOWN; } return (*result).second; } inline std::string CommandMap::to_command_str (Event::command_t cmd) { CommandStringMap::iterator result = _cmd_str_map.find(cmd); if (result == _cmd_str_map.end()) { return "unknown"; } return (*result).second; } inline Event::control_t CommandMap::to_control_t (std::string cmd) { StringControlMap::iterator result = _str_ctrl_map.find(cmd); if (result == _str_ctrl_map.end()) { return Event::Unknown; } return (*result).second; } inline std::string CommandMap::to_control_str (Event::control_t cmd) { ControlStringMap::iterator result = _ctrl_str_map.find(cmd); if (result == _ctrl_str_map.end()) { return "unknown"; } return (*result).second; } inline Event::type_t CommandMap::to_type_t (std::string tp) { StringTypeMap::iterator result = _str_type_map.find(tp); if (result == _str_type_map.end()) { return Event::type_cmd_hit; // arbitrary } return (*result).second; } inline std::string CommandMap::to_type_str (Event::type_t tp) { TypeStringMap::iterator result = _type_str_map.find(tp); if (result == _type_str_map.end()) { return "unknown"; } return (*result).second; } }; #endif sooperlooper-1.7.3~dfsg0/src/._engine.cpp0000644000175000017500000000024712442352145017020 0ustar miramiraMac OS X  2u§ATTR§œ œ com.apple.TextEncodingmacintosh;0sooperlooper-1.7.3~dfsg0/src/utils.cpp0000644000175000017500000000221211754453701016475 0ustar miramira/* ** Copyright (C) 2005 Jesse Chappell ** ** This program 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. ** */ #include "utils.hpp" #include #include #include using namespace std; using namespace SooperLooper; LocaleGuard::LocaleGuard (const char* str) { old = strdup (setlocale (LC_NUMERIC, NULL)); if (strcmp (old, str)) { setlocale (LC_NUMERIC, str); } } LocaleGuard::~LocaleGuard () { setlocale (LC_NUMERIC, old); free ((char*)old); } sooperlooper-1.7.3~dfsg0/src/event_nonrt.hpp0000644000175000017500000001342411754453700017711 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** and Benno Senoner and Christian Schoenebeck ** ** This program 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. ** */ #ifndef __sooperlooper_event_nonrt__ #define __sooperlooper_event_nonrt__ #include #include #include "event.hpp" namespace SooperLooper { class EventNonRT { public: virtual ~EventNonRT() {} protected: EventNonRT() {}; virtual void dummy(){}; }; class ConfigLoopEvent : public EventNonRT { public: enum Type { Add, Remove } type; ConfigLoopEvent(Type tp, int chans=1, float sec=0.0f, int ind=0, int dis=1) : type(tp), channels(chans), secs(sec), index(ind), discrete(dis) {} virtual ~ConfigLoopEvent() {} int channels; float secs; int index; int discrete; }; class SessionEvent : public EventNonRT { public: enum Type { Load, Save } type; SessionEvent(Type tp, std::string fname, std::string returl, std::string retpath, bool audio=false) : type(tp), filename(fname), write_audio(audio), ret_url(returl), ret_path(retpath) {} virtual ~SessionEvent() {} std::string filename; bool write_audio; std::string ret_url; std::string ret_path; }; class LoopFileEvent : public EventNonRT { public: enum Type { Load, Save } type; enum FileFormat { FormatFloat = 0, FormatPCM16, FormatPCM24, FormatPCM32 }; enum Endian { LittleEndian = 0, BigEndian }; LoopFileEvent(Type tp, int inst, std::string fname, std::string returl, std::string retpath, FileFormat fmt=FormatFloat, Endian end=LittleEndian) : type(tp), instance(inst), filename(fname), format(fmt), endian(end), ret_url(returl), ret_path(retpath) {} virtual ~LoopFileEvent() {} int instance; std::string filename; FileFormat format; Endian endian; std::string ret_url; std::string ret_path; }; class GetParamEvent : public EventNonRT { public: GetParamEvent( int8_t inst, Event::control_t ctrl, std::string returl, std::string retpath) : control(ctrl), instance(inst), ret_url(returl), ret_path(retpath), ret_value(0.0f) {} virtual ~GetParamEvent() {} Event::control_t control; int8_t instance; std::string ret_url; std::string ret_path; float ret_value; }; class ConfigUpdateEvent : public EventNonRT { public: enum Type { Register, Unregister, Send, RegisterAuto, UnregisterAuto, RegisterCmd, UnregisterCmd, SendCmd, } type; ConfigUpdateEvent(Type tp, int8_t inst, Event::control_t ctrl, std::string returl="", std::string retpath="",float val=0.0, int src=-1, short int ms=0) : type(tp), control(ctrl), instance(inst), ret_url(returl), ret_path(retpath), value(val), source(src),update_time_ms(ms) {} ConfigUpdateEvent(Type tp, int8_t inst, Event::command_t cmd, std::string returl="", std::string retpath="", int src=-1) : type(tp), command(cmd), instance(inst), ret_url(returl), ret_path(retpath), value(0.0f), source(src) {} virtual ~ConfigUpdateEvent() {} Event::control_t control; Event::command_t command; int8_t instance; std::string ret_url; std::string ret_path; float value; int source; short int update_time_ms; }; class PingEvent : public EventNonRT { public: PingEvent(std::string returl, std::string retpath, bool useid) : ret_url(returl), ret_path(retpath), use_id(useid) {} virtual ~PingEvent() {} std::string ret_url; std::string ret_path; bool use_id; }; class RegisterConfigEvent : public EventNonRT { public: enum Type { Register, Unregister } type; RegisterConfigEvent(Type tp, std::string returl, std::string retpath) : type(tp), ret_url(returl), ret_path(retpath) {} virtual ~RegisterConfigEvent() {} std::string ret_url; std::string ret_path; }; class GlobalGetEvent : public EventNonRT { public: GlobalGetEvent(std::string par, std::string returl, std::string retpath) : param(par), ret_url(returl), ret_path(retpath), ret_value(0.0f) {} virtual ~GlobalGetEvent() {} std::string param; std::string ret_url; std::string ret_path; float ret_value; }; class GlobalSetEvent : public EventNonRT { public: GlobalSetEvent(std::string par, float val) : param(par), value(val) {} virtual ~GlobalSetEvent() {} std::string param; float value; }; class MidiBindingEvent : public EventNonRT { public: enum Type { GetAll, Remove, Add, Clear, Load, Save, Learn, GetNextMidi, CancelLearn, CancelGetNext } type; MidiBindingEvent(Type tp, std::string bindstr, std::string opt, std::string returl="", std::string retpath="") : type(tp), bind_str(bindstr), options(opt), ret_url(returl), ret_path(retpath) {} MidiBindingEvent() {} virtual ~MidiBindingEvent() {} std::string bind_str; std::string options; std::string ret_url; std::string ret_path; }; } // namespace SooperLooper #endif sooperlooper-1.7.3~dfsg0/src/looper.hpp0000644000175000017500000001442111755174074016653 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_looper__ #define __sooperlooper_looper__ #include #if HAVE_CONFIG_H #include #endif #include #include "audio_driver.hpp" #include "lockmonitor.hpp" #include "ladspa.h" #include "plugin.hpp" #include "event.hpp" #include "event_nonrt.hpp" #include "utils.hpp" #include namespace RubberBand { class RubberBandStretcher; } namespace SooperLooper { class OnePoleFilter; class Panner; class Looper { public: Looper (AudioDriver * driver, unsigned int index, unsigned int channel_count=1, float loopsecs=40.0, bool discrete=true); Looper (AudioDriver * driver, XMLNode & node); ~Looper (); bool initialize (unsigned int index, unsigned int channel_count=1, float loopsecs=40.0, bool discrete=true); void destroy(); bool operator() () const { return _ok; } void run (nframes_t offset, nframes_t nframes); void do_event (Event *ev); float get_control_value (Event::control_t ctrl); void set_port (ControlPort n, LADSPA_Data val); bool load_loop (std::string fname); bool save_loop (std::string fname = "", LoopFileEvent::FileFormat format = LoopFileEvent::FormatFloat); void set_buffer_size (nframes_t bufsize); sample_t * get_sync_in_buf() { return _our_syncin_buf; } sample_t * get_sync_out_buf() { return _our_syncout_buf; } void use_sync_buf(sample_t * buf); unsigned int get_index() const { return _index; } unsigned int get_channel_count() const { return _chan_count; } void set_use_common_ins (bool val); bool get_use_common_ins () const { return _use_common_ins; } void set_use_common_outs (bool val); bool get_use_common_outs () const { return _use_common_outs; } bool get_have_discrete_io () const { return _have_discrete_io; } void set_auto_latency (bool val) { _auto_latency = val; } bool get_auto_latency () const { return _auto_latency; } // disables any compensation but maintains the current values void set_disable_latency_compensation (bool val); bool get_disable_latency_compensation () const { return _disable_latency; } void set_samples_since_sync(nframes_t ssync); void set_replace_quantized(bool flag); // called when some loop instance is being soloed, index says which instance (may not be us) void set_soloed (int index, bool value, bool retrigger=false); bool is_soloed() const { return _is_soloed; } bool is_muted() const { return ports[State] == LooperStateMuted || ports[State] == LooperStateOffMuted; } bool has_loop() const ; // finishes any active state that may be going (rec, overdub, etc) bool finish_state(); bool is_longpress (int command); XMLNode& get_state () const; int set_state (const XMLNode&); void recompute_latencies(); protected: void run_loops (nframes_t offset, nframes_t nframes); void run_loops_resampled (nframes_t offset, nframes_t nframes); static void compute_peak (sample_t *buf, nframes_t nsamples, float& peak) { float p = peak; for (nframes_t n = 0; n < nsamples; ++n) { p = f_max (p, fabsf(buf[n])); } peak = p; } int requested_cmd; int last_requested_cmd; AudioDriver * _driver; port_id_t* _input_ports; port_id_t* _output_ports; unsigned int _index; unsigned int _chan_count; LADSPA_Handle * _instances; float _loopsecs; LADSPA_Descriptor* descriptor; LADSPA_Data ports[LASTPORT]; float _curr_dry; float _target_dry; float _curr_input_gain; float _targ_input_gain; bool _relative_sync; // keeps track of down/up commands for SUS purposes nframes_t _down_stamps[Event::LAST_COMMAND+1]; nframes_t _longpress_frames; nframes_t _doubletap_frames; nframes_t _running_frames; nframes_t _buffersize; LADSPA_Data * _our_syncin_buf; LADSPA_Data * _our_syncout_buf; LADSPA_Data * _use_sync_buf; LADSPA_Data * _dummy_buf; LADSPA_Data ** _tmp_io_bufs; Panner * _panner; float _input_peak; float _output_peak; float _falloff_per_sample; LADSPA_Data _slave_sync_port; LADSPA_Data _slave_dummy_port; bool _use_common_ins; bool _use_common_outs; bool _have_discrete_io; bool _auto_latency; bool _disable_latency; LADSPA_Data _last_trigger_latency; LADSPA_Data _last_input_latency; LADSPA_Data _last_output_latency; bool _pre_solo_muted; bool _is_soloed; // SRC stuff SRC_STATE** _in_src_states; SRC_STATE** _out_src_states; SRC_STATE* _insync_src_state; SRC_STATE* _outsync_src_state; float * _src_in_buffer; float * _src_sync_buffer; nframes_t _src_buffer_len; double _src_in_ratio; double _src_out_ratio; SRC_DATA _src_data; OnePoleFilter ** _lp_filter; // rubberband stuff RubberBand::RubberBandStretcher * _in_stretcher; RubberBand::RubberBandStretcher * _out_stretcher; double _stretch_ratio; double _pitch_shift; // in semitones float * _stretch_buffer; bool _tempo_stretch; volatile bool _pending_stretch; volatile double _pending_stretch_ratio; bool _ok; volatile bool request_pending; PBD::NonBlockingLock _loop_lock; }; }; #endif sooperlooper-1.7.3~dfsg0/src/panner.hpp0000644000175000017500000001330512230252703016617 0ustar miramira/* Copyright (C) 2004 Paul Davis, Jesse Chappell This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __sooperlooper_panner_h__ #define __sooperlooper_panner_h__ #include #include #include #include #include #include "audio_driver.hpp" #include using std::istream; using std::ostream; namespace SooperLooper { typedef float gain_t; typedef float pan_t; class Panner; class StreamPanner : public sigc::trackable { public: StreamPanner (Panner& p); ~StreamPanner (); void set_muted (bool yn); bool muted() const { return _muted; } void set_position (float x, bool link_call = false); void set_position (float x, float y, bool link_call = false); void set_position (float x, float y, float z, bool link_call = false); void get_position (float& xpos) const { xpos = x; } void get_position (float& xpos, float& ypos) const { xpos = x; ypos = y; } void get_position (float& xpos, float& ypos, float& zpos) const { xpos = x; ypos = y; zpos = z; } void get_effective_position (float& xpos) const { xpos = effective_x; } void get_effective_position (float& xpos, float& ypos) const { xpos = effective_x; ypos = effective_y; } void get_effective_position (float& xpos, float& ypos, float& zpos) const { xpos = effective_x; ypos = effective_y; zpos = effective_z; } /* the basic panner API */ virtual void distribute (sample_t* src, sample_t** obufs, gain_t gain_coeff, nframes_t nframes) = 0; sigc::signal0 Changed; /* for position */ sigc::signal0 StateChanged; /* for mute */ virtual XMLNode& get_state (void) = 0; virtual int set_state (const XMLNode&); Panner & get_parent() { return parent; } protected: friend class Panner; Panner& parent; float x; float y; float z; /* these are for automation. they store the last value used by the most recent process() cycle. */ float effective_x; float effective_y; float effective_z; bool _muted; void add_state (XMLNode&); virtual void update () = 0; }; class BaseStereoPanner : public StreamPanner { public: BaseStereoPanner (Panner&); ~BaseStereoPanner (); /* this class just leaves the pan law itself to be defined by the update(), distribute_automated() methods. derived classes also need a factory method and a type name. See EqualPowerStereoPanner as an example. */ void distribute (sample_t* src, sample_t** obufs, gain_t gain_coeff, nframes_t nframes); protected: float left; float right; float desired_left; float desired_right; float left_interp; float right_interp; }; class EqualPowerStereoPanner : public BaseStereoPanner { public: EqualPowerStereoPanner (Panner&); ~EqualPowerStereoPanner (); void get_current_coefficients (pan_t*) const; void get_desired_coefficients (pan_t*) const; static StreamPanner* factory (Panner&); static std::string name; XMLNode& get_state (void); int set_state (const XMLNode&); private: void update (); }; class Multi2dPanner : public StreamPanner { public: Multi2dPanner (Panner& parent); ~Multi2dPanner (); void distribute (sample_t* src, sample_t** obufs, gain_t gain_coeff, nframes_t nframes); static StreamPanner* factory (Panner&); static std::string name; XMLNode& get_state (void); int set_state (const XMLNode&); private: void update (); }; class Panner : public std::vector, public sigc::trackable { public: struct Output { float x; float y; pan_t current_pan; pan_t desired_pan; Output (float xp, float yp) : x (xp), y (yp), current_pan (0.0f), desired_pan (0.f) {} }; Panner (std::string name); virtual ~Panner (); void set_name (std::string); bool bypassed() const { return _bypassed; } void set_bypassed (bool yn); StreamPanner* add (); void remove (uint32_t which); void clear (); void reset (uint32_t noutputs, uint32_t npans); XMLNode& get_state (void); XMLNode& state (bool full); int set_state (const XMLNode&); sigc::signal0 Changed; static bool equivalent (pan_t a, pan_t b) { return fabsf (a - b) < 0.002; // about 1 degree of arc for a stereo panner } void move_output (uint32_t, float x, float y); uint32_t nouts() const { return outputs.size(); } Output& output (uint32_t n) { return outputs[n]; } std::vector outputs; enum LinkDirection { SameDirection, OppositeDirection }; LinkDirection link_direction() const { return _link_direction; } void set_link_direction (LinkDirection); bool linked() const { return _linked; } void set_linked (bool yn); sigc::signal0 LinkStateChanged; sigc::signal0 StateChanged; /* for bypass */ /* only StreamPanner should call these */ void set_position (float x, StreamPanner& orig); void set_position (float x, float y, StreamPanner& orig); void set_position (float x, float y, float z, StreamPanner& orig); private: uint32_t current_outs; bool _linked; bool _bypassed; LinkDirection _link_direction; }; }; /* namespace ARDOUR */ #endif /*__ardour_panner_h__ */ sooperlooper-1.7.3~dfsg0/src/Makefile.am0000644000175000017500000000246612143570646016701 0ustar miramiraSUBDIRS = @SL_DIRS@ bin_PROGRAMS = sooperlooper slconsole slregister slpresetdir = $(datadir)/sooperlooper/presets slpreset_DATA = midiwizard.slb oxy8.slb edp4.slb bcf2000.slb AM_CXXFLAGS = @JACK_CFLAGS@ @LOSC_CFLAGS@ @SIGCPP_CFLAGS@ @SNDFILE_CFLAGS@ @SAMPLERATE_CFLAGS@ @XML_CFLAGS@ @RUBBERBAND_CFLAGS@ @FFTW_CFLAGS@ #SYSDEP_SRCS= #if WITH_ALSA #SYSDEP_SRCS += alsa_midi_bridge.cpp #endif #if WITH_COREMIDI #SYSDEP_SRCS += coremidi_bridge.cpp #endif noinst_LIBRARIES = libslcore.a libsldrivers.a libslcore_a_SOURCES = \ engine.cpp \ control_osc.cpp \ looper.cpp \ plugin.cc \ event.cpp \ midi_bridge.cpp \ midi_bind.cpp \ audio_driver.cpp \ command_map.cpp \ filter.cpp \ panner.cpp \ utils.cpp \ $(SYSDEP_SRCS) libsldrivers_a_SOURCES = \ jack_audio_driver.cpp sooperlooper_SOURCES = \ sooperlooper.cpp sooperlooper_LDADD = libsldrivers.a libslcore.a @BASE_LIBS@ @JACK_LIBS@ @LOSC_LIBS@ @SIGCPP_LIBS@ @RUBBERBAND_LIBS@ @FFTW_LIBS@ @SNDFILE_LIBS@ @SAMPLERATE_LIBS@ @AUDIO_LIBS@ @XML_LIBS@ sooperlooper_LDFLAGS = slconsole_SOURCES = slconsole.cpp slconsole_LDADD = @LOSC_LIBS@ @NCURSES_LIBS@ -lpthread slregister_SOURCES = register_tool.cpp slregister_LDADD = @LOSC_LIBS@ -lpthread noinst_HEADERS = $(wildcard *.hpp *.h) EXTRA_DIST = oxy8.slb midiwizard.slb bcf2000.slb edp4.slb sooperlooper-1.7.3~dfsg0/src/control_osc.hpp0000644000175000017500000002657612230252703017676 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_control_osc__ #define __sooperlooper_control_osc__ #include #include #include #include #include #include #include "event.hpp" #include "event_nonrt.hpp" //define timing for auto updates in ms //having STEP more often than 10ms and a different from the MIN may cause timing problems #define AUTO_UPDATE_MIN 10 #define AUTO_UPDATE_STEP AUTO_UPDATE_MIN #define AUTO_UPDATE_MAX 100 #define AUTO_UPDATE_RANGE (((AUTO_UPDATE_MAX - AUTO_UPDATE_MIN)/AUTO_UPDATE_STEP) + 1) namespace SooperLooper { class Engine; class MidiBindings; class CommandMap; class ControlOSC : public sigc::trackable { public: ControlOSC (Engine *, unsigned int port); virtual ~ControlOSC(); std::string get_server_url(); int get_server_port () { return _port; } std::string get_unix_server_url(); bool is_ok() { return _ok; } void send_all_config (); void send_pingack (bool useudp, bool use_id, std::string returl, std::string retpath="/pingack"); void send_all_midi_bindings (MidiBindings * bind, std::string returl, std::string retpath); void send_auto_updates (const std::list timeout_list); void send_error (std::string returl, std::string retpath, std::string mesg); void finish_get_event (GetParamEvent & event); void finish_update_event (ConfigUpdateEvent & event); void finish_register_event (RegisterConfigEvent &event); void finish_loop_config_event (ConfigLoopEvent &event); void finish_global_get_event (GlobalGetEvent & event); void finish_midi_binding_event (MidiBindingEvent & event); private: struct CommandInfo { CommandInfo (ControlOSC * os, int n, Event::type_t t) : osc(os), instance(n), type(t) {} ControlOSC * osc; int instance; Event::type_t type; }; struct MidiBindCommand { enum Command { GetAllBinding = 1, RemoveBinding, AddBinding, ClearAllBindings, LoadBindings, SaveBindings, LearnBinding, GetNextMidi, CancelLearn, CancelGetNext }; MidiBindCommand(ControlOSC * os, Command cmd) : osc(os), command(cmd) {} ControlOSC * osc; Command command; }; void on_loop_added(int instance, bool sendupdate=true); void on_loop_removed(); void register_callbacks(); lo_address find_or_cache_addr(std::string returl); static int _quit_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _global_set_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _global_get_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _updown_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _set_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _get_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _dummy_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _register_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _unregister_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _register_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _unregister_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _ping_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _loop_add_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _loop_del_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _load_session_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _save_session_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _register_config_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _unregister_config_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _loadloop_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _saveloop_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _global_register_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _global_unregister_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _global_register_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _global_unregister_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _midi_start_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _midi_stop_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _midi_tick_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); static int _midi_binding_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data); bool init_osc_thread(); void terminate_osc_thread(); void poke_osc_thread(); static void * _osc_receiver(void * arg); void osc_receiver(); int quit_handler(const char *path, const char *types, lo_arg **argv, int argc,void *data); int ping_handler(const char *path, const char *types, lo_arg **argv, int argc,void *data); int global_get_handler(const char *path, const char *types, lo_arg **argv, int argc,void *data); int global_set_handler(const char *path, const char *types, lo_arg **argv, int argc,void *data); int loop_add_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); int loop_del_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); int load_session_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); int save_session_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); int register_config_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); int unregister_config_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); int global_register_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); int global_unregister_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); int global_register_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); int global_unregister_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); int midi_start_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); int midi_stop_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); int midi_tick_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data); int midi_binding_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, MidiBindCommand * info); int updown_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo * info); int set_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo * info); int get_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo * info); int register_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo * info); int unregister_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo * info); int register_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo * info); int unregister_auto_update_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo * info); int loadloop_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo * info); int saveloop_handler(const char *path, const char *types, lo_arg **argv, int argc, void *data, CommandInfo * info); Event::command_t to_command_t (std::string cmd); std::string to_command_str (Event::command_t cmd); Event::control_t to_control_t (std::string cmd); std::string to_control_str (Event::control_t cmd); Engine * _engine; pthread_t _osc_thread; int _request_pipe[2]; lo_server _osc_server; lo_server _osc_unix_server; std::string _osc_unix_socket_path; int _port; volatile bool _ok; volatile bool _shutdown; int _max_instance; std::map _retaddr_map; CommandMap * _cmd_map; typedef std::pair InstancePair; typedef std::pair UrlPair; typedef std::list UrlList; typedef std::map ControlRegistrationMap; typedef std::map LastValueMap; typedef std::map UrlMapToLastValueMap; typedef struct { UrlPair upair; short int timeout; } UrlPairAuto; typedef std::list UrlListAuto; typedef std::map ControlRegistrationMapAuto; ControlRegistrationMap _registration_map; ControlRegistrationMapAuto _auto_registration_map; UrlMapToLastValueMap _last_value_map; int compare_auto(UrlPairAuto a, UrlPairAuto b); void send_registered_updates(std::string ctrl, float val, int instance, int source=-1); bool send_registered_updates(ControlRegistrationMap::iterator & iter, std::string ctrl, float val, int instance, int source=-1); bool send_registered_auto_updates(ControlRegistrationMapAuto::iterator & iter, const InstancePair & ipair, float val, const std::list timeout_list); typedef std::pair AddrPathPair; typedef std::list AddressList; AddressList _config_registrations; void validate_returl(std::string & returl); }; }; // sooperlooper namespace #endif sooperlooper-1.7.3~dfsg0/src/register_tool.cpp0000644000175000017500000002270111754453701020223 0ustar miramira#include #include #include #include #include #include using namespace std; class RegisterTool { public: lo_address _osc_addr; std::string _our_url; RegisterTool(const string & target_port, const string & sl_port, const string & target_host="localhost") { _osc_addr = lo_address_new(NULL, sl_port.c_str()); char tmpbuf[100]; snprintf(tmpbuf, sizeof(tmpbuf), "osc.udp://%s:%s", target_host.c_str(), target_port.c_str()); _our_url = tmpbuf; } void register_global_updates(const string & path="/ctrl", bool unreg=false) { char buf[50]; if (!_osc_addr) return; if (unreg) { snprintf(buf, sizeof(buf), "/unregister_update"); } else { snprintf(buf, sizeof(buf), "/register_update"); } // results will come back with instance = -2 lo_send(_osc_addr, buf, "sss", "tempo", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "sync_source", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "eighth_per_cycle", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "tap_tempo", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "wet", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "dry", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "input_gain", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "auto_disable_latency", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "output_midi_clock", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "use_midi_stop", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "use_midi_start", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "send_midi_start_on_trigger", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "smart_eighths", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "selected_loop_num", _our_url.c_str(), path.c_str()); if (unreg) { lo_send(_osc_addr, "/unregister_auto_update", "siss", "in_peak_meter", 100, _our_url.c_str(), path.c_str()); lo_send(_osc_addr, "/unregister_auto_update", "siss", "out_peak_meter", 100, _our_url.c_str(), path.c_str()); } else { lo_send(_osc_addr, "/register_auto_update", "siss", "in_peak_meter", 100, _our_url.c_str(), path.c_str()); lo_send(_osc_addr, "/register_auto_update", "siss", "out_peak_meter", 100, _our_url.c_str(), path.c_str()); } } void register_auto_updates(int index, const string & path, bool unreg=false) { if (!_osc_addr) return; char buf[30]; if (unreg) { snprintf(buf, sizeof(buf), "/sl/%d/unregister_auto_update", index); lo_send(_osc_addr, buf, "sss", "state", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "next_state", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "loop_pos", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "loop_len", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "cycle_len", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "free_time", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "total_time", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "waiting", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "rate_output", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "in_peak_meter", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "out_peak_meter", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "is_soloed", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "stretch_ratio", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "pitch_shift", _our_url.c_str(), path.c_str()); } else { snprintf(buf, sizeof(buf), "/sl/%d/register_auto_update", index); // send request for auto updates lo_send(_osc_addr, buf, "siss", "state", 100, _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "siss", "next_state", 100, _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "siss", "loop_pos", 100, _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "siss", "loop_len", 100, _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "siss", "cycle_len", 100, _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "siss", "free_time", 100, _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "siss", "total_time",100, _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "siss", "waiting", 100, _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "siss", "rate_output",100, _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "siss", "in_peak_meter", 100, _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "siss", "out_peak_meter", 100, _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "siss", "is_soloed", 100, _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "siss", "stretch_ratio", 100, _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "siss", "pitch_shift", 100, _our_url.c_str(), path.c_str()); } } void register_input_controls(int index, const std::string & path="/ctrl", bool unreg=false) { if (!_osc_addr) return; char buf[50]; if (unreg) { snprintf(buf, sizeof(buf), "/sl/%d/unregister_update", index); } else { snprintf(buf, sizeof(buf), "/sl/%d/register_update", index); } // send request for updates lo_send(_osc_addr, buf, "sss", "rec_thresh", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "feedback", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "use_feedback_play", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "dry", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "wet", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "input_gain", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "rate", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "scratch_pos", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "delay_trigger", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "quantize", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "fade_samples", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "round", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "sync", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "playback_sync", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "redo_is_tap", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "use_rate", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "use_common_ins", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "use_common_outs", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "relative_sync", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "input_latency", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "output_latency", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "trigger_latency", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "autoset_latency", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "mute_quantized", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "overdub_quantized", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "replace_quantized", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "round_integer_tempo", _our_url.c_str(), path.c_str()); //lo_send(_osc_addr, buf, "sss", "pitch_shift", _our_url.c_str(), path.c_str()); //lo_send(_osc_addr, buf, "sss", "stretch_ratio", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "tempo_stretch", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "pan_1", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "pan_2", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "pan_3", _our_url.c_str(), path.c_str()); lo_send(_osc_addr, buf, "sss", "pan_4", _our_url.c_str(), path.c_str()); } void register_control (int index, std::string ctrl, const string & path, bool unreg=false) { if (!_osc_addr) return; char buf[30]; if (unreg) { snprintf(buf, sizeof(buf), "/sl/%d/unregister_update", index); } else { snprintf(buf, sizeof(buf), "/sl/%d/register_update", index); } // send request for updates lo_send(_osc_addr, buf, "sss", (const char *) ctrl.c_str(), _our_url.c_str(), path.c_str()); } }; int main(int argc, char ** argv) { if (argc < 4) { printf("Usage: %s target_host [unregister]\n\n", argv[0]); printf(" Where target_host and is the OSC hostname and port number of the server you\n wish to receive status updates from SooperLooper\nUse localhost if the software is running on the same computer.\n"); printf(" And is your SL port (for example use 9951 for the standalone SL, or 10051 for the AU plugin)\n"); return 2; } string targ_port = "8000"; string sl_port = "9951"; string targ_host = "localhost"; bool unreg = false; if (argc > 2) { targ_host = argv[1]; targ_port = argv[2]; sl_port = argv[3]; if (argc > 4) { unreg = true; } } RegisterTool regtool(targ_port, sl_port, targ_host); regtool.register_global_updates("/sl/global", unreg); char pathstr[30]; for (int i=0; i < 8; ++i) { snprintf(pathstr, sizeof(pathstr), "/sl/%d/ctrl", i); regtool.register_auto_updates(i, pathstr, unreg); regtool.register_input_controls(i, pathstr, unreg); } return 0; } sooperlooper-1.7.3~dfsg0/src/._plugin.cc0000644000175000017500000000024712336660304016655 0ustar miramiraMac OS X  2u§ATTR§œ œ com.apple.TextEncodingmacintosh;0sooperlooper-1.7.3~dfsg0/src/filter.cpp0000644000175000017500000000411711754453700016627 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ // this code adapted from richard furse's CMT filter plugin #include #include "filter.hpp" using namespace SooperLooper; using namespace std; OnePoleFilter::OnePoleFilter(float srate) : fLastOutput(0), fLastCutoff(0), fCurrCutoff(0), fAmountOfCurrent(0), fAmountOfLast(0) { set_samplerate (srate); } void OnePoleFilter::run_lowpass (float * buf, uint32_t nframes) { float * pbuf = buf; if (fLastCutoff != fCurrCutoff) { fLastCutoff = fCurrCutoff; fLastOutput = 0; if (fLastCutoff <= 0) { /* Reject everything. */ fAmountOfCurrent = fAmountOfLast = 0; } else if (fLastCutoff > fSampleRate * 0.5) { /* Above Nyquist frequency. Let everything through. */ fAmountOfCurrent = 1; fAmountOfLast = 0; } else { fAmountOfLast = 0; float fComp = 2 - cos(fTwoPiOverSampleRate * fLastCutoff); fAmountOfLast = fComp - (float)sqrt(fComp * fComp - 1); fAmountOfCurrent = 1 - fAmountOfLast; } } float tfAmountOfCurrent = fAmountOfCurrent; float tfAmountOfLast = fAmountOfLast; float tfLastOutput = fLastOutput; for (uint32_t n = 0; n < nframes; ++n) { *(pbuf) = tfLastOutput = (tfAmountOfCurrent * *(pbuf) + tfAmountOfLast * tfLastOutput); ++pbuf; } fLastOutput = tfLastOutput; } void OnePoleFilter::run_highpass (float * buf, uint32_t nframes) { } sooperlooper-1.7.3~dfsg0/src/atomic.h0000644000175000017500000007225511754453700016273 0ustar miramira/* Copyright (C) 2001 Paul Davis and others (see below) Code derived from various headers from the Linux kernel. Copyright attributions maintained where present. This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __libpbd_atomic_h__ #define __libpbd_atomic_h__ #ifdef HAVE_CONFIG_H #include /* config.h c/o auto* tools, wherever it may be */ #endif #ifdef HAVE_SMP /* a macro we control, to manage ... */ #define CONFIG_SMP /* ... the macro the kernel headers use */ #endif #if defined(__powerpc__) || defined(__ppc__) /* * BK Id: SCCS/s.atomic.h 1.15 10/28/01 10:37:22 trini */ /* * PowerPC atomic operations */ #ifndef _ASM_PPC_ATOMIC_H_ #define _ASM_PPC_ATOMIC_H_ typedef struct { volatile int counter; } atomic_t; #define ATOMIC_INIT(i) { (i) } #define atomic_read(v) ((v)->counter) #define atomic_set(v,i) (((v)->counter) = (i)) extern void atomic_clear_mask(unsigned long mask, unsigned long *addr); extern void atomic_set_mask(unsigned long mask, unsigned long *addr); #ifdef CONFIG_SMP #define SMP_ISYNC "\n\tisync" #else #define SMP_ISYNC #endif static __inline__ void atomic_add(int a, atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%3\n\ add %0,%2,%0\n\ stwcx. %0,0,%3\n\ bne- 1b" : "=&r" (t), "=m" (v->counter) : "r" (a), "r" (&v->counter), "m" (v->counter) : "cc"); } static __inline__ int atomic_add_return(int a, atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%2\n\ add %0,%1,%0\n\ stwcx. %0,0,%2\n\ bne- 1b" SMP_ISYNC : "=&r" (t) : "r" (a), "r" (&v->counter) : "cc", "memory"); return t; } static __inline__ void atomic_sub(int a, atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%3\n\ subf %0,%2,%0\n\ stwcx. %0,0,%3\n\ bne- 1b" : "=&r" (t), "=m" (v->counter) : "r" (a), "r" (&v->counter), "m" (v->counter) : "cc"); } static __inline__ int atomic_sub_return(int a, atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%2\n\ subf %0,%1,%0\n\ stwcx. %0,0,%2\n\ bne- 1b" SMP_ISYNC : "=&r" (t) : "r" (a), "r" (&v->counter) : "cc", "memory"); return t; } static __inline__ void atomic_inc(atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%2\n\ addic %0,%0,1\n\ stwcx. %0,0,%2\n\ bne- 1b" : "=&r" (t), "=m" (v->counter) : "r" (&v->counter), "m" (v->counter) : "cc"); } static __inline__ int atomic_inc_return(atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%1\n\ addic %0,%0,1\n\ stwcx. %0,0,%1\n\ bne- 1b" SMP_ISYNC : "=&r" (t) : "r" (&v->counter) : "cc", "memory"); return t; } static __inline__ void atomic_dec(atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%2\n\ addic %0,%0,-1\n\ stwcx. %0,0,%2\n\ bne- 1b" : "=&r" (t), "=m" (v->counter) : "r" (&v->counter), "m" (v->counter) : "cc"); } static __inline__ int atomic_dec_return(atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%1\n\ addic %0,%0,-1\n\ stwcx. %0,0,%1\n\ bne- 1b" SMP_ISYNC : "=&r" (t) : "r" (&v->counter) : "cc", "memory"); return t; } #define atomic_sub_and_test(a, v) (atomic_sub_return((a), (v)) == 0) #define atomic_dec_and_test(v) (atomic_dec_return((v)) == 0) /* * Atomically test *v and decrement if it is greater than 0. * The function returns the old value of *v minus 1. */ static __inline__ int atomic_dec_if_positive(atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%1\n\ addic. %0,%0,-1\n\ blt- 2f\n\ stwcx. %0,0,%1\n\ bne- 1b" SMP_ISYNC "\n\ 2:" : "=&r" (t) : "r" (&v->counter) : "cc", "memory"); return t; } #define smp_mb__before_atomic_dec() smp_mb() #define smp_mb__after_atomic_dec() smp_mb() #define smp_mb__before_atomic_inc() smp_mb() #define smp_mb__after_atomic_inc() smp_mb() #endif /* _ASM_PPC_ATOMIC_H_ */ /***********************************************************************/ # else /* !PPC */ #if defined(__i386__) || defined(__x86_64__) #ifndef __ARCH_I386_ATOMIC__ #define __ARCH_I386_ATOMIC__ /* * Atomic operations that C can't guarantee us. Useful for * resource counting etc.. */ #ifdef CONFIG_SMP #define SMP_LOCK "lock ; " #else #define SMP_LOCK "" #endif /* * Make sure gcc doesn't try to be clever and move things around * on us. We need to use _exactly_ the address the user gave us, * not some alias that contains the same information. */ typedef struct { volatile int counter; } atomic_t; #define ATOMIC_INIT(i) { (i) } /** * atomic_read - read atomic variable * @v: pointer of type atomic_t * * Atomically reads the value of @v. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_read(v) ((v)->counter) /** * atomic_set - set atomic variable * @v: pointer of type atomic_t * @i: required value * * Atomically sets the value of @v to @i. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_set(v,i) (((v)->counter) = (i)) /** * atomic_add - add integer to atomic variable * @i: integer value to add * @v: pointer of type atomic_t * * Atomically adds @i to @v. Note that the guaranteed useful range * of an atomic_t is only 24 bits. */ static __inline__ void atomic_add(int i, atomic_t *v) { __asm__ __volatile__( SMP_LOCK "addl %1,%0" :"=m" (v->counter) :"ir" (i), "m" (v->counter)); } /** * atomic_sub - subtract the atomic variable * @i: integer value to subtract * @v: pointer of type atomic_t * * Atomically subtracts @i from @v. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ static __inline__ void atomic_sub(int i, atomic_t *v) { __asm__ __volatile__( SMP_LOCK "subl %1,%0" :"=m" (v->counter) :"ir" (i), "m" (v->counter)); } /** * atomic_sub_and_test - subtract value from variable and test result * @i: integer value to subtract * @v: pointer of type atomic_t * * Atomically subtracts @i from @v and returns * true if the result is zero, or false for all * other cases. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ static __inline__ int atomic_sub_and_test(int i, atomic_t *v) { unsigned char c; __asm__ __volatile__( SMP_LOCK "subl %2,%0; sete %1" :"=m" (v->counter), "=qm" (c) :"ir" (i), "m" (v->counter) : "memory"); return c; } /** * atomic_inc - increment atomic variable * @v: pointer of type atomic_t * * Atomically increments @v by 1. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ static __inline__ void atomic_inc(atomic_t *v) { __asm__ __volatile__( SMP_LOCK "incl %0" :"=m" (v->counter) :"m" (v->counter)); } /** * atomic_dec - decrement atomic variable * @v: pointer of type atomic_t * * Atomically decrements @v by 1. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ static __inline__ void atomic_dec(atomic_t *v) { __asm__ __volatile__( SMP_LOCK "decl %0" :"=m" (v->counter) :"m" (v->counter)); } /** * atomic_dec_and_test - decrement and test * @v: pointer of type atomic_t * * Atomically decrements @v by 1 and * returns true if the result is 0, or false for all other * cases. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ static __inline__ int atomic_dec_and_test(atomic_t *v) { unsigned char c; __asm__ __volatile__( SMP_LOCK "decl %0; sete %1" :"=m" (v->counter), "=qm" (c) :"m" (v->counter) : "memory"); return c != 0; } /** * atomic_inc_and_test - increment and test * @v: pointer of type atomic_t * * Atomically increments @v by 1 * and returns true if the result is zero, or false for all * other cases. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ static __inline__ int atomic_inc_and_test(atomic_t *v) { unsigned char c; __asm__ __volatile__( SMP_LOCK "incl %0; sete %1" :"=m" (v->counter), "=qm" (c) :"m" (v->counter) : "memory"); return c != 0; } /** * atomic_add_negative - add and test if negative * @v: pointer of type atomic_t * @i: integer value to add * * Atomically adds @i to @v and returns true * if the result is negative, or false when * result is greater than or equal to zero. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ static __inline__ int atomic_add_negative(int i, atomic_t *v) { unsigned char c; __asm__ __volatile__( SMP_LOCK "addl %2,%0; sets %1" :"=m" (v->counter), "=qm" (c) :"ir" (i), "m" (v->counter) : "memory"); return c; } /* These are x86-specific, used by some header files */ #define atomic_clear_mask(mask, addr) \ __asm__ __volatile__(SMP_LOCK "andl %0,%1" \ : : "r" (~(mask)),"m" (*addr) : "memory") #define atomic_set_mask(mask, addr) \ __asm__ __volatile__(SMP_LOCK "orl %0,%1" \ : : "r" (mask),"m" (*addr) : "memory") /* Atomic operations are already serializing on x86 */ #define smp_mb__before_atomic_dec() barrier() #define smp_mb__after_atomic_dec() barrier() #define smp_mb__before_atomic_inc() barrier() #define smp_mb__after_atomic_inc() barrier() #endif /* __ARCH_I386_ATOMIC__ */ /***********************************************************************/ #else /* !PPC && !i386 */ #ifdef __sparc__ /* atomic.h: These still suck, but the I-cache hit rate is higher. * * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu) * Copyright (C) 2000 Anton Blanchard (anton@linuxcare.com.au) */ #ifndef __ARCH_SPARC_ATOMIC__ #define __ARCH_SPARC_ATOMIC__ typedef struct { volatile int counter; } atomic_t; #ifndef CONFIG_SMP #define ATOMIC_INIT(i) { (i) } #define atomic_read(v) ((v)->counter) #define atomic_set(v, i) (((v)->counter) = i) #else /* We do the bulk of the actual work out of line in two common * routines in assembler, see arch/sparc/lib/atomic.S for the * "fun" details. * * For SMP the trick is you embed the spin lock byte within * the word, use the low byte so signedness is easily retained * via a quick arithmetic shift. It looks like this: * * ---------------------------------------- * | signed 24-bit counter value | lock | atomic_t * ---------------------------------------- * 31 8 7 0 */ #define ATOMIC_INIT(i) { (i << 8) } static __inline__ int atomic_read(atomic_t *v) { int ret = v->counter; while(ret & 0xff) ret = v->counter; return ret >> 8; } #define atomic_set(v, i) (((v)->counter) = ((i) << 8)) #endif static __inline__ int __atomic_add(int i, atomic_t *v) { register volatile int *ptr asm("g1"); register int increment asm("g2"); ptr = &v->counter; increment = i; __asm__ __volatile__( "mov %%o7, %%g4\n\t" "call ___atomic_add\n\t" " add %%o7, 8, %%o7\n" : "=&r" (increment) : "0" (increment), "r" (ptr) : "g3", "g4", "g7", "memory", "cc"); return increment; } static __inline__ int __atomic_sub(int i, atomic_t *v) { register volatile int *ptr asm("g1"); register int increment asm("g2"); ptr = &v->counter; increment = i; __asm__ __volatile__( "mov %%o7, %%g4\n\t" "call ___atomic_sub\n\t" " add %%o7, 8, %%o7\n" : "=&r" (increment) : "0" (increment), "r" (ptr) : "g3", "g4", "g7", "memory", "cc"); return increment; } #define atomic_add(i, v) ((void)__atomic_add((i), (v))) #define atomic_sub(i, v) ((void)__atomic_sub((i), (v))) #define atomic_dec_return(v) __atomic_sub(1, (v)) #define atomic_inc_return(v) __atomic_add(1, (v)) #define atomic_sub_and_test(i, v) (__atomic_sub((i), (v)) == 0) #define atomic_dec_and_test(v) (__atomic_sub(1, (v)) == 0) #define atomic_inc(v) ((void)__atomic_add(1, (v))) #define atomic_dec(v) ((void)__atomic_sub(1, (v))) #define atomic_add_negative(i, v) (__atomic_add((i), (v)) < 0) /* Atomic operations are already serializing */ #define smp_mb__before_atomic_dec() barrier() #define smp_mb__after_atomic_dec() barrier() #define smp_mb__before_atomic_inc() barrier() #define smp_mb__after_atomic_inc() barrier() #endif /* !(__ARCH_SPARC_ATOMIC__) */ /***********************************************************************/ #else #ifdef __ia64__ #ifndef __ARCH_IA64_ATOMIC__ #define __ARCH_IA64_ATOMIC__ typedef volatile int atomic_t; inline int atomic_read (const atomic_t * a) { return *a; } inline void atomic_set(atomic_t *a, int v) { *a = v; } inline void atomic_inc (atomic_t *v) { int old, r; do { old = atomic_read(v); __asm__ __volatile__ ("mov ar.ccv=%0;;" :: "rO" (old)); __asm__ __volatile__ ("cmpxchg4.acq %0=[%1],%2,ar.ccv" : "=r"(r) : "r"(v), "r"(old + 1) : "memory"); } while (r != old); } inline void atomic_dec (atomic_t *v) { int old, r; do { old = atomic_read(v); __asm__ __volatile__ ("mov ar.ccv=%0;;" :: "rO" (old)); __asm__ __volatile__ ("cmpxchg4.acq %0=[%1],%2,ar.ccv" : "=r"(r) : "r"(v), "r"(old - 1) : "memory"); } while (r != old); } inline int atomic_dec_and_test (atomic_t *v) { int old, r; do { old = atomic_read(v); __asm__ __volatile__ ("mov ar.ccv=%0;;" :: "rO" (old)); __asm__ __volatile__ ("cmpxchg4.acq %0=[%1],%2,ar.ccv" : "=r"(r) : "r"(v), "r"(old - 1) : "memory"); } while (r != old); return old != 1; } #endif /* !(__ARCH_IA64_ATOMIC__) */ #else #ifdef __alpha__ #ifndef _ALPHA_ATOMIC_H #define _ALPHA_ATOMIC_H /* * Atomic operations that C can't guarantee us. Useful for * resource counting etc... * * But use these as seldom as possible since they are much slower * than regular operations. */ /* * Counter is volatile to make sure gcc doesn't try to be clever * and move things around on us. We need to use _exactly_ the address * the user gave us, not some alias that contains the same information. */ typedef struct { volatile int counter; } atomic_t; #define ATOMIC_INIT(i) ( (atomic_t) { (i) } ) #define atomic_read(v) ((v)->counter) #define atomic_set(v,i) ((v)->counter = (i)) /* * To get proper branch prediction for the main line, we must branch * forward to code at the end of this object's .text section, then * branch back to restart the operation. */ static __inline__ void atomic_add(int i, atomic_t * v) { unsigned long temp; __asm__ __volatile__( "1: ldl_l %0,%1\n" " addl %0,%2,%0\n" " stl_c %0,%1\n" " beq %0,2f\n" ".subsection 2\n" "2: br 1b\n" ".previous" :"=&r" (temp), "=m" (v->counter) :"Ir" (i), "m" (v->counter)); } static __inline__ void atomic_sub(int i, atomic_t * v) { unsigned long temp; __asm__ __volatile__( "1: ldl_l %0,%1\n" " subl %0,%2,%0\n" " stl_c %0,%1\n" " beq %0,2f\n" ".subsection 2\n" "2: br 1b\n" ".previous" :"=&r" (temp), "=m" (v->counter) :"Ir" (i), "m" (v->counter)); } /* * Same as above, but return the result value */ static __inline__ long atomic_add_return(int i, atomic_t * v) { long temp, result; __asm__ __volatile__( "1: ldl_l %0,%1\n" " addl %0,%3,%2\n" " addl %0,%3,%0\n" " stl_c %0,%1\n" " beq %0,2f\n" " mb\n" ".subsection 2\n" "2: br 1b\n" ".previous" :"=&r" (temp), "=m" (v->counter), "=&r" (result) :"Ir" (i), "m" (v->counter) : "memory"); return result; } static __inline__ long atomic_sub_return(int i, atomic_t * v) { long temp, result; __asm__ __volatile__( "1: ldl_l %0,%1\n" " subl %0,%3,%2\n" " subl %0,%3,%0\n" " stl_c %0,%1\n" " beq %0,2f\n" " mb\n" ".subsection 2\n" "2: br 1b\n" ".previous" :"=&r" (temp), "=m" (v->counter), "=&r" (result) :"Ir" (i), "m" (v->counter) : "memory"); return result; } #define atomic_dec_return(v) atomic_sub_return(1,(v)) #define atomic_inc_return(v) atomic_add_return(1,(v)) #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0) #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0) #define atomic_inc(v) atomic_add(1,(v)) #define atomic_dec(v) atomic_sub(1,(v)) #define smp_mb__before_atomic_dec() smp_mb() #define smp_mb__after_atomic_dec() smp_mb() #define smp_mb__before_atomic_inc() smp_mb() #define smp_mb__after_atomic_inc() smp_mb() #endif /* _ALPHA_ATOMIC_H */ #else #ifdef __s390__ #ifndef __ARCH_S390_ATOMIC__ #define __ARCH_S390_ATOMIC__ /* * include/asm-s390/atomic.h * * S390 version * Copyright (C) 1999,2000 IBM Deutschland Entwicklung GmbH, IBM Corporation * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), * Denis Joseph Barrow * * Derived from "include/asm-i386/bitops.h" * Copyright (C) 1992, Linus Torvalds * */ /* * Atomic operations that C can't guarantee us. Useful for * resource counting etc.. * S390 uses 'Compare And Swap' for atomicity in SMP enviroment */ typedef struct { volatile int counter; } __attribute__ ((aligned (4))) atomic_t; #define ATOMIC_INIT(i) { (i) } #define atomic_eieio() __asm__ __volatile__ ("BCR 15,0") #define __CS_LOOP(old_val, new_val, ptr, op_val, op_string) \ __asm__ __volatile__(" l %0,0(%2)\n" \ "0: lr %1,%0\n" \ op_string " %1,%3\n" \ " cs %0,%1,0(%2)\n" \ " jl 0b" \ : "=&d" (old_val), "=&d" (new_val) \ : "a" (ptr), "d" (op_val) : "cc" ); #define atomic_read(v) ((v)->counter) #define atomic_set(v,i) (((v)->counter) = (i)) static __inline__ void atomic_add(int i, atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, i, "ar"); } static __inline__ int atomic_add_return (int i, atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, i, "ar"); return new_val; } static __inline__ int atomic_add_negative(int i, atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, i, "ar"); return new_val < 0; } static __inline__ void atomic_sub(int i, atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, i, "sr"); } static __inline__ void atomic_inc(volatile atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, 1, "ar"); } static __inline__ int atomic_inc_return(volatile atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, 1, "ar"); return new_val; } static __inline__ int atomic_inc_and_test(volatile atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, 1, "ar"); return new_val != 0; } static __inline__ void atomic_dec(volatile atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, 1, "sr"); } static __inline__ int atomic_dec_return(volatile atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, 1, "sr"); return new_val; } static __inline__ int atomic_dec_and_test(volatile atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, 1, "sr"); return new_val == 0; } static __inline__ void atomic_clear_mask(unsigned long mask, atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, ~mask, "nr"); } static __inline__ void atomic_set_mask(unsigned long mask, atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, mask, "or"); } /* returns 0 if expected_oldval==value in *v ( swap was successful ) returns 1 if unsuccessful. */ static __inline__ int atomic_compare_and_swap(int expected_oldval,int new_val,atomic_t *v) { int retval; __asm__ __volatile__( " lr 0,%2\n" " cs 0,%3,0(%1)\n" " ipm %0\n" " srl %0,28\n" "0:" : "=&d" (retval) : "a" (v), "d" (expected_oldval) , "d" (new_val) : "0", "cc"); return retval; } /* Spin till *v = expected_oldval then swap with newval. */ static __inline__ void atomic_compare_and_swap_spin(int expected_oldval,int new_val,atomic_t *v) { __asm__ __volatile__( "0: lr 0,%1\n" " cs 0,%2,0(%0)\n" " jl 0b\n" : : "a" (v), "d" (expected_oldval) , "d" (new_val) : "cc", "0" ); } #define smp_mb__before_atomic_dec() smp_mb() #define smp_mb__after_atomic_dec() smp_mb() #define smp_mb__before_atomic_inc() smp_mb() #define smp_mb__after_atomic_inc() smp_mb() #endif /* __ARCH_S390_ATOMIC __ */ #else #ifdef __mips__ /* * Atomic operations that C can't guarantee us. Useful for * resource counting etc.. * * But use these as seldom as possible since they are much more slower * than regular operations. * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1996, 1997, 2000 by Ralf Baechle */ #ifndef __ASM_ATOMIC_H #define __ASM_ATOMIC_H typedef struct { volatile int counter; } atomic_t; #define ATOMIC_INIT(i) { (i) } /* * atomic_read - read atomic variable * @v: pointer of type atomic_t * * Atomically reads the value of @v. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_read(v) ((v)->counter) /* * atomic_set - set atomic variable * @v: pointer of type atomic_t * @i: required value * * Atomically sets the value of @v to @i. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_set(v,i) ((v)->counter = (i)) /* * ... while for MIPS II and better we can use ll/sc instruction. This * implementation is SMP safe ... */ /* * atomic_add - add integer to atomic variable * @i: integer value to add * @v: pointer of type atomic_t * * Atomically adds @i to @v. Note that the guaranteed useful range * of an atomic_t is only 24 bits. */ extern __inline__ void atomic_add(int i, atomic_t * v) { unsigned long temp; __asm__ __volatile__( ".set push # atomic_add\n" ".set mips2 \n" "1: ll %0, %1 \n" " addu %0, %2 \n" " sc %0, %1 \n" " beqz %0, 1b \n" ".set pop \n" : "=&r" (temp), "=m" (v->counter) : "Ir" (i), "m" (v->counter)); } /* * atomic_sub - subtract the atomic variable * @i: integer value to subtract * @v: pointer of type atomic_t * * Atomically subtracts @i from @v. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ extern __inline__ void atomic_sub(int i, atomic_t * v) { unsigned long temp; __asm__ __volatile__( ".set push # atomic_sub\n" ".set mips2 \n" "1: ll %0, %1 \n" " subu %0, %2 \n" " sc %0, %1 \n" " beqz %0, 1b \n" ".set pop \n" : "=&r" (temp), "=m" (v->counter) : "Ir" (i), "m" (v->counter)); } /* * Same as above, but return the result value */ extern __inline__ int atomic_add_return(int i, atomic_t * v) { unsigned long temp, result; __asm__ __volatile__( ".set push # atomic_add_return\n" ".set mips2 \n" ".set noreorder \n" "1: ll %1, %2 \n" " addu %0, %1, %3 \n" " sc %0, %2 \n" " beqz %0, 1b \n" " addu %0, %1, %3 \n" " sync \n" ".set pop \n" : "=&r" (result), "=&r" (temp), "=m" (v->counter) : "Ir" (i), "m" (v->counter) : "memory"); return result; } extern __inline__ int atomic_sub_return(int i, atomic_t * v) { unsigned long temp, result; __asm__ __volatile__( ".set push # atomic_sub_return\n" ".set mips2 \n" ".set noreorder \n" "1: ll %1, %2 \n" " subu %0, %1, %3 \n" " sc %0, %2 \n" " beqz %0, 1b \n" " subu %0, %1, %3 \n" " sync \n" ".set pop \n" : "=&r" (result), "=&r" (temp), "=m" (v->counter) : "Ir" (i), "m" (v->counter) : "memory"); return result; } #define atomic_dec_return(v) atomic_sub_return(1,(v)) #define atomic_inc_return(v) atomic_add_return(1,(v)) /* * atomic_sub_and_test - subtract value from variable and test result * @i: integer value to subtract * @v: pointer of type atomic_t * * Atomically subtracts @i from @v and returns * true if the result is zero, or false for all * other cases. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0) /* * atomic_inc_and_test - increment and test * @v: pointer of type atomic_t * * Atomically increments @v by 1 * and returns true if the result is zero, or false for all * other cases. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_inc_and_test(v) (atomic_inc_return(1, (v)) == 0) /* * atomic_dec_and_test - decrement by 1 and test * @v: pointer of type atomic_t * * Atomically decrements @v by 1 and * returns true if the result is 0, or false for all other * cases. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0) /* * atomic_inc - increment atomic variable * @v: pointer of type atomic_t * * Atomically increments @v by 1. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_inc(v) atomic_add(1,(v)) /* * atomic_dec - decrement and test * @v: pointer of type atomic_t * * Atomically decrements @v by 1. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_dec(v) atomic_sub(1,(v)) /* * atomic_add_negative - add and test if negative * @v: pointer of type atomic_t * @i: integer value to add * * Atomically adds @i to @v and returns true * if the result is negative, or false when * result is greater than or equal to zero. Note that the guaranteed * useful range of an atomic_t is only 24 bits. * * Currently not implemented for MIPS. */ /* Atomic operations are already serializing */ #define smp_mb__before_atomic_dec() smp_mb() #define smp_mb__after_atomic_dec() smp_mb() #define smp_mb__before_atomic_inc() smp_mb() #define smp_mb__after_atomic_inc() smp_mb() #endif /* __ASM_ATOMIC_H */ #else #if defined(__m68k__) #ifndef __ARCH_M68K_ATOMIC__ #define __ARCH_M68K_ATOMIC__ /* * Atomic operations that C can't guarantee us. Useful for * resource counting etc.. */ /* * We do not have SMP m68k systems, so we don't have to deal with that. */ typedef struct { int counter; } atomic_t; #define ATOMIC_INIT(i) { (i) } #define atomic_read(v) ((v)->counter) #define atomic_set(v, i) (((v)->counter) = i) static __inline__ void atomic_add(int i, atomic_t *v) { __asm__ __volatile__("addl %1,%0" : "=m" (*v) : "id" (i), "0" (*v)); } static __inline__ void atomic_sub(int i, atomic_t *v) { __asm__ __volatile__("subl %1,%0" : "=m" (*v) : "id" (i), "0" (*v)); } static __inline__ void atomic_inc(volatile atomic_t *v) { __asm__ __volatile__("addql #1,%0" : "=m" (*v): "0" (*v)); } static __inline__ void atomic_dec(volatile atomic_t *v) { __asm__ __volatile__("subql #1,%0" : "=m" (*v): "0" (*v)); } static __inline__ int atomic_dec_and_test(volatile atomic_t *v) { char c; __asm__ __volatile__("subql #1,%1; seq %0" : "=d" (c), "=m" (*v): "1" (*v)); return c != 0; } #define atomic_clear_mask(mask, v) \ __asm__ __volatile__("andl %1,%0" : "=m" (*v) : "id" (~(mask)),"0"(*v)) #define atomic_set_mask(mask, v) \ __asm__ __volatile__("orl %1,%0" : "=m" (*v) : "id" (mask),"0"(*v)) /* Atomic operations are already serializing */ #define smp_mb__before_atomic_dec() barrier() #define smp_mb__after_atomic_dec() barrier() #define smp_mb__before_atomic_inc() barrier() #define smp_mb__after_atomic_inc() barrier() #endif /* __ARCH_M68K_ATOMIC __ */ #else #warning libs/pbd has no implementation of strictly atomic operations for your hardware. #define __NO_STRICT_ATOMIC #ifdef __NO_STRICT_ATOMIC /* * Because the implementations from the kernel (where all these come * from) use cli and spinlocks for hppa and arm... */ typedef struct { volatile int counter; } atomic_t; #define ATOMIC_INIT(i) ( (atomic_t) { (i) } ) #define atomic_read(v) ((v)->counter) #define atomic_set(v,i) ((v)->counter = (i)) static __inline__ void atomic_inc(atomic_t *v) { v->counter++; } static __inline__ void atomic_dec(atomic_t *v) { v->counter--; } static __inline__ int atomic_dec_and_test(atomic_t *v) { int res; v->counter--; res = v->counter; return res == 0; } static __inline__ int atomic_inc_and_test(atomic_t *v) { int res; v->counter++; res = v->counter; return res == 0; } # endif /* __NO_STRICT_ATOMIC */ # endif /* m68k */ # endif /* mips */ # endif /* s390 */ # endif /* alpha */ # endif /* ia64 */ # endif /* sparc */ # endif /* i386 */ # endif /* ppc */ #endif /* __libpbd_atomic_h__ */ sooperlooper-1.7.3~dfsg0/src/engine.hpp0000644000175000017500000002315012230252703016600 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_engine__ #define __sooperlooper_engine__ #include #include #include #include "lockmonitor.hpp" #include "ringbuffer.hpp" #include "event.hpp" #include "event_nonrt.hpp" #include "audio_driver.hpp" #include "midi_bind.hpp" #include "command_map.hpp" namespace SooperLooper { class Looper; class ControlOSC; class MidiBridge; class Engine : public sigc::trackable { public: static const int TEMPO_WINDOW_SIZE = 4; static const int TEMPO_WINDOW_SIZE_MASK = 3; Engine(); virtual ~Engine(); bool initialize(AudioDriver * driver, int buschans=2, int port=9951, std::string pingurl=""); void cleanup(); AudioDriver * get_audio_driver () { return _driver; } ControlOSC * get_control_osc () { return _osc; } void set_default_loop_secs (float secs) { _def_loop_secs = secs; } void set_default_channels (int chan) { _def_channel_cnt = chan; } void set_midi_bridge (MidiBridge * bridge); MidiBridge * get_midi_bridge() { return _midi_bridge; } bool is_ok() const { return _ok; } void set_ignore_quit(bool val) { _ignore_quit = val; } bool get_ignore_quit() { return _ignore_quit; } void quit(bool force=false); bool add_loop (unsigned int chans, float loopsecs=40.0f, bool discrete = true); bool add_loop (Looper * instance); bool remove_loop (Looper * loop); void set_force_discrete(bool flag) { _force_discrete = flag; } bool get_force_discrete() const { return _force_discrete; } size_t loop_count() { return _instances.size(); } size_t get_loop_channel_count(size_t instance, bool realtime); int process (nframes_t); void buffersize_changed (nframes_t); //RingBuffer & get_event_queue() { return *_event_queue; } bool get_common_input (unsigned int chan, port_id_t & port); bool get_common_output (unsigned int chan, port_id_t & port); sample_t * get_common_input_buffer (unsigned int chan); sample_t * get_common_output_buffer (unsigned int chan); size_t get_common_output_count () { return _common_outputs.size(); } size_t get_common_input_count () { return _common_outputs.size(); } EventGenerator & get_event_generator() { return *_event_generator;} bool push_command_event (Event::type_t type, Event::command_t cmd, int8_t instance); void push_control_event (Event::type_t type, Event::control_t ctrl, float val, int8_t instance, int src=0); void push_midi_command_event (Event::type_t type, Event::command_t cmd, int8_t instance, long framepos=-1); void push_midi_control_event (Event::type_t type, Event::control_t ctrl, float val, int8_t instance, long framepos=-1); void push_sync_event (Event::control_t ctrl, long framepos=-1, MIDI::timestamp_t timestamp=0); std::string get_osc_url (bool udp=true); int get_osc_port (); bool load_midi_bindings (std::string filename, bool append, CommandMap & cmdmap); bool load_midi_bindings (std::istream & instream, bool append, CommandMap & cmdmap); float get_control_value (Event::control_t, int8_t instance); sigc::signal2 LoopAdded; sigc::signal0 LoopRemoved; sigc::signal2 ParamChanged; // the main non-rt event processing loop void mainloop(); bool push_nonrt_event (EventNonRT * event); void binding_learned(MidiBindInfo info); void next_midi_received(MidiBindInfo info); // session state bool load_session (std::string fname, std::string * readstr=0); bool save_session (std::string fname, bool write_audio = false, std::string * writestr=0); int get_id() const { return _unique_id; } bool get_transport_always_rolls() const { return _transport_always_rolls; } void set_transport_always_rolls(); protected: struct LoopManageEvent { enum EventType { AddLoop = 0, RemoveLoop, LoadSession }; LoopManageEvent () {} LoopManageEvent (EventType et, Looper *loop) : etype(et), looper(loop) {} EventType etype; Looper * looper; }; bool process_nonrt_event (EventNonRT * event); void process_rt_loop_manage_events (); // returns >= 0 offset position on tempo beats int generate_sync (nframes_t offset, nframes_t nframes); void update_sync_source (); void calculate_tempo_frames (); void calculate_midi_tick (bool rt=true); void do_global_rt_event (Event * ev, nframes_t offset, nframes_t nframes); bool do_push_command_event (RingBuffer * rb, Event::type_t type, Event::command_t cmd, int8_t instance, long framepos=-1); bool do_push_control_event (RingBuffer * rb, Event::type_t type, Event::control_t ctrl, float val, int8_t instance, long framepos=-1, int src=0); bool push_loop_manage_to_rt (LoopManageEvent & lme); bool push_loop_manage_to_main (LoopManageEvent & lme); void set_tempo (double tempo, bool rt=true); inline double avg_tempo(double tempo); inline void reset_avg_tempo(double tempo=0.0); void fill_common_outs(nframes_t nframes); void prepare_buffers(nframes_t nframes); void connections_changed(); void handle_load_session_event(); AudioDriver * _driver; ControlOSC * _osc; MidiBridge * _midi_bridge; typedef std::vector Instances; // the rt thread keeps this one Instances _rt_instances; // the non-rt keeps this copy Instances _instances; PBD::NonBlockingLock _instance_lock; // looper (de)allocation event RingBuffer * _loop_manage_to_rt_queue; RingBuffer * _loop_manage_to_main_queue; bool _ignore_quit; volatile bool _ok; volatile bool _learn_done; volatile bool _received_done; MidiBindInfo _learninfo; MidiBindingEvent _learn_event; // RT event queue RingBuffer * _event_queue; RingBuffer * _midi_event_queue; RingBuffer * _sync_queue; RingBuffer * _nonrt_update_event_queue; EventGenerator * _event_generator; // non-rt event stuff RingBuffer * _nonrt_event_queue; PBD::NonBlockingLock _event_loop_lock; pthread_cond_t _event_cond; int _def_channel_cnt; float _def_loop_secs; nframes_t _buffersize; // global parameters enum SyncSourceType { FIRST_SYNC_SOURCE=-5, // must be first BrotherSync = -4, InternalTempoSync = -3, MidiClockSync = -2, JackSync = -1, NoSync = 0 // anything > 0 is considered a loop number }; float * _internal_sync_buf; int _sync_source; volatile double _tempo; // bpm volatile MIDI::timestamp_t _beatstamp; // timestamp at the beat of the last tempo change volatile MIDI::timestamp_t _prev_beatstamp; bool _force_next_clock_start; volatile bool _send_midi_start_after_next_hit; bool _send_midi_start_on_trigger; float _eighth_cycle; // eighth notes per loop cycle std::vector _common_inputs; std::vector _common_outputs; std::vector _common_input_buffers; std::vector _common_output_buffers; std::vector _temp_input_buffers; std::vector _temp_output_buffers; bool _use_temp_input; float _curr_common_dry; float _target_common_dry; float _curr_common_wet; float _target_common_wet; float _curr_input_gain; float _target_input_gain; float _common_input_peak; float _common_output_peak; float _falloff_per_sample; bool _auto_disable_latency; int _selected_loop; bool _jack_timebase_master; bool _output_midi_clock; bool _smart_eighths; bool _force_discrete; int _unique_id; bool _transport_always_rolls; private: double _tempo_counter; double _tempo_frames; double _quarter_note_frames; double _quarter_counter; unsigned int _midi_ticks; // counts ticks as they're coming in unsigned int _midi_loop_tick; // tick number to loop (sync) on nframes_t _running_frames; nframes_t _last_tempo_frame; volatile bool _tempo_changed; volatile bool _beat_occurred; volatile bool _conns_changed; volatile bool _sel_loop_changed; volatile bool _timebase_changed; double _tempo_averages[TEMPO_WINDOW_SIZE]; double _running_tempo_sum; unsigned int _avgindex; nframes_t _longpress_frames; nframes_t _solo_down_stamp; bool _use_sync_start; bool _use_sync_stop; bool _loading; SessionEvent* _load_sess_event; }; inline double Engine::avg_tempo(double tempo) { //double alpha = 0.8; //tempo = (_tempo*alpha + tempo*(1-alpha)); _running_tempo_sum += tempo; _running_tempo_sum -= _tempo_averages[_avgindex]; _tempo_averages[_avgindex] = tempo; _avgindex = (_avgindex + 1) & TEMPO_WINDOW_SIZE_MASK; return _running_tempo_sum / (double) TEMPO_WINDOW_SIZE; } inline void Engine::reset_avg_tempo(double tempo) { for (int i=0; i < TEMPO_WINDOW_SIZE; ++i) { _tempo_averages[i] = tempo; } _running_tempo_sum = tempo * TEMPO_WINDOW_SIZE; _avgindex = TEMPO_WINDOW_SIZE_MASK; } }; // sooperlooper namespace #endif sooperlooper-1.7.3~dfsg0/src/event.hpp0000644000175000017500000001445511754453700016476 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** and Benno Senoner and Christian Schoenebeck ** ** This program 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. ** */ #ifndef __sooperlooper_event__ #define __sooperlooper_event__ #include namespace SooperLooper { // just symbol prototyping class Event; /** * Generates Event objects and is responsible for resolving the position * in the current audio fragment each Event actually belongs to. */ class EventGenerator { public: typedef double time_stamp_t; EventGenerator(uint32_t sampleRate); void updateFragmentTime(uint32_t samplesToProcess); Event createEvent(long fragTime=-1); Event createTimestampedEvent(time_stamp_t timeStamp); protected: inline uint32_t toFragmentPos(time_stamp_t timeStamp) { return uint32_t ((timeStamp - fragmentTime.begin) * fragmentTime.sample_ratio); } friend class Event; private: uint32_t uiSampleRate; uint32_t uiSamplesProcessed; struct __FragmentTime__ { time_stamp_t begin; ///< Real time stamp of the beginning of this audio fragment cycle. time_stamp_t end; ///< Real time stamp of the end of this audio fragment cycle. double sample_ratio; ///< (Samples per cycle) / (Real time duration of cycle) } fragmentTime; time_stamp_t createTimeStamp(); }; /** * Events are usually caused by an OSC source * An event can only be created by an * EventGenerator. * * @see EventGenerator */ class Event { public: Event() : Type(type_cmd_down),Command(UNKNOWN),Control(Unknown),Instance(0), Value(0) {} enum type_t { type_cmd_down, type_cmd_up, type_cmd_upforce, type_cmd_hit, type_control_change, type_control_request, type_global_control_change, type_sync } Type; enum command_t { UNKNOWN = -1, UNDO = 0, REDO, REPLACE, REVERSE, SCRATCH, RECORD, OVERDUB, MULTIPLY, INSERT, MUTE, // extra features DELAY, REDO_TOG, QUANT_TOG, ROUND_TOG, ONESHOT, TRIGGER, SUBSTITUTE, UNDO_ALL, REDO_ALL, MUTE_ON, MUTE_OFF, PAUSE, PAUSE_ON, PAUSE_OFF, SOLO, SOLO_NEXT, SOLO_PREV, RECORD_SOLO, RECORD_SOLO_NEXT, RECORD_SOLO_PREV, SET_SYNC_POS, RESET_SYNC_POS, MUTE_TRIGGER, RECORD_OR_OVERDUB, RECORD_EXCLUSIVE, RECORD_EXCLUSIVE_NEXT, RECORD_EXCLUSIVE_PREV, RECORD_OR_OVERDUB_EXCL, RECORD_OR_OVERDUB_EXCL_NEXT, RECORD_OR_OVERDUB_EXCL_PREV, UNDO_TWICE, RECORD_OR_OVERDUB_SOLO, RECORD_OR_OVERDUB_SOLO_TRIG, RECORD_OVERDUB_END_SOLO, RECORD_OVERDUB_END_SOLO_TRIG, RECORD_OR_OVERDUB_SOLO_NEXT, RECORD_OR_OVERDUB_SOLO_PREV, LAST_COMMAND } Command; enum control_t { Unknown = -1, TriggerThreshold = 0, DryLevel, WetLevel, Feedback, Rate, ScratchPosition, MultiUnused, TapDelayTrigger, UseFeedbackPlay, Quantize, Round, RedoTap, SyncMode, UseRate, FadeSamples, TempoInput, PlaybackSync, EighthPerCycleLoop, UseSafetyFeedback, InputLatency, OutputLatency, TriggerLatency, MuteQuantized, OverdubQuantized, SyncOffsetSamples, RoundIntegerTempo, // read only State, LoopLength, LoopPosition, CycleLength, FreeTime, TotalTime, Waiting, TrueRate, NextState, // this is end of loop enum.. the following are global Tempo, SyncTo, EighthPerCycle, TapTempo, MidiStart, MidiStop, MidiTick, AutoDisableLatency, SmartEighths, OutputMidiClock, UseMidiStart, UseMidiStop, SelectNextLoop, SelectPrevLoop, SelectAllLoops, SelectedLoopNum, JackTimebaseMaster, // these are per-loop, but not used in the old plugin part SaveLoop, UseCommonIns, UseCommonOuts, HasDiscreteIO, ChannelCount, InPeakMeter, OutPeakMeter, RelativeSync, InputGain, AutosetLatency, IsSoloed, StretchRatio, PitchShift, TempoStretch, // this is ugly, because i want them midi bindable PanChannel1, PanChannel2, PanChannel3, PanChannel4, // Put all new controls at the end to avoid screwing up the order of existing AU sessions (who store these numbers) ReplaceQuantized, SendMidiStartOnTrigger } Control; int8_t Instance; float Value; inline int FragmentPos() { if (iFragmentPos >= 0) return (int) iFragmentPos; return (int) (iFragmentPos = pEventGenerator->toFragmentPos(TimeStamp)); } typedef EventGenerator::time_stamp_t timestamp_t; EventGenerator::time_stamp_t getTimestamp() const { return TimeStamp; } int source; protected: typedef EventGenerator::time_stamp_t time_stamp_t; Event(EventGenerator* pGenerator, EventGenerator::time_stamp_t Time); Event(EventGenerator* pGenerator, int fragmentpos); friend class EventGenerator; private: EventGenerator* pEventGenerator; ///< Creator of the event. time_stamp_t TimeStamp; ///< Time stamp of the event's occurence. int iFragmentPos; ///< Position in the current fragment this event refers to. }; } // namespace SooperLooper #endif sooperlooper-1.7.3~dfsg0/src/utils.hpp0000644000175000017500000000411411754453701016505 0ustar miramira/* ** Copyright (C) 2004 Jesse Chappell ** ** This program 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. ** */ #ifndef __sooperlooper_utils_h__ #define __sooperlooper_utils_h__ #include #include namespace SooperLooper { // from steve harris's ladspa plugin set /* // 32.32 fixpoint typedef union { int64_t all; struct { #ifdef WORDS_BIGENDIAN int32_t in; uint32_t fr; #else uint32_t fr; int32_t in; #endif } part; } fixp32; */ /* 32 bit "pointer cast" union */ typedef union { float f; int32_t i; } ls_pcast32; static inline float flush_to_zero(float f) { ls_pcast32 v; v.f = f; // original: return (v.i & 0x7f800000) == 0 ? 0.0f : f; // version from Tim Blechmann return (v.i & 0x7f800000) < 0x08000000 ? 0.0f : f; } /* A set of branchless clipping operations from Laurent de Soras */ static inline float f_max(float x, float a) { x -= a; x += fabsf(x); x *= 0.5; x += a; return x; } static inline float f_min(float x, float b) { x = b - x; x += fabsf(x); x *= 0.5; x = b - x; return x; } static inline float f_clamp(float x, float a, float b) { const float x1 = fabsf(x - a); const float x2 = fabsf(x - b); x = x1 + a + b; x -= x2; x *= 0.5; return x; } }; struct LocaleGuard { LocaleGuard (const char*); ~LocaleGuard (); const char* old; }; #define DB_CO(g) ((g) > -90.0f ? pow(10.0, (g) * 0.05) : 0.0) #define CO_DB(v) (20.0 * log10(v)) #endif sooperlooper-1.7.3~dfsg0/libs/0000755000175000017500000000000012503567205014774 5ustar miramirasooperlooper-1.7.3~dfsg0/libs/Makefile.in0000644000175000017500000005065512442352504017050 0ustar miramira# Makefile.in generated by automake 1.11 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . DIST_COMMON = $(am__configure_deps) $(srcdir)/../install-sh \ $(srcdir)/../missing $(srcdir)/../mkinstalldirs \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/configure ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d "$(distdir)" \ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr "$(distdir)"; }; } am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MAINTAINERCLEANFILES = autom4te.cache Makefile.in configure aclocal.m4 \ config.guess config.sub \ mkinstalldirs missing install-sh ltconfig \ config.log config.status depcomp SUBDIRS = @subdirs@ EXTRA_DIST = autogen.sh all: all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \ distclean distclean-generic distclean-tags distcleancheck \ distdir distuninstallcheck dvi dvi-am html html-am info \ info-am install install-am install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags tags-recursive uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: sooperlooper-1.7.3~dfsg0/libs/midi++/0000755000175000017500000000000012503567205016044 5ustar miramirasooperlooper-1.7.3~dfsg0/libs/midi++/port_request.cc0000644000175000017500000000371411754453700021115 0ustar miramira/* Copyright (C) 2000 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include using namespace std; using namespace MIDI; PortRequest::PortRequest (const string &xdev, const string &xtag, const string &xmode, const string &xtype) { status = OK; devname = strdup (xdev.c_str()); tagname = strdup (xtag.c_str()); if (xmode == "output" || xmode == "out" || xmode == "OUTPUT" || xmode == "OUT") { mode = O_WRONLY; } else if (xmode == "input" || xmode == "in" || xmode == "INPUT" || xmode == "IN") { mode = O_RDONLY; } else if (xmode == "duplex" || xmode == "DUPLEX" || xmode == "inout" || xmode == "INOUT") { mode = O_RDWR; } else { status = Unknown; } if (xtype == "ALSA/RAW" || xtype == "alsa/raw") { type = Port::ALSA_RawMidi; } else if (xtype == "ALSA/SEQUENCER" || xtype == "alsa/sequencer") { type = Port::ALSA_Sequencer; } else if (xtype == "COREMIDI" || xtype == "coremidi") { type = Port::CoreMidi_MidiPort; } else if (xtype == "NULL" || xtype == "null") { type = Port::Null; } else if (xtype == "FIFO" || xtype == "fifo") { type = Port::FIFO; } else { status = Unknown; } } sooperlooper-1.7.3~dfsg0/libs/midi++/Makefile.in0000644000175000017500000006647312442352512020124 0ustar miramira# Makefile.in generated by automake 1.11 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ @WITH_ALSA_TRUE@am__append_1 = alsa_sequencer_midiport.cc @WITH_COREMIDI_TRUE@am__append_2 = coremidi_midiport.cc subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/libmidi++.pc.in $(srcdir)/libmidi++.spec.in \ $(srcdir)/version.cc.in $(top_srcdir)/configure AUTHORS \ COPYING ChangeLog INSTALL NEWS config.guess config.sub depcomp \ install-sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = version.cc libmidi++.pc libmidi++.spec CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) AR = ar ARFLAGS = cru libmidipp_a_AR = $(AR) $(ARFLAGS) libmidipp_a_LIBADD = am__libmidipp_a_SOURCES_DIST = fd_midiport.cc fifomidi.cc midi.cc \ midichannel.cc midicontrollable.cc midifactory.cc \ midimanager.cc midiparser.cc midiport.cc mmc.cc mtc.cc \ port_request.cc version.cc alsa_sequencer_midiport.cc \ coremidi_midiport.cc @WITH_ALSA_TRUE@am__objects_1 = alsa_sequencer_midiport.$(OBJEXT) @WITH_COREMIDI_TRUE@am__objects_2 = coremidi_midiport.$(OBJEXT) am__objects_3 = $(am__objects_1) $(am__objects_2) am_libmidipp_a_OBJECTS = fd_midiport.$(OBJEXT) fifomidi.$(OBJEXT) \ midi.$(OBJEXT) midichannel.$(OBJEXT) \ midicontrollable.$(OBJEXT) midifactory.$(OBJEXT) \ midimanager.$(OBJEXT) midiparser.$(OBJEXT) midiport.$(OBJEXT) \ mmc.$(OBJEXT) mtc.$(OBJEXT) port_request.$(OBJEXT) \ version.$(OBJEXT) $(am__objects_3) libmidipp_a_OBJECTS = $(am_libmidipp_a_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ SOURCES = $(libmidipp_a_SOURCES) DIST_SOURCES = $(am__libmidipp_a_SOURCES_DIST) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d "$(distdir)" \ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr "$(distdir)"; }; } am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ACLOCAL_FLAGS = @ACLOCAL_FLAGS@ AMTAR = @AMTAR@ AUDIO_LIBS = @AUDIO_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONTROLLER_VALUES_TYPE = @CONTROLLER_VALUES_TYPE@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBMIDIPP_MAJOR_VERSION = @LIBMIDIPP_MAJOR_VERSION@ LIBMIDIPP_MICRO_VERSION = @LIBMIDIPP_MICRO_VERSION@ LIBMIDIPP_MINOR_VERSION = @LIBMIDIPP_MINOR_VERSION@ LIBMIDI_RELEASE = @LIBMIDI_RELEASE@ LIBMIDI_SO_VERSION = @LIBMIDI_SO_VERSION@ LIBMIDI_VERSION = @LIBMIDI_VERSION@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIGCPP_CFLAGS = @SIGCPP_CFLAGS@ SIGCPP_LIBS = @SIGCPP_LIBS@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.7 MAINTAINERCLEANFILES = autom4te.cache Makefile.in aclocal.m4 configure config.h.in \ stamp-h.in libmidi++.spec \ config.guess mkinstalldirs \ missing install-sh config.sub ltconfig \ ltmain.sh config.log config.status \ depcomp SUBDIRS = midi++ INCLUDES = -I$(top_srcdir) SYSDEP_SRCS = $(am__append_1) $(am__append_2) noinst_LIBRARIES = libmidipp.a libmidipp_a_SOURCES = \ fd_midiport.cc \ fifomidi.cc \ midi.cc \ midichannel.cc \ midicontrollable.cc \ midifactory.cc \ midimanager.cc \ midiparser.cc \ midiport.cc \ mmc.cc \ mtc.cc \ port_request.cc \ version.cc \ $(SYSDEP_SRCS) XTRA_SRC = alsa_sequencer_midiport.cc coremidi_midiport.cc EXTRA_DIST = $(XTRA_SRC) libmidi++.spec.in \ libmidi++.pc.in autogen.sh all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .cc .o .obj am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 version.cc: $(top_builddir)/config.status $(srcdir)/version.cc.in cd $(top_builddir) && $(SHELL) ./config.status $@ libmidi++.pc: $(top_builddir)/config.status $(srcdir)/libmidi++.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ libmidi++.spec: $(top_builddir)/config.status $(srcdir)/libmidi++.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libmidipp.a: $(libmidipp_a_OBJECTS) $(libmidipp_a_DEPENDENCIES) -rm -f libmidipp.a $(libmidipp_a_AR) libmidipp.a $(libmidipp_a_OBJECTS) $(libmidipp_a_LIBADD) $(RANLIB) libmidipp.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alsa_sequencer_midiport.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coremidi_midiport.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fd_midiport.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fifomidi.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midi.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midichannel.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midicontrollable.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midifactory.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midimanager.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midiparser.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midiport.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mmc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mtc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/port_request.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Po@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(LIBRARIES) config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-noinstLIBRARIES ctags ctags-recursive dist dist-all \ dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ dist-xz \ dist-zip distcheck distclean distclean-compile \ distclean-generic distclean-hdr distclean-tags distcleancheck \ distdir distuninstallcheck dvi dvi-am html html-am info \ info-am install install-am install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am #bin_DIR = . #noinst_PROGRAMS = mmc miditrace #mmc_SOURCES = mmctest.cc #mmc_LDFLAGS = `midi++-config --libs` #miditrace_SOURCES = miditrace.cc #miditrace_LDFLAGS = `midi++-config --libs` # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/0000755000175000017500000000000012503567205017114 5ustar miramirasooperlooper-1.7.3~dfsg0/libs/midi++/midi++/Makefile.in0000644000175000017500000002712612442352512021164 0ustar miramira# Makefile.in generated by automake 1.11 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = midi++ DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ACLOCAL_FLAGS = @ACLOCAL_FLAGS@ AMTAR = @AMTAR@ AUDIO_LIBS = @AUDIO_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONTROLLER_VALUES_TYPE = @CONTROLLER_VALUES_TYPE@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBMIDIPP_MAJOR_VERSION = @LIBMIDIPP_MAJOR_VERSION@ LIBMIDIPP_MICRO_VERSION = @LIBMIDIPP_MICRO_VERSION@ LIBMIDIPP_MINOR_VERSION = @LIBMIDIPP_MINOR_VERSION@ LIBMIDI_RELEASE = @LIBMIDI_RELEASE@ LIBMIDI_SO_VERSION = @LIBMIDI_SO_VERSION@ LIBMIDI_VERSION = @LIBMIDI_VERSION@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIGCPP_CFLAGS = @SIGCPP_CFLAGS@ SIGCPP_LIBS = @SIGCPP_LIBS@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MAINTAINERCLEANFILES = autom4te.cache Makefile.in noinst_HEADERS = mmc.h \ types.h \ port.h \ parser.h \ channel.h \ factory.h \ manager.h \ port_request.h \ controllable.h \ alsa_sequencer.h \ alsa_rawmidi.h \ coremidi_midiport.h \ nullmidi.h \ fd_midiport.h \ fifomidi.h \ version.h all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu midi++/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu midi++/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(HEADERS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ ctags distclean distclean-generic distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/factory.h0000644000175000017500000000215611754453700020741 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __midi_factory_h__ #define __midi_factory_h__ #include #include #include namespace MIDI { class PortFactory { public: Port *create_port (PortRequest &req); static void add_port_request (std::vector &reqs, const std::string &reqstr); }; }; /* namespace MIDI */ #endif // __midi_factory_h__ sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/port_request.h0000644000175000017500000000264112274104314022015 0ustar miramira/* Copyright (C) 1999 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __midi_port_request_h__ #define __midi_port_request_h__ #include namespace MIDI { class PortRequest { public: enum Status { Unknown, OK, Busy, NoSuchFile, TypeUnsupported, NotAllowed }; const char *devname; const char *tagname; int mode; Port::Type type; Status status; PortRequest () { devname = 0; tagname = 0; mode = 0; type = Port::Unknown; status = Unknown; } PortRequest (const std::string &xdev, const std::string &xtag, const std::string &xmode, const std::string &xtype); }; }; /* namespace MIDI */ #endif // __midi_port_request_h__ sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/parser.h0000644000175000017500000001202712230252703020552 0ustar miramira/* Copyright (C) 1998 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __midi_parse_h__ #define __midi_parse_h__ #include #include #include #include namespace MIDI { class Port; class Parser; typedef sigc::signal2 OneByteSignal; typedef sigc::signal2 TwoByteSignal; typedef sigc::signal2 PitchBendSignal; typedef sigc::signal3 Signal; typedef sigc::signal4 TimestampedSignal; class Parser : public sigc::trackable { public: Parser (Port &p); ~Parser (); /* signals that anyone can connect to */ OneByteSignal bank_change; TwoByteSignal note_on; TwoByteSignal note_off; TwoByteSignal poly_pressure; OneByteSignal pressure; OneByteSignal program_change; PitchBendSignal pitchbend; TwoByteSignal controller; OneByteSignal channel_bank_change[16]; TwoByteSignal channel_note_on[16]; TwoByteSignal channel_note_off[16]; TwoByteSignal channel_poly_pressure[16]; OneByteSignal channel_pressure[16]; OneByteSignal channel_program_change[16]; PitchBendSignal channel_pitchbend[16]; TwoByteSignal channel_controller[16]; sigc::signal1 channel_active_preparse[16]; sigc::signal1 channel_active_postparse[16]; OneByteSignal mtc_quarter_frame; TimestampedSignal raw_preparse; Signal raw_postparse; TimestampedSignal any; Signal sysex; Signal mmc; Signal mtc; Signal position; Signal song; sigc::signal1 all_notes_off; sigc::signal1 tune; sigc::signal1 timing; sigc::signal1 start; sigc::signal1 stop; sigc::signal1 contineu; /* note spelling */ sigc::signal1 active_sense; sigc::signal1 reset; sigc::signal1 eox; /* This should really be protected, but then derivatives of Port can't access it. */ void scanner (byte c); size_t *message_counts() { return message_counter; } const char *midi_event_type_name (MIDI::eventType); void trace (bool onoff, std::ostream *o, const std::string &prefix = ""); bool tracing() { return trace_stream != 0; } Port &port() { return _port; } sigc::signal2 edit; void set_mmc_forwarding (bool yn) { _mmc_forward = yn; } /* MTC */ enum MTC_Status { MTC_Stopped = 0, MTC_Forward, MTC_Backward }; MTC_FPS mtc_fps() const { return _mtc_fps; } MTC_Status mtc_running() const { return _mtc_running; } const byte *mtc_current() const { return _mtc_time; } bool mtc_locked() const { return _mtc_locked; } sigc::signal1 mtc_status; sigc::signal0 mtc_skipped; sigc::signal2 mtc_time; void set_mtc_forwarding (bool yn) { _mtc_forward = yn; } void reset_mtc_state (); private: Port &_port; /* tracing */ std::ostream *trace_stream; std::string trace_prefix; void trace_event (Parser &p, byte *msg, size_t len, timestamp_t ts); sigc::connection trace_connection; size_t message_counter[256]; enum ParseState { NEEDSTATUS, NEEDONEBYTE, NEEDTWOBYTES, VARIABLELENGTH }; ParseState state; unsigned char *msgbuf; int msglen; int msgindex; MIDI::eventType msgtype; channel_t channel; bool runnable; bool _mmc_forward; bool _mtc_forward; int expected_mtc_quarter_frame_code; byte _mtc_time[4]; byte _qtr_mtc_time[4]; unsigned long consecutive_qtr_frame_cnt; MTC_FPS _mtc_fps; MTC_Status _mtc_running; bool _mtc_locked; byte last_qtr_frame; void channel_msg (byte); void realtime_msg (byte); void system_msg (byte); void signal (byte *msg, size_t msglen); bool possible_mmc (byte *msg, size_t msglen); bool possible_mtc (byte *msg, size_t msglen); void process_mtc_quarter_frame (byte *msg); void handle_preparse(Parser &, byte *, size_t, timestamp_t); timestamp_t _timestamp; }; }; /* namespace MIDI */ #endif // __midi_parse_h__ sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/nullmidi.h0000644000175000017500000000263211754453700021106 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __nullmidi_h__ #define __nullmidi_h__ #include #include #include #include #include namespace MIDI { class Null_MidiPort : public Port { public: Null_MidiPort (PortRequest &req) : Port (req) { /* reset devname and tagname */ _devname = "nullmidi"; _tagname = "null"; _type = Port::Null; _ok = true; } virtual ~Null_MidiPort () {}; virtual int write (byte *msg, size_t msglen) { return msglen; } virtual int read (byte *buf, size_t max) { return 0; } virtual int selectable() const { return -1; } }; }; /* namespace MIDI */ #endif // __nullmidi_h__ sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/alsa_sequencer.h0000644000175000017500000000302311754453700022256 0ustar miramira/* Copyright (C) 2004 Paul Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __alsa_sequencer_midiport_h__ #define __alsa_sequencer_midiport_h__ #include #include #include #include #include #include namespace MIDI { class ALSA_SequencerMidiPort : public Port { public: ALSA_SequencerMidiPort (PortRequest &req); virtual ~ALSA_SequencerMidiPort (); /* select(2)/poll(2)-based I/O */ virtual int selectable() const; virtual timestamp_t get_current_host_time(); protected: /* Direct I/O */ int write (byte *msg, size_t msglen); int read (byte *buf, size_t max); private: snd_seq_t *seq; snd_midi_event_t *decoder, *encoder; int port_id; snd_seq_event_t SEv; int CreatePorts(PortRequest &req); }; }; /* namespace MIDI */ #endif // __alsa_sequencer_midiport_h__ sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/fifomidi.h0000644000175000017500000000227611754453700021063 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __fifomidi_h__ #define __fifomidi_h__ #include #include #include #include #include #include #include namespace MIDI { class FIFO_MidiPort : public MIDI::FD_MidiPort { public: FIFO_MidiPort (PortRequest &req); ~FIFO_MidiPort () {}; private: void open (PortRequest &req); }; }; /* namespace MIDI */ #endif // __fifomidi_h__ sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/._port_request.h0000644000175000017500000000024712274104314022232 0ustar miramiraMac OS X  2u§ATTR§œ œ com.apple.TextEncodingmacintosh;0sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/alsa_rawmidi.h0000644000175000017500000000223011754453700021717 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __alsa_rawmidi_h__ #define __alsa_rawmidi_h__ #include #include #include #include #include #include class ALSA_RawMidiPort : public MIDI::FD_MidiPort { public: ALSA_RawMidiPort (MIDI::PortRequest &req) : FD_MidiPort (req, "/dev/snd", "midi") {} virtual ~ALSA_RawMidiPort () {} }; #endif // __alsa_rawmidi_h__ sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/channel.h0000644000175000017500000000750312230252703020671 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __midichannel_h__ #define __midichannel_h__ #include #include #include #include namespace MIDI { class Port; class Channel : public sigc::trackable { public: Channel (byte channel_number, Port &); Port &midi_port() { return port; } byte channel() { return channel_number; } byte program() { return program_number; } byte bank() { return bank_number; } byte pressure () { return chanpress; } byte poly_pressure (byte n) { return polypress[n]; } byte last_note_on () { return _last_note_on; } byte last_on_velocity () { return _last_on_velocity; } byte last_note_off () { return _last_note_off; } byte last_off_velocity () { return _last_off_velocity; } pitchbend_t pitchbend () { return pitch_bend; } controller_value_t controller_value (byte n) { return controller_val[n%128]; } controller_value_t *controller_addr (byte n) { return &controller_val[n%128]; } void set_controller (byte n, byte val) { controller_val[n%128] = val; } int channel_msg (byte id, byte val1, byte val2); int all_notes_off () { return channel_msg (MIDI::controller, 123, 0); } int control (byte id, byte value) { return channel_msg (MIDI::controller, id, value); } int note_on (byte note, byte velocity) { return channel_msg (MIDI::on, note, velocity); } int note_off (byte note, byte velocity) { return channel_msg (MIDI::off, note, velocity); } int aftertouch (byte value) { return channel_msg (MIDI::chanpress, value, 0); } int poly_aftertouch (byte note, byte value) { return channel_msg (MIDI::polypress, note, value); } int program_change (byte value) { return channel_msg (MIDI::program, value, 0); } int pitchbend (byte msb, byte lsb) { return channel_msg (MIDI::pitchbend, lsb, msb); } protected: friend class Port; void connect_input_signals (); void connect_output_signals (); private: Port &port; /* Current channel values */ byte channel_number; byte bank_number; byte program_number; byte rpn_msb; byte rpn_lsb; byte nrpn_msb; byte nrpn_lsb; byte chanpress; byte polypress[128]; bool controller_14bit[128]; controller_value_t controller_val[128]; byte controller_msb[128]; byte controller_lsb[128]; byte _last_note_on; byte _last_on_velocity; byte _last_note_off; byte _last_off_velocity; pitchbend_t pitch_bend; bool _omni; bool _poly; bool _mono; size_t _notes_on; void reset (bool notes_off = true); void process_note_off (Parser &, EventTwoBytes *); void process_note_on (Parser &, EventTwoBytes *); void process_controller (Parser &, EventTwoBytes *); void process_polypress (Parser &, EventTwoBytes *); void process_program_change (Parser &, byte); void process_chanpress (Parser &, byte); void process_pitchbend (Parser &, pitchbend_t); void process_reset (Parser &); }; }; /* namespace MIDI */ #endif // __midichannel_h__ sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/manager.h0000644000175000017500000000424511754453700020705 0ustar miramira/* Copyright (C) 1998 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __midi_manager_h__ #define __midi_manager_h__ #include #include #include #include namespace MIDI { class Manager { public: ~Manager (); Port *add_port (PortRequest &); int remove_port (const char *port); Port *port (const std::string &name); Port *port (size_t number); size_t nports () { return ports_by_device.size(); } /* defaults for clients who are not picky */ Port *inputPort; Port *outputPort; channel_t inputChannelNumber; channel_t outputChannelNumber; int set_input_port (size_t port); int set_input_port (const char *); int set_output_port (size_t port); int set_output_port (const char *); int set_input_channel (channel_t); int set_output_channel (channel_t); int foreach_port (int (*func)(const Port &, size_t n, void *), void *arg); typedef std::map PortMap; const PortMap& get_midi_ports() const { return ports_by_tag; } static Manager *instance () { if (theManager == 0) { theManager = new Manager; } return theManager; } static int parse_port_request (const std::string &str, Port::Type type); private: /* This is a SINGLETON pattern */ Manager (); static Manager *theManager; PortMap ports_by_device; /* canonical */ PortMap ports_by_tag; /* may contain duplicate Ports */ void close_ports (); }; }; /* namespace MIDI */ #endif // __midi_manager_h__ sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/controllable.h0000644000175000017500000000514412230252703021740 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __qm_midicontrollable_h__ #define __qm_midicontrollable_h__ #include #include #include namespace MIDI { class Channel; class Port; class Parser; class Controllable : public sigc::trackable { public: Controllable (Port *, bool bistate = false); virtual ~Controllable (); void midi_rebind (Port *, channel_t channel=-1); void learn_about_external_control (); void stop_learning (); void drop_external_control (); virtual void set_value (float) = 0; sigc::signal0 learning_started; sigc::signal0 learning_stopped; bool get_control_info (channel_t&, eventType&, byte&); void set_control_type (channel_t, eventType, byte); bool get_midi_feedback () { return feedback; } void set_midi_feedback (bool val) { feedback = val; } Port * get_port() { return port; } std::string control_description() const { return _control_description; } void send_midi_feedback (float); private: bool bistate; int midi_msg_id; /* controller ID or note number */ sigc::connection midi_sense_connection[2]; sigc::connection midi_learn_connection; size_t connections; Port* port; eventType control_type; byte control_additional; channel_t control_channel; std::string _control_description; bool feedback; void midi_receiver (Parser &p, byte *, size_t, timestamp_t); void midi_sense_note (Parser &, EventTwoBytes *, bool is_on); void midi_sense_note_on (Parser &p, EventTwoBytes *tb); void midi_sense_note_off (Parser &p, EventTwoBytes *tb); void midi_sense_controller (Parser &, EventTwoBytes *); void midi_sense_program_change (Parser &, byte); void midi_sense_pitchbend (Parser &, pitchbend_t); void bind_midi (channel_t, eventType, byte); }; }; /* namespace MIDI */ #endif // __qm_midicontrollable_h__ sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/mmc.h0000644000175000017500000001525712230252703020042 0ustar miramira/* Copyright (C) 2000 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __midipp_mmc_h_h__ #define __midipp_mmc_h_h__ #include #include namespace MIDI { class Port; class Parser; class MachineControl : public sigc::trackable { public: typedef byte CommandSignature[60]; typedef byte ResponseSignature[60]; enum Command { cmdStop = 0x1, cmdPlay = 0x2, cmdDeferredPlay = 0x3, cmdFastForward = 0x4, cmdRewind = 0x5, cmdRecordStrobe = 0x6, cmdRecordExit = 0x7, cmdRecordPause = 0x8, cmdPause = 0x9, cmdEject = 0xA, cmdChase = 0xB, cmdCommandErrorReset = 0xC, cmdMmcReset = 0xD, cmdIllegalMackieJogStart = 0x20, cmdIllegalMackieJogStop = 0x21, cmdWrite = 0x40, cmdMaskedWrite = 0x41, cmdRead = 0x42, cmdUpdate = 0x43, cmdLocate = 0x44, cmdVariablePlay = 0x45, cmdSearch = 0x46, cmdShuttle = 0x47, cmdStep = 0x48, cmdAssignSystemMaster = 0x49, cmdGeneratorCommand = 0x4A, cmdMtcCommand = 0x4B, cmdMove = 0x4C, cmdAdd = 0x4D, cmdSubtract = 0x4E, cmdDropFrameAdjust = 0x4F, cmdProcedure = 0x50, cmdEvent = 0x51, cmdGroup = 0x52, cmdCommandSegment = 0x53, cmdDeferredVariablePlay = 0x54, cmdRecordStrobeVariable = 0x55, cmdWait = 0x7C, cmdResume = 0x7F, }; MachineControl (Port &port, float MMCVersion, CommandSignature &cs, ResponseSignature &rs); Port &port() { return _port; } void set_device_id (byte id); static bool is_mmc (byte *sysex_buf, size_t len); /* Signals to connect to if you want to run "callbacks" when certain MMC commands are received. */ sigc::signal1 Stop; sigc::signal1 Play; sigc::signal1 DeferredPlay; sigc::signal1 FastForward; sigc::signal1 Rewind; sigc::signal1 RecordStrobe; sigc::signal1 RecordExit; sigc::signal1 RecordPause; sigc::signal1 Pause; sigc::signal1 Eject; sigc::signal1 Chase; sigc::signal1 CommandErrorReset; sigc::signal1 MmcReset; sigc::signal1 JogStart; sigc::signal1 JogStop; sigc::signal1 Write; sigc::signal1 MaskedWrite; sigc::signal1 Read; sigc::signal1 Update; sigc::signal1 VariablePlay; sigc::signal1 Search; sigc::signal1 AssignSystemMaster; sigc::signal1 GeneratorCommand; sigc::signal1 MidiTimeCodeCommand; sigc::signal1 Move; sigc::signal1 Add; sigc::signal1 Subtract; sigc::signal1 DropFrameAdjust; sigc::signal1 Procedure; sigc::signal1 Event; sigc::signal1 Group; sigc::signal1 CommandSegment; sigc::signal1 DeferredVariablePlay; sigc::signal1 RecordStrobeVariable; sigc::signal1 Wait; sigc::signal1 Resume; /* The second argument is the shuttle speed, the third is true if the direction is "forwards", false for "reverse" */ sigc::signal3 Shuttle; /* The second argument specifies the desired track record enabled status. */ sigc::signal3 TrackRecordStatusChange; /* The second argument points to a byte array containing the locate target value in MMC Standard Time Code format (5 bytes, roughly: hrs/mins/secs/frames/subframes) */ sigc::signal2 Locate; /* The second argument is the number of steps to jump */ sigc::signal2 Step; protected: #define MMC_NTRACKS 48 /* MMC Information fields (think "registers") */ CommandSignature commandSignature; ResponseSignature responseSignature; byte updateRate; byte responseError; byte commandError; byte commandErrorLevel; byte motionControlTally; byte velocityTally; byte stopMode; byte fastMode; byte recordMode; byte recordStatus; bool trackRecordStatus[MMC_NTRACKS]; bool trackRecordReady[MMC_NTRACKS]; byte globalMonitor; byte recordMonitor; byte trackSyncMonitor; byte trackInputMonitor; byte stepLength; byte playSpeedReference; byte fixedSpeed; byte lifterDefeat; byte controlDisable; byte trackMute; byte failure; byte selectedTimeCode; byte shortSelectedTimeCode; byte timeStandard; byte selectedTimeCodeSource; byte selectedTimeCodeUserbits; byte selectedMasterCode; byte requestedOffset; byte actualOffset; byte lockDeviation; byte shortSelectedMasterCode; byte shortRequestedOffset; byte shortActualOffset; byte shortLockDeviation; byte resolvedPlayMode; byte chaseMode; byte generatorTimeCode; byte shortGeneratorTimeCode; byte generatorCommandTally; byte generatorSetUp; byte generatorUserbits; byte vitcInsertEnable; byte midiTimeCodeInput; byte shortMidiTimeCodeInput; byte midiTimeCodeCommandTally; byte midiTimeCodeSetUp; byte gp0; byte gp1; byte gp2; byte gp3; byte gp4; byte gp5; byte gp6; byte gp7; byte shortGp0; byte shortGp1; byte shortGp2; byte shortGp3; byte shortGp4; byte shortGp5; byte shortGp6; byte shortGp7; byte procedureResponse; byte eventResponse; byte responseSegment; byte wait; byte resume; private: byte _device_id; MIDI::Port &_port; void process_mmc_message (Parser &p, byte *, size_t len); int do_masked_write (byte *, size_t len); int do_locate (byte *, size_t len); int do_step (byte *, size_t len); int do_shuttle (byte *, size_t len); void write_track_record_ready (byte *, size_t len); }; }; /* namespace MIDI */ #endif /* __midipp_mmc_h_h__ */ sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/fd_midiport.h0000644000175000017500000000427711754453700021600 0ustar miramira/* Copyright (C) 1999 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __fd_midiport_h__ #define __fd_midiport_h__ #include #include #include #include #include #include #include #include namespace MIDI { class FD_MidiPort : public Port { public: FD_MidiPort (PortRequest &req, const std::string &dirpath, const std::string &pattern); virtual ~FD_MidiPort () { ::close (_fd); } virtual int selectable() const; static std::vector *list_devices (); virtual timestamp_t get_current_host_time(); protected: int _fd; virtual void open (PortRequest &req); virtual int write (byte *msg, size_t msglen) { int nwritten; if ((_mode & O_ACCMODE) == O_RDONLY) { return -EACCES; } if (slowdown) { return do_slow_write (msg, msglen); } if ((nwritten = ::write (_fd, msg, msglen)) > 0) { bytes_written += nwritten; if (output_parser) { output_parser->raw_preparse (*output_parser, msg, nwritten, get_current_host_time()); for (int i = 0; i < nwritten; i++) { output_parser->scanner (msg[i]); } output_parser->raw_postparse (*output_parser, msg, nwritten); } } return nwritten; } virtual int read (byte *buf, size_t max); private: static std::string *midi_dirpath; static std::string *midi_filename_pattern; int do_slow_write (byte *msg, unsigned int msglen); }; }; /*namespace MIDI */ #endif // __fd_midiport_h__ sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/version.h0000644000175000017500000000027611754453700020760 0ustar miramira#ifndef __midipp_version_h__ #define __midipp_version_h__ extern int midipp_major_version; extern int midipp_minor_version; extern int midipp_micro_version; #endif // __midipp_version_h__ sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/Makefile.am0000644000175000017500000000051311754453700021150 0ustar miramiraMAINTAINERCLEANFILES = autom4te.cache Makefile.in noinst_HEADERS = mmc.h \ types.h \ port.h \ parser.h \ channel.h \ factory.h \ manager.h \ port_request.h \ controllable.h \ alsa_sequencer.h \ alsa_rawmidi.h \ coremidi_midiport.h \ nullmidi.h \ fd_midiport.h \ fifomidi.h \ version.h sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/types.h0000644000175000017500000000242311754453700020433 0ustar miramira#ifndef __midi_types_h__ #define __midi_types_h__ #include namespace MIDI { typedef char channel_t; typedef float controller_value_t; typedef unsigned char byte; typedef unsigned short pitchbend_t; typedef double timestamp_t; enum eventType { none = 0x0, raw = 0xF4, /* undefined in MIDI spec */ any = 0xF5, /* undefined in MIDI spec */ off = 0x80, on = 0x90, controller = 0xB0, program = 0xC0, chanpress = 0xD0, polypress = 0xA0, pitchbend = 0xE0, sysex = 0xF0, mtc_quarter = 0xF1, position = 0xF2, song = 0xF3, tune = 0xF6, eox = 0xF7, timing = 0xF8, start = 0xFA, contineu = 0xFB, /* note spelling */ stop = 0xFC, active = 0xFE, reset = 0xFF }; extern const char *controller_names[]; byte decode_controller_name (const char *name); struct EventTwoBytes { union { byte note_number; byte controller_number; }; union { byte velocity; byte value; }; }; enum MTC_FPS { MTC_24_FPS = 0, MTC_25_FPS = 1, MTC_30_FPS = 2, MTC_30_FPS_DROP = 3 }; enum MTC_Status { MTC_Stopped = 0, MTC_Forward, MTC_Backward, }; }; /* namespace MIDI */ #endif // __midi_types_h__ sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/coremidi_midiport.h0000644000175000017500000000357411754453700023001 0ustar miramira/* Copyright (C) 2004 Paul Davis Copyright (C) 2004 Grame This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef __coremidi_midiport_h__ #define __coremidi_midiport_h__ #include #include #include #include #include #include namespace MIDI { class CoreMidi_MidiPort:public Port { public: CoreMidi_MidiPort(PortRequest & req); virtual ~ CoreMidi_MidiPort(); virtual int selectable() const { return -1; } timestamp_t get_current_host_time(); protected: /* Direct I/O */ int write(byte * msg, size_t msglen); int write_at (byte *msg, size_t msglen, timestamp_t at_time); int read(byte * buf, size_t max) { return 0; } /* CoreMidi callback */ static void read_proc(const MIDIPacketList * pktlist, void *refCon, void *connRefCon); private: byte midi_buffer[1024]; MIDIClientRef midi_client; MIDIEndpointRef midi_destination; MIDIEndpointRef midi_source; int Open(PortRequest & req); void Close(); static MIDITimeStamp MIDIGetCurrentHostTime(); static MIDITimeStamp secs_to_host_time(timestamp_t secs); static timestamp_t host_time_to_secs(MIDITimeStamp mts); }; }; /* namespace MIDI */ #endif // __coremidi_midiport_h__ sooperlooper-1.7.3~dfsg0/libs/midi++/midi++/port.h0000644000175000017500000000703212230252703020242 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __libmidi_port_h__ #define __libmidi_port_h__ #include #include #include #include #include namespace MIDI { class Channel; class PortRequest; class Port : public sigc::trackable { public: enum Type { Unknown, ALSA_RawMidi, ALSA_Sequencer, CoreMidi_MidiPort, Null, FIFO, }; Port (PortRequest &); virtual ~Port (); /* Direct I/O */ virtual int write (byte *msg, size_t msglen) = 0; virtual int read (byte *buf, size_t max) = 0; virtual int write_at (byte *msg, size_t msglen, timestamp_t at_time) { return write(msg, msglen); } /* slowdown i/o to a loop of single byte emissions interspersed with a busy loop of 10000 * this value. This may be ignored by a particular instance of this virtual class. See FD_MidiPort for an example of where it used. */ void set_slowdown (size_t n) { slowdown = n; } /* select(2)/poll(2)-based I/O */ virtual int selectable() const = 0; void selector_read_callback (Select::Selectable *, Select::Condition); static void xforms_read_callback (int cond, int fd, void *ptr); static void gtk_read_callback (void *ptr, int fd, int cond); static void write_callback (byte *msg, unsigned int len, void *); Channel *channel (channel_t chn) { return _channel[chn&0x7F]; } Parser *input() { return input_parser; } Parser *output() { return output_parser; } void iostat (int *written, int *read, const size_t **in_counts, const size_t **out_counts) { *written = bytes_written; *read = bytes_read; if (input_parser) { *in_counts = input_parser->message_counts(); } else { *in_counts = 0; } if (output_parser) { *out_counts = output_parser->message_counts(); } else { *out_counts = 0; } } int midimsg (byte *msg, size_t len) { return !(write (msg, len) == (int) len); } int three_byte_msg (byte a, byte b, byte c) { byte msg[3]; msg[0] = a; msg[1] = b; msg[2] = c; return !(write (msg, 3) == 3); } int clock (); virtual timestamp_t get_current_host_time() { return 0; } const char *device () const { return _devname.c_str(); } const char *name () const { return _tagname.c_str(); } Type type () const { return _type; } int mode () const { return _mode; } bool ok () const { return _ok; } size_t number () const { return _number; } protected: bool _ok; Type _type; std::string _devname; std::string _tagname; int _mode; size_t _number; Channel *_channel[16]; sigc::connection thru_connection; unsigned int bytes_written; unsigned int bytes_read; Parser *input_parser; Parser *output_parser; size_t slowdown; private: static size_t nports; }; }; /* namespace MIDI */ #endif // __libmidi_port_h__ sooperlooper-1.7.3~dfsg0/libs/midi++/aclocal.m40000644000175000017500000012435412442352511017707 0ustar miramira# generated automatically by aclocal 1.11 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009 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. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, [m4_warning([this file was generated for autoconf 2.68. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # # Copyright © 2004 Scott James Remnant . # # This program 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. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 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. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.11], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 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. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # 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. # serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 # 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. # serial 10 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # 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. #serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 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. # serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005, 2008 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. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 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. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2009 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. # serial 4 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # 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. # serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 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. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008 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. # serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # 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. # serial 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 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. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006, 2008 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. # serial 2 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 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. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR AC_DEFUN([AM_BUILD_ENVIRONMENT],[ top_marker=top_marker depth=0 while test x$SOOPERLOOPER_TOP = x -a $depth -lt 255 ; do if test -f $top_marker ; then SOOPERLOOPER_TOP=`dirname $top_marker` else top_marker=../$top_marker fi depth=`expr $depth + 1` done if test $depth -eq 255 ; then AC_MSG_ERROR([ the top of the SooperLooper source tree was not found.]) fi dnl dnl convert to absolute path dnl SOOPERLOOPER_TOP=`cd $SOOPERLOOPER_TOP; pwd` export LIBDIRS="pbd midi++ " ACLOCAL_FLAGS="-I $SOOPERLOOPER_TOP/aclocal" ACLOCAL_AMFLAGS="-I $SOOPERLOOPER_TOP/aclocal `if test -d m4 ; then echo -I m4; fi`" AC_SUBST(ACLOCAL_FLAGS) AC_SUBST(ACLOCAL_AMFLAGS) BASE_LIBS="$SOOPERLOOPER_TOP/libs/midi++/libmidipp.a $SOOPERLOOPER_TOP/libs/pbd/libpbd.a" BASE_INCLUDES="-I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" CFLAGS="$CFLAGS -I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" CXXFLAGS="$CXXFLAGS -I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" #LIBS="$LIBS $SOOPERLOOPER_TOP/libs/midi++/libmidipp.a $SOOPERLOOPER_TOP/libs/pbd/libpbd.a" ]) AC_DEFUN([AM_OPT_FLAGS],[ dnl dnl figure out how best to optimize dnl gcc_major_version=4 os_system=Darwin if test "$target_cpu" = "powerpc"; then AC_DEFINE(POWERPC, 1, "Are we running a ppc CPU?") altivecLinux= if test "$?" = "0"; then AC_DEFINE(HAVE_ALTIVEC_LINUX, 1, "Is there Altivec Support ?") if test "$gcc_major_version" = "3"; then dnl -mcpu=7450 does not reliably work with gcc 3.* #OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -maltivec -mabi=altivec" OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -mtune=7450" else OPT_FLAGS="-D_REENTRANT -Os" fi else OPT_FLAGS="-D_REENTRANT -Os " fi OPT_FLAGS="$OPT_FLAGS -mhard-float -mpowerpc-gfxopt" elif echo $target_cpu | grep "i*86" >/dev/null; then if test "$os_system" = "Darwin"; then # pretty good assumption mmx="-mmmx" sse="-msse -mfpmath=sse" OPT_FLAGS="-D_REENTRANT -Os -fomit-frame-pointer $mmx $sse" else cat /proc/cpuinfo | grep mmx >/dev/null if test $? = 0; then mmx="-mmmx" fi cat /proc/cpuinfo | grep sse >/dev/null if test $? = 0; then sse="-msse -mfpmath=sse" fi cat /proc/cpuinfo | grep 3dnow >/dev/null if test $? = 0; then dreidnow="-m3dnow" fi AC_DEFINE(x86, 1, "Nope its intel") if test "$target_cpu" = "i586"; then OPT_FLAGS="-DREENTRANT -O2 -march=i586 -fomit-frame-pointer" elif test "$target_cpu" = "i686"; then OPT_FLAGS="-D_REENTRANT -O2 -march=i686 -fomit-frame-pointer" if test "$gcc_major_version" -ge "3"; then OPT_FLAGS="$OPT_FLAGS $mmx $sse $dreidnow" fi else OPT_FLAGS="-D_REENTRANT -O2 -fomit-frame-pointer" fi fi fi OPT_FLAGS="$OPT_FLAGS -pipe" # LARGEFILE_FLAGS="`getconf LFS_CFLAGS`" LARGEFILE_FLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" CXXFLAGS="-g -D_REENTRANT $LARGEFILE_FLAGS" if test x"$GXX" = xyes ; then CXXFLAGS="$CXXFLAGS -Wall" fi if test x"$GXX" = xyes ; then OPT_CXXFLAGS="$OPT_FLAGS -Wall $LARGEFILE_FLAGS" fi PROF_FLAGS="-pg" dnl dnl some link flags to try to speed linking dnl CXXFLAGS="$CXXFLAGS -fno-merge-constants" ]) sooperlooper-1.7.3~dfsg0/libs/midi++/config.sub0000755000175000017500000010224012115444525020024 0ustar miramira#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2009-04-17' # 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., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, 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 . 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 ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # 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 ;; * ) 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* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | 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 | -knuth | -cray) 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 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -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/'` ;; -sco5v6*) # 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] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) 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) ;; ms1) basic_machine=mt-unknown ;; # 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-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # 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 ;; abacus) basic_machine=abacus-unknown ;; 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 ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; 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 ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; 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 ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; 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 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; 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 ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; 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 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; 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 ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; 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 ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; 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 ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-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-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`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 ;; rdos) basic_machine=i386-pc os=-rdos ;; 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 ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; 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 ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; 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 ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: sooperlooper-1.7.3~dfsg0/libs/midi++/AUTHORS0000644000175000017500000000000011754453700017103 0ustar miramirasooperlooper-1.7.3~dfsg0/libs/midi++/COPYING0000644000175000017500000004311011754453700017077 0ustar miramira GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program 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 Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. sooperlooper-1.7.3~dfsg0/libs/midi++/config.guess0000755000175000017500000013226412115444525020372 0ustar miramira#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2009-04-27' # 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., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, 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 . # Please send patches to . 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 ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # 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. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; 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 ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 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 ;; sh5el) machine=sh5le-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 # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # 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 ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # 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. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; 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 ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (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 ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; 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 ;; 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 ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; 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 ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # 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 ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* 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 -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; 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 ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????: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 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; 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 ;; *: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 main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi 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 ;; *:AIX:*:[456]) 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 ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 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 #include 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 -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include 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 -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; 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 ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; 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 ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:[3456]*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T | authenticamd | genuineintel) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 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 i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; 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 | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; 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 ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; 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 ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; 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 ;; "") # 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 ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; 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 ;; 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 ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; 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 ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. 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 ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /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 ;; 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 i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; 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 ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /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: sooperlooper-1.7.3~dfsg0/libs/midi++/libmidi++.pc.in0000644000175000017500000000050111754453700020531 0ustar miramiraprefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@/midi++ Name: libmidi++ Version: @VERSION@ Description: libmidi++, a C++ library for handling MIDI I/O, including MMC and MTC Requires: libpbd Libs: -L${libdir} -lmidipp @AUDIO_LIBS@ @NON_PKG_LIBS@ Cflags: -I${includedir} @NON_PKG_CFLAGS@ sooperlooper-1.7.3~dfsg0/libs/midi++/README0000644000175000017500000000000011754453700016713 0ustar miramirasooperlooper-1.7.3~dfsg0/libs/midi++/config.h.in0000644000175000017500000000357412442352640020075 0ustar miramira/* config.h.in. Generated from configure.ac by autoheader. */ /* "Is there Altivec Support ?" */ #undef HAVE_ALTIVEC_LINUX /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* "Are we running a ppc CPU?" */ #undef POWERPC /* Define as the return type of signal handlers (`int' or `void'). */ #undef RETSIGTYPE /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Have ALSA Headers */ #undef WITH_ALSA /* Have CoreMIDI Headers */ #undef WITH_COREMIDI /* "Nope its intel" */ #undef x86 sooperlooper-1.7.3~dfsg0/libs/midi++/mmc.cc0000644000175000017500000002547112230252703017127 0ustar miramira/* Copyright (C) 2000 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include #include using namespace std; using namespace MIDI; static std::map mmc_cmd_map; static void build_mmc_cmd_map () { pair newpair; newpair.first = 0x1; newpair.second = "Stop"; mmc_cmd_map.insert (newpair); newpair.first = 0x2; newpair.second = "Play"; mmc_cmd_map.insert (newpair); newpair.first = 0x3; newpair.second = "DeferredPlay"; mmc_cmd_map.insert (newpair); newpair.first = 0x4; newpair.second = "FastForward"; mmc_cmd_map.insert (newpair); newpair.first = 0x5; newpair.second = "Rewind"; mmc_cmd_map.insert (newpair); newpair.first = 0x6; newpair.second = "RecordStrobe"; mmc_cmd_map.insert (newpair); newpair.first = 0x7; newpair.second = "RecordExit"; mmc_cmd_map.insert (newpair); newpair.first = 0x8; newpair.second = "RecordPause"; mmc_cmd_map.insert (newpair); newpair.first = 0x9; newpair.second = "Pause"; mmc_cmd_map.insert (newpair); newpair.first = 0xA; newpair.second = "Eject"; mmc_cmd_map.insert (newpair); newpair.first = 0xB; newpair.second = "Chase"; mmc_cmd_map.insert (newpair); newpair.first = 0xC; newpair.second = "CommandErrorReset"; mmc_cmd_map.insert (newpair); newpair.first = 0xD; newpair.second = "MmcReset"; mmc_cmd_map.insert (newpair); newpair.first = 0x20; newpair.second = "Illegal Mackie Jog Start"; mmc_cmd_map.insert (newpair); newpair.first = 0x21; newpair.second = "Illegal Mackie Jog Stop"; mmc_cmd_map.insert (newpair); newpair.first = 0x40; newpair.second = "Write"; mmc_cmd_map.insert (newpair); newpair.first = 0x41; newpair.second = "MaskedWrite"; mmc_cmd_map.insert (newpair); newpair.first = 0x42; newpair.second = "Read"; mmc_cmd_map.insert (newpair); newpair.first = 0x43; newpair.second = "Update"; mmc_cmd_map.insert (newpair); newpair.first = 0x44; newpair.second = "Locate"; mmc_cmd_map.insert (newpair); newpair.first = 0x45; newpair.second = "VariablePlay"; mmc_cmd_map.insert (newpair); newpair.first = 0x46; newpair.second = "Search"; mmc_cmd_map.insert (newpair); newpair.first = 0x47; newpair.second = "Shuttle"; mmc_cmd_map.insert (newpair); newpair.first = 0x48; newpair.second = "Step"; mmc_cmd_map.insert (newpair); newpair.first = 0x49; newpair.second = "AssignSystemMaster"; mmc_cmd_map.insert (newpair); newpair.first = 0x4A; newpair.second = "GeneratorCommand"; mmc_cmd_map.insert (newpair); newpair.first = 0x4B; newpair.second = "MtcCommand"; mmc_cmd_map.insert (newpair); newpair.first = 0x4C; newpair.second = "Move"; mmc_cmd_map.insert (newpair); newpair.first = 0x4D; newpair.second = "Add"; mmc_cmd_map.insert (newpair); newpair.first = 0x4E; newpair.second = "Subtract"; mmc_cmd_map.insert (newpair); newpair.first = 0x4F; newpair.second = "DropFrameAdjust"; mmc_cmd_map.insert (newpair); newpair.first = 0x50; newpair.second = "Procedure"; mmc_cmd_map.insert (newpair); newpair.first = 0x51; newpair.second = "Event"; mmc_cmd_map.insert (newpair); newpair.first = 0x52; newpair.second = "Group"; mmc_cmd_map.insert (newpair); newpair.first = 0x53; newpair.second = "CommandSegment"; mmc_cmd_map.insert (newpair); newpair.first = 0x54; newpair.second = "DeferredVariablePlay"; mmc_cmd_map.insert (newpair); newpair.first = 0x55; newpair.second = "RecordStrobeVariable"; mmc_cmd_map.insert (newpair); newpair.first = 0x7C; newpair.second = "Wait"; mmc_cmd_map.insert (newpair); newpair.first = 0x7F; newpair.second = "Resume"; mmc_cmd_map.insert (newpair); } MachineControl::MachineControl (Port &p, float version, CommandSignature &csig, ResponseSignature &rsig) : _port (p) { Parser *parser; build_mmc_cmd_map (); _device_id = 1; if ((parser = _port.input()) != 0) { parser->mmc.connect (mem_fun (*this, &MachineControl::process_mmc_message)); } else { warning << "MMC connected to a non-input port: useless!" << endmsg; } } void MachineControl::set_device_id (byte id) { _device_id = id & 0x7f; } bool MachineControl::is_mmc (byte *sysex_buf, size_t len) { if (len < 4 || len > 48) { return false; } if (sysex_buf[1] != 0x7f) { return false; } if (sysex_buf[3] != 0x6 && /* MMC Command */ sysex_buf[3] != 0x7) { /* MMC Response */ return false; } return true; } void MachineControl::process_mmc_message (Parser &p, byte *msg, size_t len) { size_t skiplen; byte *mmc_msg; bool single_byte; /* Reject if its not for us. 0x7f is the "all-call" device ID */ /* msg[0] = 0x7f (MMC sysex ID( msg[1] = device ID msg[2] = 0x6 (MMC command) or 0x7 (MMC response) msg[3] = MMC command code msg[4] = (typically) byte count for following part of command */ #if 0 cerr << "*** MMC message: len = " << len << "\n\t"; for (size_t i = 0; i < len; i++) { cerr << hex << (int) msg[i] << dec << ' '; } cerr << endl; #endif if (msg[1] != 0x7f && msg[1] != _device_id) { return; } mmc_msg = &msg[3]; len -= 3; do { single_byte = false; /* this works for all non-single-byte "counted" commands. we set it to 1 for the exceptions. */ std::map::iterator x = mmc_cmd_map.find ((int)mmc_msg[0]); string cmdname = "unknown"; if (x != mmc_cmd_map.end()) { cmdname = (*x).second; } #if 0 cerr << "+++ MMC type " << hex << ((int) *mmc_msg) << dec << " \"" << cmdname << "\" " << " len = " << len << endl; #endif switch (*mmc_msg) { /* SINGLE-BYTE, UNCOUNTED COMMANDS */ case cmdStop: Stop (*this); single_byte = true; break; case cmdPlay: Play (*this); single_byte = true; break; case cmdDeferredPlay: DeferredPlay (*this); single_byte = true; break; case cmdFastForward: FastForward (*this); single_byte = true; break; case cmdRewind: Rewind (*this); single_byte = true; break; case cmdRecordStrobe: RecordStrobe (*this); single_byte = true; break; case cmdRecordExit: RecordExit (*this); single_byte = true; break; case cmdRecordPause: RecordPause (*this); single_byte = true; break; case cmdPause: Pause (*this); single_byte = true; break; case cmdEject: Eject (*this); single_byte = true; break; case cmdChase: Chase (*this); single_byte = true; break; case cmdCommandErrorReset: CommandErrorReset (*this); single_byte = true; break; case cmdMmcReset: MmcReset (*this); single_byte = true; break; case cmdIllegalMackieJogStart: JogStart (*this); single_byte = true; break; case cmdIllegalMackieJogStop: JogStop (*this); single_byte = true; break; /* END OF SINGLE-BYTE, UNCOUNTED COMMANDS */ case cmdMaskedWrite: do_masked_write (mmc_msg, len); break; case cmdLocate: do_locate (mmc_msg, len); break; case cmdShuttle: do_shuttle (mmc_msg, len); break; case cmdStep: do_step (mmc_msg, len); break; case cmdWrite: case cmdRead: case cmdUpdate: case cmdVariablePlay: case cmdSearch: case cmdAssignSystemMaster: case cmdGeneratorCommand: case cmdMtcCommand: case cmdMove: case cmdAdd: case cmdSubtract: case cmdDropFrameAdjust: case cmdProcedure: case cmdEvent: case cmdGroup: case cmdCommandSegment: case cmdDeferredVariablePlay: case cmdRecordStrobeVariable: case cmdWait: case cmdResume: error << "MIDI::MachineControl: unimplemented MMC command " << hex << (int) *mmc_msg << dec << endmsg; break; default: error << "MIDI::MachineControl: unknown MMC command " << hex << (int) *mmc_msg << dec << endmsg; break; } /* increase skiplen to cover the command byte and count byte (if it existed). */ if (!single_byte) { skiplen = mmc_msg[1] + 2; } else { skiplen = 1; } if (len <= skiplen) { break; } mmc_msg += skiplen; len -= skiplen; } while (len > 1); /* skip terminating EOX byte */ } int MachineControl::do_masked_write (byte *msg, size_t len) { /* return the number of bytes "consumed" */ int retval = msg[1] + 2; /* bytes following + 2 */ switch (msg[2]) { case 0x4f: /* Track Record Ready Status */ write_track_record_ready (&msg[3], len - 3); break; default: warning << "MIDI::MachineControl: masked write to " << hex << (int) msg[2] << dec << " not implemented" << endmsg; } return retval; } void MachineControl::write_track_record_ready (byte *msg, size_t len) { size_t n; size_t base_track; /* Bits 0-4 of the first byte are for special tracks: bit 0: video bit 1: reserved bit 2: time code bit 3: aux track a bit 4: aux track b */ /* XXX check needed to make sure we don't go outside the support number of tracks. */ base_track = (msg[0] * 7) - 5; for (n = 0; n < 7; n++) { if (msg[1] & (1<> (7 - left_shift)); fractional = ((sm << left_shift) << 7) | sl; shuttle_speed = integral + ((float)fractional / (1 << (14 - left_shift))); Shuttle (*this, shuttle_speed, forward); return 0; } sooperlooper-1.7.3~dfsg0/libs/midi++/missing0000755000175000017500000002623312115444525017447 0ustar miramira#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2009-04-28.21; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program 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, 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, see . # 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. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and \`g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; tar*) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar*) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac 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-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: sooperlooper-1.7.3~dfsg0/libs/midi++/fifomidi.cc0000644000175000017500000000224311754453700020143 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include #include using namespace MIDI; FIFO_MidiPort::FIFO_MidiPort (PortRequest &req) : FD_MidiPort (req, ".", "midi") { } void FIFO_MidiPort::open (PortRequest &req) { /* This is a placeholder for the fun-and-games I think we will need to do with FIFO's. */ _fd = ::open (req.devname, req.mode|O_NDELAY); } sooperlooper-1.7.3~dfsg0/libs/midi++/configure.ac0000644000175000017500000002045412230252703020326 0ustar miramiraAC_INIT(fd_midiport.cc) AC_CONFIG_AUX_DIR(.) AC_CANONICAL_HOST AC_CANONICAL_TARGET AC_VALIDATE_CACHED_SYSTEM_TUPLE() LIBMIDI_MAJOR_VERSION=1 LIBMIDI_MINOR_VERSION=13 LIBMIDI_MICRO_VERSION=0 LIBMIDIPP_MAJOR_VERSION=${LIBMIDI_MAJOR_VERSION} LIBMIDIPP_MINOR_VERSION=${LIBMIDI_MINOR_VERSION} LIBMIDIPP_MICRO_VERSION=${LIBMIDI_MICRO_VERSION} AC_SUBST(LIBMIDIPP_MAJOR_VERSION) AC_SUBST(LIBMIDIPP_MINOR_VERSION) AC_SUBST(LIBMIDIPP_MICRO_VERSION) BETA= LIBMIDI_VERSION=$LIBMIDI_MAJOR_VERSION.$LIBMIDI_MINOR_VERSION.${LIBMIDI_MICRO_VERSION}${BETA} LIBMIDI_RELEASE=$LIBMIDI_MAJOR_VERSION-$LIBMIDI_MINOR_VERSION-${LIBMIDI_MICRO_VERSION}${BETA} AC_SUBST(LIBMIDI_SO_VERSION) AC_SUBST(LIBMIDI_VERSION) AC_SUBST(LIBMIDI_RELEASE) AM_INIT_AUTOMAKE(libmidi++,${LIBMIDI_VERSION}) AC_CONFIG_HEADERS(config.h) dnl ==================================================================== dnl you do have C++, right ? dnl ==================================================================== AC_PROG_CC AC_PROG_CXX if test "$ac_cv_prog_cxx" = "no" ; then AC_MSG_ERROR([*** libmidi is C++. You don't appear to have a C++ compiler]) fi AM_OPT_FLAGS AC_OBJEXT AC_LANG_CPLUSPLUS AC_PROG_RANLIB AC_ARG_ENABLE(optimize, [ --disable-optimize avoid optimizations to allow for gdb debugging.], [ if test "x$enable_optimize" != "xno" ; then CXXFLAGS="$OPT_CXXFLAGS" ; fi ], [ CXXFLAGS="$OPT_CXXFLAGS" ]) AC_ARG_ENABLE(profiling, [ --enable-profiling build for profiling using gprof.], [ if test "x$enable_profiling" = "xyes" ; then CXXFLAGS="$CXXFLAGS $PROF_FLAGS" ; fi ]) AC_MSG_RESULT([CXXFLAGS is set based on $OPT_CXXFLAGS]) dnl MAC STUFF AC_MSG_CHECKING([for --with-macosx-sdk]) AC_ARG_WITH(macosx-sdk, [ --with-macosx-sdk=PATH use an OS X SDK at PATH], [ wxUSE_MACOSX_SDK=$withval wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval" #echo "wxUSE_MACOSX_SDK=$wxUSE_MACOSX_SDK" >> ${wx_arg_cache_file}.tmp ], [ # NOTE: Empty string on purpose so that --without-macosx-sdk (thus no) # will override --enable-universal_binary's automatic SDK usage. wxUSE_MACOSX_SDK= #LINE=`grep "^wxUSE_MACOSX_SDK=" ${wx_arg_cache_file}` #if test "x$LINE" != x ; then # eval "$LINE" # echo "$LINE" >> ${wx_arg_cache_file}.tmp #fi ]) AC_MSG_RESULT([$wxUSE_MACOSX_SDK]) AC_MSG_CHECKING([for --with-macosx-version-min]) AC_ARG_WITH(macosx-version-min, [ --with-macosx-version-min=VER build binaries which require at least this OS X version], [ wxUSE_MACOSX_VERSION_MIN=$withval wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval" #echo "wxUSE_MACOSX_VERSION_MIN=$wxUSE_MACOSX_VERSION_MIN" >> ${wx_arg_cache_file}.tmp ], [ # default "yes" because when not using an SDK it means the same as no # but when using an SDK it means to use the SDK version wxUSE_MACOSX_VERSION_MIN=yes # See if there is a value in the cache #LINE=`grep "^wxUSE_MACOSX_VERSION_MIN=" ${wx_arg_cache_file}` #if test "x$LINE" != x ; then # eval "$LINE" # echo "$LINE" >> ${wx_arg_cache_file}.tmp #fi ]) AC_MSG_RESULT([$wxUSE_MACOSX_VERSION_MIN]) dnl Set up the Mac OS X SDK. We do this early so configure tests will occur dnl with the SDK in place. dnl NOTE: We clobber wxUSE_MACOSX_SDK with the SDK path if test "x$wxUSE_MACOSX_SDK" = "xno"; then wxUSE_MACOSX_SDK= elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then # TODO: Search for most recent SDK and use it. wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk" fi if test "x$wxUSE_MACOSX_SDK" != "x"; then AC_MSG_CHECKING([for SDK directory $wxUSE_MACOSX_SDK]) if ! test -d "$wxUSE_MACOSX_SDK"; then AC_MSG_FAILURE([not found]) else AC_MSG_RESULT([exists]) fi MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK" eval "CC=\"$CC $MACOSX_SDK_OPTS\"" eval "CXX=\"$CXX $MACOSX_SDK_OPTS\"" eval "LD=\"$LD $MACOSX_SDK_OPTS\"" retest_macosx_linking=yes dnl NOTE: When libtool is used in lieu of AR/RANLIB (i.e. in static mode) dnl the syslibroot makes no difference. We aren't using libtool now but dnl if we ever did, be aware that you don't need to worry about it. fi dnl Set up the deployment target dnl No : Don't specify a min version even if using an SDK dnl Yes : Use the version from the SDK if used, otherwise same as no dnl Param: Use the specified version if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then wxUSE_MACOSX_VERSION_MIN= elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then if test "x$wxUSE_MACOSX_SDK" != "x"; then AC_MSG_CHECKING([SDK deployment version]) dnl We need to quote the next line where we don't need macros and do need [] in the regex [ MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" buildSettings | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` ] # If that failed, try again with the new key if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then [ MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` ] fi if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN AC_MSG_RESULT([$wxUSE_MACOSX_VERSION_MIN]) else AC_MSG_WARN([Could not determine deployment target from SDKSettings.plist]) wxUSE_MACOSX_VERSION_MIN= fi else wxUSE_MACOSX_VERSION_MIN= fi fi if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN" eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\"" eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\"" eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\"" retest_macosx_linking=yes fi dnl If either an SDK or a version option was added, make sure that we can dnl still compile and link both C and C++. If we didn't do this, then most dnl of the remaining tests would fail. if test "x$retest_macosx_linking" = "xyes"; then AC_LANG_PUSH(C) AC_MSG_CHECKING([if C compiler works with SDK/version options]) AC_TRY_LINK([],[],[AC_MSG_RESULT([yes])],[AC_MSG_FAILURE([no. Try a different SDK]); exit 1]) AC_LANG_POP() AC_LANG_PUSH(C++) AC_MSG_CHECKING([if C++ compiler works with SDK/version options]) AC_TRY_LINK([],[],[AC_MSG_RESULT([yes])],[AC_MSG_FAILURE([no. Try a different SDK]); exit 1]) AC_LANG_POP() fi dnl ================================================== dnl are controller values float, or 16 bit ints ? dnl ================================================== use_float_for_controller_values=yes AC_ARG_ENABLE(float_controllers, [ --enable-float-controllers Use floats for controller values [default=yes]], if test "$enableval" = "no"; then use_float_for_controller_values=no fi ) if test "$use_float_for_controller_values" = "yes"; then CONTROLLER_VALUES_TYPE=float else CONTROLLER_VALUES_TYPE=unsigned short fi AC_SUBST(CONTROLLER_VALUES_TYPE) AUDIO_LIBS= AC_CHECK_HEADER(alsa/asoundlib.h, [use_alsa_midi=yes AUDIO_LIBS=-lasound AC_DEFINE([WITH_ALSA], 1, [Have ALSA Headers])], use_alsa_midi=no) AM_CONDITIONAL(WITH_ALSA, test x$use_alsa_midi = xyes) AC_CHECK_FILE(/System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h, [use_coremidi=yes AUDIO_LIBS="-framework CoreMIDI" AC_DEFINE([WITH_COREMIDI], 1, [Have CoreMIDI Headers])], use_coremidi=no) AM_CONDITIONAL(WITH_COREMIDI, test x$use_coremidi = xyes) AC_SUBST(AUDIO_LIBS) dnl sigc++ PKG_CHECK_MODULES(SIGCPP, sigc++-2.0 >= 2.2.10) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(fcntl.h unistd.h) dnl Checks for typedefs, structures, and compiler characteristics. dnl AC_C_CONST dnl AC_TYPE_SIZE_T dnl Checks for library functions. AC_TYPE_SIGNAL AC_CHECK_FUNCS(strdup) dnl LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'` dnl AC_SUBST(LTLIBOBJS) AM_BUILD_ENVIRONMENT CXXFLAGS="$CXXFLAGS $GUI_INCLUDES $SIGCPP_CFLAGS" AC_OUTPUT([Makefile version.cc midi++/Makefile libmidi++.pc libmidi++.spec ]) sooperlooper-1.7.3~dfsg0/libs/midi++/midifactory.cc0000644000175000017500000000414611754453700020673 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifdef HAVE_CONFIG_H #include "config.h" #endif // HAVE_CONFIG_H #include #include #include #include #ifdef WITH_ALSA #include #include #endif // WITH_ALSA #ifdef WITH_COREMIDI #include #endif // WITH_COREMIDI #include using namespace std; using namespace MIDI; Port * PortFactory::create_port (PortRequest &req) { Port *port; switch (req.type) { #ifdef WITH_ALSA case Port::ALSA_RawMidi: port = new ALSA_RawMidiPort (req); break; case Port::ALSA_Sequencer: port = new ALSA_SequencerMidiPort (req); break; #endif // WITH_ALSA #if WITH_COREMIDI case Port::CoreMidi_MidiPort: port = new CoreMidi_MidiPort (req); break; #endif // WITH_COREMIDI case Port::Null: port = new Null_MidiPort (req); break; case Port::FIFO: port = new FIFO_MidiPort (req); break; default: req.status = PortRequest::TypeUnsupported; return 0; } req.status = PortRequest::OK; return port; } void PortFactory::add_port_request (vector &reqs, const string &str) { PortRequest *req; req = new PortRequest; req->devname = strdup (str.c_str()); req->tagname = strdup (str.c_str()); req->mode = O_RDWR; req->type = Port::ALSA_RawMidi; reqs.push_back (req); } sooperlooper-1.7.3~dfsg0/libs/midi++/midi.cc0000644000175000017500000000565011754453700017304 0ustar miramira/* Copyright (C) 1998 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include const char *MIDI::controller_names[] = { "bank (0)", "mod (1)", "breath (2)", "ctrl 3", "foot (4)", "port tm (5)", "data msb (6)", "volume (7)", "balance (8)", "ctrl 9", "pan (10)", "express (11)", "ctrl 12", "ctrl 13", "ctrl 14", "ctrl 15", "gpc 1", "gpc 2", "gpc 3", "gpc 4", "ctrl 20", "ctrl 21", "ctrl 22", "ctrl 23", "ctrl 24", "ctrl 25", "ctrl 26", "ctrl 27", "ctrl 28", "ctrl 29", "ctrl 30", "ctrl 31", "lsb 0 (32)", "lsb 1 (33)", "lsb 2 (34)", "lsb 3 (35)", "lsb 4 (36)", "lsb 5 (37)", "lsb 6 (38)", "lsb 7 (39)", "lsb 8 (40)", "lsb 9 (41)", "lsb 10 (42)", "lsb 11 (43)", "lsb 12 (44)", "lsb 13 (45)", "lsb 14 (46)", "lsb 15 (47)", "lsb 16 (48)", "lsb 17 (49)", "lsb 18 (50)", "lsb 19 (51)", "lsb 20 (52)", "lsb 21 (53)", "lsb 22 (54)", "lsb 23 (55)", "lsb 24 (56)", "lsb 25 (57)", "lsb 26 (58)", "lsb 27 (59)", "lsb 28 (60)", "lsb 29 (61)", "lsb 30 (62)", "lsb 31 (63)", "sustain (64)", "portamento (65)", "sostenuto (66)", "soft ped (67)", "ctrl 68", "hold 2 (69)", "ctrl 70", "ctrl 71", "ctrl 72", "ctrl 73", "ctrl 74", "ctrl 75", "ctrl 76", "ctrl 77", "ctrl 78", "ctrl 79", "gpc 5 (80)", "gpc 6 (81)", "gpc 7 (82)", "gpc 8 (83)", "ctrl 84", "ctrl 85", "ctrl 86", "ctrl 87", "ctrl 88", "ctrl 89", "ctrl 90", "fx dpth (91)", "tremolo (92)", "chorus (93)", "detune (94)", "phaser (95)", "data inc (96)", "data dec (97)", "nrpn lsb (98)", "nrpn msg (99)", "rpn lsb (100)", "rpn msb (101)", "ctrl 102", "ctrl 103", "ctrl 104", "ctrl 105", "ctrl 106", "ctrl 107", "ctrl 108", "ctrl 109", "ctrl 110", "ctrl 111", "ctrl 112", "ctrl 113", "ctrl 114", "ctrl 115", "ctrl 116", "ctrl 117", "ctrl 118", "ctrl 119", "snd off (120)", "rst ctrl (121)", "local (122)", "notes off (123)", "omni off (124)", "omni on (125)", "mono on (126)", "poly on (127)", 0 }; MIDI::byte MIDI::decode_controller_name (const char *name) { const char *lparen; size_t len; if ((lparen = strrchr (name, '(')) != 0) { return atoi (lparen+1); } else { len = strcspn (name, "0123456789"); return atoi (name+len); } } sooperlooper-1.7.3~dfsg0/libs/midi++/midimanager.cc0000644000175000017500000001544611754453700020643 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include #include #include #include #include #include using namespace std; using namespace MIDI; Manager *Manager::theManager = 0; Manager::Manager () { inputPort = 0; outputPort = 0; inputChannelNumber = 0; outputChannelNumber = 0; } Manager::~Manager () { PortMap::iterator i; for (i = ports_by_device.begin(); i != ports_by_device.end(); i++) { delete (*i).second; } ports_by_device.erase (ports_by_device.begin(), ports_by_device.end()); ports_by_tag.erase (ports_by_tag.begin(), ports_by_tag.end()); if (theManager == this) { theManager = 0; } } Port * Manager::add_port (PortRequest &req) { PortFactory factory; Port *port; PortMap::iterator existing; pair newpair; if ((existing = ports_by_device.find (req.devname)) != ports_by_device.end()) { port = (*existing).second; if (port->mode() == req.mode) { /* Same mode - reuse the port, and just create a new tag entry. */ newpair.first = req.tagname; newpair.second = port; ports_by_tag.insert (newpair); return port; } /* If the existing is duplex, and this request is not, then fail, because most drivers won't allow opening twice with duplex and non-duplex operation. */ if ((req.mode == O_RDWR && port->mode() != O_RDWR) || (req.mode != O_RDWR && port->mode() == O_RDWR)) { error << "MIDIManager: port tagged \"" << req.tagname << "\" cannot be opened duplex and non-duplex" << endmsg; return 0; } /* modes must be different or complementary */ } port = factory.create_port (req); if (port == 0) { return 0; } if (!port->ok()) { delete port; return 0; } newpair.first = port->name(); newpair.second = port; ports_by_tag.insert (newpair); newpair.first = port->device(); newpair.second = port; ports_by_device.insert (newpair); /* first port added becomes the default input port. */ if (inputPort == 0) { inputPort = port; } if (outputPort == 0) { outputPort = port; } return port; } int Manager::remove_port (const char *name) { PortMap::iterator res; if ((res = ports_by_device.find (name)) == ports_by_device.end()) { return -1; } ports_by_device.erase (res); ports_by_device.erase ((*res).second->name()); delete (*res).second; return 0; } int Manager::set_input_port (const char *tag) { PortMap::iterator res; if ((res = ports_by_tag.find (tag)) == ports_by_tag.end()) { return -1; } inputPort = (*res).second; return 0; } int Manager::set_input_port (size_t portnum) { PortMap::iterator res; for (res = ports_by_tag.begin(); res != ports_by_tag.end(); res++) { if ((*res).second->number() == portnum) { inputPort = (*res).second; return 0; } } return -1; } int Manager::set_output_port (const char *tag) { PortMap::iterator res; if ((res = ports_by_tag.find (tag)) == ports_by_tag.end()) { return -1; } // XXX send a signal to say we're about to change output ports if (outputPort) { for (channel_t chan = 0; chan < 16; chan++) { outputPort->channel (chan)->all_notes_off (); } } outputPort = (*res).second; // XXX send a signal to say we've changed output ports return 0; } int Manager::set_output_port (size_t portnum) { PortMap::iterator res; for (res = ports_by_tag.begin(); res != ports_by_tag.end(); res++) { if ((*res).second->number() == portnum) { outputPort = (*res).second; return 0; } } return -1; } Port * Manager::port (const string &name) { PortMap::iterator i; if ((i = ports_by_tag.find (name.c_str())) == ports_by_tag.end()) { return 0; } else { return (*i).second; } } Port * Manager::port (size_t portnum) { PortMap::iterator res; for (res = ports_by_tag.begin(); res != ports_by_tag.end(); res++) { if ((*res).second->number() == portnum) { return (*res).second; } } return 0; } int Manager::foreach_port (int (*func)(const Port &, size_t, void *), void *arg) { PortMap::const_iterator i; int retval; int n; for (n = 0, i = ports_by_device.begin(); i != ports_by_device.end(); i++, n++) { if ((retval = func (*((*i).second), n, arg)) != 0) { return retval; } } return 0; } int Manager::parse_port_request (const string &str, Port::Type type) { PortRequest *req; string::size_type colon; string tag; if (str.length() == 0) { error << "MIDI: missing port specification" << endmsg; return -1; } /* Port specifications look like: devicename devicename:tagname devicename:tagname:mode where "devicename" is the full path to the requested file "tagname" (optional) is the name used to refer to the port. If not given, PBD::basename (devicename) will be used. "mode" (optional) is either "r" or "w" or something else. if it is "r", the port will be opened read-only, if "w", the port will be opened write-only. Any other value, or no mode specification at all, will cause the port to be opened for reading and writing. */ req = new PortRequest; colon = str.find_first_of (':'); if (colon != string::npos) { req->devname = strdup (str.substr (0, colon).c_str()); } else { req->devname = strdup (str.c_str()); } if (colon < str.length()) { tag = str.substr (colon+1); /* see if there is a mode specification in the tag part */ colon = tag.find_first_of (':'); if (colon != string::npos) { string modestr; req->tagname = strdup (tag.substr (0, colon).c_str()); modestr = tag.substr (colon+1); if (modestr == "r") { req->mode = O_RDONLY; } else if (modestr == "w") { req->mode = O_WRONLY; } else { req->mode = O_RDWR; } } else { req->tagname = strdup (tag.c_str()); req->mode = O_RDWR; } } else { req->tagname = strdup (PBD::basename (req->devname)); req->mode = O_RDWR; } req->type = type; if (MIDI::Manager::instance()->add_port (*req) == 0) { return -1; } return 0; } sooperlooper-1.7.3~dfsg0/libs/midi++/NEWS0000644000175000017500000000000011754453700016532 0ustar miramirasooperlooper-1.7.3~dfsg0/libs/midi++/._fd_midiport.cc0000644000175000017500000000024712251777652021104 0ustar miramiraMac OS X  2u§ATTR§œ œ com.apple.TextEncodingmacintosh;0sooperlooper-1.7.3~dfsg0/libs/midi++/version.cc.in0000644000175000017500000000024211754453700020444 0ustar miramiraint midipp_major_version = @LIBMIDIPP_MAJOR_VERSION@; int midipp_minor_version = @LIBMIDIPP_MINOR_VERSION@; int midipp_micro_version = @LIBMIDIPP_MICRO_VERSION@; sooperlooper-1.7.3~dfsg0/libs/midi++/midichannel.cc0000644000175000017500000001563012230252703020622 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include using namespace sigc; using namespace MIDI; Channel::Channel (byte channelnum, Port &p) : port (p) { channel_number = channelnum; reset (false); } void Channel::connect_input_signals () { port.input()->channel_pressure[channel_number].connect (mem_fun (*this, &Channel::process_chanpress)); port.input()->channel_note_on[channel_number].connect (mem_fun (*this, &Channel::process_note_on)); port.input()->channel_note_off[channel_number].connect (mem_fun (*this, &Channel::process_note_off)); port.input()->channel_poly_pressure[channel_number].connect (mem_fun (*this, &Channel::process_polypress)); port.input()->channel_program_change[channel_number].connect (mem_fun (*this, &Channel::process_program_change)); port.input()->channel_controller[channel_number].connect (mem_fun (*this, &Channel::process_controller)); port.input()->channel_pitchbend[channel_number].connect (mem_fun (*this, &Channel::process_pitchbend)); port.input()->reset.connect (mem_fun (*this, &Channel::process_reset)); } void Channel::connect_output_signals () { port.output()->channel_pressure[channel_number].connect (mem_fun (*this, &Channel::process_chanpress)); port.output()->channel_note_on[channel_number].connect (mem_fun (*this, &Channel::process_note_on)); port.output()->channel_note_off[channel_number].connect (mem_fun (*this, &Channel::process_note_off)); port.output()->channel_poly_pressure[channel_number].connect (mem_fun (*this, &Channel::process_polypress)); port.output()->channel_program_change[channel_number].connect (mem_fun (*this, &Channel::process_program_change)); port.output()->channel_controller[channel_number].connect (mem_fun (*this, &Channel::process_controller)); port.output()->channel_pitchbend[channel_number].connect (mem_fun (*this, &Channel::process_pitchbend)); port.output()->reset.connect (mem_fun (*this, &Channel::process_reset)); } void Channel::reset (bool notes_off) { program_number = channel_number; bank_number = 0; pitch_bend = 0; _last_note_on = 0; _last_note_off = 0; _last_on_velocity = 0; _last_off_velocity = 0; if (notes_off) { all_notes_off (); } memset (polypress, 0, sizeof (polypress)); memset (controller_msb, 0, sizeof (controller_msb)); memset (controller_lsb, 0, sizeof (controller_lsb)); /* zero all controllers XXX not necessarily the right thing */ memset (controller_val, 0, sizeof (controller_val)); for (int n = 0; n < 128; n++) { controller_14bit[n] = false; } rpn_msb = 0; rpn_lsb = 0; nrpn_msb = 0; nrpn_lsb = 0; _omni = true; _poly = false; _mono = true; _notes_on = 0; } void Channel::process_note_off (Parser &parser, EventTwoBytes *tb) { _last_note_off = tb->note_number; _last_off_velocity = tb->velocity; if (_notes_on) { _notes_on--; } } void Channel::process_note_on (Parser &parser, EventTwoBytes *tb) { _last_note_on = tb->note_number; _last_on_velocity = tb->velocity; _notes_on++; } void Channel::process_controller (Parser &parser, EventTwoBytes *tb) { unsigned short cv; /* XXX arguably need a lock here to protect non-atomic changes to controller_val[...]. or rather, need to make sure that all changes *are* atomic. */ if (tb->controller_number <= 31) { /* unsigned: no test for >= 0 */ /* if this controller is already known to use 14 bits, then treat this value as the MSB, and combine it with the existing LSB. otherwise, just treat it as a 7 bit value, and set it directly. */ cv = (unsigned short) controller_val[tb->controller_number]; if (controller_14bit[tb->controller_number]) { cv = ((tb->value << 7) | (cv & 0x7f)); } else { cv = tb->value; } controller_val[tb->controller_number] = (controller_value_t)cv; } else if ((tb->controller_number >= 32 && tb->controller_number <= 63)) { cv = (unsigned short) controller_val[tb->controller_number]; /* LSB for CC 0-31 arrived. If this is the first time (i.e. its currently flagged as a 7 bit controller), mark the controller as 14 bit, adjust the existing value to be the MSB, and OR-in the new LSB value. otherwise, OR-in the new low 7bits with the old high 7. */ int cn = tb->controller_number - 32; if (controller_14bit[cn] == false) { controller_14bit[cn] = true; cv = (cv << 7) | (tb->value & 0x7f); } else { cv = (cv & 0x3f80) | (tb->value & 0x7f); } controller_val[tb->controller_number] = (controller_value_t) cv; } else { /* controller can only take 7 bit values */ controller_val[tb->controller_number] = (controller_value_t) tb->value; } /* bank numbers are special, in that they have their own signal */ if (tb->controller_number == 0) { bank_number = (unsigned short) controller_val[0]; if (port.input()) { port.input()->bank_change (*port.input(), bank_number); port.input()->channel_bank_change[channel_number] (*port.input(), bank_number); } } } void Channel::process_program_change (Parser &parser, byte val) { program_number = val; } void Channel::process_chanpress (Parser &parser, byte val) { chanpress = val; } void Channel::process_polypress (Parser &parser, EventTwoBytes *tb) { polypress[tb->note_number] = tb->value; } void Channel::process_pitchbend (Parser &parser, pitchbend_t val) { pitch_bend = val; } void Channel::process_reset (Parser &parser) { reset (); } int Channel::channel_msg (byte id, byte val1, byte val2) { unsigned char msg[3]; int len = 0; msg[0] = id | (channel_number & 0xf); switch (id) { case off: msg[1] = val1 & 0x7F; msg[2] = val2 & 0x7F; len = 3; break; case on: msg[1] = val1 & 0x7F; msg[2] = val2 & 0x7F; len = 3; break; case MIDI::polypress: msg[1] = val1 & 0x7F; msg[2] = val2 & 0x7F; len = 3; break; case controller: msg[1] = val1 & 0x7F; msg[2] = val2 & 0x7F; len = 3; break; case MIDI::program: msg[1] = val1 & 0x7F; len = 2; break; case MIDI::chanpress: msg[1] = val1 & 0x7F; len = 2; break; case MIDI::pitchbend: msg[1] = val1 & 0x7F; msg[2] = val2 & 0x7F; len = 3; break; } return port.midimsg (msg, len); } sooperlooper-1.7.3~dfsg0/libs/midi++/fd_midiport.cc0000644000175000017500000000775412251777652020701 0ustar miramira/* Copyright (C) 1999 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include #include #include #include #include using namespace std; using namespace MIDI; string *FD_MidiPort::midi_dirpath = 0; string *FD_MidiPort::midi_filename_pattern = 0; FD_MidiPort::FD_MidiPort (PortRequest &req, const string &dirpath, const string &pattern) : Port (req) { open (req); if (_fd < 0) { switch (errno) { case EBUSY: error << "MIDI: port device in use" << endmsg; req.status = PortRequest::Busy; break; case ENOENT: error << "MIDI: no such port device" << endmsg; req.status = PortRequest::NoSuchFile; break; case EACCES: error << "MIDI: access to port denied" << endmsg; req.status = PortRequest::NotAllowed; break; default: req.status = PortRequest::Unknown; } } else { _ok = true; req.status = PortRequest::OK; if (midi_dirpath == 0) { midi_dirpath = new string (dirpath); midi_filename_pattern = new string (pattern); } if ((req.mode & O_NONBLOCK) == 0) { /* we unconditionally set O_NONBLOCK during open, but the request didn't ask for it, so remove it. */ int flags = fcntl (_fd, F_GETFL, 0); fcntl (_fd, F_SETFL, flags & ~(O_NONBLOCK)); } } } void FD_MidiPort::open (PortRequest &req) { int mode = req.mode | O_NONBLOCK; _fd = ::open (req.devname, mode); } vector * FD_MidiPort::list_devices () { PathScanner scanner; return scanner (*midi_dirpath, *midi_filename_pattern, false, true); } int FD_MidiPort::selectable () const { long flags; /* turn on non-blocking mode, since we plan to use select/poll to tell us when there is data to read. */ flags = fcntl (_fd, F_GETFL); flags |= O_NONBLOCK; if (fcntl (_fd, F_SETFL, flags)) { error << "FD_MidiPort: could not turn on non-blocking mode" << " (" << strerror (errno) << ')' << endmsg; return -1; } return _fd; } int FD_MidiPort::do_slow_write (byte *msg, unsigned int msglen) { size_t n; size_t i; for (n = 0; n < msglen; n++) { if (::write (_fd, &msg[n], 1) != 1) { break; } bytes_written++; for (i = 0; i < slowdown * 10000; i++); } if (n && output_parser) { output_parser->raw_preparse (*output_parser, msg, n, get_current_host_time()); for (unsigned int i = 0; i < n; i++) { output_parser->scanner (msg[i]); } output_parser->raw_postparse (*output_parser, msg, n); } return n; } int FD_MidiPort::read (byte* buf, size_t max) { int nread; if ((_mode & O_ACCMODE) == O_WRONLY) { return -EACCES; } // cerr << "MIDI: read up to " << max << " from " << _fd << " (" << name() << ')' << endl; if ((nread = ::read (_fd, buf, max)) > 0) { bytes_read += nread; // cerr << " read " << nread << endl; if (input_parser) { input_parser->raw_preparse (*input_parser, buf, nread, get_current_host_time()); for (int i = 0; i < nread; i++) { input_parser->scanner (buf[i]); } input_parser->raw_postparse (*input_parser, buf, nread); } } return nread; } timestamp_t FD_MidiPort::get_current_host_time() { struct timeval tv; gettimeofday(&tv, NULL); return (timestamp_t)(tv.tv_usec * 1e-6) + (timestamp_t)(tv.tv_sec); } sooperlooper-1.7.3~dfsg0/libs/midi++/ChangeLog0000644000175000017500000000000011754453700017605 0ustar miramirasooperlooper-1.7.3~dfsg0/libs/midi++/INSTALL0000644000175000017500000000000011754453700017064 0ustar miramirasooperlooper-1.7.3~dfsg0/libs/midi++/coremidi_midiport.cc0000644000175000017500000001217211754453700022061 0ustar miramira/* Copyright (C) 2004 Paul Davis Copyright (C) 2004 Grame This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include #include #include #include using namespace std; using namespace MIDI; MIDITimeStamp CoreMidi_MidiPort::MIDIGetCurrentHostTime() { return mach_absolute_time(); } CoreMidi_MidiPort::CoreMidi_MidiPort (PortRequest &req) : Port (req) { int err; midi_client = 0; midi_source = 0; midi_destination = 0; if (0 == (err = Open(req))) { _ok = true; req.status = PortRequest::OK; } else req.status = PortRequest::Unknown; } CoreMidi_MidiPort::~CoreMidi_MidiPort () {Close();} void CoreMidi_MidiPort::Close () { if (midi_destination) MIDIEndpointDispose(midi_destination); if (midi_source) MIDIEndpointDispose(midi_source); if (midi_client) MIDIClientDispose(midi_client); } int CoreMidi_MidiPort::write (byte *msg, size_t msglen) { return write_at(msg, msglen, get_current_host_time()); } int CoreMidi_MidiPort::write_at (byte *msg, size_t msglen, timestamp_t at_time) { OSStatus err; MIDIPacketList* pktlist = (MIDIPacketList*)midi_buffer; MIDIPacket* packet = MIDIPacketListInit(pktlist); packet = MIDIPacketListAdd(pktlist,sizeof(midi_buffer),packet, secs_to_host_time(at_time),msglen,msg); if (packet) { err = MIDIReceived(midi_source,pktlist); if (err != noErr) { //error << "MIDIReceived error" << err << endmsg. } bytes_written += msglen; return msglen; }else{ return 0; } } int CoreMidi_MidiPort::Open (PortRequest &req) { OSStatus err; CFStringRef coutputStr; string str; coutputStr = CFStringCreateWithCString(0, req.devname, CFStringGetSystemEncoding()); err = MIDIClientCreate(coutputStr, 0, 0, &midi_client); CFRelease(coutputStr); if (err != noErr) { cerr << "Cannot open CoreMidi client : " << err << endl; goto error; } str = req.tagname + string("_in"); coutputStr = CFStringCreateWithCString(0, str.c_str(), CFStringGetSystemEncoding()); err = MIDIDestinationCreate(midi_client, coutputStr, read_proc, this, &midi_destination); CFRelease(coutputStr); if (err != noErr) { cerr << "Cannot create CoreMidi destination : " << err << endl; goto error; } str = req.tagname + string("_out"); coutputStr = CFStringCreateWithCString(0, str.c_str(), CFStringGetSystemEncoding()); err = MIDISourceCreate(midi_client, coutputStr, &midi_source); CFRelease(coutputStr); if (err != noErr) { cerr << "Cannot create CoreMidi source : " << err << endl; goto error; } return err; error: Close(); return err; } void CoreMidi_MidiPort::read_proc (const MIDIPacketList *pktlist, void *refCon, void *connRefCon) { CoreMidi_MidiPort* driver = (CoreMidi_MidiPort*)refCon; MIDIPacket *packet = (MIDIPacket *)pktlist->packet; for (unsigned int i = 0; i < pktlist->numPackets; ++i) { driver->bytes_read += packet->length; if (driver->input_parser) { driver->input_parser->raw_preparse (*driver->input_parser, packet->data, packet->length, host_time_to_secs(packet->timeStamp)); for (int j = 0; j < packet->length; ++j) { driver->input_parser->scanner (packet->data[j]); } driver->input_parser->raw_postparse (*driver->input_parser, packet->data, packet->length); } packet = MIDIPacketNext(packet); } } timestamp_t CoreMidi_MidiPort::get_current_host_time() { static double conversion = 0.0; if( conversion == 0.0 ) { mach_timebase_info_data_t info; kern_return_t err = mach_timebase_info( &info ); //Convert the timebase into seconds if( err == 0 ) conversion = 1e-9 * (double) info.numer / (double) info.denom; } return (MIDIGetCurrentHostTime() * conversion); } timestamp_t CoreMidi_MidiPort::host_time_to_secs(MIDITimeStamp mts) { static double conversion = 0.0; if( conversion == 0.0 ) { mach_timebase_info_data_t info; kern_return_t err = mach_timebase_info( &info ); //Convert the timebase into seconds if( err == 0 ) conversion = 1e-9 * (double) info.numer / (double) info.denom; } return (mts * conversion); } MIDITimeStamp CoreMidi_MidiPort::secs_to_host_time(timestamp_t secs) { static double conversion = 0.0; if( conversion == 0.0 ) { mach_timebase_info_data_t info; kern_return_t err = mach_timebase_info( &info ); //Convert the timebase from seconds to timestamp if( err == 0 ) conversion = 1e9 * (double) info.denom / (double) info.numer; } return (MIDITimeStamp) (secs * conversion); } sooperlooper-1.7.3~dfsg0/libs/midi++/configure0000755000175000017500000062616012442352513017762 0ustar miramira#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.68. # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 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 # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (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 # 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. as_myself= 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 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="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_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error 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 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi 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'` # 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_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # 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; as_fn_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 } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac 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='mkdir -p "$as_dir"' 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'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/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= # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= PACKAGE_URL= ac_unique_file="fd_midiport.cc" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS ACLOCAL_AMFLAGS ACLOCAL_FLAGS SIGCPP_LIBS SIGCPP_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG AUDIO_LIBS WITH_COREMIDI_FALSE WITH_COREMIDI_TRUE WITH_ALSA_FALSE WITH_ALSA_TRUE EGREP GREP CXXCPP CONTROLLER_VALUES_TYPE RANLIB am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM LIBMIDI_RELEASE LIBMIDI_VERSION LIBMIDI_SO_VERSION LIBMIDIPP_MICRO_VERSION LIBMIDIPP_MINOR_VERSION LIBMIDIPP_MAJOR_VERSION target_os target_vendor target_cpu target 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_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_dependency_tracking enable_optimize enable_profiling with_macosx_sdk with_macosx_version_min enable_float_controllers ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CXX CXXFLAGS CCC CXXCPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR SIGCPP_CFLAGS SIGCPP_LIBS' # 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}' 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= ;; *) 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_fn_error $? "invalid feature name: $ac_useropt" 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_fn_error $? "invalid feature name: $ac_useropt" 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 ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used" >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --disable-optimize avoid optimizations to allow for gdb debugging. --enable-profiling build for profiling using gprof. --enable-float-controllers Use floats for controller values default=yes Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-macosx-sdk=PATH use an OS X SDK at PATH --with-macosx-version-min=VER build binaries which require at least this OS X version Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path SIGCPP_CFLAGS C compiler flags for SIGCPP, overriding pkg-config SIGCPP_LIBS linker flags for SIGCPP, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_link # ac_fn_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_cpp # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES # --------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_cxx_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_header_mongrel # ac_fn_cxx_try_run LINENO # ------------------------ # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_cxx_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_run # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES # --------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_cxx_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_header_compile # ac_fn_cxx_check_func LINENO FUNC VAR # ------------------------------------ # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_cxx_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in . "$srcdir"/.; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 $as_echo_n "checking target system type... " >&6; } if ${ac_cv_target+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 $as_echo "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1 target_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: target_os=$* IFS=$ac_save_IFS case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- LIBMIDI_MAJOR_VERSION=1 LIBMIDI_MINOR_VERSION=13 LIBMIDI_MICRO_VERSION=0 LIBMIDIPP_MAJOR_VERSION=${LIBMIDI_MAJOR_VERSION} LIBMIDIPP_MINOR_VERSION=${LIBMIDI_MINOR_VERSION} LIBMIDIPP_MICRO_VERSION=${LIBMIDI_MICRO_VERSION} BETA= LIBMIDI_VERSION=$LIBMIDI_MAJOR_VERSION.$LIBMIDI_MINOR_VERSION.${LIBMIDI_MICRO_VERSION}${BETA} LIBMIDI_RELEASE=$LIBMIDI_MAJOR_VERSION-$LIBMIDI_MINOR_VERSION-${LIBMIDI_MICRO_VERSION}${BETA} am__api_version='1.11' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=libmidi++ VERSION=${LIBMIDI_VERSION} cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_config_headers="$ac_config_headers config.h" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CXX_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi if test "$ac_cv_prog_cxx" = "no" ; then as_fn_error $? "*** libmidi is C++. You don't appear to have a C++ compiler" "$LINENO" 5 fi gcc_major_version=4 os_system=Darwin if test "$target_cpu" = "powerpc"; then $as_echo "#define POWERPC 1" >>confdefs.h altivecLinux= if test "$?" = "0"; then $as_echo "#define HAVE_ALTIVEC_LINUX 1" >>confdefs.h if test "$gcc_major_version" = "3"; then #OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -maltivec -mabi=altivec" OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -mtune=7450" else OPT_FLAGS="-D_REENTRANT -Os" fi else OPT_FLAGS="-D_REENTRANT -Os " fi OPT_FLAGS="$OPT_FLAGS -mhard-float -mpowerpc-gfxopt" elif echo $target_cpu | grep "i*86" >/dev/null; then if test "$os_system" = "Darwin"; then # pretty good assumption mmx="-mmmx" sse="-msse -mfpmath=sse" OPT_FLAGS="-D_REENTRANT -Os -fomit-frame-pointer $mmx $sse" else cat /proc/cpuinfo | grep mmx >/dev/null if test $? = 0; then mmx="-mmmx" fi cat /proc/cpuinfo | grep sse >/dev/null if test $? = 0; then sse="-msse -mfpmath=sse" fi cat /proc/cpuinfo | grep 3dnow >/dev/null if test $? = 0; then dreidnow="-m3dnow" fi $as_echo "#define x86 1" >>confdefs.h if test "$target_cpu" = "i586"; then OPT_FLAGS="-DREENTRANT -O2 -march=i586 -fomit-frame-pointer" elif test "$target_cpu" = "i686"; then OPT_FLAGS="-D_REENTRANT -O2 -march=i686 -fomit-frame-pointer" if test "$gcc_major_version" -ge "3"; then OPT_FLAGS="$OPT_FLAGS $mmx $sse $dreidnow" fi else OPT_FLAGS="-D_REENTRANT -O2 -fomit-frame-pointer" fi fi fi OPT_FLAGS="$OPT_FLAGS -pipe" # LARGEFILE_FLAGS="`getconf LFS_CFLAGS`" LARGEFILE_FLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" CXXFLAGS="-g -D_REENTRANT $LARGEFILE_FLAGS" if test x"$GXX" = xyes ; then CXXFLAGS="$CXXFLAGS -Wall" fi if test x"$GXX" = xyes ; then OPT_CXXFLAGS="$OPT_FLAGS -Wall $LARGEFILE_FLAGS" fi PROF_FLAGS="-pg" CXXFLAGS="$CXXFLAGS -fno-merge-constants" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi # Check whether --enable-optimize was given. if test "${enable_optimize+set}" = set; then : enableval=$enable_optimize; if test "x$enable_optimize" != "xno" ; then CXXFLAGS="$OPT_CXXFLAGS" ; fi else CXXFLAGS="$OPT_CXXFLAGS" fi # Check whether --enable-profiling was given. if test "${enable_profiling+set}" = set; then : enableval=$enable_profiling; if test "x$enable_profiling" = "xyes" ; then CXXFLAGS="$CXXFLAGS $PROF_FLAGS" ; fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: CXXFLAGS is set based on $OPT_CXXFLAGS" >&5 $as_echo "CXXFLAGS is set based on $OPT_CXXFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-macosx-sdk" >&5 $as_echo_n "checking for --with-macosx-sdk... " >&6; } # Check whether --with-macosx-sdk was given. if test "${with_macosx_sdk+set}" = set; then : withval=$with_macosx_sdk; wxUSE_MACOSX_SDK=$withval wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval" #echo "wxUSE_MACOSX_SDK=$wxUSE_MACOSX_SDK" >> ${wx_arg_cache_file}.tmp else # NOTE: Empty string on purpose so that --without-macosx-sdk (thus no) # will override --enable-universal_binary's automatic SDK usage. wxUSE_MACOSX_SDK= #LINE=`grep "^wxUSE_MACOSX_SDK=" ${wx_arg_cache_file}` #if test "x$LINE" != x ; then # eval "$LINE" # echo "$LINE" >> ${wx_arg_cache_file}.tmp #fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_MACOSX_SDK" >&5 $as_echo "$wxUSE_MACOSX_SDK" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-macosx-version-min" >&5 $as_echo_n "checking for --with-macosx-version-min... " >&6; } # Check whether --with-macosx-version-min was given. if test "${with_macosx_version_min+set}" = set; then : withval=$with_macosx_version_min; wxUSE_MACOSX_VERSION_MIN=$withval wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval" #echo "wxUSE_MACOSX_VERSION_MIN=$wxUSE_MACOSX_VERSION_MIN" >> ${wx_arg_cache_file}.tmp else # default "yes" because when not using an SDK it means the same as no # but when using an SDK it means to use the SDK version wxUSE_MACOSX_VERSION_MIN=yes # See if there is a value in the cache #LINE=`grep "^wxUSE_MACOSX_VERSION_MIN=" ${wx_arg_cache_file}` #if test "x$LINE" != x ; then # eval "$LINE" # echo "$LINE" >> ${wx_arg_cache_file}.tmp #fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_MACOSX_VERSION_MIN" >&5 $as_echo "$wxUSE_MACOSX_VERSION_MIN" >&6; } if test "x$wxUSE_MACOSX_SDK" = "xno"; then wxUSE_MACOSX_SDK= elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then # TODO: Search for most recent SDK and use it. wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk" fi if test "x$wxUSE_MACOSX_SDK" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDK directory $wxUSE_MACOSX_SDK" >&5 $as_echo_n "checking for SDK directory $wxUSE_MACOSX_SDK... " >&6; } if ! test -d "$wxUSE_MACOSX_SDK"; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "not found See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: exists" >&5 $as_echo "exists" >&6; } fi MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK" eval "CC=\"$CC $MACOSX_SDK_OPTS\"" eval "CXX=\"$CXX $MACOSX_SDK_OPTS\"" eval "LD=\"$LD $MACOSX_SDK_OPTS\"" retest_macosx_linking=yes fi if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then wxUSE_MACOSX_VERSION_MIN= elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then if test "x$wxUSE_MACOSX_SDK" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDK deployment version" >&5 $as_echo_n "checking SDK deployment version... " >&6; } MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" buildSettings | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` # If that failed, try again with the new key if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` fi if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_MACOSX_VERSION_MIN" >&5 $as_echo "$wxUSE_MACOSX_VERSION_MIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine deployment target from SDKSettings.plist" >&5 $as_echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;} wxUSE_MACOSX_VERSION_MIN= fi else wxUSE_MACOSX_VERSION_MIN= fi fi if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN" eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\"" eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\"" eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\"" retest_macosx_linking=yes fi if test "x$retest_macosx_linking" = "xyes"; then ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler works with SDK/version options" >&5 $as_echo_n "checking if C compiler works with SDK/version options... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no. Try a different SDK See \`config.log' for more details" "$LINENO" 5; }; exit 1 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler works with SDK/version options" >&5 $as_echo_n "checking if C++ compiler works with SDK/version options... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no. Try a different SDK See \`config.log' for more details" "$LINENO" 5; }; exit 1 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi use_float_for_controller_values=yes # Check whether --enable-float_controllers was given. if test "${enable_float_controllers+set}" = set; then : enableval=$enable_float_controllers; if test "$enableval" = "no"; then use_float_for_controller_values=no fi fi if test "$use_float_for_controller_values" = "yes"; then CONTROLLER_VALUES_TYPE=float else CONTROLLER_VALUES_TYPE=unsigned short fi AUDIO_LIBS= ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if ${ac_cv_prog_CXXCPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : use_alsa_midi=yes AUDIO_LIBS=-lasound $as_echo "#define WITH_ALSA 1" >>confdefs.h else use_alsa_midi=no fi if test x$use_alsa_midi = xyes; then WITH_ALSA_TRUE= WITH_ALSA_FALSE='#' else WITH_ALSA_TRUE='#' WITH_ALSA_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h" >&5 $as_echo_n "checking for /System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h... " >&6; } if ${ac_cv_file__System_Library_Frameworks_CoreMIDI_framework_Headers_CoreMIDI_h+:} false; then : $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "/System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h"; then ac_cv_file__System_Library_Frameworks_CoreMIDI_framework_Headers_CoreMIDI_h=yes else ac_cv_file__System_Library_Frameworks_CoreMIDI_framework_Headers_CoreMIDI_h=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__System_Library_Frameworks_CoreMIDI_framework_Headers_CoreMIDI_h" >&5 $as_echo "$ac_cv_file__System_Library_Frameworks_CoreMIDI_framework_Headers_CoreMIDI_h" >&6; } if test "x$ac_cv_file__System_Library_Frameworks_CoreMIDI_framework_Headers_CoreMIDI_h" = xyes; then : use_coremidi=yes AUDIO_LIBS="-framework CoreMIDI" $as_echo "#define WITH_COREMIDI 1" >>confdefs.h else use_coremidi=no fi if test x$use_coremidi = xyes; then WITH_COREMIDI_TRUE= WITH_COREMIDI_FALSE='#' else WITH_COREMIDI_TRUE='#' WITH_COREMIDI_FALSE= fi if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGCPP" >&5 $as_echo_n "checking for SIGCPP... " >&6; } if test -n "$SIGCPP_CFLAGS"; then pkg_cv_SIGCPP_CFLAGS="$SIGCPP_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= 2.2.10\""; } >&5 ($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= 2.2.10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SIGCPP_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0 >= 2.2.10" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$SIGCPP_LIBS"; then pkg_cv_SIGCPP_LIBS="$SIGCPP_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= 2.2.10\""; } >&5 ($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= 2.2.10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SIGCPP_LIBS=`$PKG_CONFIG --libs "sigc++-2.0 >= 2.2.10" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then SIGCPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sigc++-2.0 >= 2.2.10" 2>&1` else SIGCPP_PKG_ERRORS=`$PKG_CONFIG --print-errors "sigc++-2.0 >= 2.2.10" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$SIGCPP_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (sigc++-2.0 >= 2.2.10) were not met: $SIGCPP_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables SIGCPP_CFLAGS and SIGCPP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables SIGCPP_CFLAGS and SIGCPP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else SIGCPP_CFLAGS=$pkg_cv_SIGCPP_CFLAGS SIGCPP_LIBS=$pkg_cv_SIGCPP_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi for ac_header in fcntl.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 $as_echo_n "checking return type of signal handlers... " >&6; } if ${ac_cv_type_signal+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { return *(signal (0, 0)) (0) == 1; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_type_signal=int else ac_cv_type_signal=void fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 $as_echo "$ac_cv_type_signal" >&6; } cat >>confdefs.h <<_ACEOF #define RETSIGTYPE $ac_cv_type_signal _ACEOF for ac_func in strdup do : ac_fn_cxx_check_func "$LINENO" "strdup" "ac_cv_func_strdup" if test "x$ac_cv_func_strdup" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRDUP 1 _ACEOF fi done top_marker=top_marker depth=0 while test x$SOOPERLOOPER_TOP = x -a $depth -lt 255 ; do if test -f $top_marker ; then SOOPERLOOPER_TOP=`dirname $top_marker` else top_marker=../$top_marker fi depth=`expr $depth + 1` done if test $depth -eq 255 ; then as_fn_error $? " the top of the SooperLooper source tree was not found." "$LINENO" 5 fi SOOPERLOOPER_TOP=`cd $SOOPERLOOPER_TOP; pwd` export LIBDIRS="pbd midi++ " ACLOCAL_FLAGS="-I $SOOPERLOOPER_TOP/aclocal" ACLOCAL_AMFLAGS="-I $SOOPERLOOPER_TOP/aclocal `if test -d m4 ; then echo -I m4; fi`" BASE_LIBS="$SOOPERLOOPER_TOP/libs/midi++/libmidipp.a $SOOPERLOOPER_TOP/libs/pbd/libpbd.a" BASE_INCLUDES="-I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" CFLAGS="$CFLAGS -I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" CXXFLAGS="$CXXFLAGS -I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" #LIBS="$LIBS $SOOPERLOOPER_TOP/libs/midi++/libmidipp.a $SOOPERLOOPER_TOP/libs/pbd/libpbd.a" CXXFLAGS="$CXXFLAGS $GUI_INCLUDES $SIGCPP_CFLAGS" ac_config_files="$ac_config_files Makefile version.cc midi++/Makefile libmidi++.pc libmidi++.spec" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WITH_ALSA_TRUE}" && test -z "${WITH_ALSA_FALSE}"; then as_fn_error $? "conditional \"WITH_ALSA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WITH_COREMIDI_TRUE}" && test -z "${WITH_COREMIDI_FALSE}"; then as_fn_error $? "conditional \"WITH_COREMIDI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## 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 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 # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (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 # 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. as_myself= 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 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith 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 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi 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'` # 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 ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac 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 # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' 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 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" Copyright (C) 2010 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "version.cc") CONFIG_FILES="$CONFIG_FILES version.cc" ;; "midi++/Makefile") CONFIG_FILES="$CONFIG_FILES midi++/Makefile" ;; "libmidi++.pc") CONFIG_FILES="$CONFIG_FILES libmidi++.pc" ;; "libmidi++.spec") CONFIG_FILES="$CONFIG_FILES libmidi++.spec" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi sooperlooper-1.7.3~dfsg0/libs/midi++/midicontrollable.cc0000644000175000017500000001505312230252703021671 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include /* for sprintf, sigh */ #include #include #include #include using namespace sigc; using namespace MIDI; Controllable::Controllable (Port *p, bool is_bistate) { control_type = none; _control_description = "MIDI Control: none"; control_additional = (byte) -1; bistate = is_bistate; connections = 0; feedback = true; // for now /* use channel 0 ("1") as the initial channel */ midi_rebind (p, 0); } Controllable::~Controllable () { drop_external_control (); } void Controllable::midi_rebind (Port *p, channel_t c) { /* save current settings */ eventType et = control_type; byte add = control_additional; channel_t ch = control_channel; if (c >= 0) { ch = c; } port = p; bind_midi (ch, et, add); } void Controllable::learn_about_external_control () { drop_external_control (); if (port) { midi_learn_connection = port->input()->any.connect (mem_fun (*this, &Controllable::midi_receiver)); learning_started (); } else { info << "No MIDI port specified - external control disabled" << endmsg; } } void Controllable::stop_learning () { midi_learn_connection.disconnect (); } void Controllable::drop_external_control () { if (connections > 0) { midi_sense_connection[0].disconnect (); } if (connections > 1) { midi_sense_connection[1].disconnect (); } connections = 0; control_type = none; midi_learn_connection.disconnect (); control_additional = (byte) -1; } void Controllable::midi_sense_note_on (Parser &p, EventTwoBytes *tb) { midi_sense_note (p, tb, true); } void Controllable::midi_sense_note_off (Parser &p, EventTwoBytes *tb) { midi_sense_note (p, tb, false); } void Controllable::midi_sense_note (Parser &p, EventTwoBytes *msg, bool is_on) { if (!bistate) { set_value (msg->note_number/127.0); } else { /* Note: parser handles the use of zero velocity to mean note off. if we get called with is_on=true, then we got a *real* note on. */ if (msg->note_number == control_additional) { set_value (is_on ? 1 : 0); } } } void Controllable::midi_sense_controller (Parser &, EventTwoBytes *msg) { if (control_additional == msg->controller_number) { if (!bistate) { set_value (msg->value/127.0); } else { if (msg->value > 64.0) { set_value (1); } else { set_value (0); } } } } void Controllable::midi_sense_program_change (Parser &p, byte msg) { /* XXX program change messages make no sense for bistates */ if (!bistate) { set_value (msg/127.0); } } void Controllable::midi_sense_pitchbend (Parser &p, pitchbend_t pb) { /* pitchbend messages make no sense for bistates */ /* XXX gack - get rid of assumption about typeof pitchbend_t */ set_value ((pb/(float) SHRT_MAX)); } void Controllable::midi_receiver (Parser &p, byte *msg, size_t len, timestamp_t ts) { /* we only respond to channel messages */ if ((msg[0] & 0xF0) < 0x80 || (msg[0] & 0xF0) > 0xE0) { return; } /* if the our port doesn't do input anymore, forget it ... */ if (!port->input()) { return; } bind_midi ((channel_t) (msg[0] & 0xf), eventType (msg[0] & 0xF0), msg[1]); learning_stopped (); } void Controllable::bind_midi (channel_t chn, eventType ev, MIDI::byte additional) { char buf[64]; drop_external_control (); control_type = ev; control_channel = chn; control_additional = additional; if (port == 0 || port->input() == 0) { return; } Parser& p = *port->input(); int chn_i = chn; switch (ev) { case MIDI::off: midi_sense_connection[0] = p.channel_note_off[chn_i].connect (mem_fun (*this, &Controllable::midi_sense_note_off)); /* if this is a bistate, connect to noteOn as well, and we'll toggle back and forth between the two. */ if (bistate) { midi_sense_connection[1] = p.channel_note_on[chn_i].connect (mem_fun (*this, &Controllable::midi_sense_note_on)); connections = 2; } else { connections = 1; } _control_description = "MIDI control: NoteOff"; break; case MIDI::on: midi_sense_connection[0] = p.channel_note_on[chn_i].connect (mem_fun (*this, &Controllable::midi_sense_note_on)); if (bistate) { midi_sense_connection[1] = p.channel_note_off[chn_i].connect (mem_fun (*this, &Controllable::midi_sense_note_off)); connections = 2; } else { connections = 1; } _control_description = "MIDI control: NoteOn"; break; case MIDI::controller: midi_sense_connection[0] = p.channel_controller[chn_i].connect (mem_fun (*this, &Controllable::midi_sense_controller)); connections = 1; snprintf (buf, sizeof (buf), "MIDI control: Controller %d", control_additional); _control_description = buf; break; case MIDI::program: if (!bistate) { midi_sense_connection[0] = p.channel_program_change[chn_i].connect (mem_fun (*this, &Controllable::midi_sense_program_change)); connections = 1; _control_description = "MIDI control: ProgramChange"; } break; case MIDI::pitchbend: if (!bistate) { midi_sense_connection[0] = p.channel_pitchbend[chn_i].connect (mem_fun (*this, &Controllable::midi_sense_pitchbend)); connections = 1; _control_description = "MIDI control: Pitchbend"; } break; default: break; } } void Controllable::set_control_type (channel_t chn, eventType ev, MIDI::byte additional) { bind_midi (chn, ev, additional); } bool Controllable::get_control_info (channel_t& chn, eventType& ev, byte& additional) { if (control_type == none) { return false; } ev = control_type; chn = control_channel; additional = control_additional; return true; } void Controllable::send_midi_feedback (float val) { byte msg[3]; if (port == 0 || control_type == none) { return; } msg[0] = (control_type & 0xF0) | (control_channel & 0xF); msg[1] = control_additional; msg[2] = (byte) (val * 127.0f); port->write (msg, 3); } sooperlooper-1.7.3~dfsg0/libs/midi++/libmidi++.spec.in0000644000175000017500000000363111754453700021070 0ustar miramiraSummary: A high level MIDI handling library. %define lib_name midi++ Name: lib%{lib_name} Version: @VERSION@ Release: 2 Copyright: GPL Source: ftp://ftp.quasimodo.org/pub/libs/midi++/current/%{name}-%{version}.tar.gz Url: http://www.quasimodo.org Vendor: Paul Barton Davis Packager: jfm3 Group: System Environment/Libraries Prefix: %{_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description libmidi++ is a C++ library that uses libsigc++ to make handling MIDI I/O from MIDI hardware trivial. You can attach "callbacks" to any MIDI input or output event, ranging from each individual byte, to a particular message type on a particular channel. It also provides channel "state". %prep %setup -q %build CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure $ARCH_FLAGS --prefix=%{prefix} make %install rm -rf $RPM_BUILD_ROOT install -d -m 755 $RPM_BUILD_ROOT%{prefix}/{{include,lib}/%{lib_name}} make install INSTALL="%(which install) -p" prefix=$RPM_BUILD_ROOT%{prefix} %post /sbin/ldconfig %postun /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README AUTHORS NEWS COPYING* %{prefix}/lib/libmidipp.so* %package devel Summary: A high level MIDI handling library -- develper version. Group: System Environment/Libraries %description devel libmidi++ is a C++ library that uses libsigc++ to make handling MIDI I/O from MIDI hardware trivial. You can attach "callbacks" to any MIDI input or output event, ranging from each individual byte, to a particular message type on a particular channel. It also provides channel "state". This package holds static libraries and headers needed by developers who wish to use libmidi++ in their programs. %files devel %defattr(-,root,root) %{prefix}/include/midi++/* %{prefix}/lib/libmidipp.a %{prefix}/lib/libmidipp.la %{prefix}/bin/midi++-config %{prefix}/share/aclocal/midi++.m4 %{prefix}/share/aclocal/midi.m4 sooperlooper-1.7.3~dfsg0/libs/midi++/version.cc0000644000175000017500000000013312442352640020032 0ustar miramiraint midipp_major_version = 1; int midipp_minor_version = 13; int midipp_micro_version = 0; sooperlooper-1.7.3~dfsg0/libs/midi++/Makefile.am0000644000175000017500000000225711754453700020107 0ustar miramiraAUTOMAKE_OPTIONS=1.7 MAINTAINERCLEANFILES = autom4te.cache Makefile.in aclocal.m4 configure config.h.in \ stamp-h.in libmidi++.spec \ config.guess mkinstalldirs \ missing install-sh config.sub ltconfig \ ltmain.sh config.log config.status \ depcomp SUBDIRS = midi++ INCLUDES = -I$(top_srcdir) SYSDEP_SRCS= if WITH_ALSA SYSDEP_SRCS += alsa_sequencer_midiport.cc endif if WITH_COREMIDI SYSDEP_SRCS += coremidi_midiport.cc endif noinst_LIBRARIES = libmidipp.a libmidipp_a_SOURCES = \ fd_midiport.cc \ fifomidi.cc \ midi.cc \ midichannel.cc \ midicontrollable.cc \ midifactory.cc \ midimanager.cc \ midiparser.cc \ midiport.cc \ mmc.cc \ mtc.cc \ port_request.cc \ version.cc \ $(SYSDEP_SRCS) XTRA_SRC = alsa_sequencer_midiport.cc coremidi_midiport.cc EXTRA_DIST = $(XTRA_SRC) libmidi++.spec.in \ libmidi++.pc.in autogen.sh #bin_DIR = . #noinst_PROGRAMS = mmc miditrace #mmc_SOURCES = mmctest.cc #mmc_LDFLAGS = `midi++-config --libs` #miditrace_SOURCES = miditrace.cc #miditrace_LDFLAGS = `midi++-config --libs` sooperlooper-1.7.3~dfsg0/libs/midi++/alsa_sequencer_midiport.cc0000644000175000017500000001070511754453700023260 0ustar miramira/* Copyright (C) 2004 Paul Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include #include #include //#define DOTRACE 1 #ifdef DOTRACE #define TR_FN() (cerr << __FUNCTION__ << endl) #define TR_VAL(v) (cerr << __FILE__ " " << __LINE__ << " " #v "=" << v << endl) #else #define TR_FN() #define TR_VAL(v) #endif using namespace std; using namespace MIDI; ALSA_SequencerMidiPort::ALSA_SequencerMidiPort (PortRequest &req) : Port (req) , seq (0) , decoder (0) , encoder (0) { TR_FN(); int err; if (0 <= (err = CreatePorts (req)) && 0 <= (err = snd_midi_event_new (1024, &decoder)) && // Length taken from ARDOUR::Session::midi_read () 0 <= (err = snd_midi_event_new (64, &encoder))) { // Length taken from ARDOUR::Session::mmc_buffer snd_midi_event_init (decoder); snd_midi_event_init (encoder); _ok = true; req.status = PortRequest::OK; } else req.status = PortRequest::Unknown; } ALSA_SequencerMidiPort::~ALSA_SequencerMidiPort () { if (decoder) snd_midi_event_free (decoder); if (encoder) snd_midi_event_free (encoder); if (seq) snd_seq_close (seq); } int ALSA_SequencerMidiPort::selectable () const { struct pollfd pfd[1]; if (0 <= snd_seq_poll_descriptors (seq, pfd, 1, POLLIN | POLLOUT)) { return pfd[0].fd; } return -1; } int ALSA_SequencerMidiPort::write (byte *msg, size_t msglen) { TR_FN (); int R; int totwritten = 0; snd_midi_event_reset_encode (encoder); int nwritten = snd_midi_event_encode (encoder, msg, msglen, &SEv); TR_VAL (nwritten); while (0 < nwritten) { if (0 <= (R = snd_seq_event_output (seq, &SEv)) && 0 <= (R = snd_seq_drain_output (seq))) { bytes_written += nwritten; totwritten += nwritten; if (output_parser) { output_parser->raw_preparse (*output_parser, msg, nwritten, get_current_host_time()); for (int i = 0; i < nwritten; i++) { output_parser->scanner (msg[i]); } output_parser->raw_postparse (*output_parser, msg, nwritten); } } else { TR_VAL(R); return R; } msglen -= nwritten; msg += nwritten; if (msglen > 0) { nwritten = snd_midi_event_encode (encoder, msg, msglen, &SEv); TR_VAL(nwritten); } else { break; } } return totwritten; } int ALSA_SequencerMidiPort::read (byte *buf, size_t max) { TR_FN(); int err; snd_seq_event_t *ev; if (0 <= (err = snd_seq_event_input (seq, &ev))) { TR_VAL(err); err = snd_midi_event_decode (decoder, buf, max, ev); } if (err > 0) { bytes_read += err; if (input_parser) { input_parser->raw_preparse (*input_parser, buf, err, get_current_host_time()); for (int i = 0; i < err; i++) { input_parser->scanner (buf[i]); } input_parser->raw_postparse (*input_parser, buf, err); } } return -ENOENT == err ? 0 : err; } int ALSA_SequencerMidiPort::CreatePorts (PortRequest &req) { int err; if (0 <= (err = snd_seq_open(&seq, "default", SND_SEQ_OPEN_DUPLEX, (req.mode & O_NONBLOCK) ? SND_SEQ_NONBLOCK : 0))) { snd_seq_set_client_name (seq, req.devname); unsigned int caps = 0; if (req.mode == O_WRONLY || req.mode == O_RDWR) caps |= SND_SEQ_PORT_CAP_WRITE | SND_SEQ_PORT_CAP_SUBS_WRITE; if (req.mode == O_RDONLY || req.mode == O_RDWR) caps |= SND_SEQ_PORT_CAP_READ | SND_SEQ_PORT_CAP_SUBS_READ; err = snd_seq_create_simple_port (seq, req.tagname, caps, SND_SEQ_PORT_TYPE_MIDI_GENERIC); if (err >= 0) { port_id = err; snd_seq_ev_clear (&SEv); snd_seq_ev_set_source (&SEv, port_id); snd_seq_ev_set_subs (&SEv); snd_seq_ev_set_direct (&SEv); } else snd_seq_close (seq); } return err; } timestamp_t ALSA_SequencerMidiPort::get_current_host_time() { struct timeval tv; gettimeofday(&tv, NULL); return (timestamp_t)(tv.tv_usec * 1e-6) + (timestamp_t)(tv.tv_sec); } sooperlooper-1.7.3~dfsg0/libs/midi++/midiport.cc0000644000175000017500000000461611754453700020212 0ustar miramira/* Copyright (C) 1998 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include #include #include using namespace Select; using namespace MIDI; size_t Port::nports = 0; Port::Port (PortRequest &req) { _ok = false; /* derived class must set to true if constructor succeeds. */ bytes_written = 0; bytes_read = 0; input_parser = 0; output_parser = 0; slowdown = 0; _devname = req.devname; _tagname = req.tagname; _mode = req.mode; _number = nports++; if (_mode == O_RDONLY || _mode == O_RDWR) { input_parser = new Parser (*this); } else { input_parser = 0; } if (_mode == O_WRONLY || _mode == O_RDWR) { output_parser = new Parser (*this); } else { output_parser = 0; } for (int i = 0; i < 16; i++) { _channel[i] = new Channel (i, *this); if (input_parser) { _channel[i]->connect_input_signals (); } if (output_parser) { _channel[i]->connect_output_signals (); } } } Port::~Port () { for (int i = 0; i < 16; i++) { delete _channel[i]; } } int Port::clock () { static byte clockmsg = 0xf8; if (_mode != O_RDONLY) { return midimsg (&clockmsg, 1); } return 0; } void Port::selector_read_callback (Selectable *s, Select::Condition cond) { byte buf[64]; read (buf, sizeof (buf)); } void Port::xforms_read_callback (int cond, int fd, void *ptr) { byte buf[64]; ((Port *)ptr)->read (buf, sizeof (buf)); } void Port::gtk_read_callback (void *ptr, int fd, int cond) { byte buf[64]; ((Port *)ptr)->read (buf, sizeof (buf)); } void Port::write_callback (byte *msg, unsigned int len, void *ptr) { ((Port *)ptr)->write (msg, len); } sooperlooper-1.7.3~dfsg0/libs/midi++/mtc.cc0000644000175000017500000001651312230252703017133 0ustar miramira/* Copyright (C) 2004 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace sigc; using namespace MIDI; bool Parser::possible_mtc (byte *sysex_buf, size_t msglen) { byte fake_mtc_time[4]; if (msglen != 10 || sysex_buf[0] != 0xf0 || sysex_buf[1] != 0x7f || sysex_buf[3] != 0x01 || sysex_buf[4] != 0x01) { return false; } /* full MTC */ fake_mtc_time[0] = sysex_buf[8]; // frames fake_mtc_time[1] = sysex_buf[7]; // minutes fake_mtc_time[2] = sysex_buf[6]; // seconds fake_mtc_time[3] = (sysex_buf[5] & 0x1f); // hours _mtc_fps = MTC_FPS ((sysex_buf[5] & 0x60) >> 5); // fps /* wait for first quarter frame, which could indicate forwards or backwards ... */ reset_mtc_state (); /* emit signals */ mtc (*this, &sysex_buf[1], msglen - 1); mtc_time (fake_mtc_time, true); mtc_status (MTC_Stopped); return true; } void Parser::reset_mtc_state () { _mtc_forward = false; _mtc_running = MTC_Stopped; _mtc_locked = false; expected_mtc_quarter_frame_code = 0; memset (_mtc_time, 0, sizeof (_mtc_time)); memset (_qtr_mtc_time, 0, sizeof (_mtc_time)); consecutive_qtr_frame_cnt = 0; last_qtr_frame = 0; } void Parser::process_mtc_quarter_frame (byte *msg) { int which_quarter_frame = (msg[1] & 0xf0) >> 4; /* Is it an expected frame? Remember, the first can be frame 7 or frame 0, depending on the direction of the MTC generator ... */ #if 0 cerr << "MTC: (state = " << _mtc_running << ") " << which_quarter_frame << " vs. " << expected_mtc_quarter_frame_code << " consecutive ? " << consecutive_qtr_frame_cnt << endl; #endif if (_mtc_running == MTC_Stopped) { /* we are stopped but are seeing qtr frame messages */ if (consecutive_qtr_frame_cnt == 0) { /* first quarter frame */ if (which_quarter_frame != 0 && which_quarter_frame != 7) { last_qtr_frame = which_quarter_frame; consecutive_qtr_frame_cnt++; } // cerr << "first seen qframe = " << (int) last_qtr_frame << endl; return; } else if (consecutive_qtr_frame_cnt == 1) { /* third quarter frame */ // cerr << "second seen qframe = " << (int) which_quarter_frame << endl; if (last_qtr_frame < which_quarter_frame) { _mtc_running = MTC_Forward; } else if (last_qtr_frame > which_quarter_frame) { _mtc_running = MTC_Backward; } mtc_status (_mtc_running); } switch (_mtc_running) { case MTC_Forward: if (which_quarter_frame == 7) { expected_mtc_quarter_frame_code = 0; } else { expected_mtc_quarter_frame_code = which_quarter_frame + 1; } break; case MTC_Backward: if (which_quarter_frame == 0) { expected_mtc_quarter_frame_code = 7; } else { expected_mtc_quarter_frame_code = which_quarter_frame - 1; } break; case MTC_Stopped: break; } } else { /* already running */ // for testing bad MIDI connections etc. // if ((random() % 500) < 10) { if (which_quarter_frame != expected_mtc_quarter_frame_code) { consecutive_qtr_frame_cnt = 0; #ifdef DEBUG_MTC cerr << "MTC: (state = " << _mtc_running << ") " << which_quarter_frame << " vs. " << expected_mtc_quarter_frame_code << endl; #endif /* tell listener(s) that we skipped. if they return true, just ignore this in terms of it being an error. */ if (1) { /* mtc_skipped ()) */ /* no error, reset next expected frame */ switch (_mtc_running) { case MTC_Forward: if (which_quarter_frame == 7) { expected_mtc_quarter_frame_code = 0; } else { expected_mtc_quarter_frame_code = which_quarter_frame + 1; } break; case MTC_Backward: if (which_quarter_frame == 0) { expected_mtc_quarter_frame_code = 7; } else { expected_mtc_quarter_frame_code = which_quarter_frame - 1; } break; case MTC_Stopped: break; } #ifdef DEBUG_MTC cerr << "SKIPPED, next expected = " << expected_mtc_quarter_frame_code << endl; #endif return; } /* go back to waiting for the first frame */ expected_mtc_quarter_frame_code = 0; memset (_qtr_mtc_time, 0, sizeof (_qtr_mtc_time)); _mtc_running = MTC_Stopped; _mtc_locked = false; mtc_status (MTC_Stopped); return; } else { /* received qtr frame matched expected */ consecutive_qtr_frame_cnt++; } } /* time code is looking good */ switch (which_quarter_frame) { case 0: // frames LS nibble _qtr_mtc_time[0] |= msg[1] & 0xf; break; case 1: // frames MS nibble _qtr_mtc_time[0] |= (msg[1] & 0xf)<<4; break; case 2: // seconds LS nibble _qtr_mtc_time[1] |= msg[1] & 0xf; break; case 3: // seconds MS nibble _qtr_mtc_time[1] |= (msg[1] & 0xf)<<4; break; case 4: // minutes LS nibble _qtr_mtc_time[2] |= msg[1] & 0xf; break; case 5: // minutes MS nibble _qtr_mtc_time[2] |= (msg[1] & 0xf)<<4; break; case 6: // hours LS nibble _qtr_mtc_time[3] |= msg[1] & 0xf; break; case 7: /* last quarter frame msg has the MS bit of the hour in bit 0, and the SMPTE FPS type in bits 5 and 6 */ _qtr_mtc_time[3] |= ((msg[1] & 0x1) << 4); _mtc_fps = MTC_FPS ((msg[1] & 0x6) >> 1); break; default: /*NOTREACHED*/ break; } // mtc (*this, &msg[1], msglen - 1); switch (_mtc_running) { case MTC_Forward: if ((which_quarter_frame == 7)) { /* we've reached the final of 8 quarter frame messages. store the time, reset the pending time holder, and signal anyone who wants to know the time. */ if (consecutive_qtr_frame_cnt >= 8) { memcpy (_mtc_time, _qtr_mtc_time, sizeof (_mtc_time)); memset (_qtr_mtc_time, 0, sizeof (_qtr_mtc_time)); if (!_mtc_locked) { _mtc_locked = true; } mtc_time (_mtc_time, false); } expected_mtc_quarter_frame_code = 0; } else { expected_mtc_quarter_frame_code = which_quarter_frame + 1; } break; case MTC_Backward: if (which_quarter_frame == 0) { /* we've reached the final of 8 quarter frame messages. store the time, reset the pending time holder, and signal anyone who wants to know the time. */ if (consecutive_qtr_frame_cnt >= 8) { memcpy (_mtc_time, _qtr_mtc_time, sizeof (_mtc_time)); memset (_qtr_mtc_time, 0, sizeof (_qtr_mtc_time)); if (!_mtc_locked) { _mtc_locked = true; } mtc_time (_mtc_time, false); } expected_mtc_quarter_frame_code = 7; } else { expected_mtc_quarter_frame_code = which_quarter_frame - 1; } break; default: break; } } sooperlooper-1.7.3~dfsg0/libs/midi++/autogen.sh0000755000175000017500000000012611754453700020045 0ustar miramira#!/bin/sh aclocal $ACLOCAL_FLAGS && autoheader && automake --add-missing && autoconf sooperlooper-1.7.3~dfsg0/libs/midi++/midiparser.cc0000644000175000017500000003503212230252703020504 0ustar miramira/* Copyright (C) 1998 Paul Barton-Davis This file was inspired by the MIDI parser for KeyKit by Tim Thompson. This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace sigc; using namespace MIDI; const char * Parser::midi_event_type_name (eventType t) { switch (t) { case none: return "no midi messages"; case raw: return "raw midi data"; case MIDI::any: return "any midi message"; case off: return "note off"; case on: return "note on"; case polypress: return "aftertouch"; case MIDI::controller: return "controller"; case program: return "program change"; case chanpress: return "channel pressure"; case MIDI::pitchbend: return "pitch bend"; case MIDI::sysex: return "system exclusive"; case MIDI::song: return "song position"; case MIDI::tune: return "tune"; case MIDI::eox: return "end of sysex"; case MIDI::timing: return "timing"; case MIDI::start: return "start"; case MIDI::stop: return "continue"; case MIDI::contineu: return "stop"; case active: return "active sense"; default: return "unknow MIDI event type"; } }; Parser::Parser (Port &p) : _port (p) { trace_stream = 0; trace_prefix = ""; memset (message_counter, 0, sizeof (message_counter[0]) * 256); msgindex = 0; msgtype = none; msglen = 256; msgbuf = (unsigned char *) malloc (msglen); msgbuf[msgindex++] = 0x90; _mmc_forward = false; reset_mtc_state (); raw_preparse.connect(mem_fun(*this, &Parser::handle_preparse)); /* this hack deals with the possibility of our first MIDI bytes being running status messages. */ channel_msg (0x90); state = NEEDSTATUS; } Parser::~Parser () { delete msgbuf; } void Parser::handle_preparse(Parser & p, byte * buf, size_t len, timestamp_t ts) { // just update timestamp _timestamp = ts; } void Parser::trace_event (Parser &p, byte *msg, size_t len, timestamp_t ts) { eventType type; ostream *o; if ((o = trace_stream) == NULL) { /* can be asynchronously removed */ return; } type = (eventType) (msg[0]&0xF0); switch (type) { case off: *o << trace_prefix << "Channel " << (msg[0]&0xF)+1 << " NoteOff NoteNum " << (int) msg[1] << " Vel " << (int) msg[2] << endmsg; break; case on: *o << trace_prefix << "Channel " << (msg[0]&0xF)+1 << " NoteOn NoteNum " << (int) msg[1] << " Vel " << (int) msg[2] << endmsg; break; case polypress: *o << trace_prefix << "Channel " << (msg[0]&0xF)+1 << " PolyPressure" << (int) msg[1] << endmsg; break; case MIDI::controller: *o << trace_prefix << "Channel " << (msg[0]&0xF)+1 << " Controller " << (int) msg[1] << " Value " << (int) msg[2] << endmsg; break; case program: *o << trace_prefix << "Channel " << (msg[0]&0xF)+1 << " Program Change ProgNum " << (int) msg[1] << endmsg; break; case chanpress: *o << trace_prefix << "Channel " << (msg[0]&0xF)+1 << " Channel Pressure " << (int) msg[1] << endmsg; break; case MIDI::pitchbend: *o << trace_prefix << "Channel " << (msg[0]&0xF)+1 << " Pitch Bend " << ((msg[2]<<7)|msg[1]) << endmsg; break; case MIDI::sysex: if (len == 1) { switch (msg[0]) { case 0xf8: *o << trace_prefix << "Clock" << endmsg; break; case 0xfa: *o << trace_prefix << "Start" << endmsg; break; case 0xfb: *o << trace_prefix << "Continue" << endmsg; break; case 0xfc: *o << trace_prefix << "Stop" << endmsg; break; case 0xfe: *o << trace_prefix << "Active Sense" << endmsg; break; case 0xff: *o << trace_prefix << "System Reset" << endmsg; break; default: *o << trace_prefix << "System Exclusive (1 byte : " << hex << (int) *msg << dec << ')' << endmsg; break; } } else { *o << trace_prefix << "System Exclusive (" << len << ") = [ " << hex; for (unsigned int i = 0; i < len; ++i) { *o << (int) msgbuf[i] << ' '; } *o << dec << ']' << endmsg; } break; case MIDI::song: *o << trace_prefix << "Song" << endmsg; break; case MIDI::tune: *o << trace_prefix << "Tune" << endmsg; break; case MIDI::eox: *o << trace_prefix << "End-of-System Exclusive" << endmsg; break; case MIDI::timing: *o << trace_prefix << "Timing" << endmsg; break; case MIDI::start: *o << trace_prefix << "Start" << endmsg; break; case MIDI::stop: *o << trace_prefix << "Stop" << endmsg; break; case MIDI::contineu: *o << trace_prefix << "Continue" << endmsg; break; case active: *o << trace_prefix << "Active Sense" << endmsg; break; default: *o << trace_prefix << "Unrecognized MIDI message" << endmsg; break; } } void Parser::trace (bool onoff, ostream *o, const string &prefix) { trace_connection.disconnect (); if (onoff) { trace_stream = o; trace_prefix = prefix; trace_connection = any.connect (mem_fun (*this, &Parser::trace_event)); } else { trace_prefix = ""; trace_stream = 0; } } void Parser::scanner (unsigned char inbyte) { bool statusbit; // cerr << "parse: " << hex << (int) inbyte << dec << endl; /* Check active sensing early, so it doesn't interrupt sysex. NOTE: active sense messages are not considered to fit under "any" for the purposes of callbacks. If a caller wants active sense messages handled, which is unlikely, then they can just ask for it specifically. They are so unlike every other MIDI message in terms of semantics that its counter-productive to treat them similarly. */ if (inbyte == 0xfe) { message_counter[inbyte]++; active_sense (*this); return; } /* If necessary, allocate larger message buffer. */ if (msgindex >= msglen) { msglen *= 2; msgbuf = (unsigned char *) realloc (msgbuf, msglen); } /* Real time messages can occur ANYPLACE, but do not interrupt running status. */ bool rtmsg = false; switch (inbyte) { case 0xf8: rtmsg = true; break; case 0xfa: rtmsg = true; break; case 0xfb: rtmsg = true; break; case 0xfc: rtmsg = true; break; case 0xfd: rtmsg = true; break; case 0xfe: rtmsg = true; break; case 0xff: rtmsg = true; break; } if (rtmsg) { if (edit (&inbyte, 1) >= 0) { realtime_msg (inbyte); } return; } statusbit = (inbyte & 0x80); /* * Variable length messages (ie. the 'system exclusive') * can be terminated by the next status byte, not necessarily * an EOX. Actually, since EOX is a status byte, this * code ALWAYS handles the end of a VARIABLELENGTH message. */ if (state == VARIABLELENGTH && statusbit) { /* The message has ended, so process it */ /* add EOX to any sysex message */ if (inbyte == MIDI::eox) { msgbuf[msgindex++] = inbyte; } #if 0 cerr << "SYSEX: " << hex; for (unsigned int i = 0; i < msgindex; ++i) { cerr << (int) msgbuf[i] << ' '; } cerr << dec << endl; #endif if (msgindex > 0 && edit (msgbuf, msgindex) >= 0) { if (!possible_mmc (msgbuf, msgindex) || _mmc_forward) { if (!possible_mtc (msgbuf, msgindex) || _mtc_forward) { sysex (*this, msgbuf, msgindex); } } any (*this, msgbuf, (size_t)msgindex, _timestamp); } state = NEEDSTATUS; } /* * Status bytes always start a new message, except EOX */ if (statusbit) { msgindex = 0; if (inbyte != MIDI::eox) { msgbuf[msgindex++] = inbyte; if ((inbyte & 0xf0) == 0xf0) { system_msg (inbyte); runnable = false; } else { channel_msg (inbyte); } } else { state = NEEDSTATUS; runnable = false; } return; } /* * We've got a Data byte. */ msgbuf[msgindex++] = inbyte; switch (state) { case NEEDSTATUS: /* * We shouldn't get here, since in NEEDSTATUS mode * we're expecting a new status byte, NOT any * data bytes. On the other hand, some equipment * with leaky modwheels and the like might be * sending data bytes as part of running controller * messages, so just handle it silently. */ break; case NEEDTWOBYTES: /* wait for the second byte */ if (msgindex < 3) return; /*FALLTHRU*/ case NEEDONEBYTE: /* We've completed a 1 or 2 byte message. */ if (edit (msgbuf, msgindex) == 0) { /* message not cancelled by an editor */ message_counter[msgbuf[0] & 0xF0]++; signal (msgbuf, msgindex); } if (runnable) { /* In Runnable mode, we reset the message */ /* index, but keep the callbacks_pending and state the */ /* same. This provides the "running status */ /* byte" feature. */ msgindex = 1; } else { /* If not Runnable, reset to NEEDSTATUS mode */ state = NEEDSTATUS; } break; case VARIABLELENGTH: /* nothing to do */ break; } return; } /* * realtime_msg(inbyte) * * Call the real-time function for the specified byte, immediately. * These can occur anywhere, so they don't change the state. */ void Parser::realtime_msg(unsigned char inbyte) { message_counter[inbyte]++; switch (inbyte) { case 0xf8: timing (*this); break; case 0xfa: start (*this); break; case 0xfb: contineu (*this); break; case 0xfc: stop (*this); break; case 0xfe: /* !!! active sense message in realtime_msg: should not reach here */ break; case 0xff: reset (*this); break; } any (*this, &inbyte, 1, _timestamp); } /* * channel_msg(inbyte) * * Interpret a Channel (voice or mode) Message status byte. */ void Parser::channel_msg(unsigned char inbyte) { runnable = true; /* Channel messages can use running status */ /* The high 4 bits, which determine the type of channel message. */ switch (inbyte&0xF0) { case 0x80: msgtype = off; state = NEEDTWOBYTES; break; case 0x90: msgtype = on; state = NEEDTWOBYTES; break; case 0xa0: msgtype = polypress; state = NEEDTWOBYTES; break; case 0xb0: msgtype = MIDI::controller; state = NEEDTWOBYTES; break; case 0xc0: msgtype = program; state = NEEDONEBYTE; break; case 0xd0: msgtype = chanpress; state = NEEDONEBYTE; break; case 0xe0: msgtype = MIDI::pitchbend; state = NEEDTWOBYTES; break; } } /* * system_msg(inbyte) * * Initialize (and possibly emit) the signals for the * specified byte. Set the state that the state-machine * should go into. If the signal is not emitted * immediately, it will be when the state machine gets to * the end of the MIDI message. */ void Parser::system_msg (unsigned char inbyte) { message_counter[inbyte]++; switch (inbyte) { case 0xf0: msgtype = MIDI::sysex; state = VARIABLELENGTH; break; case 0xf1: msgtype = MIDI::mtc_quarter; state = NEEDONEBYTE; break; case 0xf2: msgtype = MIDI::position; state = NEEDTWOBYTES; break; case 0xf3: msgtype = MIDI::song; state = NEEDONEBYTE; break; case 0xf6: tune (*this); state = NEEDSTATUS; break; case 0xf7: break; } // all these messages will be sent via any() // when they are complete. // any (*this, &inbyte, 1); } void Parser::signal (byte *msg, size_t len) { channel_t chan = msg[0]&0xF; int chan_i = chan; switch (msgtype) { case none: break; case off: channel_active_preparse[chan_i] (*this); note_off (*this, (EventTwoBytes *) &msg[1]); channel_note_off[chan_i] (*this, (EventTwoBytes *) &msg[1]); channel_active_postparse[chan_i] (*this); break; case on: channel_active_preparse[chan_i] (*this); /* Hack to deal with MIDI sources that use velocity=0 instead of noteOff. */ if (msg[2] == 0) { note_off (*this, (EventTwoBytes *) &msg[1]); channel_note_off[chan_i] (*this, (EventTwoBytes *) &msg[1]); } else { note_on (*this, (EventTwoBytes *) &msg[1]); channel_note_on[chan_i] (*this, (EventTwoBytes *) &msg[1]); } channel_active_postparse[chan_i] (*this); break; case MIDI::controller: channel_active_preparse[chan_i] (*this); controller (*this, (EventTwoBytes *) &msg[1]); channel_controller[chan_i] (*this, (EventTwoBytes *) &msg[1]); channel_active_postparse[chan_i] (*this); break; case program: channel_active_preparse[chan_i] (*this); program_change (*this, msg[1]); channel_program_change[chan_i] (*this, msg[1]); channel_active_postparse[chan_i] (*this); break; case chanpress: channel_active_preparse[chan_i] (*this); pressure (*this, msg[1]); channel_pressure[chan_i] (*this, msg[1]); channel_active_postparse[chan_i] (*this); break; case polypress: channel_active_preparse[chan_i] (*this); poly_pressure (*this, (EventTwoBytes *) &msg[1]); channel_poly_pressure[chan_i] (*this, (EventTwoBytes *) &msg[1]); channel_active_postparse[chan_i] (*this); break; case MIDI::pitchbend: channel_active_preparse[chan_i] (*this); pitchbend (*this, (msg[2]<<7)|msg[1]); channel_pitchbend[chan_i] (*this, (msg[2]<<7)|msg[1]); channel_active_postparse[chan_i] (*this); break; case MIDI::sysex: sysex (*this, msg, len); break; case MIDI::mtc_quarter: process_mtc_quarter_frame (msg); mtc_quarter_frame (*this, *msg); break; case MIDI::position: position (*this, msg, len); break; case MIDI::song: song (*this, msg, len); break; case MIDI::tune: tune (*this); default: /* XXX some kind of warning ? */ break; } any (*this, msg, len, _timestamp); } bool Parser::possible_mmc (byte *msg, size_t msglen) { if (!MachineControl::is_mmc (msg, msglen)) { return false; } /* hand over the just the interior MMC part of the sysex msg without the leading 0xF0 */ mmc (*this, &msg[1], msglen - 1); return true; } sooperlooper-1.7.3~dfsg0/libs/midi++/install-sh0000755000175000017500000003253712115444525020060 0ustar miramira#!/bin/sh # install - install a program, script, or datafile scriptversion=2009-04-28.21; # UTC # 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. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false 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: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -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. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg done fi if test $# -eq 0; 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 if test -z "$dir_arg"; then trap '(exit $?); exit' 1 2 13 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names starting with `-'. case $src in -*) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? 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 "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # 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: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; -*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test -z "$d" && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # 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 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $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 $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 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. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: sooperlooper-1.7.3~dfsg0/libs/midi++/depcomp0000755000175000017500000004426712115444525017434 0ustar miramira#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free # Software Foundation, Inc. # This program 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, 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, see . # 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 Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u="sed s,\\\\\\\\,/,g" depmode=msvisualcpp fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: sooperlooper-1.7.3~dfsg0/libs/aclocal.m40000644000175000017500000005275212143571225016644 0ustar miramira# generated automatically by aclocal 1.11 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009 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. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, [m4_warning([this file was generated for autoconf 2.68. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 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. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.11], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 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. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 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. # serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005, 2008 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. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 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. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # 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. # serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 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. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008 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. # serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # 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. # serial 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 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. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006, 2008 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. # serial 2 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 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. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR sooperlooper-1.7.3~dfsg0/libs/configure.ac0000644000175000017500000000022111754453700017256 0ustar miramiraexport ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" AC_INIT(pbd) AM_INIT_AUTOMAKE(sllibs,0,nopackage) AC_CONFIG_SUBDIRS(pbd midi++) AC_OUTPUT(Makefile) sooperlooper-1.7.3~dfsg0/libs/configure0000755000175000017500000031222712143571226016710 0ustar miramira#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.68. # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 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 # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (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 # 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. as_myself= 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 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="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_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error 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 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi 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'` # 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_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # 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; as_fn_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 } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac 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='mkdir -p "$as_dir"' 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'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/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= # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= PACKAGE_URL= ac_unique_file="pbd" enable_option_checking=no ac_subst_vars='LTLIBOBJS LIBOBJS subdirs am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM 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_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking ' ac_precious_vars='build_alias host_alias target_alias' ac_subdirs_all='pbd midi++' # 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}' 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= ;; *) 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_fn_error $? "invalid feature name: $ac_useropt" 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_fn_error $? "invalid feature name: $ac_useropt" 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 ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used" >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.11' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=sllibs VERSION=0 # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' subdirs="$subdirs pbd midi++" ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' :mline /\\$/{ N s,\\\n,, b mline } t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g t quote s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g t quote b any :quote s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g s/\[/\\&/g s/\]/\\&/g s/\$/$$/g H :any ${ g s/^\n// s/\n/ /g p } ' DEFS=`sed -n "$ac_script" confdefs.h` ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## 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 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 # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (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 # 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. as_myself= 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 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith 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 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi 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'` # 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 ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac 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 # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' 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 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE Configuration files: $config_files Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" Copyright (C) 2010 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" eval set X " :F $CONFIG_FILES " shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi # # CONFIG_SUBDIRS section. # if test "$no_recursion" != yes; then # Remove --cache-file, --srcdir, and --disable-option-checking arguments # so they do not pile up. ac_sub_configure_args= ac_prev= eval "set x $ac_configure_args" shift for ac_arg do if test -n "$ac_prev"; then ac_prev= continue fi case $ac_arg in -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=*) ;; --config-cache | -C) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; --disable-option-checking) ;; *) case $ac_arg in *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_sub_configure_args " '$ac_arg'" ;; esac done # Always prepend --prefix to ensure using the same prefix # in subdir configurations. ac_arg="--prefix=$prefix" case $ac_arg in *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" # Pass --silent if test "$silent" = yes; then ac_sub_configure_args="--silent $ac_sub_configure_args" fi # Always prepend --disable-option-checking to silence warnings, since # different subdirs can have different --enable and --with options. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" ac_popdir=`pwd` for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. test -d "$srcdir/$ac_dir" || continue ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 $as_echo "$ac_msg" >&6 as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" # Check for guested configure; otherwise get Cygnus style configure. if test -f "$ac_srcdir/configure.gnu"; then ac_sub_configure=$ac_srcdir/configure.gnu elif test -f "$ac_srcdir/configure"; then ac_sub_configure=$ac_srcdir/configure elif test -f "$ac_srcdir/configure.in"; then # This should be Cygnus configure. ac_sub_configure=$ac_aux_dir/configure else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_configure= fi # The recursion is here. if test -n "$ac_sub_configure"; then # Make the cache file name correct relative to the subdirectory. case $cache_file in [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; *) # Relative name. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 fi cd "$ac_popdir" done fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi sooperlooper-1.7.3~dfsg0/libs/Makefile.am0000644000175000017500000000035011754453700017027 0ustar miramiraMAINTAINERCLEANFILES = autom4te.cache Makefile.in configure aclocal.m4 \ config.guess config.sub \ mkinstalldirs missing install-sh ltconfig \ config.log config.status depcomp SUBDIRS = @subdirs@ EXTRA_DIST = autogen.sh sooperlooper-1.7.3~dfsg0/libs/autogen.sh0000644000175000017500000000012211754453700016766 0ustar miramira#!/bin/sh aclocal $ACLOCAL_FLAGS && automake --add-missing --foreign && autoconf sooperlooper-1.7.3~dfsg0/libs/pbd/0000755000175000017500000000000012442352710015534 5ustar miramirasooperlooper-1.7.3~dfsg0/libs/pbd/Makefile.in0000644000175000017500000006377612442352507017630 0ustar miramira# Makefile.in generated by automake 1.11 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/version.cc.in $(top_srcdir)/configure AUTHORS \ COPYING ChangeLog INSTALL NEWS config.guess config.sub depcomp \ install-sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = version.cc CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) AR = ar ARFLAGS = cru libpbd_a_AR = $(AR) $(ARFLAGS) libpbd_a_LIBADD = am_libpbd_a_OBJECTS = basename.$(OBJEXT) dirname.$(OBJEXT) \ dmalloc.$(OBJEXT) ftw.$(OBJEXT) mountpoint.$(OBJEXT) \ pathscanner.$(OBJEXT) pool.$(OBJEXT) pthread_utils.$(OBJEXT) \ receiver.$(OBJEXT) textreceiver.$(OBJEXT) \ transmitter.$(OBJEXT) undo.$(OBJEXT) unescape.$(OBJEXT) \ version.$(OBJEXT) xml++.$(OBJEXT) libpbd_a_OBJECTS = $(am_libpbd_a_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ SOURCES = $(libpbd_a_SOURCES) DIST_SOURCES = $(libpbd_a_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d "$(distdir)" \ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr "$(distdir)"; }; } am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ACLOCAL_FLAGS = @ACLOCAL_FLAGS@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBPBD_MAJOR_VERSION = @LIBPBD_MAJOR_VERSION@ LIBPBD_MICRO_VERSION = @LIBPBD_MICRO_VERSION@ LIBPBD_MINOR_VERSION = @LIBPBD_MINOR_VERSION@ LIBPBD_RELEASE = @LIBPBD_RELEASE@ LIBPBD_SO_VERSION = @LIBPBD_SO_VERSION@ LIBPBD_VERSION = @LIBPBD_VERSION@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIGCPP_CFLAGS = @SIGCPP_CFLAGS@ SIGCPP_LIBS = @SIGCPP_LIBS@ STRIP = @STRIP@ VERSION = @VERSION@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MAINTAINERCLEANFILES = autom4te.cache Makefile.in aclocal.m4 configure SUBDIRS = pbd noinst_LIBRARIES = libpbd.a libpbd_a_SOURCES = \ basename.cc \ dirname.cc \ dmalloc.cc \ ftw.cc \ mountpoint.cc \ pathscanner.cc \ pool.cc \ pthread_utils.cc \ receiver.cc \ textreceiver.cc \ transmitter.cc \ undo.cc \ unescape.cc \ version.cc \ xml++.cc EXTRA_DIST = libpbd.spec.in \ libpbd.pc.in \ autogen.sh all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .cc .o .obj am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 version.cc: $(top_builddir)/config.status $(srcdir)/version.cc.in cd $(top_builddir) && $(SHELL) ./config.status $@ clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libpbd.a: $(libpbd_a_OBJECTS) $(libpbd_a_DEPENDENCIES) -rm -f libpbd.a $(libpbd_a_AR) libpbd.a $(libpbd_a_OBJECTS) $(libpbd_a_LIBADD) $(RANLIB) libpbd.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/basename.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dirname.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dmalloc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ftw.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mountpoint.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pathscanner.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pool.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pthread_utils.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/receiver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/textreceiver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/transmitter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/undo.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unescape.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xml++.Po@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(LIBRARIES) config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-noinstLIBRARIES ctags ctags-recursive dist dist-all \ dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ dist-xz \ dist-zip distcheck distclean distclean-compile \ distclean-generic distclean-hdr distclean-tags distcleancheck \ distdir distuninstallcheck dvi dvi-am html html-am info \ info-am install install-am install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am config.h.in stamp-h.in pbd-config libpbd.spec \ config.guess mkinstalldirs \ missing install-sh config.sub ltconfig \ ltmain.sh acinclude.m4 \ config.log config.status depcomp # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: sooperlooper-1.7.3~dfsg0/libs/pbd/libpbd.spec.in0000644000175000017500000000331211754453700020256 0ustar miramiraSummary: A general purpose programming library %define lib_name pbd Name: lib%{lib_name} Version: @VERSION@ Release: 2 Copyright: GPL Source: . Url: http://www.quasimodo.org Vendor: Paul Davis Packager: jfm3 Group: System Environment/Libraries Prefix: %{_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description This library implements a number of programming utilities used by Paul Davis (formerly Paul Barton-Davis, hence the name). It is used in some of his Open Source software projects. See http://ardour.sf.net/ for examples. %prep %setup -q %build CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure $ARCH_FLAGS --prefix=%{prefix} make %install rm -rf $RPM_BUILD_ROOT install -d -m 755 $RPM_BUILD_ROOT%{prefix}/{{include,lib}/%{lib_name}} make install INSTALL="%(which install) -p" prefix=$RPM_BUILD_ROOT%{prefix} %post /sbin/ldconfig %postun /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README AUTHORS NEWS COPYING* %{prefix}/lib/libpbd.so* %package devel Summary: A general purpose programming library -- developer version. Group: System Environment/Libraries %description devel This library implements a number of programming utilities used by Paul Davis (formerly Paul Barton-Davis, hence the name). It is used in some of his Open Source software projects. See http://ardour.sf.net/ for examples. This package holds static libraries and headers needed by developers who wish to use libpbd in their programs. %files devel %defattr(-,root,root) %{prefix}/include/pbd/* %{prefix}/lib/libpbd.a %{prefix}/lib/libpbd.la %{prefix}/bin/pbd-config %{prefix}/share/aclocal/pbd.m4 %{prefix}/share/aclocal/unique_args.m4 sooperlooper-1.7.3~dfsg0/libs/pbd/aclocal.m40000644000175000017500000012435412442352506017410 0ustar miramira# generated automatically by aclocal 1.11 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009 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. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, [m4_warning([this file was generated for autoconf 2.68. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # # Copyright © 2004 Scott James Remnant . # # This program 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. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 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. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.11], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 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. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # 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. # serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 # 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. # serial 10 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # 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. #serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 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. # serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005, 2008 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. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 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. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2009 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. # serial 4 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # 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. # serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 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. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008 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. # serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # 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. # serial 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 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. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006, 2008 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. # serial 2 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 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. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR AC_DEFUN([AM_BUILD_ENVIRONMENT],[ top_marker=top_marker depth=0 while test x$SOOPERLOOPER_TOP = x -a $depth -lt 255 ; do if test -f $top_marker ; then SOOPERLOOPER_TOP=`dirname $top_marker` else top_marker=../$top_marker fi depth=`expr $depth + 1` done if test $depth -eq 255 ; then AC_MSG_ERROR([ the top of the SooperLooper source tree was not found.]) fi dnl dnl convert to absolute path dnl SOOPERLOOPER_TOP=`cd $SOOPERLOOPER_TOP; pwd` export LIBDIRS="pbd midi++ " ACLOCAL_FLAGS="-I $SOOPERLOOPER_TOP/aclocal" ACLOCAL_AMFLAGS="-I $SOOPERLOOPER_TOP/aclocal `if test -d m4 ; then echo -I m4; fi`" AC_SUBST(ACLOCAL_FLAGS) AC_SUBST(ACLOCAL_AMFLAGS) BASE_LIBS="$SOOPERLOOPER_TOP/libs/midi++/libmidipp.a $SOOPERLOOPER_TOP/libs/pbd/libpbd.a" BASE_INCLUDES="-I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" CFLAGS="$CFLAGS -I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" CXXFLAGS="$CXXFLAGS -I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" #LIBS="$LIBS $SOOPERLOOPER_TOP/libs/midi++/libmidipp.a $SOOPERLOOPER_TOP/libs/pbd/libpbd.a" ]) AC_DEFUN([AM_OPT_FLAGS],[ dnl dnl figure out how best to optimize dnl gcc_major_version=4 os_system=Darwin if test "$target_cpu" = "powerpc"; then AC_DEFINE(POWERPC, 1, "Are we running a ppc CPU?") altivecLinux= if test "$?" = "0"; then AC_DEFINE(HAVE_ALTIVEC_LINUX, 1, "Is there Altivec Support ?") if test "$gcc_major_version" = "3"; then dnl -mcpu=7450 does not reliably work with gcc 3.* #OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -maltivec -mabi=altivec" OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -mtune=7450" else OPT_FLAGS="-D_REENTRANT -Os" fi else OPT_FLAGS="-D_REENTRANT -Os " fi OPT_FLAGS="$OPT_FLAGS -mhard-float -mpowerpc-gfxopt" elif echo $target_cpu | grep "i*86" >/dev/null; then if test "$os_system" = "Darwin"; then # pretty good assumption mmx="-mmmx" sse="-msse -mfpmath=sse" OPT_FLAGS="-D_REENTRANT -Os -fomit-frame-pointer $mmx $sse" else cat /proc/cpuinfo | grep mmx >/dev/null if test $? = 0; then mmx="-mmmx" fi cat /proc/cpuinfo | grep sse >/dev/null if test $? = 0; then sse="-msse -mfpmath=sse" fi cat /proc/cpuinfo | grep 3dnow >/dev/null if test $? = 0; then dreidnow="-m3dnow" fi AC_DEFINE(x86, 1, "Nope its intel") if test "$target_cpu" = "i586"; then OPT_FLAGS="-DREENTRANT -O2 -march=i586 -fomit-frame-pointer" elif test "$target_cpu" = "i686"; then OPT_FLAGS="-D_REENTRANT -O2 -march=i686 -fomit-frame-pointer" if test "$gcc_major_version" -ge "3"; then OPT_FLAGS="$OPT_FLAGS $mmx $sse $dreidnow" fi else OPT_FLAGS="-D_REENTRANT -O2 -fomit-frame-pointer" fi fi fi OPT_FLAGS="$OPT_FLAGS -pipe" # LARGEFILE_FLAGS="`getconf LFS_CFLAGS`" LARGEFILE_FLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" CXXFLAGS="-g -D_REENTRANT $LARGEFILE_FLAGS" if test x"$GXX" = xyes ; then CXXFLAGS="$CXXFLAGS -Wall" fi if test x"$GXX" = xyes ; then OPT_CXXFLAGS="$OPT_FLAGS -Wall $LARGEFILE_FLAGS" fi PROF_FLAGS="-pg" dnl dnl some link flags to try to speed linking dnl CXXFLAGS="$CXXFLAGS -fno-merge-constants" ]) sooperlooper-1.7.3~dfsg0/libs/pbd/config.sub0000755000175000017500000010224012115444525017521 0ustar miramira#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2009-04-17' # 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., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, 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 . 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 ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # 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 ;; * ) 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* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | 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 | -knuth | -cray) 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 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -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/'` ;; -sco5v6*) # 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] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) 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) ;; ms1) basic_machine=mt-unknown ;; # 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-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # 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 ;; abacus) basic_machine=abacus-unknown ;; 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 ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; 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 ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; 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 ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; 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 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; 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 ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; 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 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; 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 ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; 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 ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; 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 ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-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-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`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 ;; rdos) basic_machine=i386-pc os=-rdos ;; 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 ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; 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 ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; 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 ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: sooperlooper-1.7.3~dfsg0/libs/pbd/AUTHORS0000644000175000017500000000000011754453700016600 0ustar miramirasooperlooper-1.7.3~dfsg0/libs/pbd/COPYING0000644000175000017500000004311011754453700016574 0ustar miramira GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program 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 Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. sooperlooper-1.7.3~dfsg0/libs/pbd/config.guess0000755000175000017500000013226412115444525020067 0ustar miramira#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2009-04-27' # 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., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, 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 . # Please send patches to . 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 ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # 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. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; 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 ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 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 ;; sh5el) machine=sh5le-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 # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # 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 ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # 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. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; 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 ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (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 ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; 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 ;; 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 ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; 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 ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # 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 ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* 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 -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; 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 ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????: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 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; 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 ;; *: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 main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi 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 ;; *:AIX:*:[456]) 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 ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 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 #include 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 -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include 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 -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; 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 ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; 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 ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:[3456]*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T | authenticamd | genuineintel) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 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 i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; 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 | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; 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 ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; 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 ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; 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 ;; "") # 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 ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; 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 ;; 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 ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; 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 ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. 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 ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /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 ;; 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 i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; 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 ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /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: sooperlooper-1.7.3~dfsg0/libs/pbd/README0000644000175000017500000000000011754453700016410 0ustar miramirasooperlooper-1.7.3~dfsg0/libs/pbd/config.h.in0000644000175000017500000000632512442352633017571 0ustar miramira/* config.h.in. Generated from configure.ac by autoheader. */ /* "Is there Altivec Support ?" */ #undef HAVE_ALTIVEC_LINUX /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_DIRENT_H /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ #undef HAVE_DOPRNT /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `getmntent' function. */ #undef HAVE_GETMNTENT /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `pthread' library (-lpthread). */ #undef HAVE_LIBPTHREAD /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_NDIR_H /* Define to 1 if you have the `regcomp' function. */ #undef HAVE_REGCOMP /* Define to 1 if you have the `select' function. */ #undef HAVE_SELECT /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `strtol' function. */ #undef HAVE_STRTOL /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_SYS_DIR_H /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_SYS_NDIR_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the `vprintf' function. */ #undef HAVE_VPRINTF /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* "Are we running a ppc CPU?" */ #undef POWERPC /* Define as the return type of signal handlers (`int' or `void'). */ #undef RETSIGTYPE /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME /* Version number of package */ #undef VERSION /* Define to `long int' if does not define. */ #undef off_t /* Define to `int' if does not define. */ #undef pid_t /* "Nope its intel" */ #undef x86 sooperlooper-1.7.3~dfsg0/libs/pbd/missing0000755000175000017500000002623312115444525017144 0ustar miramira#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2009-04-28.21; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program 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, 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, see . # 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. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and \`g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; tar*) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar*) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac 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-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: sooperlooper-1.7.3~dfsg0/libs/pbd/pool.cc0000644000175000017500000000577311754453700017036 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include #include #include #include #include using namespace std; Pool::Pool (string n, unsigned long item_size, unsigned long nitems) { _name = n; free_list = new RingBuffer (nitems); /* since some overloaded ::operator new() might use this, its important that we use a "lower level" allocator to get more space. */ block = malloc (nitems * item_size); void **ptrlist = (void **) malloc (sizeof (void *) * nitems); for (unsigned long i = 0; i < nitems; i++) { ptrlist[i] = static_cast (static_cast(block) + (i * item_size)); } free_list->write (ptrlist, nitems); free (ptrlist); } Pool::~Pool () { free (block); } void * Pool::alloc () { void *ptr; // cerr << _name << " pool " << " alloc, thread = " << pthread_name() << " space = " << free_list->read_space() << endl; if (free_list->read (&ptr, 1) < 1) { fatal << "CRITICAL: " << _name << " POOL OUT OF MEMORY - RECOMPILE WITH LARGER SIZE!!" << endmsg; /*NOTREACHED*/ return 0; } else { return ptr; } }; void Pool::release (void *ptr) { free_list->write (&ptr, 1); // cerr << _name << ": release, now has " << free_list->read_space() << endl; } /*---------------------------------------------*/ MultiAllocSingleReleasePool::MultiAllocSingleReleasePool (string n, unsigned long isize, unsigned long nitems) : Pool (n, isize, nitems) { pthread_mutex_init (&lock, 0); } MultiAllocSingleReleasePool::~MultiAllocSingleReleasePool () { } SingleAllocMultiReleasePool::SingleAllocMultiReleasePool (string n, unsigned long isize, unsigned long nitems) : Pool (n, isize, nitems) { pthread_mutex_init (&lock, 0); } SingleAllocMultiReleasePool::~SingleAllocMultiReleasePool () { } void* MultiAllocSingleReleasePool::alloc () { void *ptr; pthread_mutex_lock (&lock); ptr = Pool::alloc (); pthread_mutex_unlock (&lock); return ptr; } void MultiAllocSingleReleasePool::release (void* ptr) { Pool::release (ptr); } void* SingleAllocMultiReleasePool::alloc () { return Pool::alloc (); } void SingleAllocMultiReleasePool::release (void* ptr) { pthread_mutex_lock (&lock); Pool::release (ptr); pthread_mutex_unlock (&lock); } sooperlooper-1.7.3~dfsg0/libs/pbd/mountpoint.cc0000644000175000017500000000426611754453700020275 0ustar miramira/* Copyright (C) 2002 Paul Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include #include "config.h" #include using std::string; #ifdef HAVE_GETMNTENT #include struct mntent_sorter { bool operator() (const mntent *a, const mntent *b) { return strcmp (a->mnt_dir, b->mnt_dir); } }; string mountpoint (string path) { FILE *mntf; mntent *mnt; unsigned int maxmatch = 0; unsigned int matchlen; const char *cpath = path.c_str(); char best[PATH_MAX+1]; if ((mntf = setmntent ("/etc/mtab", "r")) == 0) { return ""; } best[0] = '\0'; while ((mnt = getmntent (mntf))) { unsigned int n; n = 0; matchlen = 0; /* note: strcmp's semantics are not strict enough to use for this. */ while (cpath[n] && mnt->mnt_dir[n]) { if (cpath[n] != mnt->mnt_dir[n]) { break; } matchlen++; n++; } if (cpath[matchlen] == '\0') { endmntent (mntf); return mnt->mnt_dir; } else { if (matchlen > maxmatch) { snprintf (best, sizeof(best), "%s", mnt->mnt_dir); maxmatch = matchlen; } } } endmntent (mntf); return best; } #else // no getmntent() #include #include #include string mountpoint (string path) { //XXX IMPLEMENT ME using getmntinfo() or getfsstat(). return "/"; } #endif #ifdef TEST_MOUNTPOINT main (int argc, char *argv[]) { printf ("mp of %s = %s\n", argv[1], mountpoint (argv[1]).c_str()); exit (0); } #endif sooperlooper-1.7.3~dfsg0/libs/pbd/transmitter.cc0000644000175000017500000000426511754453700020434 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include #include using std::string; using std::ios; Transmitter::Transmitter (Channel c) { channel = c; switch (c) { case Error: send = &error; break; case Warning: send = &warning; break; case Info: send = &info; break; case Fatal: send = &fatal; break; case Throw: /* we should never call Transmitter::deliver for thrown messages (because its overridden in the class heirarchy). force a segv if we do. */ send = 0; break; } } void Transmitter::deliver () { string foo; /* NOTE: this is just a default action for a Transmitter or a derived class. Any class can override this to produce some other action when deliver() is called. */ *this << '\0'; /* send the SigC++ signal */ foo = str(); (*send) (channel, foo.c_str()); /* XXX when or how can we delete this ? */ // delete foo; /* return to a pristine state */ clear (); seekp (0, ios::beg); seekg (0, ios::beg); /* do the right thing if this should not return */ if (does_not_return()) { sigset_t mask; sigemptyset (&mask); sigsuspend (&mask); /*NOTREACHED*/ exit (1); } } bool Transmitter::does_not_return () { if (channel == Fatal || channel == Throw) { return true; } else { return false; } } extern "C" { void pbd_c_error (const char *str) { extern Transmitter error; error << str << endmsg; } } sooperlooper-1.7.3~dfsg0/libs/pbd/dirname.cc0000644000175000017500000000122111754453700017464 0ustar miramira#include #include #include #include #include char * PBD::dirname (const char *path) { const char *slash; size_t len; char *ret; if ((slash = strrchr (path, '/')) == 0) { return strdup (path); } if (*(slash+1) == '\0') { return strdup (""); } len = (size_t) (slash - path); ret = (char *) malloc (sizeof (char) * (len + 1)); snprintf (ret, len, "%*s", (int)len, path); return ret; } std::string PBD::dirname (const std::string str) { std::string::size_type slash = str.find_last_of ('/'); if (slash == std::string::npos) { return str; } return str.substr (0, slash); } sooperlooper-1.7.3~dfsg0/libs/pbd/configure.ac0000644000175000017500000001627512230252703020031 0ustar miramiradnl Process this file with autoconf to produce a configure script. AC_INIT(pbd) AC_CONFIG_AUX_DIR(.) AC_CANONICAL_HOST AC_CANONICAL_TARGET AC_VALIDATE_CACHED_SYSTEM_TUPLE() LIBPBD_MAJOR_VERSION=2 LIBPBD_MINOR_VERSION=6 LIBPBD_MICRO_VERSION=0 AC_SUBST(LIBPBD_MAJOR_VERSION) AC_SUBST(LIBPBD_MINOR_VERSION) AC_SUBST(LIBPBD_MICRO_VERSION) LIBPBD_VERSION=$LIBPBD_MAJOR_VERSION.$LIBPBD_MINOR_VERSION.${LIBPBD_MICRO_VERSION} LIBPBD_RELEASE=$LIBPBD_MAJOR_VERSION-$LIBPBD_MINOR_VERSION-${LIBPBD_MICRO_VERSION} AC_SUBST(LIBPBD_SO_VERSION) AC_SUBST(LIBPBD_VERSION) AC_SUBST(LIBPBD_RELEASE) AM_INIT_AUTOMAKE(libpbd,${LIBPBD_VERSION}) AC_CONFIG_HEADERS(config.h) dnl Checks for programs. AC_PROG_CC AC_PROG_CXX if test "$ac_cv_prog_cxx" = "no" ; then AC_MSG_ERROR([*** libpbd is C++. You don't appear to have a C++ compiler]) fi AM_OPT_FLAGS AC_ARG_ENABLE(optimize, [ --disable-optimize avoid optimizations to allow for gdb debugging.], [ if test "x$enable_optimize" != "xno" ; then CXXFLAGS="$OPT_CXXFLAGS" ; fi ], [ CXXFLAGS="$OPT_CXXFLAGS" ]) AC_ARG_ENABLE(profiling, [ --enable-profiling build for profiling using gprof.], [ if test "x$enable_profiling" = "xyes" ; then CXXFLAGS="$CXXFLAGS $PROF_FLAGS" ; fi ]) AC_OBJEXT AC_PROG_RANLIB AC_LANG_CPLUSPLUS AC_MSG_CHECKING([for --with-macosx-sdk]) AC_ARG_WITH(macosx-sdk, [ --with-macosx-sdk=PATH use an OS X SDK at PATH], [ wxUSE_MACOSX_SDK=$withval wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval" #echo "wxUSE_MACOSX_SDK=$wxUSE_MACOSX_SDK" >> ${wx_arg_cache_file}.tmp ], [ # NOTE: Empty string on purpose so that --without-macosx-sdk (thus no) # will override --enable-universal_binary's automatic SDK usage. wxUSE_MACOSX_SDK= #LINE=`grep "^wxUSE_MACOSX_SDK=" ${wx_arg_cache_file}` #if test "x$LINE" != x ; then # eval "$LINE" # echo "$LINE" >> ${wx_arg_cache_file}.tmp #fi ]) AC_MSG_RESULT([$wxUSE_MACOSX_SDK]) AC_MSG_CHECKING([for --with-macosx-version-min]) AC_ARG_WITH(macosx-version-min, [ --with-macosx-version-min=VER build binaries which require at least this OS X version], [ wxUSE_MACOSX_VERSION_MIN=$withval wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval" #echo "wxUSE_MACOSX_VERSION_MIN=$wxUSE_MACOSX_VERSION_MIN" >> ${wx_arg_cache_file}.tmp ], [ # default "yes" because when not using an SDK it means the same as no # but when using an SDK it means to use the SDK version wxUSE_MACOSX_VERSION_MIN=yes # See if there is a value in the cache #LINE=`grep "^wxUSE_MACOSX_VERSION_MIN=" ${wx_arg_cache_file}` #if test "x$LINE" != x ; then # eval "$LINE" # echo "$LINE" >> ${wx_arg_cache_file}.tmp #fi ]) AC_MSG_RESULT([$wxUSE_MACOSX_VERSION_MIN]) dnl Set up the Mac OS X SDK. We do this early so configure tests will occur dnl with the SDK in place. dnl NOTE: We clobber wxUSE_MACOSX_SDK with the SDK path if test "x$wxUSE_MACOSX_SDK" = "xno"; then wxUSE_MACOSX_SDK= elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then # TODO: Search for most recent SDK and use it. wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk" fi if test "x$wxUSE_MACOSX_SDK" != "x"; then AC_MSG_CHECKING([for SDK directory $wxUSE_MACOSX_SDK]) if ! test -d "$wxUSE_MACOSX_SDK"; then AC_MSG_FAILURE([not found]) else AC_MSG_RESULT([exists]) fi MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK" eval "CC=\"$CC $MACOSX_SDK_OPTS\"" eval "CXX=\"$CXX $MACOSX_SDK_OPTS\"" eval "LD=\"$LD $MACOSX_SDK_OPTS\"" retest_macosx_linking=yes dnl NOTE: When libtool is used in lieu of AR/RANLIB (i.e. in static mode) dnl the syslibroot makes no difference. We aren't using libtool now but dnl if we ever did, be aware that you don't need to worry about it. fi dnl Set up the deployment target dnl No : Don't specify a min version even if using an SDK dnl Yes : Use the version from the SDK if used, otherwise same as no dnl Param: Use the specified version if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then wxUSE_MACOSX_VERSION_MIN= elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then if test "x$wxUSE_MACOSX_SDK" != "x"; then AC_MSG_CHECKING([SDK deployment version]) dnl We need to quote the next line where we don't need macros and do need [] in the regex [ MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" buildSettings | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` ] # If that failed, try again with the new key if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then [ MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` ] fi if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN AC_MSG_RESULT([$wxUSE_MACOSX_VERSION_MIN]) else AC_MSG_WARN([Could not determine deployment target from SDKSettings.plist]) wxUSE_MACOSX_VERSION_MIN= fi else wxUSE_MACOSX_VERSION_MIN= fi fi if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN" eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\"" eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\"" eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\"" retest_macosx_linking=yes fi dnl If either an SDK or a version option was added, make sure that we can dnl still compile and link both C and C++. If we didn't do this, then most dnl of the remaining tests would fail. if test "x$retest_macosx_linking" = "xyes"; then AC_LANG_PUSH(C) AC_MSG_CHECKING([if C compiler works with SDK/version options]) AC_TRY_LINK([],[],[AC_MSG_RESULT([yes])],[AC_MSG_FAILURE([no. Try a different SDK]); exit 1]) AC_LANG_POP() AC_LANG_PUSH(C++) AC_MSG_CHECKING([if C++ compiler works with SDK/version options]) AC_TRY_LINK([],[],[AC_MSG_RESULT([yes])],[AC_MSG_FAILURE([no. Try a different SDK]); exit 1]) AC_LANG_POP() fi dnl Checks for libraries. dnl Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h) dnl Checks for typedefs, structures, and compiler characteristics. dnl AC_C_CONST AC_TYPE_OFF_T AC_TYPE_PID_T dnl AC_TYPE_SIZE_T AC_HEADER_TIME dnl Checks for library functions. AC_FUNC_MEMCMP AC_TYPE_SIGNAL AC_FUNC_VPRINTF AC_FUNC_GETMNTENT AC_CHECK_FUNCS(regcomp select strdup strerror strtol) AC_CHECK_LIB(pthread, pthread_create, ,[AC_MSG_ERROR([you have no POSIX thread support])]) PKG_CHECK_MODULES(XML, libxml-2.0 >= 2.5) dnl sigc++ PKG_CHECK_MODULES(SIGCPP, sigc++-2.0 >= 2.2.10) AM_BUILD_ENVIRONMENT CFLAGS="$CFLAGS $XML_CFLAGS $SIGCPP_CFLAGS" CXXFLAGS="$CXXFLAGS $XML_CFLAGS $SIGCPP_CFLAGS" LIBS="$LIBS $XML_LIBS $SIGCPP_LIBS" AC_OUTPUT([Makefile version.cc pbd/Makefile ]) sooperlooper-1.7.3~dfsg0/libs/pbd/pthread_utils.cc0000644000175000017500000000655112230252703020715 0ustar miramira/* Copyright (C) 2002 Paul Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include using std::string; using std::cerr; using std::endl; typedef std::map ThreadMap; static ThreadMap all_threads; static pthread_mutex_t thread_map_lock = PTHREAD_MUTEX_INITIALIZER; namespace PBD { sigc::signal1 ThreadCreated; } using namespace PBD; int pthread_create_and_store (string name, pthread_t *thread, pthread_attr_t *attr, void * (*start_routine)(void *), void * arg) { int ret; if ((ret = pthread_create (thread, attr, start_routine, arg)) == 0) { std::pair newpair; newpair.first = name; newpair.second = *thread; pthread_mutex_lock (&thread_map_lock); all_threads.insert (newpair); pthread_mutex_unlock (&thread_map_lock); } return ret; } string pthread_name () { pthread_t self = pthread_self(); string str; pthread_mutex_lock (&thread_map_lock); for (ThreadMap::iterator i = all_threads.begin(); i != all_threads.end(); ++i) { if (i->second == self) { str = i->first; pthread_mutex_unlock (&thread_map_lock); return str; } } pthread_mutex_unlock (&thread_map_lock); return "unknown"; } void pthread_kill_all (int signum) { pthread_mutex_lock (&thread_map_lock); for (ThreadMap::iterator i = all_threads.begin(); i != all_threads.end(); ++i) { if (i->second != pthread_self()) { cerr << "killing " << i->first << " thread" << endl; pthread_kill (i->second, signum); } } all_threads.clear(); pthread_mutex_unlock (&thread_map_lock); } void pthread_cancel_all () { pthread_mutex_lock (&thread_map_lock); for (ThreadMap::iterator i = all_threads.begin(); i != all_threads.end(); ++i) { if (i->second != pthread_self()) { cerr << "stopping " << i->first << " thread" << endl; pthread_cancel (i->second); } } all_threads.clear(); pthread_mutex_unlock (&thread_map_lock); } void pthread_cancel_one (pthread_t thread) { pthread_mutex_lock (&thread_map_lock); for (ThreadMap::iterator i = all_threads.begin(); i != all_threads.end(); ++i) { if (i->second == thread) { cerr << "stopping " << i->first << " thread" << endl; all_threads.erase (i); break; } } pthread_cancel (thread); pthread_mutex_unlock (&thread_map_lock); } void pthread_exit_pbd (void* status) { pthread_t thread = pthread_self(); pthread_mutex_lock (&thread_map_lock); for (ThreadMap::iterator i = all_threads.begin(); i != all_threads.end(); ++i) { if (i->second == thread) { cerr << "exiting from " << i->first << " thread" << endl; all_threads.erase (i); break; } } pthread_mutex_unlock (&thread_map_lock); pthread_exit (status); } sooperlooper-1.7.3~dfsg0/libs/pbd/NEWS0000644000175000017500000000000011754453700016227 0ustar miramirasooperlooper-1.7.3~dfsg0/libs/pbd/unescape.cc0000644000175000017500000000330211754453700017652 0ustar miramira#include #include void unescape (char *str) { char *p; bool escaped; long offset; char octal[4]; int noct; char hex[3]; int nhex; escaped = false; offset = 0; octal[3] = '\0'; hex[2] = '\0'; p = str; while (*p) { if (!escaped) { if (*p == '\\') { escaped = true; } else { *(p-offset) = *p; } p++; continue; } switch (*p) { case 'f': offset++; *(p-offset) = '\f'; break; case 'r': offset++; *(p-offset) = '\r'; break; case 'v': offset++; *(p-offset) = '\v'; break; case 'n': offset++; *(p-offset) = '\n'; break; case 't': offset++; *(p-offset) = '\t'; break; case 'b': offset++; *(p-offset) = '\b'; break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': noct = 0; while (noct < 3 && (*p >= '0' && *p <= '7')) { octal[noct++] = *p; offset++; p++; } p--; *(p-offset) = strtol (octal, 0, 8); break; case 'x': nhex = 0; p++; offset++; while (nhex < 2 && ((*p >= '0' && *p <= '9') || (*p >= 'a' && *p <= 'f') || (*p >= 'A' && *p <= 'F'))) { hex[nhex++] = *p; offset++; p++; } p--; *(p-offset) = strtol (hex, 0, 16); break; case '\\': offset++; *(p-offset) = '\\'; break; case '"': offset++; *(p-offset) = '"'; break; case '\'': offset++; *(p-offset) = '\''; break; default: *(p-offset) = *p; } escaped = false; p++; } *(p-offset) = '\0'; } #ifdef TEST #include main (int argc, char *argv[]) { unescape (argv[1]); printf ("%s\n", argv[1]); } #endif sooperlooper-1.7.3~dfsg0/libs/pbd/version.cc.in0000644000175000017500000000022011754453700020135 0ustar miramiraint pbd_major_version = @LIBPBD_MAJOR_VERSION@; int pbd_minor_version = @LIBPBD_MINOR_VERSION@; int pbd_micro_version = @LIBPBD_MICRO_VERSION@; sooperlooper-1.7.3~dfsg0/libs/pbd/ChangeLog0000644000175000017500000000011311754453700017307 0ustar miramira2004-8-4 Taybin Rutkin * Added support for gcc-3.4 sooperlooper-1.7.3~dfsg0/libs/pbd/INSTALL0000644000175000017500000001722711754453700016604 0ustar miramiraBasic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, a file `config.cache' that saves the results of its tests to speed up reconfiguring, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.in' is used to create `configure' by a program called `autoconf'. You only need `configure.in' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. You can give `configure' initial values for variables by setting them in the environment. Using a Bourne-compatible shell, you can do that on the command line like this: CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure Or on systems that have the `env' program, you can do it like this: env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not supports the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=PATH' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' can not figure out automatically, but needs to determine by the type of host the package will run on. Usually `configure' can figure that out, but if it prints a message saying it can not guess the host type, give it the `--host=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name with three fields: CPU-COMPANY-SYSTEM See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the host type. If you are building compiler tools for cross-compiling, you can also use the `--target=TYPE' option to select the type of system they will produce code for and the `--build=TYPE' option to select the type of system on which you are compiling the package. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Operation Controls ================== `configure' recognizes the following options to control how it operates. `--cache-file=FILE' Use and save the results of the tests in FILE instead of `./config.cache'. Set FILE to `/dev/null' to disable caching, for debugging `configure'. `--help' Print a summary of the options to `configure', and exit. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. `configure' also accepts some other, not widely useful, options. sooperlooper-1.7.3~dfsg0/libs/pbd/xml++.cc0000644000175000017500000001777211754453700017015 0ustar miramira/* xml++.cc * libxml++ and this file are copyright (C) 2000 by Ari Johnson, and * are covered by the GNU Lesser General Public License, which should be * included with libxml++ as the file COPYING. */ #include static XMLNode *readnode(xmlNodePtr); static void writenode(xmlDocPtr, XMLNode *, xmlNodePtr, int); XMLTree::XMLTree() : _filename(), _root(), _compression(0), _initialized(false) { } XMLTree::XMLTree(const string &fn) : _filename(fn), _root(0), _compression(0), _initialized(false) { read(); } XMLTree::XMLTree(const XMLTree * from) { _filename = from->filename(); _root = new XMLNode(*from->root()); _compression = from->compression(); _initialized = true; } XMLTree::~XMLTree() { if (_initialized && _root) delete _root; } int XMLTree::set_compression(int c) { if (c > 9) c = 9; if (c < 0) c = 0; _compression = c; return _compression; } bool XMLTree::read(void) { xmlDocPtr doc; if (_root) { delete _root; _root = 0; } xmlKeepBlanksDefault(0); doc = xmlParseFile(_filename.c_str()); if (!doc) { _initialized = false; return false; } _root = readnode(xmlDocGetRootElement(doc)); xmlFreeDoc(doc); _initialized = true; return true; } bool XMLTree::read_buffer(const string & buffer) { xmlDocPtr doc; _filename = ""; if (_root) { delete _root; _root = 0; } doc = xmlParseMemory((char *) buffer.c_str(), buffer.length()); if (!doc) { _initialized = false; return false; } _root = readnode(xmlDocGetRootElement(doc)); xmlFreeDoc(doc); _initialized = true; return true; } bool XMLTree::write(void) const { xmlDocPtr doc; XMLNodeList children; int result; xmlKeepBlanksDefault(0); doc = xmlNewDoc((xmlChar *) "1.0"); xmlSetDocCompressMode(doc, _compression); writenode(doc, _root, doc->children, 1); result = xmlSaveFormatFile(_filename.c_str(), doc, 1); xmlFreeDoc(doc); if (result == -1) return false; return true; } const string & XMLTree::write_buffer(void) const { static string retval; char *ptr; int len; xmlDocPtr doc; XMLNodeList children; xmlKeepBlanksDefault(0); doc = xmlNewDoc((xmlChar *) "1.0"); xmlSetDocCompressMode(doc, _compression); writenode(doc, _root, doc->children, 1); xmlDocDumpMemory(doc, (xmlChar **) & ptr, &len); xmlFreeDoc(doc); retval = ptr; free(ptr); return retval; } XMLNode::XMLNode(const string & n) : _name(n), _is_content(false), _content(string()) { if (_name.empty()) _initialized = false; else _initialized = true; } XMLNode::XMLNode(const string & n, const string & c) :_name(string()), _is_content(true), _content(c) { _initialized = true; } XMLNode::XMLNode(const XMLNode& from) : _initialized(false) { XMLPropertyList props; XMLPropertyIterator curprop; XMLNodeList nodes; XMLNodeIterator curnode; _name = from.name(); set_content(from.content()); props = from.properties(); for (curprop = props.begin(); curprop != props.end(); curprop++) add_property((*curprop)->name(), (*curprop)->value()); nodes = from.children(); for (curnode = nodes.begin(); curnode != nodes.end(); curnode++) add_child_copy(**curnode); } XMLNode::~XMLNode() { XMLNodeIterator curchild; XMLPropertyIterator curprop; for (curchild = _children.begin(); curchild != _children.end(); curchild++) delete *curchild; for (curprop = _proplist.begin(); curprop != _proplist.end(); curprop++) delete *curprop; } const string & XMLNode::set_content(const string & c) { if (c.empty()) _is_content = false; else _is_content = true; _content = c; return _content; } const XMLNodeList & XMLNode::children(const string & n) const { static XMLNodeList retval; XMLNodeConstIterator cur; if (n.length() == 0) return _children; retval.erase(retval.begin(), retval.end()); for (cur = _children.begin(); cur != _children.end(); cur++) if ((*cur)->name() == n) retval.insert(retval.end(), *cur); return retval; } XMLNode * XMLNode::add_child(const string & n) { return add_child_copy(XMLNode (n)); } void XMLNode::add_child_nocopy (XMLNode& n) { _children.insert(_children.end(), &n); } XMLNode * XMLNode::add_child_copy(const XMLNode& n) { XMLNode *copy = new XMLNode (n); _children.insert(_children.end(), copy); return copy; } XMLNode * XMLNode::add_content(const string & c) { return add_child_copy(XMLNode (string(), c)); } XMLProperty * XMLNode::property(const string & n) { if (_propmap.find(n) == _propmap.end()) return 0; return _propmap[n]; } XMLProperty * XMLNode::add_property(const string & n, const string & v) { if(_propmap.find(n) != _propmap.end()){ remove_property(n); } XMLProperty *tmp = new XMLProperty(n, v); if (!tmp) return 0; _propmap[tmp->name()] = tmp; _proplist.insert(_proplist.end(), tmp); return tmp; } void XMLNode::remove_property(const string & n) { if (_propmap.find(n) != _propmap.end()) { _proplist.remove(_propmap[n]); _propmap.erase(n); } } void XMLNode::remove_nodes(const string & n) { XMLNodeIterator i = _children.begin(); XMLNodeIterator tmp; while (i != _children.end()) { tmp = i; ++tmp; if ((*i)->name() == n) { _children.remove(*i); } i = tmp; } } XMLNode * XMLNode::find_named_node (const string & name) const { XMLNodeList nlist; XMLNodeConstIterator niter; XMLNode* child; nlist = this->children(); for (niter = nlist.begin(); niter != nlist.end(); ++niter) { child = *niter; if (child->name() == name) { return child; } } return 0; } XMLProperty::XMLProperty(const string &n, const string &v) : _name(n), _value(v) { } XMLProperty::~XMLProperty() { } static XMLNode * readnode(xmlNodePtr node) { string name, content; xmlNodePtr child; XMLNode *tmp; xmlAttrPtr attr; if (node->name) name = (char *) node->name; else name = string(); tmp = new XMLNode(name); for (attr = node->properties; attr; attr = attr->next) { name = (char *) attr->name; content = ""; if (attr->children) content = (char *) attr->children->content; tmp->add_property(name, content); } if (node->content) tmp->set_content((char *) node->content); else tmp->set_content(string()); for (child = node->children; child; child = child->next) tmp->add_child_nocopy (*readnode(child)); return tmp; } static void writenode(xmlDocPtr doc, XMLNode * n, xmlNodePtr p, int root = 0) { XMLPropertyList props; XMLPropertyIterator curprop; XMLNodeList children; XMLNodeIterator curchild; xmlNodePtr node; if (root) node = doc->children = xmlNewDocNode(doc, 0, (xmlChar *) n->name().c_str(), 0); else node = xmlNewChild(p, 0, (xmlChar *) n->name().c_str(), 0); if (n->is_content()) { node->type = XML_TEXT_NODE; xmlNodeSetContentLen(node, (const xmlChar *) n->content().c_str(), n->content().length()); } props = n->properties(); for (curprop = props.begin(); curprop != props.end(); curprop++) xmlSetProp(node, (xmlChar *) (*curprop)->name().c_str(), (xmlChar *) (*curprop)->value().c_str()); children = n->children(); for (curchild = children.begin(); curchild != children.end(); curchild++) writenode(doc, *curchild, node); } sooperlooper-1.7.3~dfsg0/libs/pbd/configure0000755000175000017500000064722412442352510017460 0ustar miramira#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.68. # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 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 # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (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 # 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. as_myself= 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 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="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_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error 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 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi 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'` # 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_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # 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; as_fn_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 } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac 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='mkdir -p "$as_dir"' 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'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/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= # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= PACKAGE_URL= ac_unique_file="pbd" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS ACLOCAL_AMFLAGS ACLOCAL_FLAGS SIGCPP_LIBS SIGCPP_CFLAGS XML_LIBS XML_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG LIBOBJS EGREP GREP CXXCPP RANLIB am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM LIBPBD_RELEASE LIBPBD_VERSION LIBPBD_SO_VERSION LIBPBD_MICRO_VERSION LIBPBD_MINOR_VERSION LIBPBD_MAJOR_VERSION target_os target_vendor target_cpu target 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_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_dependency_tracking enable_optimize enable_profiling with_macosx_sdk with_macosx_version_min ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CXX CXXFLAGS CCC CXXCPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR XML_CFLAGS XML_LIBS SIGCPP_CFLAGS SIGCPP_LIBS' # 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}' 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= ;; *) 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_fn_error $? "invalid feature name: $ac_useropt" 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_fn_error $? "invalid feature name: $ac_useropt" 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 ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used" >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --disable-optimize avoid optimizations to allow for gdb debugging. --enable-profiling build for profiling using gprof. Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-macosx-sdk=PATH use an OS X SDK at PATH --with-macosx-version-min=VER build binaries which require at least this OS X version Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path XML_CFLAGS C compiler flags for XML, overriding pkg-config XML_LIBS linker flags for XML, overriding pkg-config SIGCPP_CFLAGS C compiler flags for SIGCPP, overriding pkg-config SIGCPP_LIBS linker flags for SIGCPP, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_link # ac_fn_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_cpp # ac_fn_cxx_try_run LINENO # ------------------------ # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_cxx_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_run # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES # --------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_cxx_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_header_mongrel # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES # --------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_cxx_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_header_compile # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES # --------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_cxx_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_type # ac_fn_cxx_check_func LINENO FUNC VAR # ------------------------------------ # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_cxx_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in . "$srcdir"/.; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 $as_echo_n "checking target system type... " >&6; } if ${ac_cv_target+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 $as_echo "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1 target_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: target_os=$* IFS=$ac_save_IFS case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- LIBPBD_MAJOR_VERSION=2 LIBPBD_MINOR_VERSION=6 LIBPBD_MICRO_VERSION=0 LIBPBD_VERSION=$LIBPBD_MAJOR_VERSION.$LIBPBD_MINOR_VERSION.${LIBPBD_MICRO_VERSION} LIBPBD_RELEASE=$LIBPBD_MAJOR_VERSION-$LIBPBD_MINOR_VERSION-${LIBPBD_MICRO_VERSION} am__api_version='1.11' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=libpbd VERSION=${LIBPBD_VERSION} cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_config_headers="$ac_config_headers config.h" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CXX_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi if test "$ac_cv_prog_cxx" = "no" ; then as_fn_error $? "*** libpbd is C++. You don't appear to have a C++ compiler" "$LINENO" 5 fi gcc_major_version=4 os_system=Darwin if test "$target_cpu" = "powerpc"; then $as_echo "#define POWERPC 1" >>confdefs.h altivecLinux= if test "$?" = "0"; then $as_echo "#define HAVE_ALTIVEC_LINUX 1" >>confdefs.h if test "$gcc_major_version" = "3"; then #OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -maltivec -mabi=altivec" OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -mtune=7450" else OPT_FLAGS="-D_REENTRANT -Os" fi else OPT_FLAGS="-D_REENTRANT -Os " fi OPT_FLAGS="$OPT_FLAGS -mhard-float -mpowerpc-gfxopt" elif echo $target_cpu | grep "i*86" >/dev/null; then if test "$os_system" = "Darwin"; then # pretty good assumption mmx="-mmmx" sse="-msse -mfpmath=sse" OPT_FLAGS="-D_REENTRANT -Os -fomit-frame-pointer $mmx $sse" else cat /proc/cpuinfo | grep mmx >/dev/null if test $? = 0; then mmx="-mmmx" fi cat /proc/cpuinfo | grep sse >/dev/null if test $? = 0; then sse="-msse -mfpmath=sse" fi cat /proc/cpuinfo | grep 3dnow >/dev/null if test $? = 0; then dreidnow="-m3dnow" fi $as_echo "#define x86 1" >>confdefs.h if test "$target_cpu" = "i586"; then OPT_FLAGS="-DREENTRANT -O2 -march=i586 -fomit-frame-pointer" elif test "$target_cpu" = "i686"; then OPT_FLAGS="-D_REENTRANT -O2 -march=i686 -fomit-frame-pointer" if test "$gcc_major_version" -ge "3"; then OPT_FLAGS="$OPT_FLAGS $mmx $sse $dreidnow" fi else OPT_FLAGS="-D_REENTRANT -O2 -fomit-frame-pointer" fi fi fi OPT_FLAGS="$OPT_FLAGS -pipe" # LARGEFILE_FLAGS="`getconf LFS_CFLAGS`" LARGEFILE_FLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" CXXFLAGS="-g -D_REENTRANT $LARGEFILE_FLAGS" if test x"$GXX" = xyes ; then CXXFLAGS="$CXXFLAGS -Wall" fi if test x"$GXX" = xyes ; then OPT_CXXFLAGS="$OPT_FLAGS -Wall $LARGEFILE_FLAGS" fi PROF_FLAGS="-pg" CXXFLAGS="$CXXFLAGS -fno-merge-constants" # Check whether --enable-optimize was given. if test "${enable_optimize+set}" = set; then : enableval=$enable_optimize; if test "x$enable_optimize" != "xno" ; then CXXFLAGS="$OPT_CXXFLAGS" ; fi else CXXFLAGS="$OPT_CXXFLAGS" fi # Check whether --enable-profiling was given. if test "${enable_profiling+set}" = set; then : enableval=$enable_profiling; if test "x$enable_profiling" = "xyes" ; then CXXFLAGS="$CXXFLAGS $PROF_FLAGS" ; fi fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-macosx-sdk" >&5 $as_echo_n "checking for --with-macosx-sdk... " >&6; } # Check whether --with-macosx-sdk was given. if test "${with_macosx_sdk+set}" = set; then : withval=$with_macosx_sdk; wxUSE_MACOSX_SDK=$withval wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval" #echo "wxUSE_MACOSX_SDK=$wxUSE_MACOSX_SDK" >> ${wx_arg_cache_file}.tmp else # NOTE: Empty string on purpose so that --without-macosx-sdk (thus no) # will override --enable-universal_binary's automatic SDK usage. wxUSE_MACOSX_SDK= #LINE=`grep "^wxUSE_MACOSX_SDK=" ${wx_arg_cache_file}` #if test "x$LINE" != x ; then # eval "$LINE" # echo "$LINE" >> ${wx_arg_cache_file}.tmp #fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_MACOSX_SDK" >&5 $as_echo "$wxUSE_MACOSX_SDK" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-macosx-version-min" >&5 $as_echo_n "checking for --with-macosx-version-min... " >&6; } # Check whether --with-macosx-version-min was given. if test "${with_macosx_version_min+set}" = set; then : withval=$with_macosx_version_min; wxUSE_MACOSX_VERSION_MIN=$withval wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval" #echo "wxUSE_MACOSX_VERSION_MIN=$wxUSE_MACOSX_VERSION_MIN" >> ${wx_arg_cache_file}.tmp else # default "yes" because when not using an SDK it means the same as no # but when using an SDK it means to use the SDK version wxUSE_MACOSX_VERSION_MIN=yes # See if there is a value in the cache #LINE=`grep "^wxUSE_MACOSX_VERSION_MIN=" ${wx_arg_cache_file}` #if test "x$LINE" != x ; then # eval "$LINE" # echo "$LINE" >> ${wx_arg_cache_file}.tmp #fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_MACOSX_VERSION_MIN" >&5 $as_echo "$wxUSE_MACOSX_VERSION_MIN" >&6; } if test "x$wxUSE_MACOSX_SDK" = "xno"; then wxUSE_MACOSX_SDK= elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then # TODO: Search for most recent SDK and use it. wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk" fi if test "x$wxUSE_MACOSX_SDK" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDK directory $wxUSE_MACOSX_SDK" >&5 $as_echo_n "checking for SDK directory $wxUSE_MACOSX_SDK... " >&6; } if ! test -d "$wxUSE_MACOSX_SDK"; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "not found See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: exists" >&5 $as_echo "exists" >&6; } fi MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK" eval "CC=\"$CC $MACOSX_SDK_OPTS\"" eval "CXX=\"$CXX $MACOSX_SDK_OPTS\"" eval "LD=\"$LD $MACOSX_SDK_OPTS\"" retest_macosx_linking=yes fi if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then wxUSE_MACOSX_VERSION_MIN= elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then if test "x$wxUSE_MACOSX_SDK" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDK deployment version" >&5 $as_echo_n "checking SDK deployment version... " >&6; } MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" buildSettings | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` # If that failed, try again with the new key if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` fi if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_MACOSX_VERSION_MIN" >&5 $as_echo "$wxUSE_MACOSX_VERSION_MIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine deployment target from SDKSettings.plist" >&5 $as_echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;} wxUSE_MACOSX_VERSION_MIN= fi else wxUSE_MACOSX_VERSION_MIN= fi fi if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN" eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\"" eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\"" eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\"" retest_macosx_linking=yes fi if test "x$retest_macosx_linking" = "xyes"; then ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler works with SDK/version options" >&5 $as_echo_n "checking if C compiler works with SDK/version options... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no. Try a different SDK See \`config.log' for more details" "$LINENO" 5; }; exit 1 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler works with SDK/version options" >&5 $as_echo_n "checking if C++ compiler works with SDK/version options... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no. Try a different SDK See \`config.log' for more details" "$LINENO" 5; }; exit 1 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } if eval \${$as_ac_Header+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include <$ac_hdr> int main () { if ((DIR *) 0) return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : eval "$as_ac_Header=yes" else eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$as_ac_Header { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 _ACEOF ac_header_dirent=$ac_hdr; break fi done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' dir; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_search_opendir=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_opendir+:} false; then : break fi done if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' x; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_search_opendir=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_opendir+:} false; then : break fi done if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if ${ac_cv_prog_CXXCPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in fcntl.h limits.h sys/time.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" if test "x$ac_cv_type_off_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define off_t long int _ACEOF fi ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" if test "x$ac_cv_type_pid_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define pid_t int _ACEOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } if ${ac_cv_header_time+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { if ((struct tm *) 0) return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_header_time=yes else ac_cv_header_time=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 $as_echo "$ac_cv_header_time" >&6; } if test $ac_cv_header_time = yes; then $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 $as_echo_n "checking for working memcmp... " >&6; } if ${ac_cv_func_memcmp_working+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_memcmp_working=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* Some versions of memcmp are not 8-bit clean. */ char c0 = '\100', c1 = '\200', c2 = '\201'; if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) return 1; /* The Next x86 OpenStep bug shows up only when comparing 16 bytes or more and with at least one buffer not starting on a 4-byte boundary. William Lewis provided this test program. */ { char foo[21]; char bar[21]; int i; for (i = 0; i < 4; i++) { char *a = foo + i; char *b = bar + i; strcpy (a, "--------01111111"); strcpy (b, "--------10000000"); if (memcmp (a, b, 16) >= 0) return 1; } return 0; } ; return 0; } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : ac_cv_func_memcmp_working=yes else ac_cv_func_memcmp_working=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 $as_echo "$ac_cv_func_memcmp_working" >&6; } test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in *" memcmp.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 $as_echo_n "checking return type of signal handlers... " >&6; } if ${ac_cv_type_signal+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { return *(signal (0, 0)) (0) == 1; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_type_signal=int else ac_cv_type_signal=void fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 $as_echo "$ac_cv_type_signal" >&6; } cat >>confdefs.h <<_ACEOF #define RETSIGTYPE $ac_cv_type_signal _ACEOF for ac_func in vprintf do : ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" if test "x$ac_cv_func_vprintf" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VPRINTF 1 _ACEOF ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" if test "x$ac_cv_func__doprnt" = xyes; then : $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h fi fi done # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, # -lseq on Dynix/PTX, -lgen on Unixware. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 $as_echo_n "checking for library containing getmntent... " >&6; } if ${ac_cv_search_getmntent+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char getmntent (); int main () { return getmntent (); ; return 0; } _ACEOF for ac_lib in '' sun seq gen; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_search_getmntent=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_getmntent+:} false; then : break fi done if ${ac_cv_search_getmntent+:} false; then : else ac_cv_search_getmntent=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 $as_echo "$ac_cv_search_getmntent" >&6; } ac_res=$ac_cv_search_getmntent if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ac_cv_func_getmntent=yes $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h else ac_cv_func_getmntent=no fi for ac_func in regcomp select strdup strerror strtol do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_create+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_create (); int main () { return pthread_create (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_create=yes else ac_cv_lib_pthread_pthread_create=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBPTHREAD 1 _ACEOF LIBS="-lpthread $LIBS" else as_fn_error $? "you have no POSIX thread support" "$LINENO" 5 fi if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 $as_echo_n "checking for XML... " >&6; } if test -n "$XML_CFLAGS"; then pkg_cv_XML_CFLAGS="$XML_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.5" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$XML_LIBS"; then pkg_cv_XML_LIBS="$XML_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.5" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0 >= 2.5" 2>&1` else XML_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0 >= 2.5" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$XML_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (libxml-2.0 >= 2.5) were not met: $XML_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables XML_CFLAGS and XML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables XML_CFLAGS and XML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else XML_CFLAGS=$pkg_cv_XML_CFLAGS XML_LIBS=$pkg_cv_XML_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGCPP" >&5 $as_echo_n "checking for SIGCPP... " >&6; } if test -n "$SIGCPP_CFLAGS"; then pkg_cv_SIGCPP_CFLAGS="$SIGCPP_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= 2.2.10\""; } >&5 ($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= 2.2.10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SIGCPP_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0 >= 2.2.10" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$SIGCPP_LIBS"; then pkg_cv_SIGCPP_LIBS="$SIGCPP_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= 2.2.10\""; } >&5 ($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= 2.2.10") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SIGCPP_LIBS=`$PKG_CONFIG --libs "sigc++-2.0 >= 2.2.10" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then SIGCPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sigc++-2.0 >= 2.2.10" 2>&1` else SIGCPP_PKG_ERRORS=`$PKG_CONFIG --print-errors "sigc++-2.0 >= 2.2.10" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$SIGCPP_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (sigc++-2.0 >= 2.2.10) were not met: $SIGCPP_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables SIGCPP_CFLAGS and SIGCPP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables SIGCPP_CFLAGS and SIGCPP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else SIGCPP_CFLAGS=$pkg_cv_SIGCPP_CFLAGS SIGCPP_LIBS=$pkg_cv_SIGCPP_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi top_marker=top_marker depth=0 while test x$SOOPERLOOPER_TOP = x -a $depth -lt 255 ; do if test -f $top_marker ; then SOOPERLOOPER_TOP=`dirname $top_marker` else top_marker=../$top_marker fi depth=`expr $depth + 1` done if test $depth -eq 255 ; then as_fn_error $? " the top of the SooperLooper source tree was not found." "$LINENO" 5 fi SOOPERLOOPER_TOP=`cd $SOOPERLOOPER_TOP; pwd` export LIBDIRS="pbd midi++ " ACLOCAL_FLAGS="-I $SOOPERLOOPER_TOP/aclocal" ACLOCAL_AMFLAGS="-I $SOOPERLOOPER_TOP/aclocal `if test -d m4 ; then echo -I m4; fi`" BASE_LIBS="$SOOPERLOOPER_TOP/libs/midi++/libmidipp.a $SOOPERLOOPER_TOP/libs/pbd/libpbd.a" BASE_INCLUDES="-I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" CFLAGS="$CFLAGS -I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" CXXFLAGS="$CXXFLAGS -I$SOOPERLOOPER_TOP/libs/pbd -I$SOOPERLOOPER_TOP/libs/midi++" #LIBS="$LIBS $SOOPERLOOPER_TOP/libs/midi++/libmidipp.a $SOOPERLOOPER_TOP/libs/pbd/libpbd.a" CFLAGS="$CFLAGS $XML_CFLAGS $SIGCPP_CFLAGS" CXXFLAGS="$CXXFLAGS $XML_CFLAGS $SIGCPP_CFLAGS" LIBS="$LIBS $XML_LIBS $SIGCPP_LIBS" ac_config_files="$ac_config_files Makefile version.cc pbd/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## 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 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 # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (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 # 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. as_myself= 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 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith 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 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi 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'` # 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 ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac 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 # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' 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 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" Copyright (C) 2010 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "version.cc") CONFIG_FILES="$CONFIG_FILES version.cc" ;; "pbd/Makefile") CONFIG_FILES="$CONFIG_FILES pbd/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi sooperlooper-1.7.3~dfsg0/libs/pbd/pathscanner.cc0000644000175000017500000001016211754453700020357 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include #include #include #include #include #include vector * PathScanner::operator() (const string &dirpath, const string ®exp, bool match_fullpath, bool return_fullpath, long limit) { int err; char msg[256]; if ((err = regcomp (&compiled_pattern, regexp.c_str(), REG_EXTENDED|REG_NOSUB))) { regerror (err, &compiled_pattern, msg, sizeof (msg)); error << "Cannot compile soundfile regexp for use (" << msg << ")" << endmsg; return 0; } return run_scan (dirpath, &PathScanner::regexp_filter, (bool (*)(const string &, void *)) 0, 0, match_fullpath, return_fullpath, limit); } vector * PathScanner::run_scan (const string &dirpath, bool (PathScanner::*memberfilter)(const string &), bool (*filter)(const string &, void *), void *arg, bool match_fullpath, bool return_fullpath, long limit) { vector *result = 0; DIR *dir; struct dirent *finfo; char *pathcopy = strdup (dirpath.c_str()); char *thisdir; char fullpath[PATH_MAX+1]; string search_str; string *newstr; long nfound = 0; if ((thisdir = strtok (pathcopy, ":")) == 0 || strlen (thisdir) == 0) { free (pathcopy); return 0; } result = new vector; do { if ((dir = opendir (thisdir)) == 0) { continue; } while ((finfo = readdir (dir)) != 0) { snprintf (fullpath, sizeof(fullpath), "%s/%s", thisdir, finfo->d_name); if (match_fullpath) { search_str = fullpath; } else { search_str = finfo->d_name; } /* handle either type of function ptr */ if (memberfilter) { if (!(this->*memberfilter)(search_str)) { continue; } } else { if (!filter(search_str, arg)) { continue; } } if (return_fullpath) { newstr = new string (fullpath); } else { newstr = new string (finfo->d_name); } result->push_back (newstr); nfound++; } closedir (dir); } while ((limit < 0 || (nfound < limit)) && (thisdir = strtok (0, ":"))); free (pathcopy); return result; } string * PathScanner::find_first (const string &dirpath, const string ®exp, bool match_fullpath, bool return_fullpath) { vector *res; string *ret; int err; char msg[256]; if ((err = regcomp (&compiled_pattern, regexp.c_str(), REG_EXTENDED|REG_NOSUB))) { regerror (err, &compiled_pattern, msg, sizeof (msg)); error << "Cannot compile soundfile regexp for use (" << msg << ")" << endmsg; return 0; } res = run_scan (dirpath, &PathScanner::regexp_filter, (bool (*)(const string &, void *)) 0, 0, match_fullpath, return_fullpath, 1); if (res->size() == 0) { ret = 0; } else { ret = res->front(); } vector_delete (res); delete res; return ret; } string * PathScanner::find_first (const string &dirpath, bool (*filter)(const string &, void *), void *arg, bool match_fullpath, bool return_fullpath) { vector *res; string *ret; res = run_scan (dirpath, (bool (PathScanner::*)(const string &)) 0, filter, 0, match_fullpath, return_fullpath, 1); if (res->size() == 0) { ret = 0; } else { ret = res->front(); } vector_delete (res); delete res; return ret; } sooperlooper-1.7.3~dfsg0/libs/pbd/ftw.cc0000644000175000017500000001507111754453700016655 0ustar miramira/* Copyright (c) 2003 by Joel Baker. All rights reserved. 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. Neither the name of the Author nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``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 OR CONTRIBUTORS 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. */ #include #include #include /* Because fts(3) says so */ #include #include #include #include /* We want strcpy */ #include /* Because errno is our friend */ #ifndef __USE_XOPEN_EXTENDED /* We need nftw values, since we implement it */ #define __USE_XOPEN_EXTENDED #endif #include /* I like symbolic values - this is only used in this file. */ enum __ftw_modes { MODE_FTW, MODE_NFTW }; /* Prototype this so that we can have it later */ static int __ftw_core(const char *, void*, int, int, enum __ftw_modes); /* * The external function calls are really just wrappers around __ftw_core, * since the work they do is 90% the same. */ int ftw (const char *dir, __ftw_func_t func, int descr) { return __ftw_core(dir, (void*)func, descr, 0, MODE_FTW); } int nftw (const char *dir, __nftw_func_t func, int descr, int flags) { return __ftw_core(dir, (void*)func, descr, flags, MODE_NFTW); } /* typedef int (*__ftw_func_t) \ (const char *file, const struct stat status, int flag); typedef int (*__nftw_func_t) \ (const char *file, const struct stat status, int flag, struct FTW detail); */ static int __ftw_core(const char *dir, void* func, int descr, int flags, enum __ftw_modes mode) { FTS *hierarchy = 0; FTSENT *entry = 0; int fts_options; char *paths[2]; int ftw_flag = 0, func_ret = 0; struct FTW ftw_st; int skip_entry; __ftw_func_t ftw_func; __nftw_func_t nftw_func; /* We need at least one descriptor to call fts */ if (descr < 1) { errno = EINVAL; return -1; } /* Decide which mode we're running in, and set the FTS options suitably. */ if (MODE_NFTW == mode) { /* NFTW mode, with all the bells and whistles. */ fts_options = (flags & FTW_PHYS) ? FTS_PHYSICAL : FTS_LOGICAL; fts_options |= (flags & FTW_CHDIR) ? FTS_NOCHDIR : 0; fts_options |= (flags & FTW_MOUNT) ? FTS_XDEV : 0; } else { /* We must be in FTW mode. Nothing else makes sense. */ fts_options = FTS_LOGICAL; } /* FTW gets a const char *, but FTS expects a null-term array of them. */ if (!(paths[0] = (char*) alloca(strlen(dir) + 1))) { errno = ENOMEM; /* This is stack... we probably just died anyway. */ return -1; } strcpy(paths[0], dir); paths[1] = 0; /* null */ /* Open the file hierarchy. */ if (!(hierarchy = fts_open(paths, fts_options, 0))) { if (EACCES == errno) { return 0; } else { return -1; } } /* The main loop. Is it not nifty? Worship the loop. */ bool first = true; while ((entry = fts_read(hierarchy))) { skip_entry = 0; std::string path_name = entry->fts_path; switch (entry->fts_info) { case FTS_D: if ((MODE_NFTW != mode) || !(flags & FTW_DEPTH)) { if (first) { path_name = path_name.substr(0, path_name.size() - 1); first = false; } ftw_flag = FTW_D; } else { skip_entry = 1; } break; case FTS_DNR: ftw_flag = FTW_DNR; break; case FTS_F: ftw_flag = FTW_F; break; case FTS_SL: ftw_flag = FTW_SL; break; case FTS_NS: ftw_flag = FTW_NS; break; /* Values that should only occur in nftw mode */ case FTS_SLNONE: if (MODE_NFTW == mode) { ftw_flag = FTW_SLN; } else { ftw_flag = FTW_SL; } break; case FTS_DP: if ((MODE_NFTW == mode) && (flags & FTW_DEPTH)) { ftw_flag = FTW_D; } else { skip_entry = 1; } break; default: /* I'm not sure this is right, but we don't have a valid FTW * type to call with, so cowardice seems the better part of * guessing. */ skip_entry = 1; } if (MODE_FTW == mode) { ftw_func = (__ftw_func_t) func; func_ret = (*ftw_func) (path_name.c_str(), entry->fts_statp, ftw_flag); } else if (MODE_NFTW == mode) { ftw_st.base = (entry->fts_pathlen - entry->fts_namelen); ftw_st.level = entry->fts_level; nftw_func = (__nftw_func_t) func; func_ret = (*nftw_func) (path_name.c_str(), entry->fts_statp, ftw_flag, &ftw_st); } if (0 != func_ret) { return func_ret; } } if (0 != errno) { /* fts_read returned NULL, and set errno - bail */ return -1; } /* The janitors will be upset if we don't clean up after ourselves. */ if (0 != fts_close(hierarchy)) { return -1; } return 0; } sooperlooper-1.7.3~dfsg0/libs/pbd/version.cc0000644000175000017500000000012112442352632017525 0ustar miramiraint pbd_major_version = 2; int pbd_minor_version = 6; int pbd_micro_version = 0; sooperlooper-1.7.3~dfsg0/libs/pbd/Makefile.am0000644000175000017500000000135611754453700017603 0ustar miramiraMAINTAINERCLEANFILES = autom4te.cache Makefile.in aclocal.m4 configure config.h.in stamp-h.in pbd-config libpbd.spec \ config.guess mkinstalldirs \ missing install-sh config.sub ltconfig \ ltmain.sh acinclude.m4 \ config.log config.status depcomp SUBDIRS = pbd noinst_LIBRARIES = libpbd.a libpbd_a_SOURCES = \ basename.cc \ dirname.cc \ dmalloc.cc \ ftw.cc \ mountpoint.cc \ pathscanner.cc \ pool.cc \ pthread_utils.cc \ receiver.cc \ textreceiver.cc \ transmitter.cc \ undo.cc \ unescape.cc \ version.cc \ xml++.cc EXTRA_DIST = libpbd.spec.in \ libpbd.pc.in \ autogen.sh sooperlooper-1.7.3~dfsg0/libs/pbd/basename.cc0000644000175000017500000000141611754453700017626 0ustar miramira#include #include #include char * PBD::basename (const char *path) { const char *slash; if ((slash = strrchr (path, '/')) == 0) { return strdup (path); } if (*(slash+1) == '\0') { return strdup (""); } return strdup (slash+1); } std::string PBD::basename (const std::string str) { std::string::size_type slash = str.find_last_of ('/'); if (slash == std::string::npos) { return str; } return str.substr (slash+1); } std::string PBD::basename_nosuffix (const std::string str) { std::string::size_type slash = str.find_last_of ('/'); std::string noslash; if (slash == std::string::npos) { noslash = str; } else { noslash = str.substr (slash+1); } return noslash.substr (0, noslash.find_last_of ('.')); } sooperlooper-1.7.3~dfsg0/libs/pbd/textreceiver.cc0000644000175000017500000000275611754453700020574 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include TextReceiver::TextReceiver (const string &n) { name = n; } void TextReceiver::receive (Transmitter::Channel chn, const char *str) { const char *prefix = ""; switch (chn) { case Transmitter::Error: prefix = ": [ERROR]: "; break; case Transmitter::Info: prefix = ": [INFO]: "; break; case Transmitter::Warning: prefix = ": [WARNING]: "; break; case Transmitter::Fatal: prefix = ": [FATAL]: "; break; case Transmitter::Throw: /* this isn't supposed to happen */ abort (); } /* note: iostreams are already thread-safe: no external lock required. */ cout << name << prefix << str << endl; if (chn == Transmitter::Fatal) { exit (9); } } sooperlooper-1.7.3~dfsg0/libs/pbd/autogen.sh0000644000175000017500000000012711754453700017540 0ustar miramira#!/bin/sh aclocal $ACLOCAL_FLAGS && autoheader && automake --add-missing && autoconf sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/0000755000175000017500000000000012503567205016306 5ustar miramirasooperlooper-1.7.3~dfsg0/libs/pbd/pbd/ftw.h0000644000175000017500000000645511754453700017272 0ustar miramira/* Copyright (c) 2003 by Joel Baker. All rights reserved. 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. Neither the name of the Author nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``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 OR CONTRIBUTORS 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. */ #ifndef _FTW_H #define _FTW_H #include /* Enumerated values for 'flag' when calling [n]ftw */ enum { FTW_D, /* Directories */ FTW_DNR, /* Unreadable directory */ FTW_F, /* Regular files */ FTW_SL, /* Symbolic link */ FTW_NS, /* stat(2) failed */ #ifdef __USE_XOPEN_EXTENDED /* X/Open */ /* Flags for nftw only */ FTW_DP, /* Directory, subdirs visited */ FTW_SLN, /* Dangling symlink */ #endif /* __USE_XOPEN_EXTENDED */ }; #ifdef __USE_XOPEN_EXTENDED /* X/Open */ /* Enumerated values for 'flags' when calling nftw */ enum { FTW_CHDIR = 1, /* Do a chdir(2) when entering a directory */ FTW_DEPTH = 2, /* Report files first (before directory) */ FTW_MOUNT = 4, /* Single filesystem */ FTW_PHYS = 8 /* Physical walk; ignore symlinks */ }; #define FTW_PHYS FTW_PHYS #define FTW_MOUNT FTW_MOUNT #define FTW_CHDIR FTW_CHDIR #define FTW_DEPTH FTW_DEPTH /* FTW struct for callbacks from nftw */ struct FTW { int base; int level; }; #endif /* __USE_XOPEN_EXTENDED */ /* Typecasts for callback functions */ typedef int (*__ftw_func_t) \ (const char *file, const struct stat *status, int flag); #ifdef __USE_XOPEN_EXTENDED /* X/Open */ typedef int (*__nftw_func_t) \ (const char *file, const struct stat *status, int flag, struct FTW *detail); #endif /* __USE_XOPEN_EXTENDED */ /* ftw: walk a directory tree, calling a function for each element */ extern int ftw (const char *dir, __ftw_func_t func, int descr); #ifdef __USE_XOPEN_EXTENDED /* X/Open */ /* nftw: walk a directory tree, calling a function for each element; much * like ftw, but with behavior flags and minty freshness. */ extern int nftw (const char *dir, __nftw_func_t func, int descr, int flags); #endif /* __USE_XOPEN_EXTENDED */ #endif /* _FTW_H */ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/Makefile.in0000644000175000017500000003011612442352507020353 0ustar miramira# Makefile.in generated by automake 1.11 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in 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. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = pbd DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ACLOCAL_FLAGS = @ACLOCAL_FLAGS@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBPBD_MAJOR_VERSION = @LIBPBD_MAJOR_VERSION@ LIBPBD_MICRO_VERSION = @LIBPBD_MICRO_VERSION@ LIBPBD_MINOR_VERSION = @LIBPBD_MINOR_VERSION@ LIBPBD_RELEASE = @LIBPBD_RELEASE@ LIBPBD_SO_VERSION = @LIBPBD_SO_VERSION@ LIBPBD_VERSION = @LIBPBD_VERSION@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIGCPP_CFLAGS = @SIGCPP_CFLAGS@ SIGCPP_LIBS = @SIGCPP_LIBS@ STRIP = @STRIP@ VERSION = @VERSION@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MAINTAINERCLEANFILES = autom4te.cache Makefile.in noinst_HEADERS = \ abstract_ui.h \ atomic.h \ basename.h \ compose.h \ datum.h \ dirname.h \ ellipsoid.h \ error.h \ failed_constructor.h \ fastlog.h \ forkexec.h \ ftw.h \ irix_platform.h \ linux_platform.h \ lock_free_fifo.h \ lockmonitor.h \ mountpoint.h \ pathscanner.h \ platform_factory.h \ platform.h \ pool.h \ position.h \ precision_timer.h \ pthread_spinlock.h \ pthread_utils.h \ rcpointer.h \ receiver.h \ relation.h \ restartable_rw.h \ ringbuffer.h \ rt.h \ rtthread.h \ scale.h \ selectable.h \ solaris_platform.h \ stl_delete.h \ stl_functors.h \ strsub.h \ textreceiver.h \ thread.h \ thrown_error.h \ touchable.h \ transmitter.h \ types.h \ undo.h \ unescape.h \ version.h \ xml++.h all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pbd/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu pbd/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(HEADERS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ ctags distclean distclean-generic distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/strsub.h0000644000175000017500000000164711754453700020012 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __libmisc_strsub_h__ #define __libmisc_strsub_h__ extern char *strsub (char *str, const char *target, const char *replacement); #endif // __libmisc_strsub_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/fastlog.h0000644000175000017500000000155011754453700020120 0ustar miramira/* Copyright unknown. Code by Laurent de Soras . */ #ifndef __pbd_fastlog_h__ #define __pbd_fastlog_h__ #include /* for HUGE_VAL */ static inline float fast_log2 (float val) { /* don't use reinterpret_cast<> because that prevents this from being used by pure C code (for example, GnomeCanvasItems) */ int * const exp_ptr = (int *)(&val); int x = *exp_ptr; const int log_2 = ((x >> 23) & 255) - 128; x &= ~(255 << 23); x += 127 << 23; *exp_ptr = x; val = ((-1.0f/3) * val + 2) * val - 2.0f/3; // (1) return (val + log_2); } static inline float fast_log (const float val) { return (fast_log2 (val) * 0.69314718f); } static inline float fast_log10 (const float val) { return fast_log2(val) / 3.312500f; } static inline float minus_infinity() { return -HUGE_VAL; } #endif /* __pbd_fastlog_h__ */ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/mountpoint.h0000644000175000017500000000163011754453700020674 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __pbd_mountpoint_h__ #define __pbd_mountpoint_h__ #include std::string mountpoint (std::string path); #endif // __pbd_mountpoint_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/relation.h0000644000175000017500000000173711754453700020305 0ustar miramira/* Copyright (C) 1999 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __pbd_relation_h__ #define __pbd_relation_h__ enum RelationalCondition { Equal = 0, NotEqual, LessThan, LessThanOrEqual, GreaterThan, GreaterThanOrEqual, Changed, NumConditions }; #endif // __pbd_relation_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/datum.h0000644000175000017500000000243611754453700017577 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __qm_datum_h__ #define __qm_datum_h__ /* A basic data type used whenever we want to represent something that might be a string or a number. */ struct Datum { enum Type { String, Numeric, }; Type type; union { const char *str; float n; }; Datum &operator=(float val) { type = Numeric; n = val; return *this; } Datum &operator=(int val) { type = Numeric; n=(float) val; return *this; } Datum &operator=(const char *val) { type = String; str = val; return *this; } }; #endif // __qm_datum_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/precision_timer.h0000644000175000017500000000300711754453700021653 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __precision_timer_h__ #define __precision_timer_h__ #include typedef cycles_t precision_time_t; class PrecisionTimer { public: PrecisionTimer (); /* returns current time in microseconds since the time base was created (which may be the same as when the PrecisionTimer was created or it may not). */ #ifdef PBD_HAVE_CYCLE_COUNTER precision_time_t current () { return get_cycles() / cycles_per_usec; } #else /* !HAVE_CYCLE_COUNTER */ precision_time_t current () { struct timeval now; gettimeofday (&now, 0); return (precision_time_t) ((now.tv_sec * 1000000) + now.tv_usec); } #endif /* HAVE_CYCLE_COUNTER */ private: int get_mhz(); static precision_time_t cycles_per_usec; }; #endif // __precision_timer.h sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/forkexec.h0000644000175000017500000000036211754453700020267 0ustar miramira#ifndef __forkexec_h__ #define __forkexec_h__ #include pid_t forkexec(char **argv, char **envp, int outpipe[2], int inpipe[2]); pid_t forkexec_cmd(char *cmd, char **envp, int outpipe[2], int inpipe[2]); #endif // __forkexec_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/pthread_spinlock.h0000644000175000017500000000207411754453700022014 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __pthread_mutex_spinlock_h__ #define __pthread_mutex_spinlock_h__ #include extern unsigned int pthread_calibrate_spinlimit (); extern void pthread_set_spinlimit (unsigned int spins); extern int pthread_mutex_spinlock (pthread_mutex_t *mp); #endif // __pthread_mutex_spinlock_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/scale.h0000644000175000017500000000251211754453700017547 0ustar miramira/* Copyright (C) 2000 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __pbd_scale_h__ #define __pbd_scale_h__ #include inline float scale (float value, float lower, float upper) { return fabs (lower + value) / (upper-lower); } inline float scale_with_range (float value, float lower, float range) { return fabs (lower + value) / range; } inline float scale_to (float value, float lower, float upper, float to) { return (fabs (lower + value) / (upper-lower)) * to; } inline float scale_to_with_range (float value, float lower, float range, float to) { return (fabs (lower + value) / range) * to; } #endif /* __pbd_scale_h__ */ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/linux_platform.h0000644000175000017500000000207711754453700021531 0ustar miramira/* Copyright (C) 1999 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __linux_platform_h__ #define __linux_platform_h__ #include class LinuxPlatform : public Platform { public: LinuxPlatform (); ~LinuxPlatform () {}; int pre_config (); int post_config (); int pre_ui (); int post_ui (); int dsp_startup() { return 0; } }; #endif // __linux_platform_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/unescape.h0000644000175000017500000000014111754453700020257 0ustar miramira#ifndef __unescape_h__ #define __unescape_h__ void unescape (char *); #endif // __unescape_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/thread.h0000644000175000017500000000566211754453700017740 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __qm_thread_h__ #define __qm_thread_h__ #include /* A generic base class for Quasimodo objects requiring their own thread to do work. */ class QMThread { public: QMThread (const char *name, void *(start)(void *), void *, bool realtime = false, int rt_priority = 10); virtual ~QMThread(); int run (); void poke (); void pause (); void stop (); void *wait (); /* This doesn't guarantee anything about the state of the thread, but if you do things the right way, and make sure that the do_work() routine checks work_no_more() at the right times, and that the thread is awake, then calling this will cause the thread to exit fairly quickly. */ void halt() { _must_exit = true ; } void exit (void *status); pthread_t thread_id() { return _thread; } bool thread_ok () { return _have_thread; } bool thread_active() { return _thread_active; } bool thread_running () { /* XXX not atomic */ return _running && _thread_active; } bool thread_waiting () { return _thread_waiting; } static void try_to_kill_all_threads() { all_threads_must_die = true; } protected: void *main (); bool work_no_more () { return (!_running || _must_exit || all_threads_must_die); } bool myself () { return pthread_equal (_thread, pthread_self()); } void suspend() { _running = false; } void lock (pthread_mutex_t *lock) { pthread_mutex_lock (lock); } void unlock (pthread_mutex_t *lock) { pthread_mutex_unlock (lock); } virtual void *do_work () = 0; private: const char *_name; bool _must_exit; bool _running; bool _thread_active; bool _thread_waiting; bool _have_thread; size_t work_cnt; pthread_mutex_t status_lock; pthread_cond_t wake_up; /* protected by status_lock */ pthread_cond_t asleep; /* protected by status_lock */ pthread_cond_t running; /* protected by status_lock */ pthread_cond_t exited; /* protected by status_lock */ pthread_t _thread; void lock () { pthread_mutex_lock (&status_lock); } void unlock () { pthread_mutex_unlock (&status_lock); } static bool all_threads_must_die; static void signal_catcher (int sig); void setup_signals (); }; #endif // __qm_thread_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/selectable.h0000644000175000017500000000411212230252703020547 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __selectable_h__ #define __selectable_h__ #include #include #include #include #include namespace Select { enum Condition { Readable = 0x1, Writable = 0x2, Exception = 0x4 }; class Selectable : public sigc::trackable { public: Selectable (int fd); Selectable (const std::string &, int flags, int mode = 0); Selectable (FILE *); ~Selectable (); sigc::signal2 readable; sigc::signal2 writable; sigc::signal2 exceptioned; int fd() { return _fd; } bool ok() { return _ok; } protected: void selected (unsigned int condition); int condition; int _fd; friend class Selector; private: enum { fromFD, fromPath, fromFILE }; bool _ok; int _type; std::string path; }; class Selector { private: int post_select (fd_set *, fd_set *, fd_set *); int _max_fd; typedef std::list Selectables; Selectables selectables; pthread_mutex_t list_lock; static bool use_list_lock; public: Selector (); void multithreaded (bool yn) { use_list_lock = yn; } void add (int condition, Selectable *s); void remove (Selectable *); int select (unsigned long usecs); }; } /* namespace */ #endif // __selectable_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/abstract_ui.h0000644000175000017500000000312112230252703020743 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __pbd_abstract_ui_h__ #define __pbd_abstract_ui_h__ #include #include class Touchable; class AbstractUI : public Receiver { public: enum RequestType { ErrorMessage, Quit, CallSlot, CallSlotLocked, TouchDisplay, StateChange, SetTip, AddIdle, AddTimeout, }; bool ok() { return _ok; } AbstractUI () {} virtual ~AbstractUI() {} virtual void run (Receiver &old_receiver) = 0; virtual void quit () = 0; virtual bool running () = 0; virtual void request (RequestType) = 0; virtual void touch_display (Touchable *) = 0; virtual void call_slot (sigc::slot0) = 0; virtual bool caller_is_gui_thread() = 0; /* needed to be a receiver ... */ virtual void receive (Transmitter::Channel, const char *) = 0; protected: bool _ok; }; #endif // __pbd_abstract_ui_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/lock_free_fifo.h0000644000175000017500000000347211754453700021422 0ustar miramira/* Copyright (C) 2000 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __pbd_lockfree_fifo_h__ #define __pbd_lockfree_fifo_h__ #include #include template class LockFreeFIFO { public: LockFreeFIFO (int sz) { size = sz; push_ptr = 0; pop_ptr = 0; buf = new T[size]; }; virtual ~LockFreeFIFO() { delete [] buf; } int pop (T& r) { if (pop_ptr == push_ptr) { return -1; } else { r = buf[pop_ptr]; pop_ptr++; if (pop_ptr >= size) { pop_ptr = 0; } return 0; } } int top (T& r) { if (pop_ptr == push_ptr) { return -1; } else { r = buf[pop_ptr]; return 0; } } int push (T& t) { if ((size_t) abs (static_cast(push_ptr - pop_ptr)) < size) { buf[push_ptr] = t; push_ptr++; if (push_ptr >= size) { push_ptr = 0; } return 0; } else { return -1; } } protected: T *buf; volatile size_t push_ptr; volatile size_t pop_ptr; size_t size; }; #endif /* __pbd_lockfree_fifo_h__ */ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/platform_factory.h0000644000175000017500000000030011754453700022024 0ustar miramira#ifndef __platform_factory__ #define __platform_factory__ #include class PlatformFactory { public: static Platform* create_platform (); }; #endif // __platform_factory__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/pathscanner.h0000644000175000017500000000277611754453700021002 0ustar miramira#ifndef __libmisc_pathscanner_h__ #define __libmisc_pathscanner_h__ #include #include #include using std::string; using std::vector; class PathScanner { public: vector *operator() (const string &dirpath, bool (*filter)(const string &, void *arg), void *arg, bool match_fullpath = true, bool return_fullpath = true, long limit = -1) { return run_scan (dirpath, (bool (PathScanner::*)(const string &)) 0, filter, arg, match_fullpath, return_fullpath, limit); } vector *operator() (const string &dirpath, const string ®exp, bool match_fullpath = true, bool return_fullpath = true, long limit = -1); string *find_first (const string &dirpath, const string ®exp, bool match_fullpath = true, bool return_fullpath = true); string *find_first (const string &dirpath, bool (*filter)(const string &, void *), void *arg, bool match_fullpath = true, bool return_fullpath = true); private: regex_t compiled_pattern; bool regexp_filter (const string &str) { return regexec (&compiled_pattern, str.c_str(), 0, 0, 0) == 0; } vector *run_scan (const string &dirpath, bool (PathScanner::*mfilter) (const string &), bool (*filter)(const string &, void *), void *arg, bool match_fullpath, bool return_fullpath, long limit); }; #endif // __libmisc_pathscanner_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/position.h0000644000175000017500000000171311754453700020326 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __qui_position_h__ #define __qui_position_h__ enum Position { Top, Left, Right, Bottom, UpperLeft, LowerLeft, UpperRight, LowerRight, Center, Nowhere, }; #endif // __qui_position_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/pthread_utils.h0000644000175000017500000000107212230252703021315 0ustar miramira#ifndef __pbd_pthread_utils__ #define __pbd_pthread_utils__ #include #include #include #include int pthread_create_and_store (std::string name, pthread_t *thread, pthread_attr_t *attr, void * (*start_routine)(void *), void * arg); void pthread_cancel_one (pthread_t thread); void pthread_kill_all (int signum); void pthread_cancel_all (); void pthread_exit_pbd (void* status); std::string pthread_name (); namespace PBD { extern sigc::signal1 ThreadCreated; } #endif /* __pbd_pthread_utils__ */ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/rt.h0000644000175000017500000000163011754453700017105 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __libmisc_rt_h__ #define __libmisc_rt_h__ extern int become_real_time_thread (int rt_priorty = 10, bool fifo = true); #endif // __libmisc_rt_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/solaris_platform.h0000644000175000017500000000213411754453700022040 0ustar miramira/* Copyright (C) 1999 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __solaris_platform_h__ #define __solaris_platform_h__ #include class SolarisPlatform : public Platform { public: SolarisPlatform () : Platform () {}; ~SolarisPlatform () {}; int pre_config (); int post_config (); int pre_ui (); int post_ui (); int dsp_startup() { return 0; } }; #endif // __solaris_platform_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/stl_delete.h0000644000175000017500000000510412274720156020604 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __libmisc_stl_delete_h__ #define __libmisc_stl_delete_h__ /* To actually use any of these deletion functions, you need to first include the revelant container type header. */ #if defined(_CPP_VECTOR) || defined(_GLIBCXX_VECTOR) || defined(__SGI_STL_VECTOR) || defined(_LIBCPP_VECTOR) template void vector_delete (std::vector *vec) { typename std::vector::iterator i; for (i = vec->begin(); i != vec->end(); i++) { delete *i; } vec->clear (); } #endif // _CPP_VECTOR || _GLIBCXX_VECTOR || __SGI_STL_VECTOR #if defined(_CPP_MAP) || defined(_GLIBCXX_MAP) || defined(__SGI_STL_MAP) template void map_delete (std::map *m) { typename std::map::iterator i; for (i = m->begin(); i != m->end(); i++) { delete (*i).second; } m->clear (); } #endif // _CPP_MAP || _GLIBCXX_MAP || __SGI_STL_MAP #if defined(_CPP_LIST) || defined(_GLIBCXX_LIST) || defined(__SGI_STL_LIST) template void list_delete (std::list *l) { typename std::list::iterator i; for (i = l->begin(); i != l->end(); i++) { delete (*i); } l->clear (); } #endif // _CPP_LIST || _GLIBCXX_LIST || __SGI_STL_LIST #if defined(_CPP_SLIST) || defined(_GLIBCXX_SLIST) || defined(__SGI_STL_SLIST) template void slist_delete (std::slist *l) { typename std::slist::iterator i; for (i = l->begin(); i != l->end(); i++) { delete (*i); } l->clear (); } #endif // _CPP_SLIST || _GLIBCXX_SLIST || __SGI_STL_SLIST #if defined(_CPP_SET) || defined(_GLIBCXX_SET) || defined(__SGI_STL_SET) template void set_delete (std::set *sset) { typename std::set::iterator i; for (i = sset->begin(); i != sset->end(); i++) { delete *i; } sset->erase (sset->begin(), sset->end()); } #endif // _CPP_SET || _GLIBCXX_SET || __SGI_STL_SET #endif // __libmisc_stl_delete_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/platform.h0000644000175000017500000000233111754453700020303 0ustar miramira/* Copyright (C) 1999 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __qm_platform_h__ #define __qm_platform_h__ class Platform { public: Platform () { thePlatform = this; } virtual ~Platform () {} virtual int pre_config () { return 0;} virtual int post_config () { return 0;} virtual int pre_ui () { return 0; } virtual int post_ui () { return 0; } virtual int dsp_startup() { return 0; } static Platform *instance() { return thePlatform; } private: static Platform *thePlatform; }; #endif // __qm_platform_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/failed_constructor.h0000644000175000017500000000042711754453700022354 0ustar miramira#ifndef __pbd_failed_constructor_h__ #define __pbd_failed_constructor_h__ #include class failed_constructor : public std::exception { public: virtual const char *what() const throw() { return "failed constructor"; } }; #endif /* __pbd_failed_constructor_h__ */ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/touchable.h0000644000175000017500000000412711754453700020432 0ustar miramira/* Copyright (C) 1999 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __pbd_touchable_h__ #define __pbd_touchable_h__ class Touchable { public: Touchable() : _delete_after_touch (false) {} virtual ~Touchable() {} void set_delete_after_touch (bool yn) { _delete_after_touch = yn; } bool delete_after_touch() const { return _delete_after_touch; } virtual void touch () = 0; protected: bool _delete_after_touch; }; template class DynamicTouchable : public Touchable { public: DynamicTouchable (T& t, void (T::*m)(void)) : object (t), method (m) { set_delete_after_touch (true); } void touch () { (object.*method)(); } protected: T& object; void (T::*method)(void); }; template class DynamicTouchable1 : public Touchable { public: DynamicTouchable1 (T1& t, void (T1::*m)(T2), T2 a) : object (t), method (m), arg (a) { set_delete_after_touch (true); } void touch () { (object.*method)(arg); } protected: T1& object; void (T1::*method)(T2); T2 arg; }; template class DynamicTouchable2 : public Touchable { public: DynamicTouchable2 (T1& t, void (T1::*m)(T2, T3), T2 a1, T3 a2) : object (t), method (m), arg1 (a1), arg2 (a2) { set_delete_after_touch (true); } void touch () { (object.*method)(arg1, arg2); } protected: T1& object; void (T1::*method)(T2,T3); T2 arg1; T3 arg2; }; #endif // __pbd_touchable_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/dirname.h0000644000175000017500000000033011754453700020073 0ustar miramira#ifndef __stupid_dirname_h__ #define __stupid_dirname_h__ #include namespace PBD { extern char *dirname (const char *); extern std::string dirname (const std::string); } #endif // __stupid_dirname_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/ellipsoid.h0000644000175000017500000000333111754453700020444 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __qm_ellipsoid_h__ #define __qm_ellipsoid_h__ struct Arc { int rect_x; int rect_y; int rect_h; int rect_w; int start_angle; int arc_angle; bool counter_clockwise; }; class Ellipsoid { int start_x; int end_x; int start_y; int end_y; static const unsigned int narcs; public: Arc arc[2]; Ellipsoid () { start_x = -1; end_x = -1; } bool ready() { return start_x != -1 && end_x != -1; } void set_start (int x, int y); void set_end (int x, int y); void compute (); void set_start_angle (int n, int which_arc = -1) { if (which_arc < 0) { arc[0].start_angle = n * 64; arc[1].start_angle = n * 64; } else if (which_arc < (int) narcs) { arc[which_arc].start_angle = n * 64; } } void set_arc_angle (int n, int which_arc = -1) { if (which_arc < 0) { arc[0].arc_angle = n * 64; arc[1].arc_angle = n * 64; } else if (which_arc < (int) narcs) { arc[which_arc].arc_angle = n * 64; } } }; #endif // __qm_ellipsoid_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/undo.h0000644000175000017500000000431212230252703017413 0ustar miramira/* Copyright (C) 2002 Brett Viren & Paul Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __lib_pbd_undo_h__ #define __lib_pbd_undo_h__ #include #include #include #include using std::string; using std::list; typedef sigc::slot0 UndoAction; class UndoCommand { public: UndoCommand (); UndoCommand (const UndoCommand&); UndoCommand& operator= (const UndoCommand&); void clear (); void add_undo (const UndoAction&); void add_redo (const UndoAction&); void add_redo_no_execute (const UndoAction&); void undo(); void redo(); void set_name (const string& str) { _name = str; } const string& name() const { return _name; } void set_timestamp (struct timeval &t) { _timestamp = t; } const struct timeval& timestamp() const { return _timestamp; } private: list redo_actions; list undo_actions; struct timeval _timestamp; string _name; }; class UndoHistory { public: UndoHistory() {} ~UndoHistory() {} void add (UndoCommand uc); void undo (unsigned int n); void redo (unsigned int n); unsigned long undo_depth() const { return UndoList.size(); } unsigned long redo_depth() const { return RedoList.size(); } string next_undo() const { return (UndoList.empty() ? string("") : UndoList.back().name()); } string next_redo() const { return (RedoList.empty() ? string("") : RedoList.back().name()); } void clear_redo (); private: list UndoList; list RedoList; }; #endif /* __lib_pbd_undo_h__ */ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/transmitter.h0000644000175000017500000000516412230252703021030 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __libmisc_transmitter_h__ #define __libmisc_transmitter_h__ #include #include #include using std::cout; using std::cerr; using std::endl; class Transmitter : public std::stringstream, public sigc::trackable { public: enum Channel { Info, Error, Warning, Fatal, Throw }; Transmitter (Channel); sigc::signal2 &sender() { return *send; } bool does_not_return (); protected: virtual void deliver (); friend std::ostream& endmsg (std::ostream &); private: Channel channel; sigc::signal2 *send; sigc::signal2 info; sigc::signal2 warning; sigc::signal2 error; sigc::signal2 fatal; }; /* for EGCS 2.91.66, if this function is not compiled within the same compilation unit as the one where a ThrownError is thrown, then nothing will catch the error. This is a pretty small function, so inlining it here seems like a reasonable workaround. */ inline std::ostream & endmsg (std::ostream &ostr) { Transmitter *t; /* There is a serious bug in the Cygnus/GCC libstdc++ library: cout is not actually an ostream, but a trick was played to make the compiler think that it is. This will cause the dynamic_cast<> to fail with SEGV. So, first check to see if ostr == cout, and handle it specially. */ if (&ostr == &cout) { cout << endl; return ostr; } else if (&ostr == &cerr) { cerr << endl; return ostr; } if ((t = dynamic_cast (&ostr)) != 0) { t->deliver (); } else { /* hmm. not a Transmitter, so just put a newline on it and assume that that will be enough. */ ostr << endl; } return ostr; } extern "C" { void pbd_c_error (const char *); } #endif // __libmisc_transmitter_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/stl_functors.h0000644000175000017500000000445711754453700021217 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __stl_functors_h__ #define __stl_functors_h__ #include #ifndef LESS_STRING_P struct less { bool operator()(std::string *s1, std::string *s2) const { return *s1 < *s2; } }; #define LESS_STRING_P #endif // LESS_STRING_P #ifndef LESS_CONST_STRING_P struct less { bool operator()(const std::string *s1, const std::string *s2) const { return *s1 < *s2; } }; #define LESS_CONST_STRING_P #endif // LESS_CONST_STRING_P #ifndef LESS_CONST_CHAR_P struct less { bool operator()(const char* s1, const char* s2) const { return strcmp(s1, s2) < 0; } }; #define LESS_CONST_CHAR_P #endif // LESS_CONST_CHAR_P #ifndef LESS_CONST_FLOAT_P struct less { bool operator()(const float *n1, const float *n2) const { return *n1 < *n2; } }; #define LESS_CONST_FLOAT_P #endif // LESS_CONST_FLOAT_P #ifndef EQUAL_TO_CONST_CHAR_P struct equal_to { bool operator()(const char *s1, const char *s2) const { return strcmp (s1, s2) == 0; } }; #define EQUAL_TO_CONST_CHAR_P #endif // EQUAL_TO_CONST_CHAR_P #ifndef EQUAL_TO_STRING_P struct equal_to { bool operator()(const std::string *s1, const std::string *s2) const { return *s1 == *s2; } }; #define EQUAL_TO_STRING_P #endif // EQUAL_TO_STRING_P #ifndef LESS_CONST_STRING_R struct less { bool operator() (const std::string &s1, const std::string &s2) { return s1 < s2; } }; #define LESS_CONST_STRING_R #endif // EQUAL_TO_STRING_P #endif // __stl_functors_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/rtthread.h0000644000175000017500000000174011754453700020277 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __rtthread_h__ #define __rtthread_h__ #include extern int pthread_create_realtime (pthread_t *new_thread, void *(*start)(void *), void *arg, int priority = 10); #endif // __rtthread_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/version.h0000644000175000017500000000025411754453700020146 0ustar miramira#ifndef __pbd_version_h__ #define __pbd_version_h__ extern int pbd_major_version; extern int pbd_minor_version; extern int pbd_micro_version; #endif // __pbd_version_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/Makefile.am0000644000175000017500000000160011754453700020340 0ustar miramiraMAINTAINERCLEANFILES = autom4te.cache Makefile.in noinst_HEADERS = \ abstract_ui.h \ atomic.h \ basename.h \ compose.h \ datum.h \ dirname.h \ ellipsoid.h \ error.h \ failed_constructor.h \ fastlog.h \ forkexec.h \ ftw.h \ irix_platform.h \ linux_platform.h \ lock_free_fifo.h \ lockmonitor.h \ mountpoint.h \ pathscanner.h \ platform_factory.h \ platform.h \ pool.h \ position.h \ precision_timer.h \ pthread_spinlock.h \ pthread_utils.h \ rcpointer.h \ receiver.h \ relation.h \ restartable_rw.h \ ringbuffer.h \ rt.h \ rtthread.h \ scale.h \ selectable.h \ solaris_platform.h \ stl_delete.h \ stl_functors.h \ strsub.h \ textreceiver.h \ thread.h \ thrown_error.h \ touchable.h \ transmitter.h \ types.h \ undo.h \ unescape.h \ version.h \ xml++.h sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/rcpointer.h0000644000175000017500000000300411754453700020462 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __qm_rcpointer_h__ #define __qm_rcpointer_h__ template class RCPointer { public: T *operator->() { return _ptr; } bool operator==(T *p) { return _ptr == p; } bool operator!=(T *p) { return _ptr != p; } int refcount() { return _ptr->count; } RCPointer () { _ptr = 0; } RCPointer (T *p) : _ptr (p) { if (_ptr) _ptr->count++; } RCPointer (const RCPointer& r) : _ptr (r._ptr) { if (_ptr) _ptr->count++; } RCPointer &operator= (const RCPointer &r) { if (_ptr == r._ptr) return *this; if (_ptr && --_ptr->count == 0) { delete _ptr; } _ptr = r._ptr; if (_ptr) _ptr->count++; return *this; } ~RCPointer () { if (_ptr && --_ptr->count == 0) { delete _ptr; } } private: T *_ptr; }; #endif // __qm_rcpointer_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/compose.h0000644000175000017500000002732411754453700020135 0ustar miramira/* Defines String::compose(fmt, arg...) for easy, i18n-friendly * composition of strings. * * Version 1.0. * * Copyright (c) 2002 Ole Laursen . * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2.1 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA. */ // // Basic usage is like // // std::cout << String::compose("This is a %1x%2 matrix.", rows, cols); // // See http://www.cs.auc.dk/~olau/compose/ or the included README.compose for // more details. // #ifndef STRING_COMPOSE_H #define STRING_COMPOSE_H #include #include #include #include // for multimap namespace StringPrivate { // the actual composition class - using string::compose is cleaner, so we // hide it here class Composition { public: // initialize and prepare format string on the form "text %1 text %2 etc." explicit Composition(std::string fmt); // supply an replacement argument starting from %1 template Composition &arg(const T &obj); // compose and return string std::string str() const; private: std::ostringstream os; int arg_no; // we store the output as a list - when the output string is requested, the // list is concatenated to a string; this way we can keep iterators into // the list instead of into a string where they're possibly invalidated on // inserting a specification string typedef std::list output_list; output_list output; // the initial parse of the format string fills in the specification map // with positions for each of the various %?s typedef std::multimap specification_map; specification_map specs; }; // helper for converting spec string numbers inline int char_to_int(char c) { switch (c) { case '0': return 0; case '1': return 1; case '2': return 2; case '3': return 3; case '4': return 4; case '5': return 5; case '6': return 6; case '7': return 7; case '8': return 8; case '9': return 9; default: return -1000; } } inline bool is_number(int n) { switch (n) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': return true; default: return false; } } // implementation of class Composition template inline Composition &Composition::arg(const T &obj) { os << obj; std::string rep = os.str(); if (!rep.empty()) { // manipulators don't produce output for (specification_map::const_iterator i = specs.lower_bound(arg_no), end = specs.upper_bound(arg_no); i != end; ++i) { output_list::iterator pos = i->second; ++pos; output.insert(pos, rep); } os.str(std::string()); //os.clear(); ++arg_no; } return *this; } inline Composition::Composition(std::string fmt) : arg_no(1) { std::string::size_type b = 0, i = 0; // fill in output with the strings between the %1 %2 %3 etc. and // fill in specs with the positions while (i < fmt.length()) { if (fmt[i] == '%' && i + 1 < fmt.length()) { if (fmt[i + 1] == '%') { // catch %% fmt.replace(i, 2, "%"); ++i; } else if (is_number(fmt[i + 1])) { // aha! a spec! // save string output.push_back(fmt.substr(b, i - b)); int n = 1; // number of digits int spec_no = 0; do { spec_no += char_to_int(fmt[i + n]); spec_no *= 10; ++n; } while (i + n < fmt.length() && is_number(fmt[i + n])); spec_no /= 10; output_list::iterator pos = output.end(); --pos; // safe since we have just inserted a string> specs.insert(specification_map::value_type(spec_no, pos)); // jump over spec string i += n; b = i; } else ++i; } else ++i; } if (i - b > 0) // add the rest of the string output.push_back(fmt.substr(b, i - b)); } inline std::string Composition::str() const { // assemble string std::string str; for (output_list::const_iterator i = output.begin(), end = output.end(); i != end; ++i) str += *i; return str; } } // now for the real thing(s) //namespace String //{ // a series of functions which accept a format string on the form "text %1 // more %2 less %3" and a number of templated parameters and spits out the // composited string template inline std::string compose(const std::string &fmt, const T1 &o1) { StringPrivate::Composition c(fmt); c.arg(o1); return c.str(); } template inline std::string compose(const std::string &fmt, const T1 &o1, const T2 &o2) { StringPrivate::Composition c(fmt); c.arg(o1).arg(o2); return c.str(); } template inline std::string compose(const std::string &fmt, const T1 &o1, const T2 &o2, const T3 &o3) { StringPrivate::Composition c(fmt); c.arg(o1).arg(o2).arg(o3); return c.str(); } template inline std::string compose(const std::string &fmt, const T1 &o1, const T2 &o2, const T3 &o3, const T4 &o4) { StringPrivate::Composition c(fmt); c.arg(o1).arg(o2).arg(o3).arg(o4); return c.str(); } template inline std::string compose(const std::string &fmt, const T1 &o1, const T2 &o2, const T3 &o3, const T4 &o4, const T5 &o5) { StringPrivate::Composition c(fmt); c.arg(o1).arg(o2).arg(o3).arg(o4).arg(o5); return c.str(); } template inline std::string compose(const std::string &fmt, const T1 &o1, const T2 &o2, const T3 &o3, const T4 &o4, const T5 &o5, const T6 &o6) { StringPrivate::Composition c(fmt); c.arg(o1).arg(o2).arg(o3).arg(o4).arg(o5).arg(o6); return c.str(); } template inline std::string compose(const std::string &fmt, const T1 &o1, const T2 &o2, const T3 &o3, const T4 &o4, const T5 &o5, const T6 &o6, const T7 &o7) { StringPrivate::Composition c(fmt); c.arg(o1).arg(o2).arg(o3).arg(o4).arg(o5).arg(o6).arg(o7); return c.str(); } template inline std::string compose(const std::string &fmt, const T1 &o1, const T2 &o2, const T3 &o3, const T4 &o4, const T5 &o5, const T6 &o6, const T7 &o7, const T8 &o8) { StringPrivate::Composition c(fmt); c.arg(o1).arg(o2).arg(o3).arg(o4).arg(o5).arg(o6).arg(o7).arg(o8); return c.str(); } template inline std::string compose(const std::string &fmt, const T1 &o1, const T2 &o2, const T3 &o3, const T4 &o4, const T5 &o5, const T6 &o6, const T7 &o7, const T8 &o8, const T9 &o9) { StringPrivate::Composition c(fmt); c.arg(o1).arg(o2).arg(o3).arg(o4).arg(o5).arg(o6).arg(o7).arg(o8).arg(o9); return c.str(); } template inline std::string compose(const std::string &fmt, const T1 &o1, const T2 &o2, const T3 &o3, const T4 &o4, const T5 &o5, const T6 &o6, const T7 &o7, const T8 &o8, const T9 &o9, const T10 &o10) { StringPrivate::Composition c(fmt); c.arg(o1).arg(o2).arg(o3).arg(o4).arg(o5).arg(o6).arg(o7).arg(o8).arg(o9) .arg(o10); return c.str(); } template inline std::string compose(const std::string &fmt, const T1 &o1, const T2 &o2, const T3 &o3, const T4 &o4, const T5 &o5, const T6 &o6, const T7 &o7, const T8 &o8, const T9 &o9, const T10 &o10, const T11 &o11) { StringPrivate::Composition c(fmt); c.arg(o1).arg(o2).arg(o3).arg(o4).arg(o5).arg(o6).arg(o7).arg(o8).arg(o9) .arg(o10).arg(o11); return c.str(); } template inline std::string compose(const std::string &fmt, const T1 &o1, const T2 &o2, const T3 &o3, const T4 &o4, const T5 &o5, const T6 &o6, const T7 &o7, const T8 &o8, const T9 &o9, const T10 &o10, const T11 &o11, const T12 &o12) { StringPrivate::Composition c(fmt); c.arg(o1).arg(o2).arg(o3).arg(o4).arg(o5).arg(o6).arg(o7).arg(o8).arg(o9) .arg(o10).arg(o11).arg(o12); return c.str(); } template inline std::string compose(const std::string &fmt, const T1 &o1, const T2 &o2, const T3 &o3, const T4 &o4, const T5 &o5, const T6 &o6, const T7 &o7, const T8 &o8, const T9 &o9, const T10 &o10, const T11 &o11, const T12 &o12, const T13 &o13) { StringPrivate::Composition c(fmt); c.arg(o1).arg(o2).arg(o3).arg(o4).arg(o5).arg(o6).arg(o7).arg(o8).arg(o9) .arg(o10).arg(o11).arg(o12).arg(o13); return c.str(); } template inline std::string compose(const std::string &fmt, const T1 &o1, const T2 &o2, const T3 &o3, const T4 &o4, const T5 &o5, const T6 &o6, const T7 &o7, const T8 &o8, const T9 &o9, const T10 &o10, const T11 &o11, const T12 &o12, const T13 &o13, const T14 &o14) { StringPrivate::Composition c(fmt); c.arg(o1).arg(o2).arg(o3).arg(o4).arg(o5).arg(o6).arg(o7).arg(o8).arg(o9) .arg(o10).arg(o11).arg(o12).arg(o13).arg(o14); return c.str(); } template inline std::string compose(const std::string &fmt, const T1 &o1, const T2 &o2, const T3 &o3, const T4 &o4, const T5 &o5, const T6 &o6, const T7 &o7, const T8 &o8, const T9 &o9, const T10 &o10, const T11 &o11, const T12 &o12, const T13 &o13, const T14 &o14, const T15 &o15) { StringPrivate::Composition c(fmt); c.arg(o1).arg(o2).arg(o3).arg(o4).arg(o5).arg(o6).arg(o7).arg(o8).arg(o9) .arg(o10).arg(o11).arg(o12).arg(o13).arg(o14).arg(o15); return c.str(); } //} #endif // STRING_COMPOSE_H sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/thrown_error.h0000644000175000017500000000216411754453700021215 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __qm_thrown_error_h__ #define __qm_thrown_error_h__ #include "transmitter.h" #define SAFE_THROW(T) \ T *sent = new T; \ (*sent) << rdbuf(); \ throw sent class ThrownError : public Transmitter { public: ThrownError () : Transmitter (Transmitter::Throw) {} protected: virtual void deliver () = 0; }; #endif // __qm_thrown_error_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/error.h0000644000175000017500000000173111754453700017613 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __libmisc_error_h__ #define __libmisc_error_h__ #include "transmitter.h" extern Transmitter error; extern Transmitter info; extern Transmitter warning; extern Transmitter fatal; #endif // __libmisc_error_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/receiver.h0000644000175000017500000000234212230252703020253 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __libmisc_receiver_h__ #define __libmisc_receiver_h__ #include #include #include "transmitter.h" using std::vector; class strstream; class Receiver : public sigc::trackable { public: Receiver (); virtual ~Receiver (); void listen_to (Transmitter &); void hangup (); protected: virtual void receive (Transmitter::Channel, const char *) = 0; private: vector connections; }; #endif // __libmisc_receiver_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/atomic.h0000644000175000017500000007225511754453700017747 0ustar miramira/* Copyright (C) 2001 Paul Davis and others (see below) Code derived from various headers from the Linux kernel. Copyright attributions maintained where present. This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __libpbd_atomic_h__ #define __libpbd_atomic_h__ #ifdef HAVE_CONFIG_H #include /* config.h c/o auto* tools, wherever it may be */ #endif #ifdef HAVE_SMP /* a macro we control, to manage ... */ #define CONFIG_SMP /* ... the macro the kernel headers use */ #endif #if defined(__powerpc__) || defined(__ppc__) /* * BK Id: SCCS/s.atomic.h 1.15 10/28/01 10:37:22 trini */ /* * PowerPC atomic operations */ #ifndef _ASM_PPC_ATOMIC_H_ #define _ASM_PPC_ATOMIC_H_ typedef struct { volatile int counter; } atomic_t; #define ATOMIC_INIT(i) { (i) } #define atomic_read(v) ((v)->counter) #define atomic_set(v,i) (((v)->counter) = (i)) extern void atomic_clear_mask(unsigned long mask, unsigned long *addr); extern void atomic_set_mask(unsigned long mask, unsigned long *addr); #ifdef CONFIG_SMP #define SMP_ISYNC "\n\tisync" #else #define SMP_ISYNC #endif static __inline__ void atomic_add(int a, atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%3\n\ add %0,%2,%0\n\ stwcx. %0,0,%3\n\ bne- 1b" : "=&r" (t), "=m" (v->counter) : "r" (a), "r" (&v->counter), "m" (v->counter) : "cc"); } static __inline__ int atomic_add_return(int a, atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%2\n\ add %0,%1,%0\n\ stwcx. %0,0,%2\n\ bne- 1b" SMP_ISYNC : "=&r" (t) : "r" (a), "r" (&v->counter) : "cc", "memory"); return t; } static __inline__ void atomic_sub(int a, atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%3\n\ subf %0,%2,%0\n\ stwcx. %0,0,%3\n\ bne- 1b" : "=&r" (t), "=m" (v->counter) : "r" (a), "r" (&v->counter), "m" (v->counter) : "cc"); } static __inline__ int atomic_sub_return(int a, atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%2\n\ subf %0,%1,%0\n\ stwcx. %0,0,%2\n\ bne- 1b" SMP_ISYNC : "=&r" (t) : "r" (a), "r" (&v->counter) : "cc", "memory"); return t; } static __inline__ void atomic_inc(atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%2\n\ addic %0,%0,1\n\ stwcx. %0,0,%2\n\ bne- 1b" : "=&r" (t), "=m" (v->counter) : "r" (&v->counter), "m" (v->counter) : "cc"); } static __inline__ int atomic_inc_return(atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%1\n\ addic %0,%0,1\n\ stwcx. %0,0,%1\n\ bne- 1b" SMP_ISYNC : "=&r" (t) : "r" (&v->counter) : "cc", "memory"); return t; } static __inline__ void atomic_dec(atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%2\n\ addic %0,%0,-1\n\ stwcx. %0,0,%2\n\ bne- 1b" : "=&r" (t), "=m" (v->counter) : "r" (&v->counter), "m" (v->counter) : "cc"); } static __inline__ int atomic_dec_return(atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%1\n\ addic %0,%0,-1\n\ stwcx. %0,0,%1\n\ bne- 1b" SMP_ISYNC : "=&r" (t) : "r" (&v->counter) : "cc", "memory"); return t; } #define atomic_sub_and_test(a, v) (atomic_sub_return((a), (v)) == 0) #define atomic_dec_and_test(v) (atomic_dec_return((v)) == 0) /* * Atomically test *v and decrement if it is greater than 0. * The function returns the old value of *v minus 1. */ static __inline__ int atomic_dec_if_positive(atomic_t *v) { int t; __asm__ __volatile__( "1: lwarx %0,0,%1\n\ addic. %0,%0,-1\n\ blt- 2f\n\ stwcx. %0,0,%1\n\ bne- 1b" SMP_ISYNC "\n\ 2:" : "=&r" (t) : "r" (&v->counter) : "cc", "memory"); return t; } #define smp_mb__before_atomic_dec() smp_mb() #define smp_mb__after_atomic_dec() smp_mb() #define smp_mb__before_atomic_inc() smp_mb() #define smp_mb__after_atomic_inc() smp_mb() #endif /* _ASM_PPC_ATOMIC_H_ */ /***********************************************************************/ # else /* !PPC */ #if defined(__i386__) || defined(__x86_64__) #ifndef __ARCH_I386_ATOMIC__ #define __ARCH_I386_ATOMIC__ /* * Atomic operations that C can't guarantee us. Useful for * resource counting etc.. */ #ifdef CONFIG_SMP #define SMP_LOCK "lock ; " #else #define SMP_LOCK "" #endif /* * Make sure gcc doesn't try to be clever and move things around * on us. We need to use _exactly_ the address the user gave us, * not some alias that contains the same information. */ typedef struct { volatile int counter; } atomic_t; #define ATOMIC_INIT(i) { (i) } /** * atomic_read - read atomic variable * @v: pointer of type atomic_t * * Atomically reads the value of @v. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_read(v) ((v)->counter) /** * atomic_set - set atomic variable * @v: pointer of type atomic_t * @i: required value * * Atomically sets the value of @v to @i. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_set(v,i) (((v)->counter) = (i)) /** * atomic_add - add integer to atomic variable * @i: integer value to add * @v: pointer of type atomic_t * * Atomically adds @i to @v. Note that the guaranteed useful range * of an atomic_t is only 24 bits. */ static __inline__ void atomic_add(int i, atomic_t *v) { __asm__ __volatile__( SMP_LOCK "addl %1,%0" :"=m" (v->counter) :"ir" (i), "m" (v->counter)); } /** * atomic_sub - subtract the atomic variable * @i: integer value to subtract * @v: pointer of type atomic_t * * Atomically subtracts @i from @v. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ static __inline__ void atomic_sub(int i, atomic_t *v) { __asm__ __volatile__( SMP_LOCK "subl %1,%0" :"=m" (v->counter) :"ir" (i), "m" (v->counter)); } /** * atomic_sub_and_test - subtract value from variable and test result * @i: integer value to subtract * @v: pointer of type atomic_t * * Atomically subtracts @i from @v and returns * true if the result is zero, or false for all * other cases. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ static __inline__ int atomic_sub_and_test(int i, atomic_t *v) { unsigned char c; __asm__ __volatile__( SMP_LOCK "subl %2,%0; sete %1" :"=m" (v->counter), "=qm" (c) :"ir" (i), "m" (v->counter) : "memory"); return c; } /** * atomic_inc - increment atomic variable * @v: pointer of type atomic_t * * Atomically increments @v by 1. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ static __inline__ void atomic_inc(atomic_t *v) { __asm__ __volatile__( SMP_LOCK "incl %0" :"=m" (v->counter) :"m" (v->counter)); } /** * atomic_dec - decrement atomic variable * @v: pointer of type atomic_t * * Atomically decrements @v by 1. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ static __inline__ void atomic_dec(atomic_t *v) { __asm__ __volatile__( SMP_LOCK "decl %0" :"=m" (v->counter) :"m" (v->counter)); } /** * atomic_dec_and_test - decrement and test * @v: pointer of type atomic_t * * Atomically decrements @v by 1 and * returns true if the result is 0, or false for all other * cases. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ static __inline__ int atomic_dec_and_test(atomic_t *v) { unsigned char c; __asm__ __volatile__( SMP_LOCK "decl %0; sete %1" :"=m" (v->counter), "=qm" (c) :"m" (v->counter) : "memory"); return c != 0; } /** * atomic_inc_and_test - increment and test * @v: pointer of type atomic_t * * Atomically increments @v by 1 * and returns true if the result is zero, or false for all * other cases. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ static __inline__ int atomic_inc_and_test(atomic_t *v) { unsigned char c; __asm__ __volatile__( SMP_LOCK "incl %0; sete %1" :"=m" (v->counter), "=qm" (c) :"m" (v->counter) : "memory"); return c != 0; } /** * atomic_add_negative - add and test if negative * @v: pointer of type atomic_t * @i: integer value to add * * Atomically adds @i to @v and returns true * if the result is negative, or false when * result is greater than or equal to zero. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ static __inline__ int atomic_add_negative(int i, atomic_t *v) { unsigned char c; __asm__ __volatile__( SMP_LOCK "addl %2,%0; sets %1" :"=m" (v->counter), "=qm" (c) :"ir" (i), "m" (v->counter) : "memory"); return c; } /* These are x86-specific, used by some header files */ #define atomic_clear_mask(mask, addr) \ __asm__ __volatile__(SMP_LOCK "andl %0,%1" \ : : "r" (~(mask)),"m" (*addr) : "memory") #define atomic_set_mask(mask, addr) \ __asm__ __volatile__(SMP_LOCK "orl %0,%1" \ : : "r" (mask),"m" (*addr) : "memory") /* Atomic operations are already serializing on x86 */ #define smp_mb__before_atomic_dec() barrier() #define smp_mb__after_atomic_dec() barrier() #define smp_mb__before_atomic_inc() barrier() #define smp_mb__after_atomic_inc() barrier() #endif /* __ARCH_I386_ATOMIC__ */ /***********************************************************************/ #else /* !PPC && !i386 */ #ifdef __sparc__ /* atomic.h: These still suck, but the I-cache hit rate is higher. * * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu) * Copyright (C) 2000 Anton Blanchard (anton@linuxcare.com.au) */ #ifndef __ARCH_SPARC_ATOMIC__ #define __ARCH_SPARC_ATOMIC__ typedef struct { volatile int counter; } atomic_t; #ifndef CONFIG_SMP #define ATOMIC_INIT(i) { (i) } #define atomic_read(v) ((v)->counter) #define atomic_set(v, i) (((v)->counter) = i) #else /* We do the bulk of the actual work out of line in two common * routines in assembler, see arch/sparc/lib/atomic.S for the * "fun" details. * * For SMP the trick is you embed the spin lock byte within * the word, use the low byte so signedness is easily retained * via a quick arithmetic shift. It looks like this: * * ---------------------------------------- * | signed 24-bit counter value | lock | atomic_t * ---------------------------------------- * 31 8 7 0 */ #define ATOMIC_INIT(i) { (i << 8) } static __inline__ int atomic_read(atomic_t *v) { int ret = v->counter; while(ret & 0xff) ret = v->counter; return ret >> 8; } #define atomic_set(v, i) (((v)->counter) = ((i) << 8)) #endif static __inline__ int __atomic_add(int i, atomic_t *v) { register volatile int *ptr asm("g1"); register int increment asm("g2"); ptr = &v->counter; increment = i; __asm__ __volatile__( "mov %%o7, %%g4\n\t" "call ___atomic_add\n\t" " add %%o7, 8, %%o7\n" : "=&r" (increment) : "0" (increment), "r" (ptr) : "g3", "g4", "g7", "memory", "cc"); return increment; } static __inline__ int __atomic_sub(int i, atomic_t *v) { register volatile int *ptr asm("g1"); register int increment asm("g2"); ptr = &v->counter; increment = i; __asm__ __volatile__( "mov %%o7, %%g4\n\t" "call ___atomic_sub\n\t" " add %%o7, 8, %%o7\n" : "=&r" (increment) : "0" (increment), "r" (ptr) : "g3", "g4", "g7", "memory", "cc"); return increment; } #define atomic_add(i, v) ((void)__atomic_add((i), (v))) #define atomic_sub(i, v) ((void)__atomic_sub((i), (v))) #define atomic_dec_return(v) __atomic_sub(1, (v)) #define atomic_inc_return(v) __atomic_add(1, (v)) #define atomic_sub_and_test(i, v) (__atomic_sub((i), (v)) == 0) #define atomic_dec_and_test(v) (__atomic_sub(1, (v)) == 0) #define atomic_inc(v) ((void)__atomic_add(1, (v))) #define atomic_dec(v) ((void)__atomic_sub(1, (v))) #define atomic_add_negative(i, v) (__atomic_add((i), (v)) < 0) /* Atomic operations are already serializing */ #define smp_mb__before_atomic_dec() barrier() #define smp_mb__after_atomic_dec() barrier() #define smp_mb__before_atomic_inc() barrier() #define smp_mb__after_atomic_inc() barrier() #endif /* !(__ARCH_SPARC_ATOMIC__) */ /***********************************************************************/ #else #ifdef __ia64__ #ifndef __ARCH_IA64_ATOMIC__ #define __ARCH_IA64_ATOMIC__ typedef volatile int atomic_t; inline int atomic_read (const atomic_t * a) { return *a; } inline void atomic_set(atomic_t *a, int v) { *a = v; } inline void atomic_inc (atomic_t *v) { int old, r; do { old = atomic_read(v); __asm__ __volatile__ ("mov ar.ccv=%0;;" :: "rO" (old)); __asm__ __volatile__ ("cmpxchg4.acq %0=[%1],%2,ar.ccv" : "=r"(r) : "r"(v), "r"(old + 1) : "memory"); } while (r != old); } inline void atomic_dec (atomic_t *v) { int old, r; do { old = atomic_read(v); __asm__ __volatile__ ("mov ar.ccv=%0;;" :: "rO" (old)); __asm__ __volatile__ ("cmpxchg4.acq %0=[%1],%2,ar.ccv" : "=r"(r) : "r"(v), "r"(old - 1) : "memory"); } while (r != old); } inline int atomic_dec_and_test (atomic_t *v) { int old, r; do { old = atomic_read(v); __asm__ __volatile__ ("mov ar.ccv=%0;;" :: "rO" (old)); __asm__ __volatile__ ("cmpxchg4.acq %0=[%1],%2,ar.ccv" : "=r"(r) : "r"(v), "r"(old - 1) : "memory"); } while (r != old); return old != 1; } #endif /* !(__ARCH_IA64_ATOMIC__) */ #else #ifdef __alpha__ #ifndef _ALPHA_ATOMIC_H #define _ALPHA_ATOMIC_H /* * Atomic operations that C can't guarantee us. Useful for * resource counting etc... * * But use these as seldom as possible since they are much slower * than regular operations. */ /* * Counter is volatile to make sure gcc doesn't try to be clever * and move things around on us. We need to use _exactly_ the address * the user gave us, not some alias that contains the same information. */ typedef struct { volatile int counter; } atomic_t; #define ATOMIC_INIT(i) ( (atomic_t) { (i) } ) #define atomic_read(v) ((v)->counter) #define atomic_set(v,i) ((v)->counter = (i)) /* * To get proper branch prediction for the main line, we must branch * forward to code at the end of this object's .text section, then * branch back to restart the operation. */ static __inline__ void atomic_add(int i, atomic_t * v) { unsigned long temp; __asm__ __volatile__( "1: ldl_l %0,%1\n" " addl %0,%2,%0\n" " stl_c %0,%1\n" " beq %0,2f\n" ".subsection 2\n" "2: br 1b\n" ".previous" :"=&r" (temp), "=m" (v->counter) :"Ir" (i), "m" (v->counter)); } static __inline__ void atomic_sub(int i, atomic_t * v) { unsigned long temp; __asm__ __volatile__( "1: ldl_l %0,%1\n" " subl %0,%2,%0\n" " stl_c %0,%1\n" " beq %0,2f\n" ".subsection 2\n" "2: br 1b\n" ".previous" :"=&r" (temp), "=m" (v->counter) :"Ir" (i), "m" (v->counter)); } /* * Same as above, but return the result value */ static __inline__ long atomic_add_return(int i, atomic_t * v) { long temp, result; __asm__ __volatile__( "1: ldl_l %0,%1\n" " addl %0,%3,%2\n" " addl %0,%3,%0\n" " stl_c %0,%1\n" " beq %0,2f\n" " mb\n" ".subsection 2\n" "2: br 1b\n" ".previous" :"=&r" (temp), "=m" (v->counter), "=&r" (result) :"Ir" (i), "m" (v->counter) : "memory"); return result; } static __inline__ long atomic_sub_return(int i, atomic_t * v) { long temp, result; __asm__ __volatile__( "1: ldl_l %0,%1\n" " subl %0,%3,%2\n" " subl %0,%3,%0\n" " stl_c %0,%1\n" " beq %0,2f\n" " mb\n" ".subsection 2\n" "2: br 1b\n" ".previous" :"=&r" (temp), "=m" (v->counter), "=&r" (result) :"Ir" (i), "m" (v->counter) : "memory"); return result; } #define atomic_dec_return(v) atomic_sub_return(1,(v)) #define atomic_inc_return(v) atomic_add_return(1,(v)) #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0) #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0) #define atomic_inc(v) atomic_add(1,(v)) #define atomic_dec(v) atomic_sub(1,(v)) #define smp_mb__before_atomic_dec() smp_mb() #define smp_mb__after_atomic_dec() smp_mb() #define smp_mb__before_atomic_inc() smp_mb() #define smp_mb__after_atomic_inc() smp_mb() #endif /* _ALPHA_ATOMIC_H */ #else #ifdef __s390__ #ifndef __ARCH_S390_ATOMIC__ #define __ARCH_S390_ATOMIC__ /* * include/asm-s390/atomic.h * * S390 version * Copyright (C) 1999,2000 IBM Deutschland Entwicklung GmbH, IBM Corporation * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), * Denis Joseph Barrow * * Derived from "include/asm-i386/bitops.h" * Copyright (C) 1992, Linus Torvalds * */ /* * Atomic operations that C can't guarantee us. Useful for * resource counting etc.. * S390 uses 'Compare And Swap' for atomicity in SMP enviroment */ typedef struct { volatile int counter; } __attribute__ ((aligned (4))) atomic_t; #define ATOMIC_INIT(i) { (i) } #define atomic_eieio() __asm__ __volatile__ ("BCR 15,0") #define __CS_LOOP(old_val, new_val, ptr, op_val, op_string) \ __asm__ __volatile__(" l %0,0(%2)\n" \ "0: lr %1,%0\n" \ op_string " %1,%3\n" \ " cs %0,%1,0(%2)\n" \ " jl 0b" \ : "=&d" (old_val), "=&d" (new_val) \ : "a" (ptr), "d" (op_val) : "cc" ); #define atomic_read(v) ((v)->counter) #define atomic_set(v,i) (((v)->counter) = (i)) static __inline__ void atomic_add(int i, atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, i, "ar"); } static __inline__ int atomic_add_return (int i, atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, i, "ar"); return new_val; } static __inline__ int atomic_add_negative(int i, atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, i, "ar"); return new_val < 0; } static __inline__ void atomic_sub(int i, atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, i, "sr"); } static __inline__ void atomic_inc(volatile atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, 1, "ar"); } static __inline__ int atomic_inc_return(volatile atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, 1, "ar"); return new_val; } static __inline__ int atomic_inc_and_test(volatile atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, 1, "ar"); return new_val != 0; } static __inline__ void atomic_dec(volatile atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, 1, "sr"); } static __inline__ int atomic_dec_return(volatile atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, 1, "sr"); return new_val; } static __inline__ int atomic_dec_and_test(volatile atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, 1, "sr"); return new_val == 0; } static __inline__ void atomic_clear_mask(unsigned long mask, atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, ~mask, "nr"); } static __inline__ void atomic_set_mask(unsigned long mask, atomic_t *v) { int old_val, new_val; __CS_LOOP(old_val, new_val, v, mask, "or"); } /* returns 0 if expected_oldval==value in *v ( swap was successful ) returns 1 if unsuccessful. */ static __inline__ int atomic_compare_and_swap(int expected_oldval,int new_val,atomic_t *v) { int retval; __asm__ __volatile__( " lr 0,%2\n" " cs 0,%3,0(%1)\n" " ipm %0\n" " srl %0,28\n" "0:" : "=&d" (retval) : "a" (v), "d" (expected_oldval) , "d" (new_val) : "0", "cc"); return retval; } /* Spin till *v = expected_oldval then swap with newval. */ static __inline__ void atomic_compare_and_swap_spin(int expected_oldval,int new_val,atomic_t *v) { __asm__ __volatile__( "0: lr 0,%1\n" " cs 0,%2,0(%0)\n" " jl 0b\n" : : "a" (v), "d" (expected_oldval) , "d" (new_val) : "cc", "0" ); } #define smp_mb__before_atomic_dec() smp_mb() #define smp_mb__after_atomic_dec() smp_mb() #define smp_mb__before_atomic_inc() smp_mb() #define smp_mb__after_atomic_inc() smp_mb() #endif /* __ARCH_S390_ATOMIC __ */ #else #ifdef __mips__ /* * Atomic operations that C can't guarantee us. Useful for * resource counting etc.. * * But use these as seldom as possible since they are much more slower * than regular operations. * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1996, 1997, 2000 by Ralf Baechle */ #ifndef __ASM_ATOMIC_H #define __ASM_ATOMIC_H typedef struct { volatile int counter; } atomic_t; #define ATOMIC_INIT(i) { (i) } /* * atomic_read - read atomic variable * @v: pointer of type atomic_t * * Atomically reads the value of @v. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_read(v) ((v)->counter) /* * atomic_set - set atomic variable * @v: pointer of type atomic_t * @i: required value * * Atomically sets the value of @v to @i. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_set(v,i) ((v)->counter = (i)) /* * ... while for MIPS II and better we can use ll/sc instruction. This * implementation is SMP safe ... */ /* * atomic_add - add integer to atomic variable * @i: integer value to add * @v: pointer of type atomic_t * * Atomically adds @i to @v. Note that the guaranteed useful range * of an atomic_t is only 24 bits. */ extern __inline__ void atomic_add(int i, atomic_t * v) { unsigned long temp; __asm__ __volatile__( ".set push # atomic_add\n" ".set mips2 \n" "1: ll %0, %1 \n" " addu %0, %2 \n" " sc %0, %1 \n" " beqz %0, 1b \n" ".set pop \n" : "=&r" (temp), "=m" (v->counter) : "Ir" (i), "m" (v->counter)); } /* * atomic_sub - subtract the atomic variable * @i: integer value to subtract * @v: pointer of type atomic_t * * Atomically subtracts @i from @v. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ extern __inline__ void atomic_sub(int i, atomic_t * v) { unsigned long temp; __asm__ __volatile__( ".set push # atomic_sub\n" ".set mips2 \n" "1: ll %0, %1 \n" " subu %0, %2 \n" " sc %0, %1 \n" " beqz %0, 1b \n" ".set pop \n" : "=&r" (temp), "=m" (v->counter) : "Ir" (i), "m" (v->counter)); } /* * Same as above, but return the result value */ extern __inline__ int atomic_add_return(int i, atomic_t * v) { unsigned long temp, result; __asm__ __volatile__( ".set push # atomic_add_return\n" ".set mips2 \n" ".set noreorder \n" "1: ll %1, %2 \n" " addu %0, %1, %3 \n" " sc %0, %2 \n" " beqz %0, 1b \n" " addu %0, %1, %3 \n" " sync \n" ".set pop \n" : "=&r" (result), "=&r" (temp), "=m" (v->counter) : "Ir" (i), "m" (v->counter) : "memory"); return result; } extern __inline__ int atomic_sub_return(int i, atomic_t * v) { unsigned long temp, result; __asm__ __volatile__( ".set push # atomic_sub_return\n" ".set mips2 \n" ".set noreorder \n" "1: ll %1, %2 \n" " subu %0, %1, %3 \n" " sc %0, %2 \n" " beqz %0, 1b \n" " subu %0, %1, %3 \n" " sync \n" ".set pop \n" : "=&r" (result), "=&r" (temp), "=m" (v->counter) : "Ir" (i), "m" (v->counter) : "memory"); return result; } #define atomic_dec_return(v) atomic_sub_return(1,(v)) #define atomic_inc_return(v) atomic_add_return(1,(v)) /* * atomic_sub_and_test - subtract value from variable and test result * @i: integer value to subtract * @v: pointer of type atomic_t * * Atomically subtracts @i from @v and returns * true if the result is zero, or false for all * other cases. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0) /* * atomic_inc_and_test - increment and test * @v: pointer of type atomic_t * * Atomically increments @v by 1 * and returns true if the result is zero, or false for all * other cases. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_inc_and_test(v) (atomic_inc_return(1, (v)) == 0) /* * atomic_dec_and_test - decrement by 1 and test * @v: pointer of type atomic_t * * Atomically decrements @v by 1 and * returns true if the result is 0, or false for all other * cases. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0) /* * atomic_inc - increment atomic variable * @v: pointer of type atomic_t * * Atomically increments @v by 1. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_inc(v) atomic_add(1,(v)) /* * atomic_dec - decrement and test * @v: pointer of type atomic_t * * Atomically decrements @v by 1. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */ #define atomic_dec(v) atomic_sub(1,(v)) /* * atomic_add_negative - add and test if negative * @v: pointer of type atomic_t * @i: integer value to add * * Atomically adds @i to @v and returns true * if the result is negative, or false when * result is greater than or equal to zero. Note that the guaranteed * useful range of an atomic_t is only 24 bits. * * Currently not implemented for MIPS. */ /* Atomic operations are already serializing */ #define smp_mb__before_atomic_dec() smp_mb() #define smp_mb__after_atomic_dec() smp_mb() #define smp_mb__before_atomic_inc() smp_mb() #define smp_mb__after_atomic_inc() smp_mb() #endif /* __ASM_ATOMIC_H */ #else #if defined(__m68k__) #ifndef __ARCH_M68K_ATOMIC__ #define __ARCH_M68K_ATOMIC__ /* * Atomic operations that C can't guarantee us. Useful for * resource counting etc.. */ /* * We do not have SMP m68k systems, so we don't have to deal with that. */ typedef struct { int counter; } atomic_t; #define ATOMIC_INIT(i) { (i) } #define atomic_read(v) ((v)->counter) #define atomic_set(v, i) (((v)->counter) = i) static __inline__ void atomic_add(int i, atomic_t *v) { __asm__ __volatile__("addl %1,%0" : "=m" (*v) : "id" (i), "0" (*v)); } static __inline__ void atomic_sub(int i, atomic_t *v) { __asm__ __volatile__("subl %1,%0" : "=m" (*v) : "id" (i), "0" (*v)); } static __inline__ void atomic_inc(volatile atomic_t *v) { __asm__ __volatile__("addql #1,%0" : "=m" (*v): "0" (*v)); } static __inline__ void atomic_dec(volatile atomic_t *v) { __asm__ __volatile__("subql #1,%0" : "=m" (*v): "0" (*v)); } static __inline__ int atomic_dec_and_test(volatile atomic_t *v) { char c; __asm__ __volatile__("subql #1,%1; seq %0" : "=d" (c), "=m" (*v): "1" (*v)); return c != 0; } #define atomic_clear_mask(mask, v) \ __asm__ __volatile__("andl %1,%0" : "=m" (*v) : "id" (~(mask)),"0"(*v)) #define atomic_set_mask(mask, v) \ __asm__ __volatile__("orl %1,%0" : "=m" (*v) : "id" (mask),"0"(*v)) /* Atomic operations are already serializing */ #define smp_mb__before_atomic_dec() barrier() #define smp_mb__after_atomic_dec() barrier() #define smp_mb__before_atomic_inc() barrier() #define smp_mb__after_atomic_inc() barrier() #endif /* __ARCH_M68K_ATOMIC __ */ #else #warning libs/pbd has no implementation of strictly atomic operations for your hardware. #define __NO_STRICT_ATOMIC #ifdef __NO_STRICT_ATOMIC /* * Because the implementations from the kernel (where all these come * from) use cli and spinlocks for hppa and arm... */ typedef struct { volatile int counter; } atomic_t; #define ATOMIC_INIT(i) ( (atomic_t) { (i) } ) #define atomic_read(v) ((v)->counter) #define atomic_set(v,i) ((v)->counter = (i)) static __inline__ void atomic_inc(atomic_t *v) { v->counter++; } static __inline__ void atomic_dec(atomic_t *v) { v->counter--; } static __inline__ int atomic_dec_and_test(atomic_t *v) { int res; v->counter--; res = v->counter; return res == 0; } static __inline__ int atomic_inc_and_test(atomic_t *v) { int res; v->counter++; res = v->counter; return res == 0; } # endif /* __NO_STRICT_ATOMIC */ # endif /* m68k */ # endif /* mips */ # endif /* s390 */ # endif /* alpha */ # endif /* ia64 */ # endif /* sparc */ # endif /* i386 */ # endif /* ppc */ #endif /* __libpbd_atomic_h__ */ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/restartable_rw.h0000644000175000017500000000040311754453700021475 0ustar miramira#ifndef __libmisc_restartable_rw__h__ #define __libmisc_restartable_rw__h__ extern int restartable_write (int fd, unsigned char *buf, size_t cnt); extern int restartable_read (int fd, unsigned char *buf, size_t cnt); #endif // __libmisc_restartable_rw__h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/xml++.h0000644000175000017500000000632211754453700017411 0ustar miramira/* xml++.h * libxml++ and this file are copyright (C) 2000 by Ari Johnson, and * are covered by the GNU Lesser General Public License, which should be * included with libxml++ as the file COPYING. */ #include #include #include #include #include #include #include #ifndef __XML_H #define __XML_H using std::string; using std::map; using std::list; class XMLTree; class XMLNode; class XMLProperty; typedef list XMLNodeList; typedef XMLNodeList::iterator XMLNodeIterator; typedef XMLNodeList::const_iterator XMLNodeConstIterator; typedef list XMLPropertyList; typedef XMLPropertyList::iterator XMLPropertyIterator; typedef XMLPropertyList::const_iterator XMLPropertyConstIterator; typedef map XMLPropertyMap; class XMLTree { private: string _filename; XMLNode *_root; int _compression; bool _initialized; public: XMLTree(); XMLTree(const string &fn); XMLTree(const XMLTree *); ~XMLTree(); bool initialized() const { return _initialized; }; XMLNode *root() const { return _root; }; XMLNode *set_root(XMLNode *n) { return _root = n; }; const string & filename() const { return _filename; }; const string & set_filename(const string &fn) { return _filename = fn; }; int compression() const { return _compression; }; int set_compression(int); bool read(); bool read(const string &fn) { set_filename(fn); return read(); }; bool read_buffer(const string &); bool write() const; bool write(const string &fn) { set_filename(fn); return write(); }; const string & write_buffer() const; }; class XMLNode { private: bool _initialized; string _name; bool _is_content; string _content; XMLNodeList _children; XMLPropertyList _proplist; XMLPropertyMap _propmap; public: XMLNode(const string &); XMLNode(const string &, const string &); XMLNode(const XMLNode&); ~XMLNode(); bool initialized() const { return _initialized; }; const string name() const { return _name; }; bool is_content() const { return _is_content; }; const string & content() const { return _content; }; const string & set_content(const string &); XMLNode *add_content(const string & = string()); const XMLNodeList & children(const string & = string()) const; XMLNode *add_child(const string &); XMLNode *add_child_copy(const XMLNode&); void add_child_nocopy (XMLNode&); const XMLPropertyList & properties() const { return _proplist; }; XMLProperty *property(const string &); const XMLProperty *property(const string &n) const { return ((XMLNode *) this)->property(n); }; XMLProperty *add_property(const string &, const string & = string()); void remove_property(const string &); XMLNode * find_named_node (const string & name) const; /** Remove all nodes with the name passed to remove_nodes */ void remove_nodes(const string &); }; class XMLProperty { private: string _name; string _value; public: XMLProperty(const string &n, const string &v = string()); ~XMLProperty(); const string & name() const { return _name; }; const string & value() const { return _value; }; const string & set_value(const string &v) { return _value = v; }; }; #endif /* __XML_H */ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/basename.h0000644000175000017500000000043111754453700020231 0ustar miramira#ifndef __stupid_basename_h__ #define __stupid_basename_h__ #include namespace PBD { extern char *basename (const char *); extern std::string basename (const std::string); extern std::string basename_nosuffix (const std::string); }; #endif // __stupid_basename_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/types.h0000644000175000017500000000217011754453700017624 0ustar miramira/* Copyright (C) 1999 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __pbd_types_h__ #define __pbd_types_h__ typedef unsigned char byte; typedef char int8; typedef unsigned short uint16; typedef short int16; typedef unsigned int uint32; typedef int int32; typedef unsigned long long int uint64; typedef long long int int64; #endif // __pbd_types_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/lockmonitor.h0000644000175000017500000001033411754453700021021 0ustar miramira/* Copyright (C) 2000 Paul Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __pbd_lockmonitor_h__ #define __pbd_lockmonitor_h__ #include #include #undef DEBUG_LOCK_MONITOR #ifdef DEBUG_LOCK_MONITOR #include #include #endif namespace PBD { class Lock { public: Lock() { pthread_mutex_init (&_mutex, 0); } virtual ~Lock() {} virtual int lock () { return pthread_mutex_lock (&_mutex); } virtual int unlock() { return pthread_mutex_unlock (&_mutex); } pthread_mutex_t *mutex() { return &_mutex; } protected: pthread_mutex_t _mutex; }; class NonBlockingLock : public Lock { public: NonBlockingLock() {} ~NonBlockingLock(){} int lock () { return pthread_mutex_lock (&_mutex); } int trylock () { return pthread_mutex_trylock (&_mutex); } int unlock() { return pthread_mutex_unlock (&_mutex); } }; class LockMonitor { public: LockMonitor (Lock& lck, unsigned long l, const char *f) : lock (lck) #ifdef DEBUG_LOCK_MONITOR , line (l), file (f) #endif { #ifdef DEBUG_LOCK_MONITOR unsigned long long when; when = get_cycles(); cerr << when << " lock " << &lock << " at " << line << " in " << file << endl; #endif lock.lock (); #ifdef DEBUG_LOCK_MONITOR when = get_cycles(); cerr << '\t' << when << " locked: " << &lock << " at " << line << " in " << file << endl; #endif } ~LockMonitor () { lock.unlock (); #ifdef DEBUG_LOCK_MONITOR unsigned long long when; when = get_cycles(); cerr << '\t' << when << ' ' << " UNLOCKED " << &lock << " at " << line << " in " << file << endl; #endif } private: Lock& lock; #ifdef DEBUG_LOCK_MONITOR unsigned long line; const char * file; #endif }; class TentativeLockMonitor { public: TentativeLockMonitor (NonBlockingLock& lck, unsigned long l, const char *f) : lock (lck) #ifdef DEBUG_LOCK_MONITOR , line (l), file (f) #endif { #ifdef DEBUG_LOCK_MONITOR unsigned long long when; when = get_cycles(); cerr << when << " tentative lock " << &lock << " at " << line << " in " << file << endl; #endif _locked = (lock.trylock() == 0); #ifdef DEBUG_LOCK_MONITOR when = get_cycles(); cerr << '\t' << when << ' ' << _locked << " lock: " << &lock << " at " << line << " in " << file << endl; #endif } ~TentativeLockMonitor () { if (_locked) { lock.unlock (); #ifdef DEBUG_LOCK_MONITOR unsigned long long when; when = get_cycles(); cerr << '\t' << when << ' ' << " UNLOCKED " << &lock << " at " << line << " in " << file << endl; #endif } } bool locked() { return _locked; } private: NonBlockingLock& lock; bool _locked; #ifdef DEBUG_LOCK_MONITOR unsigned long line; const char * file; #endif }; class SpinLockMonitor { public: SpinLockMonitor (pthread_mutex_t *lck, unsigned long l, const char *f) : lock (lck) #ifdef DEBUG_LOCK_MONITOR , line (l), file (f) #endif { #ifdef DEBUG_LOCK_MONITOR unsigned long long when; when = get_cycles(); cerr << when << " spinlock " << lck << " at " << line << " in " << file << endl; #endif pthread_mutex_spinlock (lck); #ifdef DEBUG_LOCK_MONITOR when = get_cycles(); cerr << '\t' << when << " locked at " << &lock << " at " << line << " in " << file << endl; #endif } ~SpinLockMonitor () { pthread_mutex_unlock (lock); } private: pthread_mutex_t *lock; #ifdef DEBUG_LOCK_MONITOR unsigned long line; const char * file; #endif }; } /* namespace */ #endif /* __pbd_lockmonitor_h__*/ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/irix_platform.h0000644000175000017500000000055111754453700021340 0ustar miramira#ifndef __irix_platform__ #define __irix_platform__ #include class IrixPlatform : public Platform { public: IrixPlatform () : Platform () {}; virtual ~IrixPlatform (); virtual int pre_config (); virtual int post_config (); virtual int pre_ui (); virtual int post_ui (); virtual int dsp_startup(); }; #endif // __irix_platform__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/textreceiver.h0000644000175000017500000000217511754453700021176 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __libmisc_textreceiver_h__ #define __libmisc_textreceiver_h__ #include #include "receiver.h" using std::string; using std::cout; using std::endl; class TextReceiver : public Receiver { public: TextReceiver (const string &n); protected: void receive (Transmitter::Channel, const char *); private: string name; }; #endif //__libmisc_textreceiver_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/ringbuffer.h0000644000175000017500000001401211754453700020607 0ustar miramira/* Copyright (C) 2000 Paul Davis & Benno Senoner This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef ringbuffer_h #define ringbuffer_h #include #include #include template class RingBuffer { public: RingBuffer (size_t sz) { size_t power_of_two; for (power_of_two = 1; 1U< r) { return ((r - w + size) & size_mask) - 1; } else if (w < r) { return (r - w) - 1; } else { return size - 1; } } size_t read_space () { size_t w, r; w = atomic_read (&write_ptr); r = atomic_read (&read_ptr); if (w > r) { return w - r; } else { return (w - r + size) & size_mask; } } T *buffer () { return buf; } size_t get_write_ptr () const { return atomic_read (&write_ptr); } size_t get_read_ptr () const { return atomic_read (&read_ptr); } size_t bufsize () const { return size; } protected: T *buf; size_t size; atomic_t write_ptr; atomic_t read_ptr; size_t size_mask; }; template size_t RingBuffer::read (T *dest, size_t cnt) { size_t free_cnt; size_t cnt2; size_t to_read; size_t n1, n2; size_t priv_read_ptr; priv_read_ptr=atomic_read(&read_ptr); if ((free_cnt = read_space ()) == 0) { return 0; } to_read = cnt > free_cnt ? free_cnt : cnt; cnt2 = priv_read_ptr + to_read; if (cnt2 > size) { n1 = size - priv_read_ptr; n2 = cnt2 & size_mask; } else { n1 = to_read; n2 = 0; } memcpy (dest, &buf[priv_read_ptr], n1 * sizeof (T)); priv_read_ptr = (priv_read_ptr + n1) & size_mask; if (n2) { memcpy (dest+n1, buf, n2 * sizeof (T)); priv_read_ptr = n2; } atomic_set(&read_ptr, priv_read_ptr); return to_read; } template size_t RingBuffer::write (T *src, size_t cnt) { size_t free_cnt; size_t cnt2; size_t to_write; size_t n1, n2; size_t priv_write_ptr; priv_write_ptr=atomic_read(&write_ptr); if ((free_cnt = write_space ()) == 0) { return 0; } to_write = cnt > free_cnt ? free_cnt : cnt; cnt2 = priv_write_ptr + to_write; if (cnt2 > size) { n1 = size - priv_write_ptr; n2 = cnt2 & size_mask; } else { n1 = to_write; n2 = 0; } memcpy (&buf[priv_write_ptr], src, n1 * sizeof (T)); priv_write_ptr = (priv_write_ptr + n1) & size_mask; if (n2) { memcpy (buf, src+n1, n2 * sizeof (T)); priv_write_ptr = n2; } atomic_set(&write_ptr, priv_write_ptr); return to_write; } template void RingBuffer::get_read_vector (RingBuffer::rw_vector *vec) { size_t free_cnt; size_t cnt2; size_t w, r; w = atomic_read (&write_ptr); r = atomic_read (&read_ptr); if (w > r) { free_cnt = w - r; } else { free_cnt = (w - r + size) & size_mask; } cnt2 = r + free_cnt; if (cnt2 > size) { /* Two part vector: the rest of the buffer after the current write ptr, plus some from the start of the buffer. */ vec->buf[0] = &buf[r]; vec->len[0] = size - r; vec->buf[1] = buf; vec->len[1] = cnt2 & size_mask; } else { /* Single part vector: just the rest of the buffer */ vec->buf[0] = &buf[r]; vec->len[0] = free_cnt; vec->len[1] = 0; } } template void RingBuffer::get_write_vector (RingBuffer::rw_vector *vec) { size_t free_cnt; size_t cnt2; size_t w, r; w = atomic_read (&write_ptr); r = atomic_read (&read_ptr); if (w > r) { free_cnt = ((r - w + size) & size_mask) - 1; } else if (w < r) { free_cnt = (r - w) - 1; } else { free_cnt = size - 1; } cnt2 = w + free_cnt; if (cnt2 > size) { /* Two part vector: the rest of the buffer after the current write ptr, plus some from the start of the buffer. */ vec->buf[0] = &buf[w]; vec->len[0] = size - w; vec->buf[1] = buf; vec->len[1] = cnt2 & size_mask; } else { vec->buf[0] = &buf[w]; vec->len[0] = free_cnt; vec->len[1] = 0; } } #endif /* __ringbuffer_h__ */ sooperlooper-1.7.3~dfsg0/libs/pbd/pbd/pool.h0000644000175000017500000000340711754453700017435 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #ifndef __qm_pool_h__ #define __qm_pool_h__ #include #include #include #include class Pool { public: Pool (std::string name, unsigned long item_size, unsigned long nitems); virtual ~Pool (); virtual void *alloc (); virtual void release (void *); std::string name() const { return _name; } private: RingBuffer* free_list; std::string _name; void *block; }; class SingleAllocMultiReleasePool : public Pool { public: SingleAllocMultiReleasePool (std::string name, unsigned long item_size, unsigned long nitems); ~SingleAllocMultiReleasePool (); virtual void *alloc (); virtual void release (void *); private: pthread_mutex_t lock; }; class MultiAllocSingleReleasePool : public Pool { public: MultiAllocSingleReleasePool (std::string name, unsigned long item_size, unsigned long nitems); ~MultiAllocSingleReleasePool (); virtual void *alloc (); virtual void release (void *); private: pthread_mutex_t lock; }; #endif // __qm_pool_h__ sooperlooper-1.7.3~dfsg0/libs/pbd/undo.cc0000644000175000017500000000522312230252703017006 0ustar miramira/* Copyright (C) 2001 Brett Viren & Paul Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include using namespace std; using namespace sigc; UndoCommand::UndoCommand () { } UndoCommand::UndoCommand (const UndoCommand& rhs) { _name = rhs._name; clear (); undo_actions.insert(undo_actions.end(),rhs.undo_actions.begin(),rhs.undo_actions.end()); redo_actions.insert(redo_actions.end(),rhs.redo_actions.begin(),rhs.redo_actions.end()); } UndoCommand& UndoCommand::operator= (const UndoCommand& rhs) { if (this == &rhs) return *this; _name = rhs._name; clear (); undo_actions.insert(undo_actions.end(),rhs.undo_actions.begin(),rhs.undo_actions.end()); redo_actions.insert(redo_actions.end(),rhs.redo_actions.begin(),rhs.redo_actions.end()); return *this; } void UndoCommand::add_undo (const UndoAction& action) { undo_actions.push_back (action); } void UndoCommand::add_redo (const UndoAction& action) { redo_actions.push_back (action); redo_actions.back()(); } void UndoCommand::add_redo_no_execute (const UndoAction& action) { redo_actions.push_back (action); } void UndoCommand::clear () { undo_actions.clear (); redo_actions.clear (); } void UndoCommand::undo () { for (list::reverse_iterator i = undo_actions.rbegin(); i != undo_actions.rend(); ++i) { (*i)(); } } void UndoCommand::redo () { for (list::iterator i = redo_actions.begin(); i != redo_actions.end(); ++i) { (*i)(); } } void UndoHistory::add (UndoCommand uc) { UndoList.push_back (uc); } void UndoHistory::undo (unsigned int n) { while (n--) { if (UndoList.size() == 0) { return; } UndoCommand uc = UndoList.back (); UndoList.pop_back (); uc.undo (); RedoList.push_back (uc); } } void UndoHistory::redo (unsigned int n) { while (n--) { if (RedoList.size() == 0) { return; } UndoCommand cmd = RedoList.back (); RedoList.pop_back (); cmd.redo (); UndoList.push_back (cmd); } } void UndoHistory::clear_redo () { RedoList.clear (); } sooperlooper-1.7.3~dfsg0/libs/pbd/libpbd.pc.in0000644000175000017500000000042011754453700017723 0ustar miramiraprefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@/pbd Name: libpbd Version: @VERSION@ Description: libpbd, a library of useful, generic C++ objects Requires: Libs: -L${libdir} -lpbd @NON_PKG_LIBS@ Cflags: -I${includedir} @NON_PKG_CFLAGS@ sooperlooper-1.7.3~dfsg0/libs/pbd/receiver.cc0000644000175000017500000000254012230252703017644 0ustar miramira/* Copyright (C) 1998-99 Paul Barton-Davis This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ */ #include #include #include using namespace sigc; Receiver::Receiver () {} Receiver::~Receiver () { hangup (); } void Receiver::hangup () { vector::iterator i; for (i = connections.begin(); i != connections.end (); i++) { (*i)->disconnect (); delete *i; } connections.erase (connections.begin(), connections.end()); } void Receiver::listen_to (Transmitter &transmitter) { sigc::connection *c = new sigc::connection; (*c) = transmitter.sender().connect (mem_fun (*this, &Receiver::receive)); connections.push_back (c); } sooperlooper-1.7.3~dfsg0/libs/pbd/install-sh0000755000175000017500000003253712115444525017555 0ustar miramira#!/bin/sh # install - install a program, script, or datafile scriptversion=2009-04-28.21; # UTC # 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. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false 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: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -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. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg done fi if test $# -eq 0; 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 if test -z "$dir_arg"; then trap '(exit $?); exit' 1 2 13 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names starting with `-'. case $src in -*) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? 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 "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # 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: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; -*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test -z "$d" && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # 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 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $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 $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 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. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: sooperlooper-1.7.3~dfsg0/libs/pbd/depcomp0000755000175000017500000004426712115444525017131 0ustar miramira#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free # Software Foundation, Inc. # This program 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, 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, see . # 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 Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u="sed s,\\\\\\\\,/,g" depmode=msvisualcpp fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: sooperlooper-1.7.3~dfsg0/autogen.sh0000755000175000017500000001754011754453700016054 0ustar miramira#!/bin/sh if [ "x$CC" = "x" ] ; then export CC=gcc fi pwd=`pwd` base_libs="pbd midi++" gui_libs="" gui_progs="" nogui_progs="" prog_dirs="$gui_progs $nogui_progs" lib_dirs="$base_libs $gui_libs" xtra_path= libs_to_process= while [ $# -gt 0 ] do case $1 in -gui*) prog_dirs="$nogui_progs" lib_dirs="$base_libs" ;; -ksi*) prog_dirs="$gui_progs" lib_dirs="$base_libs $gui_libs" ;; -path=*) xtra_path=$xtra_path`expr "x$1" : 'x-path=\(.*\)'`: ;; *) libs_to_process="$libs_to_process $1" ;; esac shift done PATH=$xtra_path$PATH export PATH acmacrodir=$pwd/aclocal system_macrodir=`aclocal --print-ac-dir` acargs= pkgpath= auto_lib_dirs= echo " ---------------------------------------------------------------------- Checking basic compilation tools ... " for tool in pkg-config autoconf aclocal automake libtool gettext autopoint do if which $tool >/dev/null 2>&1 ; then echo " $tool: found." else echo "\ You do not have $tool correctly installed. You cannot build SooperLooper without this tool." exit 1 fi done # check the version of autoconf, because it matters a LOT # and while i'm here: what the f*ck? we now have to # write our own configuration tests to see if the configuration # test system is adequate? gag.... # # Correct. time for #ifdef AUTO_ME_HARDER ... ? # # [The above was written by Paul Davis a long time ago] # lets just get rid of these checks shall we? #autoconf --version | perl -e ' #while(<>) { # @x=split(/[ \t\n]+/,$_); # $version=$x[3]; $v =~ s/[a-z]+$//; # if($version >= 2.52){ # exit 0; # }else{ # print "\n\tversion $version of autoconf found: sooperlooper requires 2.52 or above.\n"; # exit 1; # } #} #' #if [ $? != 0 ] ; then # exit 1 #fi # Check version of automake. Equally frustrating as checking # the version for autoconf. #automake --version | perl -e ' #while(<>) { # @x=split(/[ \t\n]+/,$_); # $version=$x[3]; $v =~ s/[a-z]+$//; # if($version >= 1.7){ # exit 0; # }else{ # print "\n\tversion $version of automake found: sooperlooper requires 1.7 or above.\n"; # exit 1; # } #} #' #if [ $? != 0 ] ; then # exit 1 #fi echo " ---------------------------------------------------------------------- linking autoconf macros to $acmacrodir ... " for x in $lib_dirs ; do pkgpath="${pkgpath}$pwd/libs/$x:" # catch any autoconf m4 files that we'll need # need to have access to during the autogen step macros=`echo $pwd/libs/$x/*.m4` if [ x"$macros" != "x$pwd/libs/$x/*.m4" ] ; then for m4 in $macros do bm4=`basename $m4` if [ -f $system_macrodir/$bm4 ] ; then echo "\ ---------------------------------------------------------------------- You already have a version of $bm4 installed in $system_macrodir. This isn't going to work, because aclocal is too stupid to use an ordered search path. I'm therefore going to ignore the one in this tree, and rely on the installed one. If this results in errors, you will have deinstall the library that $bm4 is associated with. If you don't like this policy, I suggest that you write to the authors of aclocal and suggest that they improve their program. ---------------------------------------------------------------------- " continue fi if [ $bm4 != aclocal.m4 ] && [ $bm4 != acinclude.m4 ] ; then m4copy="$m4copy $m4" fi done fi # damn! if [ $x = "midi++" ] ; then libname=midipp else libname=$x fi auto_lib_dirs="$auto_lib_dirs libs/$x" done if [ ! -d $acmacrodir ] ; then mkdir $acmacrodir ; else rm -rf $acmacrodir/*.m4 fi for m4 in $m4copy ; do ln -s $m4 $acmacrodir done export ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $acmacrodir" cat > $acmacrodir/optflags.m4 </dev/null` if test "\$?" = "0"; then AC_DEFINE(HAVE_ALTIVEC_LINUX, 1, "Is there Altivec Support ?") if test "\$gcc_major_version" = "3"; then dnl -mcpu=7450 does not reliably work with gcc 3.* #OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -maltivec -mabi=altivec" OPT_FLAGS="-D_REENTRANT -O3 -mcpu=7400 -mtune=7450" else OPT_FLAGS="-D_REENTRANT -Os" fi else OPT_FLAGS="-D_REENTRANT -Os " fi OPT_FLAGS="\$OPT_FLAGS -mhard-float -mpowerpc-gfxopt" elif echo \$target_cpu | grep "i*86" >/dev/null; then if test "\$os_system" = "Darwin"; then # pretty good assumption mmx="-mmmx" sse="-msse -mfpmath=sse" OPT_FLAGS="-D_REENTRANT -Os -fomit-frame-pointer \$mmx \$sse" else cat /proc/cpuinfo | grep mmx >/dev/null if test \$? = 0; then mmx="-mmmx" fi cat /proc/cpuinfo | grep sse >/dev/null if test \$? = 0; then sse="-msse -mfpmath=sse" fi cat /proc/cpuinfo | grep 3dnow >/dev/null if test \$? = 0; then dreidnow="-m3dnow" fi AC_DEFINE(x86, 1, "Nope its intel") if test "\$target_cpu" = "i586"; then OPT_FLAGS="-DREENTRANT -O2 -march=i586 -fomit-frame-pointer" elif test "\$target_cpu" = "i686"; then OPT_FLAGS="-D_REENTRANT -O2 -march=i686 -fomit-frame-pointer" if test "\$gcc_major_version" -ge "3"; then OPT_FLAGS="\$OPT_FLAGS \$mmx \$sse \$dreidnow" fi else OPT_FLAGS="-D_REENTRANT -O2 -fomit-frame-pointer" fi fi fi OPT_FLAGS="\$OPT_FLAGS -pipe" # LARGEFILE_FLAGS="\`getconf LFS_CFLAGS\`" LARGEFILE_FLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" CXXFLAGS="-g -D_REENTRANT \$LARGEFILE_FLAGS" if test x"\$GXX" = xyes ; then CXXFLAGS="\$CXXFLAGS -Wall" fi if test x"\$GXX" = xyes ; then OPT_CXXFLAGS="\$OPT_FLAGS -Wall \$LARGEFILE_FLAGS" fi PROF_FLAGS="-pg" dnl dnl some link flags to try to speed linking dnl CXXFLAGS="\$CXXFLAGS -fno-merge-constants" ]) EOF cat > $acmacrodir/buildenv.m4 <. if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # `libtool' can also be set to `yes' or `no'. if test -z "$depfile"; then base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'` dir=`echo "$object" | sed 's,/.*$,/,'` if test "$dir" = "$object"; then dir= fi # FIXME: should be _deps on DOS. depfile="$dir.deps/$base" fi tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. This file always lives in the current directory. # Also, the AIX compiler puts `$object:' at the start of each line; # $object doesn't have directory information. stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" outname="$stripped.o" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1="$dir.libs/$base.lo.d" tmpdepfile2="$dir.libs/$base.d" "$@" -Wc,-MD else tmpdepfile1="$dir$base.o.d" tmpdepfile2="$dir$base.d" "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi if test -f "$tmpdepfile1"; then tmpdepfile="$tmpdepfile1" else tmpdepfile="$tmpdepfile2" fi if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a space and a tab in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the proprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. We will use -o /dev/null later, # however we can't do the remplacement now because # `-o $object' might simply not be used IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M "$@" -o /dev/null $dashmflag | sed 's:^[^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; -*) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the proprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the proprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0