diff --git a/lib-src/sbsms/Makefile.in b/lib-src/sbsms/Makefile.in index d0f734286..99c70d835 100644 --- a/lib-src/sbsms/Makefile.in +++ b/lib-src/sbsms/Makefile.in @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.10.2 from Makefile.am. +# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006 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. @@ -127,7 +127,6 @@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ -MAD_LIBS = @MAD_LIBS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ @@ -144,24 +143,15 @@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ RANLIB = @RANLIB@ -SBSMS_BIN = @SBSMS_BIN@ -SBSMS_PROGS = @SBSMS_PROGS@ +SBSMS_CFLAGS = @SBSMS_CFLAGS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHARED_VERSION_INFO = @SHARED_VERSION_INFO@ SHELL = @SHELL@ SHLIB_VERSION_ARG = @SHLIB_VERSION_ARG@ -SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ -SNDFILE_LIBS = @SNDFILE_LIBS@ STRIP = @STRIP@ VERSION = @VERSION@ -WX_CFLAGS = @WX_CFLAGS@ -WX_CONFIG = @WX_CONFIG@ -WX_LIBS = @WX_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ @@ -216,7 +206,6 @@ 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 = src @@ -273,7 +262,7 @@ clean-libtool: -rm -rf .libs _libs distclean-libtool: - -rm -f libtool config.lt + -rm -f libtool install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" @@ -367,8 +356,8 @@ ID: $(HEADERS) $(SOURCES) $(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; }; }'`; \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS @@ -393,8 +382,8 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 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; }; }'`; \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ @@ -404,12 +393,13 @@ ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ + 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; }; }'`; \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique @@ -480,10 +470,6 @@ 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-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) @@ -510,8 +496,6 @@ distcheck: dist 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.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ @@ -666,8 +650,8 @@ uninstall-am: uninstall-pkgconfigDATA .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ - dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \ - distclean distclean-generic distclean-libtool distclean-tags \ + dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \ + distclean-generic distclean-libtool 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 \ diff --git a/lib-src/sbsms/configure b/lib-src/sbsms/configure index caa20a763..438993b17 100755 --- a/lib-src/sbsms/configure +++ b/lib-src/sbsms/configure @@ -1,9 +1,9 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.63 for sbsms 1.5.0. +# Generated by GNU Autoconf 2.61 for sbsms 1.5.0. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## @@ -15,7 +15,7 @@ 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 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST @@ -37,45 +37,17 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh fi # Support unset when possible. @@ -91,6 +63,8 @@ fi # 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.) +as_nl=' +' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. @@ -113,7 +87,7 @@ 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 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi @@ -126,10 +100,17 @@ PS2='> ' PS4='+ ' # NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + fi +done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && @@ -151,7 +132,7 @@ as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -177,7 +158,7 @@ else as_have_required=no fi - if test $as_have_required = yes && (eval ": + if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } @@ -259,7 +240,7 @@ IFS=$as_save_IFS 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 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST @@ -280,7 +261,7 @@ _ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST @@ -360,10 +341,10 @@ fi if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + done + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi @@ -432,10 +413,9 @@ fi test \$exitcode = 0") || { echo No shell found that supports shell functions. - echo Please tell bug-autoconf@gnu.org about your system, - echo including any error possibly output before this message. - echo This can help us improve future autoconf versions. - echo Configuration will now proceed without shell functions. + echo Please tell autoconf@gnu.org about your system, + echo including any error possibly output before this + echo message } @@ -471,7 +451,7 @@ test \$exitcode = 0") || { 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 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems @@ -499,6 +479,7 @@ case `echo -n x` in *) ECHO_N='-n';; esac + if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr @@ -511,22 +492,19 @@ if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null + mkdir conf$$.dir 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 +echo >conf$$.file +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' - fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln else as_ln_s='cp -p' fi @@ -551,10 +529,10 @@ else as_test_x=' eval sh -c '\'' if test -d "$1"; then - test -d "$1/."; + test -d "$1/."; else case $1 in - -*)set "./$1";; + -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi @@ -784,169 +762,129 @@ ac_includes_default="\ # include #endif" -ac_subst_vars='LTLIBOBJS -LIBOBJS -MAINT -MAINTAINER_MODE_FALSE -MAINTAINER_MODE_TRUE -am__fastdepCXX_FALSE -am__fastdepCXX_TRUE -CXXDEPMODE -am__fastdepCC_FALSE -am__fastdepCC_TRUE -CCDEPMODE -AMDEPBACKSLASH -AMDEP_FALSE -AMDEP_TRUE -am__quote -am__include -DEPDIR -am__untar -am__tar -AMTAR -am__leading_dot -SET_MAKE -AWK -mkdir_p -MKDIR_P -INSTALL_STRIP_PROGRAM -install_sh -MAKEINFO -AUTOHEADER -AUTOMAKE -AUTOCONF -ACLOCAL -VERSION -PACKAGE -CYGPATH_W -am__isrc -INSTALL_DATA -INSTALL_SCRIPT -INSTALL_PROGRAM -SBSMS_PROGS -MACOSX_FALSE -MACOSX_TRUE -ENABLE_WX_FALSE -ENABLE_WX_TRUE -WX_CFLAGS -WX_LIBS -WX_CONFIG -SBSMS_BIN -ENABLE_PORTAUDIO_FALSE -ENABLE_PORTAUDIO_TRUE -PORTAUDIO_LIBS -PORTAUDIO_CFLAGS -ENABLE_SNDFILE_FALSE -ENABLE_SNDFILE_TRUE -SNDFILE_LIBS -SNDFILE_CFLAGS -PKG_CONFIG -ENABLE_MP3_FALSE -ENABLE_MP3_TRUE -MAD_LIBS -SHARED_VERSION_INFO -SHLIB_VERSION_ARG -CXXCPP -ac_ct_CXX -CXXFLAGS -CXX -CPP -OTOOL64 -OTOOL -LIPO -NMEDIT -DSYMUTIL -lt_ECHO -RANLIB -STRIP -AR -OBJDUMP -LN_S -NM -ac_ct_DUMPBIN -DUMPBIN -LD -FGREP -EGREP -GREP -SED -OBJEXT -EXEEXT -ac_ct_CC -CPPFLAGS -LDFLAGS -CFLAGS -CC -LIBTOOL -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_BUGREPORT -PACKAGE_STRING -PACKAGE_VERSION -PACKAGE_TARNAME -PACKAGE_NAME +ac_subst_vars='SHELL PATH_SEPARATOR -SHELL' +PACKAGE_NAME +PACKAGE_TARNAME +PACKAGE_VERSION +PACKAGE_STRING +PACKAGE_BUGREPORT +exec_prefix +prefix +program_transform_name +bindir +sbindir +libexecdir +datarootdir +datadir +sysconfdir +sharedstatedir +localstatedir +includedir +oldincludedir +docdir +infodir +htmldir +dvidir +pdfdir +psdir +libdir +localedir +mandir +DEFS +ECHO_C +ECHO_N +ECHO_T +LIBS +build_alias +host_alias +target_alias +build +build_cpu +build_vendor +build_os +host +host_cpu +host_vendor +host_os +target +target_cpu +target_vendor +target_os +LIBTOOL +CC +CFLAGS +LDFLAGS +CPPFLAGS +ac_ct_CC +EXEEXT +OBJEXT +SED +GREP +EGREP +FGREP +LD +DUMPBIN +ac_ct_DUMPBIN +NM +LN_S +OBJDUMP +AR +STRIP +RANLIB +lt_ECHO +DSYMUTIL +NMEDIT +LIPO +OTOOL +OTOOL64 +CPP +CXX +CXXFLAGS +ac_ct_CXX +CXXCPP +SHLIB_VERSION_ARG +SHARED_VERSION_INFO +SBSMS_CFLAGS +INSTALL_PROGRAM +INSTALL_SCRIPT +INSTALL_DATA +am__isrc +CYGPATH_W +PACKAGE +VERSION +ACLOCAL +AUTOCONF +AUTOMAKE +AUTOHEADER +MAKEINFO +install_sh +INSTALL_STRIP_PROGRAM +mkdir_p +AWK +SET_MAKE +am__leading_dot +AMTAR +am__tar +am__untar +DEPDIR +am__include +am__quote +AMDEP_TRUE +AMDEP_FALSE +AMDEPBACKSLASH +CCDEPMODE +am__fastdepCC_TRUE +am__fastdepCC_FALSE +CXXDEPMODE +am__fastdepCXX_TRUE +am__fastdepCXX_FALSE +MAINTAINER_MODE_TRUE +MAINTAINER_MODE_FALSE +MAINT +LIBOBJS +LTLIBOBJS' ac_subst_files='' -ac_user_opts=' -enable_option_checking -enable_shared -enable_static -with_pic -enable_fast_install -with_gnu_ld -enable_libtool_lock -enable_universal_binary -enable_multithreaded -enable_debug -enable_sndfile -enable_mp3 -enable_portaudio -enable_wx -enable_programs -enable_dependency_tracking -enable_maintainer_mode -' ac_precious_vars='build_alias host_alias target_alias @@ -959,19 +897,12 @@ CPP CXX CXXFLAGS CCC -CXXCPP -PKG_CONFIG -SNDFILE_CFLAGS -SNDFILE_LIBS -PORTAUDIO_CFLAGS -PORTAUDIO_LIBS' +CXXCPP' # 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 @@ -1070,21 +1001,13 @@ do datarootdir=$ac_optarg ;; -disable-* | --disable-*) - ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"enable_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval enable_$ac_useropt=no ;; + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` + eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; @@ -1097,21 +1020,13 @@ do dvidir=$ac_optarg ;; -enable-* | --enable-*) - ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"enable_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval enable_$ac_useropt=\$ac_optarg ;; + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` + eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ @@ -1302,38 +1217,22 @@ do ac_init_version=: ;; -with-* | --with-*) - ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + ac_package=`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_echo "$as_me: error: invalid package name: $ac_useropt" >&2 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } - 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 ;; + ac_package=`echo $ac_package | sed 's/[-.]/_/g'` + eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) - ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + ac_package=`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_echo "$as_me: error: invalid package name: $ac_useropt" >&2 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } - 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 ;; + ac_package=`echo $ac_package | sed 's/[-.]/_/g'` + eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. @@ -1353,7 +1252,7 @@ do | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) { $as_echo "$as_me: error: unrecognized option: $ac_option + -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; @@ -1362,16 +1261,16 @@ Try \`$0 --help' for more information." >&2 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } 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 + 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 + echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; @@ -1380,38 +1279,22 @@ done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { $as_echo "$as_me: error: missing argument to $ac_option" >&2 + { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi -if test -n "$ac_unrecognized_opts"; then - case $enable_option_checking in - no) ;; - fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 - { (exit 1); exit 1; }; } ;; - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; - esac -fi - -# Check all directory arguments for consistency. +# Be sure to have absolute directory names. 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_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done @@ -1426,7 +1309,7 @@ target=$target_alias 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. + 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 @@ -1442,10 +1325,10 @@ 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_echo "$as_me: error: working directory cannot be determined" >&2 + { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 + { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } @@ -1453,12 +1336,12 @@ test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 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" | + ac_confdir=`$as_dirname -- "$0" || +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$0" : 'X\(//\)[^/]' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -1485,12 +1368,12 @@ else fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. @@ -1539,9 +1422,9 @@ Configuration: Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] + [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] + [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify @@ -1551,25 +1434,25 @@ 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/sbsms] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] + --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/sbsms] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF @@ -1593,7 +1476,6 @@ 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] --enable-shared[=PKGS] build shared libraries [default=no] @@ -1603,13 +1485,7 @@ Optional Features: --disable-libtool-lock avoid locking (might break parallel builds) --enable-universal_binary enable universal binary build: (default: disable) --enable-static enable static build: (default: disable) - --enable-multithreaded enable multithreaded build: (default: disable) --enable-debug enable debug build: (default: disable) - --enable-sndfile enable sndfile support: (default: disable) - --enable-mp3 enable mp3 support (default: disable) - --enable-portaudio enable portaudio support: (default: disable) - --enable-wx enable wxWidgets support (default: disable) - --enable-programs Build SBSMS programs as well as library (default: enable) --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-maintainer-mode enable make rules and dependencies not useful @@ -1634,15 +1510,6 @@ Some influential environment variables: CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor - PKG_CONFIG path to pkg-config utility - SNDFILE_CFLAGS - C compiler flags for SNDFILE, overriding pkg-config - SNDFILE_LIBS - linker flags for SNDFILE, overriding pkg-config - PORTAUDIO_CFLAGS - C compiler flags for PORTAUDIO, overriding pkg-config - PORTAUDIO_LIBS - linker flags for PORTAUDIO, 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. @@ -1654,17 +1521,15 @@ 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 + 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|^\.[\\/]||'` + ac_dir_suffix=/`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|/||'` + ac_top_builddir_sub=`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/ ;; @@ -1700,7 +1565,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix echo && $SHELL "$ac_srcdir/configure" --help=recursive else - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done @@ -1710,10 +1575,10 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF sbsms configure 1.5.0 -generated by GNU Autoconf 2.63 +generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -1724,7 +1589,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by sbsms $as_me 1.5.0, which was -generated by GNU Autoconf 2.63. Invocation command line was +generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ @@ -1760,7 +1625,7 @@ for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" + echo "PATH: $as_dir" done IFS=$as_save_IFS @@ -1795,7 +1660,7 @@ do | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; @@ -1847,12 +1712,11 @@ _ASBOX case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 +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= ;; #( *) $as_unset $ac_var ;; esac ;; esac @@ -1882,9 +1746,9 @@ _ASBOX do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + echo "$ac_var='\''$ac_val'\''" done | sort echo @@ -1899,9 +1763,9 @@ _ASBOX do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + echo "$ac_var='\''$ac_val'\''" done | sort echo fi @@ -1917,8 +1781,8 @@ _ASBOX echo fi test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" + echo "$as_me: caught signal $ac_signal" + echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && @@ -1960,24 +1824,21 @@ _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 +# Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then - ac_site_file1=$CONFIG_SITE + set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site + set x "$prefix/share/config.site" "$prefix/etc/config.site" else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site + set x "$ac_default_prefix/share/config.site" \ + "$ac_default_prefix/etc/config.site" fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" +shift +for ac_site_file do - test "x$ac_site_file" = xNONE && continue if test -r "$ac_site_file"; then - { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 +echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi @@ -1987,16 +1848,16 @@ if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then - { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} + { echo "$as_me:$LINENO: loading cache $cache_file" >&5 +echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else - { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} + { echo "$as_me:$LINENO: creating cache $cache_file" >&5 +echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi @@ -2010,38 +1871,29 @@ for ac_var in $ac_precious_vars; do eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { $as_echo "$as_me:$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;} + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +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:$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;} + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 +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:$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:$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:$LINENO: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 +echo "$as_me: former value: $ac_old_val" >&2;} + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 +echo "$as_me: current value: $ac_new_val" >&2;} + ac_cache_corrupted=: 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=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in @@ -2051,12 +1903,10 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi done if $ac_cache_corrupted; then - { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:$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_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 +echo "$as_me: error: changes in the environment can compromise the build" >&2;} + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi @@ -2118,8 +1968,8 @@ for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do fi done if test -z "$ac_aux_dir"; then - { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 -$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} { (exit 1); exit 1; }; } fi @@ -2134,34 +1984,34 @@ 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_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} { (exit 1); exit 1; }; } -{ $as_echo "$as_me:$LINENO: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } +{ echo "$as_me:$LINENO: checking build system type" >&5 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; } if test "${ac_cv_build+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&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_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 +echo "${ECHO_T}$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -$as_echo "$as_me: error: invalid value of canonical build" >&2;} +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 +echo "$as_me: error: invalid value of canonical build" >&2;} { (exit 1); exit 1; }; };; esac build=$ac_cv_build @@ -2178,27 +2028,27 @@ IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac -{ $as_echo "$as_me:$LINENO: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } +{ echo "$as_me:$LINENO: checking host system type" >&5 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; } if test "${ac_cv_host+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&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_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -$as_echo "$ac_cv_host" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 +echo "${ECHO_T}$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -$as_echo "$as_me: error: invalid value of canonical host" >&2;} +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 +echo "$as_me: error: invalid value of canonical host" >&2;} { (exit 1); exit 1; }; };; esac host=$ac_cv_host @@ -2215,27 +2065,27 @@ IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac -{ $as_echo "$as_me:$LINENO: checking target system type" >&5 -$as_echo_n "checking target system type... " >&6; } +{ echo "$as_me:$LINENO: checking target system type" >&5 +echo $ECHO_N "checking target system type... $ECHO_C" >&6; } if test "${ac_cv_target+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&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_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 -$as_echo "$ac_cv_target" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 +echo "${ECHO_T}$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 -$as_echo "$as_me: error: invalid value of canonical target" >&2;} +*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 +echo "$as_me: error: invalid value of canonical target" >&2;} { (exit 1); exit 1; }; };; esac target=$ac_cv_target @@ -2313,8 +2163,8 @@ SHARED_VERSION_INFO="8:0:7" case `pwd` in *\ * | *\ *) - { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; + { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac @@ -2344,10 +2194,10 @@ 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. @@ -2360,7 +2210,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -2371,11 +2221,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 -$as_echo "$CC" >&6; } + { echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -2384,10 +2234,10 @@ 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. @@ -2400,7 +2250,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -2411,11 +2261,11 @@ fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then @@ -2423,8 +2273,12 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$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;} +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC @@ -2437,10 +2291,10 @@ 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. @@ -2453,7 +2307,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -2464,11 +2318,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 -$as_echo "$CC" >&6; } + { echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -2477,10 +2331,10 @@ 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. @@ -2498,7 +2352,7 @@ do continue fi ac_cv_prog_CC="cc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -2521,11 +2375,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 -$as_echo "$CC" >&6; } + { echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -2536,10 +2390,10 @@ if test -z "$CC"; then 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. @@ -2552,7 +2406,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -2563,11 +2417,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 -$as_echo "$CC" >&6; } + { echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -2580,10 +2434,10 @@ if test -z "$CC"; then 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. @@ -2596,7 +2450,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -2607,11 +2461,11 @@ fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -2623,8 +2477,12 @@ done else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$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;} +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC @@ -2634,50 +2492,44 @@ fi fi -test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 -$as_echo "$as_me: error: no acceptable C compiler found in \$PATH +echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } + { (exit 1); exit 1; }; } # Provide some information about the compiler. -$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 -set X $ac_compile -ac_compiler=$2 +echo "$as_me:$LINENO: checking for C compiler version" >&5 +ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF @@ -2696,22 +2548,27 @@ main () } _ACEOF ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +ac_clean_files="$ac_clean_files a.out 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:$LINENO: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&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.*" - +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +# +# List of possible output files, starting from the most likely. +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) +# only as a last resort. b.out is created by i960 compilers. +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' +# +# The IRIX 6 linker writes into existing files which may not be +# executable, retaining their permissions. Remove them first so a +# subsequent execution test works. 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_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done @@ -2722,11 +2579,10 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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' @@ -2737,7 +2593,7 @@ 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 ) + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most @@ -2764,27 +2620,25 @@ else ac_file='' fi -{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } +{ echo "$as_me:$LINENO: result: $ac_file" >&5 +echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 -$as_echo "$as_me: error: C compiler cannot create executables +echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; }; } + { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. -{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then @@ -2793,53 +2647,49 @@ if test "$cross_compiling" != yes; then *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. + { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot run C compiled programs. +echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } + { (exit 1); exit 1; }; } fi fi fi -{ $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } +{ echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. -{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } -{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 +echo "${ECHO_T}$cross_compiling" >&6; } -{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 -$as_echo_n "checking for suffix of executables... " >&6; } +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will @@ -2848,33 +2698,31 @@ $as_echo "$ac_try_echo") >&5 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_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } + { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext -{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 +echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT -{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -2897,43 +2745,40 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile +echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } + { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 +echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -2959,21 +2804,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no @@ -2983,19 +2827,15 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:$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 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } +GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes @@ -3022,21 +2862,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" @@ -3061,21 +2900,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag @@ -3101,21 +2939,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 @@ -3130,8 +2967,8 @@ 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:$LINENO: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 +echo "${ECHO_T}$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 @@ -3147,10 +2984,10 @@ else CFLAGS= fi fi -{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC @@ -3221,21 +3058,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 @@ -3251,15 +3087,15 @@ fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) - { $as_echo "$as_me:$LINENO: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; + { echo "$as_me:$LINENO: result: none needed" >&5 +echo "${ECHO_T}none needed" >&6; } ;; xno) - { $as_echo "$as_me:$LINENO: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; + { echo "$as_me:$LINENO: result: unsupported" >&5 +echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac @@ -3269,43 +3105,48 @@ 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:$LINENO: checking for a sed that does not truncate output" >&5 -$as_echo_n "checking for a sed that does not truncate output... " >&6; } +{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } if test "${ac_cv_path_SED+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done - echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + echo "$ac_script" | sed 99q >conftest.sed $as_unset ac_script || ac_script= - if test -z "$SED"; then + # Extract the first word of "sed gsed" to use in msg output +if test -z "$SED"; then +set dummy sed gsed; ac_prog_name=$2 +if test "${ac_cv_path_SED+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else ac_path_SED_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +# 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 do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue -# Check for GNU ac_path_SED and select it if it is found. + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue + # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo '' >> "conftest.nl" + echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` @@ -3320,23 +3161,31 @@ case `"$ac_path_SED" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_SED_found && break 3 - done + + $ac_path_SED_found && break 3 done done + +done IFS=$as_save_IFS - if test -z "$ac_cv_path_SED"; then - { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 -$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} + + +fi + +SED="$ac_cv_path_SED" +if test -z "$SED"; then + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 +echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} { (exit 1); exit 1; }; } - fi +fi + else ac_cv_path_SED=$SED fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 -$as_echo "$ac_cv_path_SED" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 +echo "${ECHO_T}$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed @@ -3353,37 +3202,42 @@ Xsed="$SED -e 1s/^X//" -{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # Extract the first word of "grep ggrep" to use in msg output +if test -z "$GREP"; then +set dummy grep ggrep; ac_prog_name=$2 +if test "${ac_cv_path_GREP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 +# 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. + 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" + echo $ECHO_N "0123456789$ECHO_C" >"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" + 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 ac_count=`expr $ac_count + 1` @@ -3398,60 +3252,74 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 - done + + $ac_path_GREP_found && break 3 done done + +done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} + + +fi + +GREP="$ac_cv_path_GREP" +if test -z "$GREP"; then + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } - fi +fi + else ac_cv_path_GREP=$GREP fi + fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" -{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } +{ echo "$as_me:$LINENO: checking for egrep" >&5 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&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 + # Extract the first word of "egrep" to use in msg output +if test -z "$EGREP"; then +set dummy egrep; ac_prog_name=$2 +if test "${ac_cv_path_EGREP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else 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 +# 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. + 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" + echo $ECHO_N "0123456789$ECHO_C" >"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" + 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 ac_count=`expr $ac_count + 1` @@ -3466,61 +3334,75 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 - done + + $ac_path_EGREP_found && break 3 done done + +done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} + + +fi + +EGREP="$ac_cv_path_EGREP" +if test -z "$EGREP"; then + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } - fi +fi + else ac_cv_path_EGREP=$EGREP fi + fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" -{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 -$as_echo_n "checking for fgrep... " >&6; } +{ echo "$as_me:$LINENO: checking for fgrep" >&5 +echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } if test "${ac_cv_path_FGREP+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else - if test -z "$FGREP"; then + # Extract the first word of "fgrep" to use in msg output +if test -z "$FGREP"; then +set dummy fgrep; ac_prog_name=$2 +if test "${ac_cv_path_FGREP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else ac_path_FGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +# 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 fgrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue -# Check for GNU ac_path_FGREP and select it if it is found. + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue + # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo 'FGREP' >> "conftest.nl" + echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` @@ -3535,24 +3417,33 @@ case `"$ac_path_FGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_FGREP_found && break 3 - done + + $ac_path_FGREP_found && break 3 done done + +done IFS=$as_save_IFS - if test -z "$ac_cv_path_FGREP"; then - { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} + + +fi + +FGREP="$ac_cv_path_FGREP" +if test -z "$FGREP"; then + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } - fi +fi + else ac_cv_path_FGREP=$FGREP fi + fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 -$as_echo "$ac_cv_path_FGREP" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 +echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" @@ -3586,8 +3477,8 @@ fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } + { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw @@ -3616,14 +3507,14 @@ $as_echo_n "checking for ld used by $CC... " >&6; } ;; esac elif test "$with_gnu_ld" = yes; then - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } + { echo "$as_me:$LINENO: checking for GNU ld" >&5 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR @@ -3653,19 +3544,19 @@ fi LD="$lt_cv_path_LD" if test -n "$LD"; then - { $as_echo "$as_me:$LINENO: result: $LD" >&5 -$as_echo "$LD" >&6; } + { echo "$as_me:$LINENO: result: $LD" >&5 +echo "${ECHO_T}$LD" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld @@ -3689,10 +3580,10 @@ with_gnu_ld=$lt_cv_prog_gnu_ld -{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 -$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 +echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } if test "${lt_cv_path_NM+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$NM"; then # Let the user override the test. @@ -3738,8 +3629,8 @@ else : ${lt_cv_path_NM=no} fi fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 -$as_echo "$lt_cv_path_NM" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 +echo "${ECHO_T}$lt_cv_path_NM" >&6; } if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else @@ -3749,10 +3640,10 @@ else 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_DUMPBIN+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. @@ -3765,7 +3656,7 @@ do 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_DUMPBIN="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3776,11 +3667,11 @@ fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then - { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 -$as_echo "$DUMPBIN" >&6; } + { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 +echo "${ECHO_T}$DUMPBIN" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -3793,10 +3684,10 @@ if test -z "$DUMPBIN"; then 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. @@ -3809,7 +3700,7 @@ do 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_DUMPBIN="$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3820,11 +3711,11 @@ fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 -$as_echo "$ac_ct_DUMPBIN" >&6; } + { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 +echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -3836,8 +3727,12 @@ done else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$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;} +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN @@ -3856,45 +3751,45 @@ test -z "$NM" && NM=nm -{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 -$as_echo_n "checking the name lister ($NM) interface... " >&6; } +{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 +echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } if test "${lt_cv_nm_interface+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:3866: $ac_compile\"" >&5) + (eval echo "\"\$as_me:3761: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 - (eval echo "\"\$as_me:3869: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval echo "\"\$as_me:3764: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 - (eval echo "\"\$as_me:3872: output\"" >&5) + (eval echo "\"\$as_me:3767: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 -$as_echo "$lt_cv_nm_interface" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 +echo "${ECHO_T}$lt_cv_nm_interface" >&6; } -{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 -$as_echo_n "checking whether ln -s works... " >&6; } +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } else - { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 -$as_echo "no, using $LN_S" >&6; } + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 +echo "${ECHO_T}no, using $LN_S" >&6; } fi # find the maximum length of command line arguments -{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 -$as_echo_n "checking the maximum length of command line arguments... " >&6; } +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } if test "${lt_cv_sys_max_cmd_len+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else i=0 teststring="ABCD" @@ -4011,11 +3906,11 @@ else fi if test -n $lt_cv_sys_max_cmd_len ; then - { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 -$as_echo "$lt_cv_sys_max_cmd_len" >&6; } + { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } else - { $as_echo "$as_me:$LINENO: result: none" >&5 -$as_echo "none" >&6; } + { echo "$as_me:$LINENO: result: none" >&5 +echo "${ECHO_T}none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len @@ -4028,8 +3923,8 @@ max_cmd_len=$lt_cv_sys_max_cmd_len : ${MV="mv -f"} : ${RM="rm -f"} -{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 -$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 +echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" @@ -4038,18 +3933,18 @@ xsi_shell=no && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes -{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 -$as_echo "$xsi_shell" >&6; } +{ echo "$as_me:$LINENO: result: $xsi_shell" >&5 +echo "${ECHO_T}$xsi_shell" >&6; } -{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 -$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 +echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes -{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 -$as_echo "$lt_shell_append" >&6; } +{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5 +echo "${ECHO_T}$lt_shell_append" >&6; } if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then @@ -4083,15 +3978,15 @@ esac -{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 -$as_echo_n "checking for $LD option to reload object files... " >&6; } +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_reload_flag='-r' fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 -$as_echo "$lt_cv_ld_reload_flag" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; @@ -4119,10 +4014,10 @@ esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_OBJDUMP+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. @@ -4135,7 +4030,7 @@ do 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_OBJDUMP="${ac_tool_prefix}objdump" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4146,11 +4041,11 @@ fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then - { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 -$as_echo "$OBJDUMP" >&6; } + { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 +echo "${ECHO_T}$OBJDUMP" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -4159,10 +4054,10 @@ if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. @@ -4175,7 +4070,7 @@ do 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_OBJDUMP="objdump" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4186,11 +4081,11 @@ fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 -$as_echo "$ac_ct_OBJDUMP" >&6; } + { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 +echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then @@ -4198,8 +4093,12 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$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;} +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP @@ -4218,10 +4117,10 @@ test -z "$OBJDUMP" && OBJDUMP=objdump -{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 -$as_echo_n "checking how to recognize dependent libraries... " >&6; } +{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 +echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } if test "${lt_cv_deplibs_check_method+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= @@ -4414,8 +4313,8 @@ tpf*) esac fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 -$as_echo "$lt_cv_deplibs_check_method" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown @@ -4434,10 +4333,10 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AR+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. @@ -4450,7 +4349,7 @@ do 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_AR="${ac_tool_prefix}ar" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4461,11 +4360,11 @@ fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then - { $as_echo "$as_me:$LINENO: result: $AR" >&5 -$as_echo "$AR" >&6; } + { echo "$as_me:$LINENO: result: $AR" >&5 +echo "${ECHO_T}$AR" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -4474,10 +4373,10 @@ if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. @@ -4490,7 +4389,7 @@ do 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_AR="ar" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4501,11 +4400,11 @@ fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } + { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 +echo "${ECHO_T}$ac_ct_AR" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_AR" = x; then @@ -4513,8 +4412,12 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$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;} +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR @@ -4539,10 +4442,10 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. @@ -4555,7 +4458,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4566,11 +4469,11 @@ fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } + { echo "$as_me:$LINENO: result: $STRIP" >&5 +echo "${ECHO_T}$STRIP" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -4579,10 +4482,10 @@ 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. @@ -4595,7 +4498,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4606,11 +4509,11 @@ fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 +echo "${ECHO_T}$ac_ct_STRIP" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then @@ -4618,8 +4521,12 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$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;} +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP @@ -4638,10 +4545,10 @@ test -z "$STRIP" && STRIP=: 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. @@ -4654,7 +4561,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4665,11 +4572,11 @@ fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } + { echo "$as_me:$LINENO: result: $RANLIB" >&5 +echo "${ECHO_T}$RANLIB" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -4678,10 +4585,10 @@ 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. @@ -4694,7 +4601,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4705,11 +4612,11 @@ fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then @@ -4717,8 +4624,12 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$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;} +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB @@ -4795,10 +4706,10 @@ compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. -{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 -$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else # These are sane defaults that work on at least a few old systems. @@ -4916,14 +4827,14 @@ _LT_EOF if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Now try to grab the symbols. nlist=conftest.nm if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then @@ -4980,7 +4891,7 @@ _LT_EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext}; then pipe_works=yes fi @@ -5015,11 +4926,11 @@ if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { $as_echo "$as_me:$LINENO: result: failed" >&5 -$as_echo "failed" >&6; } + { echo "$as_me:$LINENO: result: failed" >&5 +echo "${ECHO_T}failed" >&6; } else - { $as_echo "$as_me:$LINENO: result: ok" >&5 -$as_echo "ok" >&6; } + { echo "$as_me:$LINENO: result: ok" >&5 +echo "${ECHO_T}ok" >&6; } fi @@ -5060,7 +4971,7 @@ ia64-*-hpux*) if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) @@ -5075,11 +4986,11 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 5078 "configure"' > conftest.$ac_ext + echo '#line 4989 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in @@ -5117,7 +5028,7 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *32-bit*) @@ -5167,10 +5078,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" - { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 -$as_echo_n "checking whether the C compiler needs -belf... " >&6; } + { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } if test "${lt_cv_cc_needs_belf+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -5199,30 +5110,26 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then lt_cv_cc_needs_belf=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_cc_needs_belf=no fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext ac_ext=c @@ -5232,8 +5139,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 -$as_echo "$lt_cv_cc_needs_belf" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" @@ -5245,7 +5152,7 @@ sparc*-*solaris*) if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *64-bit*) @@ -5272,10 +5179,10 @@ need_locks="$enable_libtool_lock" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_DSYMUTIL+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. @@ -5288,7 +5195,7 @@ do 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_DSYMUTIL="${ac_tool_prefix}dsymutil" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5299,11 +5206,11 @@ fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then - { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 -$as_echo "$DSYMUTIL" >&6; } + { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 +echo "${ECHO_T}$DSYMUTIL" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -5312,10 +5219,10 @@ if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. @@ -5328,7 +5235,7 @@ do 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_DSYMUTIL="dsymutil" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5339,11 +5246,11 @@ fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 -$as_echo "$ac_ct_DSYMUTIL" >&6; } + { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 +echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then @@ -5351,8 +5258,12 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$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;} +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL @@ -5364,10 +5275,10 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_NMEDIT+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. @@ -5380,7 +5291,7 @@ do 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_NMEDIT="${ac_tool_prefix}nmedit" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5391,11 +5302,11 @@ fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then - { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 -$as_echo "$NMEDIT" >&6; } + { echo "$as_me:$LINENO: result: $NMEDIT" >&5 +echo "${ECHO_T}$NMEDIT" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -5404,10 +5315,10 @@ if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. @@ -5420,7 +5331,7 @@ do 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_NMEDIT="nmedit" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5431,11 +5342,11 @@ fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 -$as_echo "$ac_ct_NMEDIT" >&6; } + { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 +echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then @@ -5443,8 +5354,12 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$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;} +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT @@ -5456,10 +5371,10 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_LIPO+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. @@ -5472,7 +5387,7 @@ do 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_LIPO="${ac_tool_prefix}lipo" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5483,11 +5398,11 @@ fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then - { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 -$as_echo "$LIPO" >&6; } + { echo "$as_me:$LINENO: result: $LIPO" >&5 +echo "${ECHO_T}$LIPO" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -5496,10 +5411,10 @@ if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. @@ -5512,7 +5427,7 @@ do 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_LIPO="lipo" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5523,11 +5438,11 @@ fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 -$as_echo "$ac_ct_LIPO" >&6; } + { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 +echo "${ECHO_T}$ac_ct_LIPO" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_LIPO" = x; then @@ -5535,8 +5450,12 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$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;} +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO @@ -5548,10 +5467,10 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_OTOOL+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. @@ -5564,7 +5483,7 @@ do 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_OTOOL="${ac_tool_prefix}otool" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5575,11 +5494,11 @@ fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then - { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 -$as_echo "$OTOOL" >&6; } + { echo "$as_me:$LINENO: result: $OTOOL" >&5 +echo "${ECHO_T}$OTOOL" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -5588,10 +5507,10 @@ if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. @@ -5604,7 +5523,7 @@ do 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_OTOOL="otool" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5615,11 +5534,11 @@ fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 -$as_echo "$ac_ct_OTOOL" >&6; } + { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 +echo "${ECHO_T}$ac_ct_OTOOL" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then @@ -5627,8 +5546,12 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$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;} +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL @@ -5640,10 +5563,10 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_OTOOL64+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. @@ -5656,7 +5579,7 @@ do 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_OTOOL64="${ac_tool_prefix}otool64" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5667,11 +5590,11 @@ fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then - { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 -$as_echo "$OTOOL64" >&6; } + { echo "$as_me:$LINENO: result: $OTOOL64" >&5 +echo "${ECHO_T}$OTOOL64" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -5680,10 +5603,10 @@ if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. @@ -5696,7 +5619,7 @@ do 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_OTOOL64="otool64" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5707,11 +5630,11 @@ fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 -$as_echo "$ac_ct_OTOOL64" >&6; } + { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 +echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then @@ -5719,8 +5642,12 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$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;} +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 @@ -5755,10 +5682,10 @@ fi - { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 -$as_echo_n "checking for -single_module linker flag... " >&6; } + { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 +echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } if test "${lt_cv_apple_cc_single_mod+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then @@ -5782,12 +5709,12 @@ else rm -f conftest.* fi fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 -$as_echo "$lt_cv_apple_cc_single_mod" >&6; } - { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 -$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 +echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } + { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 +echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } if test "${lt_cv_ld_exported_symbols_list+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS @@ -5814,37 +5741,33 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then lt_cv_ld_exported_symbols_list=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_ld_exported_symbols_list=no fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 -$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 +echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; @@ -5885,15 +5808,15 @@ 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:$LINENO: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" @@ -5925,21 +5848,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. @@ -5963,14 +5885,13 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err @@ -5978,7 +5899,7 @@ $as_echo "$ac_try_echo") >&5 # Broken: success on invalid input. continue else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. @@ -6003,8 +5924,8 @@ fi else ac_cv_prog_CPP=$CPP fi -{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 -$as_echo "$CPP" >&6; } +{ echo "$as_me:$LINENO: result: $CPP" >&5 +echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do @@ -6032,21 +5953,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. @@ -6070,14 +5990,13 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err @@ -6085,7 +6004,7 @@ $as_echo "$ac_try_echo") >&5 # Broken: success on invalid input. continue else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. @@ -6101,13 +6020,11 @@ rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } + { (exit 1); exit 1; }; } fi ac_ext=c @@ -6117,10 +6034,10 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -6147,21 +6064,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no @@ -6253,40 +6169,37 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi -rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF @@ -6308,11 +6221,11 @@ fi 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` -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -6330,21 +6243,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" @@ -6352,15 +6264,12 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi @@ -6371,11 +6280,11 @@ done for ac_header in dlfcn.h do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -6393,21 +6302,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" @@ -6415,15 +6323,12 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi @@ -6573,10 +6478,10 @@ if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi -{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 -$as_echo_n "checking for objdir... " >&6; } +{ echo "$as_me:$LINENO: checking for objdir" >&5 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } if test "${lt_cv_objdir+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null @@ -6588,8 +6493,8 @@ else fi rmdir .libs 2>/dev/null fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 -$as_echo "$lt_cv_objdir" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 +echo "${ECHO_T}$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir @@ -6681,10 +6586,10 @@ test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 -$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } + { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) @@ -6734,11 +6639,11 @@ fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 +echo "${ECHO_T}$MAGIC_CMD" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -6747,10 +6652,10 @@ fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then - { $as_echo "$as_me:$LINENO: checking for file" >&5 -$as_echo_n "checking for file... " >&6; } + { echo "$as_me:$LINENO: checking for file" >&5 +echo $ECHO_N "checking for file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) @@ -6800,11 +6705,11 @@ fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 +echo "${ECHO_T}$MAGIC_CMD" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -6884,10 +6789,10 @@ lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' - { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } + { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext @@ -6902,11 +6807,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:6905: $lt_compile\"" >&5) + (eval echo "\"\$as_me:6810: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:6909: \$? = $ac_status" >&5 + echo "$as_me:6814: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -6919,8 +6824,8 @@ else $RM conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" @@ -6939,8 +6844,8 @@ fi lt_prog_compiler_pic= lt_prog_compiler_static= -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' @@ -7211,8 +7116,8 @@ case $host_os in lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 -$as_echo "$lt_prog_compiler_pic" >&6; } +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } @@ -7223,10 +7128,10 @@ $as_echo "$lt_prog_compiler_pic" >&6; } # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then - { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } + { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_pic_works+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext @@ -7241,11 +7146,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7244: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7149: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:7248: \$? = $ac_status" >&5 + echo "$as_me:7153: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -7258,8 +7163,8 @@ else $RM conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 -$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in @@ -7282,10 +7187,10 @@ fi # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_static_works+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" @@ -7310,8 +7215,8 @@ else LDFLAGS="$save_LDFLAGS" fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 -$as_echo "$lt_cv_prog_compiler_static_works" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : @@ -7325,10 +7230,10 @@ fi - { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } + { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null @@ -7346,11 +7251,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7349: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7254: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:7353: \$? = $ac_status" >&5 + echo "$as_me:7258: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -7372,18 +7277,18 @@ else $RM conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } - { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } + { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null @@ -7401,11 +7306,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7404: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7309: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:7408: \$? = $ac_status" >&5 + echo "$as_me:7313: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -7427,8 +7332,8 @@ else $RM conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } @@ -7436,19 +7341,19 @@ $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -$as_echo_n "checking if we can lock with hard links... " >&6; } + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } + { echo "$as_me:$LINENO: result: $hard_links" >&5 +echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else @@ -7460,8 +7365,8 @@ fi - { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag= @@ -7923,21 +7828,18 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -7952,13 +7854,12 @@ if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi @@ -7994,21 +7895,18 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -8023,13 +7921,12 @@ if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi @@ -8252,31 +8149,27 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" @@ -8534,8 +8427,8 @@ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ fi fi -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 -$as_echo "$ld_shlibs" >&6; } +{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 +echo "${ECHO_T}$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no with_gnu_ld=$with_gnu_ld @@ -8571,15 +8464,15 @@ x|xyes) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest @@ -8597,7 +8490,7 @@ $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc=no @@ -8609,8 +8502,8 @@ $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } cat conftest.err 1>&5 fi $RM conftest* - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 -$as_echo "$archive_cmds_need_lc" >&6; } + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 +echo "${ECHO_T}$archive_cmds_need_lc" >&6; } ;; esac fi @@ -8773,8 +8666,8 @@ esac - { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } + { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } if test "$GCC" = yes; then case $host_os in @@ -9229,33 +9122,29 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then shlibpath_overrides_runpath=yes fi else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS @@ -9469,8 +9358,8 @@ uts4*) dynamic_linker=no ;; esac -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -$as_echo "$dynamic_linker" >&6; } +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 +echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" @@ -9571,8 +9460,8 @@ fi - { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -$as_echo_n "checking how to hardcode library paths into programs... " >&6; } + { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || @@ -9596,8 +9485,8 @@ else # directories. hardcode_action=unsupported fi -{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 -$as_echo "$hardcode_action" >&6; } +{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 +echo "${ECHO_T}$hardcode_action" >&6; } if test "$hardcode_action" = relink || test "$inherit_rpath" = yes; then @@ -9641,10 +9530,10 @@ else darwin*) # if libdl is installed we need to link against it - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } + { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" @@ -9676,37 +9565,33 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } +if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else @@ -9719,10 +9604,10 @@ fi ;; *) - { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 -$as_echo_n "checking for shl_load... " >&6; } + { echo "$as_me:$LINENO: checking for shl_load" >&5 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } if test "${ac_cv_func_shl_load+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -9775,42 +9660,38 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then ac_cv_func_shl_load=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 -$as_echo "$ac_cv_func_shl_load" >&6; } -if test "x$ac_cv_func_shl_load" = x""yes; then +{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } +if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else - { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 -$as_echo_n "checking for shl_load in -ldld... " >&6; } + { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" @@ -9842,43 +9723,39 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_shl_load=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 -$as_echo "$ac_cv_lib_dld_shl_load" >&6; } -if test "x$ac_cv_lib_dld_shl_load" = x""yes; then +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } +if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else - { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 -$as_echo_n "checking for dlopen... " >&6; } + { echo "$as_me:$LINENO: checking for dlopen" >&5 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } if test "${ac_cv_func_dlopen+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -9931,42 +9808,38 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then ac_cv_func_dlopen=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 -$as_echo "$ac_cv_func_dlopen" >&6; } -if test "x$ac_cv_func_dlopen" = x""yes; then +{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } +if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } + { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" @@ -9998,43 +9871,39 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } +if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else - { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 -$as_echo_n "checking for dlopen in -lsvld... " >&6; } + { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" @@ -10066,43 +9935,39 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then ac_cv_lib_svld_dlopen=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 -$as_echo "$ac_cv_lib_svld_dlopen" >&6; } -if test "x$ac_cv_lib_svld_dlopen" = x""yes; then +{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } +if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else - { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 -$as_echo_n "checking for dld_link in -ldld... " >&6; } + { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" @@ -10134,37 +9999,33 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_dld_link=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 -$as_echo "$ac_cv_lib_dld_dld_link" >&6; } -if test "x$ac_cv_lib_dld_dld_link" = x""yes; then +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } +if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi @@ -10203,10 +10064,10 @@ fi save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" - { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 -$as_echo_n "checking whether a program can dlopen itself... " >&6; } + { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross @@ -10214,7 +10075,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10217 "configure" +#line 10078 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10276,7 +10137,7 @@ _LT_EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? @@ -10294,15 +10155,15 @@ rm -fr conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 -$as_echo "$lt_cv_dlopen_self" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } + { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross @@ -10310,7 +10171,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10313 "configure" +#line 10174 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10372,7 +10233,7 @@ _LT_EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? @@ -10390,8 +10251,8 @@ rm -fr conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 -$as_echo "$lt_cv_dlopen_self_static" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" @@ -10429,13 +10290,13 @@ fi striplib= old_striplib= -{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 -$as_echo_n "checking whether stripping libraries is possible... " >&6; } +{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in @@ -10443,16 +10304,16 @@ else if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi ;; *) - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } ;; esac fi @@ -10469,13 +10330,13 @@ fi # Report which library types will actually be built - { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -$as_echo_n "checking if libtool supports shared libraries... " >&6; } - { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 -$as_echo "$can_build_shared" >&6; } + { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } + { echo "$as_me:$LINENO: result: $can_build_shared" >&5 +echo "${ECHO_T}$can_build_shared" >&6; } - { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -$as_echo_n "checking whether to build shared libraries... " >&6; } + { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and @@ -10495,15 +10356,15 @@ $as_echo_n "checking whether to build shared libraries... " >&6; } fi ;; esac - { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 -$as_echo "$enable_shared" >&6; } + { echo "$as_me:$LINENO: result: $enable_shared" >&5 +echo "${ECHO_T}$enable_shared" >&6; } - { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -$as_echo_n "checking whether to build static libraries... " >&6; } + { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes - { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 -$as_echo "$enable_static" >&6; } + { echo "$as_me:$LINENO: result: $enable_static" >&5 +echo "${ECHO_T}$enable_static" >&6; } @@ -10564,10 +10425,10 @@ if test -z "$CXX"; then 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. @@ -10580,7 +10441,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10591,11 +10452,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { $as_echo "$as_me:$LINENO: result: $CXX" >&5 -$as_echo "$CXX" >&6; } + { echo "$as_me:$LINENO: result: $CXX" >&5 +echo "${ECHO_T}$CXX" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -10608,10 +10469,10 @@ if test -z "$CXX"; then 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. @@ -10624,7 +10485,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10635,11 +10496,11 @@ fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 -$as_echo "$ac_ct_CXX" >&6; } + { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 +echo "${ECHO_T}$ac_ct_CXX" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -10651,8 +10512,12 @@ done else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$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;} +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX @@ -10662,47 +10527,43 @@ fi fi fi # Provide some information about the compiler. -$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 -set X $ac_compile -ac_compiler=$2 +echo "$as_me:$LINENO: checking for C++ compiler version" >&5 +ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -10728,21 +10589,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no @@ -10752,19 +10612,15 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:$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 +{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } +GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS -{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 -$as_echo_n "checking whether $CXX accepts -g... " >&6; } +{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes @@ -10791,21 +10647,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" @@ -10830,21 +10685,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag @@ -10870,21 +10724,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 @@ -10899,8 +10752,8 @@ 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:$LINENO: result: $ac_cv_prog_cxx_g" >&5 -$as_echo "$ac_cv_prog_cxx_g" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 +echo "${ECHO_T}$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 @@ -10937,10 +10790,10 @@ if test -z "$CXX"; then 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. @@ -10953,7 +10806,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10964,11 +10817,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { $as_echo "$as_me:$LINENO: result: $CXX" >&5 -$as_echo "$CXX" >&6; } + { echo "$as_me:$LINENO: result: $CXX" >&5 +echo "${ECHO_T}$CXX" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -10981,10 +10834,10 @@ if test -z "$CXX"; then 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. @@ -10997,7 +10850,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -11008,11 +10861,11 @@ fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 -$as_echo "$ac_ct_CXX" >&6; } + { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 +echo "${ECHO_T}$ac_ct_CXX" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -11024,8 +10877,12 @@ done else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$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;} +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX @@ -11035,47 +10892,43 @@ fi fi fi # Provide some information about the compiler. -$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 -set X $ac_compile -ac_compiler=$2 +echo "$as_me:$LINENO: checking for C++ compiler version" >&5 +ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -11101,21 +10954,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no @@ -11125,19 +10977,15 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:$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 +{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } +GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS -{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 -$as_echo_n "checking whether $CXX accepts -g... " >&6; } +{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes @@ -11164,21 +11012,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" @@ -11203,21 +11050,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag @@ -11243,21 +11089,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 @@ -11272,8 +11117,8 @@ 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:$LINENO: result: $ac_cv_prog_cxx_g" >&5 -$as_echo "$ac_cv_prog_cxx_g" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 +echo "${ECHO_T}$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 @@ -11303,11 +11148,11 @@ 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:$LINENO: checking how to run the C++ preprocessor" >&5 -$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" @@ -11339,21 +11184,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. @@ -11377,14 +11221,13 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err @@ -11392,7 +11235,7 @@ $as_echo "$ac_try_echo") >&5 # Broken: success on invalid input. continue else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. @@ -11417,8 +11260,8 @@ fi else ac_cv_prog_CXXCPP=$CXXCPP fi -{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 -$as_echo "$CXXCPP" >&6; } +{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 +echo "${ECHO_T}$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do @@ -11446,21 +11289,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. @@ -11484,14 +11326,13 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err @@ -11499,7 +11340,7 @@ $as_echo "$ac_try_echo") >&5 # Broken: success on invalid input. continue else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. @@ -11515,9 +11356,7 @@ rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -_lt_caught_CXX_error=yes; } + _lt_caught_CXX_error=yes fi ac_ext=cpp @@ -11667,8 +11506,8 @@ fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } + { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw @@ -11697,14 +11536,14 @@ $as_echo_n "checking for ld used by $CC... " >&6; } ;; esac elif test "$with_gnu_ld" = yes; then - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } + { echo "$as_me:$LINENO: checking for GNU ld" >&5 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR @@ -11734,19 +11573,19 @@ fi LD="$lt_cv_path_LD" if test -n "$LD"; then - { $as_echo "$as_me:$LINENO: result: $LD" >&5 -$as_echo "$LD" >&6; } + { echo "$as_me:$LINENO: result: $LD" >&5 +echo "${ECHO_T}$LD" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld @@ -11813,8 +11652,8 @@ with_gnu_ld=$lt_cv_prog_gnu_ld fi # PORTME: fill in a description of your system's C++ link characteristics - { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) @@ -11935,21 +11774,18 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -11964,13 +11800,12 @@ if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi @@ -12007,21 +11842,18 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -12036,13 +11868,12 @@ if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi @@ -12788,8 +12619,8 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ;; esac - { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -$as_echo "$ld_shlibs_CXX" >&6; } + { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 +echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" @@ -12819,7 +12650,7 @@ _LT_EOF if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. @@ -13001,8 +12832,8 @@ fi lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then @@ -13318,8 +13149,8 @@ case $host_os in lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 -$as_echo "$lt_prog_compiler_pic_CXX" >&6; } +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } @@ -13327,10 +13158,10 @@ $as_echo "$lt_prog_compiler_pic_CXX" >&6; } # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then - { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } + { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext @@ -13345,11 +13176,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:13348: $lt_compile\"" >&5) + (eval echo "\"\$as_me:13179: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:13352: \$? = $ac_status" >&5 + echo "$as_me:13183: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -13362,8 +13193,8 @@ else $RM conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in @@ -13383,10 +13214,10 @@ fi # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS="$LDFLAGS" @@ -13411,8 +13242,8 @@ else LDFLAGS="$save_LDFLAGS" fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then : @@ -13423,10 +13254,10 @@ fi - { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } + { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null @@ -13444,11 +13275,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:13447: $lt_compile\"" >&5) + (eval echo "\"\$as_me:13278: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:13451: \$? = $ac_status" >&5 + echo "$as_me:13282: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -13470,15 +13301,15 @@ else $RM conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } - { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } + { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null @@ -13496,11 +13327,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:13499: $lt_compile\"" >&5) + (eval echo "\"\$as_me:13330: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:13503: \$? = $ac_status" >&5 + echo "$as_me:13334: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -13522,8 +13353,8 @@ else $RM conftest* fi -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -13531,19 +13362,19 @@ $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -$as_echo_n "checking if we can lock with hard links... " >&6; } + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } + { echo "$as_me:$LINENO: result: $hard_links" >&5 +echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else @@ -13552,8 +13383,8 @@ fi - { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in @@ -13578,8 +13409,8 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie esac exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -$as_echo "$ld_shlibs_CXX" >&6; } +{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 +echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no with_gnu_ld_CXX=$with_gnu_ld @@ -13606,15 +13437,15 @@ x|xyes) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest @@ -13632,7 +13463,7 @@ $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_CXX=no @@ -13644,8 +13475,8 @@ $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } cat conftest.err 1>&5 fi $RM conftest* - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 -$as_echo "$archive_cmds_need_lc_CXX" >&6; } + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } ;; esac fi @@ -13715,8 +13546,8 @@ esac - { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } + { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' @@ -14119,33 +13950,29 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then shlibpath_overrides_runpath=yes fi else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS @@ -14359,8 +14186,8 @@ uts4*) dynamic_linker=no ;; esac -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -$as_echo "$dynamic_linker" >&6; } +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 +echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" @@ -14410,8 +14237,8 @@ fi - { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -$as_echo_n "checking how to hardcode library paths into programs... " >&6; } + { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || test -n "$runpath_var_CXX" || @@ -14435,8 +14262,8 @@ else # directories. hardcode_action_CXX=unsupported fi -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 -$as_echo "$hardcode_action_CXX" >&6; } +{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 +echo "${ECHO_T}$hardcode_action_CXX" >&6; } if test "$hardcode_action_CXX" = relink || test "$inherit_rpath_CXX" = yes; then @@ -14479,11 +14306,11 @@ 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:$LINENO: checking how to run the C++ preprocessor" >&5 -$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" @@ -14515,21 +14342,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. @@ -14553,14 +14379,13 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err @@ -14568,7 +14393,7 @@ $as_echo "$ac_try_echo") >&5 # Broken: success on invalid input. continue else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. @@ -14593,8 +14418,8 @@ fi else ac_cv_prog_CXXCPP=$CXXCPP fi -{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 -$as_echo "$CXXCPP" >&6; } +{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 +echo "${ECHO_T}$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do @@ -14622,21 +14447,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. @@ -14660,14 +14484,13 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err @@ -14675,7 +14498,7 @@ $as_echo "$ac_try_echo") >&5 # Broken: success on invalid input. continue else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. @@ -14691,13 +14514,11 @@ rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&5 -$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } + { (exit 1); exit 1; }; } fi ac_ext=cpp @@ -14715,13 +14536,14 @@ CXXFLAGS="$cxxflags_save" -for ac_func in malloc calloc free memcpy + +for ac_func in malloc calloc free memcpy memmove do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +{ echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -14774,42 +14596,35 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +ac_res=`eval echo '${'$as_ac_var'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -14817,10 +14632,10 @@ done -{ $as_echo "$as_me:$LINENO: checking for floor in -lm" >&5 -$as_echo_n "checking for floor in -lm... " >&6; } +{ echo "$as_me:$LINENO: checking for floor in -lm" >&5 +echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6; } if test "${ac_cv_lib_m_floor+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" @@ -14852,37 +14667,33 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then ac_cv_lib_m_floor=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_m_floor=no fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 -$as_echo "$ac_cv_lib_m_floor" >&6; } -if test "x$ac_cv_lib_m_floor" = x""yes; then +{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 +echo "${ECHO_T}$ac_cv_lib_m_floor" >&6; } +if test $ac_cv_lib_m_floor = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBM 1 _ACEOF @@ -14894,13 +14705,16 @@ fi -for ac_func in floor sqrt log + + + +for ac_func in floor sqrt log exp sin cos do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +{ echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -14953,52 +14767,45 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { 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 + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi -rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +ac_res=`eval echo '${'$as_ac_var'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done -{ $as_echo "$as_me:$LINENO: checking for lrint" >&5 -$as_echo_n "checking for lrint... " >&6; } +{ echo "$as_me:$LINENO: checking for lrint" >&5 +echo $ECHO_N "checking for lrint... $ECHO_C" >&6; } if test "${ac_cv_c99_lrint+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -15026,21 +14833,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c99_lrint=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c99_lrint=no @@ -15048,8 +14854,8 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c99_lrint" >&5 -$as_echo "$ac_cv_c99_lrint" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_c99_lrint" >&5 +echo "${ECHO_T}$ac_cv_c99_lrint" >&6; } if test "x$ac_cv_c99_lrint" = "xyes"; then cat >>confdefs.h <<\_ACEOF @@ -15058,10 +14864,10 @@ _ACEOF fi -{ $as_echo "$as_me:$LINENO: checking for lrintf" >&5 -$as_echo_n "checking for lrintf... " >&6; } +{ echo "$as_me:$LINENO: checking for lrintf" >&5 +echo $ECHO_N "checking for lrintf... $ECHO_C" >&6; } if test "${ac_cv_c99_lrintf+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -15089,21 +14895,20 @@ case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c99_lrintf=yes else - $as_echo "$as_me: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c99_lrintf=no @@ -15111,8 +14916,8 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c99_lrintf" >&5 -$as_echo "$ac_cv_c99_lrintf" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_c99_lrintf" >&5 +echo "${ECHO_T}$ac_cv_c99_lrintf" >&6; } if test "x$ac_cv_c99_lrintf" = "xyes"; then cat >>confdefs.h <<\_ACEOF @@ -15125,9 +14930,6 @@ fi -SBSMS_EXTRA_OBJ="" -SBSMS_BIN="" - # Check whether --enable-universal_binary was given. if test "${enable_universal_binary+set}" = set; then enableval=$enable_universal_binary; enable_universal_binary=$enableval @@ -15144,14 +14946,6 @@ else fi -# Check whether --enable-multithreaded was given. -if test "${enable_multithreaded+set}" = set; then - enableval=$enable_multithreaded; enable_multithreaded=$enableval -else - enable_multithreaded=no -fi - - # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then enableval=$enable_debug; enable_debug=$enableval @@ -15160,458 +14954,12 @@ else fi -# Check whether --enable-sndfile was given. -if test "${enable_sndfile+set}" = set; then - enableval=$enable_sndfile; enable_sndfile=$enableval -else - enable_sndfile=no -fi +SBSMS_CFLAGS="-ffast-math -fstrict-aliasing" - -# Check whether --enable-mp3 was given. -if test "${enable_mp3+set}" = set; then - enableval=$enable_mp3; enable_mp3=$enableval -else - enable_mp3=no -fi - - -# Check whether --enable-portaudio was given. -if test "${enable_portaudio+set}" = set; then - enableval=$enable_portaudio; enable_portaudio=$enableval -else - enable_portaudio=no -fi - - -# Check whether --enable-wx was given. -if test "${enable_wx+set}" = set; then - enableval=$enable_wx; enable_wx=$enableval -else - enable_wx=no -fi - - -# Check whether --enable-programs was given. -if test "${enable_programs+set}" = set; then - enableval=$enable_programs; enable_progs=$enableval -else - enable_progs=yes -fi - - -if test x$enable_mp3 = xyes; then - enable_sndfile=yes; - { $as_echo "$as_me:$LINENO: checking for mad_stream_init in -lmad" >&5 -$as_echo_n "checking for mad_stream_init in -lmad... " >&6; } -if test "${ac_cv_lib_mad_mad_stream_init+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lmad $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* 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 mad_stream_init (); -int -main () -{ -return mad_stream_init (); - ; - return 0; -} -_ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - 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_cv_lib_mad_mad_stream_init=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_mad_mad_stream_init=no -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_stream_init" >&5 -$as_echo "$ac_cv_lib_mad_mad_stream_init" >&6; } -if test "x$ac_cv_lib_mad_mad_stream_init" = x""yes; then - mad_libs="-lmad"; SBSMS_EXTRA_OBJ="mp3.lo mp3tech.lo audiobuffer.lo"; use_libmad=yes -else - echo "Sorry, you need libmad for mp3 support. Install libmad or ./configure --disable-mp3"; exit -1 -fi - - if test x$use_libmad = xyes; then - if test x$MAD_LIBS = x; then - MAD_LIBS=$mad_libs - fi - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_MAD 1 -_ACEOF - - fi -else - MAD_LIBS="" -fi - if test x$enable_mp3 = xyes; then - ENABLE_MP3_TRUE= - ENABLE_MP3_FALSE='#' -else - ENABLE_MP3_TRUE='#' - ENABLE_MP3_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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_PKG_CONFIG+set}" = set; 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:$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:$LINENO: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:$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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; 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:$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:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 -$as_echo "$ac_pt_PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:$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:$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:$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:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } - else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } - PKG_CONFIG="" - fi - -fi - -pkg_failed=no -{ $as_echo "$as_me:$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:$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:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; 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:$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:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; 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 - -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 - - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_sndfile=0 -elif test $pkg_failed = untried; then - ac_cv_sndfile=0 -else - SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS - SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_sndfile=1 -fi - -if test x$enable_sndfile = xyes; then - # check for presence of libsndfile - if test "$ac_cv_sndfile" = "0"; then - echo "Sorry, you need libsndfile to --enable-sndfile. Install libsndfile or --disable-sndfile" - exit -1; - else - - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_SNDFILE 1 -_ACEOF - - fi -else - SNDFILE_LIBS="" -fi - if test x$enable_sndfile = xyes; then - ENABLE_SNDFILE_TRUE= - ENABLE_SNDFILE_FALSE='#' -else - ENABLE_SNDFILE_TRUE='#' - ENABLE_SNDFILE_FALSE= -fi - - - -pkg_failed=no -{ $as_echo "$as_me:$LINENO: checking for PORTAUDIO" >&5 -$as_echo_n "checking for PORTAUDIO... " >&6; } - -if test -n "$PORTAUDIO_CFLAGS"; then - pkg_cv_PORTAUDIO_CFLAGS="$PORTAUDIO_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 0.0.19\"") >&5 - ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 0.0.19") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - pkg_cv_PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 >= 0.0.19" 2>/dev/null` -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$PORTAUDIO_LIBS"; then - pkg_cv_PORTAUDIO_LIBS="$PORTAUDIO_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 0.0.19\"") >&5 - ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 0.0.19") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - pkg_cv_PORTAUDIO_LIBS=`$PKG_CONFIG --libs "portaudio-2.0 >= 0.0.19" 2>/dev/null` -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - -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 - PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "portaudio-2.0 >= 0.0.19" 2>&1` - else - PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "portaudio-2.0 >= 0.0.19" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$PORTAUDIO_PKG_ERRORS" >&5 - - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_portaudio=0 -elif test $pkg_failed = untried; then - ac_cv_portaudio=0 -else - PORTAUDIO_CFLAGS=$pkg_cv_PORTAUDIO_CFLAGS - PORTAUDIO_LIBS=$pkg_cv_PORTAUDIO_LIBS - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_portaudio=1 -fi - -if test x$enable_portaudio = xyes; then - # check for presence of libportaudio - if test "$ac_cv_portaudio" = "0"; then - echo "Sorry, you need libportaudio-2.0 to --enable-portaudio. Install libportaudio or --disable-portaudio" - exit -1; - else - - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_PORTAUDIO 1 -_ACEOF - - fi -else - PORTAUDIO_LIBS="" -fi - if test x$enable_portaudio = xyes; then - ENABLE_PORTAUDIO_TRUE= - ENABLE_PORTAUDIO_FALSE='#' -else - ENABLE_PORTAUDIO_TRUE='#' - ENABLE_PORTAUDIO_FALSE= -fi - - -# legitimately we can add -g to flags for debug builds, because they won't -# be much use otherwise -if test x$enable_debug = xyes; then - CXXFLAGS="$CXXFLAGS -g" -fi - -if test x$enable_static = xyes; then - CXXFLAGS="$CXXFLAGS" -else - case "$target_os" in +if test x$enable_static = xno; then + case "$target_os" in darwin*) - CXXFLAGS="$CXXFLAGS -mdynamic-no-pic" + SBSMS_CFLAGS="$SBSMS_CLFAGS -mdynamic-no-pic" ;; *) ;; @@ -15621,13 +14969,11 @@ fi if test x$enable_universal_binary = xyes; then case "$target_os" in darwin*) - CXXFLAGS="$CXXFLAGS -mmacosx-version-min=10.4 -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk" + SBSMS_CFLAGS="$SBSMS_CFLAGS -mmacosx-version-min=10.4 -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk" ;; *) ;; esac -else - CXXFLAGS="$CXXFLAGS" fi case "$target_os" in @@ -15639,140 +14985,13 @@ case "$target_os" in ;; esac - - -if test x$enable_wx = xyes; then - - wxconfigargs="" - if test x$enable_static = xyes; then - wxconfigargs="$wxconfigargs --static=yes" - else - wxconfigargs="$wxconfigargs --static=no" - fi - - if test x$enable_debug = xyes; then - wxconfigargs="$wxconfigargs --debug=yes" - else - wxconfigargs="$wxconfigargs --debug=no" - fi - - # 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_WX_CONFIG+set}" = set; then - $as_echo_n "(cached) " >&6 +if test x$enable_debug = xyes; then + SBSMS_CFLAGS="$SBSMS_CFLAGS -g" else - case $WX_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_WX_CONFIG="$WX_CONFIG" # 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_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:$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_CONFIG" && ac_cv_path_WX_CONFIG="no" - ;; -esac -fi -WX_CONFIG=$ac_cv_path_WX_CONFIG -if test -n "$WX_CONFIG"; then - { $as_echo "$as_me:$LINENO: result: $WX_CONFIG" >&5 -$as_echo "$WX_CONFIG" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + SBSMS_CFLAGS="$SBSMS_CFLAGS -O3" fi - if [ "$WX_CONFIG" = "no" ] ; then - { { $as_echo "$as_me:$LINENO: error: \"Could not find wx-config: is wxWidgets installed? is wx-config in your path?\"" >&5 -$as_echo "$as_me: error: \"Could not find wx-config: is wxWidgets installed? is wx-config in your path?\"" >&2;} - { (exit 1); exit 1; }; } - fi - - { $as_echo "$as_me:$LINENO: Checking that the chosen version of wxWidgets is 2.8.x" >&5 -$as_echo "$as_me: Checking that the chosen version of wxWidgets is 2.8.x" >&6;} - - wx_version=`${WX_CONFIG} --version` - case "${wx_version}" in - 2.8.*) - echo "Great, you're using wxWidgets ${wx_version}!" - ;; - *) - wx_list=`${WX_CONFIG} --list` - { { $as_echo "$as_me:$LINENO: error: Unable to locate a suitable configuration of wxWidgets v2.8.x or higher. - The currently available configurations are listed below. If necessary, either - install the package for your distribution or download the latest version of - wxWidgets from http://wxwidgets.org. ${wx_list}" >&5 -$as_echo "$as_me: error: Unable to locate a suitable configuration of wxWidgets v2.8.x or higher. - The currently available configurations are listed below. If necessary, either - install the package for your distribution or download the latest version of - wxWidgets from http://wxwidgets.org. ${wx_list}" >&2;} - { (exit 1); exit 1; }; } - esac - - WX_LIBS="`$WX_CONFIG $wxconfigargs --libs`" - WX_CFLAGS="`$WX_CONFIG $wxconfigargs --cxxflags`" - - -fi - if test x$enable_wx = xyes; then - ENABLE_WX_TRUE= - ENABLE_WX_FALSE='#' -else - ENABLE_WX_TRUE='#' - ENABLE_WX_FALSE= -fi - - if test "$macosx" = "yes"; then - MACOSX_TRUE= - MACOSX_FALSE='#' -else - MACOSX_TRUE='#' - MACOSX_FALSE= -fi - - -if test x$enable_progs = xyes; then - # we would like programs, so work out which ones can be built - # sbsms can always be built (doesn't need optional libs) - SBSMS_PROGS="sbsms" - if test x$enable_portaudio = xyes; then - # portaudio available, build sbsmsplay - SBSMS_PROGS="$SBSMS_PROGS sbsmsplay" - if test x$enable_wx = xyes; then - # wx available, build wxsbsmsplayer - SBSMS_PROGS="$SBSMS_PROGS wxsbsmsplayer" - fi - fi -else - # no progs please - SBSMS_PROGS="" -fi - - -if test x$enable_multithreaded = xyes; then - -cat >>confdefs.h <<\_ACEOF -#define MULTITHREADED 1 -_ACEOF - -fi - am__api_version='1.10' # Find a good install program. We prefer a C program (faster), @@ -15788,12 +15007,11 @@ am__api_version='1.10' # 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:$LINENO: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH @@ -15822,29 +15040,17 @@ case $as_dir/ in # 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 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 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 @@ -15857,8 +15063,8 @@ fi INSTALL=$ac_install_sh fi fi -{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } +{ echo "$as_me:$LINENO: result: $INSTALL" >&5 +echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. @@ -15868,8 +15074,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -$as_echo_n "checking whether build environment is sane... " >&6; } +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } # Just in case sleep 1 echo timestamp > conftest.file @@ -15892,9 +15098,9 @@ if ( # 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_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 -$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi @@ -15905,23 +15111,26 @@ then # Ok. : else - { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 -$as_echo "$as_me: error: newly created file is older than distributed files! +echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi -{ $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } +{ echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}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 $. +# Double any \ or $. echo might interpret backslashes. # 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"` +cat <<\_ACEOF >conftest.sed +s/[\\$]/&&/g;s/;s,x,x,$// +_ACEOF +program_transform_name=`echo $program_transform_name | sed -f conftest.sed` +rm -f conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` @@ -15932,15 +15141,15 @@ if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= - { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi -{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 +echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } if test -z "$MKDIR_P"; then if test "${ac_cv_path_mkdir+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin @@ -15975,8 +15184,8 @@ fi MKDIR_P="$ac_install_sh -d" fi fi -{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -$as_echo "$MKDIR_P" >&6; } +{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 +echo "${ECHO_T}$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in @@ -15988,10 +15197,10 @@ 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. @@ -16004,7 +15213,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -16015,23 +15224,22 @@ fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then - { $as_echo "$as_me:$LINENO: result: $AWK" >&5 -$as_echo "$AWK" >&6; } + { echo "$as_me:$LINENO: result: $AWK" >&5 +echo "${ECHO_T}$AWK" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done -{ $as_echo "$as_me:$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'` +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh @@ -16048,12 +15256,12 @@ esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } SET_MAKE= else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi @@ -16078,8 +15286,8 @@ am__doit: .PHONY: am__doit END # If we don't find an include directive, just comment out the code. -{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -$as_echo_n "checking for style of include used by $am_make... " >&6; } +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } am__include="#" am__quote= _am_result=none @@ -16106,8 +15314,8 @@ if test "$am__include" = "#"; then fi -{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 -$as_echo "$_am_result" >&6; } +{ echo "$as_me:$LINENO: result: $_am_result" >&5 +echo "${ECHO_T}$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. @@ -16134,8 +15342,8 @@ if test "`cd $srcdir && pwd`" != "`pwd`"; then am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then - { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi fi @@ -16151,8 +15359,8 @@ fi # Define the identity of the package. - PACKAGE=libsbsms - VERSION="$LIBSBSMS_RELEASE_MAJOR.$LIBSBSMS_RELEASE_MINOR.$LIBSBSMS_RELEASE_BUILD" + PACKAGE='sbsms' + VERSION='1.5.0' cat >>confdefs.h <<_ACEOF @@ -16190,10 +15398,10 @@ 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. @@ -16206,7 +15414,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -16217,11 +15425,11 @@ fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } + { echo "$as_me:$LINENO: result: $STRIP" >&5 +echo "${ECHO_T}$STRIP" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi @@ -16230,10 +15438,10 @@ 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:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. @@ -16246,7 +15454,7 @@ do 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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -16257,11 +15465,11 @@ fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 +echo "${ECHO_T}$ac_ct_STRIP" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then @@ -16269,8 +15477,12 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$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;} +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP @@ -16295,10 +15507,10 @@ am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' depcc="$CC" am_compiler_list= -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&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 @@ -16386,8 +15598,8 @@ else fi fi -{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if @@ -16403,10 +15615,10 @@ fi depcc="$CXX" am_compiler_list= -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then - $as_echo_n "(cached) " >&6 + echo $ECHO_N "(cached) $ECHO_C" >&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 @@ -16494,8 +15706,8 @@ else fi fi -{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if @@ -16511,8 +15723,8 @@ fi -{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 -$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } +{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval @@ -16520,8 +15732,8 @@ else USE_MAINTAINER_MODE=no fi - { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 -$as_echo "$USE_MAINTAINER_MODE" >&6; } + { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' @@ -16563,12 +15775,11 @@ _ACEOF case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 +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= ;; #( *) $as_unset $ac_var ;; esac ;; esac @@ -16601,12 +15812,12 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && - { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} + { echo "$as_me:$LINENO: updating cache $cache_file" >&5 +echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else - { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 +echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache @@ -16622,7 +15833,7 @@ ac_ltlibobjs= 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"` + ac_i=`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. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" @@ -16633,77 +15844,41 @@ LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs -if test -z "${ENABLE_MP3_TRUE}" && test -z "${ENABLE_MP3_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MP3\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"ENABLE_MP3\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ENABLE_SNDFILE_TRUE}" && test -z "${ENABLE_SNDFILE_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SNDFILE\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"ENABLE_SNDFILE\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ENABLE_PORTAUDIO_TRUE}" && test -z "${ENABLE_PORTAUDIO_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTAUDIO\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"ENABLE_PORTAUDIO\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${ENABLE_WX_TRUE}" && test -z "${ENABLE_WX_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_WX\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"ENABLE_WX\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"MACOSX\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"MACOSX\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. +echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. + { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. +echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } 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:$LINENO: creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 +echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. @@ -16716,7 +15891,7 @@ ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## @@ -16726,7 +15901,7 @@ 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 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST @@ -16748,45 +15923,17 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh fi # Support unset when possible. @@ -16802,6 +15949,8 @@ fi # 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.) +as_nl=' +' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. @@ -16824,7 +15973,7 @@ 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 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi @@ -16837,10 +15986,17 @@ PS2='> ' PS4='+ ' # NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + fi +done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && @@ -16862,7 +16018,7 @@ as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -16913,7 +16069,7 @@ $as_unset CDPATH 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 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems @@ -16941,6 +16097,7 @@ case `echo -n x` in *) ECHO_N='-n';; esac + if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr @@ -16953,22 +16110,19 @@ if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null + mkdir conf$$.dir 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 +echo >conf$$.file +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' - fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln else as_ln_s='cp -p' fi @@ -16993,10 +16147,10 @@ else as_test_x=' eval sh -c '\'' if test -d "$1"; then - test -d "$1/."; + test -d "$1/."; else case $1 in - -*)set "./$1";; + -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi @@ -17019,7 +16173,7 @@ exec 6>&1 # values after options handling. ac_log=" This file was extended by sbsms $as_me 1.5.0, which was -generated by GNU Autoconf 2.63. Invocation command line was +generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -17032,16 +16186,7 @@ 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 +cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" @@ -17049,23 +16194,22 @@ config_commands="$ac_config_commands" _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. -Usage: $0 [OPTION]... [FILE]... +Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit - -q, --quiet, --silent - do not print progress messages + -q, --quiet 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 + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE Configuration files: $config_files @@ -17079,13 +16223,13 @@ $config_commands Report bugs to ." _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ sbsms config.status 1.5.0 -configured by $0, generated by GNU Autoconf 2.63, - with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" +configured by $0, generated by GNU Autoconf 2.61, + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" -Copyright (C) 2008 Free Software Foundation, Inc. +Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -17093,12 +16237,11 @@ 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. +cat >>$CONFIG_STATUS <<\_ACEOF +# If no file are specified by the user, then we need to provide default +# value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do @@ -17120,36 +16263,30 @@ do -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 ;; + echo "$ac_cs_version"; 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"` ;; - esac - CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" + CONFIG_FILES="$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 - CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header - { $as_echo "$as_me: error: ambiguous option: $1 + { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) - $as_echo "$ac_cs_usage"; exit ;; + 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_echo "$as_me: error: unrecognized option: $1 + -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; @@ -17168,29 +16305,27 @@ if $ac_cs_silent; then fi _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>$CONFIG_STATUS <<_ACEOF 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' + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 + CONFIG_SHELL=$SHELL export CONFIG_SHELL - exec "\$@" + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX - $as_echo "$ac_log" + echo "$ac_log" } >&5 _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS # @@ -17549,7 +16684,7 @@ AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets @@ -17563,8 +16698,8 @@ do "libsbsms.spec") CONFIG_FILES="$CONFIG_FILES libsbsms.spec" ;; "sbsms.pc") CONFIG_FILES="$CONFIG_FILES sbsms.pc" ;; - *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done @@ -17605,143 +16740,227 @@ $debug || (umask 077 && mkdir "$tmp") } || { - $as_echo "$as_me: cannot create a temporary directory in ." >&2 + echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } -# 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'. +# +# Set up the sed scripts for CONFIG_FILES section. +# + +# No need to generate the scripts if there are no CONFIG_FILES. +# This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then - -ac_cr=' ' -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 {' >"$tmp/subs1.awk" && _ACEOF -{ - echo "cat >conf$$subs.awk <<_ACEOF" && - echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && - echo "_ACEOF" -} >conf$$subs.sh || - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } -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_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + cat >conf$$subs.sed <<_ACEOF +SHELL!$SHELL$ac_delim +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim +PACKAGE_NAME!$PACKAGE_NAME$ac_delim +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim +PACKAGE_STRING!$PACKAGE_STRING$ac_delim +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim +exec_prefix!$exec_prefix$ac_delim +prefix!$prefix$ac_delim +program_transform_name!$program_transform_name$ac_delim +bindir!$bindir$ac_delim +sbindir!$sbindir$ac_delim +libexecdir!$libexecdir$ac_delim +datarootdir!$datarootdir$ac_delim +datadir!$datadir$ac_delim +sysconfdir!$sysconfdir$ac_delim +sharedstatedir!$sharedstatedir$ac_delim +localstatedir!$localstatedir$ac_delim +includedir!$includedir$ac_delim +oldincludedir!$oldincludedir$ac_delim +docdir!$docdir$ac_delim +infodir!$infodir$ac_delim +htmldir!$htmldir$ac_delim +dvidir!$dvidir$ac_delim +pdfdir!$pdfdir$ac_delim +psdir!$psdir$ac_delim +libdir!$libdir$ac_delim +localedir!$localedir$ac_delim +mandir!$mandir$ac_delim +DEFS!$DEFS$ac_delim +ECHO_C!$ECHO_C$ac_delim +ECHO_N!$ECHO_N$ac_delim +ECHO_T!$ECHO_T$ac_delim +LIBS!$LIBS$ac_delim +build_alias!$build_alias$ac_delim +host_alias!$host_alias$ac_delim +target_alias!$target_alias$ac_delim +build!$build$ac_delim +build_cpu!$build_cpu$ac_delim +build_vendor!$build_vendor$ac_delim +build_os!$build_os$ac_delim +host!$host$ac_delim +host_cpu!$host_cpu$ac_delim +host_vendor!$host_vendor$ac_delim +host_os!$host_os$ac_delim +target!$target$ac_delim +target_cpu!$target_cpu$ac_delim +target_vendor!$target_vendor$ac_delim +target_os!$target_os$ac_delim +LIBTOOL!$LIBTOOL$ac_delim +CC!$CC$ac_delim +CFLAGS!$CFLAGS$ac_delim +LDFLAGS!$LDFLAGS$ac_delim +CPPFLAGS!$CPPFLAGS$ac_delim +ac_ct_CC!$ac_ct_CC$ac_delim +EXEEXT!$EXEEXT$ac_delim +OBJEXT!$OBJEXT$ac_delim +SED!$SED$ac_delim +GREP!$GREP$ac_delim +EGREP!$EGREP$ac_delim +FGREP!$FGREP$ac_delim +LD!$LD$ac_delim +DUMPBIN!$DUMPBIN$ac_delim +ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim +NM!$NM$ac_delim +LN_S!$LN_S$ac_delim +OBJDUMP!$OBJDUMP$ac_delim +AR!$AR$ac_delim +STRIP!$STRIP$ac_delim +RANLIB!$RANLIB$ac_delim +lt_ECHO!$lt_ECHO$ac_delim +DSYMUTIL!$DSYMUTIL$ac_delim +NMEDIT!$NMEDIT$ac_delim +LIPO!$LIPO$ac_delim +OTOOL!$OTOOL$ac_delim +OTOOL64!$OTOOL64$ac_delim +CPP!$CPP$ac_delim +CXX!$CXX$ac_delim +CXXFLAGS!$CXXFLAGS$ac_delim +ac_ct_CXX!$ac_ct_CXX$ac_delim +CXXCPP!$CXXCPP$ac_delim +SHLIB_VERSION_ARG!$SHLIB_VERSION_ARG$ac_delim +SHARED_VERSION_INFO!$SHARED_VERSION_INFO$ac_delim +SBSMS_CFLAGS!$SBSMS_CFLAGS$ac_delim +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim +INSTALL_DATA!$INSTALL_DATA$ac_delim +am__isrc!$am__isrc$ac_delim +CYGPATH_W!$CYGPATH_W$ac_delim +PACKAGE!$PACKAGE$ac_delim +VERSION!$VERSION$ac_delim +ACLOCAL!$ACLOCAL$ac_delim +AUTOCONF!$AUTOCONF$ac_delim +AUTOMAKE!$AUTOMAKE$ac_delim +AUTOHEADER!$AUTOHEADER$ac_delim +MAKEINFO!$MAKEINFO$ac_delim +install_sh!$install_sh$ac_delim +_ACEOF - 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 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } 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 >>"\$tmp/subs1.awk" <<\\_ACAWK && +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` +if test -n "$ac_eof"; then + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` + ac_eof=`expr $ac_eof + 1` +fi + +cat >>$CONFIG_STATUS <<_ACEOF +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b _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 >>"\$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 +sed ' +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g +s/^/s,@/; s/!/@,|#_!!_#|/ +:n +t n +s/'"$ac_delim"'$/,g/; t +s/$/\\/; p +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n +' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF +CEOF$ac_eof _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 < "$tmp/subs1.awk" > "$tmp/subs.awk" \ - || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 -$as_echo "$as_me: error: could not setup config files machinery" >&2;} + + +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + cat >conf$$subs.sed <<_ACEOF +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim +mkdir_p!$mkdir_p$ac_delim +AWK!$AWK$ac_delim +SET_MAKE!$SET_MAKE$ac_delim +am__leading_dot!$am__leading_dot$ac_delim +AMTAR!$AMTAR$ac_delim +am__tar!$am__tar$ac_delim +am__untar!$am__untar$ac_delim +DEPDIR!$DEPDIR$ac_delim +am__include!$am__include$ac_delim +am__quote!$am__quote$ac_delim +AMDEP_TRUE!$AMDEP_TRUE$ac_delim +AMDEP_FALSE!$AMDEP_FALSE$ac_delim +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim +CCDEPMODE!$CCDEPMODE$ac_delim +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim +CXXDEPMODE!$CXXDEPMODE$ac_delim +am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim +am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim +MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim +MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim +MAINT!$MAINT$ac_delim +LIBOBJS!$LIBOBJS$ac_delim +LTLIBOBJS!$LTLIBOBJS$ac_delim +_ACEOF + + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then + break + elif $ac_last_try; then + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` +if test -n "$ac_eof"; then + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` + ac_eof=`expr $ac_eof + 1` +fi + +cat >>$CONFIG_STATUS <<_ACEOF +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF +sed ' +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g +s/^/s,@/; s/!/@,|#_!!_#|/ +:n +t n +s/'"$ac_delim"'$/,g/; t +s/$/\\/; p +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n +' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF +:end +s/|#_!!_#|//g +CEOF$ac_eof +_ACEOF + # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and @@ -17758,133 +16977,19 @@ s/^[^=]*=[ ]*$// }' fi -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +cat >>$CONFIG_STATUS <<\_ACEOF 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 >"$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_t=`sed -n "/$ac_delim/p" confdefs.h` - if test -z "$ac_t"; then - break - elif $ac_last_try; then - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} - { (exit 1); exit 1; }; } - 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_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 -$as_echo "$as_me: error: could not setup config headers machinery" >&2;} - { (exit 1); exit 1; }; } -fi # test -n "$CONFIG_HEADERS" - - -eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" -shift -for ac_tag +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 -$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 +echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; @@ -17913,38 +17018,26 @@ $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 +echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac - ac_file_inputs="$ac_file_inputs '$ac_f'" + ac_file_inputs="$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.' + configure_input="Generated from "`IFS=: + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 -$as_echo "$as_me: creating $ac_file" >&6;} + { echo "$as_me:$LINENO: creating $ac_file" >&5 +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 >"$tmp/stdin" \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } ;; + *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac @@ -17954,7 +17047,7 @@ $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" | +echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -17980,7 +17073,7 @@ $as_echo X"$ac_file" | as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -17989,7 +17082,7 @@ $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" | +echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -18010,17 +17103,17 @@ $as_echo X"$as_dir" | test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 +echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } 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|^\.[\\/]||'` + ac_dir_suffix=/`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|/||'` + ac_top_builddir_sub=`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/ ;; @@ -18065,13 +17158,12 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix esac _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +cat >>$CONFIG_STATUS <<\_ACEOF # 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/ { +case `sed -n '/datarootdir/ { p q } @@ -18080,14 +17172,13 @@ ac_sed_dataroot=' /@infodir@/p /@localedir@/p /@mandir@/p -' -case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:$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;} + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g @@ -18101,16 +17192,15 @@ _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 +cat >>$CONFIG_STATUS <<_ACEOF + sed "$ac_vpsub $extrasub _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s|@configure_input@|$ac_sed_conf_input|;t t +s&@configure_input@&$configure_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 @@ -18121,75 +17211,135 @@ 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 "$tmp/subs.awk" >$tmp/out \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { echo "$as_me:$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' +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 "$tmp/stdin" case $ac_file in - -) cat "$tmp/out" && rm -f "$tmp/out";; - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; - esac \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } + -) cat "$tmp/out"; rm -f "$tmp/out";; + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; + esac ;; :H) # # CONFIG_HEADER # +_ACEOF + +# Transform confdefs.h into a sed script `conftest.defines', that +# substitutes the proper values into config.h.in to produce config.h. +rm -f conftest.defines conftest.tail +# First, append a space to every undef/define line, to ease matching. +echo 's/$/ /' >conftest.defines +# Then, protect against being on the right side of a sed subst, or in +# an unquoted here document, in config.status. If some macros were +# called several times there might be several #defines for the same +# symbol, which is useless. But do not sort them, since the last +# AC_DEFINE must be honored. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where +# NAME is the cpp macro being defined, VALUE is the value it is being given. +# PARAMS is the parameter list in the macro definition--in most cases, it's +# just an empty string. +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' +ac_dB='\\)[ (].*,\\1define\\2' +ac_dC=' ' +ac_dD=' ,' + +uniq confdefs.h | + sed -n ' + t rset + :rset + s/^[ ]*#[ ]*define[ ][ ]*// + t ok + d + :ok + s/[\\&,]/\\&/g + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p + ' >>conftest.defines + +# Remove the space that was appended to ease matching. +# Then 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. +# (The regexp can be short, since the line contains either #define or #undef.) +echo 's/ $// +s,^[ #]*u.*,/* & */,' >>conftest.defines + +# Break up conftest.defines: +ac_max_sed_lines=50 + +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" +# et cetera. +ac_in='$ac_file_inputs' +ac_out='"$tmp/out1"' +ac_nxt='"$tmp/out2"' + +while : +do + # Write a here document: + cat >>$CONFIG_STATUS <<_ACEOF + # First, check the format of the line: + cat >"\$tmp/defines.sed" <<\\CEOF +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def +b +:def +_ACEOF + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS + echo 'CEOF + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail + grep . conftest.tail >/dev/null || break + rm -f conftest.defines + mv conftest.tail conftest.defines +done +rm -f conftest.defines conftest.tail + +echo "ac_result=$ac_in" >>$CONFIG_STATUS +cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then - { - $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" - } >"$tmp/config.h" \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } - if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then - { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 -$as_echo "$as_me: $ac_file is unchanged" >&6;} + echo "/* $configure_input */" >"$tmp/config.h" + cat "$ac_result" >>"$tmp/config.h" + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 +echo "$as_me: $ac_file is unchanged" >&6;} else - rm -f "$ac_file" - mv "$tmp/config.h" "$ac_file" \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } + rm -f $ac_file + mv "$tmp/config.h" $ac_file fi else - $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ - || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 -$as_echo "$as_me: error: could not create -" >&2;} - { (exit 1); exit 1; }; } + echo "/* $configure_input */" + cat "$ac_result" fi -# Compute "$ac_file"'s index in $config_headers. -_am_arg="$ac_file" + rm -f "$tmp/out12" +# Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in - $_am_arg | $_am_arg:* ) + $ac_file | $ac_file:* ) 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" | +echo "timestamp for $ac_file" >`$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 || +echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -18209,8 +17359,8 @@ $as_echo X"$_am_arg" | s/.*/./; q'`/stamp-h$_am_stamp_count ;; - :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 -$as_echo "$as_me: executing $ac_file commands" >&6;} + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 +echo "$as_me: executing $ac_file commands" >&6;} ;; esac @@ -19018,16 +18168,7 @@ compiler_lib_search_path=$lt_compiler_lib_search_path_CXX _LT_EOF ;; - "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 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; 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. @@ -19037,13 +18178,13 @@ do # 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 + if sed 10q "$mf" | grep '^#.*generated by automake' > /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" | +echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -19087,7 +18228,7 @@ $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$file" | +echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -19113,7 +18254,7 @@ $as_echo X"$file" | as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -19122,7 +18263,7 @@ $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" | +echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -19143,8 +18284,8 @@ $as_echo X"$as_dir" | test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 +echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" @@ -19161,11 +18302,6 @@ _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save -test $ac_write_fail = 0 || - { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. @@ -19187,8 +18323,4 @@ if test "$no_create" != yes; then # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi -if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} -fi diff --git a/lib-src/sbsms/configure.in b/lib-src/sbsms/configure.in index 14835c9d8..ecea50bc2 100644 --- a/lib-src/sbsms/configure.in +++ b/lib-src/sbsms/configure.in @@ -52,10 +52,10 @@ CFLAGS="$cflags_save" CPPFLAGS="$cppflags_save" CXXFLAGS="$cxxflags_save" -AC_CHECK_FUNCS(malloc calloc free memcpy) +AC_CHECK_FUNCS(malloc calloc free memcpy memmove) AC_CHECK_LIB([m],floor) -AC_CHECK_FUNCS(floor sqrt log) +AC_CHECK_FUNCS(floor sqrt log exp sin cos) AC_C99_FUNC_LRINT() AC_C99_FUNC_LRINTF() @@ -63,88 +63,18 @@ AC_C99_FUNC_LRINTF() AC_SUBST(SHLIB_VERSION_ARG) AC_SUBST(SHARED_VERSION_INFO) -SBSMS_EXTRA_OBJ="" -SBSMS_BIN="" - AC_ARG_ENABLE(universal_binary,[ --enable-universal_binary enable universal binary build: (default: disable)],[enable_universal_binary=$enableval],[enable_universal_binary=no]) AC_ARG_ENABLE(static,[ --enable-static enable static build: (default: disable)],[enable_static=$enableval],[enable_static=no]) -AC_ARG_ENABLE(multithreaded,[ --enable-multithreaded enable multithreaded build: (default: disable)],[enable_multithreaded=$enableval],[enable_multithreaded=no]) - AC_ARG_ENABLE(debug,[ --enable-debug enable debug build: (default: disable)],[enable_debug=$enableval],[enable_debug=no]) -AC_ARG_ENABLE(sndfile,[ --enable-sndfile enable sndfile support: (default: disable)],[enable_sndfile=$enableval],[enable_sndfile=no]) +SBSMS_CFLAGS="-ffast-math -fstrict-aliasing" -AC_ARG_ENABLE(mp3,[ --enable-mp3 enable mp3 support (default: disable)],[enable_mp3=$enableval],[enable_mp3=no]) - -AC_ARG_ENABLE(portaudio,[ --enable-portaudio enable portaudio support: (default: disable)],[enable_portaudio=$enableval],[enable_portaudio=no]) - -AC_ARG_ENABLE(wx,[ --enable-wx enable wxWidgets support (default: disable)],[enable_wx=$enableval],[enable_wx=no]) - -AC_ARG_ENABLE(programs,[ --enable-programs Build SBSMS programs as well as library (default: enable)],[enable_progs=$enableval],[enable_progs=yes]) - -if test x$enable_mp3 = xyes; then - enable_sndfile=yes; - AC_CHECK_LIB(mad,mad_stream_init,[mad_libs="-lmad"; SBSMS_EXTRA_OBJ="mp3.lo mp3tech.lo audiobuffer.lo"; use_libmad=yes],[echo "Sorry, you need libmad for mp3 support. Install libmad or ./configure --disable-mp3"; exit -1]) - if test x$use_libmad = xyes; then - if test x$MAD_LIBS = x; then - MAD_LIBS=$mad_libs - fi - AC_SUBST(MAD_LIBS) - AC_DEFINE(HAVE_MAD,1,[Define to use libmad]) - fi -else - MAD_LIBS="" -fi -AM_CONDITIONAL(ENABLE_MP3, test x$enable_mp3 = xyes) - -PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0) - -if test x$enable_sndfile = xyes; then - # check for presence of libsndfile - if test "$ac_cv_sndfile" = "0"; then - echo "Sorry, you need libsndfile to --enable-sndfile. Install libsndfile or --disable-sndfile" - exit -1; - else - AC_SUBST(SNDFILE_CFLAGS) - AC_SUBST(SNDFILE_LIBS) - AC_DEFINE(HAVE_SNDFILE,1,[Define to use libsndfile]) - fi -else - SNDFILE_LIBS="" -fi -AM_CONDITIONAL(ENABLE_SNDFILE, test x$enable_sndfile = xyes) - -PKG_CHECK_MODULES(PORTAUDIO, portaudio-2.0 >= 0.0.19, ac_cv_portaudio=1, ac_cv_portaudio=0) - -if test x$enable_portaudio = xyes; then - # check for presence of libportaudio - if test "$ac_cv_portaudio" = "0"; then - echo "Sorry, you need libportaudio-2.0 to --enable-portaudio. Install libportaudio or --disable-portaudio" - exit -1; - else - AC_SUBST(PORTAUDIO_CFLAGS) - AC_SUBST(PORTAUDIO_LIBS) - AC_DEFINE(HAVE_PORTAUDIO,1,[Define to use libportaudio]) - fi -else - PORTAUDIO_LIBS="" -fi -AM_CONDITIONAL(ENABLE_PORTAUDIO, test x$enable_portaudio = xyes) - -# legitimately we can add -g to flags for debug builds, because they won't -# be much use otherwise -if test x$enable_debug = xyes; then - CXXFLAGS="$CXXFLAGS -g" -fi - -if test x$enable_static = xyes; then - CXXFLAGS="$CXXFLAGS" -else - case "$target_os" in +if test x$enable_static = xno; then + case "$target_os" in darwin*) - CXXFLAGS="$CXXFLAGS -mdynamic-no-pic" + SBSMS_CFLAGS="$SBSMS_CLFAGS -mdynamic-no-pic" ;; *) ;; @@ -154,13 +84,11 @@ fi if test x$enable_universal_binary = xyes; then case "$target_os" in darwin*) - CXXFLAGS="$CXXFLAGS -mmacosx-version-min=10.4 -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk" + SBSMS_CFLAGS="$SBSMS_CFLAGS -mmacosx-version-min=10.4 -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk" ;; *) ;; esac -else - CXXFLAGS="$CXXFLAGS" fi case "$target_os" in @@ -172,77 +100,15 @@ case "$target_os" in ;; esac -AC_SUBST(SBSMS_BIN) - -if test x$enable_wx = xyes; then - - wxconfigargs="" - if test x$enable_static = xyes; then - wxconfigargs="$wxconfigargs --static=yes" - else - wxconfigargs="$wxconfigargs --static=no" - fi - - if test x$enable_debug = xyes; then - wxconfigargs="$wxconfigargs --debug=yes" - else - wxconfigargs="$wxconfigargs --debug=no" - fi - - AC_PATH_PROG(WX_CONFIG, wx-config, no, $PATH:/usr/local/bin ) - if [[ "$WX_CONFIG" = "no" ]] ; then - AC_MSG_ERROR("Could not find wx-config: is wxWidgets installed? is wx-config in your path?") - fi - - AC_MSG_NOTICE([Checking that the chosen version of wxWidgets is 2.8.x]) - - wx_version=`${WX_CONFIG} --version` - case "${wx_version}" in - 2.8.*) - echo "Great, you're using wxWidgets ${wx_version}!" - ;; - *) - wx_list=`${WX_CONFIG} --list` - AC_MSG_ERROR([Unable to locate a suitable configuration of wxWidgets v2.8.x or higher. - The currently available configurations are listed below. If necessary, either - install the package for your distribution or download the latest version of - wxWidgets from http://wxwidgets.org. ${wx_list}]) - esac - - WX_LIBS="`$WX_CONFIG $wxconfigargs --libs`" - WX_CFLAGS="`$WX_CONFIG $wxconfigargs --cxxflags`" - AC_SUBST(WX_LIBS) - AC_SUBST(WX_CFLAGS) -fi -AM_CONDITIONAL(ENABLE_WX, test x$enable_wx = xyes) -AM_CONDITIONAL(MACOSX, test "$macosx" = "yes") - -if test x$enable_progs = xyes; then - # we would like programs, so work out which ones can be built - # sbsms can always be built (doesn't need optional libs) - SBSMS_PROGS="sbsms" - if test x$enable_portaudio = xyes; then - # portaudio available, build sbsmsplay - SBSMS_PROGS="$SBSMS_PROGS sbsmsplay" - if test x$enable_wx = xyes; then - # wx available, build wxsbsmsplayer - SBSMS_PROGS="$SBSMS_PROGS wxsbsmsplayer" - fi - fi +if test x$enable_debug = xyes; then + SBSMS_CFLAGS="$SBSMS_CFLAGS -g" else - # no progs please - SBSMS_PROGS="" + SBSMS_CFLAGS="$SBSMS_CFLAGS -O3" fi -AC_SUBST(SBSMS_PROGS) +AC_SUBST(SBSMS_CFLAGS) -if test x$enable_multithreaded = xyes; then - AC_DEFINE(MULTITHREADED,1,[Define to compile multithreaded sbsms]) -fi +AM_INIT_AUTOMAKE([]) -AM_INIT_AUTOMAKE(libsbsms, "$LIBSBSMS_RELEASE_MAJOR.$LIBSBSMS_RELEASE_MINOR.$LIBSBSMS_RELEASE_BUILD") - -dnl Audacity policy: don't enable automatic rebuild of configure et al if -dnl sources change AM_MAINTAINER_MODE([enabled]) AC_CONFIG_FILES([Makefile src/Makefile libsbsms.spec sbsms.pc]) diff --git a/lib-src/sbsms/include/sbsms.h b/lib-src/sbsms/include/sbsms.h index 2959d0da6..a583c8652 100644 --- a/lib-src/sbsms/include/sbsms.h +++ b/lib-src/sbsms/include/sbsms.h @@ -9,76 +9,72 @@ namespace _sbsms_ { typedef float real; typedef real interleaved[2]; typedef interleaved audio; -} -#define SBSMS_WINDOW SBSMS_HANN -extern _sbsms_::real SBSMS_P1; -extern _sbsms_::real SBSMS_Q1; -#define SBSMS_S 4 -#define SBSMS_MAX_BANDS 7 -#define SBSMS_QUALITIES 3 -#define SBSMS_MAX_STRETCH 12 -#define SBSMS_MIN_STRETCH 1.0/12.0 -extern int SBSMS_BANDS[SBSMS_QUALITIES]; -extern int SBSMS_M_MAX[SBSMS_QUALITIES]; -extern int SBSMS_FRAME_SIZE[SBSMS_QUALITIES]; -extern int SBSMS_MAX_FRAME_SIZE[SBSMS_QUALITIES]; -extern int SBSMS_H[SBSMS_QUALITIES][5]; -extern _sbsms_::real SBSMS_PAD[SBSMS_QUALITIES][SBSMS_MAX_BANDS]; -extern int SBSMS_RES[SBSMS_QUALITIES][SBSMS_MAX_BANDS]; -extern int SBSMS_N[SBSMS_QUALITIES][SBSMS_MAX_BANDS]; +struct sbsms_quality { + long inframesize; + long maxoutframesize; + real minrate; + real maxrate; + int bands; + int M_MAX; + int H[5]; + int N[8]; + int S[8]; + int res[8]; + real pad[8]; + real P[8]; + real Q[8]; +}; + +extern const sbsms_quality sbsms_quality_standard; +extern const sbsms_quality sbsms_quality_fast; struct sbsms_resample_frame { - _sbsms_::real ratio0; - _sbsms_::real ratio1; - _sbsms_::audio *in; + real ratio0; + real ratio1; + audio *in; long size; }; -typedef long (*sbsms_cb)(_sbsms_::audio *buf, long n, void *data); -typedef _sbsms_::real (*sbsms_stretch_cb)(long nProcessed, void *data); -typedef _sbsms_::real (*sbsms_ratio_cb)(long nProcessed, void *data); +typedef long (*sbsms_cb)(audio *buf, long n, void *data); +typedef real (*sbsms_rate_cb)(long nProcessed, void *data); +typedef real (*sbsms_pitch_cb)(long nProcessed, void *data); typedef long (*sbsms_resample_cb)(void *cb_data, sbsms_resample_frame *frame); -namespace _sbsms_ { - class subband; - class TrackAllocator; - class PeakAllocator; -} +class subband; +class TrackAllocator; +class PeakAllocator; struct sbsms { FILE *fp; sbsms_cb getSamplesCB; - sbsms_stretch_cb getStretchCB; - sbsms_ratio_cb getRatioCB; - _sbsms_::subband *top; - _sbsms_::TrackAllocator *ta; - _sbsms_::PeakAllocator *pa; + sbsms_rate_cb getRateCB; + sbsms_pitch_cb getPitchCB; + subband *top; + TrackAllocator *ta; + PeakAllocator *pa; long n_prepad, n_postpad, n_prespent, n_processed; bool bWritingComplete; - int quality, channels; - long bufsize; - long chunksize; - _sbsms_::audio *ina; + sbsms_quality quality; + int channels; + audio *ina; void *threadData; }; -namespace _sbsms_ { - class SampleBufBase { public: SampleBufBase() {}; virtual ~SampleBufBase() {}; - virtual long read(_sbsms_::audio *buf, long n)=0; + virtual long read(audio *buf, long n)=0; virtual void advance(long n)=0; virtual long n_readable()=0; }; - class grain; + class SampleBuf { public: - SampleBuf() {}; + //SampleBuf() {}; SampleBuf(int N); SampleBuf(int N, long delay); void init(int N, long delay); @@ -88,7 +84,7 @@ class SampleBuf { void grow(long pos); long write(audio *buf, long n); long write(grain* g, int h); - virtual long read(_sbsms_::audio *buf, long n); + virtual long read(audio *buf, long n); virtual void advance(long n); virtual long n_readable(); audio *getReadBuf(); @@ -101,16 +97,12 @@ class SampleBuf { audio *buf; }; -} - - -using namespace _sbsms_; class Resampler { public: Resampler(sbsms_resample_cb func, void *data); - Resampler(SampleBuf *in, real ratio); + Resampler(SampleBuf *in, real pitch); ~Resampler(); - long read(_sbsms_::audio *audioOut, long frames); + long read(audio *audioOut, long frames); void writingComplete(); void reset(); void init(); @@ -120,11 +112,11 @@ class Resampler { sbsms_resample_frame frame; long startAbs; long midAbs; - _sbsms_::real midAbsf; + real midAbsf; long endAbs; long writePosAbs; bool bInput; - _sbsms_::SampleBuf *out; + SampleBuf *out; sbsms_resample_cb cb; void *data; bool bPull; @@ -134,22 +126,13 @@ class Resampler { bool bWritingComplete; }; -struct pitcher { - void *sbsmsData; - sbsms *sbsmser; - _sbsms_::real ratio; - Resampler *postResampler; - _sbsms_::audio *buf; - long bufsize; -}; - void sbsms_init(int n); void sbsms_reset(sbsms *sbsmser); void sbsms_seek(sbsms *sbsmser, long framePos, long samplePos); -sbsms* sbsms_create(sbsms_cb getSamplesCB, sbsms_stretch_cb getStretchCB, sbsms_ratio_cb getRatioCB, int channels, int quality, bool bPreAnalyze, bool bSynthesize); -sbsms* sbsms_create(FILE *fp, sbsms_stretch_cb getStretchCB, sbsms_ratio_cb getRatioCB); +sbsms* sbsms_create(sbsms_cb getSamplesCB, sbsms_rate_cb getRateCB, sbsms_pitch_cb getPitchCB, int channels, sbsms_quality *quality, bool bPreAnalyze, bool bSynthesize); +sbsms* sbsms_create(FILE *fp, sbsms_rate_cb getRateCB, sbsms_pitch_cb getPitchCB); void sbsms_destroy(sbsms* sbsmser); -long sbsms_read_frame(_sbsms_::audio *out, void *data, sbsms *sbsmer, _sbsms_::real *ratio0, _sbsms_::real *ratio1); +long sbsms_read_frame(audio *out, void *data, sbsms *sbsmer, real *pitch0, real *pitch1); long sbsms_write_frame(FILE *fp, void *data, sbsms *sbsmser); long sbsms_samples_processed(sbsms *sbsmser); long sbsms_pre_analyze(sbsms_cb getSamplesCB, void *data, sbsms *sbsmser); @@ -167,27 +150,23 @@ FILE *sbsms_open_read(const char *fileName); long sbsms_get_samples_to_process(FILE *fp); long sbsms_get_frames_to_process(FILE *fp); long sbsms_get_channels(FILE *fp); -long sbsms_get_quality(FILE *fp); +void sbsms_get_quality(FILE *fp, sbsms_quality *quality); void sbsms_seek_start_data(FILE *fp); - -pitcher *pitch_create(sbsms *sbsmser, void *sbsmsData, _sbsms_::real ratio); -void pitch_reset(pitcher *pitch); -void pitch_destroy(pitcher *pitch); -long pitch_process(_sbsms_::audio *out, long n, pitcher *pitch); -long pitch_get_samples_queued(pitcher *pitch); - struct sbsmsInfo { - float stretch0, stretch1; - float ratio0, ratio1; + real rate0, rate1; + real pitch0, pitch1; long samplesToProcess; long samplesToGenerate; Resampler *rs; }; -real stretchCBLinear(long nProcessed, void *userData); -real stretchCBConstant(long nProcessed, void *userData); -real ratioCBLinear(long nProcessed, void *userData); -real ratioCBConstant(long nProcessed, void *userData); +long getLinearOutputSamples(sbsmsInfo *si); +real rateCBLinear(long nProcessed, void *userData); +real rateCBConstant(long nProcessed, void *userData); +real pitchCBLinear(long nProcessed, void *userData); +real pitchCBConstant(long nProcessed, void *userData); + +} #endif diff --git a/lib-src/sbsms/mac/Info.plist b/lib-src/sbsms/mac/Info.plist deleted file mode 100644 index d0a22c711..000000000 --- a/lib-src/sbsms/mac/Info.plist +++ /dev/null @@ -1,48 +0,0 @@ - - - - - CFBundleDocumentTypes - - - CFBundleTypeName - SBSMS - CFBundleTypeExtensions - - sbsms - - - - - CFBundleInfoDictionaryVersion - 6.0 - CFBundleIconFile - sbsms.icns - CFBundleIdentifier - net.sourceforge.sbsms - CFBundleDevelopmentRegion - English - CFBundleExecutable - wxsbsmsplayer - CFBundleName - SBSMS - CFBundlePackageType - APPL - CFBundleSignature - sbsms - CFBundleVersion - 1.6.0 - CFBundleShortVersionString - 1.6.0 - CFBundleGetInfoString - SBSMS version 1.6.0 - CFBundleLongVersionString - Version 1.6.0 - NSHumanReadableCopyright - Audacity version 1.3.4 - LSRequiresCarbon - - CSResourcesFileMapped - - - diff --git a/lib-src/sbsms/mac/sbsms.icns b/lib-src/sbsms/mac/sbsms.icns deleted file mode 100644 index bd787d7d6..000000000 Binary files a/lib-src/sbsms/mac/sbsms.icns and /dev/null differ diff --git a/lib-src/sbsms/resource/Pause.xpm b/lib-src/sbsms/resource/Pause.xpm deleted file mode 100644 index 0dc55eef1..000000000 --- a/lib-src/sbsms/resource/Pause.xpm +++ /dev/null @@ -1,197 +0,0 @@ -/* XPM */ -static char *Pause_xpm[] = { -/* columns rows colors chars-per-pixel */ -"28 25 166 2", -" c black", -". c #010101", -"X c gray3", -"o c #090909", -"O c #222222", -"+ c #232323", -"@ c #252525", -"# c gray15", -"$ c gray16", -"% c #2A2A2A", -"& c gray17", -"* c #2C2C2C", -"= c #2D2D2D", -"- c gray18", -"; c #484848", -": c gray29", -"> c #626262", -", c gray40", -"< c #6C6B6C", -"1 c #727272", -"2 c gray45", -"3 c #7C7C7C", -"4 c gray49", -"5 c #7E7E7E", -"6 c gray53", -"7 c #8E8E8E", -"8 c #909090", -"9 c #939393", -"0 c #949394", -"q c gray58", -"w c #959595", -"e c #979797", -"r c #999799", -"t c #9A999A", -"y c #9B9B9B", -"u c gray62", -"i c gray63", -"p c #A2A2A2", -"a c #A7A7A7", -"s c #A8A7A8", -"d c gray66", -"f c #A9A9A9", -"g c #AAAAAA", -"h c #ACABAB", -"j c #ACACAC", -"k c gray68", -"l c #AEAEAE", -"z c #B2B2B2", -"x c #C1C1C1", -"c c #C2C2C3", -"v c #C5C5C5", -"b c #C6C6C6", -"n c #C7C6C7", -"m c gray78", -"M c #C8C9C8", -"N c #C9C8C9", -"B c gray79", -"V c #CACACA", -"C c #CBCCCC", -"Z c #CCCBCC", -"A c gray80", -"S c gray81", -"D c #D0CFD0", -"F c #D0D0D0", -"G c #D1D0D1", -"H c #D2D2D2", -"J c #D2D2D3", -"K c #D3D2D2", -"L c #D3D2D3", -"P c LightGray", -"I c #D4D3D4", -"U c gray83", -"Y c #D5D5D5", -"T c #D5D5D6", -"R c gray84", -"E c #D6D7D6", -"W c #D7D6D7", -"Q c #D7D7D7", -"! c #D8D8D8", -"~ c gray85", -"^ c #DADADA", -"/ c #DADBDB", -"( c #DBDBDA", -") c gray86", -"_ c gainsboro", -"` c #DDDDDC", -"' c #DDDDDD", -"] c #DEDDDE", -"[ c #DEDEDD", -"{ c gray87", -"} c #DFDFDF", -"| c #DFDFE0", -" . c #DFE0E0", -".. c gray88", -"X. c #E0E0E1", -"o. c #E1E1E1", -"O. c #E2E1E1", -"+. c #E2E2E2", -"@. c #E3E2E3", -"#. c gray89", -"$. c #E3E3E4", -"%. c #E3E4E4", -"&. c #E4E3E3", -"*. c #E4E3E4", -"=. c #E4E4E3", -"-. c #E4E4E4", -";. c gray90", -":. c #E5E6E6", -">. c #E6E6E5", -",. c #E6E6E6", -"<. c #E6E6E7", -"1. c #E6E7E6", -"2. c #E6E7E7", -"3. c #E7E6E6", -"4. c #E7E7E6", -"5. c #E7E7E7", -"6. c #E7E7E8", -"7. c gray91", -"8. c #E9E9E9", -"9. c #E9E9EA", -"0. c #E9EAE9", -"q. c #E9EAEA", -"w. c #EAE9E9", -"e. c #EAE9EA", -"r. c #EAEAE9", -"t. c #EAEAEA", -"y. c gray92", -"u. c #EBEBEC", -"i. c #EBECEB", -"p. c #EBECEC", -"a. c #ECEBEB", -"s. c #ECEBEC", -"d. c #ECECEB", -"f. c #ECECEC", -"g. c #ECECED", -"h. c #ECEDEC", -"j. c gray93", -"k. c #EDEDEE", -"l. c #EEEEEE", -"z. c #EEEEEF", -"x. c #EEEFEE", -"c. c #EEEFEF", -"v. c #EFEEEE", -"b. c #EFEEEF", -"n. c #EFEFEE", -"m. c #EFEFEF", -"M. c #EFEFF0", -"N. c gray94", -"B. c #F0F0F1", -"V. c #F0F1F0", -"C. c #F0F1F1", -"Z. c #F1F0F0", -"A. c #F1F0F1", -"S. c #F1F1F0", -"D. c #F1F1F1", -"F. c gray95", -"G. c #F3F3F3", -"H. c #F4F4F4", -"J. c gray96", -"K. c #F6F6F6", -"L. c gray97", -"P. c #F8F8F8", -"I. c #F9F8F8", -"U. c #F9F9F9", -"Y. c gray100", -"T. c None", -/* pixels */ -"T.T.6 r e 9 9 0 0 0 9 9 9 9 0 0 9 9 0 0 0 0 9 r r 6 T.T.", -"T.r 3 < , , , , , , , , , , , , , , , , , , , , < 3 r T.", -"e 3 d U y.y.y.y.y.y.y.y.y.7.y.y.y.4.y.y.y.y.y.y.U d 3 e ", -"e d y.y.y.y.y.d.a.y.y.y.y.y.y.y.y.y.y.y.a.y.y.y.y.a.u e ", -"2 U d.a.d.k.d.d.a.y.a.k.a.y.u.a.d.d.k.k.a.i.i.d.u.i.c 2 ", -", k.k.d.d.d.k.d.d.k.d.d.a.a.k.a.d.d.d.d.k.d.k.k.k.y.M , ", -", k.k.k.k.k.k.d.k.k.k.d.k.k.k.k.d.k.k.k.k.k.k.k.k._ c , ", -", k.k.n.k.k.k.k.k.k.>.% + Q k.; + z k.4.k.k.k.k.>.S b , ", -", m.m.m.m.m.m.m.n.n.>. U m.# d S.m.m.m.m.m.~ M M , ", -", m.S.m.m.S.S.S.S.S.>.o U S.= d S.S.S.m.m._ Z Z Z , ", -", F.F.S.S.S.S.S.S.S.<.o U S.= d S.S.S.u._ D S S S , ", -", F.F.F.F.F.G.G.S.F.<.o W F.= s A.y.| W I J P D K , ", -", F.H.F.G.G.G.G.G.G.y.o D m.* i _ W U Q Q Q U U ~ , ", -", H.H.J.G.G.L.G.y.$.D X N | % y _ _ } | _ ~ _ _ ~ , ", -", J.J.J.L.G.k.y.| } U X m | % u | o.>.>.=.| } | _ , ", -", J.J.J.G.k.=.| | | E X M #.* i 7.>.>.>.4.| | | | , ", -", U.J.P.m.#.#.#.o.o.^ M $.# i <.<.2.7.>.o.o.$.$., ", -", U.P.S.<.<.2.2.<.>.| $ + D <.; O l <.>.7.>.2.<.>.>.5., ", -", U.J.u.y.y.y.y.y.y.y.u.u.y.7.u.y.y.7.u.>.y.u.u.y.y.y., ", -", U.F.u.i.u.u.i.a.a.u.a.a.k.a.a.y.a.a.a.k.k.y.k.i.k.k., ", -"2 | S.k.k.c.c.k.m.m.k.k.k.k.m.m.m.m.m.S.k.k.k.A.m.A.~ 2 ", -"e l S.S.n.S.S.S.S.S.A.A.S.A.S.A.m.S.m.S.S.A.m.S.S.S.d r ", -"9 6 d _ F.F.S.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.S.S.~ d 6 9 ", -"T.q 9 2 , , , , , , , , , , , , , , , , , , , , 2 9 0 T.", -"T.T.> 7 9 e c M M M M V M V M V M M V M V M n y 7 > T.T." -}; diff --git a/lib-src/sbsms/resource/PauseDown.xpm b/lib-src/sbsms/resource/PauseDown.xpm deleted file mode 100644 index 9584781b7..000000000 --- a/lib-src/sbsms/resource/PauseDown.xpm +++ /dev/null @@ -1,288 +0,0 @@ -/* XPM */ -static char *PauseDown_xpm[] = { -/* columns rows colors chars-per-pixel */ -"28 25 257 2", -" c black", -". c #000101", -"X c #010101", -"o c #040708", -"O c #060708", -"+ c #171C23", -"@ c #141E24", -"# c #191F26", -"$ c #142027", -"% c #17232B", -"& c #15222C", -"* c #16232D", -"= c #17242D", -"- c #1B2229", -"; c #1E252C", -": c #1E252D", -"> c #1E262D", -", c #1F272D", -"< c #293E4B", -"1 c #2F3B48", -"2 c #626262", -"3 c gray40", -"4 c #6C6B6C", -"5 c #727272", -"6 c gray45", -"7 c #73777D", -"8 c #74787E", -"9 c #7C7C7C", -"0 c #537FA4", -"q c #5180A6", -"w c #5585A7", -"e c #5686A7", -"r c #7E8588", -"t c #6C87A5", -"y c #6F8AA7", -"u c #6E8CA8", -"i c #6195B5", -"p c #7085A4", -"a c #708AA7", -"s c #728CA8", -"d c #7B8CA6", -"f c #7C8DA6", -"g c #728EB0", -"h c #7BA0B0", -"j c #7CA1B0", -"k c #518DDB", -"l c #5592DD", -"z c #5997DF", -"x c #5D93DC", -"c c #5D9CE1", -"v c #6B93CB", -"b c #659CE0", -"n c #65A0CF", -"m c #69A5D1", -"M c #6DAAD4", -"N c #70ADD4", -"B c #76B6DB", -"V c #62A2E3", -"C c #66A7E5", -"Z c #67A7E5", -"A c #66A8E5", -"S c #67A8E5", -"D c #67A8E6", -"F c #6BADE7", -"G c #6BAEE7", -"H c #6CADE7", -"J c #6CAEE7", -"K c #74A8E3", -"L c #7BA8E3", -"P c #7BAFE6", -"I c #72B2E1", -"U c #76B0E7", -"Y c #74B7E3", -"T c #72B3E9", -"R c #71B4EA", -"E c #71B5EA", -"W c #72B4EA", -"Q c #74B0E8", -"! c #74B1E8", -"~ c #76B3E8", -"^ c #74B8EB", -"/ c #75B8EB", -"( c #77B9EB", -") c #74B8EC", -"_ c #76BAEC", -"` c #76BBEC", -"' c #77BBED", -"] c #7CB1E8", -"[ c #79BBE5", -"{ c #79BDED", -"} c #79BDEE", -"| c #79BEEE", -" . c #7ABFEE", -".. c #7BBFEF", -"X. c #7CBCEC", -"o. c #7CBCED", -"O. c #7AC0EE", -"+. c #7BC0EE", -"@. c #7BC0EF", -"#. c #7FC1E9", -"$. c #7CC1EE", -"%. c #7DC1EF", -"&. c #7EC4F0", -"*. c #7EC4F1", -"=. c #7FC4F0", -"-. c #7FC4F1", -";. c #7FC5F0", -":. c gray53", -">. c #8E8E8E", -",. c #909090", -"<. c #939393", -"1. c #949394", -"2. c gray58", -"3. c #959595", -"4. c #979797", -"5. c #999799", -"6. c #9A999A", -"7. c #87A4B0", -"8. c gray67", -"9. c #B2B2B2", -"0. c #88A5D1", -"q. c #89AAD0", -"w. c #8BA9D2", -"e. c #89ABD4", -"r. c #8CAED2", -"t. c #8EAFD3", -"y. c #90B3D3", -"u. c #90B5D6", -"i. c #81B5E1", -"p. c #8FB2E6", -"a. c #8EB6E8", -"s. c #88BAEB", -"d. c #8EBEEC", -"f. c #91B3E6", -"g. c #93B7E2", -"h. c #90B5E7", -"j. c #91B4E6", -"k. c #92B6E7", -"l. c #92B6E8", -"z. c #94B8E0", -"x. c #96BAE1", -"c. c #94B8E8", -"v. c #95B8E8", -"b. c #96BBE9", -"n. c #97BBE9", -"m. c #98BDE2", -"M. c #98BDEB", -"N. c #99BDEB", -"B. c #98BEEA", -"V. c #98BEEB", -"C. c #99BEEA", -"Z. c #99BEEB", -"A. c #99BFEB", -"S. c #87C4DF", -"D. c #8BC4EF", -"F. c #8BC9E2", -"G. c #82C3F0", -"H. c #80C5F0", -"J. c #80C7F2", -"K. c #81C8F2", -"L. c #82C9F2", -"P. c #82C9F3", -"I. c #83C8F2", -"U. c #83C9F2", -"Y. c #83C9F3", -"T. c #83CAF2", -"R. c #84C9F2", -"E. c #84C9F3", -"W. c #85CBF2", -"Q. c #84CCF4", -"!. c #86CDF4", -"~. c #86CEF4", -"^. c #87CEF4", -"/. c #87CEF5", -"(. c #87CFF5", -"). c #87CFF6", -"_. c #88CEF5", -"`. c #88CFF4", -"'. c #88CFF5", -"]. c #89CFF5", -"[. c #89D0F4", -"{. c #89D2F6", -"}. c #8AD2F6", -"|. c #8AD3F6", -" X c #8BD2F6", -".X c #8BD2F7", -"XX c #8BD3F6", -"oX c #8FD1F6", -"OX c #8DD6F7", -"+X c #8DD7F7", -"@X c #8ED6F7", -"#X c #8DD6F8", -"$X c #8ED6F8", -"%X c #8FD9F9", -"&X c #8FDAF9", -"*X c #92C5EE", -"=X c #95C3ED", -"-X c #97C1EC", -";X c #9AC0E4", -":X c #9CC1E5", -">X c #9BC1EB", -",X c #9BC1EC", -"XV.V.V.-Xn.g.- @ e.n.1 @ g V.>Xn.>XV.V.a.b l 3 ", -"3 A.4XA.-X>X4X>X>X-Xm.X X w.-X# X t >X>X>X>X>XV.K z z 3 ", -"3 4X4XaX4X4X4X5X3XaXu.O X t.4X: X y 4X>X5X5X5XP c c c 3 ", -"3 aXdXdXaXaXgXaXaXaXm.O X t.aX: X y 5X5X5X-X] V V V V 3 ", -"3 lXlXlXlXlXlXgXgXaX;XO X y.xX: X s 7X5Xd.Q C C C C C 3 ", -"3 nXnXxXxXMXxXnXjXjX;XO X u.mX, X y *Xs.Q H G G G H H 3 ", -"3 NXMXNXMXMXMXNXzX*Xi.o X v E & X 0 Q Q T E E E E E E 3 ", -"3 BXBXBXBXBX9XD.X.X.I o X m ` & X 0 ) ) ( ( ' ( ' ( ( 3 ", -"3 AXAXDXAX8XG.....O.Y o X M O.= X w ' } ( ....O.O.O...3 ", -"3 FXFXFX8X%.;.%.&.&.[ X X N %.& X e O.%.%.T.%.T.&.G.;.3 ", -"3 HXHXmXT.T.T.Q.T.Y.X.% @ B E.< @ i T.E.E.^.T.T.E.E.Y.3 ", -"3 JXZXoX|.Q.(.Q.Q.|.`.`.Q.`.`.Q.`.Q.|.(.(.(.(.Q.Q.Q.`.3 ", -"3 KXpX|.|.XXXXXX(.oX|.oXXXXXoX|.|.oX|.oXXXXXXXXX.X.X.X3 ", -"6 fX$XOXOXOXOXOXOX$X$X$X0X0X0X$X$X$XOXOXOXOXOXOXOXOXF.6 ", -"5.7.&X%X%X%X&X&X&X&X&X$X&X&XwX&XuX$X&X%X&X&X&XuX&X&Xh <.", -"<.r h F.uXuXuXuXuXuXuX&XuXuX&XuXuXuXuXuXuXuXuXuXF.h r <.", -"YX3.,.5 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 5 ,.<.YX", -"YXYX2 8.LXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIX9.<.>.2 YXYX" -}; diff --git a/lib-src/sbsms/resource/Play.xpm b/lib-src/sbsms/resource/Play.xpm deleted file mode 100644 index ba940c8e2..000000000 --- a/lib-src/sbsms/resource/Play.xpm +++ /dev/null @@ -1,192 +0,0 @@ -/* XPM */ -static char *Play_xpm[] = { -/* columns rows colors chars-per-pixel */ -"28 25 161 2", -" c black", -". c #010101", -"X c #040404", -"o c gray2", -"O c #070707", -"+ c gray3", -"@ c #131413", -"# c #1B1B1B", -"$ c gray11", -"% c #1D1D1D", -"& c #1F201F", -"* c #626262", -"= c gray40", -"- c #6C6B6C", -"; c #727272", -": c gray45", -"> c gray46", -", c #7C7C7C", -"< c gray49", -"1 c #7E7E7E", -"2 c gray50", -"3 c #818181", -"4 c gray51", -"5 c gray53", -"6 c #8E8E8E", -"7 c #909090", -"8 c #939393", -"9 c #949394", -"0 c gray58", -"q c #959595", -"w c #979797", -"e c #999799", -"r c #9A999A", -"t c gray63", -"y c gray66", -"u c #A9A9A9", -"i c #ACABAB", -"p c #ACACAC", -"a c #AEAEAE", -"s c #B2B2B2", -"d c gray71", -"f c #B6B6B6", -"g c #B7B7B7", -"h c #B9B9B9", -"j c gray73", -"k c #C1C1C1", -"l c gray76", -"z c #C2C2C3", -"x c #C3C3C3", -"c c #C6C6C6", -"v c gray78", -"b c #C8C8C8", -"n c #C8C9C8", -"m c #C9C8C9", -"M c gray79", -"N c #CACACA", -"B c #CBCCCC", -"V c #CCCBCC", -"C c gray80", -"Z c gray81", -"A c #D0CFD0", -"S c #D2D2D2", -"D c #D2D2D3", -"F c #D3D2D2", -"G c #D3D2D3", -"H c LightGray", -"J c gray83", -"K c #D5D5D6", -"L c gray84", -"P c #D7D6D7", -"I c #D7D7D7", -"U c #D8D8D8", -"Y c #DADADA", -"T c #DADBDB", -"R c #DBDBDA", -"E c gray86", -"W c gainsboro", -"Q c #DDDDDC", -"! c #DDDDDD", -"~ c #DEDDDE", -"^ c #DEDEDD", -"/ c gray87", -"( c #DFDFDF", -") c #DFDFE0", -"_ c #DFE0E0", -"` c gray88", -"' c #E0E0E1", -"] c #E1E1E1", -"[ c #E1E2E1", -"{ c #E2E1E1", -"} c #E2E2E2", -"| c #E3E2E3", -" . c gray89", -".. c #E3E3E4", -"X. c #E3E4E3", -"o. c #E3E4E4", -"O. c #E4E3E3", -"+. c #E4E3E4", -"@. c #E4E4E3", -"#. c #E4E4E4", -"$. c gray90", -"%. c #E5E6E6", -"&. c #E6E6E5", -"*. c #E6E6E6", -"=. c #E6E6E7", -"-. c #E6E7E6", -";. c #E6E7E7", -":. c #E7E6E6", -">. c #E7E7E6", -",. c #E7E7E7", -"<. c #E7E7E8", -"1. c gray91", -"2. c #E9E9E9", -"3. c #E9E9EA", -"4. c #E9EAE9", -"5. c #E9EAEA", -"6. c #EAE9E9", -"7. c #EAE9EA", -"8. c #EAEAE9", -"9. c #EAEAEA", -"0. c gray92", -"q. c #EBEBEC", -"w. c #EBECEB", -"e. c #EBECEC", -"r. c #ECEBEB", -"t. c #ECEBEC", -"y. c #ECECEB", -"u. c #ECECEC", -"i. c #ECECED", -"p. c #ECEDEC", -"a. c gray93", -"s. c #EDEDEE", -"d. c #EEEDEE", -"f. c #EEEEEE", -"g. c #EEEEEF", -"h. c #EEEFEE", -"j. c #EEEFEF", -"k. c #EFEEEE", -"l. c #EFEEEF", -"z. c #EFEFEE", -"x. c #EFEFEF", -"c. c #EFEFF0", -"v. c gray94", -"b. c #F0F0F1", -"n. c #F0F1F0", -"m. c #F0F1F1", -"M. c #F1F0F0", -"N. c #F1F0F1", -"B. c #F1F1F0", -"V. c #F1F1F1", -"C. c gray95", -"Z. c #F3F3F3", -"A. c #F4F4F4", -"S. c gray96", -"D. c #F6F6F6", -"F. c gray97", -"G. c #F8F8F8", -"H. c #F9F8F8", -"J. c #F9F9F9", -"K. c gray100", -"L. c None", -/* pixels */ -"L.L.5 e w 8 8 9 9 9 8 8 8 8 9 9 8 8 8 9 9 9 9 w w 5 L.L.", -"L.e , - = = = = = = = = = = = = = = = = = = = * - , e L.", -"w , y J 0.0.0.0.0.0.0.0.0.1.0.0.0.1.0.0.0.0.0.0.J y , w ", -"w y 0.0.0.0.0.y.r.0.0.0.0.0.0.0.0.0.0.r.r.0.0.0.0.0.t w ", -": J y.r.y.s.y.y.s.0.r.y.r.0.q.r.y.y.s.s.r.0.r.r.q.w.z : ", -"= s.s.y.y.y.s.y.r.y.s.y.r.r.s.r.y.y.y.y.s.s.y.s.r.0.m = ", -"= s.s.s.s.s.s.y.s.s.s.1.y.s.s.s.y.s.s.s.s.y.s.s.s.! z = ", -"= s.s.z.s.s.s.s.s.s.z.x 4 s.s.s.s.h.s.1.s.s.z.s.0.N v = ", -"= c.c.c.s.c.c.c.z.z.c.z X > c.s.c.c.z.c.z.c.z.s.Y m m = ", -"= B.c.c.B.B.B.B.B.z.B.v X . 2 B.B.c.c.B.B.c.c.! N N N = ", -"= B.B.B.B.B.B.B.B.B.B.v O . . 3 B.Z.B.B.B.r.! Z S Z Z = ", -"= B.Z.Z.B.Z.Z.Z.B.Z.Z.m O . . X 3 s.c.r.( U G G S S F = ", -"= A.Z.Z.Z.Z.Z.Z.Z.Z.Z.m O . . . & P ! J J J U J J J I = ", -"= Z.Z.Z.Z.Z.Z.F.0. .! d O . . # s R R ! ( } ! Y Q E Y = ", -"= Z.D.D.Z.F.c.%.} ! ! h O . # d } ( } . .%.} ! ! ! ! = ", -"= D.D.D.Z.s. .} ! } } h . @ s } | %.%.>.%.%.%.} } } } = ", -"= F.D.F.c.%.} .| | %.d % a . .%.>.%.1.=.1. . .| | | = ", -"= F.D.B.=.%.=.>.%. .%.m h 0.%.%.>.1.=.=.>.>.=.1.%.%.>.= ", -"= J.D.q.1.0.0.0.0.0.0.0.0.0.0.0.1.r.q.q.0.q.q.0.0.0.0.= ", -"= J.Z.s.w.s.w.w.r.0.0.s.r.r.q.q.r.r.r.r.0.r.r.q.y.s.s.= ", -": ) c.s.s.c.h.s.c.s.s.c.s.h.h.h.c.s.c.c.s.c.s.c.s.c.Y : ", -"w a B.B.z.B.B.B.c.c.B.B.B.B.B.c.B.B.c.c.c.c.B.B.B.B.y w ", -"8 5 y ! Z.B.B.Z.Z.Z.B.Z.A.B.Z.Z.B.B.B.Z.Z.Z.B.B.Y i 5 8 ", -"L.0 8 : = = = = = = = = = = = = = = = = = = = = : 6 w L.", -"L.L.* 6 8 w y v m m m m m m n n m m m n n N m w 6 * L.L." -}; diff --git a/lib-src/sbsms/resource/PlayDown.xpm b/lib-src/sbsms/resource/PlayDown.xpm deleted file mode 100644 index f3a94730e..000000000 --- a/lib-src/sbsms/resource/PlayDown.xpm +++ /dev/null @@ -1,284 +0,0 @@ -/* XPM */ -static char *PlayDown_xpm[] = { -/* columns rows colors chars-per-pixel */ -"28 25 253 2", -" c black", -". c #010101", -"X c #020304", -"o c #030304", -"O c #030405", -"+ c #040607", -"@ c #050607", -"# c #050608", -"$ c #0B1115", -"% c #0E171D", -"& c #10191E", -"* c #161C21", -"= c #4C5F74", -"- c #54687D", -"; c #626262", -": c gray40", -"> c #6C6B6C", -", c #727272", -"< c gray45", -"1 c #73777D", -"2 c #74787E", -"3 c #7C7C7C", -"4 c #536880", -"5 c #566A80", -"6 c #576C81", -"7 c #5E91BB", -"8 c #5F96BF", -"9 c #7E8588", -"0 c #7F8588", -"q c #6196B8", -"w c #6097BB", -"e c #7085A4", -"r c #7B8CA6", -"t c #7C8DA6", -"y c #7BA0B0", -"u c #7CA1B0", -"i c #518DDB", -"p c #5592DD", -"a c #5997DF", -"s c #5D93DC", -"d c #5D9CE1", -"f c #629AC4", -"g c #669AC2", -"h c #669DC1", -"j c #669EC5", -"k c #6B93CB", -"l c #7D9CC0", -"z c #7E9DC0", -"x c #659CE0", -"c c #69A2C3", -"v c #73B0D4", -"b c #62A2E3", -"n c #66A7E5", -"m c #67A7E5", -"M c #66A8E5", -"N c #67A8E5", -"B c #67A8E6", -"V c #6BADE7", -"C c #6BAEE7", -"Z c #6CADE7", -"A c #6CAEE7", -"S c #74A8E3", -"D c #7BA8E3", -"F c #7BAFE6", -"G c #76B0E7", -"H c #72B3E9", -"J c #71B4EA", -"K c #71B5EA", -"L c #72B4EA", -"P c #73B6EB", -"I c #74B0E8", -"U c #74B1E8", -"Y c #76B3E8", -"T c #76B4E9", -"R c #74B8EB", -"E c #75B8EB", -"W c #77B9EB", -"Q c #74B8EC", -"! c #75B9EC", -"~ c #76BAEC", -"^ c #76BBEC", -"/ c #77BBED", -"( c #7CB1E8", -") c #78BBEC", -"_ c #78BCED", -"` c #79BDED", -"' c #79BDEE", -"] c #79BEEE", -"[ c #7ABFEE", -"{ c #7BBFEE", -"} c #7BBFEF", -"| c #7CBCEC", -" . c #7CBCED", -".. c #7AC0EE", -"X. c #7BC0EE", -"o. c #7BC0EF", -"O. c #7CC1EE", -"+. c #7DC1EF", -"@. c #7EC2EF", -"#. c #7EC4F0", -"$. c #7EC4F1", -"%. c #7FC4F0", -"&. c #7FC4F1", -"*. c #7FC5F0", -"=. c gray53", -"-. c #8E8E8E", -";. c #909090", -":. c #939393", -">. c #949394", -",. c gray58", -"<. c #959595", -"1. c #979797", -"2. c #999799", -"3. c #9A999A", -"4. c #87A4B0", -"5. c gray67", -"6. c #B2B2B2", -"7. c #82A1C3", -"8. c #84A5C5", -"9. c #88A8C6", -"0. c #89A9C7", -"q. c #88A5D1", -"w. c #8BA9D2", -"e. c #87BEEC", -"r. c #8FB2E6", -"t. c #8EB6E8", -"y. c #88BAEB", -"u. c #8EBEEC", -"i. c #91B3E6", -"p. c #90B5E7", -"a. c #91B4E6", -"s. c #93B7E4", -"d. c #92B6E7", -"f. c #92B6E8", -"g. c #93BAE0", -"h. c #94B8E8", -"j. c #95B8E8", -"k. c #96BBE9", -"l. c #97BBE9", -"z. c #98BDEB", -"x. c #99BDEB", -"c. c #98BEEA", -"v. c #98BEEB", -"b. c #99BEEA", -"n. c #99BEEB", -"m. c #99BFEB", -"M. c #87C4DF", -"N. c #8BC4EF", -"B. c #8BC9E2", -"V. c #82C3F0", -"C. c #80C5F0", -"Z. c #81C7F1", -"A. c #80C7F2", -"S. c #81C8F2", -"D. c #83C8F1", -"F. c #82C9F2", -"G. c #82C9F3", -"H. c #83C8F2", -"J. c #83C9F2", -"K. c #83C9F3", -"L. c #83CAF2", -"P. c #83CAF3", -"I. c #84C9F2", -"U. c #84C9F3", -"Y. c #85CBF2", -"T. c #84CCF4", -"R. c #86CDF4", -"E. c #86CEF4", -"W. c #87CEF4", -"Q. c #87CEF5", -"!. c #87CFF5", -"~. c #87CFF6", -"^. c #88CEF5", -"/. c #88CFF4", -"(. c #88CFF5", -"). c #89CFF5", -"_. c #89D0F4", -"`. c #89D2F6", -"'. c #8AD2F6", -"]. c #8AD3F6", -"[. c #8BD2F6", -"{. c #8BD2F7", -"}. c #8BD3F6", -"|. c #8FD1F6", -" X c #8DD6F7", -".X c #8DD7F7", -"XX c #8ED6F7", -"oX c #8DD6F8", -"OX c #8ED6F8", -"+X c #8FD9F9", -"@X c #8FDAF9", -"#X c #92C5EE", -"$X c #95C3ED", -"%X c #97C1EC", -"&X c #9BC1EB", -"*X c #9BC1EC", -"=X c #9CC3ED", -"-X c #9DC3EC", -";X c #9DC3ED", -":X c #9CC4ED", -">X c #9EC4EC", -",X c #9EC4ED", -".>.>.>.>.>.<.>.>.>.>.>.>.3.2.=.LXLX", -"LX2.3 > : : : : : : : : : : : : : : : : : : : : > 3 2.LX", -"<.2 r q.r.r.r.r.i.i.r.r.r.r.r.r.r.r.r.r.r.r.r.r.q.t 1 <.", -"<.t a.a.a.r.a.a.i.i.i.f.a.a.a.r.a.a.a.a.a.a.a.a.a.a.e <.", -"< w.f.f.f.a.f.f.s.f.f.f.f.f.a.f.a.f.a.f.f.f.f.f.f.f.k < ", -": j.j.j.j.j.j.j.j.f.j.j.j.j.j.j.j.s.j.j.j.j.j.j.j.a.s : ", -": l.l.j.l.l.l.l.l.l.j.s.l.l.l.l.j.b.l.v.l.l.l.j.l.D i : ", -": m.m.m.&Xv.v.v.m.%Xm.l - v.%Xl.b.v.v.v.v.v.v.v.t.x p : ", -": *X*X%X*X*X*X%X%X*X-Xy # = m.m.%X*X*X*X*X-X%Xm.S a a : ", -": 1X1X>X>X>X>X>X>X1X*X7.# X - 2X2X>X*X1X*X1X>XF d d d : ", -": 1X1XdXpXpXdX>X1X1X1X8.+ . . 5 >X>X1XuXdX$XF b b b b : ", -": gXgXgXgXxXdXdXdX1XgX0.+ . . X 6 pXuX%Xu.F n m m m m : ", -": xXxXxXxXxXxXxXfXhXhX0.# . . . * g.$Xy.I A A A C A A : ", -": bXbXbXbXbXbXbXjX#Xe.g + . . % 7 T T I L L K K K K L : ", -": nXnXnXnXnX6XN.| | ^ f O . % 8 ~ P P ~ P W ^ ~ ^ ~ ~ : ", -": BXBXBXBX5XV.[ [ } [ j . $ 8 [ [ W [ ] W [ o.[ [ [ [ : ", -": ZXZXZX5XV.$.$.$.$.$.h & q $.V.O.[ O.O.O.V.F.$.V.$.$.: ", -": DXSXyXU.U.F.F.K.K.U.v c F.U.U.F.F.Z.U.Y.^.Q.F.K.A.K.: ", -": DXNX|.Q.Q.E.E.Q.Q.^.^.Q.^.^.^.^.^.^.].Q.Q.Q.Q.Q.Q.~.: ", -": FXyX`.].].].].`.|.`.`.].[.].].].[.[.[.].].].].`.`.`.: ", -"< aX7X XXXXX X X X7X X7X X7X X X7X7X X7XXX X X X XoXB., ", -"2.4.@X@X+X+X@X+X@X@X7X7X@XrX@X@X@X7X@X@X@X@X@X@X+X+Xy <.", -";.=.u B.eXeXeXeXrXrXrX@XrXrXeXeXrXrXrXrXeXeXrXrXB.y =.;.", -"LX,.;., : : : : : : : : : : : : : : : : : : : : , -.>.LX", -"LXLX; 5.GXHXHXJXJXJXJXJXJXJXJXJXJXJXJXJXJXJX6.>.-.; LXLX" -}; diff --git a/lib-src/sbsms/src/Makefile.am b/lib-src/sbsms/src/Makefile.am index 8490a211c..c03adecc9 100644 --- a/lib-src/sbsms/src/Makefile.am +++ b/lib-src/sbsms/src/Makefile.am @@ -1,68 +1,7 @@ -AM_CXXFLAGS = -funroll-loops -I../include -fstrict-aliasing $(SNDFILE_CFLAGS) $(PORTAUDIO_CFLAGS) $(WX_CFLAGS) +AM_CXXFLAGS = -I../include @SBSMS_CFLAGS@ libsbsmsincludedir = $(includedir) libsbsmsinclude_HEADERS = ../include/sbsms.h lib_LTLIBRARIES = libsbsms.la -libsbsms_la_SOURCES = pitch.cpp peak.cpp sms.cpp track.cpp trackpoint.cpp utils.cpp audio.cpp resample.cpp sbsms.cpp fft.cpp grain.cpp buffer.cpp subband.cpp audio.h buffer.h fft.h utils.h defs.h peak.h trackpoint.h grain.h pitch.h real.h resample.h ../include/sbsms.h sms.h subband.h track.h - -libsbsms_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@ @SHLIB_VERSION_ARG@ - -bin_PROGRAMS = @SBSMS_PROGS@ -EXTRA_PROGRAMS = sbsms sbsmsplay wxsbsmsplayer - -sbsms_LDADD = libsbsms.la $(SNDFILE_LIBS) $(MAD_LIBS) -sbsms_LDFLAGS = $(os_ldflags) - -if ENABLE_PORTAUDIO -sbsmsplay_LDADD = libsbsms.la $(PORTAUDIO_LIBS) -sbsmsplay_LDFLAGS = $(os_ldflags) -sbsmsplay_SOURCES = testplay.cpp play.cpp play.h audiobuffer.cpp audiobuffer.h -endif - -if ENABLE_PORTAUDIO -if ENABLE_WX -wxsbsmsplayer_LDADD = libsbsms.la $(PORTAUDIO_LIBS) $(SNDFILE_LIBS) $(MAD_LIBS) $(WX_LIBS) -wxsbsmsplayer_LDFLAGS = $(os_ldflags) $(PORTAUDIO_CFLAGS) $(SNDFILE_CFLAGS) -endif -endif - -if ENABLE_SNDFILE -if ENABLE_MP3 -sbsms_SOURCES = test.cpp mp3.cpp mp3.h mp3tech.cpp mp3tech.h audiobuffer.cpp audiobuffer.h import.cpp import.h pcm.cpp pcm.h convert.cpp convert.h -else -sbsms_SOURCES = test.cpp import.cpp import.h pcm.cpp pcm.h convert.cpp convert.h -endif -else -sbsms_SOURCES = test.cpp convert.cpp convert.h -endif - -if ENABLE_SNDFILE -if ENABLE_MP3 -wxsbsmsplayer_SOURCES = wxplayer.cpp wxplayer.h wxplayerframe.cpp wxplayerframe.h wxplayctrl.cpp wxplayctrl.h wxconvertdlg.cpp wxconvertdlg.h play.cpp play.h convert.cpp convert.h mp3.cpp mp3.h mp3tech.cpp mp3tech.h import.cpp import.h pcm.cpp pcm.h audiobuffer.cpp audiobuffer.h -else -wxsbsmsplayer_SOURCES = wxplayer.cpp wxplayer.h wxplayerframe.cpp wxplayerframe.h wxplayctrl.cpp wxplayctrl.h wxconvertdlg.cpp wxconvertdlg.h play.cpp play.h convert.cpp convert.h import.cpp import.h pcm.cpp pcm.h audiobuffer.cpp audiobuffer.h -endif -else -wxsbsmsplayer_SOURCES = wxplayer.cpp wxplayer.h wxplayerframe.cpp wxplayerframe.h wxplayctrl.cpp wxplayctrl.h wxconvertdlg.cpp wxconvertdlg.h play.cpp play.h convert.cpp convert.h audiobuffer.cpp audiobuffer.h -endif - -if ENABLE_WX -if ENABLE_PORTAUDIO -if MACOSX -clean: cleanapproot clean-am -cleanapproot: - sudo rm -rf $(top_builddir)/approot -all: $(top_builddir)/approot/Applications/wxsbsmsplayer.app $(top_builddir)/mac/Info.plist $(top_builddir)/mac/sbsms.icns -$(top_builddir)/approot/Applications/wxsbsmsplayer.app: wxsbsmsplayer - sudo strip -u -r wxsbsmsplayer - sudo mkdir -p $(top_builddir)/approot/Applications/wxsbsmsplayer.app/Contents/MacOS - sudo mkdir -p $(top_builddir)/approot/Applications/wxsbsmsplayer.app/Contents/Resources - sudo cp -f wxsbsmsplayer $(top_builddir)/approot/Applications/wxsbsmsplayer.app/Contents/MacOS/wxsbsmsplayer - sudo cp -f $(top_builddir)/mac/Info.plist $(top_builddir)/approot/Applications/wxsbsmsplayer.app/Contents - sudo cp -f $(top_builddir)/mac/sbsms.icns $(top_builddir)/approot/Applications/wxsbsmsplayer.app/Contents/Resources - sudo sh -c "echo sbsms > $(top_builddir)/approot/Applications/wxsbsmsplayer.app/Contents/PkgInfo" - sudo chown -R root:admin $(top_builddir)/approot/Applications -endif -endif -endif +libsbsms_la_SOURCES = peak.cpp sms.cpp track.cpp trackpoint.cpp utils.cpp audio.cpp resample.cpp sbsms.cpp fft.cpp grain.cpp buffer.cpp subband.cpp audio.h buffer.h fft.h utils.h peak.h trackpoint.h grain.h real.h resample.h ../include/sbsms.h sms.h subband.h track.h diff --git a/lib-src/sbsms/src/Makefile.in b/lib-src/sbsms/src/Makefile.in index c09113fe4..ea556e096 100644 --- a/lib-src/sbsms/src/Makefile.in +++ b/lib-src/sbsms/src/Makefile.in @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.10.2 from Makefile.am. +# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006 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. @@ -15,7 +15,6 @@ @SET_MAKE@ - VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -35,8 +34,6 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ -EXTRA_PROGRAMS = sbsms$(EXEEXT) sbsmsplay$(EXEEXT) \ - wxsbsmsplayer$(EXEEXT) subdir = src DIST_COMMON = $(libsbsmsinclude_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in @@ -57,97 +54,15 @@ am__vpath_adj = case $$p in \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \ +am__installdirs = "$(DESTDIR)$(libdir)" \ "$(DESTDIR)$(libsbsmsincludedir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) libsbsms_la_LIBADD = -am_libsbsms_la_OBJECTS = pitch.lo peak.lo sms.lo track.lo \ - trackpoint.lo utils.lo audio.lo resample.lo sbsms.lo fft.lo \ - grain.lo buffer.lo subband.lo +am_libsbsms_la_OBJECTS = peak.lo sms.lo track.lo trackpoint.lo \ + utils.lo audio.lo resample.lo sbsms.lo fft.lo grain.lo \ + buffer.lo subband.lo libsbsms_la_OBJECTS = $(am_libsbsms_la_OBJECTS) -libsbsms_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(libsbsms_la_LDFLAGS) $(LDFLAGS) -o $@ -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) -PROGRAMS = $(bin_PROGRAMS) -am__sbsms_SOURCES_DIST = test.cpp import.cpp import.h pcm.cpp pcm.h \ - convert.cpp convert.h mp3.cpp mp3.h mp3tech.cpp mp3tech.h \ - audiobuffer.cpp audiobuffer.h -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@am_sbsms_OBJECTS = \ -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@ test.$(OBJEXT) \ -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@ import.$(OBJEXT) \ -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@ pcm.$(OBJEXT) \ -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@ convert.$(OBJEXT) -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@am_sbsms_OBJECTS = \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ test.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ mp3.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ mp3tech.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ audiobuffer.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ import.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ pcm.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ convert.$(OBJEXT) -@ENABLE_SNDFILE_FALSE@am_sbsms_OBJECTS = test.$(OBJEXT) \ -@ENABLE_SNDFILE_FALSE@ convert.$(OBJEXT) -sbsms_OBJECTS = $(am_sbsms_OBJECTS) -am__DEPENDENCIES_1 = -sbsms_DEPENDENCIES = libsbsms.la $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) -sbsms_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ - $(sbsms_LDFLAGS) $(LDFLAGS) -o $@ -am__sbsmsplay_SOURCES_DIST = testplay.cpp play.cpp play.h \ - audiobuffer.cpp audiobuffer.h -@ENABLE_PORTAUDIO_TRUE@am_sbsmsplay_OBJECTS = testplay.$(OBJEXT) \ -@ENABLE_PORTAUDIO_TRUE@ play.$(OBJEXT) audiobuffer.$(OBJEXT) -sbsmsplay_OBJECTS = $(am_sbsmsplay_OBJECTS) -@ENABLE_PORTAUDIO_TRUE@sbsmsplay_DEPENDENCIES = libsbsms.la \ -@ENABLE_PORTAUDIO_TRUE@ $(am__DEPENDENCIES_1) -sbsmsplay_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(sbsmsplay_LDFLAGS) $(LDFLAGS) -o $@ -am__wxsbsmsplayer_SOURCES_DIST = wxplayer.cpp wxplayer.h \ - wxplayerframe.cpp wxplayerframe.h wxplayctrl.cpp wxplayctrl.h \ - wxconvertdlg.cpp wxconvertdlg.h play.cpp play.h convert.cpp \ - convert.h import.cpp import.h pcm.cpp pcm.h audiobuffer.cpp \ - audiobuffer.h mp3.cpp mp3.h mp3tech.cpp mp3tech.h -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@am_wxsbsmsplayer_OBJECTS = \ -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@ wxplayer.$(OBJEXT) \ -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@ wxplayerframe.$(OBJEXT) \ -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@ wxplayctrl.$(OBJEXT) \ -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@ wxconvertdlg.$(OBJEXT) \ -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@ play.$(OBJEXT) \ -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@ convert.$(OBJEXT) \ -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@ import.$(OBJEXT) \ -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@ pcm.$(OBJEXT) \ -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@ audiobuffer.$(OBJEXT) -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@am_wxsbsmsplayer_OBJECTS = \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ wxplayer.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ wxplayerframe.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ wxplayctrl.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ wxconvertdlg.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ play.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ convert.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ mp3.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ mp3tech.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ import.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ pcm.$(OBJEXT) \ -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@ audiobuffer.$(OBJEXT) -@ENABLE_SNDFILE_FALSE@am_wxsbsmsplayer_OBJECTS = wxplayer.$(OBJEXT) \ -@ENABLE_SNDFILE_FALSE@ wxplayerframe.$(OBJEXT) \ -@ENABLE_SNDFILE_FALSE@ wxplayctrl.$(OBJEXT) \ -@ENABLE_SNDFILE_FALSE@ wxconvertdlg.$(OBJEXT) play.$(OBJEXT) \ -@ENABLE_SNDFILE_FALSE@ convert.$(OBJEXT) audiobuffer.$(OBJEXT) -wxsbsmsplayer_OBJECTS = $(am_wxsbsmsplayer_OBJECTS) -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@wxsbsmsplayer_DEPENDENCIES = \ -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@ libsbsms.la \ -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@ $(am__DEPENDENCIES_1) \ -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@ $(am__DEPENDENCIES_1) \ -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@ $(am__DEPENDENCIES_1) \ -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@ $(am__DEPENDENCIES_1) -wxsbsmsplayer_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(wxsbsmsplayer_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles @@ -169,11 +84,8 @@ CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ -SOURCES = $(libsbsms_la_SOURCES) $(sbsms_SOURCES) $(sbsmsplay_SOURCES) \ - $(wxsbsmsplayer_SOURCES) -DIST_SOURCES = $(libsbsms_la_SOURCES) $(am__sbsms_SOURCES_DIST) \ - $(am__sbsmsplay_SOURCES_DIST) \ - $(am__wxsbsmsplayer_SOURCES_DIST) +SOURCES = $(libsbsms_la_SOURCES) +DIST_SOURCES = $(libsbsms_la_SOURCES) libsbsmsincludeHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(libsbsmsinclude_HEADERS) ETAGS = etags @@ -220,7 +132,6 @@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ -MAD_LIBS = @MAD_LIBS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ @@ -237,24 +148,15 @@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ RANLIB = @RANLIB@ -SBSMS_BIN = @SBSMS_BIN@ -SBSMS_PROGS = @SBSMS_PROGS@ +SBSMS_CFLAGS = @SBSMS_CFLAGS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHARED_VERSION_INFO = @SHARED_VERSION_INFO@ SHELL = @SHELL@ SHLIB_VERSION_ARG = @SHLIB_VERSION_ARG@ -SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ -SNDFILE_LIBS = @SNDFILE_LIBS@ STRIP = @STRIP@ VERSION = @VERSION@ -WX_CFLAGS = @WX_CFLAGS@ -WX_CONFIG = @WX_CONFIG@ -WX_LIBS = @WX_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ @@ -309,29 +211,13 @@ 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@ -AM_CXXFLAGS = -funroll-loops -I../include -fstrict-aliasing $(SNDFILE_CFLAGS) $(PORTAUDIO_CFLAGS) $(WX_CFLAGS) +AM_CXXFLAGS = -I../include @SBSMS_CFLAGS@ libsbsmsincludedir = $(includedir) libsbsmsinclude_HEADERS = ../include/sbsms.h lib_LTLIBRARIES = libsbsms.la -libsbsms_la_SOURCES = pitch.cpp peak.cpp sms.cpp track.cpp trackpoint.cpp utils.cpp audio.cpp resample.cpp sbsms.cpp fft.cpp grain.cpp buffer.cpp subband.cpp audio.h buffer.h fft.h utils.h defs.h peak.h trackpoint.h grain.h pitch.h real.h resample.h ../include/sbsms.h sms.h subband.h track.h -libsbsms_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@ @SHLIB_VERSION_ARG@ -bin_PROGRAMS = @SBSMS_PROGS@ -sbsms_LDADD = libsbsms.la $(SNDFILE_LIBS) $(MAD_LIBS) -sbsms_LDFLAGS = $(os_ldflags) -@ENABLE_PORTAUDIO_TRUE@sbsmsplay_LDADD = libsbsms.la $(PORTAUDIO_LIBS) -@ENABLE_PORTAUDIO_TRUE@sbsmsplay_LDFLAGS = $(os_ldflags) -@ENABLE_PORTAUDIO_TRUE@sbsmsplay_SOURCES = testplay.cpp play.cpp play.h audiobuffer.cpp audiobuffer.h -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@wxsbsmsplayer_LDADD = libsbsms.la $(PORTAUDIO_LIBS) $(SNDFILE_LIBS) $(MAD_LIBS) $(WX_LIBS) -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@wxsbsmsplayer_LDFLAGS = $(os_ldflags) $(PORTAUDIO_CFLAGS) $(SNDFILE_CFLAGS) -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@sbsms_SOURCES = test.cpp import.cpp import.h pcm.cpp pcm.h convert.cpp convert.h -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@sbsms_SOURCES = test.cpp mp3.cpp mp3.h mp3tech.cpp mp3tech.h audiobuffer.cpp audiobuffer.h import.cpp import.h pcm.cpp pcm.h convert.cpp convert.h -@ENABLE_SNDFILE_FALSE@sbsms_SOURCES = test.cpp convert.cpp convert.h -@ENABLE_MP3_FALSE@@ENABLE_SNDFILE_TRUE@wxsbsmsplayer_SOURCES = wxplayer.cpp wxplayer.h wxplayerframe.cpp wxplayerframe.h wxplayctrl.cpp wxplayctrl.h wxconvertdlg.cpp wxconvertdlg.h play.cpp play.h convert.cpp convert.h import.cpp import.h pcm.cpp pcm.h audiobuffer.cpp audiobuffer.h -@ENABLE_MP3_TRUE@@ENABLE_SNDFILE_TRUE@wxsbsmsplayer_SOURCES = wxplayer.cpp wxplayer.h wxplayerframe.cpp wxplayerframe.h wxplayctrl.cpp wxplayctrl.h wxconvertdlg.cpp wxconvertdlg.h play.cpp play.h convert.cpp convert.h mp3.cpp mp3.h mp3tech.cpp mp3tech.h import.cpp import.h pcm.cpp pcm.h audiobuffer.cpp audiobuffer.h -@ENABLE_SNDFILE_FALSE@wxsbsmsplayer_SOURCES = wxplayer.cpp wxplayer.h wxplayerframe.cpp wxplayerframe.h wxplayctrl.cpp wxplayctrl.h wxconvertdlg.cpp wxconvertdlg.h play.cpp play.h convert.cpp convert.h audiobuffer.cpp audiobuffer.h +libsbsms_la_SOURCES = peak.cpp sms.cpp track.cpp trackpoint.cpp utils.cpp audio.cpp resample.cpp sbsms.cpp fft.cpp grain.cpp buffer.cpp subband.cpp audio.h buffer.h fft.h utils.h peak.h trackpoint.h grain.h real.h resample.h ../include/sbsms.h sms.h subband.h track.h all: config.h $(MAKE) $(AM_MAKEFLAGS) all-am @@ -341,8 +227,8 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__confi @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; }; \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ exit 1;; \ esac; \ done; \ @@ -389,8 +275,8 @@ install-libLTLIBRARIES: $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ + echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done @@ -398,8 +284,8 @@ uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ + echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ + $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: @@ -411,44 +297,7 @@ clean-libLTLIBRARIES: rm -f "$${dir}/so_locations"; \ done libsbsms.la: $(libsbsms_la_OBJECTS) $(libsbsms_la_DEPENDENCIES) - $(libsbsms_la_LINK) -rpath $(libdir) $(libsbsms_la_OBJECTS) $(libsbsms_la_LIBADD) $(LIBS) -install-binPROGRAMS: $(bin_PROGRAMS) - @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - if test -f $$p \ - || test -f $$p1 \ - ; then \ - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ - else :; fi; \ - done - -uninstall-binPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ - rm -f "$(DESTDIR)$(bindir)/$$f"; \ - done - -clean-binPROGRAMS: - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f $$p $$f"; \ - rm -f $$p $$f ; \ - done -sbsms$(EXEEXT): $(sbsms_OBJECTS) $(sbsms_DEPENDENCIES) - @rm -f sbsms$(EXEEXT) - $(sbsms_LINK) $(sbsms_OBJECTS) $(sbsms_LDADD) $(LIBS) -sbsmsplay$(EXEEXT): $(sbsmsplay_OBJECTS) $(sbsmsplay_DEPENDENCIES) - @rm -f sbsmsplay$(EXEEXT) - $(sbsmsplay_LINK) $(sbsmsplay_OBJECTS) $(sbsmsplay_LDADD) $(LIBS) -wxsbsmsplayer$(EXEEXT): $(wxsbsmsplayer_OBJECTS) $(wxsbsmsplayer_DEPENDENCIES) - @rm -f wxsbsmsplayer$(EXEEXT) - $(wxsbsmsplayer_LINK) $(wxsbsmsplayer_OBJECTS) $(wxsbsmsplayer_LDADD) $(LIBS) + $(CXXLINK) -rpath $(libdir) $(libsbsms_la_OBJECTS) $(libsbsms_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) @@ -457,31 +306,17 @@ distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audio.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audiobuffer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buffer.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fft.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/grain.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/import.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mp3.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mp3tech.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcm.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/peak.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pitch.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/play.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resample.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sbsms.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sms.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/subband.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testplay.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/track.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/trackpoint.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utils.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wxconvertdlg.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wxplayctrl.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wxplayer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wxplayerframe.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @@ -532,8 +367,8 @@ ID: $(HEADERS) $(SOURCES) $(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; }; }'`; \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS @@ -545,8 +380,8 @@ TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ 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; }; }'`; \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ @@ -556,12 +391,13 @@ ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ + here=`pwd`; \ 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; }; }'`; \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique @@ -602,11 +438,9 @@ distdir: $(DISTFILES) done check-am: all-am check: check-am -all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) config.h -install-binPROGRAMS: install-libLTLIBRARIES - +all-am: Makefile $(LTLIBRARIES) $(HEADERS) config.h installdirs: - for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libsbsmsincludedir)"; do \ + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libsbsmsincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am @@ -633,14 +467,10 @@ distclean-generic: maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -@ENABLE_PORTAUDIO_FALSE@clean: clean-am +clean: clean-am -@ENABLE_WX_FALSE@clean: clean-am - -@MACOSX_FALSE@clean: clean-am - -clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ - clean-libtool mostlyclean-am +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ + mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) @@ -662,7 +492,7 @@ install-data-am: install-libsbsmsincludeHEADERS install-dvi: install-dvi-am -install-exec-am: install-binPROGRAMS install-libLTLIBRARIES +install-exec-am: install-libLTLIBRARIES install-html: install-html-am @@ -694,41 +524,27 @@ ps: ps-am ps-am: -uninstall-am: uninstall-binPROGRAMS uninstall-libLTLIBRARIES \ +uninstall-am: uninstall-libLTLIBRARIES \ uninstall-libsbsmsincludeHEADERS .MAKE: install-am install-strip -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ - clean-generic clean-libLTLIBRARIES clean-libtool ctags \ - distclean distclean-compile distclean-generic distclean-hdr \ +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libLTLIBRARIES clean-libtool ctags distclean \ + distclean-compile distclean-generic distclean-hdr \ distclean-libtool 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-libLTLIBRARIES \ + 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-libLTLIBRARIES \ install-libsbsmsincludeHEADERS 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 mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-binPROGRAMS \ - uninstall-libLTLIBRARIES uninstall-libsbsmsincludeHEADERS + tags uninstall uninstall-am uninstall-libLTLIBRARIES \ + uninstall-libsbsmsincludeHEADERS - -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@@MACOSX_TRUE@clean: cleanapproot clean-am -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@@MACOSX_TRUE@cleanapproot: -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@@MACOSX_TRUE@ sudo rm -rf $(top_builddir)/approot -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@@MACOSX_TRUE@all: $(top_builddir)/approot/Applications/wxsbsmsplayer.app $(top_builddir)/mac/Info.plist $(top_builddir)/mac/sbsms.icns -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@@MACOSX_TRUE@$(top_builddir)/approot/Applications/wxsbsmsplayer.app: wxsbsmsplayer -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@@MACOSX_TRUE@ sudo strip -u -r wxsbsmsplayer -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@@MACOSX_TRUE@ sudo mkdir -p $(top_builddir)/approot/Applications/wxsbsmsplayer.app/Contents/MacOS -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@@MACOSX_TRUE@ sudo mkdir -p $(top_builddir)/approot/Applications/wxsbsmsplayer.app/Contents/Resources -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@@MACOSX_TRUE@ sudo cp -f wxsbsmsplayer $(top_builddir)/approot/Applications/wxsbsmsplayer.app/Contents/MacOS/wxsbsmsplayer -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@@MACOSX_TRUE@ sudo cp -f $(top_builddir)/mac/Info.plist $(top_builddir)/approot/Applications/wxsbsmsplayer.app/Contents -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@@MACOSX_TRUE@ sudo cp -f $(top_builddir)/mac/sbsms.icns $(top_builddir)/approot/Applications/wxsbsmsplayer.app/Contents/Resources -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@@MACOSX_TRUE@ sudo sh -c "echo sbsms > $(top_builddir)/approot/Applications/wxsbsmsplayer.app/Contents/PkgInfo" -@ENABLE_PORTAUDIO_TRUE@@ENABLE_WX_TRUE@@MACOSX_TRUE@ sudo chown -R root:admin $(top_builddir)/approot/Applications # 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: diff --git a/lib-src/sbsms/src/audiobuffer.cpp b/lib-src/sbsms/src/audiobuffer.cpp deleted file mode 100644 index ae7e41c14..000000000 --- a/lib-src/sbsms/src/audiobuffer.cpp +++ /dev/null @@ -1,209 +0,0 @@ -#include -#include "audiobuffer.h" -#include "audio.h" -#include "sbsms.h" -#include -#include -#include "utils.h" - -namespace _sbsms_ { - -void AudioBuffer :: copy(float *out, long outOffset, float *in, long inOffset, long n) -{ - if(channels==1) - memcpy(out+outOffset,in+inOffset,n*sizeof(float)); - else if(channels==2) - memcpy(out+(outOffset<<1),in+(inOffset<<1),(n<<1)*sizeof(float)); -} - -AudioBuffer :: AudioBuffer(long size, int channels) -{ - pthread_cond_init(&importWriteCondition, NULL); - pthread_mutex_init(&importWriteMutex, NULL); - pthread_cond_init(&importReadCondition, NULL); - pthread_mutex_init(&importReadMutex, NULL); - pthread_mutex_init(&importMutex, NULL); - - shareBufStart = 0; - shareBufEnd = 0; - readBlockSize = 0; - - n_done = 0; - bWritingComplete = false; - this->channels = channels; - shareBuf = new float[channels*size]; - shareBufSize = size; - halfShareBufSize = size/2; - importWriteReady = true; - importReadReady = false; -} - -AudioBuffer :: ~AudioBuffer() -{ - delete [] shareBuf; - pthread_cond_destroy(&importWriteCondition); - pthread_mutex_destroy(&importWriteMutex); - pthread_cond_destroy(&importReadCondition); - pthread_mutex_destroy(&importReadMutex); - pthread_mutex_destroy(&importMutex); -} - -long AudioBuffer :: read(float *outputBuffer, long block_size) -{ - long n_toread = block_size; - long n_done_now = 0; - - if(pthread_mutex_lock(&importReadMutex) == 0) { - readBlockSize = block_size; - if(pthread_mutex_lock(&importMutex) == 0) { - importReadReady = isReadReady(); - pthread_mutex_unlock(&importMutex); - } - while(!importReadReady) { - pthread_cond_wait(&importReadCondition, &importReadMutex); - } - readBlockSize = 0; - pthread_mutex_unlock(&importReadMutex); - } - - if(pthread_mutex_lock(&importMutex) == 0) { - if(shareBufStart <= shareBufEnd) { - n_toread = min(n_toread, shareBufEnd-shareBufStart); - copy(outputBuffer,0,shareBuf,shareBufStart,n_toread); - n_done_now += n_toread; - } else { - n_toread = min(n_toread, shareBufSize-shareBufStart); - copy(outputBuffer,0,shareBuf,shareBufStart,n_toread); - n_done_now += n_toread; - n_toread = block_size - n_done_now; - n_toread = min(n_toread, shareBufEnd); - copy(outputBuffer,n_done_now,shareBuf,0,n_toread); - n_done_now += n_toread; - } - - shareBufStart += n_done_now; - shareBufStart %= shareBufSize; - - importWriteReady = isWriteReady(); - if(importWriteReady) { - pthread_cond_broadcast(&importWriteCondition); - } - - pthread_mutex_unlock(&importMutex); - } - - n_done += n_done_now; - return n_done_now; -} - -void AudioBuffer :: writingComplete() -{ - if(pthread_mutex_lock(&importMutex) == 0) { - bWritingComplete = true; - importReadReady = isReadReady(); - if(importReadReady) { - pthread_cond_broadcast(&importReadCondition); - } - pthread_mutex_unlock(&importMutex); - } -} - -void AudioBuffer :: flush() -{ - if(pthread_mutex_lock(&importMutex) == 0) { - shareBufStart = 0; - shareBufEnd = 0; - readBlockSize = 0; - bWritingComplete = false; - pthread_mutex_unlock(&importMutex); - } -} - -long AudioBuffer :: n_readable() -{ - long n = 0; - if(pthread_mutex_lock(&importMutex) == 0) { - if(shareBufStart <= shareBufEnd) - n = (shareBufEnd-shareBufStart); - else - n = (shareBufSize-shareBufStart + shareBufEnd); - pthread_mutex_unlock(&importMutex); - } - return n; -} - -bool AudioBuffer :: isReadReady() -{ - if(bWritingComplete) - return true; - if(shareBufStart <= shareBufEnd) - return (shareBufEnd-shareBufStart >= readBlockSize); - else - return (shareBufSize-shareBufStart + shareBufEnd >= readBlockSize); -} - -bool AudioBuffer :: isWriteReady() -{ - bool importWriteReady; - if(shareBufStart <= shareBufEnd) { - importWriteReady = (shareBufEnd-shareBufStart < halfShareBufSize); - } else { - importWriteReady = (shareBufStart-shareBufEnd >= halfShareBufSize); - } - return importWriteReady; -} - -bool AudioBuffer :: isFull() -{ - bool bFull = false; - if(pthread_mutex_lock(&importMutex) == 0) { - bFull = !isWriteReady(); - pthread_mutex_unlock(&importMutex); - } - return bFull; -} - -long AudioBuffer :: write(float *buf, long n) -{ - if(n>=halfShareBufSize) { - abort(); - } - - if(pthread_mutex_lock(&importWriteMutex) == 0) { - if(pthread_mutex_lock(&importMutex) == 0) { - importWriteReady = isWriteReady(); - pthread_mutex_unlock(&importMutex); - } - while(!importWriteReady) { - pthread_cond_wait(&importWriteCondition, &importWriteMutex); - } - pthread_mutex_unlock(&importWriteMutex); - } - - long n_written=0, n_towrite=0; - if(pthread_mutex_lock(&importMutex) == 0) { - n_towrite = min(n,shareBufSize-shareBufEnd); - copy(shareBuf,shareBufEnd,buf,n_written,n_towrite); - shareBufEnd += n_towrite; - n_written = n_towrite; - n_towrite = n - n_written; - - if(n_towrite) { - shareBufEnd = 0; - copy(shareBuf,shareBufEnd,buf,n_written,n_towrite); - shareBufEnd += n_towrite; - n_written += n_towrite; - } - - shareBufEnd %= shareBufSize; - importReadReady = isReadReady(); - if(importReadReady) { - pthread_cond_broadcast(&importReadCondition); - } - pthread_mutex_unlock(&importMutex); - } - - return n_written; -} - -} diff --git a/lib-src/sbsms/src/audiobuffer.h b/lib-src/sbsms/src/audiobuffer.h deleted file mode 100644 index 9fde86bb5..000000000 --- a/lib-src/sbsms/src/audiobuffer.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef RINGBUFFER_H -#define RINGBUFFER_H - -#include - -namespace _sbsms_ { - -class AudioBuffer { - - public: - AudioBuffer(long size, int channels); - ~AudioBuffer(); - - long n_readable(); - long read(float *outputBuffer, long block_size); - long write(float *buf, long n); - void writingComplete(); - void flush(); - bool isFull(); - - protected: - bool isWriteReady(); - bool isReadReady(); - void copy(float *out, long outOffset, float *in, long inOffset, long n); - pthread_cond_t importWriteCondition; - pthread_mutex_t importWriteMutex; - pthread_cond_t importReadCondition; - pthread_mutex_t importReadMutex; - pthread_mutex_t importMutex; - bool importWriteReady; - bool importReadReady; - bool bWritingComplete; - - int channels; - float *shareBuf; - long readBlockSize; - long shareBufStart; - long shareBufEnd; - long shareBufSize; - long halfShareBufSize; - long n_done; -}; - -} - -#endif diff --git a/lib-src/sbsms/src/btndown.cpp b/lib-src/sbsms/src/btndown.cpp deleted file mode 100644 index f61882236..000000000 --- a/lib-src/sbsms/src/btndown.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include "BtnDown.h" - -//-------------------// -//--- CBtnDownEvt ---// -//-------------------// -BEGIN_EVENT_TABLE(CBtnDownEvt, wxEvtHandler) - EVT_LEFT_DOWN (CBtnDownEvt::OnLeftDown) - EVT_LEFT_UP (CBtnDownEvt::OnLeftUp) - EVT_MOTION (CBtnDownEvt::OnMouseMove) -END_EVENT_TABLE() - -void CBtnDownEvt::OnLeftDown( wxMouseEvent& event ) -{ - pParent->SetBitmapLabel( *pBtnDown ); - pParent->Refresh(); - event.Skip(); -} - -void CBtnDownEvt::OnLeftUp( wxMouseEvent& event ) -{ - pParent->SetBitmapLabel( *pBtnUp ); - pParent->Refresh(); - event.Skip(); -} - -void CBtnDownEvt::OnMouseMove( wxMouseEvent& event ) -{ - if ( event.LeftIsDown() ) - pParent->SetBitmapLabel( *pBtnUp ); - event.Skip(); -} diff --git a/lib-src/sbsms/src/btndown.h b/lib-src/sbsms/src/btndown.h deleted file mode 100644 index 6d4dfcb85..000000000 --- a/lib-src/sbsms/src/btndown.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef MUSIK_BTNDOWN_EVT -#define MUSIK_BTNDOWN_EVT - -#include "wx/wx.h" - -class CBtnDownEvt : public wxEvtHandler -{ - public: - CBtnDownEvt( wxBitmapButton *parent, wxBitmap *down, wxBitmap *up ){ pParent = parent; pBtnDown = down; pBtnUp = up; }; - ~CBtnDownEvt(){}; - - void OnLeftDown ( wxMouseEvent& event ); - void OnLeftUp ( wxMouseEvent& event ); - void OnMouseMove( wxMouseEvent& event ); - void OnEraseBackground(wxEraseEvent& ) {} - DECLARE_EVENT_TABLE() - private: - wxBitmapButton *pParent; - wxBitmap *pBtnDown; - wxBitmap *pBtnUp; -}; - -#endif diff --git a/lib-src/sbsms/src/buffer.cpp b/lib-src/sbsms/src/buffer.cpp index babadd48b..06d01f977 100644 --- a/lib-src/sbsms/src/buffer.cpp +++ b/lib-src/sbsms/src/buffer.cpp @@ -3,10 +3,13 @@ #include #include "buffer.h" #include "sbsms.h" +#include "utils.h" +#include +using namespace std; namespace _sbsms_ { -#define INIT_SAMPLEBUF_LENGTH 65536 +#define INIT_SAMPLEBUF_LENGTH 8192 #define INIT_GRAINBUF_LENGTH 128 #define INIT_TPLBUF_LENGTH 128 @@ -76,7 +79,7 @@ long SampleBuf :: write(grain *g, int h) for(int c=0;c<2;c++) { int j = 0; for(int k=writePos; kN; k++) { - buf[k][c] += g->time[j++][c] * f; + buf[k][c] += g->x[j++][c] * f; } } writePos += h; @@ -134,21 +137,20 @@ void SampleBuf :: clear() GrainBuf :: GrainBuf(int N, int h) { - init(N,h,1,SBSMS_HANN); + init(N,h,1); } -GrainBuf :: GrainBuf(int N, int h, real pad, int wintype) +GrainBuf :: GrainBuf(int N, int h, real pad) { - init(N,h,pad,wintype); + init(N,h,pad); } -void GrainBuf :: init(int N, int h, real pad, int wintype) +void GrainBuf :: init(int N, int h, real pad) { this->length = INIT_GRAINBUF_LENGTH; this->buf = (grain**) calloc(2*length,sizeof(grain*)); this->iBuf = (audio*) calloc(N,sizeof(audio)); - this->wintype = wintype; this->pad = pad; this->N = N; this->h = h; @@ -197,8 +199,8 @@ long GrainBuf :: write(audio *buf2, long n) void GrainBuf :: convert(audio *timebuf) { - grain *g = grain::create(N,pad,wintype); - memcpy(g->time,timebuf,N*sizeof(audio)); + grain *g = grain::create(N,pad); + memcpy(g->x,timebuf,N*sizeof(audio)); g->analyze(); g->h = h; write(g); diff --git a/lib-src/sbsms/src/buffer.h b/lib-src/sbsms/src/buffer.h index 67821f836..eb4e9c34a 100644 --- a/lib-src/sbsms/src/buffer.h +++ b/lib-src/sbsms/src/buffer.h @@ -122,10 +122,10 @@ class TrackPointListBuffer { class GrainBuf { public: GrainBuf(int N, int h); - GrainBuf(int N, int h, real pad, int type); + GrainBuf(int N, int h, real pad); ~GrainBuf(); - void init(int N, int h, real pad, int type); + void init(int N, int h, real pad); long write(audio *buf, long n); void write(grain *g); void advance(long n); @@ -135,7 +135,7 @@ class GrainBuf { long length; long readPos, writePos; - int N,h,wintype; + int N,h; real pad; protected: diff --git a/lib-src/sbsms/src/convert.cpp b/lib-src/sbsms/src/convert.cpp deleted file mode 100644 index 6e4439c85..000000000 --- a/lib-src/sbsms/src/convert.cpp +++ /dev/null @@ -1,320 +0,0 @@ -#include "config.h" - -#include -#include "convert.h" -#include "sbsms.h" -#include -#include "audio.h" -#ifdef HAVE_SNDFILE -#include "import.h" -#include "pcm.h" -#define BWAV 1 -#endif - -struct resampleBuf { - float *buf; - audio *abuf; - double ratio; - long samplesIn; - long block; -#ifdef BWAV - AudioDecoder *decoder; -#else - FILE *decoder; -#endif -}; - -long resampleCB(void *cb_data, sbsms_resample_frame *data) -{ - resampleBuf *r = (resampleBuf*) cb_data; -#ifdef BWAV - long n_read_in = r->decoder->read(r->buf,r->block); - audio_convert_to(r->abuf,0,r->buf,0,n_read_in); -#else - long n_read_in = 0; - for(int k=0;kblock;k++) { - if(fscanf(r->decoder,"%g %g\n",&(r->abuf[k][0]),&(r->abuf[k][1])) == EOF) - break; - n_read_in++; - } -#endif - r->samplesIn += n_read_in; - data->size = n_read_in; - data->ratio0 = r->ratio; - data->ratio1 = r->ratio; - data->in = r->abuf; - - return n_read_in; -} - -long samplesCB(audio *chdata, long numFrames, void *userData) -{ - sbsmsInfo *si = (sbsmsInfo*) userData; - long n_read = si->rs->read(chdata, numFrames); - return n_read; -} - -#ifndef BWAV -long lineCount(FILE *fp) { - long n = 0; - char c = 0; - do { - c = fgetc(fp); - if (c == '\n') n++; - } while (c != EOF); - fseek(fp,0,SEEK_SET); - return n; -} -#endif - -bool sbsms_convert(const char *filenameIn, const char *filenameOut, bool bAnalyzeOnly, bool bSynthesizeOnly, bool bPreAnalyze, int quality, progress_cb progressCB, void *data, real stretch0, real stretch1, real ratio0, real ratio1, real volume) -{ - bool status = true; - - real srOut = 44100.0f; - int channels; - long samplesToProcess; - long samplesIn; - sbsmsInfo si; - sbsms *sbsmser = NULL; - Resampler *resampler = NULL; - Resampler *resamplerPre = NULL; - resampleBuf rb; - rb.buf = NULL; - rb.abuf = NULL; - resampleBuf rbPre; - rbPre.buf = NULL; - rbPre.abuf = NULL; - FILE *sbsmsIn = NULL; - FILE *sbsmsOut = NULL; - float *fbuf = NULL; - audio *abuf = NULL; - pitcher *pitch = NULL; - float srIn; - real stretch2; - long samplesOut; - -#ifdef BWAV - AudioDecoder *decoder = NULL; - AudioDecoder *decoderPre = NULL; -#else - FILE *decoder = NULL; - FILE *decoderPre = NULL; -#endif - if(bSynthesizeOnly) { - sbsmsIn = sbsms_open_read(filenameIn); - if(!sbsmsIn) { - printf("Cannot open file: :%s\n",filenameIn); - status = false; - goto cleanup; - } - samplesIn = 0; - samplesToProcess = sbsms_get_samples_to_process(sbsmsIn); - channels = sbsms_get_channels(sbsmsIn); - quality = sbsms_get_quality(sbsmsIn); - sbsmser = sbsms_create(sbsmsIn,&stretchCBLinear,&ratioCBLinear); - decoder = NULL; - } else { -#ifdef BWAV - decoder = import(filenameIn); - if(!decoder) { - printf("File: %s cannot be opened\n",filenameIn); - exit(-1); - } - srIn = (float) decoder->getSampleRate(); - channels = decoder->getChannels(); - samplesIn = decoder->getFrames(); -#else - decoder = fopen(filenameIn,"r"); - if(!decoder) { - printf("File: %s cannot be opened\n",filenameIn); - status = false; - goto cleanup; - } - srIn = 44100.0; - channels = 2; - samplesIn = lineCount(decoder); -#endif - samplesToProcess = (long) (samplesIn*srOut/srIn); - - rb.ratio = (float)srOut / (float)srIn; - rb.decoder = decoder; - rb.block = SBSMS_FRAME_SIZE[quality]; - rb.samplesIn = 0; - rb.buf = (float*)calloc(rb.block*2,sizeof(float)); - rb.abuf = (audio*)calloc(rb.block,sizeof(audio)); - resampler = new Resampler(resampleCB, &rb); - si.rs = resampler; - sbsmser = sbsms_create(&samplesCB,&stretchCBLinear,&ratioCBLinear,channels,quality,bPreAnalyze,!bAnalyzeOnly); - } - - if(bPreAnalyze && !bSynthesizeOnly) { -#ifdef BWAV - decoderPre = import(filenameIn); - if(!decoderPre) { - printf("File: %s cannot be opened\n",filenameIn); - status = false; - goto cleanup; - } -#else - decoderPre = fopen(filenameIn,"r"); - if(!decoderPre) { - printf("File: %s cannot be opened\n",filenameIn); - status = false; - goto cleanup; - } -#endif - rbPre.ratio = (float)srOut / (float)srIn; - rbPre.decoder = decoderPre; - rbPre.block = SBSMS_FRAME_SIZE[quality]; - rbPre.samplesIn = 0; - rbPre.buf = (float*)calloc(rbPre.block*2,sizeof(float)); - rbPre.abuf = (audio*)calloc(rbPre.block,sizeof(audio)); - resamplerPre = new Resampler(resampleCB, &rbPre); - si.rs = resamplerPre; - } - if(stretch0 == stretch1) - stretch2 = 1.0/stretch0; - else - stretch2 = log(stretch1/stretch0)/(stretch1-stretch0); - samplesOut = samplesToProcess * stretch2; - si.samplesToProcess = samplesToProcess; - si.samplesToGenerate = samplesOut; - si.stretch0 = stretch0; - si.stretch1 = stretch1; - si.ratio0 = ratio0; - si.ratio1 = ratio1; - - if(bPreAnalyze && !bSynthesizeOnly) { - long pos = 0; - long lastPos = 0; - long ret = 0; - while(lastPossamplesOut) { - frames = samplesOut - pos; - } else { - frames = blockSize; - } - - ret = pitch_process(abuf, frames, pitch); - audio_convert_from(fbuf,0,abuf,0,ret); - if(channels==1) { - for(int k=0;k #include "grain.h" #include "sbsms.h" -#include "defs.h" #include "real.h" +#include "utils.h" #include using namespace std; -using namespace _sbsms_; -map > > wwMap; -map > > peakMap; +namespace _sbsms_ { + +map > wwMap; +map > peakMap; map fftPlanMap; map ifftPlanMap; -long grain :: count = 0; - -grain* grain :: create(int N,real pad,int wintype) +grain* grain :: create(int N,real pad) { - grain *g = new grain(N,pad,wintype); - - g->refCount = 0; - g->time = (audio*) malloc(N*sizeof(audio)); - g->freq = (audio*) malloc(N*sizeof(audio)); + grain *g = new grain(N,pad); return g; } @@ -43,41 +38,37 @@ void grain :: forget(grain *g) void grain :: destroy(grain *g) { - free_audio_buf(g->time); - free_audio_buf(g->freq); + free_audio_buf(g->x); delete g; } -grain :: grain(int N, real pad, int type) +grain :: grain(int N, real pad) { - this->type = type; this->N = N; this->pad = pad; calc_plans(); calc_windows(); + refCount = 0; + x = (audio*) malloc(N*sizeof(audio)); } void grain :: analyze() { for(int k=0;kfreq[k][c] = g->freq[k][c]; + g2->x[k][c] = g->x[k][c]; for(int k=N/2+1;k<=N/2+N;k++) - g2->freq[k][c] = 0; + g2->x[k][c] = 0; for(int k=N/2+N+1;k<2*N;k++) - g2->freq[k][c] = g->freq[k-N][c]; + g2->x[k][c] = g->x[k-N][c]; } return g2; } grain* grain :: downsample() { - grain *g2 = grain::create(N/2,pad,type); + grain *g2 = grain::create(N/2,pad); grain *g = this; for(int c=0;c<2;c++) { for(int k=0;k<=N/4-1;k++) - g2->freq[k][c] = g->freq[k][c]; + g2->x[k][c] = g->x[k][c]; - g2->freq[N/4][c] = 0.5*(g->freq[N/4][c] + g->freq[N-N/4][c] ); + g2->x[N/4][c] = 0.5*(g->x[N/4][c] + g->x[N-N/4][c] ); for(int k=N/4+1;kfreq[k][c] = g->freq[k+N/2][c]; + g2->x[k][c] = g->x[k+N/2][c]; } return g2; } -grain *grain :: lpfilter() -{ - grain *g = this; - for(int c=0;c<2;c++) { - for(int k=N/4+1;k<=N-N/4-1;k++) - g->freq[k][c] = 0; - } - return this; -} - - -//destructive -grain *grain :: hpfilter() -{ - grain *g = this; - for(int c=0;c<2;c++) { - for(int k=0;k<=N/4;k++) - g->freq[k][c] = 0; - - for(int k=N-N/4;kfreq[k][c] = 0; - } - return this; } diff --git a/lib-src/sbsms/src/grain.h b/lib-src/sbsms/src/grain.h index 3c805b242..1d567a0ae 100644 --- a/lib-src/sbsms/src/grain.h +++ b/lib-src/sbsms/src/grain.h @@ -5,40 +5,31 @@ #include "audio.h" #include "sbsms.h" -#define SBSMS_HANN 0 -#define SBSMS_HAMMING 1 - namespace _sbsms_ { class grain { - public: - - static long count; - static grain* create(int N, real pad, int wintype); + static grain* create(int N, real pad); static void destroy(grain *g); static void referenced(grain *g); static void forget(grain *g); - t_fft *time; - t_fft *freq; - int N, type, h; + t_fft *x; + int N; + int h; real pad; int refCount; + audio *peak; void analyze(); void synthesize(); - grain* upsample(); grain* downsample(); - grain* lpfilter(); - grain* hpfilter(); - audio *peak; protected: - grain(int N,real q,int wintype); - void calc_windows(); + grain(int N,real pad); void calc_plans(); + void calc_windows(); real *ww; fftplan *fftPlan, *ifftPlan; }; diff --git a/lib-src/sbsms/src/import.cpp b/lib-src/sbsms/src/import.cpp deleted file mode 100644 index 9154edd4b..000000000 --- a/lib-src/sbsms/src/import.cpp +++ /dev/null @@ -1,48 +0,0 @@ -#include -#include "sbsms.h" -#include "import.h" -#include "config.h" - -#include "pcm.h" -#ifdef HAVE_MAD -#include "mp3.h" -#endif - -#include -#include - -using namespace std; - -namespace _sbsms_ { -string lower(string strToConvert) -{ - for(unsigned int i=0;i -//# include -# include - -#include "mp3tech.h" -#include "audio.h" -#include "import.h" -#include "audiobuffer.h" - -#include -#include - -#include "mp3.h" - -namespace _sbsms_ { -#define MP3_INPUT_BUFFER_SIZE 4096 -#define MP3_OUTPUT_BUFFER_SIZE 4096 -#define MP3_OUTPUT_OVERFLOW_BUFFER_SIZE 4096 -#define MP3_AUDIO_BUFFER_SIZE 65536 - -using namespace std; - -static -enum mad_flow input(void *_data, - struct mad_stream *stream) -{ - MP3Reader *data = (MP3Reader*) _data; - long input_buffer_size = MP3_INPUT_BUFFER_SIZE; - - if(data->file->eof()) { - data->rb->writingComplete(); - return MAD_FLOW_STOP; - } - - /* "Each time you refill your buffer, you need to preserve the data in - * your existing buffer from stream.next_frame to the end. - * - * This usually amounts to calling memmove() on this unconsumed portion - * of the buffer and appending new data after it, before calling - * mad_stream_buffer()" - * -- Rob Leslie, on the mad-dev mailing list */ - - unsigned int unconsumedBytes; - if(stream->next_frame) { - unconsumedBytes = data->inputBuffer + input_buffer_size - stream->next_frame; - memmove(data->inputBuffer, stream->next_frame, unconsumedBytes); - } - else - unconsumedBytes = 0; - - //use read instead of readsome so eof is reached - long start = data->file->tellg(); - data->file->read((char*)data->inputBuffer + unconsumedBytes, - (input_buffer_size - unconsumedBytes)); - long end = data->file->tellg(); - long read = end - start; - - mad_stream_buffer(stream, data->inputBuffer, read + unconsumedBytes); - - return MAD_FLOW_CONTINUE; -} - - -inline float scale(mad_fixed_t sample) -{ - return (float) (sample / (float) (1L << MAD_F_FRACBITS)); -} - -static long copy_mad_audio(float *out, struct mad_pcm *pcm, unsigned int nsamples) -{ - unsigned int nchannels = pcm->channels; - - mad_fixed_t *ch; - ch = pcm->samples[0]; - - for(unsigned int k = 0;ksamples[1]; - for(unsigned int k = 0;ksamples[0]; - for(unsigned int k = 0;kchannels = pcm->channels; - audio_in_cb cb = data->cb; - unsigned int nsamples = pcm->length; - float *out = data->getOutputBuffer(nsamples); - copy_mad_audio(out,pcm,nsamples); - - if(cb) { - cb(out,nsamples,pcm->samplerate,data->data); - } - return MAD_FLOW_CONTINUE; -} - -/* - * This is the error callback function. It is called whenever a decoding - * error occurs. The error is indicated by stream->error; the list of - * possible MAD_ERROR_* errors can be found in the mad.h (or stream.h) - * header file. - */ - -static -enum mad_flow error(void *_data, - struct mad_stream *stream, - struct mad_frame *frame) -{ - fprintf(stderr, "decoding error 0x%04x (%s) at stream frame %u\n", - stream->error, mad_stream_errorstr(stream), - (unsigned int)stream->this_frame ); - - /* return MAD_FLOW_BREAK here to stop decoding (and propagate an error) */ - return MAD_FLOW_CONTINUE; -} - - - -/* - * It instantiates a decoder object and configures it with the input, - * output, and error callback functions above. A single call to - * mad_decoder_run() continues until a callback function returns - * MAD_FLOW_STOP (to stop decoding) or MAD_FLOW_BREAK (to stop decoding and - * signal an error). - */ - - -int read_cb(float *buf, long n, int Fs, void *data) -{ - MP3Reader *decoder = (MP3Reader*)data; - return decoder->rb->write(buf,n); -} - -void *mp3importThreadCB(void *data) -{ - /* start decoding */ - MP3Reader *reader = (MP3Reader*)data; - mad_decoder_run(&(reader->decoder), MAD_DECODER_MODE_SYNC); - reader->bDone = true; - return NULL; -} - -long MP3Reader :: read(float *outputBuffer, long block_size) -{ - // on first call, start the decoder - if(bFirst) { - bFirst = false; - this->data = this; - this->cb = read_cb; - pthread_create(&importThread, NULL, mp3importThreadCB, this); - } - - return rb->read(outputBuffer, block_size); -} - -float* MP3Reader :: getOutputBuffer(long nsamples) -{ - return outputBuffer; -} - -bool MP3Reader :: done() -{ - return bDone; -} - -bool MP3Reader :: isError() -{ - return bError; -} - -MP3Reader :: MP3Reader(const char *filename) -{ - bError = false; - file = new ifstream(); - file->open(filename, ios::in | ios::binary); - if (!file->is_open()) { - bError = true; - } - - mp3info mp3; - mp3.file = fopen(filename,"rb"); - mp3.filename = filename; - get_mp3_info(&mp3); - this->samples = mp3.samples; - this->sampleRate = mp3.sample_rate; - fclose(mp3.file); - - this->n_done = 0; - this->bFirst = true; - this->bDone = false; - - /* configure input, output, and error functions */ - mad_decoder_init(&decoder, this, - input, 0 /* header */, 0 /* filter */, output, - error, 0 /* message */); - - this->outputBuffer = new float[MP3_OUTPUT_BUFFER_SIZE<<1]; - this->inputBuffer = new unsigned char [MP3_INPUT_BUFFER_SIZE]; - this->rb = new AudioBuffer(MP3_AUDIO_BUFFER_SIZE,2); -} - -long MP3Reader :: getFrames() -{ - return samples; -} - -int MP3Reader :: getSampleRate() -{ - return sampleRate; -} - -int MP3Reader :: getChannels() -{ - return 2; -} - -MP3Reader :: ~MP3Reader() -{ - file->close(); - delete file; - mad_decoder_finish(&decoder); - delete outputBuffer; - delete inputBuffer; - delete rb; -} - -} diff --git a/lib-src/sbsms/src/mp3.h b/lib-src/sbsms/src/mp3.h deleted file mode 100644 index 6eb8da77c..000000000 --- a/lib-src/sbsms/src/mp3.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef MP3_H -#define MP3_H - -#include -#include -#include "import.h" -#include "mad.h" -#include "audiobuffer.h" -using namespace std; -#include - -namespace _sbsms_ { - -class MP3Reader : public AudioDecoder { - public: - MP3Reader(const char *filename); - ~MP3Reader(); - bool isError(); - long read(float *buf, long block_size); - int getSampleRate(); - int getChannels(); - long getFrames(); - bool done(); - float* getOutputBuffer(long nsamples); - - bool bError; - int channels; - int sampleRate; - long samples; - float *outputBuffer; - unsigned char *inputBuffer; - bool bFirst; - long n_done; - AudioBuffer *rb; - bool bDone; - struct mad_decoder decoder; - pthread_t importThread; - ifstream *file; - audio_in_cb cb; - void *data; -}; - -} - -#endif diff --git a/lib-src/sbsms/src/mp3tech.cpp b/lib-src/sbsms/src/mp3tech.cpp deleted file mode 100644 index 5711834a9..000000000 --- a/lib-src/sbsms/src/mp3tech.cpp +++ /dev/null @@ -1,304 +0,0 @@ -/* - mp3tech.c - Functions for handling MP3 files and most MP3 data - structure manipulation. - - Copyright (C) 2000-2006 Cedric Tefft - - 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. - - *************************************************************************** - - This file is based in part on: - - * MP3Info 0.5 by Ricardo Cerqueira - * MP3Stat 0.9 by Ed Sweetman and - Johannes Overmann - -*/ - -#include "mp3tech.h" -#include -#include -#include - -namespace _sbsms_ { -int layer_tab[4]= {0, 3, 2, 1}; - -int frequencies[3][4] = { - {22050,24000,16000,50000}, /* MPEG 2.0 */ - {44100,48000,32000,50000}, /* MPEG 1.0 */ - {11025,12000,8000,50000} /* MPEG 2.5 */ -}; - -int bitrate[2][3][15] = { - { /* MPEG 2.0 */ - {0,32,48,56,64,80,96,112,128,144,160,176,192,224,256}, /* layer 1 */ - {0,8,16,24,32,40,48,56,64,80,96,112,128,144,160}, /* layer 2 */ - {0,8,16,24,32,40,48,56,64,80,96,112,128,144,160} /* layer 3 */ - - }, - - { /* MPEG 1.0 */ - {0,32,64,96,128,160,192,224,256,288,320,352,384,416,448}, /* layer 1 */ - {0,32,48,56,64,80,96,112,128,160,192,224,256,320,384}, /* layer 2 */ - {0,32,40,48,56,64,80,96,112,128,160,192,224,256,320} /* layer 3 */ - } -}; - -int frame_samples_index[] = {384,1152,1152}; - -int frame_size_index[] = {24000, 72000, 72000}; - - -char *mode_text[] = { - "stereo", "joint stereo", "dual channel", "mono" -}; - -char *emphasis_text[] = { - "none", "50/15 microsecs", "reserved", "CCITT J 17" -}; - - -int get_mp3_info(mp3info *mp3) -{ - int had_error = 0; - int frame_type[15]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; - int samples = 0; - int bitrate; - int frames=0,frame_types=0,frames_so_far=0; - int counter=0; - mp3header header; - struct stat filestat; - off_t data_start=0; - - int scantype = SCAN_FULL; - - stat(mp3->filename,&filestat); - mp3->datasize=filestat.st_size; - get_id3(mp3); - - if(scantype == SCAN_FULL) { - if(get_first_header(mp3,0L)) { - data_start=ftell(mp3->file); - while((bitrate=get_next_header(mp3))) { - frame_type[15-bitrate]++; - frames++; - } - memcpy(&header,&(mp3->header),sizeof(mp3header)); - for(counter=0;counter<15;counter++) { - if(frame_type[counter]) { - frame_types++; - header.bitrate=counter; - frames_so_far += frame_type[counter]; - samples += frame_samples(&mp3->header)*frame_type[counter]; - mp3->sample_rate = header_frequency(&mp3->header); - } - } - mp3->samples = samples - frame_samples_index[2]; - } - } - - return had_error; -} - - -int get_first_header(mp3info *mp3, long startpos) -{ - int k, l=0,c; - mp3header h, h2; - long valid_start=0; - - fseek(mp3->file,startpos,SEEK_SET); - while (1) { - while((c=fgetc(mp3->file)) != 255 && (c != EOF)); - if(c == 255) { - ungetc(c,mp3->file); - valid_start=ftell(mp3->file); - if((l=get_header(mp3->file,&h))) { - fseek(mp3->file,l-FRAME_HEADER_SIZE,SEEK_CUR); - for(k=1; (k < MIN_CONSEC_GOOD_FRAMES) && (mp3->datasize-ftell(mp3->file) >= FRAME_HEADER_SIZE); k++) { - if(!(l=get_header(mp3->file,&h2))) break; - if(!sameConstant(&h,&h2)) break; - fseek(mp3->file,l-FRAME_HEADER_SIZE,SEEK_CUR); - } - if(k == MIN_CONSEC_GOOD_FRAMES) { - fseek(mp3->file,valid_start,SEEK_SET); - memcpy(&(mp3->header),&h2,sizeof(mp3header)); - mp3->header_isvalid=1; - return 1; - } - } - } else { - return 0; - } - } - - return 0; -} - -/* get_next_header() - read header at current position or look for - the next valid header if there isn't one at the current position -*/ -int get_next_header(mp3info *mp3) -{ - int l=0,c,skip_bytes=0; - mp3header h; - - while(1) { - while((c=fgetc(mp3->file)) != 255 && (ftell(mp3->file) < mp3->datasize)) skip_bytes++; - if(c == 255) { - ungetc(c,mp3->file); - if((l=get_header(mp3->file,&h))) { - fseek(mp3->file,l-FRAME_HEADER_SIZE,SEEK_CUR); - return 15-h.bitrate; - } else { - skip_bytes += FRAME_HEADER_SIZE; - } - } else { - return 0; - } - } -} - -/* Get next MP3 frame header. - Return codes: - positive value = Frame Length of this header - 0 = No, we did not retrieve a valid frame header -*/ - -int get_header(FILE *file,mp3header *header) -{ - unsigned char buffer[FRAME_HEADER_SIZE]; - int fl; - - if(fread(&buffer,FRAME_HEADER_SIZE,1,file)<1) { - header->sync=0; - return 0; - } - header->sync=(((int)buffer[0]<<4) | ((int)(buffer[1]&0xE0)>>4)); - if(buffer[1] & 0x10) header->version=(buffer[1] >> 3) & 1; - else header->version=2; - header->layer=(buffer[1] >> 1) & 3; - header->bitrate=(buffer[2] >> 4) & 0x0F; - if((header->sync != 0xFFE) || (header->layer != 1) || (header->bitrate == 0xF)) { - header->sync=0; - return 0; - } - header->crc=buffer[1] & 1; - header->freq=(buffer[2] >> 2) & 0x3; - header->padding=(buffer[2] >>1) & 0x1; - header->extension=(buffer[2]) & 0x1; - header->mode=(buffer[3] >> 6) & 0x3; - header->mode_extension=(buffer[3] >> 4) & 0x3; - header->copyright=(buffer[3] >> 3) & 0x1; - header->original=(buffer[3] >> 2) & 0x1; - header->emphasis=(buffer[3]) & 0x3; - - /* Final sanity checks: bitrate 1111b and frequency 11b are reserved (invalid) */ - if (header->bitrate == 0x0F || header->freq == 0x3) { - return 0; - } - - return ((fl=frame_length(header)) >= MIN_FRAME_SIZE ? fl : 0); -} - -int frame_samples(mp3header *header) { - return frame_samples_index[3-header->layer]; -} - -int frame_length(mp3header *header) { - return header->sync == 0xFFE ? - (frame_size_index[3-header->layer]*((header->version&1)+1)* - header_bitrate(header)/header_frequency(header))+ - header->padding : 1; -} - -int header_layer(mp3header *h) {return layer_tab[h->layer];} - -int header_bitrate(mp3header *h) { - return bitrate[h->version & 1][3-h->layer][h->bitrate]; -} - -int header_frequency(mp3header *h) { - return frequencies[h->version][h->freq]; -} - -char *header_emphasis(mp3header *h) { - return emphasis_text[h->emphasis]; -} - -char *header_mode(mp3header *h) { - return mode_text[h->mode]; -} - -int sameConstant(mp3header *h1, mp3header *h2) { - if((*(uint*)h1) == (*(uint*)h2)) return 1; - - if((h1->version == h2->version ) && - (h1->layer == h2->layer ) && - (h1->crc == h2->crc ) && - (h1->freq == h2->freq ) && - (h1->mode == h2->mode ) && - (h1->copyright == h2->copyright ) && - (h1->original == h2->original ) && - (h1->emphasis == h2->emphasis )) - return 1; - else return 0; -} - - -int get_id3(mp3info *mp3) { - int retcode=0; - char fbuf[4]; - - if(mp3->datasize >= 128) { - if(fseek(mp3->file, -128, SEEK_END )) { - fprintf(stderr,"ERROR: Couldn't read last 128 bytes of %s!!\n",mp3->filename); - retcode |= 4; - } else { - fread(fbuf,1,3,mp3->file); fbuf[3] = '\0'; - mp3->id3.genre[0]=255; - - if (!strcmp((const char *)"TAG",(const char *)fbuf)) { - mp3->id3_isvalid=1; - mp3->datasize -= 128; - fseek(mp3->file, -125, SEEK_END); - fread(mp3->id3.title,1,30,mp3->file); mp3->id3.title[30] = '\0'; - fread(mp3->id3.artist,1,30,mp3->file); mp3->id3.artist[30] = '\0'; - fread(mp3->id3.album,1,30,mp3->file); mp3->id3.album[30] = '\0'; - fread(mp3->id3.year,1,4,mp3->file); mp3->id3.year[4] = '\0'; - fread(mp3->id3.comment,1,30,mp3->file); mp3->id3.comment[30] = '\0'; - if(mp3->id3.comment[28] == '\0') { - mp3->id3.track[0] = mp3->id3.comment[29]; - } - fread(mp3->id3.genre,1,1,mp3->file); - unpad(mp3->id3.title); - unpad(mp3->id3.artist); - unpad(mp3->id3.album); - unpad(mp3->id3.year); - unpad(mp3->id3.comment); - } - } - } - return retcode; -} - -char *unpad(char *string) { - char *pos=string+strlen(string)-1; - while(isspace(pos[0])) (pos--)[0]=0; - return string; -} - -} \ No newline at end of file diff --git a/lib-src/sbsms/src/mp3tech.h b/lib-src/sbsms/src/mp3tech.h deleted file mode 100644 index c3923af0e..000000000 --- a/lib-src/sbsms/src/mp3tech.h +++ /dev/null @@ -1,103 +0,0 @@ -/* - mp3tech.h - Headers for mp3tech.c - - Copyright (C) 2000-2006 Cedric Tefft - - 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. - - *************************************************************************** - - This file is based in part on: - - * MP3Info 0.5 by Ricardo Cerqueira - * MP3Stat 0.9 by Ed Sweetman and - Johannes Overmann - -*/ - -#include -#include -#include - -namespace _sbsms_ { - -typedef unsigned int uint; - -/* MIN_CONSEC_GOOD_FRAMES defines how many consecutive valid MP3 frames - we need to see before we decide we are looking at a real MP3 file */ -#define MIN_CONSEC_GOOD_FRAMES 4 -#define FRAME_HEADER_SIZE 4 -#define MIN_FRAME_SIZE 21 -#define NUM_SAMPLES 4 - -enum VBR_REPORT { VBR_VARIABLE, VBR_AVERAGE, VBR_MEDIAN }; -enum SCANTYPE { SCAN_NONE, SCAN_QUICK, SCAN_FULL }; - -typedef struct { - unsigned long sync; - unsigned int version; - unsigned int layer; - unsigned int crc; - unsigned int bitrate; - unsigned int freq; - unsigned int padding; - unsigned int extension; - unsigned int mode; - unsigned int mode_extension; - unsigned int copyright; - unsigned int original; - unsigned int emphasis; -} mp3header; - -typedef struct { - char title[31]; - char artist[31]; - char album[31]; - char year[5]; - char comment[31]; - unsigned char track[1]; - unsigned char genre[1]; -} id3tag; - -class mp3info { -public: - const char *filename; - FILE *file; - off_t datasize; - int header_isvalid; - mp3header header; - int id3_isvalid; - id3tag id3; - int samples; - int sample_rate; -}; - - -int get_header(FILE *file,mp3header *header); -int frame_samples(mp3header *header); -int frame_length(mp3header *header); -int header_layer(mp3header *h); -int header_bitrate(mp3header *h); -int sameConstant(mp3header *h1, mp3header *h2); -int get_mp3_info(mp3info *mp3); -int get_id3(mp3info *mp3); -int header_frequency(mp3header *h); -char *header_emphasis(mp3header *h); -char *header_mode(mp3header *h); -int get_first_header(mp3info *mp3,long startpos); -int get_next_header(mp3info *mp3); -char *unpad(char *string); - -} diff --git a/lib-src/sbsms/src/pcm.cpp b/lib-src/sbsms/src/pcm.cpp deleted file mode 100644 index 312e559e1..000000000 --- a/lib-src/sbsms/src/pcm.cpp +++ /dev/null @@ -1,125 +0,0 @@ -#include -#include - -#include "pcm.h" -#include "utils.h" - -namespace _sbsms_ { -long PcmReader :: read(float *buf, long block_size) { - if(info.channels == 1) { - float srcbuf[2*PCM_READ_BUF_SIZE]; - long nread = -1; - long nreadTotal = 0; - while(nreadTotal < block_size && nread) { - long ntoread = min((long)PCM_READ_BUF_SIZE,block_size-nreadTotal); - nread = sf_readf_float(in, srcbuf, ntoread); - for(int i=0;i -#include "import.h" - -namespace _sbsms_ { - -#define PCM_READ_BUF_SIZE 4096 -#define PCM_WRITE_BUF_SIZE 4096 - -class PcmReader : public AudioDecoder { - public: - PcmReader(const char *filename); - ~PcmReader(); - long decode(audio_in_cb, long block_size, void *data); - long read(float *buf, long block_size); - int getChannels(); - int getSampleRate(); - long getFrames(); - bool isError(); - - bool done(); - - protected: - bool bError; - bool bDone; - long total; - SF_INFO info; - SNDFILE *in; -}; - -class PcmWriter { - public: - PcmWriter(const char *filename,long,int,int); - ~PcmWriter(); - long write(float *buf, long block_size); - void close(); - bool isError(); - - protected: - bool bError; - long total; - SF_INFO info; - SNDFILE *out; - -}; - -} - -#endif - -#endif diff --git a/lib-src/sbsms/src/pitch.cpp b/lib-src/sbsms/src/pitch.cpp deleted file mode 100644 index ac6185002..000000000 --- a/lib-src/sbsms/src/pitch.cpp +++ /dev/null @@ -1,51 +0,0 @@ -#include -#include -#include "sbsms.h" - -using namespace _sbsms_; -long pitchCB(void *cb_data, sbsms_resample_frame *frame) -{ - pitcher *pitch = (pitcher*) cb_data; - long n_read = sbsms_read_frame(pitch->buf,pitch->sbsmsData,pitch->sbsmser,&(frame->ratio0),&(frame->ratio1)); - frame->ratio0 *= pitch->ratio; - frame->ratio1 *= pitch->ratio; - frame->size = n_read; - frame->in = pitch->buf; - return n_read; -} - -pitcher *pitch_create(sbsms *sbsmser, void *sbsmsData, real ratio) -{ - pitcher *pitch = (pitcher*)calloc(1,sizeof(pitcher)); - pitch->ratio = ratio; - pitch->bufsize = sbsmser->bufsize; - pitch->buf = (audio*)calloc(pitch->bufsize,sizeof(audio)); - pitch->postResampler = new Resampler(&pitchCB, pitch); - pitch->sbsmsData = sbsmsData; - pitch->sbsmser = sbsmser; - return pitch; -} - -void pitch_destroy(pitcher *pitch) -{ - delete pitch->postResampler; - free(pitch->buf); - free(pitch); -} - -void pitch_reset(pitcher *pitch) -{ - pitch->postResampler->reset(); -} - -long pitch_process(audio *out, long n, pitcher *pitch) -{ - return pitch->postResampler->read(out, n); -} - -long pitch_get_samples_queued(pitcher *pitch) -{ - long queued = sbsms_get_samples_queued(pitch->sbsmser); - long output = pitch->postResampler->samplesInOutput(); - return queued + output; -} diff --git a/lib-src/sbsms/src/play.cpp b/lib-src/sbsms/src/play.cpp deleted file mode 100644 index 2e5fdabb2..000000000 --- a/lib-src/sbsms/src/play.cpp +++ /dev/null @@ -1,485 +0,0 @@ -#include "config.h" -#ifdef HAVE_PORTAUDIO - -#include "sbsms.h" -#include "play.h" -#include -#include -#include -#include "audiobuffer.h" - -void *writeThreadCB(void *data) { - sbsmsplayer *player = (sbsmsplayer*)data; - - while(player->isPlaying()) { - player->writeframe(); - } - - player->rb->flush(); - player->rb->writingComplete(); - pitch_reset(player->pitch); - sbsms_reset(player->sbsmser); - pthread_exit(NULL); - return NULL; -} - -static int audioCB(const void *inputBuffer, void *outputBuffer, - unsigned long framesPerBuffer, - const PaStreamCallbackTimeInfo* timeInfo, - PaStreamCallbackFlags statusFlags, - void *userData ) -{ - sbsmsplayer *player = (sbsmsplayer*)userData; - float *out = (float*)outputBuffer; - int channels = player->channels; - unsigned long pos = 0; - long ret = player->isStarted()?1:0; - long chunk = framesPerBuffer; - while(posreadframe(out+pos*channels,chunk); - pos += ret; - } - if(!ret) { - memset(out+pos*channels,0,sizeof(float)*chunk*channels); - } - return paContinue; -} - -sbsmsplayer :: sbsmsplayer() -{ - init(); - bLinear = false; -} - -void sbsmsplayer :: init() -{ - rb = NULL; - fbuf = NULL; - abuf = NULL; - nullBuf = NULL; - sbsmsIn = NULL; - Fs = 44100; - sbsms_init(4096); - PaError err; - err = Pa_Initialize(); - if( err != paNoError ) abort(); - frameOffset = 0; - bPlaying = false; - bStarted = false; - bOpen = false; - stream = NULL; - bWriteThread = false; - pthread_mutex_init(&playMutex, NULL); - pthread_mutex_init(&writeMutex, NULL); - playPos = 0; - stopPos = 0; - volume = 0.9f; - rate = 1.0f; - ratio = 1.0f; -} - -sbsmsplayer :: sbsmsplayer(const char *filenameIn, real stretch0, real stretch1, real ratio0, real ratio1) -{ - init(); - si.stretch0 = stretch0; - si.stretch1 = stretch1; - si.ratio0 = ratio0; - si.ratio1 = ratio1; - bLinear = true; - open(filenameIn); -} - -sbsmsplayer :: ~sbsmsplayer() -{ - PaError err; - err = Pa_Terminate(); - if( err != paNoError ) abort(); -} - -void sbsmsplayer :: writeframe() -{ - long n_towrite = 0; - long n_todrop = 0; - if(pthread_mutex_lock(&writeMutex) == 0) { - frameSize = pitch_process(abuf, blockSize, pitch); - n_towrite = frameSize; - n_todrop = 0; - if(frameOffset) { - n_todrop = min(frameOffset,frameSize); - frameOffset -= n_todrop; - n_towrite -= n_todrop; - } - - pthread_mutex_unlock(&writeMutex); - if(n_towrite) { - audio_convert_from(fbuf,0,abuf+n_todrop,0,n_towrite); - if(channels==1) { - for(int k=0;kwrite(fbuf,n_towrite); - } - } - -} - -bool sbsmsplayer :: play() -{ - if(!bOpen) return false; - if(isPlaying()) { - return false; - } - bDonePlaying = false; - bPlaying = true; - stopPos = samplesOut; - int rc = pthread_create(&writeThread, NULL, writeThreadCB, (void*)this); - if(rc) { - fprintf(stderr,"ERROR; return code from pthread_create() is %d\n", rc); - exit(-1); - } - bWriteThread = true; - while(!rb->isFull()) { - Pa_Sleep(64); - } - bStarted = true; - return true; -} - -bool sbsmsplayer :: pause() -{ - if(!isPlaying()) - return false; - if(pthread_mutex_lock(&playMutex) == 0) { - stopPos = playPos; - pthread_mutex_unlock(&playMutex); - } - if(bWriteThread) { - pthread_join(writeThread,NULL); - bWriteThread = false; - } - bStarted = false; - bPlaying = false; - setPos(getPos()); - return true; -} - -void sbsmsplayer :: close() -{ - if(rb) { delete rb; rb = NULL; } - if(fbuf) { free(fbuf); fbuf = NULL; } - if(abuf) { free(abuf); abuf = NULL; } - if(nullBuf) { free(nullBuf); nullBuf = NULL; } - if(sbsmsIn) { fclose(sbsmsIn); sbsmsIn = NULL; } - - if(stream) { - PaError err; - err = Pa_StopStream( stream ); - if( err != paNoError ) abort(); - err = Pa_CloseStream( stream ); - if( err != paNoError ) abort(); - stream = NULL; - } - vSamples.clear(); - vSampleOffset.clear(); - vByteOffset.clear(); - bOpen = false; - bPlaying = false; - bStarted = false; -} - -bool sbsmsplayer :: open(const char *filenameIn) -{ - sbsmsIn = sbsms_open_read(filenameIn); - if(!sbsmsIn) { - printf("Cannot open file %s\n",filenameIn); - return false; - } - - samplesToProcess = sbsms_get_samples_to_process(sbsmsIn); - framesToProcess = sbsms_get_frames_to_process(sbsmsIn); - channels = sbsms_get_channels(sbsmsIn); - quality = sbsms_get_quality(sbsmsIn); - rb = new AudioBuffer(Fs/2,channels); - bDonePlaying = false; - - if(bLinear) { - real stretch2; - if(si.stretch0 == si.stretch1) - stretch2 = 1.0/si.stretch0; - else - stretch2 = log(si.stretch1/si.stretch0)/(si.stretch1-si.stretch0); - samplesOut = (long)(samplesToProcess * stretch2); - si.samplesToProcess = samplesToProcess; - si.samplesToGenerate = samplesOut; - sbsmser = sbsms_create(sbsmsIn,&stretchCBLinear,&ratioCBLinear); - } else { - samplesOut = samplesToProcess; - si.stretch0 = 1.0f; - si.ratio0 = 1.0f; - sbsmser = sbsms_create(sbsmsIn,&stretchCBConstant,&ratioCBConstant); - readFooter(sbsmsIn); - } - sbsms_seek_start_data(sbsmsIn); - pitch = pitch_create(sbsmser,&si,1.0); - - fbuf = (float*)calloc(SBSMS_MAX_FRAME_SIZE[quality]*2,sizeof(float)); - abuf = (audio*)calloc(SBSMS_MAX_FRAME_SIZE[quality],sizeof(audio)); - nullBuf = (float*)calloc(SBSMS_MAX_FRAME_SIZE[quality]*2,sizeof(float)); - - blockSize = SBSMS_FRAME_SIZE[quality]; - - bOpen = true; - playPos = 0; - frameOffset = 0; - - PaError err; - PaStreamParameters outputParameters; - outputParameters.device = Pa_GetDefaultOutputDevice(); - outputParameters.channelCount = channels; - outputParameters.sampleFormat = paFloat32; - outputParameters.suggestedLatency = .1; - outputParameters.hostApiSpecificStreamInfo = NULL; - - PaStreamFlags flags = paNoFlag; - - err = Pa_OpenStream( &stream, - NULL, - &outputParameters, - Fs, - blockSize, - flags, - audioCB, - this); - - if( err != paNoError ) { - printf("pa error %d\n",err); - exit(-1); - } - - err = Pa_StartStream( stream ); - - if( err != paNoError ) { - printf("pa error %d\n",err); - exit(-1); - } - - setRate(rate); - setRatio(ratio); - - return true; -} - -long sbsmsplayer :: readframe(float *buf, long n) -{ - long ret = 0; - if(pthread_mutex_lock(&playMutex) == 0) { - ret = rb->read(buf,n); - playPos += ret; - if(playPos >= stopPos) { - bPlaying = false; - bDonePlaying = true; - } - pthread_mutex_unlock(&playMutex); - } - return ret; -} - -bool sbsmsplayer :: isStarted() -{ - return bStarted; -} - -bool sbsmsplayer :: isPlaying() -{ - return bPlaying; -} - -bool sbsmsplayer :: isDonePlaying() -{ - return bDonePlaying; -} - -real sbsmsplayer :: getPos() -{ - real pos = 0.0f; - if(pthread_mutex_lock(&playMutex) == 0) { - pos = (real)playPos/(real)samplesOut; - pthread_mutex_unlock(&playMutex); - } - return pos; -} - -real sbsmsplayer :: getTime() -{ - real t = 0.0f; - if(pthread_mutex_lock(&playMutex) == 0) { - t = (real)playPos/(real)Fs; - pthread_mutex_unlock(&playMutex); - } - - return t; -} - -void sbsmsplayer :: readFooter(FILE *fp) -{ - long frames = sbsms_get_frames_to_process(fp); - long footerFrameSize = 2*sizeof(long); - long footerSize = frames*footerFrameSize; - fseek(fp,-footerSize,SEEK_END); - long samplesAcc = 0; - for(int k=0;k=samplesToProcess) samplePos = samplesToProcess-1; - long i = vSampleOffset.size()>>1; - long imin = 0; - long imax = (long)vSampleOffset.size()-1; - bool bDone = false; - do { - bDone = (i==0 || i==(long)vSampleOffset.size()-1 || - (vSampleOffset[i]<=samplePos && vSampleOffset[i+1] > samplePos)); - if(!bDone) { - if(vSampleOffset[i] < samplePos) { - imin = i; - if(imin+1==imax) - i = imax; - else - i = (imin+imax)>>1; - } else { - imax = i; - if(imin+1==imax) - i = imin; - else - i = (imin+imax)>>1; - } - } - } while(!bDone); - return i; -} - -bool sbsmsplayer :: setPos(real pos) -{ - if(isPlaying()) - return false; - - bDonePlaying = false; - bStarted = false; - if(bOpen) { - long samplePos = (long)(pos*samplesToProcess); - long i = getFrameIndexForSamplePos(samplePos); - if(bWriteThread) { - pthread_join(writeThread,NULL); - bWriteThread = false; - } - sbsms_seek(sbsmser,i,vSampleOffset[i]); - fseek(sbsmsIn,vByteOffset[i],SEEK_SET); - real stretch = 1.0f; - if(pthread_mutex_lock(&writeMutex) == 0) { - stretch = 1.0f/si.stretch0; - frameOffset = (long)(stretch*(real)(samplePos - vSampleOffset[i])); - pthread_mutex_unlock(&writeMutex); - } - if(pthread_mutex_lock(&playMutex) == 0) { - samplesOut =(long)(samplesToProcess*stretch); - stopPos = samplesOut; - playPos = (long)(pos*samplesToProcess*stretch); - pthread_mutex_unlock(&playMutex); - } - } - return true; -} - -void sbsmsplayer :: setLength() -{ - real stretch = 1.0f; - long nFramesQueued = 0; - long nSamplesQueued = 0; - long nSamplesReadable = 0; - long inputFrameSize = 0; - long framePos = 0; - if(pthread_mutex_lock(&writeMutex) == 0) { - stretch = 1.0f/si.stretch0; - nFramesQueued = sbsms_get_frames_queued(sbsmser); - nSamplesQueued = pitch_get_samples_queued(pitch); - nSamplesReadable = rb->n_readable(); - inputFrameSize = sbsms_get_last_input_frame_size(sbsmser); - framePos = sbsms_get_frame_pos(sbsmser); - pthread_mutex_unlock(&writeMutex); - } - - long nSamplesLeft = (long)((samplesToProcess-(framePos+nFramesQueued)*inputFrameSize)*stretch); - long newSamplesOut = playPos + nSamplesReadable + nSamplesQueued + nSamplesLeft; - if(pthread_mutex_lock(&playMutex) == 0) { - samplesOut = newSamplesOut; - stopPos = newSamplesOut; - pthread_mutex_unlock(&playMutex); - } -} - -real sbsmsplayer :: getDuration() -{ - return (real)(samplesOut)/(real)(Fs); -} - -void sbsmsplayer :: setVolume(real vol) -{ - this->volume = vol; -} - -void sbsmsplayer :: setRate(real rate) -{ - this->rate = rate; - if(pthread_mutex_lock(&writeMutex) == 0) { - this->si.stretch0 = rate; - pthread_mutex_unlock(&writeMutex); - } - setLength(); -} - -void sbsmsplayer :: setRatio(real ratio) -{ - this->ratio = ratio; - if(pthread_mutex_lock(&writeMutex) == 0) { - this->si.ratio0 = ratio; - this->si.ratio1 = ratio; - pthread_mutex_unlock(&writeMutex); - } -} - -real sbsmsplayer :: getVolume() -{ - return volume; -} - -real sbsmsplayer :: getRate() -{ - return rate; -} - -real sbsmsplayer :: getRatio() -{ - return ratio; -} - -#endif diff --git a/lib-src/sbsms/src/play.h b/lib-src/sbsms/src/play.h deleted file mode 100644 index b9d6f9de8..000000000 --- a/lib-src/sbsms/src/play.h +++ /dev/null @@ -1,95 +0,0 @@ -#include "config.h" -#ifdef HAVE_PORTAUDIO - -#ifndef SBSMSPLAY_H -#define SBSMSPLAY_H - -#include "portaudio.h" -#include "audio.h" -#include "utils.h" -#include -#include "audiobuffer.h" -#include -#include "sbsms.h" -#include -using namespace std; - -class sbsmsplayer { - public: - sbsmsplayer(); - sbsmsplayer(const char *filenameIn, real stretch0, real stretch1, real ratio0, real ratio1); - ~sbsmsplayer(); - - bool play(); - bool pause(); - void close(); - bool open(const char *filename); - real getPos(); - bool setPos(real pos); - real getTime(); - real getDuration(); - void setVolume(real vol); - void setRate(real rate); - void setRatio(real ratio); - real getVolume(); - real getRate(); - real getRatio(); - void readFooter(FILE *fp); - long getFrameIndexForSamplePos(long samplePos); - long readframe(float *buf, long n); - bool isPlaying(); - bool isStarted(); - bool isDonePlaying(); - void writeframe(); - - int channels; - AudioBuffer *rb; - sbsms *sbsmser; - pitcher *pitch; - - protected: - void setLength(); - real ratio; - real volume; - real rate; - long playPos; - long stopPos; - long frameSize; - long frameOffset; - long samplesToProcess; - long framesToProcess; - long samplesOut; - - bool bWriteThread; - bool bOpen; - bool bStarted; - bool bPlaying; - bool bDonePlaying; - bool bLinear; - - FILE *sbsmsIn; - void init(); - PaStream *stream; - int quality; - int Fs; - pthread_t writeThread; - - - pthread_mutex_t playMutex; - pthread_mutex_t writeMutex; - - vector vByteOffset; - vector vSampleOffset; - vector vSamples; - - long blockSize; - float *fbuf; - audio *abuf; - float *nullBuf; - sbsmsInfo si; -}; - - -#endif - -#endif diff --git a/lib-src/sbsms/src/resample.cpp b/lib-src/sbsms/src/resample.cpp index f3ea4e54d..32af63904 100644 --- a/lib-src/sbsms/src/resample.cpp +++ b/lib-src/sbsms/src/resample.cpp @@ -5,10 +5,12 @@ #include "sincCoeffs.h" #include "real.h" #include "utils.h" +#include +using namespace std; -using namespace _sbsms_; +namespace _sbsms_ { -#define SBSMS_RESAMPLE_CHUNK_SIZE ((long)8192) +#define SBSMS_RESAMPLE_CHUNK_SIZE 8192L Resampler :: Resampler(sbsms_resample_cb cb, void *data) { @@ -224,3 +226,5 @@ Resampler :: ~Resampler() { delete out; } + +} diff --git a/lib-src/sbsms/src/sbsms.cpp b/lib-src/sbsms/src/sbsms.cpp index 7a5d4c329..67d129e93 100644 --- a/lib-src/sbsms/src/sbsms.cpp +++ b/lib-src/sbsms/src/sbsms.cpp @@ -16,19 +16,29 @@ #include #endif -using namespace _sbsms_; +namespace _sbsms_ { -real SBSMS_P1 = 2.0f; -real SBSMS_Q1 = (4.0f/3.0f); -int SBSMS_FRAME_SIZE[SBSMS_QUALITIES] = {512,512,512}; -int SBSMS_BANDS[SBSMS_QUALITIES] = {7,7,7}; -int SBSMS_MAX_FRAME_SIZE[SBSMS_QUALITIES] = {SBSMS_MAX_STRETCH*512,SBSMS_MAX_STRETCH*512,SBSMS_MAX_STRETCH*512}; -int SBSMS_H[SBSMS_QUALITIES][5] = {{8,12,16,24,32},{6,8,8,8,12},{4,6,8,12,16}}; -int SBSMS_M_MAX[SBSMS_QUALITIES] = {64,64,64}; -int SBSMS_RES[SBSMS_QUALITIES][SBSMS_MAX_BANDS] = {{1,1,1,2,2,1,1}, {1,1,2,2,1,2,1}, {1,1,2,2,2,2,1}}; -real SBSMS_PAD[SBSMS_QUALITIES][SBSMS_MAX_BANDS] = {{2,2,4,4,4,4,4},{2,2,4,4,4,4,6},{4,4,4,4,4,6}}; -int SBSMS_N[SBSMS_QUALITIES][SBSMS_MAX_BANDS] = {{384,384,576,480,384,288,252},{384,384,576,480,384,288,336},{768,768,576,480,384,288,288}}; +const sbsms_quality sbsms_quality_standard = { + 512,6400,0.08f,12.5f,7,64, + {6,8,8,8,12}, + {384,384,576,480,384,288,336,NULL}, + {4,4,4,4,4,4,4,NULL}, + {1,1,2,2,1,2,1,NULL}, + {2.00f,2.00f,4.00f,4.00f,4.00f,4.00f,6.00f,NULL}, + {2.00f,2.00f,2.00f,2.00f,2.00f,2.00f,2.00f,NULL}, + {0.75f,0.75f,0.75f,0.75f,0.75f,0.75f,0.75f,NULL} +}; +const sbsms_quality sbsms_quality_fast = { + 512,6400,0.08f,12.5f,7,64, + {6,8,8,8,12}, + {192,192,288,240,192,144,168,NULL}, + {4,4,4,4,4,4,4,NULL}, + {1,1,2,2,1,2,1,NULL}, + {2.00f,2.00f,2.00f,2.00f,2.00f,2.00f,3.00f,NULL}, + {2.00f,2.00f,2.00f,2.00f,2.00f,2.00f,2.00f,NULL}, + {0.50f,0.50f,0.75f,0.75f,0.75f,0.75f,0.75f,NULL} +}; #ifdef MULTITHREADED @@ -301,10 +311,7 @@ void sbsms_init(int n) { void sbsms_private_init(sbsms *sbsmser, bool bAnalyze, bool bSynthesize) { - sbsmser->bufsize = SBSMS_MAX_FRAME_SIZE[sbsmser->quality]; - sbsmser->chunksize = SBSMS_FRAME_SIZE[sbsmser->quality]; - sbsmser->n_postpad = LONG_MAX; - sbsmser->ina = make_audio_buf(sbsmser->bufsize); + sbsmser->ina = make_audio_buf(sbsmser->quality.maxoutframesize); sbsms_init_threads(sbsmser,bAnalyze,bSynthesize); } @@ -313,12 +320,13 @@ void sbsms_reset(sbsms *sbsmser) sbsmser->ta->init(); sbsmser->n_processed = 0; sbsmser->bWritingComplete = false; + if(sbsmser->getSamplesCB) { - sbsmser->n_prepad = SBSMS_N[sbsmser->quality][SBSMS_BANDS[sbsmser->quality]-1]*SBSMS_M_MAX[sbsmser->quality]; - sbsmser->n_prespent = SBSMS_N[sbsmser->quality][SBSMS_BANDS[sbsmser->quality]-1]/SBSMS_H[sbsmser->quality][2]/2; + sbsmser->n_prepad = sbsmser->quality.N[sbsmser->quality.bands-1] * sbsmser->quality.M_MAX; + sbsmser->n_prespent = sbsmser->quality.N[sbsmser->quality.bands-1] / sbsmser->quality.H[2] / 2; } else { - sbsmser->n_prepad = SBSMS_N[sbsmser->quality][SBSMS_BANDS[sbsmser->quality]-1]/SBSMS_H[sbsmser->quality][2]/2; - sbsmser->n_prespent = SBSMS_N[sbsmser->quality][SBSMS_BANDS[sbsmser->quality]-1]/SBSMS_H[sbsmser->quality][2]/2; + sbsmser->n_prepad = 0; + sbsmser->n_prespent = 0; } sbsmser->top->reset(); } @@ -329,7 +337,7 @@ void sbsms_seek(sbsms *sbsmser, long framePos, long samplePos) sbsmser->top->seek(framePos); } -sbsms* sbsms_create(FILE *fp, sbsms_stretch_cb getStretchCB, sbsms_ratio_cb getRatioCB) +sbsms* sbsms_create(FILE *fp, sbsms_rate_cb getRateCB, sbsms_pitch_cb getPitchCB) { sbsms *sbsmser = (sbsms*) calloc(1,sizeof(sbsms)); // samples, frames @@ -338,33 +346,33 @@ sbsms* sbsms_create(FILE *fp, sbsms_stretch_cb getStretchCB, sbsms_ratio_cb getR fread(&samples,sizeof(long),1,fp); fread(&frames,sizeof(long),1,fp); fread(&(sbsmser->channels),sizeof(int),1,fp); - fread(&(sbsmser->quality),sizeof(int),1,fp); + fread(&(sbsmser->quality),sizeof(sbsms_quality),1,fp); unsigned short maxtrackindex; fread(&maxtrackindex,sizeof(unsigned short),1,fp); sbsmser->fp = fp; sbsmser->getSamplesCB = NULL; - sbsmser->getStretchCB = getStretchCB; - sbsmser->getRatioCB = getRatioCB; + sbsmser->getRateCB = getRateCB; + sbsmser->getPitchCB = getPitchCB; sbsmser->ta = new TrackAllocator(false,maxtrackindex); sbsmser->pa = new PeakAllocator(); - sbsmser->top = new subband(NULL,1,sbsmser->channels,sbsmser->quality,2,false,sbsmser->ta,sbsmser->pa); + sbsmser->top = new subband(NULL,1,sbsmser->channels,&sbsmser->quality,2,false,sbsmser->ta,sbsmser->pa); sbsmser->top->setFramesInFile(frames); sbsms_private_init(sbsmser,false,false); sbsms_reset(sbsmser); return sbsmser; } -sbsms* sbsms_create(sbsms_cb getSamplesCB, sbsms_stretch_cb getStretchCB, sbsms_ratio_cb getRatioCB, int channels, int quality, bool bPreAnalyze, bool bSynthesize) +sbsms* sbsms_create(sbsms_cb getSamplesCB, sbsms_rate_cb getRateCB, sbsms_pitch_cb getPitchCB, int channels, sbsms_quality *quality, bool bPreAnalyze, bool bSynthesize) { sbsms *sbsmser = (sbsms*) calloc(1,sizeof(sbsms)); sbsmser->channels = channels; - sbsmser->quality = quality; + sbsmser->quality = *quality; sbsmser->getSamplesCB = getSamplesCB; - sbsmser->getStretchCB = getStretchCB; - sbsmser->getRatioCB = getRatioCB; + sbsmser->getRateCB = getRateCB; + sbsmser->getPitchCB = getPitchCB; sbsmser->ta = new TrackAllocator(true); sbsmser->pa = new PeakAllocator(); - sbsmser->top = new subband(NULL,1,sbsmser->channels,sbsmser->quality,6,bPreAnalyze,sbsmser->ta,sbsmser->pa); + sbsmser->top = new subband(NULL,1,sbsmser->channels,&sbsmser->quality,6,bPreAnalyze,sbsmser->ta,sbsmser->pa); sbsms_private_init(sbsmser,true,bSynthesize); sbsms_reset(sbsmser); return sbsmser; @@ -390,34 +398,27 @@ void sbsms_pre_analyze_complete(sbsms *sbsmser) long sbsms_pre_analyze(sbsms_cb getSamplesCB, void *data, sbsms *sbsmser) { long n_towrite = 0; - real stretch = (sbsmser->getStretchCB)(sbsmser->n_processed,data); - real ratio = (sbsmser->getRatioCB)(sbsmser->n_processed,data); - real a = 1.0/(ratio*stretch); + real rate = (sbsmser->getRateCB)(sbsmser->n_processed,data); + real pitch = (sbsmser->getPitchCB)(sbsmser->n_processed,data); + real a = 1.0f/rate; if(sbsmser->n_prepad) { a = 1.0; - n_towrite = min(sbsmser->chunksize,sbsmser->n_prepad); + n_towrite = min(sbsmser->quality.inframesize,sbsmser->n_prepad); memset(sbsmser->ina,0,n_towrite*sizeof(audio)); sbsmser->n_prepad -= n_towrite; } else { - n_towrite = getSamplesCB(sbsmser->ina,sbsmser->chunksize,data); + n_towrite = getSamplesCB(sbsmser->ina,sbsmser->quality.inframesize,data); sbsmser->n_processed += n_towrite; if(n_towrite == 0) { - if(sbsmser->n_postpad) { - n_towrite = min(sbsmser->chunksize,sbsmser->n_postpad); - memset(sbsmser->ina,0,n_towrite*sizeof(audio)); - sbsmser->n_postpad -= n_towrite; - } - } - if(n_towrite==0) { - sbsmser->bWritingComplete = true; - sbsmser->top->writingComplete(); + n_towrite = sbsmser->quality.inframesize; + memset(sbsmser->ina,0,n_towrite*sizeof(audio)); } } - return sbsmser->top->preAnalyze(sbsmser->ina, n_towrite, a, ratio); + return sbsmser->top->preAnalyze(sbsmser->ina, n_towrite, a, pitch); } -long sbsms_read_frame(audio *buf, void *data, sbsms *sbsmser, real *ratio0, real *ratio1) +long sbsms_read_frame(audio *buf, void *data, sbsms *sbsmser, real *pitch0, real *pitch1) { long n_read = 0; long n_write = 0; @@ -426,16 +427,16 @@ long sbsms_read_frame(audio *buf, void *data, sbsms *sbsmser, real *ratio0, real #endif do { - real stretch = (sbsmser->getStretchCB)(sbsmser->n_processed,data); - real ratio = (sbsmser->getRatioCB)(sbsmser->n_processed,data); - real a = 1.0/(ratio*stretch); + real rate = (sbsmser->getRateCB)(sbsmser->n_processed,data); + real pitch = (sbsmser->getPitchCB)(sbsmser->n_processed,data); + real a = 1.0f/rate; if(sbsmser->n_prespent) { - n_read = sbsmser->top->read(NULL, ratio0, ratio1); + n_read = sbsmser->top->read(NULL, pitch0, pitch1); if(n_read) sbsmser->n_prespent--; n_read = 0; } else { - n_read = sbsmser->top->read(buf, ratio0, ratio1); + n_read = sbsmser->top->read(buf, pitch0, pitch1); } n_write = 0; @@ -449,46 +450,34 @@ long sbsms_read_frame(audio *buf, void *data, sbsms *sbsmser, real *ratio0, real if(n_read == 0) { #ifdef MULTITHREADED if(!sbsmser->top->isWriteReady()) { - pthread_mutex_lock(&threadData->writeMutex); - pthread_cond_wait(&threadData->writeCond,&threadData->writeMutex); - pthread_mutex_unlock(&threadData->writeMutex); + pthread_mutex_lock(&threadData->writeMutex); + pthread_cond_wait(&threadData->writeCond,&threadData->writeMutex); + pthread_mutex_unlock(&threadData->writeMutex); } #endif long n_towrite = 0; if(sbsmser->getSamplesCB) { - if(sbsmser->n_prepad) { - a = 1.0; - n_towrite = min(sbsmser->chunksize,sbsmser->n_prepad); - memset(sbsmser->ina,0,n_towrite*sizeof(audio)); - sbsmser->n_prepad -= n_towrite; - } else { - n_towrite = (sbsmser->getSamplesCB)(sbsmser->ina,sbsmser->chunksize,data); - sbsmser->n_processed += n_towrite; - if(n_towrite == 0) { - if(sbsmser->n_postpad) { - n_towrite = min(sbsmser->chunksize,sbsmser->n_postpad); - memset(sbsmser->ina,0,n_towrite*sizeof(audio)); - sbsmser->n_postpad -= n_towrite; - } - } - if(n_towrite==0) { - sbsmser->bWritingComplete = true; - sbsmser->top->writingComplete(); - } - } - n_write = sbsmser->top->write(sbsmser->ina, n_towrite, a, ratio); + if(sbsmser->n_prepad) { + a = 1.0; + n_towrite = min(sbsmser->quality.inframesize,sbsmser->n_prepad); + memset(sbsmser->ina,0,n_towrite*sizeof(audio)); + sbsmser->n_prepad -= n_towrite; + } else { + n_towrite = (sbsmser->getSamplesCB)(sbsmser->ina,sbsmser->quality.inframesize,data); + sbsmser->n_processed += n_towrite; + if(n_towrite == 0) { + n_towrite = sbsmser->quality.inframesize; + memset(sbsmser->ina,0,n_towrite*sizeof(audio)); + } + } + n_write = sbsmser->top->write(sbsmser->ina, n_towrite, a, pitch); } else { - if(sbsmser->n_prepad) { - n_write = sbsmser->top->zeroPad(); - sbsmser->n_prepad--; - } else { - n_write = sbsmser->top->readFromFile(sbsmser->fp, a, ratio); - sbsmser->n_processed += n_write; - if(n_write == 0) { - sbsmser->bWritingComplete = true; - sbsmser->top->writingComplete(); - } - } + n_write = sbsmser->top->readFromFile(sbsmser->fp, a, pitch); + sbsmser->n_processed += n_write; + if(n_write == 0) { + sbsmser->bWritingComplete = true; + sbsmser->top->writingComplete(); + } } } #ifdef MULTITHREADED @@ -513,6 +502,7 @@ long sbsms_read_frame(audio *buf, void *data, sbsms *sbsmser, real *ratio0, real pthread_mutex_unlock(&threadData->assignMutex); } #endif + if(sbsmser->bWritingComplete && !sbsmser->top->isframe_readable() && sbsmser->top->getFramesAtBack() == 0) { @@ -531,9 +521,9 @@ long sbsms_write_frame(FILE *fp, void *data, sbsms *sbsmser) #endif do { - real stretch = (sbsmser->getStretchCB)(sbsmser->n_processed,data); - real ratio = (sbsmser->getRatioCB)(sbsmser->n_processed,data); - real a = 1.0/(ratio*stretch); + real rate = (sbsmser->getRateCB)(sbsmser->n_processed,data); + real pitch = (sbsmser->getPitchCB)(sbsmser->n_processed,data); + real a = 1.0f/rate; n_tofile = sbsmser->top->getFramesWrittenToFile(); @@ -548,32 +538,27 @@ long sbsms_write_frame(FILE *fp, void *data, sbsms *sbsmser) if(n_tofile == 0) { #ifdef MULTITHREADED if(!sbsmser->top->isWriteReady()) { - pthread_mutex_lock(&threadData->writeMutex); - pthread_cond_wait(&threadData->writeCond,&threadData->writeMutex); - pthread_mutex_unlock(&threadData->writeMutex); + pthread_mutex_lock(&threadData->writeMutex); + pthread_cond_wait(&threadData->writeCond,&threadData->writeMutex); + pthread_mutex_unlock(&threadData->writeMutex); } #endif if(sbsmser->top->isWriteReady()) { - long n_towrite = 0; - if(sbsmser->n_prepad) { - a = 1.0; - n_towrite = min(sbsmser->chunksize,sbsmser->n_prepad); - memset(sbsmser->ina,0,n_towrite*sizeof(audio)); - sbsmser->n_prepad -= n_towrite; - } else { - n_towrite = (sbsmser->getSamplesCB)(sbsmser->ina,sbsmser->chunksize,data); - sbsmser->n_processed += n_towrite; - if(n_towrite == 0) { - if(sbsmser->n_postpad) { - n_towrite = min(sbsmser->chunksize,sbsmser->n_postpad); - memset(sbsmser->ina,0,n_towrite*sizeof(audio)); - sbsmser->n_postpad -= n_towrite; - } - } - if(!sbsmser->n_postpad) - sbsmser->top->writingComplete(); - } - n_write = sbsmser->top->write(sbsmser->ina, n_towrite, a, ratio); + long n_towrite = 0; + if(sbsmser->n_prepad) { + a = 1.0; + n_towrite = min(sbsmser->quality.inframesize,sbsmser->n_prepad); + memset(sbsmser->ina,0,n_towrite*sizeof(audio)); + sbsmser->n_prepad -= n_towrite; + } else { + n_towrite = (sbsmser->getSamplesCB)(sbsmser->ina,sbsmser->quality.inframesize,data); + sbsmser->n_processed += n_towrite; + if(n_towrite == 0) { + n_towrite = sbsmser->quality.inframesize; + memset(sbsmser->ina,0,n_towrite*sizeof(audio)); + } + } + n_write = sbsmser->top->write(sbsmser->ina, n_towrite, a, pitch); } } #ifdef MULTITHREADED @@ -625,10 +610,9 @@ FILE *sbsms_open_write(const char *fileName, sbsms *sbsmser, long samples_to_pro long nframes = 0; fwrite(&nframes,sizeof(long),1,fp); fwrite(&(sbsmser->channels),sizeof(int),1,fp); - fwrite(&(sbsmser->quality),sizeof(int),1,fp); + fwrite(&(sbsmser->quality),sizeof(sbsms_quality),1,fp); unsigned short maxtrackindex = 0; fwrite(&maxtrackindex,sizeof(unsigned short),1,fp); - sbsmser->top->fp = fp; return fp; } @@ -666,20 +650,19 @@ long sbsms_get_channels(FILE *fp) return channels; } -long sbsms_get_quality(FILE *fp) + +void sbsms_get_quality(FILE *fp, sbsms_quality *quality) { //samples, frames, channels long offset = 2*sizeof(long) + sizeof(int); fseek(fp,offset,SEEK_SET); - int quality; - fread(&quality,sizeof(int),1,fp); - return quality; + fread(quality,sizeof(sbsms_quality),1,fp); } void sbsms_seek_start_data(FILE *fp) { // samples, frames, channels, quality, maxtrackindex - long offset = 2*sizeof(long) + 2*sizeof(int) + sizeof(unsigned short); + long offset = 2*sizeof(long) + sizeof(int) + sizeof(sbsms_quality) + sizeof(unsigned short); fseek(fp,offset,SEEK_SET); } @@ -708,38 +691,56 @@ long sbsms_get_frame_pos(sbsms *sbsmser) return sbsmser->top->getFramePos(); } -real stretchCBLinear(long nProcessed, void *userData) +real rateCBLinear(long nProcessed, void *userData) { sbsmsInfo *si = (sbsmsInfo*) userData; real t0 = (real)nProcessed/(real)si->samplesToProcess; - real stretch = si->stretch0 + (si->stretch1-si->stretch0)*t0; - return stretch; + if(t0 > 1.0) t0 = 1.0; + real rate = si->rate0 + (si->rate1-si->rate0)*t0; + return rate; } -real stretchCBConstant(long nProcessed, void *userData) +real rateCBConstant(long nProcessed, void *userData) { sbsmsInfo *si = (sbsmsInfo*) userData; - return si->stretch0; + return si->rate0; } -real ratioCBLinear(long nProcessed, void *userData) +long getLinearOutputSamples(sbsmsInfo *si) +{ + real s; + if(si->rate0 == si->rate1) { + s = 1.0f / si->rate0; + } else { + s = log(si->rate1/si->rate0)/(si->rate1-si->rate0); + } + return (long) (s * si->samplesToProcess); +} + +real pitchCBLinear(long nProcessed, void *userData) { sbsmsInfo *si = (sbsmsInfo*) userData; + real t0 = (real)nProcessed/(real)si->samplesToProcess; - real stretch = si->stretch0 + (si->stretch1-si->stretch0)*t0; - real t1; - if(stretch == si->stretch0) - t1 = 1.0/stretch; + if(t0 > 1.0f) t0 = 1.0f; + + real rate = si->rate0 + (si->rate1-si->rate0)*t0; + real stretch; + if(rate == si->rate0) + stretch = 1.0/rate; else - t1 = log(stretch/si->stretch0)/(stretch-si->stretch0); + stretch = log(rate/si->rate0)/(rate-si->rate0); + real t1 = stretch * (real)nProcessed/(real)si->samplesToGenerate; + if(t1 > 1.0f) t1 = 1.0f; - real ratio = si->ratio0 + (si->ratio1-si->ratio0)*t1*(real)nProcessed/(real)si->samplesToGenerate; - - return ratio; + real pitch = si->pitch0 + (si->pitch1-si->pitch0)*t1; + return pitch; } -real ratioCBConstant(long nProcessed, void *userData) +real pitchCBConstant(long nProcessed, void *userData) { sbsmsInfo *si = (sbsmsInfo*) userData; - return si->ratio0; + return si->pitch0; +} + } diff --git a/lib-src/sbsms/src/sms.cpp b/lib-src/sbsms/src/sms.cpp index cde71252c..32a7046fe 100644 --- a/lib-src/sbsms/src/sms.cpp +++ b/lib-src/sbsms/src/sms.cpp @@ -3,20 +3,20 @@ #include #include "sms.h" #include "buffer.h" -#include "defs.h" -#include "limits.h" +#include using namespace std; namespace _sbsms_ { #define SMS_BUF_SIZE 4096 -sms :: sms(int N, unsigned short M, unsigned short M_MAX, int res, int latency, real p, real q, real pad, int Nlo, int channels, TrackAllocator *ta, PeakAllocator *pa) { +sms :: sms(int N, unsigned short M, unsigned short M_MAX, int res, int latency, real p, real q, real pad, int Nlo, int channels, TrackAllocator *ta, PeakAllocator *pa) +{ this->N = N; this->M = M; Nover2 = N/2; this->p = 1.0/p; - this->q = q; + this->q = 1.0/q; this->res = res; this->m = (real)M/(real)M_MAX; this->channels = channels; @@ -29,64 +29,57 @@ sms :: sms(int N, unsigned short M, unsigned short M_MAX, int res, int latency, // Phase lock channels bPhaseLock = 0; - // Stitch bands together - bStitch = 1; - // Threshold (relative to maximum magnitude) for finding peaks + // Threshold (relative to max magnitude) for finding peaks peakThresh = .000005; // Threshold (in trackpoint units) for starting a track startThresh = 8.0*sqrt(pad/(real)N) * peakThresh; - // Maximum figure of merit for continuing a track (see merit) + // Max figure of merit for continuing a track (see merit) maxMerit2 = square(.11); - // Maximum differency in frequency for continuing a track + // Max differency in frequency for continuing a track maxDF2 = square(.08); // Coefficient for dB magnitude changes in figure of merit for continuing a track dMCoeff = 0.01; - // Maximum increase in dB for continuing a track + // Max increase in dB for continuing a track maxdBIncr = (12.0 - 6.0*m); - // Maximum difference in dB for stitching two subband tracks together + // Max difference in dB for stitching two subband tracks together maxdBIncrStitch = (12.0 - 6.0*m); - // Maximum figure of merit for matching tracks for phase locking + // Max figure of merit for matching tracks for phase locking maxMerit2PhaseLock = square(.01); - // Maximum differene in frequency for matching tracks for phase locking + // Max differene in frequency for matching tracks for phase locking maxDF2PhaseLock = square(.005); // Coefficient for dB magnitude changes in figure of merit for phase locking dMCoeffPhaseLock = 0.0005; - // Maximum figure of merit for matching peaks for band stitching + // Max figure of merit for matching peaks for band stitching maxMerit2Match = square(.08); - // Maximum difference in frequency for matching peaks for band stitching + // Max difference in frequency for matching peaks for band stitching maxDF2Match = square(.04); // Coefficient for dB magnitude changes in figure of merit for band stitching dMCoeffMatch = 0.02; - // Minimum number of trackpoints in a track for synthesis + // Min number of trackpoints in a track for synthesis minNpts = 4; - // Maximum width of a peak for determining spectral energy + // Max width of a peak for determining spectral energy peakWidth = 2*((round2int(pad*(real)N/96.0)+1)/2); // Beginning and end of band if(terminal) kStart = 1; else kStart = N/4-(int)(0.5*round2int((real)peakWidth*(real)N/(real)Nlo)+6); if(M==1) kEnd = N/2; else kEnd = N/2-peakWidth; - // Maximum frequency for matching peaks for band stitching - maxFMatch = (0.5*kEnd+8.0)*TWOPI/(real)N; - // Minimum frequency for matching peaks for band stitching - minFMatch = (2.0*kStart-16.0)*TWOPI/(real)N; - // Minimum ratio of peak "top" to total peak energy + // Max frequency for matching peaks for band stitching + maxFMatch = (0.5*kEnd+5.0)*TWOPI/(real)N; + // Min frequency for matching peaks for band stitching + minFMatch = (2.0*kStart-10.0)*TWOPI/(real)N; + // Min ratio of peak "top" to total peak energy minPeakTopRatio = 0.05; - // Minimum ratio of low frequency resolution/high frequency resolution peaks for determining peaks + // Min ratio of low frequency resolution/high frequency resolution peaks for determining peaks // Ratio for favoring continuing a track in local band over stitching to another band localFavorRatio = 1.1; - // Maximum ratio of (peak energy given to other peaks) to (peak energy) + // Max ratio of (peak energy given to other peaks) to (peak energy) maxDecRatio = 1.5; // Normalization from spectrum energy to peak amplitude - if(SBSMS_WINDOW == SBSMS_HANN) - mNorm = 1.0/6.0 * pad * square(8.0 / (real)(N)); - else if(SBSMS_WINDOW == SBSMS_HAMMING) - mNorm = 0.18141196440283 * pad * square(8.0 / (real)(N)); - else - abort(); + mNorm = 1.0/6.0 * pad * square(8.0 / (real)(N)); - // maximum magnitude (for determining peaks) + // max magnitude (for determining peaks) magmax = 0; assigntime[0] = 0; @@ -110,18 +103,18 @@ sms :: sms(int N, unsigned short M, unsigned short M_MAX, int res, int latency, trackPointListBuffer[0] = new TrackPointListBuffer(); trackPointListBuffer[1] = new TrackPointListBuffer(); - h2cum = 0; + h2cum = 0.0f; sines2 = new SampleBuf(0); outMixer = sines2; - x0[0] = grain :: create(N,1,SBSMS_WINDOW); - x0[1] = grain :: create(N,1,SBSMS_WINDOW); + x0[0] = grain :: create(N,1); + x0[1] = grain :: create(N,1); - x1[0] = grain :: create(N,1,SBSMS_WINDOW); - x1[1] = grain :: create(N,1,SBSMS_WINDOW); + x1[0] = grain :: create(N,1); + x1[1] = grain :: create(N,1); - x2[0] = grain :: create(N,1,SBSMS_WINDOW); - x2[1] = grain :: create(N,1,SBSMS_WINDOW); + x2[0] = grain :: create(N,1); + x2[1] = grain :: create(N,1); bPeakSet = false; @@ -179,7 +172,7 @@ void sms :: reset() marktime[1] = 0; currtime = 0; synthtime = 0; - h2cum = 0; + h2cum = 0.0f; samplePos = 0; for(int c=0;cclear(); } - -//1/65535 -#define LOG_MIN (-11.09033963005365f) -//4 -#define LOG_MAX 1.38629436111989f +#define LOG_MIN -16.0f +#define LOG_MAX 0.0f unsigned short sms :: encodeRealLog(real x) { @@ -474,11 +464,12 @@ long sms :: addTrackPoints(grain *g0, grain *g1, grain *g2) return 1; } -real sms :: merit(trackpoint *tp0, trackpoint *tp1, real m0, real m1, real dti2, real dMCoeff, real *df, real maxDF2) +inline real sms :: merit(trackpoint *tp0, trackpoint *tp1, real m0, real m1, real dti2, real dMCoeff, real *df, real maxDF2) { (*df) = m1*tp1->f - m0*tp0->f; real df2 = square(*df); if(df2 > maxDF2) return df2; + if(tp0->y==0.0f || tp1->y==0.0f) return df2; real dM = dBApprox((m1*tp1->y)/(m0*tp0->y)); return (df2+square(dMCoeff*dM)); } @@ -508,22 +499,14 @@ bool sms :: nearestTrackPoint(tplist *tpl, trackpoint *tp0, real m0, real m1, re bool sms :: contTrack(track *t, trackpoint *tp, int c) { - bool allowCont = true; - trackpoint *last = t->back(); - real dbIncr = dBApprox(tp->y/last->y); #ifdef MULTITHREADED pthread_mutex_lock(&trackMutex[c]); #endif - if(dbIncr > maxdBIncr) { - tp->y0 = last->y; - t->push_back(tp); - } else { - t->push_back(tp); - } + t->push_back(tp); #ifdef MULTITHREADED pthread_mutex_unlock(&trackMutex[c]); #endif - return allowCont; + return true; } bool sms :: adoptTrack(track *precursor, @@ -540,24 +523,13 @@ bool sms :: adoptTrack(track *precursor, #ifdef MULTITHREADED pthread_mutex_unlock(&lender->trackMutex[c]); #endif - real dbIncr = dBApprox((m*tp->y)/last->y); - - bool bDiscont; - if(dbIncr > maxdBIncrStitch) { - bDiscont = true; - } else { - bDiscont = false; - } if(tp->M>last->M) { if(dt==1.0) { if(lender->res==2) { trackpoint *tp0 = new trackpoint(); tp0->h = tp->h*2/lender->res; tp0->y = 0.5*tp->y; - if(bDiscont) - tp0->y0 = last->y; - else - tp0->y0 = tp0->y; + tp0->y0 = tp0->y; tp0->f = 0.5*tp->f; tp0->ph = tp->ph; tp0->time = last->time+1; @@ -600,8 +572,6 @@ bool sms :: adoptTrack(track *precursor, pthread_mutex_unlock(&lender->trackMutex[c]); #endif t->startTrack(tp0,false); - if(bDiscont) - tp->y0 = 2.0*last->y; t->push_back(tp); addTrack(c,t); } @@ -610,10 +580,6 @@ bool sms :: adoptTrack(track *precursor, trackpoint *tpend0 = new trackpoint(); trackpoint *tpend1 = new trackpoint(); trackpoint *tp0 = new trackpoint(); - - if(bDiscont) - tp->y0 = 2.0*last->y; - tp0->h = (last->h*lender->res)/2; tp0->y = 0; tp0->y0 = 0; @@ -657,9 +623,6 @@ bool sms :: adoptTrack(track *precursor, } else { track *t = ta->create(precursor,this,res); - if(bDiscont) - tp->y0 = 0.5f*last->y; - trackpoint *tp0 = new trackpoint(); trackpoint *tpend = new trackpoint(); @@ -764,7 +727,7 @@ void sms :: markDuplicatesLo(long offset, sms *lo, long offsetlo, int c) } } - if(trackPointsL1 && bStitch) { + if(trackPointsL1) { for(tplist::reverse_iterator tpi = trackPointsL1->rbegin(); tpi!=trackPointsL1->rend(); tpi++) { @@ -1025,7 +988,7 @@ long sms :: assignTrackPoints_(long offset, sms *hi, sms *lo, real dtlo, long of else (*tpi)->cont = NULL; } - if(trackPointsL1 && bStitch) { + if(trackPointsL1) { for(tplist::reverse_iterator tpi = trackPointsL1->rbegin(); tpi!=trackPointsL1->rend(); tpi++) { @@ -1039,7 +1002,7 @@ long sms :: assignTrackPoints_(long offset, sms *hi, sms *lo, real dtlo, long of } } - if(trackPointsH1 && bStitch) { + if(trackPointsH1) { for(tplist::iterator tpi = trackPointsH1->begin(); tpi!=trackPointsH1->end(); tpi++) { @@ -1066,8 +1029,7 @@ long sms :: assignTrackPoints_(long offset, sms *hi, sms *lo, real dtlo, long of tplist::iterator minH0; bool minH0Set = nearestTrackPoint(trackPointsH1,*tpi,1.0,2.0,1.0,&minH0,&FH0,maxMerit2,maxDF2); if(minM0Set && - (!bStitch - ||(FM0<=FH0 && FM0<=FL0) + ((FM0<=FH0 && FM0<=FL0) ||(minL0Set && FL0<=FH0 && FL0<=FM0 && (*minL0)->dup[1-offsetlo] == (*minM0)) ||(minH0Set && FH0<=FL0 && FH0<=FM0 && (*minH0)->dup[1] == (*minM0))) ) { @@ -1079,14 +1041,14 @@ long sms :: assignTrackPoints_(long offset, sms *hi, sms *lo, real dtlo, long of (*tpi)->contF = FM0; (*tpi)->cont = *minM0; nToCont++; - } else if(bStitch && minL0Set && FL0<=FM0 && FL0<=FH0) { + } else if(minL0Set && FL0<=FM0 && FL0<=FH0) { if(minM0Set && (*minL0)->dup[1-offsetlo] == (*minM0)) { (*tpi)->dupcont = *minM0; } (*tpi)->contF = FL0; (*tpi)->cont = *minL0; nToCont++; - } else if(bStitch && minH0Set && FH0<=FM0 && FH0<=FL0) { + } else if(minH0Set && FH0<=FM0 && FH0<=FL0) { if(minM0Set && (*minH0)->dup[1] == (*minM0)) { (*tpi)->dupcont = *minM0; } @@ -1403,7 +1365,7 @@ void sms :: phaseLock(trackpoint *tp0, trackpoint *tp1, long time) tp1->f = f; } -void sms :: synthTracks(real a) +void sms :: synthTracks(real a, real f0, real f1) { #ifdef MULTITHREADED pthread_mutex_lock(&dataMutex); @@ -1413,6 +1375,12 @@ void sms :: synthTracks(real a) pthread_mutex_unlock(&dataMutex); #endif real h2 = (a*(real)h1); + real fScale0, fScale1; + real mScale; + h2 *= (real)M; + mScale = 1.0f / (real)M; + fScale0 = f0 * mScale; + fScale1 = f1 * mScale; h2cum += h2; int h2i = round2int(h2cum); h2cum -= h2i; @@ -1433,23 +1401,22 @@ void sms :: synthTracks(real a) pthread_mutex_lock(&trackMutex[c]); #endif for(list::iterator tt=trax[c]->begin(); - tt!=trax[c]->end(); ) { + tt!=trax[c]->end(); ) { track *t = (*tt); if(t->end <= synthtime) { - if(!t->descendant||t->descendant->isDone()) { - list::iterator eraseMe = tt; - tt++; - trax[c]->erase(eraseMe); - ta->destroy(t); - } else { - tt++; - } + if(!t->descendant||t->descendant->isDone()) { + list::iterator eraseMe = tt; + tt++; + trax[c]->erase(eraseMe); + ta->destroy(t); + } else { + tt++; + } } else if(synthtime >= t->start) { - trackpoint *tp = t->getTrackPoint(synthtime); - t->synth(sines2,sines2->writePos,c,synthtime,h2i); - tt++; + t->synth(sines2,sines2->writePos,c,synthtime,h2i,fScale0,fScale1,mScale); + tt++; } else { - break; + break; } } #ifdef MULTITHREADED @@ -1512,13 +1479,13 @@ void sms :: advance(long n) } void sms :: c2evenodd(grain *eo, grain *even, grain *odd) { - _c2evenodd(eo->freq, even->freq, odd->freq, eo->N); + _c2evenodd(eo->x, even->x, odd->x, eo->N); } void sms :: calcmags(real *mag, grain *g, real q) { real q2 = 1.0/q; for(int k=0;k<=Nover2;k++) { - real m = norm2(g->freq[k])*q2; + real m = norm2(g->x[k])*q2; mag[k] = m; if(magmax < m) magmax = m; } @@ -1629,7 +1596,7 @@ void sms :: adjustPeaks(list &peaks, if(k0 < tp->x) { real m0 = ((mag2[k0])+(mag2[k0+1]))*(1.0-kf0); m += m0; - mtop += max(0.0f,(m0 - mbase)*(1.0-kf0)); + mtop += max(0.0,(m0 - mbase)*(1.0-kf0)); } else { real m0 = ((mag2[k0])+(mag2[k0+1])); m += m0; @@ -1642,14 +1609,14 @@ void sms :: adjustPeaks(list &peaks, if(k2 < tn->x) { real m0 = ((mag2[k2-1])+(mag2[k2])); m += m0; - mtop += max(0.0,m0 - mbase); + mtop += max(0.0f,m0 - mbase); m0 = ((mag2[k2])+(mag2[k2+1]))*kf2; m += m0; mtop += max(0.0f,(m0 - mbase)*kf2); } else { real m0 = ((mag2[k2-1])+(mag2[k2]))*(1.0-kf2); m += m0; - mtop += max(0.0f,(m0 - mbase)*(1.0-kf2)); + mtop += max(0.0,(m0 - mbase)*(1.0-kf2)); } for(int k=k0+1;k peaks; - list troughs1; - list troughs2; + peak* trough1 = NULL; + peak* trough2 = NULL; peak *t0 = pa->create(); t0->k = 1; @@ -1853,7 +1820,7 @@ void sms :: extractTrackPoints(grain *g, t1->tn = NULL; t1->tn2 = NULL; - troughs2.push_back(t0); + trough2 = t0; int k00=0; int k01=Nover2-1; @@ -1863,34 +1830,36 @@ void sms :: extractTrackPoints(grain *g, for(int k=1;k thmin) - && - (mag2[k] > mag2[k-1]) - && - (mag2[k] >= mag2[k+1]) - ) { + && + (mag2[k] > mag2[k-1]) + && + (mag2[k] >= mag2[k+1]) + ) { + kp = k; if(k>=kStart-peakWidth && k<=kEnd+peakWidth) { - peak *p = makePeak(mag1,mag2,k); - p->tn2 = t1; - if(!troughs1.empty() && troughs1.back()->tn == NULL) { - p->tp = troughs1.back(); - troughs1.back()->tn = p; - } - if(!troughs2.empty() && troughs2.back()->tn2 == NULL) { - p->tp2 = troughs2.back(); - troughs2.back()->tn2 = p; - } - peaks.push_back(p); + peak *p = makePeak(mag1,mag2,k); + p->tn2 = t1; + if(trough1 && trough1->tn == NULL) { + p->tp = trough1; + trough1->tn = p; + } + if(trough2 && trough2->tn2 == NULL) { + p->tp2 = trough2; + trough2->tn2 = p; + } + peaks.push_back(p); } } else if((mag2[k] <= mag2[k-1]) - && - (mag2[k] <= mag2[k+1]) - ) { + && + (mag2[k] <= mag2[k+1]) + ) { + peak *p = makePeak(mag1,mag2,k); - troughs2.push_back(p); + trough2 = p; if(!peaks.empty()) { - peaks.back()->tn2 = p; - p->tp2 = peaks.back(); + peaks.back()->tn2 = p; + p->tp2 = peaks.back(); } } if((mag0[k] <= mag0[k-1]) @@ -1898,23 +1867,23 @@ void sms :: extractTrackPoints(grain *g, (mag0[k] <= mag0[k+1]) ) { if(peaks.empty()) - k00 = k; + k00 = k; if(kp <= kEnd) - k01 = k; + k01 = k; } if((mag1[k] <= mag1[k-1]) && (mag1[k] <= mag1[k+1]) ) { if(peaks.empty()) - k10 = k; + k10 = k; if(kp <= kEnd) - k11 = k; + k11 = k; peak *p = makePeak(mag1,mag1,k); - troughs1.push_back(p); + trough1 = p; if(!peaks.empty() && peaks.back()->tn == NULL) { - peaks.back()->tn = p; - p->tp = peaks.back(); + peaks.back()->tn = p; + p->tp = peaks.back(); } } } diff --git a/lib-src/sbsms/src/sms.h b/lib-src/sbsms/src/sms.h index 1df4ee5bf..c827d551e 100644 --- a/lib-src/sbsms/src/sms.h +++ b/lib-src/sbsms/src/sms.h @@ -16,7 +16,9 @@ using namespace std; namespace _sbsms_ { +class renderer; class sms : public SampleBufBase { + friend class renderer; public: sms(int N, unsigned short M, unsigned short M_MAX, int res, int latency, real p, real q, real pad, int Nlo, int channels, TrackAllocator *ta, PeakAllocator *pa); void reset(); @@ -29,7 +31,7 @@ class sms : public SampleBufBase { void markDuplicates(long offset, sms *hi, sms *lo, int c); bool connectTrackPoints(trackpoint *tp0, trackpoint *tp1, sms *hi, sms *lo, real dtlo, int c); bool adoptTrack(track *precursor, sms *lender, trackpoint *tp, real m, real dt, int c); - void synthTracks(real a); + void synthTracks(real a, real f0, real f1); void advanceTrackPoints(int c); long nTrackPoints(); long read(audio *out, long n); @@ -41,8 +43,6 @@ class sms : public SampleBufBase { bool bPhaseLock; - bool bStitch; - bool bConserveEnergy; int res; int N; unsigned short M; diff --git a/lib-src/sbsms/src/subband.cpp b/lib-src/sbsms/src/subband.cpp index 43d450299..5f62fd206 100644 --- a/lib-src/sbsms/src/subband.cpp +++ b/lib-src/sbsms/src/subband.cpp @@ -2,6 +2,8 @@ #include "real.h" #include "sbsms.h" #include "utils.h" +#include +using namespace std; namespace _sbsms_ { @@ -42,26 +44,24 @@ bool subband :: isSynthReady() return synthInit(false)?true:false; } -subband :: subband(subband *parent, unsigned short M, int channels, int quality, int latency, bool bPreAnalyze, TrackAllocator *ta, PeakAllocator *pa) +subband :: subband(subband *parent, unsigned short M, int channels, sbsms_quality *quality, int latency, bool bPreAnalyze, TrackAllocator *ta, PeakAllocator *pa) { + this->quality = quality; this->ta = ta; this->pa = pa; - this->fp = NULL; - int k = ilog2(M); this->channels = channels; - this->quality = quality; this->parent = parent; - this->N = SBSMS_N[quality][k]; + this->N = quality->N[k]; this->M = M; - this->s = SBSMS_S; - this->res = SBSMS_RES[quality][k]; - real pad = SBSMS_PAD[quality][k]; - if(Ms = quality->S[k]; + this->res = quality->res[k]; + real pad = quality->pad[k]; + if(MM_MAX) sub = new subband(this,M*2,channels,quality,latency,bPreAnalyze,ta,pa); else sub = NULL; - int Nlo = sub?SBSMS_N[quality][k+1]:0; + int Nlo = sub?quality->N[k+1]:0; nGrainsPerFrame = res; if(sub) nGrainsPerFrame *= sub->nGrainsPerFrame; @@ -75,37 +75,36 @@ subband :: subband(subband *parent, unsigned short M, int channels, int quality, init(); // sms - in0 = new GrainBuf(N, h, pad*SBSMS_P1, SBSMS_WINDOW); - in1 = new GrainBuf(N, h, pad, SBSMS_WINDOW); - in2 = new GrainBuf(N, h, pad/SBSMS_Q1, SBSMS_WINDOW); + in0 = new GrainBuf(N, h, pad*quality->P[k]); + in1 = new GrainBuf(N, h, pad); + in2 = new GrainBuf(N, h, pad*quality->Q[k]); // synthesize - smser = new sms(N,(short)M,(short)(SBSMS_M_MAX[quality]),res,latency,SBSMS_P1,SBSMS_Q1,pad,Nlo,channels,ta,pa); + smser = new sms(N,(short)M,(short)quality->M_MAX,res,latency,quality->P[k],quality->Q[k],pad,Nlo,channels,ta,pa); if(!parent && bPreAnalyze) { this->bPreAnalyze = true; - inPre = new GrainBuf(N, h, 2, SBSMS_WINDOW); - x1[0] = grain :: create(N,pad,SBSMS_WINDOW); - x1[1] = grain :: create(N,pad,SBSMS_WINDOW); - x2[0] = grain :: create(N,pad,SBSMS_WINDOW); - x2[1] = grain :: create(N,pad,SBSMS_WINDOW); + inPre = new GrainBuf(N, h, 2); + x1[0] = grain :: create(N,pad); + x1[1] = grain :: create(N,pad); + x2[0] = grain :: create(N,pad); + x2[1] = grain :: create(N,pad); } else { this->bPreAnalyze = false; inPre = NULL; } if(sub) { - subOut = new GrainBuf(N, N/s, 1, SBSMS_HANN); - usSubOut = new SampleBuf(2*N); + subOut = new SampleBuf(0); // receive - in = new GrainBuf(N, N/s, 1, SBSMS_HANN); + in = new GrainBuf(N, N/s, 1); // samples to sub subIn = new SampleBuf(N/2); // output samples - outMixer = new Mixer(smser,usSubOut); + outMixer = new Mixer(smser,subOut); } else { outMixer = smser; } @@ -141,6 +140,7 @@ void subband :: reset() { outputFrameSize.clear(); aForH.clear(); aSynth.clear(); + fSynth.clear(); frameRatio.clear(); in0->clear(); in1->clear(); @@ -149,23 +149,19 @@ void subband :: reset() { in->clear(); subIn->clear(); subOut->clear(); - usSubOut->clear(); } smser->reset(); } void subband :: init() { - int ssms = (N*nGrainsPerFrame)/(resTotal*SBSMS_H[quality][2]); + int ssms = (N*nGrainsPerFrame)/(resTotal*quality->H[2]); h = N/ssms; - lastInputFrameSize = h*nGrainsPerFrame; - lastFrameA = 1.0; - lastFrameRatio = 1.0; - + lastFrameA = 1.0f; + lastFrameRatio = 1.0f; nLatency = nLatencyOriginal; - - nToDrop = (SBSMS_N[quality][SBSMS_BANDS[quality]-1]/SBSMS_H[quality][2]*nGrainsPerFrame-ssms)/2; + nToDrop = (quality->N[quality->bands-1]/quality->H[2]*nGrainsPerFrame-ssms)/2; nDropped = 0; nFramesSkipped = 0; nFramesWritten = 0; @@ -212,7 +208,6 @@ subband :: ~subband() delete in; delete subIn; delete subOut; - delete usSubOut; delete outMixer; } } @@ -228,21 +223,22 @@ void subband :: setFrameSize(int iFrameSize, real a, real ratio) lastInputFrameSize = iFrameSize; lastOutputFrameSize = oFrameSizei; samplesQueued += oFrameSizei * ratio; + //samplesQueued += oFrameSizei; } void subband :: setH(real ratio) { real a = aForH.read(aForH.readPos); if(a > 4.0) - h = SBSMS_H[quality][0]; + h = quality->H[0]; else if(a > 2.0 && a <= 4.0) - h = SBSMS_H[quality][1]; + h = quality->H[1]; else if(a >= 0.5 && a <= 2.0) - h = SBSMS_H[quality][2]; + h = quality->H[2]; else if(a >= 0.25 && a < 0.5) - h = SBSMS_H[quality][3]; + h = quality->H[3]; else - h = SBSMS_H[quality][4]; + h = quality->H[4]; h = (h*resTotal)/nGrainsPerFrame; in0->h = h; @@ -267,6 +263,12 @@ void subband :: setA(real a) lastFrameA = a; } +void subband :: setF(real f) +{ + fSynth.write(f); + if(sub) sub->setF(f); +} + void subband :: setAMod(real a) { aMod.write(a); @@ -298,20 +300,17 @@ void subband :: write_(audio *inBuf, long n, real a, real ratio) nDropped++; } else { if(!parent && nTrackPointsWritten%nGrainsPerFrame == 0) { - if(bPreAnalyze) { - if(aPreAnalysis.n_readable()) { - real aMod = aPreAnalysis.read(aPreAnalysis.readPos); - setAMod(aMod); - setA(1.0f+aMod*(a-1.0f)); - aPreAnalysis.advance(1); - } else { - setAMod(1.0f); - setA(a); - } + real amod; + if(bPreAnalyze && aPreAnalysis.n_readable()) { + amod = aPreAnalysis.read(aPreAnalysis.readPos); + aPreAnalysis.advance(1); } else { - setA(a); + amod = 1.0f; } + setA(1.0f+amod*(a-1.0f)); + setAMod(amod); setRatio(ratio); + setF(1.0f/ratio); } if(!parent && (nTrackPointsWritten+1)%nGrainsPerFrame == 0) { setAForH(a); @@ -376,7 +375,9 @@ void subband :: stepSynthFrame() #ifdef MULTITHREADED pthread_mutex_lock(&dataMutex); #endif + if(!parent) aMod.advance(1); aSynth.advance(1); + fSynth.advance(1); nFramesSynthed++; #ifdef MULTITHREADED pthread_mutex_unlock(&dataMutex); @@ -472,9 +473,9 @@ void subband :: markDuplicates(int c) long ndone = 0; while(ndonemarkDuplicates(nTrackPointsMarked[c], - parent?parent->smser:NULL, - sub?sub->smser:NULL, - c); + parent?parent->smser:NULL, + sub?sub->smser:NULL, + c); if(nTrackPointsMarked[c]%res==1 || res==1) { if(sub) sub->markDuplicates(c); } @@ -496,11 +497,11 @@ long subband :: assignInit(bool bSet, int c) nTrackPointsToAssign[c] = n; if(nTrackPointsToAssign[c]) { if(nFramesAssigned[c]==0) { - smser->assignTrackPoints(nTrackPointsAssigned[c]++, - parent?parent->smser:NULL, - sub?sub->smser:NULL, - c); - smser->startNewTracks(nTrackPointsStarted[c]++,c); + smser->assignTrackPoints(nTrackPointsAssigned[c]++, + parent?parent->smser:NULL, + sub?sub->smser:NULL, + c); + smser->startNewTracks(nTrackPointsStarted[c]++,c); } } } @@ -518,19 +519,19 @@ long subband :: assignTrackPoints(int c) if(nTrackPointsAssigned[c]%res==0) { if(sub) sub->assignTrackPoints(c); smser->assignTrackPoints(nTrackPointsAssigned[c]++, - parent?parent->smser:NULL, - sub?sub->smser:NULL, - c); + parent?parent->smser:NULL, + sub?sub->smser:NULL, + c); if(!parent) startNewTracks(c); } else { smser->assignTrackPoints(nTrackPointsAssigned[c]++, - parent?parent->smser:NULL, - sub?sub->smser:NULL, - c); + parent?parent->smser:NULL, + sub?sub->smser:NULL, + c); } if(parent && parent->res != 1) parent->smser->startNewTracks(parent->nTrackPointsStarted[c]++,c); - + ndone++; } @@ -628,6 +629,7 @@ void subband :: readTrackPointsFromFile(FILE *fp) } } + long subband :: writeTrackPointsToFile(FILE *fp) { long ntodo = parent?1:nTrackPointsToSynth; @@ -669,6 +671,12 @@ void subband :: synthTracks() pthread_mutex_lock(&dataMutex); #endif real a = aSynth.read(aSynth.readPos); + real f0 = fSynth.read(fSynth.readPos); + real f1; + if(fSynth.n_readable()>=2) + f1 = fSynth.read(fSynth.readPos+1); + else + f1 = f0; #ifdef MULTITHREADED pthread_mutex_unlock(&dataMutex); #endif @@ -677,8 +685,9 @@ void subband :: synthTracks() while(ndonesynthTracks(); - smser->synthTracks(a); + if(sub) sub->synthTracks(); + real df = (f1-f0)/(real)nTrackPointsToSynth; + smser->synthTracks(a,f0+nTrackPointsSynthed*df,f0+(nTrackPointsSynthed+1)*df); nTrackPointsSynthed++; ndone++; } @@ -690,24 +699,11 @@ void subband :: readSubSamples() if(sub) { audio fromSub[SUB_BUF_SIZE]; long n_fromsub = 0; - do { n_fromsub = min((long)SUB_BUF_SIZE,sub->n_readable()); n_fromsub = sub->read(fromSub,n_fromsub); - //write samples to grains subOut->write(fromSub, n_fromsub); } while(n_fromsub>0); - - // upsample grains to samples - long ng_read_subOut = 0; - for(int k=subOut->readPos;kwritePos;k++) { - ng_read_subOut++; - int h = 2*N/s; - grain *gup = subOut->read(k)->upsample(); - usSubOut->write(gup,h); - grain :: destroy(gup); - } - subOut->advance(ng_read_subOut); } } @@ -767,9 +763,11 @@ long subband :: readFromFile(FILE *fp, real a, real ratio) stepAssignFrame(c); samples += framesize; #ifdef MULTITHREADED - pthread_mutex_lock(&dataMutex); + pthread_mutex_lock(&dataMutex); #endif setA(1.0f+amod*(a-1.0f)); + setAMod(amod); + setF(1.0f/ratio); setRatio(ratio); setFrameSize(framesize,a,ratio); #ifdef MULTITHREADED @@ -783,7 +781,7 @@ void subband :: writeFramePositionsToFile(FILE *fp) { long frames = 0; // samples, frames, channels, quality - long offset = 2*sizeof(long) + 2*sizeof(int); + long offset = 2*sizeof(long) + sizeof(int) + sizeof(sbsms_quality); unsigned short maxtrackindex = ta->size(); fseek(fp,offset,SEEK_SET); fwrite(&maxtrackindex,sizeof(unsigned short),1,fp); offset += sizeof(unsigned short); @@ -838,13 +836,7 @@ long subband :: writeTracksToFile(FILE *fp) return 0; } int framesize = inputFrameSize.read(nFramesSynthed); - real amod; - if(aMod.n_readable()) { - amod = aMod.read(aMod.readPos); - aMod.advance(1); - } else { - amod = 1.0f; - } + real amod = aMod.read(aMod.readPos); #ifdef MULTITHREADED pthread_mutex_unlock(&dataMutex); #endif @@ -858,7 +850,8 @@ long subband :: writeTracksToFile(FILE *fp) } bytes += writeTrackPointsToFile(fp); frameBytes.write(bytes); - + frameRatio.advance(1); + outputFrameSize.advance(1); return samples; } @@ -1021,7 +1014,7 @@ long subband :: read(audio *buf, real *ratio0, real *ratio1) pthread_mutex_unlock(&dataMutex); #endif if(buf) { - stepReadFrame(); + stepReadFrame(); } n = read(buf, n); } else { @@ -1202,15 +1195,15 @@ void subband :: calculateA(long kstart, long kend) real subband :: calculateOnset(grain *g1, grain *g2) { - _c2evenodd(g2->freq, x2[0]->freq, x2[1]->freq, g2->N); + _c2evenodd(g2->x, x2[0]->x, x2[1]->x, g2->N); real o = 1.0f; if(g1!=NULL) { int Nover2 = N/2; int nOnset = 0; int nThresh = 0; for(int k=0;kfreq[k]) + norm2(x2[1]->freq[k]); - real m1 = norm2(x1[0]->freq[k]) + norm2(x1[1]->freq[k]); + real m2 = norm2(x2[0]->x[k]) + norm2(x2[1]->x[k]); + real m1 = norm2(x1[0]->x[k]) + norm2(x1[1]->x[k]); bool bThresh = (m2 > 1e-6); bool bOnset = (m2 > 2.0f*m1) && bThresh; if(bOnset) nOnset++; @@ -1221,8 +1214,8 @@ real subband :: calculateOnset(grain *g1, grain *g2) else o = (real)nOnset/(real)nThresh; } - memcpy(x1[0]->freq,x2[0]->freq,g2->N*sizeof(audio)); - memcpy(x1[1]->freq,x2[1]->freq,g2->N*sizeof(audio)); + memcpy(x1[0]->x,x2[0]->x,g2->N*sizeof(audio)); + memcpy(x1[1]->x,x2[1]->x,g2->N*sizeof(audio)); return o; } diff --git a/lib-src/sbsms/src/subband.h b/lib-src/sbsms/src/subband.h index 619ac204e..4b4e34edf 100644 --- a/lib-src/sbsms/src/subband.h +++ b/lib-src/sbsms/src/subband.h @@ -13,9 +13,12 @@ namespace _sbsms_ { +class renderer; + class subband { + friend class renderer; public: - subband(subband *parent, unsigned short M, int channels, int quality, int latency, bool bPreAnalysis, TrackAllocator *ta, PeakAllocator *pa); + subband(subband *parent, unsigned short M, int channels, sbsms_quality *quality, int latency, bool bPreAnalysis, TrackAllocator *ta, PeakAllocator *pa); ~subband(); long write(audio *buf, long n, real a, real ratio); @@ -64,6 +67,7 @@ class subband { void setAMod(real a); void setAForH(real a); void setH(real ratio); + void setF(real f); void setFrameSize(int inputSize, real a, real ratio); void setRatio(real ratio); void setFramesInFile(long frames); @@ -98,11 +102,12 @@ class subband { TrackAllocator *ta; PeakAllocator *pa; - + RingBuffer aPreAnalysis; RingBuffer aMod; RingBuffer aSynth; RingBuffer aForH; + RingBuffer fSynth; RingBuffer inputFrameSize; RingBuffer outputFrameSize; RingBuffer frameRatio; @@ -118,7 +123,7 @@ class subband { real lastFrameRatio; real totalSizef; bool bPreAnalyze; - int quality; + sbsms_quality *quality; int channels; int N; int h; @@ -156,11 +161,10 @@ class subband { subband *parent; subband *sub; GrainBuf *in0,*in1,*in2; - SampleBuf *usSubOut; SampleBufBase *outMixer; sms *smser; SampleBuf *subIn; - GrainBuf *subOut; + SampleBuf *subOut; GrainBuf *in; GrainBuf *inPre; diff --git a/lib-src/sbsms/src/test.cpp b/lib-src/sbsms/src/test.cpp deleted file mode 100644 index 7fb9d3b4a..000000000 --- a/lib-src/sbsms/src/test.cpp +++ /dev/null @@ -1,76 +0,0 @@ -#include -#include -#include -#include -#include "convert.h" - -#include - -bool progressCB(int percent, const char *msg, void *data) { - static int lastPercent = 0; - if (lastPercent != percent) { - printf("\r%s: %3i%% [%-40s] ", msg, percent>100?100:percent, &"||||||||||||||||||||||||||||||||||||||||"[40 - ((percent>100)?40:(2*percent/5))] ); - lastPercent = percent; - fflush(stdout); - } - return true; -} - -int main(int argc, char **argv) -{ - if(argc<7) { - printf("usage: sbsms infile<.wav|.aif|.mp3|.sbsms> outfile<.wav|.aif|.mp3|.sbsms> rate-start[0.2:5] rate-end[0.2:5] halfsteps-start[-12:12] halfsteps-end[-12:12] \n"); - exit(-1); - } - float srOut = 44100.0; - - bool bAnalyzeOnly = false; - bool bSynthesizeOnly = false; - char *filenameIn = argv[1]; - char *filenameOut = argv[2]; - - if(strstr(filenameIn,".sbsms")) { - bSynthesizeOnly = true; - } - if(strstr(filenameOut,".sbsms")) { - bAnalyzeOnly = true; - } - if(bAnalyzeOnly && bSynthesizeOnly) { - printf("Can't convert from .sbsms to .sbsms format\n"); - exit(-1); - } - - float stretch0 = atof(argv[3]); - float stretch1 = atof(argv[4]); - float halfsteps0 = atof(argv[5]); - float halfsteps1 = atof(argv[6]); - if(stretch0 < 0.2 || stretch0 > 5) { - printf("rate-start out of bounds\n"); - exit(-1); - } - if(stretch1 < 0.2 || stretch1 > 5) { - printf("rate-end out of bounds\n"); - exit(-1); - } - if(halfsteps0 < -12 || halfsteps0 > 12) { - printf("halfsteps-start out of bounds\n"); - exit(-1); - } - if(halfsteps1 < -12 || halfsteps1 > 12) { - printf("halfsteps-end out of bounds\n"); - exit(-1); - } - - int quality = 1; - if(argc >= 8) quality = atoi(argv[7]); - - bool bPreAnalyze = false; - if(argc >= 9) bPreAnalyze = atoi(argv[8])?true:false; - - real ratio0 = pow(2.0,-halfsteps0/12.0); - real ratio1 = pow(2.0,-halfsteps1/12.0); - - sbsms_init(4096); - sbsms_convert(filenameIn, filenameOut, bAnalyzeOnly, bSynthesizeOnly, bPreAnalyze, quality, progressCB, NULL, stretch0, stretch1, ratio0, ratio1, 1.0f); - printf("\n"); -} diff --git a/lib-src/sbsms/src/testplay.cpp b/lib-src/sbsms/src/testplay.cpp deleted file mode 100644 index 36135401d..000000000 --- a/lib-src/sbsms/src/testplay.cpp +++ /dev/null @@ -1,52 +0,0 @@ -#include "config.h" -#ifdef HAVE_PORTAUDIO - -#include "play.h" -#include -#include -#include - -int main(int argc, char **argv) -{ - if(argc<6) { - printf("usage: sbsmsplay infile.sbsms rate-start[0.2:5] rate-end[0.2:5] halfsteps-start[-12:12] halfsteps-end[-12:12] \n"); - exit(-1); - } - char *filenameIn = argv[1]; - - float stretch0 = atof(argv[2]); - float stretch1 = atof(argv[3]); - float halfsteps0 = atof(argv[4]); - float halfsteps1 = atof(argv[5]); - if(stretch0 < 0.2 || stretch0 > 5) { - printf("rate-start out of bounds\n"); - exit(-1); - } - if(stretch1 < 0.2 || stretch1 > 5) { - printf("rate-end out of bounds\n"); - exit(-1); - } - if(halfsteps0 < -12 || halfsteps0 > 12) { - printf("halfsteps-start out of bounds\n"); - exit(-1); - } - if(halfsteps1 < -12 || halfsteps1 > 12) { - printf("halfsteps-end out of bounds\n"); - exit(-1); - } - - int quality = 1; - if(argc == 7) quality = atoi(argv[6]); - - real ratio0 = pow(2.0,-halfsteps0/12.0); - real ratio1 = pow(2.0,-halfsteps1/12.0); - - sbsmsplayer *player = new sbsmsplayer(filenameIn,stretch0,stretch1,ratio0,ratio1); - player->play(); - while(player->isPlaying()) - Pa_Sleep(100); - player->close(); - delete player; -} - -#endif diff --git a/lib-src/sbsms/src/track.cpp b/lib-src/sbsms/src/track.cpp index b869b19db..df9d8061a 100644 --- a/lib-src/sbsms/src/track.cpp +++ b/lib-src/sbsms/src/track.cpp @@ -4,8 +4,6 @@ #include "real.h" #include "sbsms.h" #include "sms.h" -#include -#include #include using namespace std; @@ -113,7 +111,7 @@ void track :: endTrack(bool bTail) { end = back()->time; if(bTail) { - this->fall = min(1.5f,.25 + back()->y / point[point.size()-2]->y); + this->fall = min(1.5,.25 + back()->y / point[point.size()-2]->y); tailEnd = 1; end++; trackpoint *f = new trackpoint(back()); @@ -122,39 +120,14 @@ void track :: endTrack(bool bTail) } } -real track :: advance(long synthtime, int steps) -{ - long k = synthtime - start; - tpoint *tp0 = point[k]; - tpoint *tp1 = point[k+1]; - real w0 = tp0->f; - real w1 = tp1->f; - real ph0 = tp0->ph; - real ph1 = tp1->ph; - real h = tp0->h; - - real dp = ph1 - ph0; - if(dp>PI) dp-=TWOPI; - else if(dp<-PI) dp+=TWOPI; - real dp0 = 0.5f*h*(w0 + w1); - real deltadp = canon(dp - dp0); - - if(k==0) { - if(precursor) { - m_p = precursor->m_pDescendant; - } else { - deltadp = 0; - } - } - dp = (real)steps/h*(dp0+deltadp); - return dp; -} - void track :: synth(SampleBuf *out, - long writePos, - int c, - long synthtime, - int steps) { + long writePos, + int c, + long synthtime, + int steps, + real fScale0, + real fScale1, + real mScale) { if(point.size()==0) return; long k = synthtime - start; if(k>=(long)point.size()-1) return; @@ -167,68 +140,93 @@ void track :: synth(SampleBuf *out, real w0 = tp0->f; real w1 = tp1->f; - real dp = advance(synthtime,steps); - real dt = (real)steps; - w1 = 2.0f/dt*dp - w0; - real b = (w1 - w0)/(2.0f*dt); + real ph0 = tp0->ph; + real ph1 = tp1->ph; + real h = tp0->h; + + real dp = ph1 - ph0; + if(dp>PI) dp-=TWOPI; + else if(dp<-PI) dp+=TWOPI; + real dp0 = 0.5f*h*(w0 + w1); + real dw = canon(dp - dp0)/h; + + if(k==0) { + if(precursor) { + m_p = precursor->m_pDescendant; + } else { + dw = 0; + } + } + real dt = (real)steps; + w0 = (w0+dw); + w1 = (w1+dw); + w0 = w0*fScale0; + w1 = w1*fScale1; + dp = dt*0.5f*(w0 + w1); + real b = (w1 - w0)/(2.0f*dt); + bool bEnd = (k1==(long)point.size()-1); bool bStart = (k==0); if(bStart && tailStart) { - real ph = m_p; - int rise = round2int(this->rise * (real)steps); - real dm = tp1->y/(real)rise; - real m = tp1->y - dm; - for(int i=steps-1;i>=steps-rise+1;i--) { - ph -= w0; - if(ph>PI) ph -= TWOPI; - else if(ph<-PI) ph += TWOPI; - out->buf[writePos+i][c] += m * COS(ph); - m -= dm; + if(w0 < PI && w0 > -PI) { + real ph = m_p; + int rise = round2int(this->rise * (real)steps); + real dm = mScale*tp1->y/(real)rise; + real m = mScale*tp1->y - dm; + for(int i=steps-1;i>=steps-rise+1;i--) { + ph -= w0; + if(ph<-PI) ph += TWOPI; + else if(ph>PI) ph -= TWOPI; + out->buf[writePos+i][c] += m * COS(ph); + m -= dm; + } } } else if(bEnd && tailEnd) { - real ph = m_p; - int fall = round2int(this->fall * (real)steps); - real dm = tp0->y/(real)fall; - real m = tp0->y; - for(int i=0;ibuf[writePos+i][c] += m * COS(ph); - ph += w0; - if(ph>PI) ph -= TWOPI; - else if(ph<-PI) ph += TWOPI; - m -= dm; + if(w0 < PI && w0 > -PI) { + real ph = m_p; + int fall = round2int(this->fall * (real)steps); + real dm = mScale*tp0->y/(real)fall; + real m = mScale*tp0->y; + for(int i=0;ibuf[writePos+i][c] += m * COS(ph); + ph += w0; + if(ph<-PI) ph += TWOPI; + else if(ph>PI) ph -= TWOPI; + m -= dm; + } } } else { - real m = tp0->y; - real dm; - dm = (tp1->y0 - tp0->y)/dt; + real m = mScale*tp0->y; + real dm = mScale*(tp1->y0 - tp0->y)/dt; real ph = m_p; real b2tt1 = b; real b2 = 2.0f*b; - + real dph; + audio *o = &(out->buf[writePos]); for(int i=0;iPI) ph -= TWOPI; - else if(ph<-PI) ph += TWOPI; + dph = w0 + b2tt1; + if(dph < PI && dph > -PI) (*o)[c] += m * COS(ph); + ph += dph; + if(ph<-PI) ph += TWOPI; + else if(ph>PI) ph -= TWOPI; b2tt1 += b2; m += dm; o++; } - } - //} + if(bEnd) { if(descendant && descendant->back()->M < tp0->M) { - m_pDescendant = canon(m_p + dp/dt*(real)(descendant->owner->samplePos/2 + 0.5f*(descendant->owner->samplePos%2) - owner->samplePos)); + m_pDescendant = canon(m_p + dp/dt*(real)(descendant->owner->samplePos - owner->samplePos)); } } else if(bStart && tailStart) { } else { m_p = canon(m_p + dp); if(descendant && descendant->back()->M > tp0->M && (k1+res==(long)point.size()-1)) { - m_pDescendant = canon(m_p + dp/dt*(real)(descendant->owner->samplePos*2 - (owner->samplePos+steps))); + m_pDescendant = canon(m_p + dp/dt*(real)(descendant->owner->samplePos - (owner->samplePos+steps))); } } } diff --git a/lib-src/sbsms/src/track.h b/lib-src/sbsms/src/track.h index 41996e5db..c938c7d04 100644 --- a/lib-src/sbsms/src/track.h +++ b/lib-src/sbsms/src/track.h @@ -14,8 +14,10 @@ using namespace std; namespace _sbsms_ { class sms; +class renderer; class track { + friend class renderer; public: void endTrack(bool bTail); bool isEnded(); @@ -23,13 +25,15 @@ class track { void startTrack(trackpoint *p, bool bTail); void push_back(trackpoint *p); void push_back_tpoint(tpoint *p); - real advance(long time, int steps); long size(); void synth(SampleBuf *out, - long writePos, - int c, - long synthtime, - int steps); + long writePos, + int c, + long synthtime, + int steps, + real fScale0, + real fScale1, + real mScale); trackpoint *getTrackPoint(long time); bool isStart(long synthtime); bool isEnd(long synthtime); diff --git a/lib-src/sbsms/src/trackpoint.cpp b/lib-src/sbsms/src/trackpoint.cpp index 34d49bfc3..ec7aaa4f7 100644 --- a/lib-src/sbsms/src/trackpoint.cpp +++ b/lib-src/sbsms/src/trackpoint.cpp @@ -4,7 +4,6 @@ #include "track.h" #include "trackpoint.h" #include "grain.h" -#include "defs.h" namespace _sbsms_ { @@ -36,10 +35,10 @@ trackpoint :: trackpoint(grain *g, real x, real y, int N, short M, short h, long int ki = round2int(k); real kf = kifreq[ki][0]) + square(g->freq[ki][1]); + real norm0 = square(g->x[ki][0]) + square(g->x[ki][1]); real ph0; if(norm0 > 0.0f) { - ph0 = atan2(g->freq[ki][1],g->freq[ki][0]); + ph0 = atan2(g->x[ki][1],g->x[ki][0]); } else { ph0 = 0.0f; } @@ -50,9 +49,9 @@ trackpoint :: trackpoint(grain *g, real x, real y, int N, short M, short h, long norm1 = norm0; ph1 = ph0; } else { - norm1 = square(g->freq[ki1][0]) + square(g->freq[ki1][1]); + norm1 = square(g->x[ki1][0]) + square(g->x[ki1][1]); if(norm1 > 0.0f) { - ph1 = atan2(g->freq[ki1][1],g->freq[ki1][0]); + ph1 = atan2(g->x[ki1][1],g->x[ki1][0]); } else { ph1 = 0.0f; } diff --git a/lib-src/sbsms/src/utils.cpp b/lib-src/sbsms/src/utils.cpp index f869c2d6d..0e2e3c143 100644 --- a/lib-src/sbsms/src/utils.cpp +++ b/lib-src/sbsms/src/utils.cpp @@ -1,10 +1,9 @@ #include #include "utils.h" #include "real.h" -#include "defs.h" namespace _sbsms_ { -real *COSTABLE_ = NULL; +int COSSIZE; real *COSTABLE = NULL; real COSFACTOR; @@ -56,12 +55,12 @@ void _c2evenodd(audio *eo, audio *even, audio *odd, int N) } void cosinit(int size) { - COSFACTOR = (real)(size-1)/PI; - if(COSTABLE_) free(COSTABLE_); - COSTABLE_ = (real*)malloc(size*sizeof(real)); + COSSIZE = size; + COSFACTOR = (double)(COSSIZE-1)/PI; + if(COSTABLE) free(COSTABLE); + COSTABLE = (real*)malloc(size*sizeof(real)); for(int k=0;k #include #include namespace _sbsms_ { +#define ONEOVERTWOPI 0.15915494309189533576888376337251f +#define PI 3.1415926535897932384626433832795f +#define TWOPI 6.28318530717958647692528676655900576f + +extern int COSSIZE; extern real COSFACTOR; -extern real *COSTABLE_; extern real *COSTABLE; void cosinit(int size); void _evenodd2c(audio *eo, audio *even, audio *odd, int N); void _c2evenodd(audio *eo, audio *even, audio *odd, int N); -inline real SIN(real x); inline real COS(real x); inline real square(real x); void _c2magphase(audio *g, int N); @@ -26,8 +28,6 @@ inline real canon(real ph); inline real norm(audio x); inline real norm2(audio x); inline real sign(real x); -inline real min(real a, real b); -inline long min(long a, long b); inline real dBApprox(real x); int *factor(int n); void factor(int n, int *f, int m); @@ -44,44 +44,9 @@ inline int ilog2(int x) inline real dBApprox(real x) { - real u = (x-1.0)/(x+1.0); + real u = (x-1.0f)/(x+1.0f); real u2 = u*u; - return 17.37177927613007*u*(1.0 + u2*(0.333333333333333 + u2*(0.2 + u2*0.14285714285714))); -} - -inline real min(real a, real b) -{ - return ((a)<(b)?(a):(b)); -} - -inline real max(real a, real b) -{ - return ((a)>(b)?(a):(b)); -} - -inline long min(long a, long b) -{ - return ((a)<(b)?(a):(b)); -} - -inline long max(long a, long b) -{ - return ((a)>(b)?(a):(b)); -} - -inline int min(int a, int b) -{ - return ((a)<(b)?(a):(b)); -} - -inline int max(int a, int b) -{ - return ((a)>(b)?(a):(b)); -} - -inline real sign(real x) -{ - return x<0?-1:1; + return 17.37177927613007f*u*(1.0f + u2*(0.333333333333333f + u2*(0.2f + u2*0.14285714285714f))); } inline real canon(real ph) @@ -99,11 +64,6 @@ inline real norm(audio x) return sqrt(norm2(x)); } -inline real SIN(real x) -{ - return sin(x); -} - inline real COS(real x) { return COSTABLE[round2int(COSFACTOR*fabsf(x))]; diff --git a/lib-src/sbsms/src/wxconvertdlg.cpp b/lib-src/sbsms/src/wxconvertdlg.cpp deleted file mode 100644 index c416c2b18..000000000 --- a/lib-src/sbsms/src/wxconvertdlg.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include "wxconvertdlg.h" - -#define QUALITY 9998 -#define QUALITYTEXT 9997 -#define PREANALYZE 9996 - -ConvertDialog :: ConvertDialog(wxWindow *parent) : - wxDialog(parent, wxID_ANY, _("Convert"), wxDefaultPosition, wxDefaultSize) -{ - mQualityText = new wxStaticText(this,QUALITYTEXT,_("Quality")); - mQuality = new wxSlider(this,QUALITY,1,0,2); - mPreAnalyze = new wxCheckBox(this,PREANALYZE,_("Pre-Analysis")); - wxBoxSizer *mSizer = new wxBoxSizer(wxVERTICAL); - - wxStdDialogButtonSizer *bs = new wxStdDialogButtonSizer(); - wxButton *b; - b = new wxButton( this, wxID_OK ); - b->SetDefault(); - bs->AddButton( b ); - bs->AddButton( new wxButton( this, wxID_CANCEL ) ); - bs->AddStretchSpacer(); - bs->Realize(); - - mSizer->Add(mQualityText); - mSizer->Add(mQuality); - mSizer->Add(mPreAnalyze); - mSizer->Add(bs); - SetSizer(mSizer); - mSizer->Fit(this); -} - -ConvertDialog :: ~ConvertDialog() -{ -} - -int ConvertDialog :: getQuality() -{ - return mQuality->GetValue(); -} - -bool ConvertDialog :: getPreAnalyze() -{ - return mPreAnalyze->GetValue(); -} - diff --git a/lib-src/sbsms/src/wxconvertdlg.h b/lib-src/sbsms/src/wxconvertdlg.h deleted file mode 100644 index 0e339ba61..000000000 --- a/lib-src/sbsms/src/wxconvertdlg.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef CONVERTDLG_H -#define CONVERTDLG_H - -#include "wx/wx.h" - -class ConvertDialog : public wxDialog -{ - public: - ConvertDialog(wxWindow *parent); - ~ConvertDialog(); - - wxStaticText *mQualityText; - wxSlider *mQuality; - wxCheckBox *mPreAnalyze; - - int getQuality(); - bool getPreAnalyze(); -}; - -#endif diff --git a/lib-src/sbsms/src/wxplayctrl.cpp b/lib-src/sbsms/src/wxplayctrl.cpp deleted file mode 100644 index 073e061b6..000000000 --- a/lib-src/sbsms/src/wxplayctrl.cpp +++ /dev/null @@ -1,281 +0,0 @@ -#include "wxplayctrl.h" -#include "wxplayer.h" -#include "wxplayerframe.h" - -#include "../resource/Play.xpm" -#include "../resource/PlayDown.xpm" -#include "../resource/Pause.xpm" -#include "../resource/PauseDown.xpm" - -#define PLAYPAUSE 10000 -#define TIMER 10001 -#define SEEK 10002 -#define RATE 10003 -#define PITCH 10004 -#define VOLUME 10005 - -#define RATE_MAX 200 -#define RATE_MIN 25 -#define RATE_DEFAULT 100 -#define PITCH_MIN -12 -#define PITCH_DEFAULT 0 -#define PITCH_MAX 12 - -#define SEEK_MAX 512 - -BEGIN_EVENT_TABLE(PlayCtrl, wxPanel) - EVT_BUTTON(PLAYPAUSE,PlayCtrl::OnPlayPause) - EVT_TIMER(TIMER,PlayCtrl::OnTimer) - EVT_SCROLL_THUMBTRACK(PlayCtrl::OnTrack) - EVT_SCROLL_THUMBRELEASE(PlayCtrl::OnRelease) -END_EVENT_TABLE() - -BEGIN_EVENT_TABLE(wxStaticText_NoFlicker,wxStaticText) -EVT_ERASE_BACKGROUND(wxStaticText_NoFlicker::OnEraseBackground) -END_EVENT_TABLE() - -PlayCtrl :: PlayCtrl(wxWindow *parent, sbsmsplayer *player) - : wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxCLIP_CHILDREN| wxTAB_TRAVERSAL ) -{ - this->parent = (wxPlayerFrame*)parent; - this->player = player; - bmPlay = wxBitmap(Play_xpm); - bmPlayDown = wxBitmap(PlayDown_xpm); - bmPause = wxBitmap(Pause_xpm); - bmPauseDown = wxBitmap(PlayDown_xpm); - - btnPlayPause = new wxBitmapButton(this, PLAYPAUSE, bmPlay,wxDefaultPosition,wxDefaultSize,0); - -#ifndef __WXMSW__ - btnPlayPause->SetBitmapFocus( bmPlayDown ); -#else - pPlayEvt = new CBtnDownEvt( btnPlayPause, &bmPlayDown, &bmPlay ); - pPauseEvt = new CBtnDownEvt( btnPlayPause, &bmPauseDown, &bmPause ); - btnPlayPause->PushEventHandler( pPlayEvt ); -#endif - - slVolume = new wxSlider( this,VOLUME,90,0,100); - slSeek = new wxSlider( this,SEEK,0,0,SEEK_MAX); - slSeek->Connect(wxEVT_RIGHT_DOWN,wxMouseEventHandler(PlayCtrl::OnClickTimeDisplay),NULL,this); - - slRate = new wxSlider( this,RATE,RATE_DEFAULT,RATE_MIN,RATE_MAX); - slPitch = new wxSlider( this,PITCH,PITCH_DEFAULT,PITCH_MIN,PITCH_MAX); - - stVolume = new wxStaticText_NoFlicker( this, -1, wxT("Volume: 90\%"), wxDefaultPosition, wxDefaultSize, 0 ); - stRate = new wxStaticText_NoFlicker( this, -1, wxT("Rate: 100\%"), wxDefaultPosition, wxDefaultSize, 0 ); - stPitch = new wxStaticText_NoFlicker( this, -1, wxT("Pitch: 0 "), wxDefaultPosition, wxDefaultSize, 0 ); - - wxGridSizer *hsButtons = new wxGridSizer(1); - hsButtons->Add( btnPlayPause ,0,wxALIGN_CENTRE_HORIZONTAL | wxLEFT ,1); - - stCurtime = new wxStaticText_NoFlicker( this, -1, wxT(""), wxDefaultPosition, wxDefaultSize, 0 ); - nTimeDisplayMode = 0; - - wxBoxSizer *hsPlay = new wxBoxSizer( wxHORIZONTAL ); - wxBoxSizer *vsPlay = new wxBoxSizer( wxVERTICAL ); - hsPlay->Add( hsButtons, 1, wxEXPAND|wxALL, 2 ); - hsPlay->AddSpacer(10); - hsPlay->Add( slSeek, 0, wxALIGN_CENTER ); - hsPlay->AddSpacer(10); - hsPlay->Add( stCurtime ); - - wxFlexGridSizer *gsControls = new wxFlexGridSizer(3,2,10,10); - gsControls->Add(stVolume); - gsControls->Add(slVolume); - gsControls->Add(stRate); - gsControls->Add(slRate); - gsControls->Add(stPitch); - gsControls->Add(slPitch); - - vsPlay->AddSpacer(10); - vsPlay->Add(gsControls); - vsPlay->AddSpacer(10); - vsPlay->Add(hsPlay); - vsPlay->AddSpacer(10); - - SetSizer( vsPlay); - - pSecTimer = NULL; - UpdateTime(); - StartTimer(); - bPlay = false; - bWasPlaying = false; - vsPlay->Fit(this); - Layout(); -} - -PlayCtrl::~PlayCtrl() -{ - KillTimer(); - -#ifdef __WXMSW__ - btnPlayPause->PopEventHandler(); - delete pPlayEvt; - delete pPauseEvt; -#endif -} - -void PlayCtrl::OnTrack(wxScrollEvent &event) -{ - if(event.GetId() == SEEK) { - if(player->isPlaying()) { - bWasPlaying = true; - KillTimer(); - player->pause(); - } - } else if(event.GetId() == RATE) { - int intval = slVolume->GetValue(); - stVolume->SetLabel( wxString::Format( wxT("volume: %d"),intval) + wxT("\%") ); - } else if(event.GetId() == RATE) { - int intval = slRate->GetValue(); - stRate->SetLabel( wxString::Format( wxT("Rate: %d"),intval) + wxT("\%") ); - } else if(event.GetId() == PITCH) { - int intval = slPitch->GetValue(); - stPitch->SetLabel( wxString::Format( wxT("Pitch: %s%d"),intval>0?wxT("+"):wxT(""),intval) ); - } -} - -void PlayCtrl::OnRelease(wxScrollEvent &event) -{ - if(event.GetId() == SEEK) { - real fPos = (real)slSeek->GetValue()/SEEK_MAX; - player->setPos(fPos); - if(bWasPlaying) { - player->play(); - StartTimer(); - bWasPlaying = false; - } - } else if(event.GetId() == VOLUME) { - int intval = slVolume->GetValue(); - real val = (real)intval*.01f; - player->setVolume(val); - stVolume->SetLabel( wxString::Format( wxT("Volume: %d"),intval) + wxT("\%") ); - } else if(event.GetId() == RATE) { - int intval = slRate->GetValue(); - real val = (real)intval*.01f; - player->setRate(val); - stRate->SetLabel( wxString::Format( wxT("Rate: %d"),intval) + wxT("\%") ); - } else if(event.GetId() == PITCH) { - int intval = slPitch->GetValue(); - real val = (real)intval; - real ratio = pow(2.0,-val/12.0); - player->setRatio(ratio); - stPitch->SetLabel( wxString::Format( wxT("Pitch: %s%d"),intval>0?wxT("+"):wxT(""),intval) ); - } -} - -void PlayCtrl::OnTimer( wxTimerEvent& WXUNUSED(event) ) -{ - if( player->isPlaying() ) { - UpdateTime(); - } else if( player->isDonePlaying() ){ - parent->OnPause(); - player->setPos(0.0f); - UpdateTime(); - PauseBtnToPlayBtn(); - bPlay = false; - } -} - -void PlayCtrl::StartTimer() -{ - if ( pSecTimer == NULL ) { - pSecTimer = new wxTimer(this, TIMER ); - pSecTimer->Start( 100, false ); - } -} - -void PlayCtrl::KillTimer() -{ - if(pSecTimer) { - pSecTimer->Stop(); - delete pSecTimer; - pSecTimer = NULL; - } -} - -void PlayCtrl::PlayBtnToPauseBtn() -{ -#ifndef __WXMSW__ - btnPlayPause->SetBitmapLabel( bmPause ); - btnPlayPause->SetBitmapFocus( bmPauseDown ); -#else - btnPlayPause->SetBitmapLabel( bmPause ); - btnPlayPause->PopEventHandler(); - btnPlayPause->PushEventHandler( pPauseEvt ); -#endif - btnPlayPause->Refresh(); -} - -void PlayCtrl::PauseBtnToPlayBtn() -{ -#ifndef __WXMSW__ - btnPlayPause->SetBitmapLabel( bmPlay ); - btnPlayPause->SetBitmapFocus( bmPlayDown ); -#else - btnPlayPause->SetBitmapLabel( bmPlay ); - btnPlayPause->PopEventHandler(); - btnPlayPause->PushEventHandler( pPlayEvt ); -#endif - btnPlayPause->Refresh(); -} - -void PlayCtrl::OnPlayPause( wxCommandEvent& WXUNUSED(event) ) -{ - if(bPlay) { - if(player->pause()) { - parent->OnPause(); - bPlay = false; - PauseBtnToPlayBtn(); - KillTimer(); - } - } else { - if(player->play()) { - parent->OnPlay(); - bPlay = true; - PlayBtnToPauseBtn(); - StartTimer(); - } - } -} - -void PlayCtrl::OnClickTimeDisplay(wxMouseEvent & WXUNUSED(event)) -{ - ++nTimeDisplayMode %= 2; -} - -wxString PlayCtrl::getTime(real time) -{ - int h = (int)(time/3600.0f); - time -= h*3600.0f; - int m = (int)(time/60.0f); - time -= m*60.0f; - int s = (int)time; - time -= s; - int cs = (int)(time*100.0f); - return wxString::Format( wxT("%.2d:%.2d:%.2d"),m,s,cs); -} - -wxString PlayCtrl::getTimeLeft(real time, real duration) -{ - return getTime(duration-time); -} - -void PlayCtrl::UpdateTime() -{ - real duration = player->getDuration(); - real time = player->getTime(); - real fPos = duration?SEEK_MAX*time/duration : 0; - -#ifdef __WXGTK__ - if ( fPos < 2.0f ) - fPos = 2.0f; -#endif - - slSeek->SetValue( (int)fPos ); - if(nTimeDisplayMode == 0) { - stCurtime->SetLabel(wxT(" ") + getTime(time)); - } else { - stCurtime->SetLabel(wxT("-") + getTimeLeft(time,duration)); - } -} diff --git a/lib-src/sbsms/src/wxplayctrl.h b/lib-src/sbsms/src/wxplayctrl.h deleted file mode 100644 index 200e54b0f..000000000 --- a/lib-src/sbsms/src/wxplayctrl.h +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef PLAYCTRL_H -#define PLAYCTRL_H - -#include "wx/wx.h" -#include "btndown.h" -#include "play.h" -class wxPlayerFrame; - -class wxStaticText_NoFlicker : public wxStaticText -{ - public: - wxStaticText_NoFlicker(wxWindow* parent, - wxWindowID id, - const wxString& label, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, - const wxString& name= wxStaticTextNameStr ) - :wxStaticText(parent,id,label,pos,size,style,name){} - void OnEraseBackground(wxEraseEvent& ) {} - DECLARE_EVENT_TABLE() -}; - -class PlayCtrl : public wxPanel -{ - public: - PlayCtrl(wxWindow *parent, sbsmsplayer *player); - ~PlayCtrl(); - - void OnPlayPause( wxCommandEvent& WXUNUSED(event) ); - void OnTrack( wxScrollEvent &event); - void OnRelease( wxScrollEvent &event); - void OnTimer( wxTimerEvent& WXUNUSED(event) ); - void OnClickTimeDisplay( wxMouseEvent& event ); - wxBitmap bmPlay, bmPlayDown; - wxBitmap bmPause, bmPauseDown; - - wxPlayerFrame *parent; - - wxBitmapButton *btnPlayPause; - wxSlider *slVolume; - wxSlider *slSeek; - wxSlider *slRate; - wxSlider *slPitch; - wxStaticText_NoFlicker *stVolume; - wxStaticText_NoFlicker *stRate; - wxStaticText_NoFlicker *stPitch; - wxStaticText_NoFlicker *stCurtime; - -#ifdef __WXMSW__ - CBtnDownEvt *pPlayEvt; - CBtnDownEvt *pPauseEvt; -#endif - - DECLARE_EVENT_TABLE() - -protected: - wxString getTime(real time); - wxString getTimeLeft(real time, real duration); - - bool bWasPlaying; - bool bPlay; - sbsmsplayer *player; - int nTimeDisplayMode; - void PlayBtnToPauseBtn(); - void PauseBtnToPlayBtn(); - - void UpdateTime(); - void StartTimer(); - void KillTimer(); - wxTimer *pSecTimer; -}; - -#endif diff --git a/lib-src/sbsms/src/wxplayer.cpp b/lib-src/sbsms/src/wxplayer.cpp deleted file mode 100644 index 6ddd57949..000000000 --- a/lib-src/sbsms/src/wxplayer.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include "wxplayer.h" -#include "wxplayerframe.h" -#include "wx/filename.h" - -IMPLEMENT_APP(wxPlayerApp) - -bool wxPlayerApp::OnInit() -{ -#ifdef _WIN32 - int status = pthread_win32_process_attach_np(); -#endif - - sbsmsplayer *player = new sbsmsplayer(); - wxImage::AddHandler(new wxPNGHandler); - wxPlayerFrame *pMain = new wxPlayerFrame(player); - SetTopWindow( pMain ); - pMain->Show(); - return true; -} - -int wxPlayerApp::OnExit() -{ -#ifdef _WIN32 - int status = pthread_win32_process_detach_np(); -#endif - return 0; -} diff --git a/lib-src/sbsms/src/wxplayer.h b/lib-src/sbsms/src/wxplayer.h deleted file mode 100644 index d43d30020..000000000 --- a/lib-src/sbsms/src/wxplayer.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef WXPLAYER_H -#define WXPLAYER_H - -#include "wx/wx.h" -#include "play.h" - -class wxPlayerApp : public wxApp -{ - public: - wxPlayerApp() {} - ~wxPlayerApp() {}; - bool OnInit(); - int OnExit(); -}; - - -DECLARE_APP(wxPlayerApp); - -#endif diff --git a/lib-src/sbsms/src/wxplayerframe.cpp b/lib-src/sbsms/src/wxplayerframe.cpp deleted file mode 100644 index 26e4ce079..000000000 --- a/lib-src/sbsms/src/wxplayerframe.cpp +++ /dev/null @@ -1,122 +0,0 @@ -#include "wxplayerframe.h" -#include -#include -#include "wxconvertdlg.h" -#include "convert.h" - -BEGIN_EVENT_TABLE(wxPlayerFrame, wxFrame) - EVT_MENU(wxID_OPEN,wxPlayerFrame::OnOpen) - EVT_MENU(wxID_SAVE,wxPlayerFrame::OnSave) - EVT_MENU(wxID_EXIT,wxPlayerFrame::OnExit) -END_EVENT_TABLE() - -bool progressCB(int progress, const char *msg, void *data) -{ - wxProgressDialog *progressDlg = (wxProgressDialog*)data; - return progressDlg->Update(progress); -} - -void wxPlayerFrame::OnOpen(wxCommandEvent& WXUNUSED(event)) -{ - wxFileDialog dlg(this, wxT("Choose a file"), wxT("."), wxT(""), wxT("All filetypes (*.sbsms;*.mp3;*.wav;*.aif;*.aiff;*.pcm)|*.sbsms;*.mp3;*.wav;*.aif;*.aiff;*.pcm"),wxOPEN); - if(dlg.ShowModal() == wxID_OK) { - wxString pathStr = dlg.GetPath(); - wxFileName path(pathStr); - - player->close(); - if(path.GetExt().Cmp(wxT("sbsms")) == 0) { - if(player->open(path.GetFullPath().fn_str())) - openFileName = path.GetFullPath(); - } else { - ConvertDialog convertDlg(this); - if(convertDlg.ShowModal() == wxID_OK) { - bool bPreAnalyze = convertDlg.getPreAnalyze(); - int quality = convertDlg.getQuality(); - - wxFileName sbsmsPath(path.GetPath(wxPATH_GET_VOLUME|wxPATH_GET_SEPARATOR) + path.GetName() + wxT(".sbsms")); - wxProgressDialog progress(wxT("Progress"),wxT("Converting to ") + sbsmsPath.GetFullName()); - bool status = sbsms_convert(path.GetFullPath().fn_str(),sbsmsPath.GetFullPath().fn_str(),true,false,bPreAnalyze,quality,progressCB,&progress,1.0f,1.0f,1.0f,1.0f,1.0f); - if(status) { - if(player->open(sbsmsPath.GetFullPath().fn_str())) - openFileName = sbsmsPath.GetFullPath(); - } else { - wxMessageDialog msg(this,wxT("Conversion Failed"),wxT(""),wxOK); - } - } - } - } -} - -void wxPlayerFrame::OnSave(wxCommandEvent& WXUNUSED(event)) -{ - if(openFileName.Cmp(wxT("")) != 0) { - wxFileDialog dlg(this, wxT("Choose a file"), wxT("."), wxT(""), wxT("*.wav"),wxSAVE|wxOVERWRITE_PROMPT); - if(dlg.ShowModal() == wxID_OK) { - wxString pathStr = dlg.GetPath(); - wxFileName path(pathStr); - - wxProgressDialog progress(wxT("Progress"),wxT("Converting to ") + path.GetFullName()); - real rate = player->getRate(); - real ratio = player->getRatio(); - real volume = player->getVolume(); - bool status = sbsms_convert(openFileName.fn_str(),path.GetFullPath().fn_str(),false,true,false,1,progressCB,&progress,rate,rate,ratio,ratio,volume); - if(!status) { - wxMessageDialog msg(this,wxT("Conversion Failed"),wxT(""),wxOK); - } - } - } -} - -void wxPlayerFrame::OnExit(wxCommandEvent& WXUNUSED(event)) -{ - Close(); -} - -wxPlayerFrame::wxPlayerFrame(sbsmsplayer *player) - : wxFrame( (wxFrame*)NULL, -1, wxT("SBSMS")) -{ - this->player = player; - openFileName = wxT(""); - - wxMenu* file_menu = new wxMenu; - file_menu->Append( wxID_OPEN, _("Open") ); - file_menu->AppendSeparator(); - file_menu->Append( wxID_SAVE, _("Save") ); - file_menu->AppendSeparator(); - file_menu->Append( wxID_EXIT, _("Exit") ); - - wxMenuBar *menu_bar = new wxMenuBar; - menu_bar->Append( file_menu, _("&File") ); - - SetMenuBar( menu_bar ); -#ifdef __WXMSW__ - wxIcon ic(wxICON(SBSMSLogo)); - SetIcon(ic); -#endif - wxBoxSizer *hs = new wxBoxSizer( wxHORIZONTAL ); - playCtrl = new PlayCtrl(this,player); - playCtrl->Show(true); - hs->Add(playCtrl); - - SetSizer(hs); - hs->Fit(this); - Layout(); -} - -void wxPlayerFrame :: OnPause() -{ - GetMenuBar()->Enable(wxID_OPEN,true); - GetMenuBar()->Enable(wxID_SAVE,true); - GetMenuBar()->Enable(wxID_EXIT,true); -} - -void wxPlayerFrame :: OnPlay() -{ - GetMenuBar()->Enable(wxID_OPEN,false); - GetMenuBar()->Enable(wxID_SAVE,false); - GetMenuBar()->Enable(wxID_EXIT,false); -} - -wxPlayerFrame::~wxPlayerFrame() -{ -} diff --git a/lib-src/sbsms/src/wxplayerframe.h b/lib-src/sbsms/src/wxplayerframe.h deleted file mode 100644 index 5e9f920dd..000000000 --- a/lib-src/sbsms/src/wxplayerframe.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef WXPLAYERFRAME_H -#define WXPLAYERFRAME_H - -#include "wx/wx.h" -#include "play.h" -#include "wxplayctrl.h" - -class wxPlayerFrame : public wxFrame -{ - public: - wxPlayerFrame(sbsmsplayer *player); - ~wxPlayerFrame(); - - void OnPause(); - void OnPlay(); - void OnOpen(wxCommandEvent& WXUNUSED(event)); - void OnSave(wxCommandEvent& WXUNUSED(event)); - void OnExit(wxCommandEvent& WXUNUSED(event)); - - DECLARE_EVENT_TABLE() - protected: - wxString openFileName; - sbsmsplayer *player; - PlayCtrl *playCtrl; -}; - -#endif diff --git a/lib-src/sbsms/win/libmad/libmad.vcproj b/lib-src/sbsms/win/libmad/libmad.vcproj deleted file mode 100644 index fa7cb4f4d..000000000 --- a/lib-src/sbsms/win/libmad/libmad.vcproj +++ /dev/null @@ -1,304 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/lib-src/sbsms/win/libsndfile/libsndfile.vcproj b/lib-src/sbsms/win/libsndfile/libsndfile.vcproj deleted file mode 100644 index 1d41b3e38..000000000 --- a/lib-src/sbsms/win/libsndfile/libsndfile.vcproj +++ /dev/null @@ -1,945 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/lib-src/sbsms/win/portaudio-v19/portaudio-v19.vcproj b/lib-src/sbsms/win/portaudio-v19/portaudio-v19.vcproj deleted file mode 100644 index a8fb5f6c1..000000000 --- a/lib-src/sbsms/win/portaudio-v19/portaudio-v19.vcproj +++ /dev/null @@ -1,543 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/lib-src/sbsms/win/pthread/pthread.vcproj b/lib-src/sbsms/win/pthread/pthread.vcproj deleted file mode 100644 index 46a09d854..000000000 --- a/lib-src/sbsms/win/pthread/pthread.vcproj +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/effects/SBSMSEffect.cpp b/src/effects/SBSMSEffect.cpp index c3fc347fb..c83a9f2eb 100644 --- a/src/effects/SBSMSEffect.cpp +++ b/src/effects/SBSMSEffect.cpp @@ -32,7 +32,6 @@ public: rightBuffer = NULL; sbsmser = NULL; - pitch = NULL; outBuf = NULL; outputLeftBuffer = NULL; outputRightBuffer = NULL; @@ -46,7 +45,6 @@ public: if(buf) free(buf); if(leftBuffer) free(leftBuffer); if(rightBuffer) free(rightBuffer); - if(pitch) pitch_destroy(pitch); if(sbsmser) sbsms_destroy(sbsmser); if(outBuf) free(outBuf); if(outputLeftBuffer) free(outputLeftBuffer); @@ -68,7 +66,6 @@ public: // Not required by callbacks, but makes for easier cleanup sbsms *sbsmser; - pitcher *pitch; audio *outBuf; float *outputLeftBuffer; float *outputRightBuffer; @@ -84,37 +81,12 @@ long samplesCB(audio *chdata, long numFrames, void *userData) return n_read; } -real stretchCB(long nProcessed, void *userData) -{ - sbsmsInfo *si = (sbsmsInfo*) userData; - real t0 = (real)nProcessed/(real)si->samplesToProcess; - real stretch = si->stretch0 + (si->stretch1-si->stretch0)*t0; - return stretch; -} - -real ratioCB(long nProcessed, void *userData) -{ - sbsmsInfo *si = (sbsmsInfo*) userData; - real t0 = (real)nProcessed/(real)si->samplesToProcess; - real stretch = si->stretch0 + (si->stretch1-si->stretch0)*t0; - real t1; - if(stretch == si->stretch0) - t1 = 1.0/stretch; - else - t1 = log(stretch/si->stretch0)/(stretch-si->stretch0); - - real ratio = si->ratio0 + (si->ratio1-si->ratio0)*t1*(real)nProcessed/(real)si->samplesToGenerate; - - return ratio; -} - -void EffectSBSMS :: setParameters(double rateStart, double rateEnd, double pitchStart, double pitchEnd, int quality, bool bPreAnalyze) +void EffectSBSMS :: setParameters(double rateStart, double rateEnd, double pitchStart, double pitchEnd, bool bPreAnalyze) { this->rateStart = rateStart; this->rateEnd = rateEnd; this->pitchStart = pitchStart; this->pitchEnd = pitchEnd; - this->quality = quality; this->bPreAnalyze = bPreAnalyze; } @@ -173,7 +145,7 @@ bool EffectSBSMS::ProcessLabelTrack(Track *t) bool EffectSBSMS::Process() { if(!bInit) { - sbsms_init(4096); + sbsms_init(8192); bInit = TRUE; } @@ -296,13 +268,13 @@ bool EffectSBSMS::Process() si.rs = rb.resampler; si.samplesToProcess = samplesToProcess; si.samplesToGenerate = samplesToGenerate; - si.stretch0 = rateStart; - si.stretch1 = rateEnd; - si.ratio0 = pitchStart; - si.ratio1 = pitchEnd; + si.rate0 = rateStart; + si.rate1 = rateEnd; + si.pitch0 = pitchStart; + si.pitch1 = pitchEnd; - rb.sbsmser = sbsms_create(&samplesCB,&stretchCB,&ratioCB,rightTrack?2:1,quality,bPreAnalyze,true); - rb.pitch = pitch_create(rb.sbsmser,&si,srIn/srSBSMS); + sbsms_quality quality = sbsms_quality_fast; + rb.sbsmser = sbsms_create(&samplesCB,&rateCBLinear,&pitchCBLinear,rightTrack?2:1,&quality,bPreAnalyze,true); rb.outputLeftTrack = mFactory->NewWaveTrack(leftTrack->GetSampleFormat(), leftTrack->GetRate()); @@ -311,7 +283,7 @@ bool EffectSBSMS::Process() rightTrack->GetRate()); - sampleCount blockSize = SBSMS_FRAME_SIZE[quality]; + sampleCount blockSize = quality.maxoutframesize; rb.outBuf = (audio*)calloc(blockSize,sizeof(audio)); rb.outputLeftBuffer = (float*)calloc(blockSize*2,sizeof(float)); if(rightTrack) @@ -355,14 +327,11 @@ bool EffectSBSMS::Process() // process while(possamplesOut) { - frames = samplesOut - pos; - } else { - frames = blockSize; + outputCount = sbsms_read_frame(rb.outBuf, &si, rb.sbsmser, NULL, NULL); + if(pos+outputCount>samplesOut) { + outputCount = samplesOut - pos; } - - outputCount = pitch_process(rb.outBuf, frames, rb.pitch); + for(int i = 0; i < outputCount; i++) { rb.outputLeftBuffer[i] = rb.outBuf[i][0]; if(rightTrack) diff --git a/src/effects/SBSMSEffect.h b/src/effects/SBSMSEffect.h index 720d4b3b8..8f2f65c0d 100644 --- a/src/effects/SBSMSEffect.h +++ b/src/effects/SBSMSEffect.h @@ -18,14 +18,8 @@ #include "Effect.h" -// Soundtouch defines these as well, so get rid of them before including -#undef PACKAGE_NAME -#undef PACKAGE_STRING -#undef PACKAGE_TARNAME -#undef PACKAGE_VERSION -#undef PACKAGE_BUGREPORT - #include "sbsms.h" +using namespace _sbsms_; class WaveTrack; @@ -33,12 +27,11 @@ class EffectSBSMS : public Effect { public: static bool bInit; virtual bool Process(); - void setParameters(double rateStart, double rateEnd, double pitchStart, double pitchEnd, int quality, bool bPreAnalyze); + void setParameters(double rateStart, double rateEnd, double pitchStart, double pitchEnd, bool bPreAnalyze); private: bool ProcessLabelTrack(Track *track); double rateStart, rateEnd, pitchStart, pitchEnd; - int quality; bool bPreAnalyze; int mCurTrackNum; double mCurT0; diff --git a/src/effects/TimeScale.cpp b/src/effects/TimeScale.cpp index ac62250bb..57d2e47c5 100644 --- a/src/effects/TimeScale.cpp +++ b/src/effects/TimeScale.cpp @@ -40,10 +40,12 @@ EffectTimeScale::EffectTimeScale() { - m_RateStart = 0; - m_RateEnd = 0; - m_HalfStepsStart = 0; - m_HalfStepsEnd = 0; + m_RatePercentChangeStart = 0; + m_RatePercentChangeEnd = 0; + m_PitchHalfStepsStart = 0; + m_PitchHalfStepsEnd = 0; + m_PitchPercentChangeStart = 0; + m_PitchPercentChangeEnd = 0; m_PreAnalyze = false; } @@ -60,10 +62,12 @@ bool EffectTimeScale::Init() bool EffectTimeScale::PromptUser() { TimeScaleDialog dlog(this, mParent); - dlog.m_RateStart = m_RateStart; - dlog.m_RateEnd = m_RateEnd; - dlog.m_HalfStepsStart = m_HalfStepsStart; - dlog.m_HalfStepsEnd = m_HalfStepsEnd; + dlog.m_RatePercentChangeStart = m_RatePercentChangeStart; + dlog.m_RatePercentChangeEnd = m_RatePercentChangeEnd; + dlog.m_PitchHalfStepsStart = m_PitchHalfStepsStart; + dlog.m_PitchHalfStepsEnd = m_PitchHalfStepsEnd; + dlog.m_PitchPercentChangeStart = m_PitchPercentChangeStart; + dlog.m_PitchPercentChangeEnd = m_PitchPercentChangeEnd; dlog.m_PreAnalyze = m_PreAnalyze; // Don't need to call TransferDataToWindow, although other @@ -76,10 +80,12 @@ bool EffectTimeScale::PromptUser() if (dlog.GetReturnCode() == wxID_CANCEL) return false; - m_RateStart = dlog.m_RateStart; - m_RateEnd = dlog.m_RateEnd; - m_HalfStepsStart = dlog.m_HalfStepsStart; - m_HalfStepsEnd = dlog.m_HalfStepsEnd; + m_RatePercentChangeStart = dlog.m_RatePercentChangeStart; + m_RatePercentChangeEnd = dlog.m_RatePercentChangeEnd; + m_PitchHalfStepsStart = dlog.m_PitchHalfStepsStart; + m_PitchHalfStepsEnd = dlog.m_PitchHalfStepsEnd; + m_PitchPercentChangeStart = dlog.m_PitchPercentChangeStart; + m_PitchPercentChangeEnd = dlog.m_PitchPercentChangeEnd; m_PreAnalyze = dlog.m_PreAnalyze; return true; @@ -87,22 +93,38 @@ bool EffectTimeScale::PromptUser() bool EffectTimeScale::TransferParameters( Shuttle & shuttle ) { - shuttle.TransferDouble(wxT("RateStart"),m_RateStart,0.0); - shuttle.TransferDouble(wxT("RateEnd"),m_RateEnd,0.0); - shuttle.TransferDouble(wxT("HalfStepsStart"),m_HalfStepsStart,0.0); - shuttle.TransferDouble(wxT("HalfStepsEnd"),m_HalfStepsEnd,0.0); + shuttle.TransferDouble(wxT("RatePercentChangeStart"),m_RatePercentChangeStart,0.0); + shuttle.TransferDouble(wxT("RatePercentChangeEnd"),m_RatePercentChangeEnd,0.0); + shuttle.TransferDouble(wxT("PitchHalfStepsStart"),m_PitchHalfStepsStart,0.0); + shuttle.TransferDouble(wxT("PitchHalfStepsEnd"),m_PitchHalfStepsEnd,0.0); + shuttle.TransferDouble(wxT("PitchPercentChangeStart"),m_PitchPercentChangeStart,0.0); + shuttle.TransferDouble(wxT("PitchPercentChangeEnd"),m_PitchPercentChangeEnd,0.0); shuttle.TransferBool(wxT("PreAnalyze"),m_PreAnalyze,false); return true; } +inline double PercentChangeToRatio(double percentChange) +{ + return 1.0 + percentChange / 100.0; +} + +inline double HalfStepsToPercentChange(double halfSteps) +{ + return 100.0 * (pow(2.0,halfSteps/12.0) - 1.0); +} + +inline double PercentChangeToHalfSteps(double percentChange) +{ + return 12.0 * log2(PercentChangeToRatio(percentChange)); +} + bool EffectTimeScale::Process() { - double pitchStart = pow(2.0,-(m_HalfStepsStart)/12.0); - double pitchEnd = pow(2.0,-(m_HalfStepsEnd)/12.0); - double rateStart = (100.0+m_RateStart)/100.0; - double rateEnd = (100.0+m_RateEnd)/100.0; - int quality = 1; - this->EffectSBSMS::setParameters(rateStart,rateEnd,pitchStart,pitchEnd,quality,m_PreAnalyze); + double pitchStart = PercentChangeToRatio(m_PitchPercentChangeStart); + double pitchEnd = PercentChangeToRatio(m_PitchPercentChangeEnd); + double rateStart = PercentChangeToRatio(m_RatePercentChangeStart); + double rateEnd = PercentChangeToRatio(m_RatePercentChangeEnd); + this->EffectSBSMS::setParameters(rateStart,rateEnd,pitchStart,pitchEnd,m_PreAnalyze); return this->EffectSBSMS::Process(); } @@ -110,29 +132,38 @@ bool EffectTimeScale::Process() // TimeScaleDialog //---------------------------------------------------------------------------- -#define RATE_MAX 150 -#define RATE_DEFAULT 0 -#define RATE_MIN -75 -#define HALFSTEPS_MIN -12 -#define HALFSTEPS_MAX 12 +#define RATE_PERCENTCHANGE_MAX_SLIDER 150 +#define RATE_PERCENTCHANGE_MIN_SLIDER -75 +#define RATE_PERCENTCHANGE_MAX_TEXT 500 +#define RATE_PERCENTCHANGE_MIN_TEXT -90 +#define RATE_PERCENTCHANGE_DEFAULT 0 +#define PITCH_HALFSTEPS_MIN_TEXT -12 +#define PITCH_HALFSTEPS_MAX_TEXT 12 +#define PITCH_PERCENTCHANGE_MIN_TEXT -50 +#define PITCH_PERCENTCHANGE_MAX_TEXT 100 -#define ID_TEXT_RATE_START 10001 -#define ID_TEXT_RATE_END 10002 -#define ID_TEXT_HALFSTEPS_START 10003 -#define ID_TEXT_HALFSTEPS_END 10004 -#define ID_SLIDER_RATE_START 10007 -#define ID_SLIDER_RATE_END 10008 + +#define ID_TEXT_RATE_PERCENTCHANGE_START 10001 +#define ID_TEXT_RATE_PERCENTCHANGE_END 10002 +#define ID_TEXT_PITCH_HALFSTEPS_START 10003 +#define ID_TEXT_PITCH_HALFSTEPS_END 10004 +#define ID_TEXT_PITCH_PERCENTCHANGE_START 10005 +#define ID_TEXT_PITCH_PERCENTCHANGE_END 10006 +#define ID_SLIDER_RATE_PERCENTCHANGE_START 10007 +#define ID_SLIDER_RATE_PERCENTCHANGE_END 10008 #define ID_CHECKBOX_PREANALYZE 10009 // event table for TimeScaleDialog BEGIN_EVENT_TABLE(TimeScaleDialog, EffectDialog) - EVT_TEXT(ID_TEXT_RATE_START, TimeScaleDialog::OnText_RateStart) - EVT_TEXT(ID_TEXT_RATE_END, TimeScaleDialog::OnText_RateEnd) - EVT_TEXT(ID_TEXT_HALFSTEPS_START, TimeScaleDialog::OnText_HalfStepsStart) - EVT_TEXT(ID_TEXT_HALFSTEPS_END, TimeScaleDialog::OnText_HalfStepsEnd) - EVT_SLIDER(ID_SLIDER_RATE_START, TimeScaleDialog::OnSlider_RateStart) - EVT_SLIDER(ID_SLIDER_RATE_END, TimeScaleDialog::OnSlider_RateEnd) + EVT_TEXT(ID_TEXT_RATE_PERCENTCHANGE_START, TimeScaleDialog::OnText_RatePercentChangeStart) + EVT_TEXT(ID_TEXT_RATE_PERCENTCHANGE_END, TimeScaleDialog::OnText_RatePercentChangeEnd) + EVT_TEXT(ID_TEXT_PITCH_HALFSTEPS_START, TimeScaleDialog::OnText_PitchHalfStepsStart) + EVT_TEXT(ID_TEXT_PITCH_HALFSTEPS_END, TimeScaleDialog::OnText_PitchHalfStepsEnd) + EVT_TEXT(ID_TEXT_PITCH_PERCENTCHANGE_START, TimeScaleDialog::OnText_PitchPercentChangeStart) + EVT_TEXT(ID_TEXT_PITCH_PERCENTCHANGE_END, TimeScaleDialog::OnText_PitchPercentChangeEnd) + EVT_SLIDER(ID_SLIDER_RATE_PERCENTCHANGE_START, TimeScaleDialog::OnSlider_RatePercentChangeStart) + EVT_SLIDER(ID_SLIDER_RATE_PERCENTCHANGE_END, TimeScaleDialog::OnSlider_RatePercentChangeEnd) EVT_CHECKBOX(ID_CHECKBOX_PREANALYZE, TimeScaleDialog::OnCheckBox_PreAnalyze) END_EVENT_TABLE() @@ -146,19 +177,23 @@ TimeScaleDialog::TimeScaleDialog(EffectTimeScale *effect, wxWindow *parent) // event table handlers get called during this method, and those handlers that // can cause trouble check for NULL. - m_pTextCtrl_RateStart = NULL; - m_pTextCtrl_RateEnd = NULL; - m_pSlider_RateStart = NULL; - m_pSlider_RateEnd = NULL; - m_pTextCtrl_HalfStepsStart = NULL; - m_pTextCtrl_HalfStepsEnd = NULL; + m_pTextCtrl_RatePercentChangeStart = NULL; + m_pTextCtrl_RatePercentChangeEnd = NULL; + m_pSlider_RatePercentChangeStart = NULL; + m_pSlider_RatePercentChangeEnd = NULL; + m_pTextCtrl_PitchPercentChangeStart = NULL; + m_pTextCtrl_PitchPercentChangeEnd = NULL; + m_pTextCtrl_PitchHalfStepsStart = NULL; + m_pTextCtrl_PitchHalfStepsEnd = NULL; m_pCheckBox_PreAnalyze = NULL; // effect parameters - m_RateStart = 0; - m_RateEnd = 0; - m_HalfStepsStart = 0; - m_HalfStepsEnd = 0; + m_RatePercentChangeStart = 0; + m_RatePercentChangeEnd = 0; + m_PitchPercentChangeStart = 0; + m_PitchPercentChangeEnd = 0; + m_PitchHalfStepsStart = 0; + m_PitchHalfStepsEnd = 0; m_PreAnalyze = false; Init(); @@ -180,58 +215,90 @@ void TimeScaleDialog::PopulateOrExchange(ShuttleGui & S) S.EndHorizontalLay(); S.SetBorder(5); - // Rate Text - S.StartMultiColumn(2, wxCENTER); + // Rate Start + S.StartStatic(_("Initial Tempo Change (%)")); { - m_pTextCtrl_RateStart = S.Id(ID_TEXT_RATE_START) - .AddTextBox(_("Initial Tempo Change (%):"), wxT(""), 12); - m_pTextCtrl_RateStart->SetValidator(numvld); - - m_pTextCtrl_RateEnd = S.Id(ID_TEXT_RATE_END) - .AddTextBox(_("Final Tempo Change (%):"), wxT(""), 12); - m_pTextCtrl_RateEnd->SetValidator(numvld); + S.StartMultiColumn(1, wxCENTER); + { + m_pTextCtrl_RatePercentChangeStart = S.Id(ID_TEXT_RATE_PERCENTCHANGE_START) + .AddTextBox(_(""), wxT(""), 12); + m_pTextCtrl_RatePercentChangeStart->SetValidator(numvld); + } + S.EndMultiColumn(); + S.StartHorizontalLay(wxEXPAND,0); + { + S.SetStyle(wxSL_HORIZONTAL); + m_pSlider_RatePercentChangeStart = S.Id(ID_SLIDER_RATE_PERCENTCHANGE_START) + .AddSlider(wxT(""), (int)RATE_PERCENTCHANGE_DEFAULT, (int)RATE_PERCENTCHANGE_MAX_SLIDER, (int)RATE_PERCENTCHANGE_MIN_SLIDER); + } + S.EndHorizontalLay(); } - S.EndMultiColumn(); - - // Rate Slider - S.StartHorizontalLay(wxEXPAND); - { - S.SetStyle(wxSL_HORIZONTAL); - m_pSlider_RateStart = S.Id(ID_SLIDER_RATE_START) - .AddSlider(wxT(""), (int)RATE_DEFAULT, (int)RATE_MAX, (int)RATE_MIN); - m_pSlider_RateStart->SetName(_("Initial Tempo Change (%)")); - } - S.EndHorizontalLay(); - - S.StartHorizontalLay(wxEXPAND); - { - S.SetStyle(wxSL_HORIZONTAL); - m_pSlider_RateEnd = S.Id(ID_SLIDER_RATE_END) - .AddSlider(wxT(""), (int)RATE_DEFAULT, (int)RATE_MAX, (int)RATE_MIN); - m_pSlider_RateEnd->SetName(_("Final Tempo Change (%)")); - } - S.EndHorizontalLay(); - - // HalfStep Text - S.StartMultiColumn(2, wxCENTER); - { - m_pTextCtrl_HalfStepsStart = S.Id(ID_TEXT_HALFSTEPS_START) - .AddTextBox(_("Initial Pitch Shift (semitones) [-12 to 12]:"), wxT(""), 12); - m_pTextCtrl_HalfStepsStart->SetValidator(numvld); + S.EndStatic(); - m_pTextCtrl_HalfStepsEnd = S.Id(ID_TEXT_HALFSTEPS_END) - .AddTextBox(_("Final Pitch Shift (semitones) [-12 to 12]:"), wxT(""), 12); - m_pTextCtrl_HalfStepsEnd->SetValidator(numvld); - } - S.EndMultiColumn(); - - S.StartHorizontalLay(wxEXPAND); + S.StartStatic(_("Final Tempo Change (%)")); { - S.SetStyle(wxSL_HORIZONTAL); - m_pCheckBox_PreAnalyze = S.Id(ID_CHECKBOX_PREANALYZE) - .AddCheckBox(wxT("Dynamic Transient Sharpening"), wxT("Dynamic Transient Sharpening")); + S.StartMultiColumn(1, wxCENTER); + { + m_pTextCtrl_RatePercentChangeEnd = S.Id(ID_TEXT_RATE_PERCENTCHANGE_END) + .AddTextBox(_(""), wxT(""), 12); + m_pTextCtrl_RatePercentChangeEnd->SetValidator(numvld); + } + S.EndMultiColumn(); + S.StartHorizontalLay(wxEXPAND,0); + { + S.SetStyle(wxSL_HORIZONTAL); + m_pSlider_RatePercentChangeEnd = S.Id(ID_SLIDER_RATE_PERCENTCHANGE_END) + .AddSlider(wxT(""), (int)RATE_PERCENTCHANGE_DEFAULT, (int)RATE_PERCENTCHANGE_MAX_SLIDER, (int)RATE_PERCENTCHANGE_MIN_SLIDER); + } + S.EndHorizontalLay(); } - S.EndHorizontalLay(); + S.EndStatic(); + + // Pitch Start + S.StartStatic(_("Initial Pitch Shift")); + { + S.StartMultiColumn(2, wxCENTER); + { + m_pTextCtrl_PitchHalfStepsStart = S.Id(ID_TEXT_PITCH_HALFSTEPS_START) + .AddTextBox(_("(semitones) [-12 to 12]:"), wxT(""), 12); + m_pTextCtrl_PitchHalfStepsStart->SetValidator(numvld); + + m_pTextCtrl_PitchPercentChangeStart = S.Id(ID_TEXT_PITCH_PERCENTCHANGE_START) + .AddTextBox(_("(%) [-50 to 100]:"), wxT(""), 12); + m_pTextCtrl_PitchPercentChangeStart->SetValidator(numvld); + } + S.EndMultiColumn(); + } + S.EndStatic(); + + // Pitch End + S.StartStatic(_("Final Pitch Shift")); + { + S.StartMultiColumn(2, wxCENTER); + { + m_pTextCtrl_PitchHalfStepsEnd = S.Id(ID_TEXT_PITCH_HALFSTEPS_END) + .AddTextBox(_("(semitones) [-12 to 12]:"), wxT(""), 12); + m_pTextCtrl_PitchHalfStepsEnd->SetValidator(numvld); + + m_pTextCtrl_PitchPercentChangeEnd = S.Id(ID_TEXT_PITCH_PERCENTCHANGE_END) + .AddTextBox(_("(%) [-50 to 100]:"), wxT(""), 12); + m_pTextCtrl_PitchPercentChangeEnd->SetValidator(numvld); + } + S.EndMultiColumn(); + } + S.EndStatic(); + + S.StartStatic(_("Options")); + { + S.StartHorizontalLay(wxEXPAND); + { + S.SetStyle(wxSL_HORIZONTAL); + m_pCheckBox_PreAnalyze = S.Id(ID_CHECKBOX_PREANALYZE) + .AddCheckBox(wxT("Dynamic Transient Sharpening"), wxT("Dynamic Transient Sharpening")); + } + S.EndHorizontalLay(); + } + S.EndStatic(); return; } @@ -240,12 +307,14 @@ bool TimeScaleDialog::TransferDataToWindow() { m_bLoopDetect = true; - this->Update_Text_RateStart(); - this->Update_Slider_RateStart(); - this->Update_Text_RateEnd(); - this->Update_Slider_RateEnd(); - this->Update_Text_HalfStepsStart(); - this->Update_Text_HalfStepsEnd(); + this->Update_Text_RatePercentChangeStart(); + this->Update_Text_RatePercentChangeEnd(); + this->Update_Slider_RatePercentChangeStart(); + this->Update_Slider_RatePercentChangeEnd(); + this->Update_Text_PitchHalfStepsStart(); + this->Update_Text_PitchHalfStepsEnd(); + this->Update_Text_PitchPercentChangeStart(); + this->Update_Text_PitchPercentChangeEnd(); this->Update_CheckBox_PreAnalyze(); m_bLoopDetect = false; @@ -257,32 +326,46 @@ bool TimeScaleDialog::TransferDataFromWindow() { wxString str; - if (m_pTextCtrl_RateStart) { - str = m_pTextCtrl_RateStart->GetValue(); + if (m_pTextCtrl_RatePercentChangeStart) { + str = m_pTextCtrl_RatePercentChangeStart->GetValue(); double newValue = 0; str.ToDouble(&newValue); - m_RateStart = newValue; + m_RatePercentChangeStart = newValue; } - if (m_pTextCtrl_RateEnd) { - str = m_pTextCtrl_RateEnd->GetValue(); + if (m_pTextCtrl_RatePercentChangeEnd) { + str = m_pTextCtrl_RatePercentChangeEnd->GetValue(); double newValue = 0; str.ToDouble(&newValue); - m_RateEnd = newValue; + m_RatePercentChangeEnd = newValue; } - if (m_pTextCtrl_HalfStepsStart) { - str = m_pTextCtrl_HalfStepsStart->GetValue(); + if (m_pTextCtrl_PitchHalfStepsStart) { + str = m_pTextCtrl_PitchHalfStepsStart->GetValue(); double newValue = 0; str.ToDouble(&newValue); - m_HalfStepsStart = newValue; + m_PitchHalfStepsStart = newValue; } - if (m_pTextCtrl_HalfStepsEnd) { - str = m_pTextCtrl_HalfStepsEnd->GetValue(); + if (m_pTextCtrl_PitchHalfStepsEnd) { + str = m_pTextCtrl_PitchHalfStepsEnd->GetValue(); double newValue = 0; str.ToDouble(&newValue); - m_HalfStepsEnd = newValue; + m_PitchHalfStepsEnd = newValue; + } + + if (m_pTextCtrl_PitchPercentChangeStart) { + str = m_pTextCtrl_PitchPercentChangeStart->GetValue(); + double newValue = 0; + str.ToDouble(&newValue); + m_PitchPercentChangeStart = newValue; + } + + if (m_pTextCtrl_PitchPercentChangeEnd) { + str = m_pTextCtrl_PitchPercentChangeEnd->GetValue(); + double newValue = 0; + str.ToDouble(&newValue); + m_PitchPercentChangeEnd = newValue; } if(m_pCheckBox_PreAnalyze) { @@ -295,105 +378,171 @@ bool TimeScaleDialog::TransferDataFromWindow() bool TimeScaleDialog::CheckParameters() { return - (m_RateStart >= -90.0 && m_RateStart <= 500.0) + (m_RatePercentChangeStart >= RATE_PERCENTCHANGE_MIN_TEXT && + m_RatePercentChangeStart <= RATE_PERCENTCHANGE_MAX_TEXT) && - (m_RateEnd >= -90.0 && m_RateEnd <= 500.0) + (m_RatePercentChangeEnd >= RATE_PERCENTCHANGE_MIN_TEXT && + m_RatePercentChangeEnd <= RATE_PERCENTCHANGE_MAX_TEXT) && - (m_HalfStepsStart >= -12 && m_HalfStepsStart <=12) + (m_PitchHalfStepsStart >= PITCH_HALFSTEPS_MIN_TEXT && + m_PitchHalfStepsStart <= PITCH_HALFSTEPS_MAX_TEXT) && - (m_HalfStepsEnd >= -12 && m_HalfStepsEnd <=12); + (m_PitchHalfStepsEnd >= PITCH_HALFSTEPS_MIN_TEXT && + m_PitchHalfStepsEnd <= PITCH_HALFSTEPS_MAX_TEXT) + && + (m_PitchPercentChangeStart >= PITCH_PERCENTCHANGE_MIN_TEXT && + m_PitchPercentChangeStart <= PITCH_PERCENTCHANGE_MAX_TEXT) + && + (m_PitchPercentChangeEnd >= PITCH_PERCENTCHANGE_MIN_TEXT && + m_PitchPercentChangeEnd <= PITCH_PERCENTCHANGE_MAX_TEXT); } // handler implementations for TimeScaleDialog -void TimeScaleDialog::OnText_RateStart(wxCommandEvent & event) +void TimeScaleDialog::OnText_RatePercentChangeStart(wxCommandEvent & event) { if (m_bLoopDetect) return; - if (m_pTextCtrl_RateStart) { - wxString str = m_pTextCtrl_RateStart->GetValue(); + if (m_pTextCtrl_RatePercentChangeStart) { + wxString str = m_pTextCtrl_RatePercentChangeStart->GetValue(); double newValue = 0; str.ToDouble(&newValue); - m_RateStart = newValue; + m_RatePercentChangeStart = newValue; m_bLoopDetect = true; - this->Update_Slider_RateStart(); + this->Update_Slider_RatePercentChangeStart(); m_bLoopDetect = false; FindWindow(wxID_OK)->Enable(CheckParameters()); } } -void TimeScaleDialog::OnText_RateEnd(wxCommandEvent & event) +void TimeScaleDialog::OnText_RatePercentChangeEnd(wxCommandEvent & event) { if (m_bLoopDetect) return; - if (m_pTextCtrl_RateEnd) { - wxString str = m_pTextCtrl_RateEnd->GetValue(); + if (m_pTextCtrl_RatePercentChangeEnd) { + wxString str = m_pTextCtrl_RatePercentChangeEnd->GetValue(); double newValue = 0; str.ToDouble(&newValue); - m_RateEnd = newValue; + m_RatePercentChangeEnd = newValue; m_bLoopDetect = true; - this->Update_Slider_RateEnd(); + this->Update_Slider_RatePercentChangeEnd(); m_bLoopDetect = false; FindWindow(wxID_OK)->Enable(CheckParameters()); } } -void TimeScaleDialog::OnSlider_RateStart(wxCommandEvent & event) +void TimeScaleDialog::OnSlider_RatePercentChangeStart(wxCommandEvent & event) { if (m_bLoopDetect) return; - if (m_pSlider_RateStart) { - m_RateStart = (double)(m_pSlider_RateStart->GetValue()); + if (m_pSlider_RatePercentChangeStart) { + m_RatePercentChangeStart = (double)(m_pSlider_RatePercentChangeStart->GetValue()); m_bLoopDetect = true; - this->Update_Text_RateStart(); + this->Update_Text_RatePercentChangeStart(); m_bLoopDetect = false; } } -void TimeScaleDialog::OnSlider_RateEnd(wxCommandEvent & event) +void TimeScaleDialog::OnSlider_RatePercentChangeEnd(wxCommandEvent & event) { if (m_bLoopDetect) return; - if (m_pSlider_RateEnd) { - m_RateEnd = (double)(m_pSlider_RateEnd->GetValue()); + if (m_pSlider_RatePercentChangeEnd) { + m_RatePercentChangeEnd = (double)(m_pSlider_RatePercentChangeEnd->GetValue()); m_bLoopDetect = true; - this->Update_Text_RateEnd(); + this->Update_Text_RatePercentChangeEnd(); m_bLoopDetect = false; } } -void TimeScaleDialog::OnText_HalfStepsStart(wxCommandEvent & event) +void TimeScaleDialog::OnText_PitchHalfStepsStart(wxCommandEvent & event) { - if (m_pTextCtrl_HalfStepsStart) { - wxString str = m_pTextCtrl_HalfStepsStart->GetValue(); - double newValue = 0; - str.ToDouble(&newValue); - m_HalfStepsStart = newValue; + if (m_bLoopDetect) + return; - FindWindow(wxID_OK)->Enable(CheckParameters()); - } + if (m_pTextCtrl_PitchHalfStepsStart) { + wxString str = m_pTextCtrl_PitchHalfStepsStart->GetValue(); + double newValue = 0; + str.ToDouble(&newValue); + m_PitchHalfStepsStart = newValue; + m_PitchPercentChangeStart = HalfStepsToPercentChange(newValue); + + m_bLoopDetect = true; + this->Update_Text_PitchPercentChangeStart(); + m_bLoopDetect = false; + + FindWindow(wxID_OK)->Enable(CheckParameters()); + } } -void TimeScaleDialog::OnText_HalfStepsEnd(wxCommandEvent & event) +void TimeScaleDialog::OnText_PitchHalfStepsEnd(wxCommandEvent & event) { - if (m_pTextCtrl_HalfStepsEnd) { - wxString str = m_pTextCtrl_HalfStepsEnd->GetValue(); - double newValue = 0; - str.ToDouble(&newValue); - m_HalfStepsEnd = newValue; - - FindWindow(wxID_OK)->Enable(CheckParameters()); - } + if (m_bLoopDetect) + return; + + if (m_pTextCtrl_PitchHalfStepsEnd) { + wxString str = m_pTextCtrl_PitchHalfStepsEnd->GetValue(); + double newValue = 0; + str.ToDouble(&newValue); + m_PitchHalfStepsEnd = newValue; + m_PitchPercentChangeEnd = HalfStepsToPercentChange(newValue); + + m_bLoopDetect = true; + this->Update_Text_PitchPercentChangeEnd(); + m_bLoopDetect = false; + + FindWindow(wxID_OK)->Enable(CheckParameters()); + } +} + +void TimeScaleDialog::OnText_PitchPercentChangeStart(wxCommandEvent & event) +{ + if (m_bLoopDetect) + return; + + if (m_pTextCtrl_PitchPercentChangeStart) { + wxString str = m_pTextCtrl_PitchPercentChangeStart->GetValue(); + double newValue = 0; + str.ToDouble(&newValue); + m_PitchPercentChangeStart = newValue; + m_PitchHalfStepsStart = PercentChangeToHalfSteps(newValue); + + m_bLoopDetect = true; + this->Update_Text_PitchHalfStepsStart(); + m_bLoopDetect = false; + + FindWindow(wxID_OK)->Enable(CheckParameters()); + } +} + +void TimeScaleDialog::OnText_PitchPercentChangeEnd(wxCommandEvent & event) +{ + if (m_bLoopDetect) + return; + + if (m_pTextCtrl_PitchPercentChangeEnd) { + wxString str = m_pTextCtrl_PitchPercentChangeEnd->GetValue(); + double newValue = 0; + str.ToDouble(&newValue); + m_PitchPercentChangeEnd = newValue; + m_PitchHalfStepsEnd = PercentChangeToHalfSteps(newValue); + + m_bLoopDetect = true; + this->Update_Text_PitchHalfStepsEnd(); + m_bLoopDetect = false; + + FindWindow(wxID_OK)->Enable(CheckParameters()); + } } void TimeScaleDialog::OnCheckBox_PreAnalyze(wxCommandEvent & event) @@ -403,53 +552,71 @@ void TimeScaleDialog::OnCheckBox_PreAnalyze(wxCommandEvent & event) } } -void TimeScaleDialog::Update_Text_RateStart() +void TimeScaleDialog::Update_Text_RatePercentChangeStart() { - if (m_pTextCtrl_RateStart) { + if (m_pTextCtrl_RatePercentChangeStart) { wxString str; - str.Printf(wxT("%.3f"), m_RateStart); - m_pTextCtrl_RateStart->SetValue(str); + str.Printf(wxT("%.3f"), m_RatePercentChangeStart); + m_pTextCtrl_RatePercentChangeStart->SetValue(str); } } -void TimeScaleDialog::Update_Text_RateEnd() +void TimeScaleDialog::Update_Text_RatePercentChangeEnd() { - if (m_pTextCtrl_RateEnd) { + if (m_pTextCtrl_RatePercentChangeEnd) { wxString str; - str.Printf(wxT("%.3f"), m_RateEnd); - m_pTextCtrl_RateEnd->SetValue(str); + str.Printf(wxT("%.3f"), m_RatePercentChangeEnd); + m_pTextCtrl_RatePercentChangeEnd->SetValue(str); } } -void TimeScaleDialog::Update_Slider_RateStart() +void TimeScaleDialog::Update_Slider_RatePercentChangeStart() { - if (m_pSlider_RateStart) { - m_pSlider_RateStart->SetValue((int)(m_RateStart + 0.5)); + if (m_pSlider_RatePercentChangeStart) { + m_pSlider_RatePercentChangeStart->SetValue((int)(m_RatePercentChangeStart + 0.5)); } } -void TimeScaleDialog::Update_Slider_RateEnd() +void TimeScaleDialog::Update_Slider_RatePercentChangeEnd() { - if (m_pSlider_RateEnd) { - m_pSlider_RateEnd->SetValue((int)(m_RateEnd + 0.5)); + if (m_pSlider_RatePercentChangeEnd) { + m_pSlider_RatePercentChangeEnd->SetValue((int)(m_RatePercentChangeEnd + 0.5)); } } -void TimeScaleDialog::Update_Text_HalfStepsStart() +void TimeScaleDialog::Update_Text_PitchHalfStepsStart() { - if (m_pTextCtrl_HalfStepsStart) { + if (m_pTextCtrl_PitchHalfStepsStart) { wxString str; - str.Printf(wxT("%.3f"), m_HalfStepsStart); - m_pTextCtrl_HalfStepsStart->SetValue(str); + str.Printf(wxT("%.3f"), m_PitchHalfStepsStart); + m_pTextCtrl_PitchHalfStepsStart->SetValue(str); } } -void TimeScaleDialog::Update_Text_HalfStepsEnd() +void TimeScaleDialog::Update_Text_PitchHalfStepsEnd() { - if (m_pTextCtrl_HalfStepsEnd) { + if (m_pTextCtrl_PitchHalfStepsEnd) { wxString str; - str.Printf(wxT("%.3f"), m_HalfStepsEnd); - m_pTextCtrl_HalfStepsEnd->SetValue(str); + str.Printf(wxT("%.3f"), m_PitchHalfStepsEnd); + m_pTextCtrl_PitchHalfStepsEnd->SetValue(str); + } +} + +void TimeScaleDialog::Update_Text_PitchPercentChangeStart() +{ + if (m_pTextCtrl_PitchPercentChangeStart) { + wxString str; + str.Printf(wxT("%.3f"), m_PitchPercentChangeStart); + m_pTextCtrl_PitchPercentChangeStart->SetValue(str); + } +} + +void TimeScaleDialog::Update_Text_PitchPercentChangeEnd() +{ + if (m_pTextCtrl_PitchPercentChangeEnd) { + wxString str; + str.Printf(wxT("%.3f"), m_PitchPercentChangeEnd); + m_pTextCtrl_PitchPercentChangeEnd->SetValue(str); } } diff --git a/src/effects/TimeScale.h b/src/effects/TimeScale.h index 960192fa5..49d941441 100644 --- a/src/effects/TimeScale.h +++ b/src/effects/TimeScale.h @@ -57,10 +57,12 @@ class EffectTimeScale : public EffectSBSMS { virtual bool Process(); private: - double m_RateStart; - double m_RateEnd; - double m_HalfStepsStart; - double m_HalfStepsEnd; + double m_RatePercentChangeStart; + double m_RatePercentChangeEnd; + double m_PitchHalfStepsStart; + double m_PitchHalfStepsEnd; + double m_PitchPercentChangeStart; + double m_PitchPercentChangeEnd; bool m_PreAnalyze; friend class TimeScaleDialog; @@ -81,22 +83,26 @@ class TimeScaleDialog:public EffectDialog { private: // handlers - void OnText_RateStart(wxCommandEvent & event); - void OnText_RateEnd(wxCommandEvent & event); - void OnText_HalfStepsStart(wxCommandEvent & event); - void OnText_HalfStepsEnd(wxCommandEvent & event); - void OnSlider_RateStart(wxCommandEvent & event); - void OnSlider_RateEnd(wxCommandEvent & event); + void OnText_RatePercentChangeStart(wxCommandEvent & event); + void OnText_RatePercentChangeEnd(wxCommandEvent & event); + void OnText_PitchPercentChangeStart(wxCommandEvent & event); + void OnText_PitchPercentChangeEnd(wxCommandEvent & event); + void OnText_PitchHalfStepsStart(wxCommandEvent & event); + void OnText_PitchHalfStepsEnd(wxCommandEvent & event); + void OnSlider_RatePercentChangeStart(wxCommandEvent & event); + void OnSlider_RatePercentChangeEnd(wxCommandEvent & event); void OnCheckBox_PreAnalyze(wxCommandEvent & event); // helper fns bool CheckParameters(); - void Update_Text_RateStart(); - void Update_Text_RateEnd(); - void Update_Text_HalfStepsStart(); - void Update_Text_HalfStepsEnd(); - void Update_Slider_RateStart(); - void Update_Slider_RateEnd(); + void Update_Text_RatePercentChangeStart(); + void Update_Text_RatePercentChangeEnd(); + void Update_Text_PitchPercentChangeStart(); + void Update_Text_PitchPercentChangeEnd(); + void Update_Text_PitchHalfStepsStart(); + void Update_Text_PitchHalfStepsEnd(); + void Update_Slider_RatePercentChangeStart(); + void Update_Slider_RatePercentChangeEnd(); void Update_CheckBox_PreAnalyze(); private: @@ -104,19 +110,23 @@ class TimeScaleDialog:public EffectDialog { bool m_bLoopDetect; // controls - wxTextCtrl *m_pTextCtrl_RateStart; - wxSlider *m_pSlider_RateStart; - wxTextCtrl *m_pTextCtrl_RateEnd; - wxSlider *m_pSlider_RateEnd; - wxTextCtrl *m_pTextCtrl_HalfStepsStart; - wxTextCtrl *m_pTextCtrl_HalfStepsEnd; + wxTextCtrl *m_pTextCtrl_RatePercentChangeStart; + wxTextCtrl *m_pTextCtrl_RatePercentChangeEnd; + wxSlider *m_pSlider_RatePercentChangeStart; + wxSlider *m_pSlider_RatePercentChangeEnd; + wxTextCtrl *m_pTextCtrl_PitchHalfStepsStart; + wxTextCtrl *m_pTextCtrl_PitchHalfStepsEnd; + wxTextCtrl *m_pTextCtrl_PitchPercentChangeStart; + wxTextCtrl *m_pTextCtrl_PitchPercentChangeEnd; wxCheckBox *m_pCheckBox_PreAnalyze; public: - double m_RateStart; - double m_RateEnd; - double m_HalfStepsStart; - double m_HalfStepsEnd; + double m_RatePercentChangeStart; + double m_RatePercentChangeEnd; + double m_PitchHalfStepsStart; + double m_PitchHalfStepsEnd; + double m_PitchPercentChangeStart; + double m_PitchPercentChangeEnd; bool m_PreAnalyze; private: diff --git a/win/Projects/sbsms/sbsms.vcproj b/win/Projects/sbsms/sbsms.vcproj index fffa28683..e1041d295 100644 --- a/win/Projects/sbsms/sbsms.vcproj +++ b/win/Projects/sbsms/sbsms.vcproj @@ -304,10 +304,6 @@ RelativePath="..\..\..\lib-src\sbsms\src\peak.cpp" > - - @@ -350,10 +346,6 @@ RelativePath="..\..\..\lib-src\sbsms\src\buffer.h" > - -